@things-factory/board-ui 4.1.40 → 4.3.0-alpha.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.
@@ -4,7 +4,7 @@
4
4
 
5
5
  import './things-editor-board-selector'
6
6
 
7
- import { html } from 'lit-element'
7
+ import { html } from 'lit'
8
8
 
9
9
  import { OxPropertyEditor } from '@operato/property-editor'
10
10
 
@@ -5,7 +5,7 @@
5
5
  import '@material/mwc-icon'
6
6
  import '../../viewparts/board-selector'
7
7
 
8
- import { css, html, LitElement } from 'lit-element'
8
+ import { css, html, LitElement } from 'lit'
9
9
 
10
10
  import { i18next } from '@operato/i18n'
11
11
  import { openPopup } from '@operato/layout'
@@ -2,7 +2,7 @@ import '@material/mwc-icon'
2
2
  import '../viewparts/board-selector'
3
3
  import './board-renderer'
4
4
 
5
- import { css, html, LitElement } from 'lit-element'
5
+ import { css, html, LitElement } from 'lit'
6
6
 
7
7
  import { i18next } from '@operato/i18n'
8
8
  import { openPopup } from '@operato/layout'
@@ -1,4 +1,4 @@
1
- import { LitElement, html, css } from 'lit-element'
1
+ import { LitElement, html, css } from 'lit'
2
2
 
3
3
  import gql from 'graphql-tag'
4
4
  import { client, navigate, gqlContext } from '@things-factory/shell'
@@ -2,7 +2,7 @@ import './things-scene-components.import'
2
2
  import '@operato/board/ox-board-modeller.js'
3
3
 
4
4
  import gql from 'graphql-tag'
5
- import { css, html } from 'lit-element'
5
+ import { css, html } from 'lit'
6
6
  import { connect } from 'pwa-helpers/connect-mixin.js'
7
7
 
8
8
  import { BoardModeller } from '@operato/board/ox-board-modeller.js'
@@ -2,7 +2,7 @@ import './things-scene-components.import'
2
2
  import '@operato/board/ox-board-player.js'
3
3
 
4
4
  import gql from 'graphql-tag'
5
- import { css, html } from 'lit-element'
5
+ import { css, html } from 'lit'
6
6
  import { connect } from 'pwa-helpers/connect-mixin.js'
7
7
 
8
8
  import { client, PageView, store } from '@things-factory/shell'
@@ -2,7 +2,7 @@ import './things-scene-components.import'
2
2
  import '@operato/board/ox-board-viewer.js'
3
3
 
4
4
  import gql from 'graphql-tag'
5
- import { css, html } from 'lit-element'
5
+ import { css, html } from 'lit'
6
6
  import { connect } from 'pwa-helpers/connect-mixin.js'
7
7
 
8
8
  import { buildLabelPrintCommand } from '@things-factory/barcode-base'
@@ -18,6 +18,7 @@ export class BoardViewerPage extends connect(store)(PageView) {
18
18
  _board: Object,
19
19
  _boardId: String,
20
20
  _baseUrl: String,
21
+ _interactive: Boolean,
21
22
  _showSpinner: Boolean
22
23
  }
23
24
  }
@@ -93,7 +94,12 @@ export class BoardViewerPage extends connect(store)(PageView) {
93
94
  ></oops-note>
94
95
  `
95
96
  : html`
96
- <ox-board-viewer .board=${this._board} .provider=${provider}></ox-board-viewer>
97
+ <ox-board-viewer
98
+ .board=${this._board}
99
+ .provider=${provider}
100
+ ?hide-fullscreen=${this._interactive}
101
+ ?hide-navigation=${this._interactive}
102
+ ></ox-board-viewer>
97
103
  <oops-spinner ?show=${this._showSpinner}></oops-spinner>
98
104
  `
99
105
  }
@@ -107,6 +113,7 @@ export class BoardViewerPage extends connect(store)(PageView) {
107
113
  pageUpdated(changes, lifecycle) {
108
114
  if (this.active) {
109
115
  this._boardId = lifecycle.resourceId
116
+ this._interactive = lifecycle.params['interactive'] === 'true'
110
117
  } else {
111
118
  /*
112
119
  * 비활성화된 페이지에서 render update가 발생하지 않으므로, 강제로 scene을 close 한다.
@@ -1,7 +1,7 @@
1
1
  import '@material/mwc-icon'
2
2
  import './board-creation-popup'
3
3
 
4
- import { css, html, LitElement } from 'lit-element'
4
+ import { css, html, LitElement } from 'lit'
5
5
 
6
6
  import { i18next, localize } from '@operato/i18n'
7
7
  import { openPopup } from '@operato/layout'
@@ -4,7 +4,7 @@ import '@material/mwc-select'
4
4
  import '@material/mwc-list/mwc-list-item'
5
5
  import '@material/mwc-button'
6
6
 
7
- import { css, html, LitElement } from 'lit-element'
7
+ import { css, html, LitElement } from 'lit'
8
8
 
9
9
  import { i18next, localize } from '@operato/i18n'
10
10
 
@@ -1,7 +1,7 @@
1
1
  import './board-creation-card'
2
2
 
3
3
  import gql from 'graphql-tag'
4
- import { css, html, LitElement } from 'lit-element'
4
+ import { css, html, LitElement } from 'lit'
5
5
 
6
6
  import { buildArgs, client, gqlContext } from '@operato/graphql'
7
7
  import { i18next, localize } from '@operato/i18n'
@@ -1,4 +1,4 @@
1
- import { css, html, LitElement } from 'lit-element'
1
+ import { css, html, LitElement } from 'lit'
2
2
 
3
3
  import { i18next, localize } from '@operato/i18n'
4
4
 
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/board-ui",
3
- "version": "4.1.40",
3
+ "version": "4.3.0-alpha.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -26,11 +26,11 @@
26
26
  "dependencies": {
27
27
  "@material/mwc-list": "^0.25.3",
28
28
  "@material/mwc-select": "^0.25.3",
29
- "@operato/board": "^0.3.28",
30
- "@operato/help": "^0.3.28",
31
- "@operato/i18n": "^0.3.28",
32
- "@operato/layout": "^0.3.28",
33
- "@operato/popup": "^0.3.28",
29
+ "@operato/board": "^0.4.5",
30
+ "@operato/help": "^0.4.5",
31
+ "@operato/i18n": "^0.4.5",
32
+ "@operato/layout": "^0.4.5",
33
+ "@operato/popup": "^0.4.5",
34
34
  "@polymer/iron-icon": "^3.0.1",
35
35
  "@polymer/iron-icons": "^3.0.1",
36
36
  "@polymer/paper-button": "^3.0.1",
@@ -40,11 +40,11 @@
40
40
  "@polymer/paper-listbox": "^3.0.1",
41
41
  "@polymer/paper-menu-button": "^3.0.1",
42
42
  "@polymer/paper-slider": "^3.0.1",
43
- "@things-factory/barcode-base": "^4.1.40",
44
- "@things-factory/grist-ui": "^4.1.40",
45
- "@things-factory/modeller-ui": "^4.1.40",
43
+ "@things-factory/barcode-base": "^4.3.0-alpha.0",
44
+ "@things-factory/grist-ui": "^4.3.0-alpha.0",
45
+ "@things-factory/modeller-ui": "^4.3.0-alpha.0",
46
46
  "file-saver": "^2.0.2",
47
47
  "sortablejs": "^1.10.2"
48
48
  },
49
- "gitHead": "060b5c664e80a6fcba09598f2c7ceffe067e02bf"
49
+ "gitHead": "6467d1b2a5b2f8abb1bc3982e4651a5742ad4043"
50
50
  }