@operato/attribute 2.0.0-alpha.98 → 2.0.0-beta.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/attribute",
3
3
  "description": "WebApplication attribute supporting components following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "2.0.0-alpha.98",
5
+ "version": "2.0.0-beta.0",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -56,16 +56,16 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@material/web": "^1.4.0",
59
- "@operato/data-grist": "^2.0.0-alpha.98",
60
- "@operato/graphql": "^2.0.0-alpha.57",
61
- "@operato/grist-editor": "^2.0.0-alpha.98",
62
- "@operato/i18n": "^2.0.0-alpha.59",
63
- "@operato/input": "^2.0.0-alpha.98",
64
- "@operato/popup": "^2.0.0-alpha.98",
65
- "@operato/property-editor": "^2.0.0-alpha.98",
66
- "@operato/shell": "^2.0.0-alpha.98",
67
- "@operato/styles": "^2.0.0-alpha.98",
68
- "@operato/utils": "^2.0.0-alpha.68",
59
+ "@operato/data-grist": "^2.0.0-beta.0",
60
+ "@operato/graphql": "^2.0.0-beta.0",
61
+ "@operato/grist-editor": "^2.0.0-beta.0",
62
+ "@operato/i18n": "^2.0.0-beta.0",
63
+ "@operato/input": "^2.0.0-beta.0",
64
+ "@operato/popup": "^2.0.0-beta.0",
65
+ "@operato/property-editor": "^2.0.0-beta.0",
66
+ "@operato/shell": "^2.0.0-beta.0",
67
+ "@operato/styles": "^2.0.0-beta.0",
68
+ "@operato/utils": "^2.0.0-beta.0",
69
69
  "lit": "^3.1.2"
70
70
  },
71
71
  "devDependencies": {
@@ -100,5 +100,5 @@
100
100
  "prettier --write"
101
101
  ]
102
102
  },
103
- "gitHead": "cc3f1dee34e1bf60629920629e566bf28171c8fe"
103
+ "gitHead": "1c7306d2c3170b773e16d5d4ef79b490584d5441"
104
104
  }
@@ -20,7 +20,7 @@ export class OxPopupAttributes extends LitElement {
20
20
  display: flex;
21
21
  flex-direction: column;
22
22
 
23
- background-color: #fff;
23
+ background-color: var(--md-sys-color-surface);
24
24
 
25
25
  width: var(--overlay-center-normal-width, 50%);
26
26
  height: var(--overlay-center-normal-height, 50%);
@@ -39,7 +39,7 @@ export class OxPopupAttributes extends LitElement {
39
39
  align-items: center;
40
40
  justify-content: center;
41
41
 
42
- color: var(--primary-color);
42
+ color: var(--md-sys-color-on-primary-container);
43
43
  }
44
44
  `
45
45
  ]
@@ -47,11 +47,11 @@ export class OxAttributeForm extends LitElement {
47
47
 
48
48
  grid-gap: 9px;
49
49
  align-items: center;
50
- margin-bottom: var(--margin-default);
50
+ margin-bottom: var(--spacing-medium);
51
51
  }
52
52
 
53
53
  label:nth-child(odd) {
54
- background-color: var(--main-section-background-color);
54
+ background-color: var(--md-sys-color-background);
55
55
  padding: var(--padding-default) 0;
56
56
  }
57
57
 
@@ -110,7 +110,7 @@ export class OxAttributeForm extends LitElement {
110
110
 
111
111
  grid-gap: 9px;
112
112
  align-items: center;
113
- margin-bottom: var(--margin-default);
113
+ margin-bottom: var(--spacing-medium);
114
114
  }
115
115
 
116
116
  div[name] {
@@ -192,7 +192,7 @@ export class OxAttributeForm extends LitElement {
192
192
 
193
193
  return html` <label .title=${description}>
194
194
  <div name>${name}</div>
195
- <div description><md-icon>info_outline</md-icon> ${description}</div>
195
+ <div description><md-icon>info</md-icon> ${description}</div>
196
196
  <div elements>${element}</div>
197
197
  </label>`
198
198
  })
@@ -54,11 +54,11 @@ export class OxAttributeView extends LitElement {
54
54
 
55
55
  grid-gap: 9px;
56
56
  align-items: center;
57
- margin-bottom: var(--margin-default);
57
+ margin-bottom: var(--spacing-medium);
58
58
  }
59
59
 
60
60
  label:nth-child(odd) {
61
- background-color: var(--main-section-background-color);
61
+ background-color: var(--md-sys-color-background);
62
62
  padding: var(--padding-default) 0;
63
63
  }
64
64
 
@@ -117,7 +117,7 @@ export class OxAttributeView extends LitElement {
117
117
 
118
118
  grid-gap: 9px;
119
119
  align-items: center;
120
- margin-bottom: var(--margin-default);
120
+ margin-bottom: var(--spacing-medium);
121
121
  }
122
122
 
123
123
  div[name] {
@@ -181,7 +181,7 @@ export class OxAttributeView extends LitElement {
181
181
 
182
182
  return html` <label .title=${description}>
183
183
  <div name>${name}</div>
184
- <div description><md-icon>info_outline</md-icon> ${description}</div>
184
+ <div description><md-icon>info</md-icon> ${description}</div>
185
185
  <div elements>${element}</div>
186
186
  </label>`
187
187
  })
@@ -70,7 +70,7 @@ class GristDemo extends LitElement {
70
70
  #tailer {
71
71
  display: flex;
72
72
  flex-direction: row;
73
- margin: 0 var(--margin-default);
73
+ margin: 0 var(--spacing-medium);
74
74
  }
75
75
 
76
76
  #tailer a {
@@ -78,7 +78,7 @@ class GristDemo extends LitElement {
78
78
  margin: 0 var(--margin-narrow);
79
79
  border-right: 1px solid rgba(0, 0, 0, 0.1);
80
80
  font-size: var(--fontsize-default);
81
- color: var(--primary-color);
81
+ color: var(--md-sys-color-on-primary-container);
82
82
  }
83
83
  `
84
84
  ]
@@ -285,7 +285,7 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
285
285
  flex-direction: row;
286
286
  align-items: center;
287
287
  padding: var(--padding-default) var(--padding-wide);
288
- background-color: var(--theme-white-color);
288
+ background-color: var(--md-sys-color-surface);
289
289
  box-shadow: var(--box-shadow);
290
290
 
291
291
  --md-icon-size: 24px;
@@ -296,11 +296,11 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
296
296
  }
297
297
  #sorters {
298
298
  margin-left: auto;
299
- margin-right: var(--margin-default);
299
+ margin-right: var(--spacing-medium);
300
300
  padding-left: var(--padding-narrow);
301
301
  border-bottom: var(--border-dark-color);
302
302
  position: relative;
303
- color: var(--secondary-color);
303
+ color: var(--md-sys-color-on-secondary-container);
304
304
  font-size: var(--fontsize-default);
305
305
  user-select: none;
306
306
  }
@@ -317,7 +317,7 @@ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
317
317
  }
318
318
 
319
319
  #filters * {
320
- margin-right: var(--margin-default);
320
+ margin-right: var(--spacing-medium);
321
321
  }
322
322
 
323
323
  @media only screen and (max-width: 460px) {
@@ -121,7 +121,7 @@ body {
121
121
 
122
122
  /* form style */
123
123
  --label-font: normal var(--fontsize-default) var(--theme-font);
124
- --label-color: var(--secondary-color);
124
+ --label-color: var(--md-sys-color-on-surface);
125
125
  --label-text-transform: capitalize;
126
126
  --input-margin: var(--margin-narrow) 0;
127
127
  --input-padding: var(--padding-default);
@@ -1,20 +1,20 @@
1
1
  body {
2
2
  --form-border: none;
3
- --form-margin: var(--margin-wide);
3
+ --form-margin: var(--spacing-medium);
4
4
  --form-max-width: 700px;
5
5
  --form-multi-column-max-width: 100%;
6
6
  --form-sublabel-font: normal 13px var(--theme-font);
7
- --form-sublabel-color: var(--secondary-color);
7
+ --form-sublabel-color: var(--md-sys-color-secondary);
8
8
  --form-grid-gap: 12px 5px;
9
9
 
10
- --legend-padding: var(--padding-default) 0;
10
+ --legend-padding: var(--spacing-medium) 0;
11
11
  --legend-font: bold 16px var(--theme-font);
12
- --legend-text-color: var(--secondary-text-color);
13
- --legend-border-bottom: 1px solid var(--primary-color);
12
+ --legend-text-color: var(--md-sys-color-on-secondary);
13
+ --legend-border-bottom: 1px solid var(--md-sys-color-primary);
14
14
 
15
15
  --label-padding: 3px 0;
16
16
  --label-font: normal 14px var(--theme-font);
17
- --label-color: var(--secondary-color);
17
+ --label-color: var(--md-sys-color-secondary);
18
18
 
19
19
  --input-field-border: 1px solid rgba(0, 0, 0, 0.2);
20
20
  --input-field-border-radius: var(--border-radius);
@@ -23,29 +23,29 @@ body {
23
23
 
24
24
  --search-panel-background-color: rgba(0, 0, 0, 0.1);
25
25
  --search-panel-search-iconbutton-size: var(--icon-default-size);
26
- --search-form-icon-color: var(--primary-color);
26
+ --search-form-icon-color: var(--md-sys-color-primary);
27
27
  --search-form-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.15);
28
28
  --search-form-box-padding: 15px 30px 15px 15px;
29
- --search-form-background-color: #fff;
30
- --search-form-narrow-background-color: var(--primary-color);
31
- --search-form-narrow-text-color: #fff;
29
+ --search-form-background-color: var(--md-sys-color-surface);
30
+ --search-form-narrow-background-color: var(--md-sys-color-surface);
31
+ --search-form-narrow-text-color: var(--md-sys-color-on-surface);
32
32
 
33
33
  --file-uploader-border: 1px solid rgba(0, 0, 0, 0.1);
34
- --file-uploader-background-color: var(--main-section-background-color);
34
+ --file-uploader-background-color: var(--md-sys-color-background);
35
35
  --file-uploader-font: normal 12px/20px var(--theme-font);
36
- --file-uploader-color: var(--secondary-color);
37
- --file-uploader-icon-color: var(--primary-color);
36
+ --file-uploader-color: var(--md-sys-color-secondary);
37
+ --file-uploader-icon-color: var(--md-sys-color-primary);
38
38
  --file-uploader-candrop-background-color: #fffde9;
39
39
  --file-uploader-label-padding: 3px 20px;
40
40
  --file-uploader-label-border-radius: var(--border-radius);
41
- --file-uploader-label-background-color: var(--secondary-color);
41
+ --file-uploader-label-background-color: var(--md-sys-color-secondary);
42
42
  --file-uploader-label-font: normal 12px var(--theme-font);
43
43
  --file-uploader-label-color: #fff;
44
44
  --file-uploader-li-padding: 2px 5px 0px 5px;
45
45
  --file-uploader-li-border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
46
46
  --file-uploader-li-icon-margin: 2px 0 2px 5px;
47
47
  --file-uploader-li-icon-font: normal 15px var(--mdc-icon-font, 'Material Icons');
48
- --file-uploader-li-icon-focus-color: var(--primary-color);
48
+ --file-uploader-li-icon-focus-color: var(--md-sys-color-primary);
49
49
  }
50
50
 
51
51
  @media screen and (max-width: 480px) {