@operato/dataset 7.0.0-rc.8 → 7.0.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/.storybook/preview.js +52 -0
- package/CHANGELOG.md +44 -0
- package/dist/src/grist-editor/ox-popup-data-item-spec.js +1 -1
- package/dist/src/grist-editor/ox-popup-data-item-spec.js.map +1 -1
- package/dist/src/ox-data-entry-view.js +1 -1
- package/dist/src/ox-data-entry-view.js.map +1 -1
- package/dist/src/ox-data-ooc-badge.js +9 -7
- package/dist/src/ox-data-ooc-badge.js.map +1 -1
- package/dist/src/ox-data-sample-subgroup-view.js +1 -1
- package/dist/src/ox-data-sample-subgroup-view.js.map +1 -1
- package/dist/src/ox-data-sample-view.js +1 -1
- package/dist/src/ox-data-sample-view.js.map +1 -1
- package/dist/src/ox-data-summary-view.js +1 -1
- package/dist/src/ox-data-summary-view.js.map +1 -1
- package/dist/stories/ox-data-entry-form.stories.js +5 -2
- package/dist/stories/ox-data-entry-form.stories.js.map +1 -1
- package/dist/stories/ox-data-item-spec.stories.js +8 -2
- package/dist/stories/ox-data-item-spec.stories.js.map +1 -1
- package/dist/stories/ox-data-ooc-brief-view.stories.js +7 -1
- package/dist/stories/ox-data-ooc-brief-view.stories.js.map +1 -1
- package/dist/stories/ox-data-ooc-view.stories.js +7 -1
- package/dist/stories/ox-data-ooc-view.stories.js.map +1 -1
- package/dist/stories/ox-data-sample-view.stories.js +7 -1
- package/dist/stories/ox-data-sample-view.stories.js.map +1 -1
- package/dist/stories/ox-grist-editor-data-item-spec.stories.js +8 -5
- package/dist/stories/ox-grist-editor-data-item-spec.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/grist-editor/ox-popup-data-item-spec.ts +1 -1
- package/src/ox-data-entry-view.ts +1 -1
- package/src/ox-data-ooc-badge.ts +9 -7
- package/src/ox-data-sample-subgroup-view.ts +1 -1
- package/src/ox-data-sample-view.ts +1 -1
- package/src/ox-data-summary-view.ts +1 -1
- package/stories/ox-data-entry-form.stories.ts +5 -2
- package/stories/ox-data-item-spec.stories.ts +8 -2
- package/stories/ox-data-ooc-brief-view.stories.ts +7 -1
- package/stories/ox-data-ooc-view.stories.ts +7 -1
- package/stories/ox-data-sample-view.stories.ts +7 -1
- package/stories/ox-grist-editor-data-item-spec.stories.ts +8 -5
- package/themes/app-theme.css +51 -58
- package/themes/calendar-theme.css +59 -0
- package/themes/dark.css +51 -0
- package/themes/form-theme.css +3 -1
- package/themes/grist-theme.css +111 -104
- package/themes/layout-theme.css +94 -0
- package/themes/light.css +51 -0
- package/themes/material-theme.css +23 -0
- package/themes/md-typescale-styles.css +100 -0
- package/themes/oops-theme.css +6 -10
- package/themes/report-theme.css +5 -5
- package/themes/spacing.css +23 -0
- package/themes/state-color.css +6 -0
- package/themes/tooltip-theme.css +11 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/dataset",
|
|
3
3
|
"description": "WebApplication dataset supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "7.0.0
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -108,16 +108,16 @@
|
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"@material/web": "^1.5.0",
|
|
111
|
-
"@operato/data-grist": "^7.0.0
|
|
112
|
-
"@operato/graphql": "^7.0.0
|
|
113
|
-
"@operato/grist-editor": "^7.0.0
|
|
114
|
-
"@operato/i18n": "^7.0.0
|
|
115
|
-
"@operato/input": "^7.0.0
|
|
116
|
-
"@operato/popup": "^7.0.0
|
|
117
|
-
"@operato/property-editor": "^7.0.0
|
|
118
|
-
"@operato/shell": "^7.0.0
|
|
119
|
-
"@operato/styles": "^7.0.0
|
|
120
|
-
"@operato/utils": "^7.0.0
|
|
111
|
+
"@operato/data-grist": "^7.0.0",
|
|
112
|
+
"@operato/graphql": "^7.0.0",
|
|
113
|
+
"@operato/grist-editor": "^7.0.0",
|
|
114
|
+
"@operato/i18n": "^7.0.0",
|
|
115
|
+
"@operato/input": "^7.0.0",
|
|
116
|
+
"@operato/popup": "^7.0.0",
|
|
117
|
+
"@operato/property-editor": "^7.0.0",
|
|
118
|
+
"@operato/shell": "^7.0.0",
|
|
119
|
+
"@operato/styles": "^7.0.0",
|
|
120
|
+
"@operato/utils": "^7.0.0",
|
|
121
121
|
"lit": "^3.1.2"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"prettier --write"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "b1bdd00f672eb45ffc409ed971ac60007eda4090"
|
|
156
156
|
}
|
package/src/ox-data-ooc-badge.ts
CHANGED
|
@@ -9,16 +9,15 @@ import { customElement, property } from 'lit/decorators.js'
|
|
|
9
9
|
export class OxDataOocBadge extends LitElement {
|
|
10
10
|
static styles = css`
|
|
11
11
|
h3 {
|
|
12
|
-
margin: var(--title-margin);
|
|
13
|
-
font: var(--title-font);
|
|
14
|
-
color: var(--title-text-color);
|
|
15
12
|
text-align: center;
|
|
13
|
+
font: var(--title-font);
|
|
14
|
+
margin: var(--spacing-small) 0;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
md-icon {
|
|
19
18
|
--md-icon-size: 80px;
|
|
20
19
|
opacity: 0.4;
|
|
21
|
-
color: var(--
|
|
20
|
+
color: var(--md-sys-color-secondary);
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
md-icon[filled] {
|
|
@@ -37,19 +36,22 @@ export class OxDataOocBadge extends LitElement {
|
|
|
37
36
|
[field-state] {
|
|
38
37
|
display: block;
|
|
39
38
|
border-radius: 4px;
|
|
40
|
-
|
|
39
|
+
color: var(--md-sys-color-on-primary);
|
|
40
|
+
background-color: var(--md-sys-color-primary);
|
|
41
41
|
box-shadow: var(--box-shadow);
|
|
42
|
-
margin-top: var(--
|
|
42
|
+
margin-top: var(--spacing-small);
|
|
43
43
|
padding: 1px 3px;
|
|
44
44
|
font-size: 0.8rem;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
[danger] [field-state] {
|
|
48
|
-
background-color: var(--
|
|
48
|
+
background-color: var(--md-sys-color-error);
|
|
49
|
+
color: var(--md-sys-color-on-error);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
[complete] [field-state] {
|
|
52
53
|
background-color: var(--status-info-color);
|
|
54
|
+
color: var(--md-sys-color-on-error);
|
|
53
55
|
}
|
|
54
56
|
`
|
|
55
57
|
|
|
@@ -192,7 +192,6 @@ var value = {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
195
|
-
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
196
195
|
<link
|
|
197
196
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
198
197
|
rel="stylesheet"
|
|
@@ -210,9 +209,13 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
210
209
|
body {
|
|
211
210
|
}
|
|
212
211
|
</style>
|
|
212
|
+
|
|
213
213
|
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
214
|
-
<link href="/themes/
|
|
214
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
215
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
216
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
215
217
|
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
218
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
216
219
|
|
|
217
220
|
<ox-data-entry-form
|
|
218
221
|
.dataSet=${dataSet}
|
|
@@ -106,8 +106,7 @@ var specB = {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
109
|
-
html` <link
|
|
110
|
-
<link
|
|
109
|
+
html` <link
|
|
111
110
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
112
111
|
rel="stylesheet"
|
|
113
112
|
/>
|
|
@@ -120,6 +119,13 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
|
120
119
|
rel="stylesheet"
|
|
121
120
|
/>
|
|
122
121
|
|
|
122
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
123
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
124
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
125
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
126
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
127
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
128
|
+
|
|
123
129
|
<style>
|
|
124
130
|
body {
|
|
125
131
|
}
|
|
@@ -264,7 +264,6 @@ var dataOoc = {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
267
|
-
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
268
267
|
<link
|
|
269
268
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
270
269
|
rel="stylesheet"
|
|
@@ -278,6 +277,13 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
278
277
|
rel="stylesheet"
|
|
279
278
|
/>
|
|
280
279
|
|
|
280
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
281
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
282
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
283
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
284
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
285
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
286
|
+
|
|
281
287
|
<style>
|
|
282
288
|
body {
|
|
283
289
|
}
|
|
@@ -255,7 +255,6 @@ var dataOoc = {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
258
|
-
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
259
258
|
<link
|
|
260
259
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
261
260
|
rel="stylesheet"
|
|
@@ -269,6 +268,13 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
269
268
|
rel="stylesheet"
|
|
270
269
|
/>
|
|
271
270
|
|
|
271
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
272
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
273
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
274
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
275
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
276
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
277
|
+
|
|
272
278
|
<style>
|
|
273
279
|
body {
|
|
274
280
|
}
|
|
@@ -228,7 +228,6 @@ var dataSample = {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
231
|
-
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
232
231
|
<link
|
|
233
232
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
234
233
|
rel="stylesheet"
|
|
@@ -242,6 +241,13 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
242
241
|
rel="stylesheet"
|
|
243
242
|
/>
|
|
244
243
|
|
|
244
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
245
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
246
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
247
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
248
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
249
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
250
|
+
|
|
245
251
|
<style>
|
|
246
252
|
body {
|
|
247
253
|
}
|
|
@@ -95,7 +95,7 @@ class GristDemo extends LitElement {
|
|
|
95
95
|
|
|
96
96
|
#tailer a {
|
|
97
97
|
padding: 0 var(--padding-default) 0 var(--padding-default);
|
|
98
|
-
margin: 0 var(--
|
|
98
|
+
margin: 0 var(--spacing-small);
|
|
99
99
|
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
100
100
|
font-size: var(--fontsize-default);
|
|
101
101
|
color: var(--md-sys-color-on-primary-container);
|
|
@@ -347,15 +347,18 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
347
347
|
/>
|
|
348
348
|
|
|
349
349
|
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
350
|
-
<link href="/themes/
|
|
350
|
+
<link href="/themes/light.css" rel="stylesheet" />
|
|
351
|
+
<link href="/themes/dark.css" rel="stylesheet" />
|
|
352
|
+
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
351
353
|
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
354
|
+
<link href="/themes/form-theme.css" rel="stylesheet" />
|
|
352
355
|
|
|
353
356
|
<style>
|
|
354
357
|
[slot='headroom'] {
|
|
355
358
|
display: flex;
|
|
356
359
|
flex-direction: row;
|
|
357
360
|
align-items: center;
|
|
358
|
-
padding: var(--padding-default) var(--
|
|
361
|
+
padding: var(--padding-default) var(--spacing-large);
|
|
359
362
|
background-color: var(--md-sys-color-surface);
|
|
360
363
|
box-shadow: var(--box-shadow);
|
|
361
364
|
|
|
@@ -368,7 +371,7 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
368
371
|
#sorters {
|
|
369
372
|
margin-left: auto;
|
|
370
373
|
margin-right: var(--spacing-medium);
|
|
371
|
-
padding-left: var(--
|
|
374
|
+
padding-left: var(--spacing-small);
|
|
372
375
|
border-bottom: var(--border-dim-color);
|
|
373
376
|
position: relative;
|
|
374
377
|
color: var(--md-sys-color-on-secondary-container);
|
|
@@ -377,7 +380,7 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
|
377
380
|
}
|
|
378
381
|
|
|
379
382
|
#sorters > * {
|
|
380
|
-
padding: var(--
|
|
383
|
+
padding: var(--spacing-small);
|
|
381
384
|
vertical-align: middle;
|
|
382
385
|
}
|
|
383
386
|
|
package/themes/app-theme.css
CHANGED
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
body {
|
|
2
2
|
/* theme color */
|
|
3
|
-
--primary-color
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--theme-black-color: rgba(0, 0, 0, 0.9);
|
|
13
|
-
|
|
14
|
-
--focus-background-color: var(--primary-color);
|
|
15
|
-
--primary-text-color: var(--theme-black-color);
|
|
16
|
-
--secondary-text-color: #218f62;
|
|
17
|
-
|
|
18
|
-
/* status color */
|
|
19
|
-
--status-success-color: #35a24a;
|
|
20
|
-
--status-warning-color: #ee8d03;
|
|
21
|
-
--status-danger-color: #d14946;
|
|
22
|
-
--status-info-color: #398ace;
|
|
3
|
+
--primary-color: var(--md-sys-color-primary);
|
|
4
|
+
--secondary-color: var(--md-sys-color-secondary);
|
|
5
|
+
--focus-color: var(--md-sys-color-on-primary);
|
|
6
|
+
--primary-background-color: var(--md-sys-color-primary-container);
|
|
7
|
+
--secondary-background-color: var(--md-sys-color-secondary-container);
|
|
8
|
+
|
|
9
|
+
--focus-background-color: var(--md-sys-color-primary);
|
|
10
|
+
--primary-text-color: var(--md-sys-color-on-primary);
|
|
11
|
+
--secondary-text-color: var(--md-sys-color-on-secondary);
|
|
23
12
|
|
|
24
13
|
/* common style */
|
|
25
14
|
--border-radius: 4px;
|
|
@@ -30,15 +19,15 @@ body {
|
|
|
30
19
|
|
|
31
20
|
--theme-font: 'Noto', Helvetica;
|
|
32
21
|
|
|
33
|
-
--margin-default:
|
|
34
|
-
--margin-narrow: 4px;
|
|
35
|
-
--margin-wide:
|
|
36
|
-
--padding-default: var(--
|
|
37
|
-
--padding-narrow: var(--
|
|
38
|
-
--padding-wide: var(--
|
|
22
|
+
--margin-default: var(--spacing-medium, 8px);
|
|
23
|
+
--margin-narrow: var(--spacing-small, 4px);
|
|
24
|
+
--margin-wide: var(--spacing-large, 12px);
|
|
25
|
+
--padding-default: var(--spacing-medium, 8px);
|
|
26
|
+
--padding-narrow: var(--spacing-small, 4px);
|
|
27
|
+
--padding-wide: var(--spacing-large, 12px);
|
|
39
28
|
|
|
40
29
|
--scrollbar-thumb-color: rgba(57, 78, 100, 0.5);
|
|
41
|
-
--scrollbar-thumb-hover-color: var(--
|
|
30
|
+
--scrollbar-thumb-hover-color: var(--md-sys-color-primary);
|
|
42
31
|
|
|
43
32
|
--fontsize-default: 14px;
|
|
44
33
|
--fontsize-small: 13px;
|
|
@@ -50,77 +39,81 @@ body {
|
|
|
50
39
|
/* title & description style */
|
|
51
40
|
--title-margin: var(--margin-narrow) 0;
|
|
52
41
|
--title-font: bold 24px var(--theme-font);
|
|
53
|
-
--title-text-color: var(--
|
|
42
|
+
--title-text-color: var(--md-sys-color-secondary);
|
|
54
43
|
--title-font-mobile: bold 20px var(--theme-font);
|
|
55
44
|
|
|
56
45
|
--page-description-margin: var(--margin-narrow) 0 var(--margin-wide) 0;
|
|
57
46
|
--page-description-font: normal var(--fontsize-default) / 1.2rem var(--theme-font);
|
|
58
|
-
--page-description-color: var(--
|
|
47
|
+
--page-description-color: var(--md-sys-color-primary);
|
|
59
48
|
|
|
60
49
|
--subtitle-padding: 12px 5px 3px 5px;
|
|
61
50
|
--subtitle-font: bold 18px var(--theme-font);
|
|
62
|
-
--subtitle-text-color: var(--
|
|
63
|
-
--subtitle-border-bottom: 1px solid var(--
|
|
51
|
+
--subtitle-text-color: var(--md-sys-color-primary);
|
|
52
|
+
--subtitle-border-bottom: 1px solid var(--md-sys-color-primary);
|
|
64
53
|
|
|
65
54
|
/* icon style */
|
|
66
|
-
--icon-tiny-size: 24px;
|
|
67
|
-
--icon-default-size:
|
|
68
|
-
--icon-big-size: 48px;
|
|
69
|
-
--icon-default-color: var(--
|
|
55
|
+
--icon-tiny-size: var(--icon-size-medium, 24px);
|
|
56
|
+
--icon-default-size: var(--icon-size-large, 32px);
|
|
57
|
+
--icon-big-size: var(--icon-size-huge, 48px);
|
|
58
|
+
--icon-default-color: var(--md-sys-color-on-primary);
|
|
70
59
|
|
|
71
60
|
/* material design component themes */
|
|
72
|
-
--mdc-theme-on-primary: var(--
|
|
61
|
+
--mdc-theme-on-primary: var(--md-sys-color-on-primary);
|
|
73
62
|
--mdc-theme-primary: var(--secondary-text-color);
|
|
74
|
-
--mdc-theme-on-secondary: var(--
|
|
75
|
-
--mdc-theme-secondary: var(--
|
|
76
|
-
--mdc-button-outline-color: var(--
|
|
63
|
+
--mdc-theme-on-secondary: var(--md-sys-color-on-primary);
|
|
64
|
+
--mdc-theme-secondary: var(--md-sys-color-primary);
|
|
65
|
+
--mdc-button-outline-color: var(--md-sys-color-primary);
|
|
77
66
|
--mdc-danger-button-primary-color: var(--status-danger-color);
|
|
78
67
|
--mdc-danger-button-outline-color: var(--status-danger-color);
|
|
79
68
|
--mdc-button-outline-width: 1px;
|
|
80
69
|
--mdc-button-horizontal-padding: 16px;
|
|
81
70
|
|
|
82
71
|
/* button style */
|
|
83
|
-
--button-background-color:
|
|
84
|
-
--button-background-focus-color: var(--
|
|
72
|
+
--button-background-color: var(--md-sys-color-surface-variant);
|
|
73
|
+
--button-background-focus-color: var(--md-sys-color-primary);
|
|
85
74
|
--button-border: var(--border-dim-color);
|
|
86
75
|
--button-border-radius: var(--border-radius);
|
|
87
76
|
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
|
88
|
-
--button-padding: var(--padding-
|
|
89
|
-
--button-color: var(--
|
|
90
|
-
--button-font:
|
|
77
|
+
--button-padding: calc(var(--padding-narrow) * 1.5) var(--padding-wide);
|
|
78
|
+
--button-color: var(--md-sys-color-secondary);
|
|
79
|
+
--button-font: 600 var(--fontsize-default) var(--theme-font);
|
|
91
80
|
--button-text-transform: capitalize;
|
|
92
81
|
--button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
|
|
93
|
-
--button-activ-border: 1px solid var(--
|
|
82
|
+
--button-activ-border: 1px solid var(--md-sys-color-primary);
|
|
83
|
+
--button-activ-background-color: var(--md-sys-color-primary);
|
|
84
|
+
--button-activ-color: var(--md-sys-color-on-primary);
|
|
85
|
+
--iconbtn-padding: var(--padding-narrow);
|
|
94
86
|
|
|
95
|
-
--button-primary-background-color: var(--
|
|
87
|
+
--button-primary-background-color: var(--md-sys-color-primary);
|
|
96
88
|
--button-primary-active-background-color: var(--status-success-color);
|
|
97
89
|
--button-primary-padding: var(--margin-default) var(--margin-wide);
|
|
98
|
-
--button-primary-color: var(--
|
|
90
|
+
--button-primary-color: var(--md-sys-color-on-primary);
|
|
99
91
|
--button-primary-font: bold 16px var(--theme-font);
|
|
100
92
|
|
|
101
93
|
/* table style */
|
|
102
94
|
--th-padding: var(--padding-default);
|
|
103
|
-
--th-border-top: 2px solid var(--
|
|
95
|
+
--th-border-top: 2px solid var(--md-sys-color-secondary);
|
|
104
96
|
--th-text-transform: capitalize;
|
|
105
97
|
--th-font: bold var(--fontsize-small) var(--theme-font);
|
|
106
|
-
--th-color:
|
|
98
|
+
--th-color: var(--md-sys-color-secondary);
|
|
107
99
|
|
|
108
|
-
--tr-background-color: var(--
|
|
100
|
+
--tr-background-color: var(--md-sys-color-surface-variant);
|
|
109
101
|
--tr-background-odd-color: rgba(255, 255, 255, 0.4);
|
|
110
102
|
--tr-background-hover-color: #e1f5fe;
|
|
111
103
|
--td-border-line: 1px solid rgba(0, 0, 0, 0.05);
|
|
112
104
|
--td-border-bottom: 1px solid rgba(0, 0, 0, 0.09);
|
|
113
105
|
--td-padding: var(--padding-default);
|
|
114
106
|
--td-font: normal 13px var(--theme-font);
|
|
115
|
-
--td-color: var(--
|
|
107
|
+
--td-color: var(--md-sys-color-secondary);
|
|
116
108
|
|
|
117
|
-
--label-cell-background-color:
|
|
109
|
+
--label-cell-background-color: var(--md-sys-color-surface); /* th or td common background color */
|
|
118
110
|
|
|
119
111
|
/* form style */
|
|
120
112
|
--label-font: normal var(--fontsize-default) var(--theme-font);
|
|
113
|
+
--label-color: var(--md-sys-color-on-surface);
|
|
121
114
|
--label-text-transform: capitalize;
|
|
122
115
|
--input-margin: var(--margin-narrow) 0;
|
|
123
|
-
--input-padding:
|
|
116
|
+
--input-padding: 6px 2px;
|
|
124
117
|
--input-min-width: 200px;
|
|
125
118
|
--input-font: normal var(--fontsize-default) var(--theme-font);
|
|
126
119
|
--input-hint-font: normal var(--fontsize-small) var(--theme-font);
|
|
@@ -129,17 +122,17 @@ body {
|
|
|
129
122
|
--fieldset-margin: var(--padding-wide) 0;
|
|
130
123
|
--fieldset-padding: 0 var(--padding-wide) var(--padding-wide) var(--padding-wide);
|
|
131
124
|
--legend-padding: var(--padding-default) 0;
|
|
132
|
-
--legend-color: var(--
|
|
125
|
+
--legend-color: var(--md-sys-color-secondary);
|
|
133
126
|
--legend-font: bold 16px var(--theme-font);
|
|
134
127
|
}
|
|
135
128
|
|
|
129
|
+
body.dark {
|
|
130
|
+
caret-color: white;
|
|
131
|
+
}
|
|
132
|
+
|
|
136
133
|
@media only screen and (max-width: 460px) {
|
|
137
134
|
body {
|
|
138
135
|
/* subtitle style */
|
|
139
136
|
--subtitle-margin: 0;
|
|
140
137
|
}
|
|
141
138
|
}
|
|
142
|
-
|
|
143
|
-
body.dark {
|
|
144
|
-
--border-dim-color: 1px solid rgba(255, 255, 255, 0.15);
|
|
145
|
-
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--ox-calendar-padding: var(--padding-default);
|
|
3
|
+
|
|
4
|
+
/* monthly common color */
|
|
5
|
+
--calendar-monthly-text-color: var(--md-sys-color-secondary);
|
|
6
|
+
--calendar-monthly-border: 1px solid rgba(0, 0, 0, 0.1);
|
|
7
|
+
--calendar-monthly-border-width: 0 1px 1px 0px;
|
|
8
|
+
|
|
9
|
+
/* monthly layout */
|
|
10
|
+
--calendar-monthly-ol-margin: var(--margin-default) 0;
|
|
11
|
+
--calendar-monthly-ol-top-border: 2px solid var(--md-sys-color-secondary);
|
|
12
|
+
--calendar-current-monty-background-color: var(--md-sys-color-surface-variant);
|
|
13
|
+
--calendar-monthly-label-align: left;
|
|
14
|
+
--calendar-monthly-label-padding: var(--padding-narrow) 0;
|
|
15
|
+
--calendar-monthly-label-color: var(--md-sys-color-secondary);
|
|
16
|
+
--calendar-monthly-opacity: 0.5;
|
|
17
|
+
--calendar-monthly-date-label-background-color: var(--status-danger-color);
|
|
18
|
+
--calendar-monthly-date-label-margin: var(--margin-narrow);
|
|
19
|
+
--calendar-monthly-date-label-padding: 0px 6px;
|
|
20
|
+
--calendar-monthly-date-label-color: var(--md-sys-color-on-primary);
|
|
21
|
+
|
|
22
|
+
--calendar-monthly-background-color: #f4f4f4;
|
|
23
|
+
--calendar-monthly-event-border-radius: var(--border-radius);
|
|
24
|
+
--calendar-monthly-event-margin: var(--padding-narrow) 0 0 0;
|
|
25
|
+
--calendar-monthly-event-padding: 2px var(--padding-default);
|
|
26
|
+
--calendar-monthly-event-border: 3px solid #ccc;
|
|
27
|
+
--calendar-monthly-event-border-width: 0 0 0 3px;
|
|
28
|
+
|
|
29
|
+
/* weekly common color */
|
|
30
|
+
--calendar-weekly-text-color: var(--md-sys-color-secondary);
|
|
31
|
+
--calendar-weekly-border: 1px solid rgba(0, 0, 0, 0.1);
|
|
32
|
+
--calendar-weekly-border-width: 0 1px 1px 0px;
|
|
33
|
+
|
|
34
|
+
/* weekly layout */
|
|
35
|
+
--calendar-weekly-ol-margin: var(--margin-default) 0;
|
|
36
|
+
--calendar-weekly-ol-top-border: 2px solid var(--md-sys-color-secondary);
|
|
37
|
+
--calendar-current-week-background-color: var(--md-sys-color-surface-variant);
|
|
38
|
+
--calendar-weekly-label-align: center;
|
|
39
|
+
--calendar-weekly-label-padding: var(--padding-narrow) 0;
|
|
40
|
+
--calendar-weekly-label-color: var(--md-sys-color-secondary);
|
|
41
|
+
--calendar-weekly-opacity: 0.5;
|
|
42
|
+
--calendar-weekly-date-label-background-color: var(--status-danger-color);
|
|
43
|
+
--calendar-weekly-date-label-margin: var(--margin-narrow);
|
|
44
|
+
--calendar-weekly-date-label-padding: 0px 6px;
|
|
45
|
+
--calendar-weekly-date-label-color: var(--md-sys-color-on-primary);
|
|
46
|
+
|
|
47
|
+
--calendar-weekly-background-color: #f4f4f4;
|
|
48
|
+
--calendar-weekly-event-border-radius: var(--border-radius);
|
|
49
|
+
--calendar-weekly-event-margin: var(--padding-narrow) 0 0 0;
|
|
50
|
+
--calendar-weekly-event-padding: 2px var(--padding-default);
|
|
51
|
+
--calendar-weekly-event-border: 3px solid #ccc;
|
|
52
|
+
--calendar-weekly-event-border-width: 0 0 0 3px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media only screen and (max-width: 460px) {
|
|
56
|
+
body {
|
|
57
|
+
--calendar-monthly-text-color: tomato;
|
|
58
|
+
}
|
|
59
|
+
}
|
package/themes/dark.css
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark {
|
|
2
|
+
--md-sys-color-primary: rgb(178 197 255);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(178 197 255);
|
|
4
|
+
--md-sys-color-on-primary: rgb(24 46 96);
|
|
5
|
+
--md-sys-color-primary-container: rgb(49 69 120);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(218 226 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(143 207 243);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(0 53 73);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(0 76 104);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(195 232 255);
|
|
11
|
+
--md-sys-color-tertiary: #cffce3;
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 56 35);
|
|
13
|
+
--md-sys-color-tertiary-container: #005234;
|
|
14
|
+
--md-sys-color-on-tertiary-container: #cffce3;
|
|
15
|
+
--md-sys-color-error: #fbafa9;
|
|
16
|
+
--md-sys-color-on-error: #fe594e;
|
|
17
|
+
--md-sys-color-error-container: #fe594e;
|
|
18
|
+
--md-sys-color-on-error-container: #fbafa9;
|
|
19
|
+
--md-sys-color-background: rgb(18 19 24);
|
|
20
|
+
--md-sys-color-on-background: rgb(227 226 233);
|
|
21
|
+
--md-sys-color-surface: rgb(18 19 24);
|
|
22
|
+
--md-sys-color-on-surface: rgb(227 226 233);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(69 70 79);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(197 198 208);
|
|
25
|
+
--md-sys-color-outline: rgb(143 144 154);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(69 70 79);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(227 226 233);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(47 48 54);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(73 93 146);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(218 226 255);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 24 72);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(178 197 255);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(49 69 120);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(195 232 255);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(0 30 44);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(143 207 243);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(0 76 104);
|
|
40
|
+
--md-sys-color-tertiary-fixed: #c7e6d5;
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 33 19);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: #c7e6d5;
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(0 82 52);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(18 19 24);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(56 57 63);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(13 14 19);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(26 27 33);
|
|
48
|
+
--md-sys-color-surface-container: rgb(30 31 37);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(41 42 47);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(51 52 58);
|
|
51
|
+
}
|
package/themes/form-theme.css
CHANGED
|
@@ -24,6 +24,8 @@ body {
|
|
|
24
24
|
--search-form-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.15);
|
|
25
25
|
--search-form-box-padding: 15px 30px 15px 15px;
|
|
26
26
|
|
|
27
|
+
--ox-input-border: none;
|
|
28
|
+
|
|
27
29
|
--file-uploader-border: 1px solid rgba(0, 0, 0, 0.1);
|
|
28
30
|
--file-uploader-background-color: var(--md-sys-color-background);
|
|
29
31
|
--file-uploader-font: normal 12px/20px var(--theme-font);
|
|
@@ -38,7 +40,7 @@ body {
|
|
|
38
40
|
--file-uploader-li-padding: 2px 5px 0px 5px;
|
|
39
41
|
--file-uploader-li-border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
|
|
40
42
|
--file-uploader-li-icon-margin: 2px 0 2px 5px;
|
|
41
|
-
--file-uploader-li-icon-font: normal 15px var(--
|
|
43
|
+
--file-uploader-li-icon-font: normal 15px var(--md-icon-font, 'Material Symbols Outlined');
|
|
42
44
|
--file-uploader-li-icon-focus-color: var(--md-sys-color-primary);
|
|
43
45
|
}
|
|
44
46
|
|