@operato/app 2.0.0-beta.8 → 7.0.0-rc.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.
- package/CHANGELOG.md +198 -0
- package/dist/src/grist-editor/ox-grist-renderer-crontab.js +1 -12
- package/dist/src/grist-editor/ox-grist-renderer-crontab.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-renderer-resource-code.js +2 -13
- package/dist/src/grist-editor/ox-grist-renderer-resource-code.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -15
- package/src/grist-editor/ox-grist-renderer-crontab.ts +1 -14
- package/src/grist-editor/ox-grist-renderer-resource-code.ts +2 -15
- package/themes/app-theme.css +0 -3
- package/themes/grist-theme.css +2 -2
package/package.json
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
"name": "@operato/app",
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0-rc.0",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./dist/src/index.js",
|
|
10
|
+
"./package.json": "./package.json",
|
|
10
11
|
"./input.js": "./dist/src/input/index.js",
|
|
11
12
|
"./input/ox-input-graphql.js": "./dist/src/input/ox-input-graphql.js",
|
|
12
13
|
"./input/ox-input-background-pattern.js": "./dist/src/input/ox-input-background-pattern.js",
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
"license": "MIT",
|
|
106
|
+
"operato": true,
|
|
105
107
|
"publishConfig": {
|
|
106
108
|
"access": "public",
|
|
107
109
|
"@operato:registry": "https://registry.npmjs.org"
|
|
@@ -133,19 +135,19 @@
|
|
|
133
135
|
"@codemirror/view": "^6.22.1",
|
|
134
136
|
"@graphql-tools/delegate": "^10.0.1",
|
|
135
137
|
"@graphql-tools/wrap": "^8.5.0",
|
|
136
|
-
"@material/web": "^1.
|
|
137
|
-
"@operato/attachment": "^
|
|
138
|
-
"@operato/data-grist": "^
|
|
139
|
-
"@operato/font": "^
|
|
140
|
-
"@operato/form": "^
|
|
141
|
-
"@operato/graphql": "^
|
|
142
|
-
"@operato/i18n": "^
|
|
143
|
-
"@operato/input": "^
|
|
144
|
-
"@operato/layout": "^
|
|
145
|
-
"@operato/property-editor": "^
|
|
146
|
-
"@operato/shell": "^
|
|
147
|
-
"@operato/styles": "^
|
|
148
|
-
"@operato/utils": "^
|
|
138
|
+
"@material/web": "^1.5.0",
|
|
139
|
+
"@operato/attachment": "^7.0.0-rc.0",
|
|
140
|
+
"@operato/data-grist": "^7.0.0-rc.0",
|
|
141
|
+
"@operato/font": "^7.0.0-rc.0",
|
|
142
|
+
"@operato/form": "^7.0.0-rc.0",
|
|
143
|
+
"@operato/graphql": "^7.0.0-rc.0",
|
|
144
|
+
"@operato/i18n": "^7.0.0-rc.0",
|
|
145
|
+
"@operato/input": "^7.0.0-rc.0",
|
|
146
|
+
"@operato/layout": "^7.0.0-rc.0",
|
|
147
|
+
"@operato/property-editor": "^7.0.0-rc.0",
|
|
148
|
+
"@operato/shell": "^7.0.0-rc.0",
|
|
149
|
+
"@operato/styles": "^7.0.0-rc.0",
|
|
150
|
+
"@operato/utils": "^7.0.0-rc.0",
|
|
149
151
|
"cm6-graphql": "^0.0.14",
|
|
150
152
|
"codemirror": "^6.0.1",
|
|
151
153
|
"cronstrue": "^2.2.0",
|
|
@@ -186,5 +188,5 @@
|
|
|
186
188
|
"prettier --write"
|
|
187
189
|
]
|
|
188
190
|
},
|
|
189
|
-
"gitHead": "
|
|
191
|
+
"gitHead": "6ea42336e40d8eae2c11a9ebdfc21dd1cbcefca1"
|
|
190
192
|
}
|
|
@@ -3,19 +3,6 @@ import i18next from 'i18next'
|
|
|
3
3
|
import { html } from 'lit'
|
|
4
4
|
|
|
5
5
|
import { FieldRenderer } from '@operato/data-grist'
|
|
6
|
-
import { detectOverflow } from '@operato/utils'
|
|
7
|
-
|
|
8
|
-
function onmouseover(e: Event) {
|
|
9
|
-
const element = e.target as HTMLSpanElement
|
|
10
|
-
if (detectOverflow(element)) {
|
|
11
|
-
element.setAttribute('data-tooltip', element.textContent!)
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function onmouseout(e: Event) {
|
|
16
|
-
const element = e.target as HTMLSpanElement
|
|
17
|
-
element.removeAttribute('data-tooltip')
|
|
18
|
-
}
|
|
19
6
|
|
|
20
7
|
export const OxGristRendererCrontab: FieldRenderer = (value, column, record, rowIndex, field) => {
|
|
21
8
|
let text = ''
|
|
@@ -27,5 +14,5 @@ export const OxGristRendererCrontab: FieldRenderer = (value, column, record, row
|
|
|
27
14
|
console.error(e)
|
|
28
15
|
}
|
|
29
16
|
|
|
30
|
-
return html`<span
|
|
17
|
+
return html`<span data-reactive-tooltip>${text}</span>`
|
|
31
18
|
}
|
|
@@ -4,7 +4,6 @@ import { client, gqlContext } from '@operato/graphql'
|
|
|
4
4
|
import { customElement } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
6
|
import { OxGristRenderer } from '@operato/data-grist'
|
|
7
|
-
import { detectOverflow } from '@operato/utils'
|
|
8
7
|
|
|
9
8
|
type CommonCodeDetail = {
|
|
10
9
|
name: string
|
|
@@ -24,18 +23,6 @@ const FETCH_COMMON_CODE_GQL = (codeName: string) => gql`
|
|
|
24
23
|
}
|
|
25
24
|
`
|
|
26
25
|
|
|
27
|
-
function onmouseover(e: Event) {
|
|
28
|
-
const element = e.target as HTMLSpanElement
|
|
29
|
-
if (detectOverflow(element)) {
|
|
30
|
-
element.setAttribute('data-tooltip', element.textContent!)
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function onmouseout(e: Event) {
|
|
35
|
-
const element = e.target as HTMLSpanElement
|
|
36
|
-
element.removeAttribute('data-tooltip')
|
|
37
|
-
}
|
|
38
|
-
|
|
39
26
|
@customElement('ox-grist-renderer-resource-code')
|
|
40
27
|
export class OxGristRendererResourceCode extends OxGristRenderer {
|
|
41
28
|
static styles = css`
|
|
@@ -87,13 +74,13 @@ export class OxGristRendererResourceCode extends OxGristRenderer {
|
|
|
87
74
|
let code = codes[idx]
|
|
88
75
|
|
|
89
76
|
if (code.name == this.value) {
|
|
90
|
-
return html`<span
|
|
77
|
+
return html`<span data-reactive-tooltip
|
|
91
78
|
>${code.name == '' ? '' : renderDispOpt.replace('name', code.description).replace('code', code.name)}</span
|
|
92
79
|
> `
|
|
93
80
|
}
|
|
94
81
|
}
|
|
95
82
|
}
|
|
96
83
|
|
|
97
|
-
return html`<span
|
|
84
|
+
return html`<span data-reactive-tooltip>${this.value}</span> `
|
|
98
85
|
}
|
|
99
86
|
}
|
package/themes/app-theme.css
CHANGED
|
@@ -15,9 +15,6 @@ body {
|
|
|
15
15
|
--primary-text-color: #3c3938;
|
|
16
16
|
--secondary-text-color: var(--primary-color);
|
|
17
17
|
|
|
18
|
-
--opacity-dark-color: rgba(0, 0, 0, 0.4);
|
|
19
|
-
--opacity-light-color: rgba(255, 255, 255, 0.8);
|
|
20
|
-
|
|
21
18
|
/* status color */
|
|
22
19
|
--status-success-color: #35a24a;
|
|
23
20
|
--status-warning-color: #ee8d03;
|
package/themes/grist-theme.css
CHANGED
|
@@ -45,11 +45,9 @@ body {
|
|
|
45
45
|
--grid-record-wide-fontsize: var(--fontsize-small);
|
|
46
46
|
--grid-record-selected-background-color: #f1f8e9;
|
|
47
47
|
--grid-record-selected-color: var(--grid-record-color);
|
|
48
|
-
--grid-record-focused-background-color: rgba(var(--primary-color-rgb), 0.2);
|
|
49
48
|
--grid-record-focused-border: 1px solid var(--primary-color);
|
|
50
49
|
--grid-record-focused-cell-background-color: rgba(var(--primary-color-rgb), 0.25);
|
|
51
50
|
--grid-record-focused-cell-border: 1px dashed var(--primary-color);
|
|
52
|
-
--grid-record-focused-color: var(--grid-record-color);
|
|
53
51
|
--grid-record-focused-box-shadow: 0px 2px 0px 0px rgb(0 0 0 / 10%);
|
|
54
52
|
--grid-record-emphasized-background-color: var(--primary-color);
|
|
55
53
|
--grid-record-emphasized-color: var(--theme-white-color);
|
|
@@ -154,11 +152,13 @@ body {
|
|
|
154
152
|
--ox-grist-padding: 0;
|
|
155
153
|
}
|
|
156
154
|
}
|
|
155
|
+
|
|
157
156
|
@media (min-width: 461px) and (max-width: 700px) {
|
|
158
157
|
body {
|
|
159
158
|
--ox-grist-padding: 0;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
161
|
+
|
|
162
162
|
@media (min-width: 461px) and (max-width: 1024px) {
|
|
163
163
|
body {
|
|
164
164
|
--data-card-create-form-padding: 7px;
|