@operato/app 2.0.0-alpha.64 → 2.0.0-alpha.69
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/CHANGELOG.md +18 -0
- package/demo/data-grist-test.html +25 -14
- package/demo/index.html +13 -2
- package/dist/src/grist-editor/ox-grist-editor-resource-code.d.ts +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-code.js +2 -2
- package/dist/src/grist-editor/ox-grist-editor-resource-code.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-id.d.ts +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-id.js +2 -2
- package/dist/src/grist-editor/ox-grist-editor-resource-id.js.map +1 -1
- package/dist/src/grist-editor/ox-popup-code-input.d.ts +1 -0
- package/dist/src/grist-editor/ox-popup-code-input.js +3 -2
- package/dist/src/grist-editor/ox-popup-code-input.js.map +1 -1
- package/dist/src/grist-editor/ox-popup-privilege-input.d.ts +1 -0
- package/dist/src/grist-editor/ox-popup-privilege-input.js +8 -5
- package/dist/src/grist-editor/ox-popup-privilege-input.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-id.d.ts +1 -0
- package/dist/src/selector/ox-selector-resource-id.js +4 -3
- package/dist/src/selector/ox-selector-resource-id.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-object-legacy.d.ts +1 -0
- package/dist/src/selector/ox-selector-resource-object-legacy.js +4 -3
- package/dist/src/selector/ox-selector-resource-object-legacy.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-object.d.ts +1 -0
- package/dist/src/selector/ox-selector-resource-object.js +4 -3
- package/dist/src/selector/ox-selector-resource-object.js.map +1 -1
- package/dist/stories/ox-input-graphql.stories.js +13 -1
- package/dist/stories/ox-input-graphql.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -15
- package/src/grist-editor/ox-grist-editor-resource-code.ts +2 -2
- package/src/grist-editor/ox-grist-editor-resource-id.ts +2 -2
- package/src/grist-editor/ox-popup-code-input.ts +3 -2
- package/src/grist-editor/ox-popup-privilege-input.ts +8 -5
- package/src/selector/ox-selector-resource-id.ts +4 -3
- package/src/selector/ox-selector-resource-object-legacy.ts +10 -9
- package/src/selector/ox-selector-resource-object.ts +4 -3
- package/stories/ox-input-graphql.stories.ts +13 -1
- package/themes/app-theme.css +11 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/app",
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "2.0.0-alpha.
|
|
5
|
+
"version": "2.0.0-alpha.69",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -133,21 +133,19 @@
|
|
|
133
133
|
"@codemirror/view": "^6.22.1",
|
|
134
134
|
"@graphql-tools/delegate": "^10.0.1",
|
|
135
135
|
"@graphql-tools/wrap": "^8.5.0",
|
|
136
|
-
"@material/
|
|
137
|
-
"@
|
|
138
|
-
"@
|
|
139
|
-
"@operato/
|
|
140
|
-
"@operato/
|
|
141
|
-
"@operato/font": "^2.0.0-alpha.64",
|
|
142
|
-
"@operato/form": "^2.0.0-alpha.57",
|
|
136
|
+
"@material/web": "^1.4.0",
|
|
137
|
+
"@operato/attachment": "^2.0.0-alpha.69",
|
|
138
|
+
"@operato/data-grist": "^2.0.0-alpha.68",
|
|
139
|
+
"@operato/font": "^2.0.0-alpha.69",
|
|
140
|
+
"@operato/form": "^2.0.0-alpha.68",
|
|
143
141
|
"@operato/graphql": "^2.0.0-alpha.57",
|
|
144
142
|
"@operato/i18n": "^2.0.0-alpha.59",
|
|
145
|
-
"@operato/input": "^2.0.0-alpha.
|
|
146
|
-
"@operato/layout": "^2.0.0-alpha.
|
|
147
|
-
"@operato/property-editor": "^2.0.0-alpha.
|
|
148
|
-
"@operato/shell": "^2.0.0-alpha.
|
|
149
|
-
"@operato/styles": "^2.0.0-alpha.
|
|
150
|
-
"@operato/utils": "^2.0.0-alpha.
|
|
143
|
+
"@operato/input": "^2.0.0-alpha.68",
|
|
144
|
+
"@operato/layout": "^2.0.0-alpha.69",
|
|
145
|
+
"@operato/property-editor": "^2.0.0-alpha.69",
|
|
146
|
+
"@operato/shell": "^2.0.0-alpha.68",
|
|
147
|
+
"@operato/styles": "^2.0.0-alpha.68",
|
|
148
|
+
"@operato/utils": "^2.0.0-alpha.68",
|
|
151
149
|
"cm6-graphql": "^0.0.14",
|
|
152
150
|
"codemirror": "^6.0.1",
|
|
153
151
|
"cronstrue": "^2.2.0",
|
|
@@ -189,5 +187,5 @@
|
|
|
189
187
|
"prettier --write"
|
|
190
188
|
]
|
|
191
189
|
},
|
|
192
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "a77863b1e2663033bd55929376827bdbf8db2cce"
|
|
193
191
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@material/
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
2
|
import { OxGristEditor, RecordConfig } from '@operato/data-grist'
|
|
3
3
|
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
@@ -20,7 +20,7 @@ export class OxGristEditorResourceCode extends OxGristEditor {
|
|
|
20
20
|
${(codes || []).map(
|
|
21
21
|
(code: CommonCodeDetail) => html`
|
|
22
22
|
<option ?selected=${code.name == this.value} value=${code.name}>
|
|
23
|
-
|
|
23
|
+
${code.name == '' ? '' : selectDispOpt.replace('name', code.description).replace('code', code.name)}
|
|
24
24
|
</option>
|
|
25
25
|
`
|
|
26
26
|
)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@material/
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
2
|
import '../selector/ox-selector-resource-id.js'
|
|
3
3
|
|
|
4
4
|
import { html } from 'lit'
|
|
@@ -19,7 +19,7 @@ export class OxGristEditorResourceId extends OxGristEditor {
|
|
|
19
19
|
${!value
|
|
20
20
|
? html`<span tabindex="0"></span>`
|
|
21
21
|
: html` <span tabindex="0">${value[nameField]} (${value[descriptionField]})</span> `}
|
|
22
|
-
<
|
|
22
|
+
<md-icon>arrow_drop_down</md-icon>
|
|
23
23
|
`
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js'
|
|
1
2
|
import '@operato/input/ox-input-code.js'
|
|
2
3
|
|
|
3
4
|
import { css, html, LitElement } from 'lit'
|
|
@@ -45,8 +46,8 @@ export class OxPopupCodeInput extends LitElement {
|
|
|
45
46
|
</ox-input-code>
|
|
46
47
|
|
|
47
48
|
<div class="button-container">
|
|
48
|
-
<
|
|
49
|
-
<
|
|
49
|
+
<md-elevated-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</md-elevated-button>
|
|
50
|
+
<md-elevated-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</md-elevated-button>
|
|
50
51
|
</div>
|
|
51
52
|
`
|
|
52
53
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js'
|
|
1
2
|
import '@operato/input/ox-input-privilege.js'
|
|
2
3
|
|
|
3
4
|
import gql from 'graphql-tag'
|
|
@@ -32,9 +33,11 @@ export class OxPopupPrivilegeInput extends LitElement {
|
|
|
32
33
|
.button-container {
|
|
33
34
|
display: flex;
|
|
34
35
|
flex-direction: row;
|
|
36
|
+
gap: 10px;
|
|
37
|
+
padding: var(--padding-default);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
div[
|
|
40
|
+
div[filler] {
|
|
38
41
|
flex: 1;
|
|
39
42
|
}
|
|
40
43
|
`
|
|
@@ -52,10 +55,10 @@ export class OxPopupPrivilegeInput extends LitElement {
|
|
|
52
55
|
</ox-input-privilege>
|
|
53
56
|
|
|
54
57
|
<div class="button-container">
|
|
55
|
-
<
|
|
56
|
-
<div
|
|
57
|
-
<
|
|
58
|
-
<
|
|
58
|
+
<md-elevated-button @click=${this.onReset.bind(this)}>${i18next.t('button.reset')}</md-elevated-button>
|
|
59
|
+
<div filler></div>
|
|
60
|
+
<md-elevated-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</md-elevated-button>
|
|
61
|
+
<md-elevated-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</md-elevated-button>
|
|
59
62
|
</div>
|
|
60
63
|
`
|
|
61
64
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
|
|
3
4
|
import gql from 'graphql-tag'
|
|
@@ -72,9 +73,9 @@ export class OxSelectorResourceId extends LitElement {
|
|
|
72
73
|
</ox-grist>
|
|
73
74
|
|
|
74
75
|
<div class="button-container">
|
|
75
|
-
<
|
|
76
|
-
<
|
|
77
|
-
<
|
|
76
|
+
<md-elevated-button @click=${this.onEmpty.bind(this)}>${i18next.t('button.empty')}</md-elevated-button>
|
|
77
|
+
<md-elevated-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</md-elevated-button>
|
|
78
|
+
<md-elevated-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</md-elevated-button>
|
|
78
79
|
</div>
|
|
79
80
|
`
|
|
80
81
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
import '@operato/form/ox-search-form.js'
|
|
3
4
|
|
|
@@ -111,9 +112,9 @@ export class OxSelectorResourceObjectLegacy extends LitElement {
|
|
|
111
112
|
</ox-grist>
|
|
112
113
|
|
|
113
114
|
<div class="button-container">
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
<
|
|
115
|
+
<md-elevated-button @click=${this.onEmpty.bind(this)}>${i18next.t('button.empty')}</md-elevated-button>
|
|
116
|
+
<md-elevated-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</md-elevated-button>
|
|
117
|
+
<md-elevated-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</md-elevated-button>
|
|
117
118
|
</div>
|
|
118
119
|
`
|
|
119
120
|
}
|
|
@@ -223,17 +224,17 @@ export class OxSelectorResourceObjectLegacy extends LitElement {
|
|
|
223
224
|
fieldType === 'string'
|
|
224
225
|
? 'text'
|
|
225
226
|
: numberTypes.indexOf(fieldType) >= 0
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
? 'number'
|
|
228
|
+
: fieldType === 'boolean'
|
|
229
|
+
? 'checkbox'
|
|
230
|
+
: fieldType,
|
|
230
231
|
queryName: selectField.queryName,
|
|
231
232
|
props:
|
|
232
233
|
fieldType === 'string'
|
|
233
234
|
? { searchOper: 'i_like' }
|
|
234
235
|
: fieldType === 'object'
|
|
235
|
-
|
|
236
|
-
|
|
236
|
+
? { searchOper: 'in' }
|
|
237
|
+
: { searchOper: 'eq' },
|
|
237
238
|
attrs: fieldType === 'boolean' ? ['indeterminated'] : []
|
|
238
239
|
}
|
|
239
240
|
})
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js'
|
|
1
2
|
import '@operato/data-grist'
|
|
2
3
|
|
|
3
4
|
import gql from 'graphql-tag'
|
|
@@ -98,9 +99,9 @@ export class OxSelectorResourceObject extends LitElement {
|
|
|
98
99
|
</ox-grist>
|
|
99
100
|
|
|
100
101
|
<div class="button-container">
|
|
101
|
-
<
|
|
102
|
-
<
|
|
103
|
-
<
|
|
102
|
+
<md-elevated-button @click=${this.onEmpty.bind(this)}>${i18next.t('button.empty')}</md-elevated-button>
|
|
103
|
+
<md-elevated-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</md-elevated-button>
|
|
104
|
+
<md-elevated-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</md-elevated-button>
|
|
104
105
|
</div>
|
|
105
106
|
`
|
|
106
107
|
}
|
|
@@ -24,7 +24,19 @@ interface ArgTypes {
|
|
|
24
24
|
|
|
25
25
|
const Template: Story<ArgTypes> = ({ name = 'code', value = '' }: ArgTypes) => html`
|
|
26
26
|
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
27
|
-
<link
|
|
27
|
+
<link
|
|
28
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
29
|
+
rel="stylesheet"
|
|
30
|
+
/>
|
|
31
|
+
<link
|
|
32
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
33
|
+
rel="stylesheet"
|
|
34
|
+
/>
|
|
35
|
+
<link
|
|
36
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
37
|
+
rel="stylesheet"
|
|
38
|
+
/>
|
|
39
|
+
|
|
28
40
|
<style>
|
|
29
41
|
body {
|
|
30
42
|
}
|
package/themes/app-theme.css
CHANGED
|
@@ -82,6 +82,17 @@ body {
|
|
|
82
82
|
--mdc-button-outline-width: 1px;
|
|
83
83
|
--mdc-button-horizontal-padding: 16px;
|
|
84
84
|
|
|
85
|
+
/* material style component themes */
|
|
86
|
+
--md-theme-on-primary: var(--theme-white-color);
|
|
87
|
+
--md-theme-primary: var(--secondary-text-color);
|
|
88
|
+
--md-theme-on-secondary: var(--theme-white-color);
|
|
89
|
+
--md-theme-secondary: var(--primary-color);
|
|
90
|
+
--md-button-outline-color: var(--primary-color);
|
|
91
|
+
--md-danger-button-primary-color: var(--status-danger-color);
|
|
92
|
+
--md-danger-button-outline-color: var(--status-danger-color);
|
|
93
|
+
--md-button-outline-width: 1px;
|
|
94
|
+
--md-button-horizontal-padding: 16px;
|
|
95
|
+
|
|
85
96
|
/* button style */
|
|
86
97
|
--button-background-color: #fafbfc;
|
|
87
98
|
--button-background-focus-color: var(--primary-color);
|