@things-factory/operato-tools 7.0.1-alpha.9 → 7.0.1-alpha.92

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,12 +1,9 @@
1
1
  import { html, css } from 'lit'
2
- import { merge } from 'lodash'
3
- import gql from 'graphql-tag'
2
+ import merge from 'lodash-es/merge'
4
3
 
5
- import { i18next, localize } from '@things-factory/i18n-base'
6
- import { PageView } from '@things-factory/shell'
4
+ import { i18next, localize } from '@operato/i18n'
5
+ import { PageView } from '@operato/shell'
7
6
 
8
- import { client } from '@operato/graphql'
9
- import { store } from '@operato/shell'
10
7
  import { CommonButtonStyles } from '@operato/styles'
11
8
 
12
9
  import { ButtonConfigTabMixin } from './button-config-tab-mixin'
@@ -34,7 +31,13 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
34
31
  GraphQlConfigTabMixin(
35
32
  GridConfigTabMixin(
36
33
  ColumnConfigTabMixin(
37
- ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView)))))))
34
+ ButtonConfigTabMixin(
35
+ SearchConfigTabMixin(
36
+ FormConfigTabMixin(
37
+ TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))
38
+ )
39
+ )
40
+ )
38
41
  )
39
42
  )
40
43
  )
@@ -269,7 +272,9 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
269
272
  template = JSON.stringify(template)
270
273
  template = MetaCrypto.enc(template)
271
274
 
272
- let result = await MetaApi.updateMultiple('updateMultipleMenu', [{ id: this.menuId, template: template, cuFlag: 'M' }])
275
+ let result = await MetaApi.updateMultiple('updateMultipleMenu', [
276
+ { id: this.menuId, template: template, cuFlag: 'M' }
277
+ ])
273
278
  if (result) {
274
279
  await this.initData()
275
280
  }
@@ -1,6 +1,6 @@
1
1
  import { html, css } from 'lit'
2
2
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
- import { store, PageView } from '@things-factory/shell'
3
+ import { store, PageView } from '@operato/shell'
4
4
 
5
5
  import { TermsUtil } from '@things-factory/meta-ui'
6
6
 
@@ -82,18 +82,34 @@ body {
82
82
  --mdc-button-outline-width: 1px;
83
83
  --mdc-button-horizontal-padding: 16px;
84
84
 
85
+ --md-fab-container-color: var(--primary-color);
86
+ --md-fab-icon-color: var(--focus-color);
87
+
88
+ --md-theme-on-primary: var(--theme-white-color);
89
+ --md-theme-primary: var(--secondary-text-color);
90
+ --md-theme-on-secondary: var(--theme-white-color);
91
+ --md-theme-secondary: var(--primary-color);
92
+ --md-button-outline-color: var(--primary-color);
93
+ --md-danger-button-primary-color: var(--status-danger-color);
94
+ --md-danger-button-outline-color: var(--status-danger-color);
95
+ --md-button-outline-width: 1px;
96
+ --md-button-horizontal-padding: 16px;
97
+
85
98
  /* button style */
86
99
  --button-background-color: #fafbfc;
87
100
  --button-background-focus-color: var(--primary-color);
88
101
  --button-border: var(--border-dark-color);
89
102
  --button-border-radius: var(--border-radius);
90
103
  --button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
91
- --button-padding: var(--padding-default);
104
+ --button-padding: calc(var(--padding-narrow) * 1.5) var(--padding-wide);
92
105
  --button-color: var(--secondary-color);
93
- --button-font: normal 15px var(--theme-font);
106
+ --button-font: 600 var(--fontsize-default) var(--theme-font);
94
107
  --button-text-transform: capitalize;
95
108
  --button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
96
109
  --button-activ-border: 1px solid var(--primary-color);
110
+ --button-activ-background-color: var(--primary-color);
111
+ --button-activ-color: var(--theme-white-color);
112
+ --iconbtn-padding: var(--padding-narrow);
97
113
 
98
114
  --button-primary-background-color: var(--primary-color);
99
115
  --button-primary-active-background-color: var(--status-success-color);
@@ -124,7 +140,7 @@ body {
124
140
  --label-color: var(--secondary-color);
125
141
  --label-text-transform: capitalize;
126
142
  --input-margin: var(--margin-narrow) 0;
127
- --input-padding: var(--padding-default);
143
+ --input-padding: 6px 2px;
128
144
  --input-min-width: 200px;
129
145
  --input-font: normal var(--fontsize-default) var(--theme-font);
130
146
  --input-hint-font: normal var(--fontsize-small) var(--theme-font);