@operato/dataset 2.0.0-alpha.15 → 2.0.0-alpha.151
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 +820 -0
- package/demo/favicon.ico +0 -0
- package/demo/index.html +349 -0
- package/demo/ox-data-ooc-brief-view-test.html +349 -0
- package/dist/src/grist-editor/ox-grist-editor-data-item-spec.d.ts +1 -1
- package/dist/src/grist-editor/ox-popup-data-item-spec.d.ts +2 -1
- package/dist/src/grist-editor/ox-popup-data-item-spec.js +8 -9
- package/dist/src/grist-editor/ox-popup-data-item-spec.js.map +1 -1
- package/dist/src/ox-data-entry-form.js +51 -39
- package/dist/src/ox-data-entry-form.js.map +1 -1
- package/dist/src/ox-data-entry-subgroup-form.d.ts +1 -1
- package/dist/src/ox-data-entry-subgroup-form.js +2 -0
- package/dist/src/ox-data-entry-subgroup-form.js.map +1 -1
- package/dist/src/ox-data-entry-view.d.ts +3 -3
- package/dist/src/ox-data-entry-view.js +19 -9
- package/dist/src/ox-data-entry-view.js.map +1 -1
- package/dist/src/ox-data-item-spec.d.ts +1 -1
- package/dist/src/ox-data-item-spec.js +10 -10
- package/dist/src/ox-data-item-spec.js.map +1 -1
- package/dist/src/ox-data-ooc-badge.d.ts +2 -2
- package/dist/src/ox-data-ooc-badge.js +10 -6
- package/dist/src/ox-data-ooc-badge.js.map +1 -1
- package/dist/src/ox-data-ooc-brief-view.d.ts +2 -2
- package/dist/src/ox-data-ooc-brief-view.js +1 -2
- package/dist/src/ox-data-ooc-brief-view.js.map +1 -1
- package/dist/src/ox-data-ooc-correction-part.d.ts +2 -2
- package/dist/src/ox-data-ooc-correction-part.js +10 -11
- package/dist/src/ox-data-ooc-correction-part.js.map +1 -1
- package/dist/src/ox-data-ooc-history.d.ts +2 -2
- package/dist/src/ox-data-ooc-history.js +9 -9
- package/dist/src/ox-data-ooc-history.js.map +1 -1
- package/dist/src/ox-data-ooc-view.d.ts +2 -2
- package/dist/src/ox-data-ooc-view.js +1 -2
- package/dist/src/ox-data-ooc-view.js.map +1 -1
- package/dist/src/ox-data-sample-subgroup-view.d.ts +1 -1
- package/dist/src/ox-data-sample-subgroup-view.js +9 -9
- package/dist/src/ox-data-sample-subgroup-view.js.map +1 -1
- package/dist/src/ox-data-sample-view.d.ts +1 -1
- package/dist/src/ox-data-sample-view.js +53 -37
- package/dist/src/ox-data-sample-view.js.map +1 -1
- package/dist/src/ox-data-summary-view.d.ts +1 -1
- package/dist/src/ox-data-summary-view.js +12 -6
- package/dist/src/ox-data-summary-view.js.map +1 -1
- package/dist/src/types.d.ts +12 -9
- package/dist/src/types.js.map +1 -1
- package/dist/src/usecase/ccp/ox-input-ccp-limits.d.ts +1 -1
- package/dist/src/usecase/qc/ox-input-qc-limits.d.ts +1 -1
- package/dist/src/usecase/spc/index.d.ts +1 -0
- package/dist/src/usecase/spc/index.js +8 -0
- package/dist/src/usecase/spc/index.js.map +1 -0
- package/dist/src/usecase/spc/ox-data-use-case-spc.d.ts +7 -0
- package/dist/src/usecase/spc/ox-data-use-case-spc.js +102 -0
- package/dist/src/usecase/spc/ox-data-use-case-spc.js.map +1 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.d.ts +44 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.js +193 -0
- package/dist/src/usecase/spc/ox-input-spc-limits.js.map +1 -0
- package/dist/src/usecase/spc/ox-property-editor-spc-limits.d.ts +6 -0
- package/dist/src/usecase/spc/ox-property-editor-spc-limits.js +24 -0
- package/dist/src/usecase/spc/ox-property-editor-spc-limits.js.map +1 -0
- package/dist/stories/ox-data-entry-form.stories.d.ts +1 -1
- package/dist/stories/ox-data-entry-form.stories.js +73 -17
- package/dist/stories/ox-data-entry-form.stories.js.map +1 -1
- package/dist/stories/ox-data-item-spec.stories.d.ts +1 -1
- package/dist/stories/ox-data-item-spec.stories.js +14 -2
- package/dist/stories/ox-data-item-spec.stories.js.map +1 -1
- package/dist/stories/ox-data-ooc-brief-view.stories.d.ts +1 -1
- package/dist/stories/ox-data-ooc-brief-view.stories.js +25 -13
- package/dist/stories/ox-data-ooc-brief-view.stories.js.map +1 -1
- package/dist/stories/ox-data-ooc-view.stories.d.ts +1 -1
- package/dist/stories/ox-data-ooc-view.stories.js +25 -13
- package/dist/stories/ox-data-ooc-view.stories.js.map +1 -1
- package/dist/stories/ox-data-sample-view.stories.d.ts +1 -1
- package/dist/stories/ox-data-sample-view.stories.js +21 -9
- package/dist/stories/ox-data-sample-view.stories.js.map +1 -1
- package/dist/stories/ox-grist-editor-data-item-spec.stories.d.ts +1 -1
- package/dist/stories/ox-grist-editor-data-item-spec.stories.js +68 -56
- package/dist/stories/ox-grist-editor-data-item-spec.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -26
- package/src/grist-editor/ox-popup-data-item-spec.ts +8 -9
- package/src/ox-data-entry-form.ts +68 -49
- package/src/ox-data-entry-subgroup-form.ts +2 -0
- package/src/ox-data-entry-view.ts +20 -9
- package/src/ox-data-item-spec.ts +12 -11
- package/src/ox-data-ooc-badge.ts +10 -6
- package/src/ox-data-ooc-brief-view.ts +1 -2
- package/src/ox-data-ooc-correction-part.ts +10 -11
- package/src/ox-data-ooc-history.ts +9 -9
- package/src/ox-data-ooc-view.ts +1 -2
- package/src/ox-data-sample-subgroup-view.ts +16 -17
- package/src/ox-data-sample-view.ts +53 -37
- package/src/ox-data-summary-view.ts +12 -6
- package/src/types.ts +31 -29
- package/src/usecase/spc/index.ts +10 -0
- package/src/usecase/spc/ox-data-use-case-spc.ts +147 -0
- package/src/usecase/spc/ox-input-spc-limits.ts +182 -0
- package/src/usecase/spc/ox-property-editor-spc-limits.ts +23 -0
- package/stories/ox-data-entry-form.stories.ts +78 -22
- package/stories/ox-data-item-spec.stories.ts +14 -2
- package/stories/ox-data-ooc-brief-view.stories.ts +26 -15
- package/stories/ox-data-ooc-view.stories.ts +26 -15
- package/stories/ox-data-sample-view.stories.ts +22 -11
- package/stories/ox-grist-editor-data-item-spec.stories.ts +69 -58
- package/themes/grist-theme.css +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@material/
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
2
|
import '@operato/property-editor/ox-property-editor-checkbox.js'
|
|
3
3
|
import '@operato/property-editor/ox-property-editor-number.js'
|
|
4
4
|
import '@operato/property-editor/ox-property-editor-string.js'
|
|
@@ -90,7 +90,7 @@ class GristDemo extends LitElement {
|
|
|
90
90
|
#tailer {
|
|
91
91
|
display: flex;
|
|
92
92
|
flex-direction: row;
|
|
93
|
-
margin: 0 var(--
|
|
93
|
+
margin: 0 var(--spacing-medium);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
#tailer a {
|
|
@@ -98,7 +98,7 @@ class GristDemo extends LitElement {
|
|
|
98
98
|
margin: 0 var(--margin-narrow);
|
|
99
99
|
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
100
100
|
font-size: var(--fontsize-default);
|
|
101
|
-
color: var(--primary-
|
|
101
|
+
color: var(--md-sys-color-on-primary-container);
|
|
102
102
|
}
|
|
103
103
|
`
|
|
104
104
|
]
|
|
@@ -306,9 +306,9 @@ class GristDemo extends LitElement {
|
|
|
306
306
|
|
|
307
307
|
<div slot="headroom" id="headroom">
|
|
308
308
|
<div id="modes">
|
|
309
|
-
<
|
|
310
|
-
<
|
|
311
|
-
<
|
|
309
|
+
<md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>view_list</md-icon>
|
|
310
|
+
<md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>menu</md-icon>
|
|
311
|
+
<md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
|
|
312
312
|
</div>
|
|
313
313
|
</div>
|
|
314
314
|
</ox-grist>
|
|
@@ -332,67 +332,78 @@ interface Story<T> {
|
|
|
332
332
|
|
|
333
333
|
interface ArgTypes {}
|
|
334
334
|
|
|
335
|
-
const Template: Story<ArgTypes> = ({}: ArgTypes) =>
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
335
|
+
const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
|
|
336
|
+
<link
|
|
337
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
338
|
+
rel="stylesheet"
|
|
339
|
+
/>
|
|
340
|
+
<link
|
|
341
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
342
|
+
rel="stylesheet"
|
|
343
|
+
/>
|
|
344
|
+
<link
|
|
345
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
346
|
+
rel="stylesheet"
|
|
347
|
+
/>
|
|
341
348
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
flex-direction: row;
|
|
346
|
-
align-items: center;
|
|
347
|
-
padding: var(--padding-default) var(--padding-wide);
|
|
348
|
-
background-color: var(--theme-white-color);
|
|
349
|
-
box-shadow: var(--box-shadow);
|
|
349
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
|
350
|
+
<link href="/themes/oops-theme.css" rel="stylesheet" />
|
|
351
|
+
<link href="/themes/grist-theme.css" rel="stylesheet" />
|
|
350
352
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
margin-right: var(--margin-default);
|
|
360
|
-
padding-left: var(--padding-narrow);
|
|
361
|
-
border-bottom: var(--border-dark-color);
|
|
362
|
-
position: relative;
|
|
363
|
-
color: var(--secondary-color);
|
|
364
|
-
font-size: var(--fontsize-default);
|
|
365
|
-
user-select: none;
|
|
366
|
-
}
|
|
353
|
+
<style>
|
|
354
|
+
[slot='headroom'] {
|
|
355
|
+
display: flex;
|
|
356
|
+
flex-direction: row;
|
|
357
|
+
align-items: center;
|
|
358
|
+
padding: var(--padding-default) var(--padding-wide);
|
|
359
|
+
background-color: var(--md-sys-color-surface);
|
|
360
|
+
box-shadow: var(--box-shadow);
|
|
367
361
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
362
|
+
--md-icon-size: 24px;
|
|
363
|
+
}
|
|
364
|
+
#sorters md-icon,
|
|
365
|
+
#modes md-icon {
|
|
366
|
+
--md-icon-size: 18px;
|
|
367
|
+
}
|
|
368
|
+
#sorters {
|
|
369
|
+
margin-left: auto;
|
|
370
|
+
margin-right: var(--spacing-medium);
|
|
371
|
+
padding-left: var(--padding-narrow);
|
|
372
|
+
border-bottom: var(--border-dark-color);
|
|
373
|
+
position: relative;
|
|
374
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
375
|
+
font-size: var(--fontsize-default);
|
|
376
|
+
user-select: none;
|
|
377
|
+
}
|
|
372
378
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
379
|
+
#sorters > * {
|
|
380
|
+
padding: var(--padding-narrow);
|
|
381
|
+
vertical-align: middle;
|
|
382
|
+
}
|
|
378
383
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
384
|
+
#filters {
|
|
385
|
+
display: flex;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
align-items: center;
|
|
388
|
+
}
|
|
382
389
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
390
|
+
#filters * {
|
|
391
|
+
margin-right: var(--spacing-medium);
|
|
392
|
+
}
|
|
387
393
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
394
|
+
@media only screen and (max-width: 460px) {
|
|
395
|
+
#filters {
|
|
396
|
+
flex-direction: column;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
#modes {
|
|
400
|
+
display: none;
|
|
391
401
|
}
|
|
392
|
-
|
|
402
|
+
}
|
|
403
|
+
</style>
|
|
393
404
|
|
|
394
|
-
|
|
395
|
-
|
|
405
|
+
<ox-data-items mode="LIST"></ox-data-items>
|
|
406
|
+
`
|
|
396
407
|
|
|
397
408
|
export const Regular = Template.bind({})
|
|
398
409
|
Regular.args = {}
|
package/themes/grist-theme.css
CHANGED
|
@@ -35,6 +35,8 @@ body {
|
|
|
35
35
|
--grid-header-filter-title-font: normal 12px var(--theme-font);
|
|
36
36
|
--grid-header-filter-title-icon-color: var(--primary-color);
|
|
37
37
|
|
|
38
|
+
--grid-body-bottom-border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
|
|
39
|
+
|
|
38
40
|
--grid-record-background-color: var(--theme-white-color);
|
|
39
41
|
--grid-record-odd-background-color: #f9f7f5;
|
|
40
42
|
--grid-record-padding: 0 5px 0 5px;
|