@things-factory/meta-ui 7.0.1-alpha.24 → 7.0.1-alpha.29
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.
- package/client/actions/main.js +4 -3
- package/client/bootstrap.ts +10 -8
- package/client/component/popup/code-input-editor-popup.js +36 -45
- package/client/component/popup/file-upload-popup.js +8 -22
- package/client/component/popup/meta-object-selector-popup.js +110 -130
- package/client/component/popup/record-based-code-editor-popup.js +36 -45
- package/client/pages/activity/meta-activity-define-page.js +26 -25
- package/client/pages/entity/config-entity.js +14 -12
- package/client/pages/entity/main-menu-selector.js +7 -22
- package/client/pages/menu/dynamic-menu-template.js +1 -4
- package/client/pages/menu/dynamic-menu.js +8 -6
- package/client/pages/menu/export-menu-popup.js +5 -11
- package/client/pages/personalize/personal-column-selector.js +11 -17
- package/client/pages/terms/config-terminology.js +27 -25
- package/client/utils/meta-ui-util.js +50 -109
- package/client/viewparts/dynamic-menu-part.js +0 -1
- package/dist-client/actions/main.js +3 -3
- package/dist-client/actions/main.js.map +1 -1
- package/dist-client/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +9 -8
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/component/popup/code-input-editor-popup.js +9 -17
- package/dist-client/component/popup/code-input-editor-popup.js.map +1 -1
- package/dist-client/component/popup/file-upload-popup.js +6 -21
- package/dist-client/component/popup/file-upload-popup.js.map +1 -1
- package/dist-client/component/popup/meta-object-selector-popup.js +24 -34
- package/dist-client/component/popup/meta-object-selector-popup.js.map +1 -1
- package/dist-client/component/popup/record-based-code-editor-popup.js +16 -25
- package/dist-client/component/popup/record-based-code-editor-popup.js.map +1 -1
- package/dist-client/pages/activity/meta-activity-define-page.js +11 -8
- package/dist-client/pages/activity/meta-activity-define-page.js.map +1 -1
- package/dist-client/pages/entity/config-entity.js +13 -12
- package/dist-client/pages/entity/config-entity.js.map +1 -1
- package/dist-client/pages/entity/main-menu-selector.js +6 -22
- package/dist-client/pages/entity/main-menu-selector.js.map +1 -1
- package/dist-client/pages/menu/dynamic-menu-template.js +1 -4
- package/dist-client/pages/menu/dynamic-menu-template.js.map +1 -1
- package/dist-client/pages/menu/dynamic-menu.js +7 -6
- package/dist-client/pages/menu/dynamic-menu.js.map +1 -1
- package/dist-client/pages/menu/export-menu-popup.js +4 -11
- package/dist-client/pages/menu/export-menu-popup.js.map +1 -1
- package/dist-client/pages/personalize/personal-column-selector.js +10 -17
- package/dist-client/pages/personalize/personal-column-selector.js.map +1 -1
- package/dist-client/pages/terms/config-terminology.js +13 -11
- package/dist-client/pages/terms/config-terminology.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/utils/meta-ui-util.js +47 -106
- package/dist-client/utils/meta-ui-util.js.map +1 -1
- package/dist-client/viewparts/dynamic-menu-part.js +0 -1
- package/dist-client/viewparts/dynamic-menu-part.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -9
- package/translations/en.json +2 -12
- package/translations/ko.json +2 -12
- package/translations/ms.json +2 -12
- package/translations/zh.json +2 -12
- package/dist-server/constants/error-code.js +0 -6
- package/dist-server/constants/error-code.js.map +0 -1
- package/server/constants/error-code.ts +0 -2
package/client/actions/main.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import '@material/
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
2
3
|
import '../viewparts/dynamic-menu-part'
|
|
3
4
|
|
|
4
5
|
import gql from 'graphql-tag'
|
|
@@ -43,12 +44,12 @@ export async function setupMenuPart(options) {
|
|
|
43
44
|
HAMBURGER = {
|
|
44
45
|
name: 'hamburger',
|
|
45
46
|
template: html`
|
|
46
|
-
<
|
|
47
|
+
<md-icon
|
|
47
48
|
@click=${e =>
|
|
48
49
|
toggleOverlay('dynamic-menu-part', {
|
|
49
50
|
backdrop: true
|
|
50
51
|
})}
|
|
51
|
-
>view_headline</
|
|
52
|
+
>view_headline</md-icon
|
|
52
53
|
>
|
|
53
54
|
`,
|
|
54
55
|
position: TOOL_POSITION.FRONT_END
|
package/client/bootstrap.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import { html } from 'lit-html'
|
|
2
4
|
|
|
3
5
|
import { navigate, store } from '@operato/shell'
|
|
@@ -81,7 +83,7 @@ export default async function bootstrap(module) {
|
|
|
81
83
|
store.dispatch({
|
|
82
84
|
type: ADD_MORENDA,
|
|
83
85
|
morenda: {
|
|
84
|
-
icon: html`<
|
|
86
|
+
icon: html`<md-icon>auto_fix_high</md-icon>`,
|
|
85
87
|
name: html`<ox-i18n msgid="title.dynamic_menu"></ox-i18n>`,
|
|
86
88
|
action: () => {
|
|
87
89
|
navigate('dynamic-menu')
|
|
@@ -93,7 +95,7 @@ export default async function bootstrap(module) {
|
|
|
93
95
|
store.dispatch({
|
|
94
96
|
type: ADD_MORENDA,
|
|
95
97
|
morenda: {
|
|
96
|
-
icon: html`<
|
|
98
|
+
icon: html`<md-icon>filter_tilt_shift</md-icon>`,
|
|
97
99
|
name: html`<ox-i18n msgid="title.entity"></ox-i18n>`,
|
|
98
100
|
action: () => {
|
|
99
101
|
navigate('config-entity')
|
|
@@ -105,7 +107,7 @@ export default async function bootstrap(module) {
|
|
|
105
107
|
store.dispatch({
|
|
106
108
|
type: ADD_MORENDA,
|
|
107
109
|
morenda: {
|
|
108
|
-
icon: html`<
|
|
110
|
+
icon: html`<md-icon>speaker_notes</md-icon>`,
|
|
109
111
|
name: html`<ox-i18n msgid="title.terminology"></ox-i18n>`,
|
|
110
112
|
action: () => {
|
|
111
113
|
navigate('config-terminology')
|
|
@@ -117,7 +119,7 @@ export default async function bootstrap(module) {
|
|
|
117
119
|
store.dispatch({
|
|
118
120
|
type: ADD_MORENDA,
|
|
119
121
|
morenda: {
|
|
120
|
-
icon: html`<
|
|
122
|
+
icon: html`<md-icon>code</md-icon>`,
|
|
121
123
|
name: html`<ox-i18n msgid="title.code_management"></ox-i18n>`,
|
|
122
124
|
action: () => {
|
|
123
125
|
navigate('codes')
|
|
@@ -129,7 +131,7 @@ export default async function bootstrap(module) {
|
|
|
129
131
|
store.dispatch({
|
|
130
132
|
type: ADD_MORENDA,
|
|
131
133
|
morenda: {
|
|
132
|
-
icon: html`<
|
|
134
|
+
icon: html`<md-icon>business_center</md-icon>`,
|
|
133
135
|
name: html`<ox-i18n msgid="title.meta_activity_list"></ox-i18n>`,
|
|
134
136
|
action: () => {
|
|
135
137
|
navigate('meta-activity-list')
|
|
@@ -140,7 +142,7 @@ export default async function bootstrap(module) {
|
|
|
140
142
|
store.dispatch({
|
|
141
143
|
type: ADD_MORENDA,
|
|
142
144
|
morenda: {
|
|
143
|
-
icon: html`<
|
|
145
|
+
icon: html`<md-icon>margin</md-icon>`,
|
|
144
146
|
name: html`<ox-i18n msgid="title.meta_activity_define"></ox-i18n>`,
|
|
145
147
|
action: () => {
|
|
146
148
|
navigate('meta-activity-define')
|
|
@@ -151,7 +153,7 @@ export default async function bootstrap(module) {
|
|
|
151
153
|
store.dispatch({
|
|
152
154
|
type: ADD_MORENDA,
|
|
153
155
|
morenda: {
|
|
154
|
-
icon: html`<
|
|
156
|
+
icon: html`<md-icon>work</md-icon>`,
|
|
155
157
|
name: html`<ox-i18n msgid="title.activity_list"></ox-i18n>`,
|
|
156
158
|
action: () => {
|
|
157
159
|
navigate('activity-list')
|
|
@@ -162,7 +164,7 @@ export default async function bootstrap(module) {
|
|
|
162
164
|
store.dispatch({
|
|
163
165
|
type: ADD_MORENDA,
|
|
164
166
|
morenda: {
|
|
165
|
-
icon: html` <
|
|
167
|
+
icon: html` <md-icon>dataset</md-icon> `,
|
|
166
168
|
name: html` <ox-i18n msgid="text.attribute management"></ox-i18n> `,
|
|
167
169
|
action: () => {
|
|
168
170
|
navigate('attributes')
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import { css, html, LitElement } from 'lit'
|
|
2
4
|
import { CommonGristStyles, ButtonContainerStyles } from '@operato/styles'
|
|
3
|
-
import { TermsUtil } from '../../utils/terms-util'
|
|
4
|
-
import { MetaApi } from
|
|
5
|
+
import { TermsUtil } from '../../utils/terms-util'
|
|
6
|
+
import { MetaApi } from '../../utils/meta-api'
|
|
5
7
|
import '@operato/input/ox-input-code.js'
|
|
6
8
|
import { closePopup } from '@operato/popup'
|
|
7
9
|
|
|
@@ -24,47 +26,36 @@ export class CodeInputEditorPopup extends LitElement {
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
ox-input-code {
|
|
27
|
-
margin:10px;
|
|
29
|
+
margin: 10px;
|
|
28
30
|
overflow-y: auto;
|
|
29
31
|
flex: 1;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
.button-container {
|
|
33
|
-
display: flex;
|
|
34
|
-
margin-left: auto;
|
|
35
|
-
}
|
|
36
33
|
`
|
|
37
34
|
]
|
|
38
35
|
|
|
39
|
-
async connectedCallback(){
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.codeVlaue = JSON.stringify(this.value, 0, 2);
|
|
36
|
+
async connectedCallback() {
|
|
37
|
+
if (typeof this.value === 'object') {
|
|
38
|
+
this.codeVlaue = JSON.stringify(this.value, 0, 2)
|
|
43
39
|
} else {
|
|
44
|
-
this.codeVlaue = this.value
|
|
45
|
-
|
|
40
|
+
this.codeVlaue = this.value
|
|
46
41
|
}
|
|
47
42
|
|
|
48
|
-
await super.connectedCallback()
|
|
43
|
+
await super.connectedCallback()
|
|
49
44
|
}
|
|
50
45
|
|
|
51
|
-
async firstUpdated(){
|
|
52
|
-
await super.firstUpdated()
|
|
46
|
+
async firstUpdated() {
|
|
47
|
+
await super.firstUpdated()
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
render(){
|
|
50
|
+
render() {
|
|
56
51
|
return html`
|
|
57
52
|
<ox-input-code mode="javascript" value=${this.codeVlaue} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
</mwc-button>
|
|
65
|
-
<mwc-button raised label="${TermsUtil.tButton('confirm')}" style="margin-left:7px;margin-top:7px;"
|
|
66
|
-
@click=${this.clickConfirm.bind(this)}>
|
|
67
|
-
</mwc-button>
|
|
53
|
+
|
|
54
|
+
<div id="button-container" class="button-container" style="margin-left:unset;">
|
|
55
|
+
<button @click=${this.clickEmpty.bind(this)}><md-icon>clear_box_outline_blank</md-icon>${TermsUtil.tButton('empty')}</button>
|
|
56
|
+
<div filler></div>
|
|
57
|
+
<button @click=${this.clickCancel.bind(this)}><md-icon>cancel</md-icon>${TermsUtil.tButton('cancel')}</button>
|
|
58
|
+
<button @click=${this.clickConfirm.bind(this)}><md-icon>done</md-icon>${TermsUtil.tButton('confirm')}</button>
|
|
68
59
|
</div>
|
|
69
60
|
`
|
|
70
61
|
}
|
|
@@ -76,42 +67,42 @@ export class CodeInputEditorPopup extends LitElement {
|
|
|
76
67
|
/**
|
|
77
68
|
* @description 비우기
|
|
78
69
|
***************************
|
|
79
|
-
* @returns
|
|
70
|
+
* @returns
|
|
80
71
|
*/
|
|
81
|
-
async clickEmpty(e){
|
|
72
|
+
async clickEmpty(e) {
|
|
82
73
|
this.confirmCallback && this.confirmCallback(null)
|
|
83
74
|
closePopup(this)
|
|
84
75
|
}
|
|
85
76
|
/**
|
|
86
|
-
* @description 취소
|
|
77
|
+
* @description 취소
|
|
87
78
|
***************************
|
|
88
|
-
* @returns
|
|
79
|
+
* @returns
|
|
89
80
|
*/
|
|
90
|
-
async clickCancel(e){
|
|
81
|
+
async clickCancel(e) {
|
|
91
82
|
closePopup(this)
|
|
92
83
|
}
|
|
93
84
|
/**
|
|
94
|
-
* @description 확인
|
|
85
|
+
* @description 확인
|
|
95
86
|
***************************
|
|
96
|
-
* @returns
|
|
87
|
+
* @returns
|
|
97
88
|
*/
|
|
98
|
-
async clickConfirm(e){
|
|
99
|
-
if(this.codeVlaue === this.codeEditor.value){
|
|
100
|
-
MetaApi.showToast('info', TermsUtil.tText('NOTHING_CHANGED'))
|
|
101
|
-
return
|
|
89
|
+
async clickConfirm(e) {
|
|
90
|
+
if (this.codeVlaue === this.codeEditor.value) {
|
|
91
|
+
MetaApi.showToast('info', TermsUtil.tText('NOTHING_CHANGED'))
|
|
92
|
+
return
|
|
102
93
|
}
|
|
103
|
-
this.changedValue(this.codeEditor.value)
|
|
94
|
+
this.changedValue(this.codeEditor.value)
|
|
104
95
|
}
|
|
105
96
|
|
|
106
97
|
/**
|
|
107
|
-
* @description 확정
|
|
98
|
+
* @description 확정
|
|
108
99
|
***************************
|
|
109
|
-
* @param {*} record
|
|
100
|
+
* @param {*} record
|
|
110
101
|
*/
|
|
111
|
-
async changedValue(value){
|
|
102
|
+
async changedValue(value) {
|
|
112
103
|
this.confirmCallback && this.confirmCallback(value)
|
|
113
104
|
closePopup(this)
|
|
114
105
|
}
|
|
115
106
|
}
|
|
116
|
-
|
|
117
|
-
customElements.define('code-input-editor-popup', CodeInputEditorPopup)
|
|
107
|
+
|
|
108
|
+
customElements.define('code-input-editor-popup', CodeInputEditorPopup)
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import { client, gqlContext } from '@things-factory/shell'
|
|
2
4
|
import { css, html, LitElement } from 'lit'
|
|
3
5
|
import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
4
6
|
import { CommonGristStyles, ButtonContainerStyles } from '@operato/styles'
|
|
5
7
|
import gql from 'graphql-tag'
|
|
6
|
-
import { TermsUtil } from '../../utils/terms-util'
|
|
8
|
+
import { TermsUtil } from '../../utils/terms-util'
|
|
7
9
|
import { ValueUtil } from '../../utils/value-util'
|
|
8
10
|
import { ServiceUtil } from '../../utils/service-util'
|
|
9
|
-
import { MetaApi } from
|
|
10
|
-
import { MetaUiUtil } from
|
|
11
|
+
import { MetaApi } from '../../utils/meta-api'
|
|
12
|
+
import { MetaUiUtil } from '../../utils/meta-ui-util'
|
|
11
13
|
import { isMobileDevice } from '@operato/utils'
|
|
12
14
|
import { closePopup } from '@operato/popup'
|
|
13
15
|
|
|
14
16
|
class FileUploadPopup extends LitElement {
|
|
15
17
|
static get styles() {
|
|
16
18
|
return [
|
|
19
|
+
ButtonContainerStyles,
|
|
17
20
|
SingleColumnFormStyles,
|
|
18
21
|
css`
|
|
19
22
|
:host {
|
|
@@ -23,27 +26,10 @@ class FileUploadPopup extends LitElement {
|
|
|
23
26
|
overflow-x: overlay;
|
|
24
27
|
background-color: var(--main-section-background-color);
|
|
25
28
|
}
|
|
29
|
+
|
|
26
30
|
.input-container {
|
|
27
31
|
display: flex;
|
|
28
32
|
}
|
|
29
|
-
.button-container {
|
|
30
|
-
padding: 10px 0 12px 0;
|
|
31
|
-
text-align: center;
|
|
32
|
-
}
|
|
33
|
-
.button-container > button {
|
|
34
|
-
background-color: var(--button-background-color);
|
|
35
|
-
border: var(--button-border);
|
|
36
|
-
border-radius: var(--button-border-radius);
|
|
37
|
-
margin: var(--button-margin);
|
|
38
|
-
padding: var(--button-padding);
|
|
39
|
-
color: var(--button-color);
|
|
40
|
-
font: var(--button-font);
|
|
41
|
-
text-transform: var(--button-text-transform);
|
|
42
|
-
}
|
|
43
|
-
.button-container > button:hover,
|
|
44
|
-
.button-container > button:active {
|
|
45
|
-
background-color: var(--button-background-focus-color);
|
|
46
|
-
}
|
|
47
33
|
`
|
|
48
34
|
]
|
|
49
35
|
}
|
|
@@ -84,7 +70,7 @@ class FileUploadPopup extends LitElement {
|
|
|
84
70
|
</div>
|
|
85
71
|
|
|
86
72
|
<div class="button-container">
|
|
87
|
-
<
|
|
73
|
+
<button @click=${this._createAttachment}><md-icon>attach_file_add</md-icon>${TermsUtil.tButton('create')}</button>
|
|
88
74
|
</div>
|
|
89
75
|
`
|
|
90
76
|
}
|