dso-toolkit 40.0.0 → 41.0.1

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 (154) hide show
  1. package/components/Componenten/form-elements/group-search-bar.config.yml +2 -0
  2. package/components/Componenten/form-elements/group-search-bar.njk +1 -1
  3. package/components/Voorbeelden/10-Patronen/zoeken-in-lijst-cards.njk +5 -4
  4. package/dist/library/@dso-toolkit/core/cjs/dso-date-picker.cjs.entry.js +25 -10
  5. package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +1 -1
  6. package/dist/library/@dso-toolkit/core/cjs/dso-pagination.cjs.entry.js +38 -0
  7. package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
  8. package/dist/library/@dso-toolkit/core/cjs/dso-tooltip.cjs.entry.js +40 -0
  9. package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
  10. package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
  11. package/dist/library/@dso-toolkit/core/collection/components/date-picker/date-picker.js +25 -10
  12. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +4 -1
  13. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.template.js +3 -3
  14. package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.css +68 -0
  15. package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.interfaces.js +1 -0
  16. package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.js +114 -0
  17. package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.stories.js +11 -0
  18. package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.template.js +11 -0
  19. package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.js +60 -0
  20. package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
  21. package/dist/library/@dso-toolkit/core/custom-elements/index.js +104 -14
  22. package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
  23. package/dist/library/@dso-toolkit/core/dso-toolkit/p-0777c1c4.entry.js +1 -0
  24. package/dist/library/@dso-toolkit/core/dso-toolkit/{p-150fe323.entry.js → p-37e12c3c.entry.js} +1 -1
  25. package/dist/library/@dso-toolkit/core/dso-toolkit/p-b1dc8d76.entry.js +1 -0
  26. package/dist/library/@dso-toolkit/core/dso-toolkit/{p-a8cf15cf.entry.js → p-f1026921.entry.js} +1 -1
  27. package/dist/library/@dso-toolkit/core/esm/dso-date-picker.entry.js +25 -10
  28. package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +2 -2
  29. package/dist/library/@dso-toolkit/core/esm/dso-pagination.entry.js +34 -0
  30. package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
  31. package/dist/library/@dso-toolkit/core/esm/dso-tooltip.entry.js +40 -0
  32. package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
  33. package/dist/library/@dso-toolkit/core/types/components/date-picker/date-picker.d.ts +1 -1
  34. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.template.d.ts +1 -1
  35. package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.d.ts +22 -0
  36. package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.interfaces.d.ts +8 -0
  37. package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.stories.d.ts +1 -0
  38. package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.template.d.ts +2 -0
  39. package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.d.ts +6 -0
  40. package/dist/library/@dso-toolkit/core/types/components.d.ts +50 -0
  41. package/dist/library/components/detail/form--autocomplete.html +1 -1
  42. package/dist/library/components/detail/form--form-horizontal.html +2 -2
  43. package/dist/library/components/detail/form--form-vertical.html +2 -2
  44. package/dist/library/components/detail/form--header-in-legend.html +1 -1
  45. package/dist/library/components/detail/form--multi-page.html +1 -1
  46. package/dist/library/components/detail/form--sections.html +1 -1
  47. package/dist/library/components/detail/form--simple-form.html +1 -1
  48. package/dist/library/components/detail/form--single-page.html +1 -1
  49. package/dist/library/components/detail/form.html +3 -3
  50. package/dist/library/components/detail/group-search-bar--default.html +2 -2
  51. package/dist/library/components/detail/group-search-bar--search-bar-allmessages.html +4 -3
  52. package/dist/library/components/detail/group-search-bar--search-bar-error.html +4 -3
  53. package/dist/library/components/detail/group-search-bar--search-bar-help.html +2 -2
  54. package/dist/library/components/detail/group-search-bar--search-bar-infobutton-expanded.html +2 -2
  55. package/dist/library/components/detail/group-search-bar--search-bar-infobutton.html +2 -2
  56. package/dist/library/components/detail/group-search-bar--search-bar-static-info.html +2 -2
  57. package/dist/library/components/detail/group-search-bar.html +12 -10
  58. package/dist/library/components/detail/zoeken-in-lijst-cards.html +10 -8
  59. package/dist/library/components/preview/form--form-horizontal.html +2 -2
  60. package/dist/library/components/preview/form--form-vertical.html +2 -2
  61. package/dist/library/components/preview/form.html +4 -4
  62. package/dist/library/components/preview/group-search-bar--default.html +1 -1
  63. package/dist/library/components/preview/group-search-bar--search-bar-allmessages.html +2 -2
  64. package/dist/library/components/preview/group-search-bar--search-bar-error.html +2 -2
  65. package/dist/library/components/preview/group-search-bar--search-bar-help.html +1 -1
  66. package/dist/library/components/preview/group-search-bar--search-bar-infobutton-expanded.html +1 -1
  67. package/dist/library/components/preview/group-search-bar--search-bar-infobutton.html +1 -1
  68. package/dist/library/components/preview/group-search-bar--search-bar-static-info.html +1 -1
  69. package/dist/library/components/preview/group-search-bar.html +9 -9
  70. package/dist/library/components/preview/zoeken-in-lijst-cards.html +8 -6
  71. package/dist/library/components/render/form--form-horizontal.html +1 -1
  72. package/dist/library/components/render/form--form-vertical.html +1 -1
  73. package/dist/library/components/render/form.html +2 -2
  74. package/dist/library/components/render/group-search-bar--default.html +1 -1
  75. package/dist/library/components/render/group-search-bar--search-bar-allmessages.html +2 -2
  76. package/dist/library/components/render/group-search-bar--search-bar-error.html +2 -2
  77. package/dist/library/components/render/group-search-bar--search-bar-help.html +1 -1
  78. package/dist/library/components/render/group-search-bar--search-bar-infobutton-expanded.html +1 -1
  79. package/dist/library/components/render/group-search-bar--search-bar-infobutton.html +1 -1
  80. package/dist/library/components/render/group-search-bar--search-bar-static-info.html +1 -1
  81. package/dist/library/components/render/group-search-bar.html +9 -9
  82. package/dist/library/components/render/zoeken-in-lijst-cards.html +5 -4
  83. package/dist/library/dso-icons.svg +421 -387
  84. package/dist/library/styles/dso.css +258 -362
  85. package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  86. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-0777c1c4.entry.js +1 -0
  87. package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-150fe323.entry.js → p-37e12c3c.entry.js} +1 -1
  88. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-b1dc8d76.entry.js +1 -0
  89. package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-a8cf15cf.entry.js → p-f1026921.entry.js} +1 -1
  90. package/dist/toolkit/dso-icons.svg +421 -387
  91. package/dist/toolkit/styles/dso.css +258 -362
  92. package/hydrate/index.js +112 -12
  93. package/libs/@dso-toolkit/css/dist/dso-icons.svg +421 -387
  94. package/libs/@dso-toolkit/css/src/components/form/form-group.scss +22 -13
  95. package/libs/@dso-toolkit/css/src/components/form/form-groups/search-bar/form-group-search-bar.scss +17 -0
  96. package/libs/@dso-toolkit/css/src/components/form/form.scss +1 -0
  97. package/libs/@dso-toolkit/css/src/components/justify-form-groups/justify-form-groups.scss +26 -0
  98. package/libs/@dso-toolkit/css/src/components/pagination/pagination.scss +1 -93
  99. package/libs/@dso-toolkit/css/src/components/search-bar/search-bar.scss +5 -0
  100. package/{src/styles/components/_tabs.scss → libs/@dso-toolkit/css/src/components/tabs/tabs.scss} +69 -5
  101. package/libs/@dso-toolkit/css/src/dso.scss +2 -0
  102. package/libs/@dso-toolkit/sources/src/components/form/content/search-bar.content.ts +12 -0
  103. package/libs/@dso-toolkit/sources/src/components/form/form-groups/search-bar/form-group-search-bar.args.ts +124 -0
  104. package/libs/@dso-toolkit/sources/src/components/form/form.models.ts +1 -0
  105. package/libs/@dso-toolkit/sources/src/components/form/form.stories.ts +17 -1
  106. package/libs/@dso-toolkit/sources/src/components/form/models/form-group-search-bar.model.ts +7 -0
  107. package/libs/@dso-toolkit/sources/src/components/form/models/form-group.model.ts +13 -1
  108. package/libs/@dso-toolkit/sources/src/components/form/models/form.model.ts +0 -1
  109. package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.args.ts +15 -0
  110. package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.content.ts +44 -0
  111. package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.models.ts +7 -0
  112. package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.stories.ts +33 -0
  113. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.args.ts +16 -2
  114. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +3 -1
  115. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.models.ts +2 -0
  116. package/libs/@dso-toolkit/sources/src/components/pagination/pagination.args.ts +16 -6
  117. package/libs/@dso-toolkit/sources/src/components/pagination/pagination.models.ts +13 -2
  118. package/libs/@dso-toolkit/sources/src/components/pagination/pagination.scss +101 -0
  119. package/libs/@dso-toolkit/sources/src/components/pagination/pagination.stories.ts +9 -7
  120. package/libs/@dso-toolkit/sources/src/components/search-bar/search-bar.models.ts +7 -6
  121. package/libs/@dso-toolkit/sources/src/components/tabs/tabs.args.ts +19 -0
  122. package/libs/@dso-toolkit/sources/src/components/tabs/tabs.models.ts +9 -0
  123. package/libs/@dso-toolkit/sources/src/components/tabs/tabs.stories.ts +86 -0
  124. package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.args.ts +9 -1
  125. package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.models.ts +3 -0
  126. package/libs/@dso-toolkit/sources/src/components.scss +1 -0
  127. package/libs/@dso-toolkit/sources/src/index.ts +4 -0
  128. package/libs/@dso-toolkit/sources/src/styling/global/table.scss +9 -0
  129. package/libs/@dso-toolkit/sources/src/styling/grid/grid.scss +56 -0
  130. package/libs/@dso-toolkit/sources/src/styling/variables/colors.scss +3 -0
  131. package/libs/_bootstrap.scss +2 -2
  132. package/libs/bootstrap/_forms.scss +0 -1
  133. package/libs/bootstrap/_variables.scss +3 -7
  134. package/package.json +2 -2
  135. package/reference/render/form--form-horizontal.html +1 -1
  136. package/reference/render/form--form-vertical.html +1 -1
  137. package/reference/render/group-search-bar--default.html +1 -1
  138. package/reference/render/group-search-bar--search-bar-allmessages.html +2 -2
  139. package/reference/render/group-search-bar--search-bar-error.html +2 -2
  140. package/reference/render/group-search-bar--search-bar-help.html +1 -1
  141. package/reference/render/group-search-bar--search-bar-infobutton-expanded.html +1 -1
  142. package/reference/render/group-search-bar--search-bar-infobutton.html +1 -1
  143. package/reference/render/group-search-bar--search-bar-static-info.html +1 -1
  144. package/reference/render/zoeken-in-lijst-cards.html +5 -4
  145. package/src/styles/components/_form.scss +0 -31
  146. package/src/styles/dso.scss +3 -3
  147. package/src/styles/mixins/_bootstrap-variables.scss +0 -3
  148. package/src/styles/mixins/_dso-variables.scss +0 -3
  149. package/dist/library/@dso-toolkit/core/dso-toolkit/p-7abe091d.entry.js +0 -1
  150. package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-7abe091d.entry.js +0 -1
  151. package/libs/bootstrap/_navs.scss +0 -226
  152. package/libs/bootstrap/mixins/_nav-divider.scss +0 -10
  153. package/src/styles/components/_search-bar.scss +0 -32
  154. package/src/styles/mixins/_grid.scss +0 -63
@@ -0,0 +1,33 @@
1
+ import { bindTemplate, StorybookParameters } from '../../stories-helpers';
2
+
3
+ import { justifyFormGroupsArgsMapper, justifyFormGroupsArgTypes } from './justify-form-groups.args';
4
+ import { JustifyFormGroups } from './justify-form-groups.models';
5
+
6
+ export interface JustifyFormGroupsParameters<TemplateFnReturnType> {
7
+ justifyFormGroupsTemplate: (justifyFormGroupsProperties: JustifyFormGroups<TemplateFnReturnType>) => TemplateFnReturnType;
8
+ }
9
+
10
+ export function storiesOfJustifyFormGroups<TemplateFnReturnType>(
11
+ {
12
+ module: mainModule,
13
+ storiesOf,
14
+ readme
15
+ }: StorybookParameters,
16
+ {
17
+ justifyFormGroupsTemplate: JustifyFormGroups
18
+ }: JustifyFormGroupsParameters<TemplateFnReturnType>
19
+ ) {
20
+ const template = bindTemplate(justifyFormGroupsArgsMapper, JustifyFormGroups);
21
+
22
+ const stories = storiesOf('Form/justify form groups', mainModule)
23
+ .addParameters({
24
+ docs: {
25
+ page: readme
26
+ }
27
+ });
28
+
29
+ stories.add(
30
+ 'justify form groups',
31
+ template
32
+ );
33
+ }
@@ -6,8 +6,10 @@ import { OzonContent } from "./ozon-content.models";
6
6
  export interface OzonContentArgs {
7
7
  content: string;
8
8
  inline: boolean;
9
- interactive: boolean;
10
- deleted: boolean;
9
+ interactive?: boolean;
10
+ deleted?: boolean;
11
+ prefix?: string;
12
+ suffix?: string;
11
13
  onAnchorClick: HandlerFunction;
12
14
  onClick: HandlerFunction;
13
15
  }
@@ -33,6 +35,16 @@ export const ozonContentArgTypes: ArgTypes<OzonContentArgs> = {
33
35
  type: 'boolean'
34
36
  }
35
37
  },
38
+ prefix: {
39
+ control: {
40
+ type: 'text'
41
+ }
42
+ },
43
+ suffix: {
44
+ control: {
45
+ type: 'text'
46
+ }
47
+ },
36
48
  onAnchorClick: {
37
49
  ...noControl,
38
50
  action: "anchorClick",
@@ -49,6 +61,8 @@ export function ozonContentArgsMapper(a: OzonContentArgs): OzonContent {
49
61
  inline: a.inline,
50
62
  interactive: a.interactive,
51
63
  deleted: a.deleted,
64
+ prefix: a.prefix || undefined,
65
+ suffix: a.suffix || undefined,
52
66
  onAnchorClick: (e: any) => a.onAnchorClick(e.detail),
53
67
  onClick: a.onClick
54
68
  };
@@ -38,7 +38,9 @@ export const content = [
38
38
  `,
39
39
  args: {
40
40
  inline: true,
41
- interactive: true
41
+ interactive: true,
42
+ prefix: 'Afdeling 4.1 ',
43
+ suffix: ' [gereserveerd]'
42
44
  }
43
45
  },
44
46
  {
@@ -1,6 +1,8 @@
1
1
  export interface OzonContent {
2
2
  content: string;
3
3
  inline?: boolean;
4
+ prefix?: string;
5
+ suffix?: string;
4
6
  interactive?: boolean;
5
7
  deleted?: boolean;
6
8
  onAnchorClick: (e: unknown) => void;
@@ -1,28 +1,38 @@
1
+ import { HandlerFunction } from '@storybook/addon-actions';
1
2
  import { ArgTypes } from '../../stories-helpers';
2
3
 
3
4
  import { Pagination } from './pagination.models';
4
5
 
5
6
  export interface PaginationArgs {
6
- count: number;
7
- current: number;
7
+ totalPages: number;
8
+ currentPage: number;
9
+ onSelectPage: HandlerFunction;
8
10
  }
9
11
 
10
12
  export const paginationArgTypes: ArgTypes<PaginationArgs> = {
11
- count: {
13
+ totalPages: {
12
14
  control: {
13
15
  type: 'number'
14
16
  }
15
17
  },
16
- current: {
18
+ currentPage: {
17
19
  control: {
18
20
  type: 'number'
19
21
  }
22
+ },
23
+ onSelectPage: {
24
+ action: 'selectPage'
20
25
  }
21
26
  };
22
27
 
23
28
  export function paginationArgsMapper(a: PaginationArgs): Pagination {
24
29
  return {
25
- count: a.count,
26
- current: a.current
30
+ totalPages: a.totalPages,
31
+ currentPage: a.currentPage,
32
+ onSelectPage: (event) => {
33
+ event.detail.originalEvent.preventDefault();
34
+ a.onSelectPage(event);
35
+ },
36
+ formatHref: page => '#' + page,
27
37
  };
28
38
  }
@@ -1,4 +1,15 @@
1
+ export interface PaginationSelectPageEvent {
2
+ /** The selected page */
3
+ page: number;
4
+ /** The original pointer event */
5
+ originalEvent: MouseEvent;
6
+ /** True when user selected the page holding Ctrl, Alt or other modifiers. Can be used to determine navigation. */
7
+ isModifiedEvent: boolean;
8
+ }
9
+
1
10
  export interface Pagination {
2
- count: number;
3
- current: number;
11
+ totalPages: number;
12
+ currentPage: number;
13
+ formatHref: (page: number) => string;
14
+ onSelectPage: (e: CustomEvent<PaginationSelectPageEvent>) => void;
4
15
  }
@@ -0,0 +1,101 @@
1
+ $dso-pagination-item-size: $u4;
2
+ $dso-pagination-item-border-size: 2px;
3
+ $dso-pagination-line-height: $dso-pagination-item-size;
4
+ $dso-pagination-icon-margin: $u1 * 0.5;
5
+
6
+ @mixin pagination_root($css-icons: false) {
7
+ text-align: center;
8
+
9
+ @if ($css-icons) {
10
+ .dso-previous,
11
+ .dso-next {
12
+ border-color: $grasgroen;
13
+ height: $dso-pagination-item-size;
14
+ text-indent: -9999px;
15
+ width: $dso-pagination-item-size;
16
+
17
+ &::before {
18
+ content: "";
19
+ left: 50%;
20
+ position: absolute;
21
+ top: 50%;
22
+ transform: translate(-50%, -50%);
23
+ }
24
+ }
25
+
26
+ .dso-previous {
27
+ &::before {
28
+ @include di("chevron-left");
29
+ }
30
+ }
31
+
32
+ .dso-next {
33
+ &::before {
34
+ @include di("chevron-right");
35
+ }
36
+ }
37
+ }
38
+
39
+ > li {
40
+ display: inline-block;
41
+ font-weight: bold;
42
+ line-height: #{$dso-pagination-item-size - $dso-pagination-item-border-size * 2};
43
+ text-align: center;
44
+ vertical-align: middle;
45
+
46
+ > a,
47
+ > span {
48
+ align-items: center;
49
+ color: $grasgroen;
50
+ display: flex;
51
+ height: $dso-pagination-item-size;
52
+ justify-content: center;
53
+ position: relative;
54
+ width: $dso-pagination-item-size;
55
+
56
+ &:active {
57
+ background-color: $grasgroen-10;
58
+ }
59
+ }
60
+
61
+ > span {
62
+ border: $dso-pagination-item-border-size solid transparent;
63
+ border-radius: 50%;
64
+ }
65
+
66
+ a {
67
+ line-height: $dso-pagination-line-height;
68
+ text-decoration: none;
69
+
70
+ &:hover,
71
+ &:focus {
72
+ text-decoration: none;
73
+
74
+ &::after {
75
+ border-bottom-color: $grasgroen;
76
+ }
77
+ }
78
+
79
+ &::after {
80
+ border-bottom: 3px solid transparent;
81
+ bottom: 0;
82
+ content: "";
83
+ display: inline-block;
84
+ left: 0;
85
+ position: absolute;
86
+ width: 100%;
87
+ }
88
+ }
89
+
90
+ &.active {
91
+ span {
92
+ background-color: $grasgroen;
93
+ color: $wit;
94
+ }
95
+ }
96
+
97
+ & + li {
98
+ margin-left: $u1;
99
+ }
100
+ }
101
+ }
@@ -1,6 +1,6 @@
1
- import { bindTemplate, componentArgs, StorybookParameters } from '../../stories-helpers';
1
+ import { bindTemplate, StorybookParameters } from '../../stories-helpers';
2
2
 
3
- import { PaginationArgs, paginationArgsMapper, paginationArgTypes } from './pagination.args';
3
+ import { paginationArgsMapper, paginationArgTypes } from './pagination.args';
4
4
  import { Pagination } from './pagination.models';
5
5
 
6
6
  export interface PaginationParameters<TemplateFnReturnType> {
@@ -25,14 +25,16 @@ export function storiesOfPagination<TemplateFnReturnType>(
25
25
  page: readme
26
26
  },
27
27
  argTypes: paginationArgTypes,
28
- args: componentArgs<PaginationArgs>({
29
- count: 5,
30
- current: 3
31
- })
32
28
  });
33
29
 
34
30
  stories.add(
35
31
  'Pagination',
36
- template
32
+ template,
33
+ {
34
+ args: {
35
+ totalPages: 5,
36
+ currentPage: 3,
37
+ }
38
+ }
37
39
  );
38
40
  }
@@ -1,14 +1,15 @@
1
1
  export interface SearchBar {
2
- label: string;
2
+ label?: string;
3
3
  id: string;
4
- icon: boolean;
5
- hiddenLabel: boolean;
6
- invalid: boolean;
4
+ icon?: boolean;
5
+ hiddenLabel?: boolean;
6
+ invalid?: boolean;
7
7
  placeholder?: string;
8
8
  value?: string;
9
9
  buttonLabel: string;
10
- hideSearchButton: boolean;
10
+ hideSearchButton?: boolean;
11
11
  resultsMessage?: string;
12
- resultsHidden: boolean;
12
+ resultsHidden?: boolean;
13
13
  ariaDescribedBy?: string;
14
+ clearButton?: boolean;
14
15
  }
@@ -0,0 +1,19 @@
1
+ import { ArgTypes, noControl } from '../../stories-helpers';
2
+
3
+ import { Tabs, TabsItem } from './tabs.models';
4
+
5
+ export interface TabsArgs {
6
+ items: TabsItem[];
7
+ }
8
+
9
+ export const tabsArgTypes: ArgTypes<TabsArgs> = {
10
+ items: {
11
+ ...noControl
12
+ }
13
+ };
14
+
15
+ export function tabsArgsMapper(a: TabsArgs): Tabs {
16
+ return {
17
+ items: a.items
18
+ };
19
+ }
@@ -0,0 +1,9 @@
1
+ export interface Tabs {
2
+ items: TabsItem[];
3
+ }
4
+
5
+ export interface TabsItem {
6
+ label: string;
7
+ id: string;
8
+ modifiers?: 'active' | 'disabled';
9
+ }
@@ -0,0 +1,86 @@
1
+ import { bindTemplate, componentArgs, StorybookParameters } from '../../stories-helpers';
2
+
3
+ import { TabsArgs, tabsArgsMapper, tabsArgTypes } from './tabs.args';
4
+ import { Tabs } from './tabs.models';
5
+
6
+ export interface TabsParameters<TemplateFnReturnType> {
7
+ tabsTemplate: (tabsProperties: Tabs) => TemplateFnReturnType;
8
+ }
9
+
10
+ export function storiesOfTabs<TemplateFnReturnType>(
11
+ {
12
+ module: mainModule,
13
+ storiesOf,
14
+ readme
15
+ }: StorybookParameters,
16
+ {
17
+ tabsTemplate
18
+ }: TabsParameters<TemplateFnReturnType>
19
+ ) {
20
+ const template = bindTemplate(tabsArgsMapper, tabsTemplate);
21
+
22
+ const stories = storiesOf('Tabs', mainModule)
23
+ .addParameters({
24
+ docs: {
25
+ page: readme
26
+ },
27
+ argTypes: tabsArgTypes
28
+ });
29
+
30
+ stories.add(
31
+ 'default',
32
+ template,
33
+ {
34
+ args: componentArgs<TabsArgs>({
35
+ items: [
36
+ {
37
+ label: 'Zoek op adres',
38
+ id: 'tabitem-1',
39
+ modifiers: 'active'
40
+ },
41
+ {
42
+ label: 'Postcode en huisnummer',
43
+ id: 'tabitem-2'
44
+ },
45
+ {
46
+ label: 'Kadastraal nummer',
47
+ id: 'tabitem-3'
48
+ },
49
+ {
50
+ label: 'Coordinaten',
51
+ id: 'tabitem-4'
52
+ }
53
+ ]
54
+ })
55
+ }
56
+ );
57
+
58
+ stories.add(
59
+ 'inactief',
60
+ template,
61
+ {
62
+ args: componentArgs<TabsArgs>({
63
+ items: [
64
+ {
65
+ label: 'Zoek op adres',
66
+ id: 'tabitem-1'
67
+ },
68
+ {
69
+ label: 'Postcode en huisnummer',
70
+ id: 'tabitem-2',
71
+ modifiers: 'active'
72
+ },
73
+ {
74
+ label: 'Kadastraal nummer',
75
+ id: 'tabitem-3'
76
+ },
77
+ {
78
+ label: 'Coordinaten',
79
+ id: 'tabitem-4',
80
+ modifiers: 'disabled'
81
+ }
82
+ ]
83
+ })
84
+ }
85
+ );
86
+ }
@@ -2,12 +2,13 @@ import { HandlerFunction } from '@storybook/addon-actions';
2
2
 
3
3
  import { ArgTypes } from '../../stories-helpers';
4
4
 
5
- import { Tooltip, tooltipPositions } from './tooltip.models';
5
+ import { Tooltip, tooltipPositions, tooltipStrategy } from './tooltip.models';
6
6
 
7
7
  export interface TooltipArgs {
8
8
  active?: boolean;
9
9
  descriptive?: boolean;
10
10
  position: typeof tooltipPositions;
11
+ strategy: typeof tooltipStrategy;
11
12
  label?: string;
12
13
  id?: string;
13
14
  action: HandlerFunction
@@ -30,6 +31,12 @@ export const tooltipArgTypes: ArgTypes<TooltipArgs> = {
30
31
  type: 'select'
31
32
  }
32
33
  },
34
+ strategy: {
35
+ options: tooltipStrategy,
36
+ control: {
37
+ type: 'select'
38
+ }
39
+ },
33
40
  label: {
34
41
  control: {
35
42
  type: 'text'
@@ -51,6 +58,7 @@ export function tooltipArgsMapper(a: TooltipArgs): Tooltip {
51
58
  descriptive: a.descriptive,
52
59
  label: a.label || `Ik sta "${a.position}"`,
53
60
  position: a.position,
61
+ strategy: a.strategy,
54
62
  id: a.id
55
63
  };
56
64
  }
@@ -1,9 +1,12 @@
1
1
  export const tooltipPositions = ['top', 'right', 'bottom', 'left'] as const;
2
2
 
3
+ export const tooltipStrategy = ['auto', 'absolute', 'fixed'] as const;
4
+
3
5
  export interface Tooltip {
4
6
  active?: boolean;
5
7
  descriptive?: boolean;
6
8
  position: typeof tooltipPositions;
9
+ strategy: typeof tooltipStrategy;
7
10
  label: string;
8
11
  id?: string;
9
12
  }
@@ -18,6 +18,7 @@
18
18
  @import "components/link-list/link-list";
19
19
  @import "components/list-button/list-button";
20
20
  @import "components/label/label";
21
+ @import "components/pagination/pagination";
21
22
  @import "components/progress-bar/progress-bar";
22
23
  @import "components/progress-indicator/progress-indicator";
23
24
  @import "components/selectable/selectable";
@@ -66,6 +66,8 @@ export * from './components/info/info.models';
66
66
  export * from './components/info/info.stories';
67
67
  export * from './components/input-number/input-number.models';
68
68
  export * from './components/input-number/input-number.stories';
69
+ export * from './components/justify-form-groups/justify-form-groups.models';
70
+ export * from './components/justify-form-groups/justify-form-groups.stories';
69
71
  export * from './components/label/label.models';
70
72
  export * from './components/label/label.stories';
71
73
  export * from './components/label-group/label-group.models';
@@ -99,6 +101,8 @@ export * from './components/selectable/selectable.models';
99
101
  export * from './components/selectable/selectable.stories';
100
102
  export * from './components/shopping-cart/shopping-cart.models';
101
103
  export * from './components/shopping-cart/shopping-cart.stories';
104
+ export * from './components/tabs/tabs.models';
105
+ export * from './components/tabs/tabs.stories';
102
106
  export * from './components/tile/tile.models';
103
107
  export * from './components/tile/tile.stories';
104
108
  export * from './components/tile-grid/tile-grid.models';
@@ -11,6 +11,8 @@ $table-border-color: $grijs-20;
11
11
  $table-link-color: $grijs-90;
12
12
  $table-header-border-color: $grijs-60;
13
13
 
14
+ $table-filter-wrapper-width: 320px;
15
+
14
16
  caption {
15
17
  color: $text-muted;
16
18
  padding-bottom: $table-cell-padding;
@@ -210,3 +212,10 @@ table {
210
212
  @include table-responsive();
211
213
  }
212
214
  }
215
+
216
+ .dso-table-filter-wrapper {
217
+ .dso-search-bar {
218
+ margin-bottom: $u2;
219
+ width: $table-filter-wrapper-width - $u4;
220
+ }
221
+ }
@@ -2,6 +2,36 @@ $container-sm: auto !default; // Small screen / tablet
2
2
  $container-md: 922px !default; // Medium screen / desktop
3
3
  $container-lg: 1152px !default; // Large screen / wide desktop
4
4
 
5
+ $dso-featured-background-color: $grasgroen-10;
6
+
7
+ main,
8
+ form {
9
+ > .dso-rich-content {
10
+ margin-bottom: $dso-vertical-spacing-xlarge;
11
+ }
12
+
13
+ > .row {
14
+ &.dso-featured {
15
+ margin-bottom: $u5;
16
+ padding-bottom: $u6;
17
+ padding-top: $u5;
18
+
19
+ & + .row div:not(.dso-rich-content) {
20
+ h1,
21
+ .h1,
22
+ h2,
23
+ .h2,
24
+ h3,
25
+ .h3 {
26
+ &:first-child {
27
+ margin-top: 0;
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+
5
35
  .container {
6
36
  @include container-fixed();
7
37
 
@@ -28,6 +58,32 @@ $container-lg: 1152px !default; // Large screen / wide desktop
28
58
  &.dso-equal-heights {
29
59
  @include row-equal-heights();
30
60
  }
61
+
62
+ &.dso-banner {
63
+ @include full-width-row($grid-gutter-width);
64
+
65
+ background-color: $grasgroen-10;
66
+ background-position: center;
67
+ background-repeat: no-repeat;
68
+ background-size: cover;
69
+ height: 400px;
70
+
71
+ &,
72
+ &:not(.dso-featured):first-child {
73
+ margin-bottom: $u4;
74
+ padding-top: 2rem;
75
+ }
76
+ }
77
+
78
+ &.dso-featured {
79
+ @include full-width-row($grid-gutter-width);
80
+
81
+ background-color: $dso-featured-background-color;
82
+ }
83
+
84
+ + .dso-featured {
85
+ margin-top: $u3;
86
+ }
31
87
  }
32
88
 
33
89
  .row-no-gutters {
@@ -71,3 +71,6 @@ $dso-input-disabled-border-color: $grijs-10;
71
71
  $text-muted: $grijs-60;
72
72
 
73
73
  $blockquote-border-color: $gray-lighter;
74
+
75
+ $nav-disabled-link-color: #a3a3a3 !default;
76
+ $nav-disabled-link-hover-color: #a3a3a3 !default;
@@ -31,7 +31,7 @@
31
31
  @import "bootstrap/mixins/panels";
32
32
  @import "bootstrap/mixins/pagination";
33
33
  // @import "bootstrap/mixins/list-group"; Deleted
34
- @import "bootstrap/mixins/nav-divider";
34
+ // @import "bootstrap/mixins/nav-divider"; -> Deleted
35
35
  @import "bootstrap/mixins/forms";
36
36
  // @import "bootstrap/mixins/progress-bar"; -> Moved to @dso-toolkit/styling
37
37
  // @import "bootstrap/mixins/table-row"; -> Moved to @dso-toolkit/styling
@@ -64,7 +64,7 @@
64
64
  @import "bootstrap/component-animations";
65
65
  // @import "bootstrap/dropdowns"; Applicable styling moved to @dso-toolkit/styling
66
66
  // @import "bootstrap/input-groups"; -> Deleted, deprecated
67
- @import "bootstrap/navs";
67
+ // @import "bootstrap/navs"; -> Moved to @dso-toolkit/css
68
68
  @import "bootstrap/navbar";
69
69
  // @import "bootstrap/pager"; -> Deleted, deprecated
70
70
  // @import "bootstrap/thumbnails"; -> Deleted
@@ -260,7 +260,6 @@ textarea.form-control {
260
260
  // labels on narrow viewports stack the same as a default form example.
261
261
  @media (min-width: $screen-sm-min) {
262
262
  .control-label {
263
- padding-top: ($padding-base-vertical + 1); // Default padding plus a border
264
263
  margin-bottom: 0;
265
264
  text-align: right;
266
265
  }
@@ -55,9 +55,8 @@ $padding-small-horizontal: 10px !default;
55
55
  // Merged into @dso-toolkit/sources/src/styling/variables/scaffolding
56
56
 
57
57
  //** Global color for active items (e.g., navs or dropdowns).
58
- $component-active-color: #fff !default;
58
+
59
59
  //** Global background color for active items (e.g., navs or dropdowns).
60
- $component-active-bg: $bosgroen !default;
61
60
 
62
61
  //** Width of the `border` for generating carets that indicate dropdowns.
63
62
  $caret-width-base: 4px !default;
@@ -206,8 +205,6 @@ $navbar-inverse-toggle-border-color: #333 !default;
206
205
  //##
207
206
 
208
207
  //=== Shared nav styles
209
- $nav-link-padding: 10px 15px !default;
210
- $nav-link-hover-bg: $gray-lighter !default;
211
208
 
212
209
  $nav-disabled-link-color: $gray-light !default;
213
210
  $nav-disabled-link-hover-color: $gray-light !default;
@@ -225,9 +222,8 @@ $nav-tabs-justified-link-border-color: #ddd !default;
225
222
  $nav-tabs-justified-active-link-border-color: $body-bg !default;
226
223
 
227
224
  //== Pills
228
- $nav-pills-border-radius: $border-radius-base !default;
229
- $nav-pills-active-link-hover-bg: $component-active-bg !default;
230
- $nav-pills-active-link-hover-color: $component-active-color !default;
225
+
226
+ // Removed
231
227
 
232
228
 
233
229
  //== Pagination
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": "40.0.0",
5
+ "version": "41.0.1",
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": "40.0.0",
23
+ "@dso-toolkit/core": "41.0.1",
24
24
  "@dso-toolkit/css": "0.0.0",
25
25
  "@dso-toolkit/sources": "0.0.0",
26
26
  "@frctl/fractal": "1.5.13",