@operato/dataset 10.29.81 → 10.29.84

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 (57) hide show
  1. package/dist/stories/ox-checklist-entry-form.stories.d.ts +18 -0
  2. package/dist/stories/ox-checklist-entry-form.stories.js +194 -0
  3. package/dist/stories/ox-data-entry-form-subgroups.stories.d.ts +19 -0
  4. package/dist/stories/ox-data-entry-form-subgroups.stories.js +250 -0
  5. package/dist/stories/ox-data-entry-form.stories.d.ts +19 -0
  6. package/dist/stories/ox-data-entry-form.stories.js +278 -0
  7. package/dist/stories/ox-data-item-spec.stories.d.ts +26 -0
  8. package/dist/stories/ox-data-item-spec.stories.js +234 -0
  9. package/dist/stories/ox-data-ooc-brief-view.stories.d.ts +19 -0
  10. package/dist/stories/ox-data-ooc-brief-view.stories.js +320 -0
  11. package/dist/stories/ox-data-ooc-view.stories.d.ts +19 -0
  12. package/dist/stories/ox-data-ooc-view.stories.js +314 -0
  13. package/dist/stories/ox-data-sample-view.stories.d.ts +19 -0
  14. package/dist/stories/ox-data-sample-view.stories.js +300 -0
  15. package/dist/stories/ox-grist-editor-data-item-spec.stories.d.ts +27 -0
  16. package/dist/stories/ox-grist-editor-data-item-spec.stories.js +394 -0
  17. package/package.json +26 -12
  18. package/CHANGELOG.md +0 -7219
  19. package/dist/src/grist-editor/index.js.map +0 -1
  20. package/dist/src/grist-editor/ox-grist-editor-data-item-spec.js.map +0 -1
  21. package/dist/src/grist-editor/ox-popup-data-item-spec.js.map +0 -1
  22. package/dist/src/index.js.map +0 -1
  23. package/dist/src/ox-checklist-entry-form.js.map +0 -1
  24. package/dist/src/ox-checklist-sample-view.js.map +0 -1
  25. package/dist/src/ox-data-entry-form.js.map +0 -1
  26. package/dist/src/ox-data-entry-subgroup-form.js.map +0 -1
  27. package/dist/src/ox-data-entry-subgroup-view.js.map +0 -1
  28. package/dist/src/ox-data-entry-view.js.map +0 -1
  29. package/dist/src/ox-data-input-factory.js.map +0 -1
  30. package/dist/src/ox-data-item-spec.js.map +0 -1
  31. package/dist/src/ox-data-ooc-badge.js.map +0 -1
  32. package/dist/src/ox-data-ooc-brief-view.js.map +0 -1
  33. package/dist/src/ox-data-ooc-correction-part.js.map +0 -1
  34. package/dist/src/ox-data-ooc-history.js.map +0 -1
  35. package/dist/src/ox-data-ooc-view.js.map +0 -1
  36. package/dist/src/ox-data-sample-subgroup-view.js.map +0 -1
  37. package/dist/src/ox-data-sample-view.js.map +0 -1
  38. package/dist/src/ox-data-summary-view.js.map +0 -1
  39. package/dist/src/types.js.map +0 -1
  40. package/dist/src/usecase/ccp/index.js.map +0 -1
  41. package/dist/src/usecase/ccp/ox-data-use-case-ccp.js.map +0 -1
  42. package/dist/src/usecase/ccp/ox-input-ccp-limits.js.map +0 -1
  43. package/dist/src/usecase/ccp/ox-property-editor-ccp-limits.js.map +0 -1
  44. package/dist/src/usecase/ox-data-use-case.js.map +0 -1
  45. package/dist/src/usecase/qc/index.js.map +0 -1
  46. package/dist/src/usecase/qc/ox-data-use-case-qc.js.map +0 -1
  47. package/dist/src/usecase/qc/ox-input-qc-limits.js.map +0 -1
  48. package/dist/src/usecase/qc/ox-property-editor-qc-limits.js.map +0 -1
  49. package/dist/src/usecase/spc/index.js.map +0 -1
  50. package/dist/src/usecase/spc/ox-data-use-case-spc.js.map +0 -1
  51. package/dist/src/usecase/spc/ox-input-spc-limits.js.map +0 -1
  52. package/dist/src/usecase/spc/ox-property-editor-spc-limits.js.map +0 -1
  53. package/dist/test/date-item.test.d.ts +0 -2
  54. package/dist/test/date-item.test.js +0 -49
  55. package/dist/test/date-item.test.js.map +0 -1
  56. package/dist/tsconfig.tsbuildinfo +0 -1
  57. package/test/date-item.test.ts +0 -55
@@ -1,55 +0,0 @@
1
- import { expect, fixture, oneEvent } from '@open-wc/testing'
2
- import { sendKeys } from '@web/test-runner-commands'
3
- import { html } from 'lit'
4
-
5
- import { i18next } from '@operato/i18n'
6
- import { OxInputDate } from '@operato/input/ox-input-date.js'
7
-
8
- import '../src/ox-data-entry-form.js'
9
- import '../src/ox-checklist-entry-form.js'
10
-
11
- /* A date item of a data set is entered in the one field for days (ox-input-date); what is typed is the item's value. */
12
- describe('a date item', () => {
13
- const touchQuery = OxInputDate.touchQuery
14
- let previousLanguage: string
15
- before(async () => {
16
- OxInputDate.touchQuery = 'not all'
17
- previousLanguage = i18next.language
18
- await i18next.changeLanguage('ko')
19
- })
20
- after(async () => {
21
- OxInputDate.touchQuery = touchQuery
22
- /* The language is kept in the browser's storage; the next test file must not start in Korean. */
23
- await i18next.changeLanguage(previousLanguage)
24
- })
25
-
26
- const dataSet = {
27
- name: 'inspection',
28
- description: '',
29
- dataItems: [{ name: 'checked on', tag: 'checkedOn', type: 'date', active: true, quota: 1, options: {} }]
30
- } as any
31
-
32
- it('is entered in the field and read into the form\'s value', async () => {
33
- const form = await fixture<any>(html`<ox-data-entry-form .dataSet=${dataSet} .value=${{ checkedOn: '2026-01-01' }}></ox-data-entry-form>`)
34
- const field = form.renderRoot.querySelector('ox-input-date[name="checkedOn"]') as OxInputDate
35
- expect(field, 'no day field').to.exist
36
- await field.updateComplete
37
- const input = field.renderRoot.querySelector('input') as HTMLInputElement
38
- expect(input.value).to.equal('2026-01-01')
39
-
40
- input.focus()
41
- input.select()
42
- setTimeout(async () => {
43
- await sendKeys({ type: '1110' })
44
- await sendKeys({ press: 'Enter' })
45
- })
46
- const { detail } = await oneEvent(form, 'change')
47
- expect(detail.checkedOn).to.deep.equal(['2026-11-10'])
48
- })
49
-
50
- it('is the same field in a checklist', async () => {
51
- const form = await fixture<any>(html`<ox-checklist-entry-form .dataSet=${dataSet}></ox-checklist-entry-form>`)
52
- expect(form.renderRoot.querySelector('ox-input-date[name="checkedOn"]'), 'no day field').to.exist
53
- expect(form.renderRoot.querySelector('input[type="date"]')).to.not.exist
54
- })
55
- })