@operato/dataset 2.0.0-alpha.64 → 2.0.0-alpha.68

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/demo/index.html +13 -2
  3. package/demo/ox-data-ooc-brief-view-test.html +13 -2
  4. package/dist/src/grist-editor/ox-popup-data-item-spec.d.ts +1 -0
  5. package/dist/src/grist-editor/ox-popup-data-item-spec.js +3 -2
  6. package/dist/src/grist-editor/ox-popup-data-item-spec.js.map +1 -1
  7. package/dist/src/ox-data-entry-form.js +2 -2
  8. package/dist/src/ox-data-entry-form.js.map +1 -1
  9. package/dist/src/ox-data-entry-view.js +6 -6
  10. package/dist/src/ox-data-entry-view.js.map +1 -1
  11. package/dist/src/ox-data-item-spec.js +6 -6
  12. package/dist/src/ox-data-item-spec.js.map +1 -1
  13. package/dist/src/ox-data-ooc-badge.d.ts +1 -1
  14. package/dist/src/ox-data-ooc-badge.js +3 -3
  15. package/dist/src/ox-data-ooc-badge.js.map +1 -1
  16. package/dist/src/ox-data-ooc-brief-view.d.ts +1 -1
  17. package/dist/src/ox-data-ooc-brief-view.js +1 -1
  18. package/dist/src/ox-data-ooc-brief-view.js.map +1 -1
  19. package/dist/src/ox-data-ooc-correction-part.d.ts +1 -1
  20. package/dist/src/ox-data-ooc-correction-part.js +5 -5
  21. package/dist/src/ox-data-ooc-correction-part.js.map +1 -1
  22. package/dist/src/ox-data-ooc-history.d.ts +1 -1
  23. package/dist/src/ox-data-ooc-history.js +4 -4
  24. package/dist/src/ox-data-ooc-history.js.map +1 -1
  25. package/dist/src/ox-data-ooc-view.d.ts +1 -1
  26. package/dist/src/ox-data-ooc-view.js +1 -1
  27. package/dist/src/ox-data-ooc-view.js.map +1 -1
  28. package/dist/src/ox-data-sample-subgroup-view.js +8 -8
  29. package/dist/src/ox-data-sample-subgroup-view.js.map +1 -1
  30. package/dist/src/ox-data-sample-view.js +7 -7
  31. package/dist/src/ox-data-sample-view.js.map +1 -1
  32. package/dist/src/ox-data-summary-view.js +4 -4
  33. package/dist/src/ox-data-summary-view.js.map +1 -1
  34. package/dist/stories/ox-data-entry-form.stories.d.ts +1 -1
  35. package/dist/stories/ox-data-entry-form.stories.js +14 -2
  36. package/dist/stories/ox-data-entry-form.stories.js.map +1 -1
  37. package/dist/stories/ox-data-item-spec.stories.d.ts +1 -1
  38. package/dist/stories/ox-data-item-spec.stories.js +14 -2
  39. package/dist/stories/ox-data-item-spec.stories.js.map +1 -1
  40. package/dist/stories/ox-data-ooc-brief-view.stories.d.ts +1 -1
  41. package/dist/stories/ox-data-ooc-brief-view.stories.js +25 -13
  42. package/dist/stories/ox-data-ooc-brief-view.stories.js.map +1 -1
  43. package/dist/stories/ox-data-ooc-view.stories.d.ts +1 -1
  44. package/dist/stories/ox-data-ooc-view.stories.js +25 -13
  45. package/dist/stories/ox-data-ooc-view.stories.js.map +1 -1
  46. package/dist/stories/ox-data-sample-view.stories.d.ts +1 -1
  47. package/dist/stories/ox-data-sample-view.stories.js +21 -9
  48. package/dist/stories/ox-data-sample-view.stories.js.map +1 -1
  49. package/dist/stories/ox-grist-editor-data-item-spec.stories.d.ts +1 -1
  50. package/dist/stories/ox-grist-editor-data-item-spec.stories.js +66 -54
  51. package/dist/stories/ox-grist-editor-data-item-spec.stories.js.map +1 -1
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +11 -13
  54. package/src/grist-editor/ox-popup-data-item-spec.ts +3 -2
  55. package/src/ox-data-entry-form.ts +2 -2
  56. package/src/ox-data-entry-view.ts +6 -6
  57. package/src/ox-data-item-spec.ts +8 -7
  58. package/src/ox-data-ooc-badge.ts +3 -3
  59. package/src/ox-data-ooc-brief-view.ts +1 -1
  60. package/src/ox-data-ooc-correction-part.ts +5 -5
  61. package/src/ox-data-ooc-history.ts +4 -4
  62. package/src/ox-data-ooc-view.ts +1 -1
  63. package/src/ox-data-sample-subgroup-view.ts +15 -16
  64. package/src/ox-data-sample-view.ts +7 -7
  65. package/src/ox-data-summary-view.ts +4 -4
  66. package/stories/ox-data-entry-form.stories.ts +14 -2
  67. package/stories/ox-data-item-spec.stories.ts +14 -2
  68. package/stories/ox-data-ooc-brief-view.stories.ts +26 -15
  69. package/stories/ox-data-ooc-view.stories.ts +26 -15
  70. package/stories/ox-data-sample-view.stories.ts +22 -11
  71. package/stories/ox-grist-editor-data-item-spec.stories.ts +67 -56
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": "2.0.0-alpha.64",
5
+ "version": "2.0.0-alpha.68",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -105,19 +105,17 @@
105
105
  "storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
106
106
  },
107
107
  "dependencies": {
108
- "@material/mwc-button": "^0.27.0",
109
- "@material/mwc-icon": "^0.27.0",
110
- "@material/mwc-icon-button": "^0.27.0",
111
- "@operato/data-grist": "^2.0.0-alpha.64",
108
+ "@material/web": "^1.4.0",
109
+ "@operato/data-grist": "^2.0.0-alpha.68",
112
110
  "@operato/graphql": "^2.0.0-alpha.57",
113
- "@operato/grist-editor": "^2.0.0-alpha.64",
111
+ "@operato/grist-editor": "^2.0.0-alpha.68",
114
112
  "@operato/i18n": "^2.0.0-alpha.59",
115
- "@operato/input": "^2.0.0-alpha.64",
116
- "@operato/popup": "^2.0.0-alpha.62",
117
- "@operato/property-editor": "^2.0.0-alpha.64",
118
- "@operato/shell": "^2.0.0-alpha.63",
119
- "@operato/styles": "^2.0.0-alpha.62",
120
- "@operato/utils": "^2.0.0-alpha.57",
113
+ "@operato/input": "^2.0.0-alpha.68",
114
+ "@operato/popup": "^2.0.0-alpha.68",
115
+ "@operato/property-editor": "^2.0.0-alpha.68",
116
+ "@operato/shell": "^2.0.0-alpha.68",
117
+ "@operato/styles": "^2.0.0-alpha.68",
118
+ "@operato/utils": "^2.0.0-alpha.68",
121
119
  "lit": "^3.1.2"
122
120
  },
123
121
  "devDependencies": {
@@ -152,5 +150,5 @@
152
150
  "prettier --write"
153
151
  ]
154
152
  },
155
- "gitHead": "51399aac2553f6a1c2c242295ba9e996f3562067"
153
+ "gitHead": "147f2ca9e09180c6851dccacf340fc660e7548ab"
156
154
  }
@@ -1,3 +1,4 @@
1
+ import '@material/web/button/elevated-button.js'
1
2
  import '../ox-data-item-spec.js'
2
3
 
3
4
  import { css, html, LitElement } from 'lit'
@@ -59,8 +60,8 @@ export class OxPopupDataItemSpec extends LitElement {
59
60
  </ox-data-item-spec>
60
61
 
61
62
  <div class="button-container">
62
- <mwc-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>
63
- <mwc-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</mwc-button>
63
+ <md-elevated-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</md-elevated-button>
64
+ <md-elevated-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</md-elevated-button>
64
65
  </div>
65
66
  `
66
67
  }
@@ -71,7 +71,7 @@ export class OxDataEntryForm extends LitElement {
71
71
  vertical-align: middle;
72
72
  }
73
73
 
74
- mwc-icon {
74
+ md-icon {
75
75
  margin-top: -3px;
76
76
  font-size: 0.9rem;
77
77
  }
@@ -244,7 +244,7 @@ export class OxDataEntryForm extends LitElement {
244
244
 
245
245
  return html` <div label>
246
246
  <div name>${name}${unit ? `(${unit})` : ''}</div>
247
- <div description><mwc-icon>info_outline</mwc-icon> ${description}</div>
247
+ <div description><md-icon>info</md-icon> ${description}</div>
248
248
  <div elements>${elements}</div>
249
249
  </div>`
250
250
  })
@@ -39,7 +39,7 @@ export class OxDataEntryView extends LitElement {
39
39
  [page-description] * {
40
40
  vertical-align: middle;
41
41
  }
42
- [page-description] mwc-icon {
42
+ [page-description] md-icon {
43
43
  margin-top: -2px;
44
44
  font-size: 0.9rem;
45
45
  color: var(--page-description-color);
@@ -87,7 +87,7 @@ export class OxDataEntryView extends LitElement {
87
87
  td[name] {
88
88
  font-weight: bold;
89
89
  }
90
- td mwc-icon {
90
+ td md-icon {
91
91
  color: var(--status-danger-color);
92
92
  }
93
93
 
@@ -161,7 +161,7 @@ export class OxDataEntryView extends LitElement {
161
161
 
162
162
  return html` <label .title=${description}>
163
163
  <div name>${name}${unit ? `(${unit})` : ''}</div>
164
- <div description><mwc-icon>info_outline</mwc-icon> ${description}</div>
164
+ <div description><md-icon>info</md-icon> ${description}</div>
165
165
  <div elements>${elements}</div>
166
166
  </label>`
167
167
  })
@@ -178,7 +178,7 @@ export class OxDataEntryView extends LitElement {
178
178
  const useCaseNames = useCase?.split(',').filter(useCase => useCase.trim()) || []
179
179
 
180
180
  return html` <h2>${name}</h2>
181
- <p page-description><mwc-icon>info_outline</mwc-icon> ${description}<br /></p>
181
+ <p page-description><md-icon>info</md-icon> ${description}<br /></p>
182
182
 
183
183
  <form>
184
184
  <table>
@@ -205,8 +205,8 @@ export class OxDataEntryView extends LitElement {
205
205
  <td>${unit}</td>
206
206
  <td>${this.buildValue(type, value)}</td>
207
207
  <td><pre>${this.buildSpec(useCaseNames, spec)}</pre></td>
208
- <td>${ooc ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
209
- <td>${oos ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
208
+ <td>${ooc ? html`<md-icon>done</md-icon>` : ''}</td>
209
+ <td>${oos ? html`<md-icon>done</md-icon>` : ''}</td>
210
210
  </tr>
211
211
  `
212
212
  })}
@@ -52,7 +52,7 @@ export class OxDataItemSpec extends LitElement {
52
52
  div[description] * {
53
53
  vertical-align: middle;
54
54
  }
55
- div[description] mwc-icon {
55
+ div[description] md-icon {
56
56
  margin-top: -3px;
57
57
  font-size: 0.9rem;
58
58
  }
@@ -94,12 +94,13 @@ export class OxDataItemSpec extends LitElement {
94
94
  render() {
95
95
  return html`<form @property-change=${(e: Event) => this.onChange(e)}>
96
96
  ${this.dataItemSpecSets.map(
97
- ({ name, description, specs }) => html` <label
98
- ><div name>${name}</div>
99
- <div description><mwc-icon>info_outline</mwc-icon> ${description}</div>
100
- <ox-properties-dynamic-view data-name=${name} .props=${specs} .value=${this.value?.[name]}>
101
- </ox-properties-dynamic-view
102
- ></label>`
97
+ ({ name, description, specs }) =>
98
+ html` <label
99
+ ><div name>${name}</div>
100
+ <div description><md-icon>info</md-icon> ${description}</div>
101
+ <ox-properties-dynamic-view data-name=${name} .props=${specs} .value=${this.value?.[name]}>
102
+ </ox-properties-dynamic-view
103
+ ></label>`
103
104
  )}
104
105
  </form>`
105
106
  }
@@ -1,6 +1,6 @@
1
1
  import '@operato/input/ox-input-file.js'
2
2
  import './ox-data-sample-view'
3
- import '@material/mwc-icon'
3
+ import '@material/web/icon/icon.js'
4
4
 
5
5
  import { css, html, LitElement, nothing } from 'lit'
6
6
  import { customElement, property } from 'lit/decorators.js'
@@ -15,7 +15,7 @@ export class OxDataOocBadge extends LitElement {
15
15
  text-align: center;
16
16
  }
17
17
 
18
- mwc-icon {
18
+ md-icon {
19
19
  font-size: 80px;
20
20
  opacity: 0.4;
21
21
  color: var(--primary-background-color);
@@ -56,7 +56,7 @@ export class OxDataOocBadge extends LitElement {
56
56
 
57
57
  return html`
58
58
  <h3 ?danger=${state != 'CORRECTED'} ?complete=${state == 'CORRECTED'}>
59
- <mwc-icon>shield</mwc-icon>
59
+ <md-icon>shield</md-icon>
60
60
  <div>DATA OOC <span field-state>${state || ''}</span></div>
61
61
  </h3>
62
62
  `
@@ -2,7 +2,7 @@ import '@operato/input/ox-input-file.js'
2
2
  import './ox-data-sample-view'
3
3
  import './ox-data-ooc-badge'
4
4
  import './ox-data-ooc-correction-part'
5
- import '@material/mwc-icon'
5
+ import '@material/web/icon/icon.js'
6
6
 
7
7
  import { css, html, LitElement } from 'lit'
8
8
  import { customElement, property } from 'lit/decorators.js'
@@ -1,5 +1,5 @@
1
1
  import '@operato/input/ox-input-file.js'
2
- import '@material/mwc-icon'
2
+ import '@material/web/icon/icon.js'
3
3
 
4
4
  import { css, html, LitElement, nothing } from 'lit'
5
5
  import { customElement, property } from 'lit/decorators.js'
@@ -26,7 +26,7 @@ export class OxDataOocCorrectionPart extends LitElement {
26
26
  font-size: 20px;
27
27
  }
28
28
 
29
- mwc-icon {
29
+ md-icon {
30
30
  font-size: 16px;
31
31
  }
32
32
 
@@ -49,7 +49,7 @@ export class OxDataOocCorrectionPart extends LitElement {
49
49
  color: var(--secondary-color);
50
50
  }
51
51
 
52
- mwc-icon {
52
+ md-icon {
53
53
  position: relative;
54
54
  top: 3px;
55
55
  margin: 0 2px 0 10px;
@@ -85,7 +85,7 @@ export class OxDataOocCorrectionPart extends LitElement {
85
85
  <h3>${i18next.t('label.corrective instruction')}</h3>
86
86
  <p>
87
87
  <span field-info
88
- >${formatter.format(new Date(reviewedAt!))} <mwc-icon>account_circle</mwc-icon>${reviewer.name}</span
88
+ >${formatter.format(new Date(reviewedAt!))} <md-icon>account_circle</md-icon>${reviewer.name}</span
89
89
  >
90
90
  <strong>${correctiveInstruction}</strong>
91
91
  </p>
@@ -96,7 +96,7 @@ export class OxDataOocCorrectionPart extends LitElement {
96
96
  <h3>${i18next.t('label.corrective action')}</h3>
97
97
  <p>
98
98
  <span field-info
99
- >${formatter.format(new Date(correctedAt!))} <mwc-icon>account_circle</mwc-icon>${corrector.name}</span
99
+ >${formatter.format(new Date(correctedAt!))} <md-icon>account_circle</md-icon>${corrector.name}</span
100
100
  >
101
101
  <strong>${correctiveAction}</strong>
102
102
  </p>
@@ -1,6 +1,6 @@
1
1
  import '@operato/input/ox-input-file.js'
2
2
  import './ox-data-sample-view'
3
- import '@material/mwc-icon'
3
+ import '@material/web/icon/icon.js'
4
4
 
5
5
  import { css, html, LitElement } from 'lit'
6
6
  import { customElement, property } from 'lit/decorators.js'
@@ -10,7 +10,7 @@ import { DataOoc } from './types.js'
10
10
  @customElement('ox-data-ooc-history')
11
11
  export class OxDataOocHistory extends LitElement {
12
12
  static styles = css`
13
- mwc-icon {
13
+ md-icon {
14
14
  font-size: 16px;
15
15
  }
16
16
 
@@ -33,7 +33,7 @@ export class OxDataOocHistory extends LitElement {
33
33
  color: var(--secondary-color);
34
34
  }
35
35
 
36
- mwc-icon {
36
+ md-icon {
37
37
  position: relative;
38
38
  top: 3px;
39
39
  margin: 0 2px 0 10px;
@@ -62,7 +62,7 @@ export class OxDataOocHistory extends LitElement {
62
62
  <p page-history>
63
63
  <!--상태에 따라 추가로 danger, complete를 어트리뷰트로 추가시 배경컬러 변경되도록 해두었습니다-->
64
64
  <span field-info
65
- >${formatter.format(new Date(timestamp))} <mwc-icon>account_circle</mwc-icon>${user.name}</span
65
+ >${formatter.format(new Date(timestamp))} <md-icon>account_circle</md-icon>${user.name}</span
66
66
  >
67
67
  <span field-state>${state}</span>
68
68
  <strong>${comment}</strong>
@@ -1,7 +1,7 @@
1
1
  import '@operato/input/ox-input-file.js'
2
2
  import './ox-data-sample-view'
3
3
  import './ox-data-ooc-history'
4
- import '@material/mwc-icon'
4
+ import '@material/web/icon/icon.js'
5
5
 
6
6
  import { css, html, LitElement } from 'lit'
7
7
  import { customElement, property } from 'lit/decorators.js'
@@ -70,7 +70,7 @@ export class OxDataSampleSubgroupView extends LitElement {
70
70
  border-left: none;
71
71
  }
72
72
 
73
- td mwc-icon {
73
+ td md-icon {
74
74
  color: var(--status-danger-color);
75
75
  }
76
76
 
@@ -109,19 +109,18 @@ export class OxDataSampleSubgroupView extends LitElement {
109
109
  ${subgroupDataItems.map(dataItem => html` <td>${dataItem.description}</td> `)}
110
110
  </tr>
111
111
  ${Array.from({ length: records }, (_, index) => index).map(
112
- index =>
113
- html`
114
- <tr>
115
- <td class="label">${records > 1 ? index + 1 : i18next.t('field.value')}</td>
116
- ${subgroupDataItems.map(dataItem => {
117
- const { tag = '', type } = dataItem
118
- const valueArray = data[tag]
119
- const value = Array.isArray(valueArray) ? valueArray[index] : index == 0 ? valueArray : undefined
120
-
121
- return html` <td>${this.buildValue(type, value)}</td> `
122
- })}
123
- </tr>
124
- `
112
+ index => html`
113
+ <tr>
114
+ <td class="label">${records > 1 ? index + 1 : i18next.t('field.value')}</td>
115
+ ${subgroupDataItems.map(dataItem => {
116
+ const { tag = '', type } = dataItem
117
+ const valueArray = data[tag]
118
+ const value = Array.isArray(valueArray) ? valueArray[index] : index == 0 ? valueArray : undefined
119
+
120
+ return html` <td>${this.buildValue(type, value)}</td> `
121
+ })}
122
+ </tr>
123
+ `
125
124
  )}
126
125
  <tr>
127
126
  <td class="label">${i18next.t('field.spec')}</td>
@@ -132,13 +131,13 @@ export class OxDataSampleSubgroupView extends LitElement {
132
131
  <tr>
133
132
  <td class="label">${i18next.t('field.ooc')}</td>
134
133
  ${subgroupDataItems.map(
135
- dataItem => html` <td>${judgment?.[dataItem.tag]?.ooc ? html`<mwc-icon>done</mwc-icon>` : nothing}</td> `
134
+ dataItem => html` <td>${judgment?.[dataItem.tag]?.ooc ? html`<md-icon>done</md-icon>` : nothing}</td> `
136
135
  )}
137
136
  </tr>
138
137
  <tr>
139
138
  <td class="label">${i18next.t('field.oos')}</td>
140
139
  ${subgroupDataItems.map(
141
- dataItem => html` <td>${judgment?.[dataItem.tag]?.oos ? html`<mwc-icon>done</mwc-icon>` : nothing}</td> `
140
+ dataItem => html` <td>${judgment?.[dataItem.tag]?.oos ? html`<md-icon>done</md-icon>` : nothing}</td> `
142
141
  )}
143
142
  </tr>
144
143
  </table>`
@@ -40,7 +40,7 @@ export class OxDataSampleView extends LitElement {
40
40
  [page-description] * {
41
41
  vertical-align: middle;
42
42
  }
43
- [page-description] mwc-icon {
43
+ [page-description] md-icon {
44
44
  margin-top: -2px;
45
45
  font-size: 0.9rem;
46
46
  color: var(--page-description-color);
@@ -88,7 +88,7 @@ export class OxDataSampleView extends LitElement {
88
88
  td[name] {
89
89
  font-weight: bold;
90
90
  }
91
- td mwc-icon {
91
+ td md-icon {
92
92
  color: var(--status-danger-color);
93
93
  }
94
94
 
@@ -134,9 +134,9 @@ export class OxDataSampleView extends LitElement {
134
134
 
135
135
  return html` <h2>${name}</h2>
136
136
  <p page-description>
137
- <mwc-icon>info_outline</mwc-icon> ${description}<br />
138
- <mwc-icon>alarm</mwc-icon> ${i18next.t('field.work-date')}: ${workDate} ${workShift} |
139
- <mwc-icon>pending_actions</mwc-icon> ${i18next.t('field.collected-at')}:
137
+ <md-icon>info</md-icon> ${description}<br />
138
+ <md-icon>alarm</md-icon> ${i18next.t('field.work-date')}: ${workDate} ${workShift} |
139
+ <md-icon>pending_actions</md-icon> ${i18next.t('field.collected-at')}:
140
140
  ${formatter.format(new Date(collectedAt!))}
141
141
  </p>
142
142
 
@@ -167,8 +167,8 @@ export class OxDataSampleView extends LitElement {
167
167
  <td>${unit}</td>
168
168
  <td>${this.buildValue(type, value)}</td>
169
169
  <td><pre>${this.buildSpec(useCaseNames, spec)}</pre></td>
170
- <td>${ooc ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
171
- <td>${oos ? html`<mwc-icon>done</mwc-icon>` : ''}</td>
170
+ <td>${ooc ? html`<md-icon>done</md-icon>` : ''}</td>
171
+ <td>${oos ? html`<md-icon>done</md-icon>` : ''}</td>
172
172
  </tr>
173
173
  `
174
174
  })}
@@ -39,7 +39,7 @@ export class OxDataSummaryView extends LitElement {
39
39
  [page-description] * {
40
40
  vertical-align: middle;
41
41
  }
42
- [page-description] mwc-icon {
42
+ [page-description] md-icon {
43
43
  margin-top: -2px;
44
44
  font-size: 0.9rem;
45
45
  color: var(--page-description-color);
@@ -86,7 +86,7 @@ export class OxDataSummaryView extends LitElement {
86
86
  td[name] {
87
87
  font-weight: bold;
88
88
  }
89
- td mwc-icon {
89
+ td md-icon {
90
90
  color: var(--status-danger-color);
91
91
  }
92
92
 
@@ -113,8 +113,8 @@ export class OxDataSummaryView extends LitElement {
113
113
 
114
114
  return html` <h2>${name}</h2>
115
115
  <p page-description>
116
- <mwc-icon>info_outline</mwc-icon> ${description}<br />
117
- <mwc-icon>alarm</mwc-icon> ${i18next.t('field.date')}: ${date} ${period}
116
+ <md-icon>info</md-icon> ${description}<br />
117
+ <md-icon>alarm</md-icon> ${i18next.t('field.date')}: ${date} ${period}
118
118
  </p>
119
119
 
120
120
  <form>
@@ -1,7 +1,7 @@
1
1
  import '@operato/i18n'
2
2
  import '../src/ox-data-entry-form.js'
3
3
  import '../src/usecase/ccp' /* register usecase CCP */
4
- import '@material/mwc-icon'
4
+ import '@material/web/icon/icon.js'
5
5
 
6
6
  import { html, TemplateResult } from 'lit'
7
7
 
@@ -193,7 +193,19 @@ var value = {
193
193
 
194
194
  const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
195
195
  <link href="/themes/app-theme.css" rel="stylesheet" />
196
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
196
+ <link
197
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
198
+ rel="stylesheet"
199
+ />
200
+ <link
201
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
202
+ rel="stylesheet"
203
+ />
204
+ <link
205
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
206
+ rel="stylesheet"
207
+ />
208
+
197
209
  <style>
198
210
  body {
199
211
  }
@@ -1,5 +1,5 @@
1
1
  import '@operato/i18n'
2
- import '@material/mwc-icon'
2
+ import '@material/web/icon/icon.js'
3
3
  import '@operato/property-editor/ox-property-editor-checkbox.js'
4
4
  import '@operato/property-editor/ox-property-editor-number.js'
5
5
  import '@operato/property-editor/ox-property-editor-string.js'
@@ -107,7 +107,19 @@ var specB = {
107
107
 
108
108
  const Template: Story<ArgTypes> = ({}: ArgTypes) =>
109
109
  html` <link href="/themes/app-theme.css" rel="stylesheet" />
110
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
110
+ <link
111
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
112
+ rel="stylesheet"
113
+ />
114
+ <link
115
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
116
+ rel="stylesheet"
117
+ />
118
+ <link
119
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
120
+ rel="stylesheet"
121
+ />
122
+
111
123
  <style>
112
124
  body {
113
125
  }
@@ -1,7 +1,7 @@
1
1
  import '@operato/i18n'
2
2
  import '../src/ox-data-ooc-brief-view.js'
3
3
  import '../src/usecase/ccp/index.js' /* register usecase CCP */
4
- import '@material/mwc-icon'
4
+ import '@material/web/icon/icon.js'
5
5
 
6
6
  import { html, TemplateResult } from 'lit'
7
7
 
@@ -263,21 +263,32 @@ var dataOoc = {
263
263
  ]
264
264
  }
265
265
 
266
- const Template: Story<ArgTypes> = ({}: ArgTypes) =>
267
- html`
268
- <link href="/themes/app-theme.css" rel="stylesheet" />
269
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
270
- <style>
271
- body {
272
- }
273
- </style>
266
+ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
267
+ <link href="/themes/app-theme.css" rel="stylesheet" />
268
+ <link
269
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
270
+ rel="stylesheet"
271
+ />
272
+ <link
273
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
274
+ rel="stylesheet"
275
+ />
276
+ <link
277
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
278
+ rel="stylesheet"
279
+ />
280
+
281
+ <style>
282
+ body {
283
+ }
284
+ </style>
274
285
 
275
- <ox-data-ooc-brief-view
276
- .dataSet=${dataSet}
277
- .dataOoc=${dataOoc}
278
- @change=${(e: CustomEvent) => console.log(e.detail)}
279
- ></ox-data-ooc-brief-view>
280
- `
286
+ <ox-data-ooc-brief-view
287
+ .dataSet=${dataSet}
288
+ .dataOoc=${dataOoc}
289
+ @change=${(e: CustomEvent) => console.log(e.detail)}
290
+ ></ox-data-ooc-brief-view>
291
+ `
281
292
 
282
293
  export const Regular = Template.bind({})
283
294
  Regular.args = {}
@@ -1,7 +1,7 @@
1
1
  import '@operato/i18n'
2
2
  import '../src/ox-data-ooc-view.js'
3
3
  import '../src/usecase/ccp' /* register usecase CCP */
4
- import '@material/mwc-icon'
4
+ import '@material/web/icon/icon.js'
5
5
 
6
6
  import { html, TemplateResult } from 'lit'
7
7
 
@@ -254,21 +254,32 @@ var dataOoc = {
254
254
  ]
255
255
  }
256
256
 
257
- const Template: Story<ArgTypes> = ({}: ArgTypes) =>
258
- html`
259
- <link href="/themes/app-theme.css" rel="stylesheet" />
260
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
261
- <style>
262
- body {
263
- }
264
- </style>
257
+ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
258
+ <link href="/themes/app-theme.css" rel="stylesheet" />
259
+ <link
260
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
261
+ rel="stylesheet"
262
+ />
263
+ <link
264
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
265
+ rel="stylesheet"
266
+ />
267
+ <link
268
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
269
+ rel="stylesheet"
270
+ />
271
+
272
+ <style>
273
+ body {
274
+ }
275
+ </style>
265
276
 
266
- <ox-data-ooc-view
267
- .dataSet=${dataSet}
268
- .dataOoc=${dataOoc}
269
- @change=${(e: CustomEvent) => console.log(e.detail)}
270
- ></ox-data-ooc-view>
271
- `
277
+ <ox-data-ooc-view
278
+ .dataSet=${dataSet}
279
+ .dataOoc=${dataOoc}
280
+ @change=${(e: CustomEvent) => console.log(e.detail)}
281
+ ></ox-data-ooc-view>
282
+ `
272
283
 
273
284
  export const Regular = Template.bind({})
274
285
  Regular.args = {}
@@ -1,7 +1,7 @@
1
1
  import '@operato/i18n'
2
2
  import '../src/ox-data-sample-view.js'
3
3
  import '../src/usecase/ccp' /* register usecase CCP */
4
- import '@material/mwc-icon'
4
+ import '@material/web/icon/icon.js'
5
5
 
6
6
  import { html, TemplateResult } from 'lit'
7
7
 
@@ -227,17 +227,28 @@ var dataSample = {
227
227
  collectedAt: Date.now()
228
228
  }
229
229
 
230
- const Template: Story<ArgTypes> = ({}: ArgTypes) =>
231
- html`
232
- <link href="/themes/app-theme.css" rel="stylesheet" />
233
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
234
- <style>
235
- body {
236
- }
237
- </style>
230
+ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
231
+ <link href="/themes/app-theme.css" rel="stylesheet" />
232
+ <link
233
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
234
+ rel="stylesheet"
235
+ />
236
+ <link
237
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
238
+ rel="stylesheet"
239
+ />
240
+ <link
241
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
242
+ rel="stylesheet"
243
+ />
244
+
245
+ <style>
246
+ body {
247
+ }
248
+ </style>
238
249
 
239
- <ox-data-sample-view .dataSample=${dataSample}></ox-data-sample-view>
240
- `
250
+ <ox-data-sample-view .dataSample=${dataSample}></ox-data-sample-view>
251
+ `
241
252
 
242
253
  export const Regular = Template.bind({})
243
254
  Regular.args = {}