@things-factory/reference-app 4.0.42 → 4.0.43

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,4 +1,4 @@
1
- import { css, html, LitElement } from 'lit-element'
1
+ import { css, html, LitElement } from 'lit'
2
2
 
3
3
  import { FileDropHelper } from '@things-factory/utils'
4
4
 
@@ -3,7 +3,7 @@ import '@material/mwc-button'
3
3
  import '@operato/ocr/ox-ocr-helper.js'
4
4
 
5
5
  import { gql } from 'graphql-tag'
6
- import { css, html, LitElement } from 'lit-element'
6
+ import { css, html, LitElement } from 'lit'
7
7
 
8
8
  import { client } from '@things-factory/shell'
9
9
 
@@ -1,9 +1,9 @@
1
- import { LitElement, html, css } from 'lit-element'
2
-
3
1
  import '@material/mwc-icon'
2
+ import './id-selector'
3
+
4
+ import { css, html, LitElement } from 'lit'
4
5
 
5
6
  import { openPopup } from '@things-factory/layout-base'
6
- import './id-selector'
7
7
 
8
8
  export class IdEditor extends LitElement {
9
9
  static get properties() {
@@ -57,11 +57,7 @@ export class IdEditor extends LitElement {
57
57
  var value = this.value
58
58
 
59
59
  return html`
60
- ${!value
61
- ? html``
62
- : html`
63
- <span>${value[nameField]} (${value[descriptionField]})</span>
64
- `}
60
+ ${!value ? html`` : html` <span>${value[nameField]} (${value[descriptionField]})</span> `}
65
61
  <mwc-icon>arrow_drop_down</mwc-icon>
66
62
  `
67
63
  }
@@ -1,6 +1,6 @@
1
1
  import '@operato/data-grist'
2
2
 
3
- import { css, html, LitElement } from 'lit-element'
3
+ import { css, html, LitElement } from 'lit'
4
4
 
5
5
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
6
6
  import { i18next } from '@things-factory/i18n-base'
@@ -70,7 +70,7 @@ export class IdSelector extends LitElement {
70
70
  .selectedRecords=${this.selectedRecords}
71
71
  >
72
72
  <div id="filters" slot="headless">
73
- <ox-filters-form @change=${e => this.grist.fetch()}></ox-filters-form>
73
+ <ox-filters-form></ox-filters-form>
74
74
  </div>
75
75
  </ox-grist>
76
76
 
@@ -165,14 +165,9 @@ export class IdSelector extends LitElement {
165
165
  return this.renderRoot.querySelector('ox-grist')
166
166
  }
167
167
 
168
- get filtersForm() {
169
- return this.renderRoot.querySelector('ox-filters-form')
170
- }
171
-
172
- async fetchHandler({ page, limit, sorters = [] }) {
168
+ async fetchHandler({ page, limit, sortings = [], filters = [] }) {
173
169
  var total = 3401
174
170
  var start = (page - 1) * limit
175
- // const filter = await this.filtersForm.getQueryFilters()
176
171
 
177
172
  return {
178
173
  total,
@@ -1,7 +1,7 @@
1
1
  import '@material/mwc-icon'
2
2
  import '@operato/popup/ox-popup-menu.js'
3
3
 
4
- import { css, html } from 'lit-element'
4
+ import { css, html } from 'lit'
5
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
6
6
 
7
7
  import { OxPopupMenu } from '@operato/popup/ox-popup-menu.js'
@@ -2,15 +2,16 @@ import '@material/mwc-textfield'
2
2
  import '@material/mwc-formfield'
3
3
  import '@material/mwc-radio'
4
4
 
5
- import { PageView, store } from '@things-factory/shell'
6
- import { css, html } from 'lit-element'
7
-
8
- import { CommonButtonStyles } from '@things-factory/styles'
5
+ import { css, html } from 'lit'
9
6
  import { connect } from 'pwa-helpers/connect-mixin.js'
7
+
10
8
  import { openImportPopUp } from '@things-factory/import-ui'
11
- import { referencePageStyles } from './reference-page-styles'
9
+ import { PageView, store } from '@things-factory/shell'
10
+ import { CommonButtonStyles } from '@things-factory/styles'
12
11
  import { sleep } from '@things-factory/utils'
13
12
 
13
+ import { referencePageStyles } from './reference-page-styles'
14
+
14
15
  class ContextPage extends connect(store)(PageView) {
15
16
  static get styles() {
16
17
  return [
@@ -1,4 +1,4 @@
1
- import { css, html } from 'lit-element'
1
+ import { css, html } from 'lit'
2
2
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
3
 
4
4
  import { DirectPrinter } from '@things-factory/barcode-base'
@@ -1,4 +1,4 @@
1
- import { css, html } from 'lit-element'
1
+ import { css, html } from 'lit'
2
2
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
3
 
4
4
  import { GhostPrint } from '@operato/ghost-print'
@@ -1,4 +1,4 @@
1
- import { css, html } from 'lit-element'
1
+ import { css, html } from 'lit'
2
2
 
3
3
  import { getEditor, getRenderer } from '@operato/data-grist'
4
4
  import { i18next, localize } from '@things-factory/i18n-base'
@@ -1,7 +1,7 @@
1
1
  import '@operato/popup/ox-popup-list.js'
2
2
  import '@operato/data-grist'
3
3
 
4
- import { css, html } from 'lit-element'
4
+ import { css, html } from 'lit'
5
5
 
6
6
  import { i18next, localize } from '@things-factory/i18n-base'
7
7
  import { PageView } from '@things-factory/shell'
@@ -1,4 +1,4 @@
1
- import { css, html } from 'lit-element'
1
+ import { css, html } from 'lit'
2
2
 
3
3
  import { getEditor, getRenderer } from '@operato/data-grist'
4
4
  import { i18next, localize } from '@things-factory/i18n-base'
@@ -1,7 +1,7 @@
1
1
  import '@things-factory/barcode-ui'
2
2
  import '@operato/input/ox-input-barcode.js'
3
3
 
4
- import { css, html } from 'lit-element'
4
+ import { css, html } from 'lit'
5
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
6
6
 
7
7
  import { PageView, store } from '@things-factory/shell'
@@ -1,6 +1,7 @@
1
- import { html, css } from 'lit-element'
1
+ import { css, html } from 'lit'
2
2
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
- import { store, PageView } from '@things-factory/shell'
3
+
4
+ import { PageView, store } from '@things-factory/shell'
4
5
 
5
6
  import logo from '../../assets/images/hatiolab-logo.png'
6
7
 
@@ -3,7 +3,7 @@ import '@material/mwc-checkbox'
3
3
  import '@material/mwc-formfield'
4
4
  import '@operato/help/ox-help-icon.js'
5
5
 
6
- import { css, html } from 'lit-element'
6
+ import { css, html } from 'lit'
7
7
  import { connect } from 'pwa-helpers/connect-mixin.js'
8
8
 
9
9
  import { VIEWPART_POSITION } from '@operato/layout'
@@ -1,7 +1,7 @@
1
1
  import '@things-factory/notification'
2
2
  import '@operato/help/ox-help-icon.js'
3
3
 
4
- import { css, html } from 'lit-element'
4
+ import { css, html } from 'lit'
5
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
6
6
 
7
7
  import { toggleOverlay, TOOL_POSITION } from '@operato/layout'
@@ -2,7 +2,7 @@ import '@things-factory/form-ui'
2
2
  import '../components/camera-capturer'
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 '@material/mwc-linear-progress'
2
2
  import '@operato/help/ox-help-icon.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 } from '@operato/graphql'
@@ -1,4 +1,4 @@
1
- import { css } from 'lit-element'
1
+ import { css } from 'lit'
2
2
 
3
3
  export const referencePageStyles = css`
4
4
  :host {
@@ -1,8 +1,8 @@
1
1
  import '@operato/data-grist'
2
2
 
3
- import { css, html } from 'lit-element'
4
- import { i18next, localize } from '@things-factory/i18n-base'
3
+ import { css, html } from 'lit'
5
4
 
5
+ import { i18next, localize } from '@things-factory/i18n-base'
6
6
  import { PageView } from '@things-factory/shell'
7
7
 
8
8
  class ReportPage extends localize(i18next)(PageView) {
@@ -1,7 +1,7 @@
1
1
  import '@operato/input/ox-input-file.js'
2
2
 
3
3
  import { gql } from 'graphql-tag'
4
- import { css, html } from 'lit-element'
4
+ import { css, html } from 'lit'
5
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
6
6
 
7
7
  import { client, PageView, store } from '@things-factory/shell'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "4.0.42",
3
+ "version": "4.0.43",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -39,54 +39,54 @@
39
39
  "dependencies": {
40
40
  "@hatiolab/things-scene": "^2.7.34",
41
41
  "@material/mwc-checkbox": "^0.25.3",
42
- "@operato/data-grist": "^0.3.24",
43
- "@operato/ghost-print": "^0.3.24",
44
- "@operato/graphql": "^0.3.24",
45
- "@operato/help": "^0.3.24",
46
- "@operato/i18n": "^0.3.24",
47
- "@operato/input": "^0.3.24",
48
- "@operato/layout": "^0.3.24",
49
- "@operato/ocr": "^0.3.24",
50
- "@operato/popup": "^0.3.24",
51
- "@operato/pull-to-refresh": "^0.3.24",
42
+ "@operato/data-grist": "^0.3.26",
43
+ "@operato/ghost-print": "^0.3.26",
44
+ "@operato/graphql": "^0.3.26",
45
+ "@operato/help": "^0.3.26",
46
+ "@operato/i18n": "^0.3.26",
47
+ "@operato/input": "^0.3.26",
48
+ "@operato/layout": "^0.3.26",
49
+ "@operato/ocr": "^0.3.26",
50
+ "@operato/popup": "^0.3.26",
51
+ "@operato/pull-to-refresh": "^0.3.26",
52
52
  "@operato/scene-chartjs": "^0.1.4",
53
53
  "@operato/scene-clock": "^0.1.4",
54
54
  "@operato/scene-gauge": "^0.1.4",
55
+ "@operato/scene-half-roundrect": "^0.1.4",
55
56
  "@operato/scene-indoor-map": "^0.1.4",
56
57
  "@operato/scene-progressbar": "^0.1.4",
57
58
  "@operato/scene-random": "^0.1.4",
58
59
  "@operato/scene-switch": "^0.1.4",
59
60
  "@operato/scene-tab": "^0.1.4",
60
- "@operato/shell": "^0.3.24",
61
- "@operato/utils": "^0.3.24",
62
- "@things-factory/api": "^4.0.42",
63
- "@things-factory/apptool-ui": "^4.0.42",
64
- "@things-factory/auth-ui": "^4.0.42",
65
- "@things-factory/board-service": "^4.0.42",
66
- "@things-factory/board-ui": "^4.0.42",
67
- "@things-factory/context-ui": "^4.0.42",
68
- "@things-factory/dashboard": "^4.0.42",
69
- "@things-factory/export-ui": "^4.0.42",
70
- "@things-factory/export-ui-excel": "^4.0.42",
71
- "@things-factory/grist-ui": "^4.0.42",
72
- "@things-factory/help": "^4.0.42",
73
- "@things-factory/integration-ui": "^4.0.42",
74
- "@things-factory/lite-menu": "^4.0.42",
75
- "@things-factory/more-ui": "^4.0.42",
76
- "@things-factory/notification": "^4.0.42",
77
- "@things-factory/oauth2-client": "^4.0.42",
78
- "@things-factory/print-ui": "^4.0.42",
79
- "@things-factory/resource-ui": "^4.0.42",
80
- "@things-factory/scene-form": "^4.0.42",
81
- "@things-factory/scene-half-roundrect": "^4.0.9",
82
- "@things-factory/scene-news-ticker": "^4.0.42",
83
- "@things-factory/setting-base": "^4.0.42",
84
- "@things-factory/setting-ui": "^4.0.42",
85
- "@things-factory/shell": "^4.0.42",
86
- "@things-factory/system-ui": "^4.0.42"
61
+ "@operato/shell": "^0.3.26",
62
+ "@operato/utils": "^0.3.26",
63
+ "@things-factory/api": "^4.0.43",
64
+ "@things-factory/apptool-ui": "^4.0.43",
65
+ "@things-factory/auth-ui": "^4.0.43",
66
+ "@things-factory/board-service": "^4.0.43",
67
+ "@things-factory/board-ui": "^4.0.43",
68
+ "@things-factory/context-ui": "^4.0.43",
69
+ "@things-factory/dashboard": "^4.0.43",
70
+ "@things-factory/export-ui": "^4.0.43",
71
+ "@things-factory/export-ui-excel": "^4.0.43",
72
+ "@things-factory/grist-ui": "^4.0.43",
73
+ "@things-factory/help": "^4.0.43",
74
+ "@things-factory/integration-ui": "^4.0.43",
75
+ "@things-factory/lite-menu": "^4.0.43",
76
+ "@things-factory/more-ui": "^4.0.43",
77
+ "@things-factory/notification": "^4.0.43",
78
+ "@things-factory/oauth2-client": "^4.0.43",
79
+ "@things-factory/print-ui": "^4.0.43",
80
+ "@things-factory/resource-ui": "^4.0.43",
81
+ "@things-factory/scene-form": "^4.0.43",
82
+ "@things-factory/scene-news-ticker": "^4.0.43",
83
+ "@things-factory/setting-base": "^4.0.43",
84
+ "@things-factory/setting-ui": "^4.0.43",
85
+ "@things-factory/shell": "^4.0.43",
86
+ "@things-factory/system-ui": "^4.0.43"
87
87
  },
88
88
  "devDependencies": {
89
- "@things-factory/builder": "^4.0.42"
89
+ "@things-factory/builder": "^4.0.43"
90
90
  },
91
- "gitHead": "794709ebadf4ae0f89a107a86a41a381ce26b465"
91
+ "gitHead": "8f2a8008eb61b6efd266412be267186c5059fab6"
92
92
  }