dso-toolkit 39.0.0 → 40.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/components/Componenten/form/form.config.yml +72 -0
- package/dist/library/@dso-toolkit/core/cjs/dso-header.cjs.entry.js +3 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-info_2.cjs.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-map-base-layers.cjs.entry.js +3 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-map-overlays.cjs.entry.js +3 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-responsive-element.cjs.entry.js +44 -0
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/header/header.js +21 -2
- package/dist/library/@dso-toolkit/core/collection/components/map-base-layers/map-base-layers.js +21 -1
- package/dist/library/@dso-toolkit/core/collection/components/map-overlays/map-overlays.js +21 -1
- package/dist/library/@dso-toolkit/core/collection/components/responsive-element/responsive-element.css +3 -0
- package/dist/library/@dso-toolkit/core/collection/components/responsive-element/responsive-element.js +46 -0
- package/dist/library/@dso-toolkit/core/collection/components/responsive-element/responsive-element.stories.js +57 -0
- package/dist/library/@dso-toolkit/core/collection/components/responsive-element/responsive-element.template.js +8 -0
- package/dist/library/@dso-toolkit/core/collection/components/selectable/selectable.js +5 -4
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/example-pages/viewer-grid-document-header.example-template.js +15 -164
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/example-pages/viewer-grid-document-list.example-template.js +12 -0
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.stories.js +2 -2
- package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +54 -11
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-02272301.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-09b53589.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-202bd676.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-336bf5b9.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-3ad06d9d.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/esm/dso-header.entry.js +3 -2
- package/dist/library/@dso-toolkit/core/esm/dso-info_2.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/esm/dso-map-base-layers.entry.js +3 -1
- package/dist/library/@dso-toolkit/core/esm/dso-map-overlays.entry.js +3 -1
- package/dist/library/@dso-toolkit/core/esm/dso-responsive-element.entry.js +40 -0
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/header/header.d.ts +7 -0
- package/dist/library/@dso-toolkit/core/types/components/map-base-layers/map-base-layers.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/map-overlays/map-overlays.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/responsive-element/responsive-element.d.ts +10 -0
- package/dist/library/@dso-toolkit/core/types/components/responsive-element/responsive-element.stories.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/responsive-element/responsive-element.template.d.ts +3 -0
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/example-pages/viewer-grid-document-list.example-template.d.ts +2 -0
- package/dist/library/@dso-toolkit/core/types/components.d.ts +22 -1
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +1 -1
- package/dist/library/components/detail/form--form-vertical.html +1 -1
- package/dist/library/components/detail/form--header-in-legend.html +1812 -0
- package/dist/library/components/detail/form--multi-page.html +1 -1
- package/dist/library/components/detail/form--sections.html +1 -1
- package/dist/library/components/detail/form--simple-form.html +1 -1
- package/dist/library/components/detail/form--single-page.html +1 -1
- package/dist/library/components/detail/form.html +297 -1
- package/dist/library/components/preview/form--header-in-legend.html +567 -0
- package/dist/library/components/preview/form.html +278 -0
- package/dist/library/components/render/form--header-in-legend.html +551 -0
- package/dist/library/components/render/form.html +557 -0
- package/dist/library/styles/dso.css +508 -224
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-02272301.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-09b53589.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-202bd676.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-336bf5b9.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-3ad06d9d.entry.js +1 -0
- package/dist/toolkit/styles/dso.css +508 -224
- package/hydrate/index.js +61 -7
- package/libs/@dso-toolkit/css/src/components/document-header/document-header.scss +122 -0
- package/libs/@dso-toolkit/css/src/components/document-list/document-list.scss +63 -0
- package/libs/@dso-toolkit/css/src/components/form/fieldset.scss +1 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/confirm/form-group-confirm.scss +22 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/files/form-group-files.scss +142 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/input-number/form-group-input-number.scss +21 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/select/form-group-select.scss +38 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/static/form-group-static.scss +30 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/textarea/form-group-textarea.scss +32 -0
- package/libs/@dso-toolkit/css/src/components/form/form.scss +6 -0
- package/libs/@dso-toolkit/css/src/components/tile-grid/tile-grid.scss +14 -0
- package/libs/@dso-toolkit/css/src/dso.scss +2 -0
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.args.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.stories.ts +5 -18
- package/libs/@dso-toolkit/sources/src/components/conclusion/conclusion.scss +1 -0
- package/libs/@dso-toolkit/sources/src/components/document-header/document-header.args.ts +31 -0
- package/libs/@dso-toolkit/sources/src/components/document-header/document-header.models.ts +13 -0
- package/libs/@dso-toolkit/sources/src/components/document-header/document-header.stories.ts +48 -0
- package/libs/@dso-toolkit/sources/src/components/document-list/document-list.args.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/document-list/document-list.content.ts +30 -0
- package/libs/@dso-toolkit/sources/src/components/document-list/document-list.models.ts +17 -0
- package/libs/@dso-toolkit/sources/src/components/document-list/document-list.stories.ts +36 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/confirm.content.ts +10 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/files.content.ts +28 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/input-number.content.ts +11 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/select.content.ts +66 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/static.content.ts +12 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/textarea.content.ts +14 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/confirm/form-group-confirm.args.ts +80 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/files/form-group-files.args.ts +76 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/input-number/form-group-input-number.args.ts +73 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/select/form-group-select.args.ts +130 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/static/form-group-static.args.ts +93 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/textarea/form-group-textarea.args.ts +155 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.args.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.models.ts +6 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.stories.ts +104 -8
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-confirm.model.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-files.model.ts +15 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-input-number.model.ts +13 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-select.model.ts +23 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-static.model.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-textarea.model.ts +11 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group.model.ts +7 -2
- package/libs/@dso-toolkit/sources/src/components/form/models/form.model.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/responsive-element/responsive-element.args.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/responsive-element/responsive-element.models.ts +3 -0
- package/libs/@dso-toolkit/sources/src/components/responsive-element/responsive-element.stories.ts +37 -0
- package/libs/@dso-toolkit/sources/src/components/tile/tile.scss +6 -1
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.stories.ts +6 -4
- package/libs/@dso-toolkit/sources/src/index.ts +6 -0
- package/package.json +2 -2
- package/reference/render/form--header-in-legend.html +156 -0
- package/src/styles/components/_form.scss +0 -114
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/example-pages/viewer-grid-document-item.example-template.js +0 -56
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-746d70f9.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-8bb8148f.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-c32860a3.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-d76c1151.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/example-pages/viewer-grid-document-item.example-template.d.ts +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-746d70f9.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-8bb8148f.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-c32860a3.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-d76c1151.entry.js +0 -1
- package/src/styles/components/form/_files.scss +0 -133
|
@@ -4,20 +4,39 @@ import { bindTemplate, StorybookParameters, } from '../../stories-helpers';
|
|
|
4
4
|
|
|
5
5
|
import { formArgsMapper, formArgTypes } from './form.args';
|
|
6
6
|
|
|
7
|
-
import { inputContent } from './content/input.content';
|
|
8
7
|
import { checkboxesContent } from './content/checkboxes.content';
|
|
8
|
+
import { confirmContent } from './content/confirm.content';
|
|
9
|
+
import { filesContent } from './content/files.content';
|
|
10
|
+
import { inputContent } from './content/input.content';
|
|
11
|
+
import { inputNumberContent } from './content/input-number.content';
|
|
9
12
|
import { radiosContent } from './content/radios.content';
|
|
10
|
-
import {
|
|
13
|
+
import { selectContent } from './content/select.content';
|
|
14
|
+
import { staticContent } from './content/static.content';
|
|
15
|
+
import { textareaContent } from './content/textarea.content';
|
|
16
|
+
import { Form, FormGroupCheckboxes, FormGroupConfirm, FormGroupFiles, FormGroupInput, FormGroupInputDate, FormGroupInputNumber, FormGroupRadios, FormGroupStatic, FormGroupSelect, FormGroupTextarea } from './form.models';
|
|
11
17
|
import { formGroupCheckboxesArgsMapper, formGroupCheckboxesArgTypes } from './form-groups/checkboxes/form-group-checkboxes.args';
|
|
18
|
+
import { formGroupConfirmArgsMapper, formGroupConfirmArgTypes } from './form-groups/confirm/form-group-confirm.args';
|
|
19
|
+
import { formGroupFilesArgsMapper, formGroupFilesArgTypes } from './form-groups/files/form-group-files.args';
|
|
12
20
|
import { formGroupInputArgsMapper, formGroupInputArgTypes } from './form-groups/input/form-group-input.args';
|
|
21
|
+
import { formGroupInputNumberArgsMapper, formGroupInputNumberArgTypes } from './form-groups/input-number/form-group-input-number.args';
|
|
13
22
|
import { formGroupRadiosArgsMapper, formGroupRadiosArgTypes } from './form-groups/radios/form-group-radios.args';
|
|
23
|
+
import { formGroupSelectArgsMapper, formGroupSelectArgTypes } from './form-groups/select/form-group-select.args';
|
|
24
|
+
import { formGroupStaticArgsMapper, formGroupStaticArgTypes } from './form-groups/static/form-group-static.args';
|
|
25
|
+
import { formGroupTextareaArgsMapper, formGroupTextareaArgTypes } from './form-groups/textarea/form-group-textarea.args';
|
|
26
|
+
|
|
14
27
|
|
|
15
28
|
export interface FormParameters<TemplateFnReturnType> {
|
|
16
29
|
formTemplate: (form: Form<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
17
30
|
formGroupDecorator: DecoratorFunction<TemplateFnReturnType>;
|
|
18
31
|
formGroupCheckboxesTemplate: (formGroupCheckboxes: FormGroupCheckboxes<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
32
|
+
formGroupConfirmTemplate: (formGroupConfirm: FormGroupConfirm<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
33
|
+
formGroupFilesTemplate: (formGroupFiles: FormGroupFiles<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
19
34
|
formGroupInputTemplate: (formGroupInput: FormGroupInput<TemplateFnReturnType> | FormGroupInputDate<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
35
|
+
formGroupInputNumberTemplate: (formGroupInputNumber: FormGroupInputNumber<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
20
36
|
formGroupRadiosTemplate: (formGroupRadios: FormGroupRadios<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
37
|
+
formGroupSelectTemplate: (formGroupSelect: FormGroupSelect<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
38
|
+
formGroupStaticTemplate: (formGroupStatic: FormGroupStatic<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
39
|
+
formGroupTextareaTemplate: (formGroupTextarea: FormGroupTextarea<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
21
40
|
}
|
|
22
41
|
|
|
23
42
|
export function storiesOfForm<TemplateFnReturnType>(
|
|
@@ -30,8 +49,14 @@ export function storiesOfForm<TemplateFnReturnType>(
|
|
|
30
49
|
formTemplate,
|
|
31
50
|
formGroupDecorator,
|
|
32
51
|
formGroupCheckboxesTemplate,
|
|
52
|
+
formGroupConfirmTemplate,
|
|
53
|
+
formGroupFilesTemplate,
|
|
33
54
|
formGroupInputTemplate,
|
|
34
|
-
|
|
55
|
+
formGroupInputNumberTemplate,
|
|
56
|
+
formGroupRadiosTemplate,
|
|
57
|
+
formGroupSelectTemplate,
|
|
58
|
+
formGroupStaticTemplate,
|
|
59
|
+
formGroupTextareaTemplate
|
|
35
60
|
}: FormParameters<TemplateFnReturnType>
|
|
36
61
|
) {
|
|
37
62
|
storiesOf('Form/form', mainModule)
|
|
@@ -44,6 +69,42 @@ export function storiesOfForm<TemplateFnReturnType>(
|
|
|
44
69
|
.add('form', bindTemplate(formArgsMapper, formTemplate)
|
|
45
70
|
);
|
|
46
71
|
|
|
72
|
+
storiesOf('Form/groups/checkboxes', mainModule)
|
|
73
|
+
.addParameters({
|
|
74
|
+
argTypes: formGroupCheckboxesArgTypes,
|
|
75
|
+
args: checkboxesContent,
|
|
76
|
+
docs: {
|
|
77
|
+
page: readme
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
.addDecorator(formGroupDecorator)
|
|
81
|
+
.add('checkboxes', bindTemplate(formGroupCheckboxesArgsMapper, formGroupCheckboxesTemplate)
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
storiesOf('Form/groups/confirm', mainModule)
|
|
85
|
+
.addParameters({
|
|
86
|
+
argTypes: formGroupConfirmArgTypes,
|
|
87
|
+
args: confirmContent,
|
|
88
|
+
docs: {
|
|
89
|
+
page: readme
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
.addDecorator(formGroupDecorator)
|
|
93
|
+
.add('confirm', bindTemplate(formGroupConfirmArgsMapper, formGroupConfirmTemplate)
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
storiesOf('Form/groups/files', mainModule)
|
|
97
|
+
.addParameters({
|
|
98
|
+
argTypes: formGroupFilesArgTypes,
|
|
99
|
+
args: filesContent,
|
|
100
|
+
docs: {
|
|
101
|
+
page: readme
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
.addDecorator(formGroupDecorator)
|
|
105
|
+
.add('files', bindTemplate(formGroupFilesArgsMapper, formGroupFilesTemplate)
|
|
106
|
+
);
|
|
107
|
+
|
|
47
108
|
storiesOf('Form/groups/input', mainModule)
|
|
48
109
|
.addParameters({
|
|
49
110
|
argTypes: formGroupInputArgTypes,
|
|
@@ -56,16 +117,16 @@ export function storiesOfForm<TemplateFnReturnType>(
|
|
|
56
117
|
.add('input', bindTemplate(formGroupInputArgsMapper, formGroupInputTemplate)
|
|
57
118
|
);
|
|
58
119
|
|
|
59
|
-
storiesOf('Form/groups/
|
|
120
|
+
storiesOf('Form/groups/input-number', mainModule)
|
|
60
121
|
.addParameters({
|
|
61
|
-
argTypes:
|
|
62
|
-
args:
|
|
122
|
+
argTypes: formGroupInputNumberArgTypes,
|
|
123
|
+
args: inputNumberContent,
|
|
63
124
|
docs: {
|
|
64
125
|
page: readme
|
|
65
126
|
}
|
|
66
127
|
})
|
|
67
128
|
.addDecorator(formGroupDecorator)
|
|
68
|
-
.add('
|
|
129
|
+
.add('input number', bindTemplate(formGroupInputNumberArgsMapper, formGroupInputNumberTemplate)
|
|
69
130
|
);
|
|
70
131
|
|
|
71
132
|
storiesOf('Form/groups/radios', mainModule)
|
|
@@ -79,4 +140,39 @@ export function storiesOfForm<TemplateFnReturnType>(
|
|
|
79
140
|
.addDecorator(formGroupDecorator)
|
|
80
141
|
.add('radios', bindTemplate(formGroupRadiosArgsMapper, formGroupRadiosTemplate)
|
|
81
142
|
);
|
|
82
|
-
|
|
143
|
+
|
|
144
|
+
storiesOf('Form/groups/select', mainModule)
|
|
145
|
+
.addParameters({
|
|
146
|
+
argTypes: formGroupSelectArgTypes,
|
|
147
|
+
args: selectContent,
|
|
148
|
+
docs: {
|
|
149
|
+
page: readme
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
.addDecorator(formGroupDecorator)
|
|
153
|
+
.add('select', bindTemplate(formGroupSelectArgsMapper, formGroupSelectTemplate)
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
storiesOf('Form/groups/static', mainModule)
|
|
157
|
+
.addParameters({
|
|
158
|
+
argTypes: formGroupStaticArgTypes,
|
|
159
|
+
args: staticContent,
|
|
160
|
+
docs: {
|
|
161
|
+
page: readme
|
|
162
|
+
}
|
|
163
|
+
})
|
|
164
|
+
.addDecorator(formGroupDecorator)
|
|
165
|
+
.add('static', bindTemplate(formGroupStaticArgsMapper, formGroupStaticTemplate)
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
storiesOf('Form/groups/textarea', mainModule)
|
|
169
|
+
.addParameters({
|
|
170
|
+
argTypes: formGroupTextareaArgTypes,
|
|
171
|
+
args: textareaContent,
|
|
172
|
+
docs: {
|
|
173
|
+
page: readme
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
.addDecorator(formGroupDecorator)
|
|
177
|
+
.add('textarea', bindTemplate(formGroupTextareaArgsMapper, formGroupTextareaTemplate)
|
|
178
|
+
);}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Selectable } from '../../selectable/selectable.models';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupConfirm<TemplateFnReturnType> extends Omit<FormGroupBase<TemplateFnReturnType>, 'label'> {
|
|
6
|
+
group: 'confirm',
|
|
7
|
+
selectable: Selectable<TemplateFnReturnType>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Icon } from '../../..';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupFiles<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
6
|
+
group: 'files';
|
|
7
|
+
addFileButtonVariant: 'primary' | 'secondary';
|
|
8
|
+
files: FormGroupFilesFile[];
|
|
9
|
+
warning: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface FormGroupFilesFile {
|
|
13
|
+
filename: string;
|
|
14
|
+
confidential?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Icon } from '../../..';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupInputNumber<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
6
|
+
group: 'input-number',
|
|
7
|
+
id: string,
|
|
8
|
+
min?: number,
|
|
9
|
+
max?: number,
|
|
10
|
+
count: number,
|
|
11
|
+
minusButtonInactive: boolean,
|
|
12
|
+
plusButtonInactive: boolean
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Icon } from '../../..';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupSelect<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
6
|
+
group: 'select',
|
|
7
|
+
value?: string;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
feedback?: Icon;
|
|
10
|
+
items: SelectOptionGroup[] | SelectOption[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface SelectOptionGroup {
|
|
14
|
+
label: string;
|
|
15
|
+
options: SelectOption[];
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface SelectOption {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Icon } from '../../..';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupTextarea<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
6
|
+
group: 'textarea',
|
|
7
|
+
value?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
rows?: number;
|
|
10
|
+
feedback?: Icon;
|
|
11
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { FormGroupRadios } from './form-group-radios.model';
|
|
2
1
|
import { FormGroupCheckboxes } from './form-group-checkboxes.model';
|
|
2
|
+
import { FormGroupConfirm } from './form-group-confirm.model';
|
|
3
|
+
import { FormGroupFiles } from './form-group-files.model';
|
|
3
4
|
import { FormGroupInput, FormGroupInputDate } from './form-group-input.model';
|
|
5
|
+
import { FormGroupInputNumber } from './form-group-input-number.model';
|
|
6
|
+
import { FormGroupRadios } from './form-group-radios.model';
|
|
7
|
+
import { FormGroupStatic } from './form-group-static.model';
|
|
8
|
+
import { FormGroupTextarea } from './form-group-textarea.model';
|
|
4
9
|
|
|
5
|
-
export type FormGroup<TemplateFnReturnType> = FormGroupCheckboxes<TemplateFnReturnType> | FormGroupInput<TemplateFnReturnType> | FormGroupInputDate<TemplateFnReturnType> | FormGroupRadios<TemplateFnReturnType>;
|
|
10
|
+
export type FormGroup<TemplateFnReturnType> = FormGroupCheckboxes<TemplateFnReturnType> | FormGroupConfirm<TemplateFnReturnType> | FormGroupInput<TemplateFnReturnType> | FormGroupInputNumber<TemplateFnReturnType> | FormGroupInputDate<TemplateFnReturnType> | FormGroupRadios<TemplateFnReturnType> | FormGroupTextarea<TemplateFnReturnType>;
|
|
@@ -2,6 +2,7 @@ import { FormGroup } from './form-group.model';
|
|
|
2
2
|
|
|
3
3
|
export interface Form<TemplateFnReturnType> {
|
|
4
4
|
legend?: string;
|
|
5
|
+
legendHeading?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | undefined;
|
|
5
6
|
mode?: 'vertical' | 'horizontal';
|
|
6
7
|
|
|
7
8
|
formGroups: FormGroup<TemplateFnReturnType>[] | TemplateFnReturnType;
|
package/libs/@dso-toolkit/sources/src/components/responsive-element/responsive-element.stories.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StorybookParameters } from '../../stories-helpers';
|
|
2
|
+
|
|
3
|
+
import { responsiveElementArgTypes } from './responsive-element.args';
|
|
4
|
+
|
|
5
|
+
const demoGrid = [
|
|
6
|
+
['col-md-6', 'col-md-6'],
|
|
7
|
+
['col-lg-3 col-md-6 col-xs-12', 'col-lg-9 col-md-6 col-xs-12'],
|
|
8
|
+
['col-lg-12'],
|
|
9
|
+
['col-xs-3', 'col-xs-3', 'col-xs-3', 'col-xs-3']
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export interface ResponsiveElementParameters<TemplateFnReturnType> {
|
|
13
|
+
gridTemplate: (grid: string[][]) => TemplateFnReturnType;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function storiesOfResponsiveElement<TemplateFnReturnType>(
|
|
17
|
+
{
|
|
18
|
+
module: mainModule,
|
|
19
|
+
storiesOf,
|
|
20
|
+
readme
|
|
21
|
+
}: StorybookParameters,
|
|
22
|
+
{
|
|
23
|
+
gridTemplate
|
|
24
|
+
}: ResponsiveElementParameters<TemplateFnReturnType>
|
|
25
|
+
) {
|
|
26
|
+
const stories = storiesOf('Responsive Element', mainModule)
|
|
27
|
+
.addParameters({
|
|
28
|
+
docs: {
|
|
29
|
+
page: readme
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
stories.add(
|
|
34
|
+
'Responsive Element',
|
|
35
|
+
() => gridTemplate(demoGrid)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -66,11 +66,16 @@ $dso-tile-color: $grasgroen;
|
|
|
66
66
|
a {
|
|
67
67
|
@include anchor-clean();
|
|
68
68
|
|
|
69
|
-
&:hover
|
|
69
|
+
&:hover,
|
|
70
|
+
&:active {
|
|
70
71
|
.dso-tile-link {
|
|
71
72
|
border-bottom: #{$u1 * 0.5} solid $grasgroen;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
75
|
+
|
|
76
|
+
&:active {
|
|
77
|
+
text-decoration: none;
|
|
78
|
+
}
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
|
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
componentArgs,
|
|
4
4
|
StorybookParameters,
|
|
5
5
|
} from "../../stories-helpers";
|
|
6
|
+
import { documentListContent } from '../document-list/document-list.content';
|
|
7
|
+
import { DocumentList } from '../document-list/document-list.models';
|
|
6
8
|
import { tiles } from "../tile-grid/tile-grid.content";
|
|
7
9
|
import { Tile } from "../tile/tile.models";
|
|
8
10
|
import { viewerGridArgs, ViewerGridArgs, viewerGridDocumentHeaderArgs, ViewerGridDocumentHeaderArgs } from "./viewer-grid.args";
|
|
@@ -19,12 +21,12 @@ export interface ViewerGridParameters<TemplateFnReturnType> {
|
|
|
19
21
|
tilesExampleTemplate: (tiles: Tile[]) => TemplateFnReturnType;
|
|
20
22
|
filterblokExampleTemplate: () => TemplateFnReturnType;
|
|
21
23
|
documentHeaderExampleTemplate: (ViewerGridDocumentHeaderProperties: ViewerGridDocumentHeaderProperties) => TemplateFnReturnType;
|
|
22
|
-
|
|
24
|
+
documentListExampleTemplate: (documentList: typeof documentListContent) => TemplateFnReturnType;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export function storiesOfViewerGrid<TemplateFnReturnType>(
|
|
26
28
|
{ module: mainModule, storiesOf, readme }: StorybookParameters,
|
|
27
|
-
{ viewerGridTemplate, example, tilesExampleTemplate, filterblokExampleTemplate, documentHeaderExampleTemplate,
|
|
29
|
+
{ viewerGridTemplate, example, tilesExampleTemplate, filterblokExampleTemplate, documentHeaderExampleTemplate, documentListExampleTemplate }: ViewerGridParameters<TemplateFnReturnType>
|
|
28
30
|
) {
|
|
29
31
|
const stories = storiesOf("Viewer Grid", mainModule).addParameters({
|
|
30
32
|
layout: "fullscreen",
|
|
@@ -84,7 +86,7 @@ export function storiesOfViewerGrid<TemplateFnReturnType>(
|
|
|
84
86
|
argTypes: viewerGridDocumentHeaderArgs
|
|
85
87
|
});
|
|
86
88
|
|
|
87
|
-
stories.add('Voorbeeldpagina "Document
|
|
88
|
-
return
|
|
89
|
+
stories.add('Voorbeeldpagina "Document list"', () => {
|
|
90
|
+
return documentListExampleTemplate(documentListContent);
|
|
89
91
|
});
|
|
90
92
|
}
|
|
@@ -38,6 +38,10 @@ export * from './components/definition-list/definition-list.models';
|
|
|
38
38
|
export * from './components/definition-list/definition-list.stories';
|
|
39
39
|
export * from './components/description/description.models';
|
|
40
40
|
export * from './components/description/description.stories';
|
|
41
|
+
export * from './components/document-header/document-header.models';
|
|
42
|
+
export * from './components/document-header/document-header.stories';
|
|
43
|
+
export * from './components/document-list/document-list.models';
|
|
44
|
+
export * from './components/document-list/document-list.stories';
|
|
41
45
|
export * from './components/dropdown-menu/dropdown-menu.models';
|
|
42
46
|
export * from './components/dropdown-menu/dropdown-menu.stories';
|
|
43
47
|
export * from './components/footnotes/footnotes.models';
|
|
@@ -85,6 +89,8 @@ export * from './components/progress-bar/progress-bar.models';
|
|
|
85
89
|
export * from './components/progress-bar/progress-bar.stories';
|
|
86
90
|
export * from './components/progress-indicator/progress-indicator.models';
|
|
87
91
|
export * from './components/progress-indicator/progress-indicator.stories';
|
|
92
|
+
export * from './components/responsive-element/responsive-element.models';
|
|
93
|
+
export * from './components/responsive-element/responsive-element.stories';
|
|
88
94
|
export * from './components/row-equal-heights/row-equal-heights.models';
|
|
89
95
|
export * from './components/row-equal-heights/row-equal-heights.stories';
|
|
90
96
|
export * from './components/search-bar/search-bar.models';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dso-toolkit",
|
|
3
3
|
"description": "DSO Toolkit and Component Library",
|
|
4
4
|
"license": "SEE LICENSE IN DISCLAIMER.txt",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "40.0.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "gulp",
|
|
8
8
|
"build": "gulp build",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@babel/core": "^7.17.9",
|
|
22
22
|
"@babel/preset-env": "^7.16.11",
|
|
23
|
-
"@dso-toolkit/core": "
|
|
23
|
+
"@dso-toolkit/core": "40.0.0",
|
|
24
24
|
"@dso-toolkit/css": "0.0.0",
|
|
25
25
|
"@dso-toolkit/sources": "0.0.0",
|
|
26
26
|
"@frctl/fractal": "1.5.13",
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<form class="dso-header-in-legend">
|
|
2
|
+
<fieldset>
|
|
3
|
+
<legend>
|
|
4
|
+
<h1>Heading H1</h1>
|
|
5
|
+
</legend>
|
|
6
|
+
<div class="form-group dso-input dso-input-text">
|
|
7
|
+
<div class="dso-label-container">
|
|
8
|
+
<label for="header-in-legend-invoer-veld-1" class="control-label">
|
|
9
|
+
Voornaam
|
|
10
|
+
</label>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="dso-field-container">
|
|
13
|
+
<input type="text" id="header-in-legend-invoer-veld-1" class="form-control">
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group dso-input dso-input-text">
|
|
17
|
+
<div class="dso-label-container">
|
|
18
|
+
<label for="header-in-legend-invoer-veld-2" class="control-label">
|
|
19
|
+
Achternaam
|
|
20
|
+
</label>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="dso-field-container">
|
|
23
|
+
<input type="text" id="header-in-legend-invoer-veld-2" class="form-control">
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</fieldset>
|
|
27
|
+
<fieldset>
|
|
28
|
+
<legend>
|
|
29
|
+
<h2>Heading H2</h2>
|
|
30
|
+
</legend>
|
|
31
|
+
<div class="form-group dso-input dso-input-text">
|
|
32
|
+
<div class="dso-label-container">
|
|
33
|
+
<label for="header-in-legend-invoer-veld-1" class="control-label">
|
|
34
|
+
Voornaam
|
|
35
|
+
</label>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="dso-field-container">
|
|
38
|
+
<input type="text" id="header-in-legend-invoer-veld-1" class="form-control">
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="form-group dso-input dso-input-text">
|
|
42
|
+
<div class="dso-label-container">
|
|
43
|
+
<label for="header-in-legend-invoer-veld-2" class="control-label">
|
|
44
|
+
Achternaam
|
|
45
|
+
</label>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="dso-field-container">
|
|
48
|
+
<input type="text" id="header-in-legend-invoer-veld-2" class="form-control">
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</fieldset>
|
|
52
|
+
<fieldset>
|
|
53
|
+
<legend>
|
|
54
|
+
<h3>Heading H3</h3>
|
|
55
|
+
</legend>
|
|
56
|
+
<div class="form-group dso-input dso-input-text">
|
|
57
|
+
<div class="dso-label-container">
|
|
58
|
+
<label for="header-in-legend-invoer-veld-1" class="control-label">
|
|
59
|
+
Voornaam
|
|
60
|
+
</label>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="dso-field-container">
|
|
63
|
+
<input type="text" id="header-in-legend-invoer-veld-1" class="form-control">
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="form-group dso-input dso-input-text">
|
|
67
|
+
<div class="dso-label-container">
|
|
68
|
+
<label for="header-in-legend-invoer-veld-2" class="control-label">
|
|
69
|
+
Achternaam
|
|
70
|
+
</label>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="dso-field-container">
|
|
73
|
+
<input type="text" id="header-in-legend-invoer-veld-2" class="form-control">
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</fieldset>
|
|
77
|
+
<fieldset>
|
|
78
|
+
<legend>
|
|
79
|
+
<h4>Heading H4</h4>
|
|
80
|
+
</legend>
|
|
81
|
+
<div class="form-group dso-input dso-input-text">
|
|
82
|
+
<div class="dso-label-container">
|
|
83
|
+
<label for="header-in-legend-invoer-veld-1" class="control-label">
|
|
84
|
+
Voornaam
|
|
85
|
+
</label>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="dso-field-container">
|
|
88
|
+
<input type="text" id="header-in-legend-invoer-veld-1" class="form-control">
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="form-group dso-input dso-input-text">
|
|
92
|
+
<div class="dso-label-container">
|
|
93
|
+
<label for="header-in-legend-invoer-veld-2" class="control-label">
|
|
94
|
+
Achternaam
|
|
95
|
+
</label>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="dso-field-container">
|
|
98
|
+
<input type="text" id="header-in-legend-invoer-veld-2" class="form-control">
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</fieldset>
|
|
102
|
+
<fieldset>
|
|
103
|
+
<legend>
|
|
104
|
+
<h5>Heading H5</h5>
|
|
105
|
+
</legend>
|
|
106
|
+
<div class="form-group dso-input dso-input-text">
|
|
107
|
+
<div class="dso-label-container">
|
|
108
|
+
<label for="header-in-legend-invoer-veld-1" class="control-label">
|
|
109
|
+
Voornaam
|
|
110
|
+
</label>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="dso-field-container">
|
|
113
|
+
<input type="text" id="header-in-legend-invoer-veld-1" class="form-control">
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="form-group dso-input dso-input-text">
|
|
117
|
+
<div class="dso-label-container">
|
|
118
|
+
<label for="header-in-legend-invoer-veld-2" class="control-label">
|
|
119
|
+
Achternaam
|
|
120
|
+
</label>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="dso-field-container">
|
|
123
|
+
<input type="text" id="header-in-legend-invoer-veld-2" class="form-control">
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</fieldset>
|
|
127
|
+
<fieldset>
|
|
128
|
+
<legend>
|
|
129
|
+
<h6>Heading H6</h6>
|
|
130
|
+
</legend>
|
|
131
|
+
<div class="form-group dso-input dso-input-text">
|
|
132
|
+
<div class="dso-label-container">
|
|
133
|
+
<label for="header-in-legend-invoer-veld-1" class="control-label">
|
|
134
|
+
Voornaam
|
|
135
|
+
</label>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="dso-field-container">
|
|
138
|
+
<input type="text" id="header-in-legend-invoer-veld-1" class="form-control">
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="form-group dso-input dso-input-text">
|
|
142
|
+
<div class="dso-label-container">
|
|
143
|
+
<label for="header-in-legend-invoer-veld-2" class="control-label">
|
|
144
|
+
Achternaam
|
|
145
|
+
</label>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="dso-field-container">
|
|
148
|
+
<input type="text" id="header-in-legend-invoer-veld-2" class="form-control">
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</fieldset>
|
|
152
|
+
<div class="dso-form-buttons">
|
|
153
|
+
<button type="submit" class="dso-primary"><span >Primaire actie</span></button>
|
|
154
|
+
<button type="button" class="dso-tertiary"><span >Secondaire actie</span></button>
|
|
155
|
+
</div>
|
|
156
|
+
</form>
|