@operato/scene-switch 7.3.9 → 7.3.19

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,112 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-GB">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" />
6
- <style>
7
- body {
8
- margin: 0;
9
- padding: 0;
10
- overflow: hidden;
11
-
12
- /* This is a font-stack that tries to use the system-default sans-serifs first */
13
- font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
14
- line-height: 1.5;
15
- -webkit-font-smoothing: antialiased;
16
- }
17
-
18
- ox-board-viewer {
19
- width: 100vw;
20
- height: 100vh;
21
- }
22
- </style>
23
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
24
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
25
- </head>
26
- <body>
27
- <div id="demo"></div>
28
- <script type="module">
29
- import { html, render } from 'lit'
30
- import { ReferenceMap, create, error } from '@hatiolab/things-scene'
31
- import '@operato/board/ox-board-modeller.js'
32
- import '../dist/simple-switch.js'
33
-
34
- const colors = ['red', 'blue', 'orange', 'yellow', 'magenta', 'violet', 'navy', 'green', 'cyan', 'lime']
35
- const boards = colors.map((color, idx) => {
36
- var to = colors[(idx + 1) % colors.length]
37
- return {
38
- id: color,
39
- model: {
40
- width: 400,
41
- height: 300,
42
- fillStyle: color,
43
- components: [
44
- {
45
- type: 'text',
46
- left: 100,
47
- top: 100,
48
- width: 200,
49
- height: 30,
50
- text: `Click to move to ${to}`,
51
- event: {
52
- tap: {
53
- action: 'goto',
54
- target: to
55
- }
56
- }
57
- },
58
- {
59
- type: 'simple-switch',
60
- left: 100,
61
- top: 200,
62
- width: 100,
63
- height: 30
64
- }
65
- ]
66
- }
67
- }
68
- })
69
-
70
- var provider = new ReferenceMap(
71
- async (boardId, resolve, reject) => {
72
- try {
73
- const board = boards.find(board => {
74
- return board.id === boardId
75
- })
76
- if (!board) {
77
- throw `no board named as ${boardId}`
78
- }
79
-
80
- var scene
81
-
82
- try {
83
- scene = await provider.get(boardId)
84
- console.warn('Board fetched more than twice.', boardId)
85
- } catch (e) {
86
- scene = create({
87
- model: JSON.parse(JSON.stringify(board.model)),
88
- mode: 0,
89
- refProvider: provider
90
- })
91
- }
92
- resolve(scene, board)
93
- } catch (e) {
94
- error(e)
95
- reject(e)
96
- }
97
- },
98
- async (id, ref) => {
99
- ref.dispose()
100
- }
101
- )
102
-
103
- render(
104
- html`
105
- <ox-board-modeller .model=${this.model} .scene=${this.scene} .board=${boards[0]} .provider=${provider}>
106
- </ox-board-modeller>
107
- `,
108
- document.querySelector('#demo')
109
- )
110
- </script>
111
- </body>
112
- </html>
package/demo/index.html DELETED
@@ -1,109 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-GB">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" />
6
- <style>
7
- body {
8
- margin: 0;
9
- padding: 0;
10
- overflow: hidden;
11
-
12
- /* This is a font-stack that tries to use the system-default sans-serifs first */
13
- font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
14
- line-height: 1.5;
15
- -webkit-font-smoothing: antialiased;
16
- }
17
-
18
- ox-board-viewer {
19
- width: 100vw;
20
- height: 100vh;
21
- }
22
- </style>
23
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
24
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
25
- </head>
26
- <body>
27
- <div id="demo"></div>
28
- <script type="module">
29
- import { html, render } from 'lit'
30
- import { ReferenceMap, create, error } from '@hatiolab/things-scene'
31
- import '@operato/board/ox-board-viewer.js'
32
- import '../dist/simple-switch.js'
33
-
34
- const colors = ['red', 'blue', 'orange', 'yellow', 'magenta', 'violet', 'navy', 'green', 'cyan', 'lime']
35
- const boards = colors.map((color, idx) => {
36
- var to = colors[(idx + 1) % colors.length]
37
- return {
38
- id: color,
39
- model: {
40
- width: 400,
41
- height: 300,
42
- fillStyle: color,
43
- components: [
44
- {
45
- type: 'text',
46
- left: 100,
47
- top: 100,
48
- width: 200,
49
- height: 30,
50
- text: `Click to move to ${to}`,
51
- event: {
52
- tap: {
53
- action: 'goto',
54
- target: to
55
- }
56
- }
57
- },
58
- {
59
- type: 'simple-switch',
60
- left: 100,
61
- top: 200,
62
- width: 100,
63
- height: 30
64
- }
65
- ]
66
- }
67
- }
68
- })
69
-
70
- var provider = new ReferenceMap(
71
- async (boardId, resolve, reject) => {
72
- try {
73
- const board = boards.find(board => {
74
- return board.id === boardId
75
- })
76
- if (!board) {
77
- throw `no board named as ${boardId}`
78
- }
79
-
80
- var scene
81
-
82
- try {
83
- scene = await provider.get(boardId)
84
- console.warn('Board fetched more than twice.', boardId)
85
- } catch (e) {
86
- scene = create({
87
- model: JSON.parse(JSON.stringify(board.model)),
88
- mode: 0,
89
- refProvider: provider
90
- })
91
- }
92
- resolve(scene, board)
93
- } catch (e) {
94
- error(e)
95
- reject(e)
96
- }
97
- },
98
- async (id, ref) => {
99
- ref.dispose()
100
- }
101
- )
102
-
103
- render(
104
- html` <ox-board-viewer .board=${boards[0]} .provider=${provider}></ox-board-viewer> `,
105
- document.querySelector('#demo')
106
- )
107
- </script>
108
- </body>
109
- </html>
@@ -1 +0,0 @@
1
- export default [];
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- import SimpleSwitch from './simple-switch'
2
- export default [SimpleSwitch]
@@ -1,92 +0,0 @@
1
- import { LitElement, css, html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
-
4
- @customElement('ox-simple-switch')
5
- export class SimpleSwitchElement extends LitElement {
6
- static styles = css`
7
- /* The switch - the box around the slider */
8
- label {
9
- position: relative;
10
- display: inline-block;
11
- width: 100%;
12
- height: 100%;
13
- }
14
-
15
- /* Hide default HTML checkbox */
16
- label input {
17
- opacity: 0;
18
- width: 0;
19
- height: 0;
20
- }
21
-
22
- /* The slider */
23
- span {
24
- position: absolute;
25
- cursor: pointer;
26
- width: var(--ox-simple-switch-fullwidth);
27
- height: var(--ox-simple-switch-fullheight);
28
- top: calc(0 - var(--ox-simple-switch-thumbnail-size));
29
- left: 0;
30
- background-color: var(--ox-simple-switch-off-color, #ccc);
31
- -webkit-transition: 0.4s;
32
- transition: 0.4s;
33
- }
34
-
35
- span:before {
36
- position: absolute;
37
- content: '';
38
- height: calc(var(--ox-simple-switch-thumbnail-size) - 8px);
39
- width: calc(var(--ox-simple-switch-thumbnail-size) - 8px);
40
- left: 4px;
41
- top: 4px;
42
- background-color: var(--ox-simple-switch-thumbnail-color, white);
43
- -webkit-transition: 0.4s;
44
- transition: 0.4s;
45
- }
46
-
47
- input:checked + span {
48
- background-color: var(--ox-simple-switch-on-color, #2196f3);
49
- }
50
-
51
- input:checked + span:before {
52
- -webkit-transform: translateX(calc(var(--ox-simple-switch-fullwidth) - var(--ox-simple-switch-thumbnail-size)))
53
- translateY(calc(var(--ox-simple-switch-fullheight) - var(--ox-simple-switch-thumbnail-size)));
54
- -ms-transform: translateX(calc(var(--ox-simple-switch-fullwidth) - var(--ox-simple-switch-thumbnail-size)))
55
- translateY(calc(var(--ox-simple-switch-fullheight) - var(--ox-simple-switch-thumbnail-size)));
56
- transform: translateX(calc(var(--ox-simple-switch-fullwidth) - var(--ox-simple-switch-thumbnail-size)))
57
- translateY(calc(var(--ox-simple-switch-fullheight) - var(--ox-simple-switch-thumbnail-size)));
58
- }
59
-
60
- /* Rounded sliders */
61
- span[round] {
62
- border-radius: calc(var(--ox-simple-switch-thumbnail-size) / 2);
63
- }
64
-
65
- span[round]:before {
66
- border-radius: calc((var(--ox-simple-switch-thumbnail-size) - 8px) / 2);
67
- }
68
- `
69
-
70
- @property({ type: Boolean }) round: boolean = false
71
- @property({ type: Boolean }) value: boolean = false
72
-
73
- render() {
74
- return html`
75
- <label>
76
- <input type="checkbox" .checked=${this.value} />
77
- <span ?round=${this.round}></span>
78
- </label>
79
- `
80
- }
81
-
82
- firstUpdated() {
83
- this.renderRoot.addEventListener('change', (e: Event) => {
84
- this.value = (e.target as HTMLInputElement)?.checked
85
- this.dispatchEvent(
86
- new CustomEvent('value-change', {
87
- detail: this.value
88
- })
89
- )
90
- })
91
- }
92
- }
@@ -1,103 +0,0 @@
1
- import './simple-switch-element'
2
-
3
- import { Component, ComponentNature, HTMLOverlayElement } from '@hatiolab/things-scene'
4
-
5
- import { SimpleSwitchElement } from './simple-switch-element'
6
-
7
- const NATURE: ComponentNature = {
8
- mutable: false,
9
- resizable: true,
10
- rotatable: true,
11
- properties: [
12
- {
13
- type: 'checkbox',
14
- label: 'round',
15
- name: 'round'
16
- },
17
- {
18
- type: 'checkbox',
19
- label: 'on/off',
20
- name: 'data'
21
- },
22
- {
23
- type: 'color',
24
- label: 'on-color',
25
- name: 'onColor'
26
- },
27
- {
28
- type: 'color',
29
- label: 'off-color',
30
- name: 'offColor'
31
- },
32
- {
33
- type: 'color',
34
- label: 'thumbnail-color',
35
- name: 'thumbnailColor'
36
- }
37
- ],
38
- 'value-property': 'data',
39
- help: 'scene/component/simple-switch'
40
- }
41
-
42
- export default class SimpleSwitch extends HTMLOverlayElement {
43
- get nature() {
44
- return NATURE
45
- }
46
-
47
- oncreate_element(toggle: SimpleSwitchElement) {
48
- toggle.addEventListener('value-change', (e: Event) => {
49
- var checked = (e as CustomEvent).detail
50
-
51
- this.setState({
52
- data: checked
53
- })
54
- })
55
- }
56
-
57
- dispose() {
58
- super.dispose()
59
- }
60
-
61
- /*
62
- * 컴포넌트의 생성 또는 속성 변화 시에 호출되며,
63
- * 그에 따른 html element의 반영이 필요한 부분을 구현한다.
64
- *
65
- * ThingsComponent state => HTML element properties
66
- */
67
- setElementProperties(toggle: SimpleSwitchElement) {
68
- var { round, data, onColor, offColor, thumbnailColor } = this.state
69
-
70
- toggle.round = round
71
- toggle.value = 'true' == String(data)
72
-
73
- onColor && toggle.style.setProperty('--ox-simple-switch-on-color', onColor)
74
- offColor && toggle.style.setProperty('--ox-simple-switch-off-color', offColor)
75
- thumbnailColor && toggle.style.setProperty('--ox-simple-switch-thumbnail-color', thumbnailColor)
76
- }
77
-
78
- /*
79
- * 컴포넌트가 ready 상태가 되거나, 컴포넌트의 속성이 변화될 시 setElementProperties 뒤에 호출된다.
80
- * 변화에 따른 기본적인 html 속성이 super.reposition()에서 진행되고, 그 밖의 작업이 필요할 때, 오버라이드 한다.
81
- */
82
- reposition() {
83
- super.reposition()
84
-
85
- var element = this.element
86
-
87
- if (!element) {
88
- return
89
- }
90
-
91
- var { height, width } = this.bounds
92
-
93
- element.style.setProperty('--ox-simple-switch-fullwidth', `${width}px`)
94
- element.style.setProperty('--ox-simple-switch-fullheight', `${height}px`)
95
- element.style.setProperty('--ox-simple-switch-thumbnail-size', `${Math.min(height, width)}px`)
96
- }
97
-
98
- get tagName() {
99
- return 'ox-simple-switch'
100
- }
101
- }
102
-
103
- Component.register('simple-switch', SimpleSwitch)
@@ -1,3 +0,0 @@
1
- import simpleSwitch from './simple-switch'
2
-
3
- export default [simpleSwitch]
@@ -1,19 +0,0 @@
1
- const icon = new URL('../../icons/icon-simple-switch.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'simple-switch',
5
- description: 'simple-switch',
6
- group: 'IoT',
7
- /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
8
- icon,
9
- model: {
10
- type: 'simple-switch',
11
- left: 10,
12
- top: 10,
13
- width: 100,
14
- height: 40,
15
- thumbnailColor: '#ffffff',
16
- onColor: '#2196f3',
17
- offColor: '#cccccc'
18
- }
19
- }
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2018",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "noEmitOnError": true,
7
- "lib": ["es2019", "dom"],
8
- "strict": true,
9
- "esModuleInterop": false,
10
- "allowJs": true,
11
- "allowSyntheticDefaultImports": true,
12
- "experimentalDecorators": true,
13
- "importHelpers": true,
14
- "outDir": "dist",
15
- "sourceMap": true,
16
- "inlineSources": true,
17
- "rootDir": "src",
18
- "declaration": true,
19
- "incremental": true,
20
- "skipLibCheck": true,
21
- "types": []
22
- },
23
- "include": ["**/*.ts", "*.d.ts"]
24
- }
@@ -1 +0,0 @@
1
- {"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/tslib/tslib.d.ts","../../node_modules/@lit/reactive-element/css-tag.d.ts","../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../node_modules/lit-html/directive.d.ts","../../node_modules/@types/trusted-types/lib/index.d.ts","../../node_modules/lit-html/lit-html.d.ts","../../node_modules/lit-element/lit-element.d.ts","../../node_modules/lit-html/is-server.d.ts","../../node_modules/lit/index.d.ts","../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../node_modules/lit/decorators.d.ts","./src/simple-switch-element.ts","../../node_modules/@hatiolab/things-scene/things-scene.d.ts","./src/simple-switch.ts","./src/index.ts","./src/editors/index.ts","./src/templates/simple-switch.ts","./src/templates/index.ts"],"fileIdsList":[[47],[40,47],[40,47,55],[49],[38,39],[40,43],[43],[41,42],[48,49,50,51,52,53,54,55,56],[40,43,44,45],[37],[37,60],[37,46,57],[37,58,59],[37,63]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029","impliedFormat":1},{"version":"e056bb30bf82271634daeee81f772f4a7960085f01f6d4d09c8da1ebe5f6a623","impliedFormat":99},{"version":"5e30131b6a5587fe666926ad1d9807e733c0a597ed12d682669fcaa331aea576","impliedFormat":99},{"version":"86492a546c3308feaf1dde967afd325c321483b5e96f5fa9e9b6e691dc23fa9e","affectsGlobalScope":true,"impliedFormat":99},{"version":"00cb63103f9670f8094c238a4a7e252c8b4c06ba371fea5c44add7e41b7247e4","impliedFormat":99},{"version":"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e","impliedFormat":1},{"version":"43f58358870effc43ba93c92c040dee2285cbd8685ddfa77658e498780727c4e","impliedFormat":99},{"version":"9a318e3a8900672b85cd3c8c3a5acf51b88049557a3ae897ccdcf2b85a8f61f9","impliedFormat":99},{"version":"1bcd560deed90a43c51b08aa18f7f55229f2e30974ab5ed1b7bb5721be379013","impliedFormat":99},{"version":"dc08fe04e50bc24d1baded4f33e942222bbdd5d77d6341a93cfe6e4e4586a3be","impliedFormat":99},{"version":"cdeae34aca6700620ebf3f27cf7d439c3af97595dd6e2729fa4780483add5680","impliedFormat":99},{"version":"3ff87ea3471b51beaf4aa8fd8f4422862b11d343fdbb55bf383e0f8cc195a445","impliedFormat":99},{"version":"1cc188904259bd0985b24d9dc2a160891cb5e94210901466b951716fcdb4ff62","impliedFormat":99},{"version":"732fb71ecb695d6f36ddcbb72ebfe4ff6b6491d45101a00fa2b75a26b80d640f","impliedFormat":99},{"version":"039cb05125d7621f8143616c495b8e6b54249c4e64d2754b80ff93867f7f4b01","impliedFormat":99},{"version":"1b81f1fa82ad30af01ab1cae91ccaddc10c48f5916bbd6d282155e44a65d858d","impliedFormat":99},{"version":"a0fc7a02a75802678a67000607f20266cf1a49dc0e787967efe514e31b9ed0c3","impliedFormat":99},{"version":"5ebf098a1d81d400b8af82807cf19893700335cf91a7b9dbd83a5d737af34b11","impliedFormat":99},{"version":"101cf83ac3f9c5e1a7355a02e4fbe988877ef83c4ebec0ff0f02b2af022254a3","impliedFormat":99},{"version":"d017e2fcd44b46ca80cd2b592a6314e75f5caab5bda230f0f4a45e964049a43a","impliedFormat":99},{"version":"a8992b852521a66f63e0cedc6e1f054b28f972232b6fa5ca59771db6a1c8bbea","impliedFormat":99},{"version":"ff3e8e98af68bad4b762eb52406adee10b987fba9cc21902d798567f2703ece1","signature":"c42c7a057df70528d4d6ba31300e6993691fc2cd5bcefc6bbc2539a70d9c30d1"},{"version":"26d1ec00a52200684283272eaed524de74adc033bdff6522f72e03c796a46ff8","impliedFormat":1},{"version":"f2a8651116966117968fb6fa4ab21c0b13e0e57261aedd6342ecc69a9cc71482","signature":"1dda87ab06f7715d160cf09553bc9c1ac6182da7f5e7804de75ee05fdd5557e8"},{"version":"3a41d404bb0d87e48cd44d81c0bca1ebb0822091066c89d6d5c3cbbf65ed0db4","signature":"50d5c62e57869dcd9810f71bfaf836fb19777e57a7e5916fe5c55a6604c21f1f"},{"version":"d7076912d1c9786ca76231a2a77cef475b7fafbe4950a8ecc430af171422993c","signature":"4a7c292d62921427e90557aed02baef60180dba6dc7ab2d66e4ae7582e5455a9"},{"version":"0753c6d5fcb2026658e660450911eeee84ad30d6f8a44259b09d33b0083af67e","signature":"c603d4c2cba14aea2ea6146cd78a010f8a18ea354bb5b1320384065277c25083"},{"version":"36336b94c90254d053b272906586f4c5ec51afef32b7d36ca286fbfc4f63b51e","signature":"e3e42f0d6eb21c854a1065341d40a219e8d43675eda599e02cb176f90c12ee68"}],"root":[58,[60,64]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":5},"referencedMap":[[48,1],[51,2],[49,2],[53,2],[56,3],[55,2],[54,2],[52,2],[50,4],[40,5],[44,6],[41,7],[43,8],[57,9],[46,10],[62,11],[61,12],[58,13],[60,14],[64,15],[63,11]],"version":"5.6.2"}
@@ -1,27 +0,0 @@
1
- // import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
2
-
3
- /** Use Hot Module replacement by adding --hmr to the start command */
4
- const hmr = process.argv.includes('--hmr')
5
-
6
- export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
7
- open: '/demo/',
8
- /** Use regular watch mode if HMR is not enabled. */
9
- watch: !hmr,
10
- /** Resolve bare module imports */
11
- nodeResolve: {
12
- exportConditions: ['browser', 'development']
13
- },
14
-
15
- /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
16
- // esbuildTarget: 'auto'
17
-
18
- /** Set appIndex to enable SPA routing */
19
- // appIndex: 'demo/index.html',
20
-
21
- plugins: [
22
- /** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
23
- // hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
24
- ]
25
-
26
- // See documentation for all available options
27
- })