@dpa-id-components/dpa-shared-components 10.1.0 → 11.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/README.md CHANGED
@@ -56,6 +56,35 @@ The tailwind config is located at `./src/tailwind/tailwind.config.ts`.
56
56
  Please be aware that used plugins must be listed in the dependencies or the projects using the components have to
57
57
  install it.
58
58
 
59
+ ### ESLint
60
+
61
+ As of version `11.x.x`, this project is setup to use ESLint 9+ which no longer supports the `.eslintrc` configuration format. The [ESLint flat configuration file](https://eslint.org/docs/latest/use/configure/configuration-files) for this project is located at `./eslint.config.mjs`. The base ESLint configuration `./eslint.base.config.mjs` is exported in the published npm package as a [shareable config file](https://eslint.org/docs/latest/extend/shareable-configs) and can be used as the base configuration for host projects. Plugins and third party configs used in `./eslint.base.config.mjs` should be added to `dependencies` in `package.json`.
62
+
63
+ Please note the following when configuring the `eslint.config.mjs` file in a host project:
64
+ - Project specific third-party plugins and config (updated accordingly for flat config support) should be added as `devDependencies`
65
+ - Files to be included or ignored by ESLint should be configured here
66
+ - Adjust the `lint` script in `package.json` to `"lint": "eslint . --fix"`
67
+
68
+ To use the shared ESLint config in a host project's `eslint.config.mjs`:
69
+
70
+ ```JavaScript
71
+ import sharedConfig from "@dpa-id-components/dpa-shared-components/eslint.config";
72
+ // Other project specific plugins
73
+ import pluginCypress from "eslint-plugin-cypress/flat";
74
+
75
+ export default [
76
+ // Files to include or ignore under linting
77
+ {
78
+ files: ["**/*.js", "**/*.mjs", "**/*.ts", "**/*.mts", "**/*.vue"],
79
+ },
80
+ {
81
+ ignores: ["_infrastructure/*", "**/dist/**", "**/coverage/**"],
82
+ },
83
+ ...sharedConfig,
84
+ pluginCypress.configs.recommended,
85
+ ];
86
+ ```
87
+
59
88
  ## Add a component
60
89
 
61
90
  To add a new component please add at least the following files:
@@ -8,11 +8,7 @@ declare const meta: {
8
8
  default: boolean;
9
9
  };
10
10
  item: {
11
- type: import('vue').PropType<{
12
- name: string;
13
- isChecked: boolean;
14
- iconName: string;
15
- }[]>;
11
+ type: import('vue').PropType<import('./UiCheckBoxGroup.vue').CheckboxItem[]>;
16
12
  default: () => never[];
17
13
  };
18
14
  firstEntryChecksAll: {
@@ -29,11 +25,7 @@ declare const meta: {
29
25
  default: boolean;
30
26
  };
31
27
  item: {
32
- type: import('vue').PropType<{
33
- name: string;
34
- isChecked: boolean;
35
- iconName: string;
36
- }[]>;
28
+ type: import('vue').PropType<import('./UiCheckBoxGroup.vue').CheckboxItem[]>;
37
29
  default: () => never[];
38
30
  };
39
31
  firstEntryChecksAll: {
@@ -46,11 +38,7 @@ declare const meta: {
46
38
  "onItem-checked"?: ((...args: any[]) => any) | undefined;
47
39
  }>, {
48
40
  disabled: boolean;
49
- item: {
50
- name: string;
51
- isChecked: boolean;
52
- iconName: string;
53
- }[];
41
+ item: import('./UiCheckBoxGroup.vue').CheckboxItem[];
54
42
  firstEntryChecksAll: boolean;
55
43
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
56
44
  argTypes: {
@@ -1,7 +1,7 @@
1
- type CheckboxItem = {
1
+ export type CheckboxItem = {
2
2
  name: string;
3
3
  isChecked: boolean;
4
- iconName: string;
4
+ iconName?: string;
5
5
  };
6
6
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
7
  item?: CheckboxItem[];
@@ -16,7 +16,9 @@ declare const meta: {
16
16
  type: import('vue').PropType<boolean>;
17
17
  default: boolean;
18
18
  };
19
- }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
19
+ }>> & Readonly<{}>, {
20
+ openMenu: import('vue').Ref<any, any>;
21
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
20
22
  headline: string;
21
23
  hasBorderTop: boolean;
22
24
  openAsDefault: boolean;
@@ -40,7 +42,9 @@ declare const meta: {
40
42
  type: import('vue').PropType<boolean>;
41
43
  default: boolean;
42
44
  };
43
- }>> & Readonly<{}>, {}, {}, {}, {}, {
45
+ }>> & Readonly<{}>, {
46
+ openMenu: import('vue').Ref<any, any>;
47
+ }, {}, {}, {}, {
44
48
  headline: string;
45
49
  hasBorderTop: boolean;
46
50
  openAsDefault: boolean;
@@ -61,7 +65,9 @@ declare const meta: {
61
65
  type: import('vue').PropType<boolean>;
62
66
  default: boolean;
63
67
  };
64
- }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
68
+ }>> & Readonly<{}>, {
69
+ openMenu: import('vue').Ref<any, any>;
70
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
65
71
  headline: string;
66
72
  hasBorderTop: boolean;
67
73
  openAsDefault: boolean;
@@ -9,7 +9,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
9
9
  headline: string;
10
10
  hasBorderTop: boolean;
11
11
  openAsDefault: boolean;
12
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ }>>, {
13
+ openMenu: import('vue').Ref<any, any>;
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
15
  headline?: string;
14
16
  hasBorderTop?: boolean;
15
17
  openAsDefault?: boolean;
@@ -114,7 +114,6 @@ declare const meta: {
114
114
  };
115
115
  customFormatCallback: {
116
116
  type: import('vue').PropType<any>;
117
- required: true;
118
117
  default: undefined;
119
118
  };
120
119
  inputLabel: {
@@ -302,7 +301,6 @@ declare const meta: {
302
301
  };
303
302
  customFormatCallback: {
304
303
  type: import('vue').PropType<any>;
305
- required: true;
306
304
  default: undefined;
307
305
  };
308
306
  inputLabel: {
@@ -481,7 +479,6 @@ declare const meta: {
481
479
  };
482
480
  customFormatCallback: {
483
481
  type: import('vue').PropType<any>;
484
- required: true;
485
482
  default: undefined;
486
483
  };
487
484
  inputLabel: {
@@ -777,7 +774,6 @@ declare const meta: {
777
774
  };
778
775
  customFormatCallback: {
779
776
  type: import('vue').PropType<any>;
780
- required: true;
781
777
  default: undefined;
782
778
  };
783
779
  inputLabel: {
@@ -965,7 +961,6 @@ declare const meta: {
965
961
  };
966
962
  customFormatCallback: {
967
963
  type: import('vue').PropType<any>;
968
- required: true;
969
964
  default: undefined;
970
965
  };
971
966
  inputLabel: {
@@ -1144,7 +1139,6 @@ declare const meta: {
1144
1139
  };
1145
1140
  customFormatCallback: {
1146
1141
  type: import('vue').PropType<any>;
1147
- required: true;
1148
1142
  default: undefined;
1149
1143
  };
1150
1144
  inputLabel: {
@@ -39,7 +39,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
39
39
  activeState?: boolean;
40
40
  disabledState?: boolean;
41
41
  monthPicker?: boolean;
42
- customFormatCallback: any;
42
+ customFormatCallback?: any;
43
43
  inputLabel?: string;
44
44
  iconLeft?: (typeof iconNames)[number] | null;
45
45
  utc?: boolean;
@@ -114,7 +114,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
114
114
  activeState?: boolean;
115
115
  disabledState?: boolean;
116
116
  monthPicker?: boolean;
117
- customFormatCallback: any;
117
+ customFormatCallback?: any;
118
118
  inputLabel?: string;
119
119
  iconLeft?: (typeof iconNames)[number] | null;
120
120
  utc?: boolean;
@@ -22,7 +22,6 @@ declare const meta: {
22
22
  };
23
23
  isActive: {
24
24
  type: import('vue').PropType<boolean>;
25
- required: true;
26
25
  default: boolean;
27
26
  };
28
27
  }>> & Readonly<{
@@ -60,7 +59,6 @@ declare const meta: {
60
59
  };
61
60
  isActive: {
62
61
  type: import('vue').PropType<boolean>;
63
- required: true;
64
62
  default: boolean;
65
63
  };
66
64
  }>> & Readonly<{
@@ -93,7 +91,6 @@ declare const meta: {
93
91
  };
94
92
  isActive: {
95
93
  type: import('vue').PropType<boolean>;
96
- required: true;
97
94
  default: boolean;
98
95
  };
99
96
  }>> & Readonly<{
@@ -164,7 +161,6 @@ declare const meta: {
164
161
  };
165
162
  isActive: {
166
163
  type: import('vue').PropType<boolean>;
167
- required: true;
168
164
  default: boolean;
169
165
  };
170
166
  }>> & Readonly<{
@@ -202,7 +198,6 @@ declare const meta: {
202
198
  };
203
199
  isActive: {
204
200
  type: import('vue').PropType<boolean>;
205
- required: true;
206
201
  default: boolean;
207
202
  };
208
203
  }>> & Readonly<{
@@ -235,7 +230,6 @@ declare const meta: {
235
230
  };
236
231
  isActive: {
237
232
  type: import('vue').PropType<boolean>;
238
- required: true;
239
233
  default: boolean;
240
234
  };
241
235
  }>> & Readonly<{
@@ -6,7 +6,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
6
6
  fill?: string;
7
7
  iconIsFilled?: boolean;
8
8
  label: string;
9
- isActive: boolean;
9
+ isActive?: boolean;
10
10
  }>, {
11
11
  color: string;
12
12
  fill: string;
@@ -19,7 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
19
19
  fill?: string;
20
20
  iconIsFilled?: boolean;
21
21
  label: string;
22
- isActive: boolean;
22
+ isActive?: boolean;
23
23
  }>, {
24
24
  color: string;
25
25
  fill: string;
@@ -5,7 +5,7 @@ declare const meta: {
5
5
  component: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
7
7
  type: {
8
- type: import('vue').PropType<"number" | "text" | "time" | "date" | "password">;
8
+ type: import('vue').PropType<"number" | "text" | "time" | "date" | "password" | "datetime-local">;
9
9
  default: string;
10
10
  };
11
11
  disabled: {
@@ -99,7 +99,7 @@ declare const meta: {
99
99
  keyup: (...args: any[]) => void;
100
100
  "update:modelValue": (...args: any[]) => void;
101
101
  }, import('vue').PublicProps, {
102
- type: "text" | "number" | "time" | "date" | "password";
102
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
103
103
  disabled: boolean;
104
104
  label: string;
105
105
  readonly: boolean;
@@ -127,7 +127,7 @@ declare const meta: {
127
127
  Defaults: {};
128
128
  }, Readonly<import('vue').ExtractPropTypes<{
129
129
  type: {
130
- type: import('vue').PropType<"number" | "text" | "time" | "date" | "password">;
130
+ type: import('vue').PropType<"number" | "text" | "time" | "date" | "password" | "datetime-local">;
131
131
  default: string;
132
132
  };
133
133
  disabled: {
@@ -215,7 +215,7 @@ declare const meta: {
215
215
  }>, {
216
216
  inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
217
217
  }, {}, {}, {}, {
218
- type: "text" | "number" | "time" | "date" | "password";
218
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
219
219
  disabled: boolean;
220
220
  label: string;
221
221
  readonly: boolean;
@@ -240,7 +240,7 @@ declare const meta: {
240
240
  __isSuspense?: never;
241
241
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
242
242
  type: {
243
- type: import('vue').PropType<"number" | "text" | "time" | "date" | "password">;
243
+ type: import('vue').PropType<"number" | "text" | "time" | "date" | "password" | "datetime-local">;
244
244
  default: string;
245
245
  };
246
246
  disabled: {
@@ -334,7 +334,7 @@ declare const meta: {
334
334
  keyup: (...args: any[]) => void;
335
335
  "update:modelValue": (...args: any[]) => void;
336
336
  }, string, {
337
- type: "text" | "number" | "time" | "date" | "password";
337
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
338
338
  disabled: boolean;
339
339
  label: string;
340
340
  readonly: boolean;
@@ -431,7 +431,7 @@ declare const meta: {
431
431
  UiInput: {
432
432
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
433
433
  type: {
434
- type: import('vue').PropType<"number" | "text" | "time" | "date" | "password">;
434
+ type: import('vue').PropType<"number" | "text" | "time" | "date" | "password" | "datetime-local">;
435
435
  default: string;
436
436
  };
437
437
  disabled: {
@@ -525,7 +525,7 @@ declare const meta: {
525
525
  keyup: (...args: any[]) => void;
526
526
  "update:modelValue": (...args: any[]) => void;
527
527
  }, import('vue').PublicProps, {
528
- type: "text" | "number" | "time" | "date" | "password";
528
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
529
529
  disabled: boolean;
530
530
  label: string;
531
531
  readonly: boolean;
@@ -553,7 +553,7 @@ declare const meta: {
553
553
  Defaults: {};
554
554
  }, Readonly<import('vue').ExtractPropTypes<{
555
555
  type: {
556
- type: import('vue').PropType<"number" | "text" | "time" | "date" | "password">;
556
+ type: import('vue').PropType<"number" | "text" | "time" | "date" | "password" | "datetime-local">;
557
557
  default: string;
558
558
  };
559
559
  disabled: {
@@ -641,7 +641,7 @@ declare const meta: {
641
641
  }>, {
642
642
  inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
643
643
  }, {}, {}, {}, {
644
- type: "text" | "number" | "time" | "date" | "password";
644
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
645
645
  disabled: boolean;
646
646
  label: string;
647
647
  readonly: boolean;
@@ -666,7 +666,7 @@ declare const meta: {
666
666
  __isSuspense?: never;
667
667
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
668
668
  type: {
669
- type: import('vue').PropType<"number" | "text" | "time" | "date" | "password">;
669
+ type: import('vue').PropType<"number" | "text" | "time" | "date" | "password" | "datetime-local">;
670
670
  default: string;
671
671
  };
672
672
  disabled: {
@@ -760,7 +760,7 @@ declare const meta: {
760
760
  keyup: (...args: any[]) => void;
761
761
  "update:modelValue": (...args: any[]) => void;
762
762
  }, string, {
763
- type: "text" | "number" | "time" | "date" | "password";
763
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
764
764
  disabled: boolean;
765
765
  label: string;
766
766
  readonly: boolean;
@@ -4,7 +4,7 @@ declare function __VLS_template(): {
4
4
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  id?: string;
6
6
  modelValue: string;
7
- type?: "text" | "number" | "time" | "date" | "password";
7
+ type?: "text" | "number" | "time" | "date" | "password" | "datetime-local";
8
8
  label?: string;
9
9
  placeholder?: string;
10
10
  autofocus?: boolean;
@@ -53,7 +53,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
53
53
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
54
54
  id?: string;
55
55
  modelValue: string;
56
- type?: "text" | "number" | "time" | "date" | "password";
56
+ type?: "text" | "number" | "time" | "date" | "password" | "datetime-local";
57
57
  label?: string;
58
58
  placeholder?: string;
59
59
  autofocus?: boolean;
@@ -98,7 +98,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
98
98
  onKeyup?: ((...args: any[]) => any) | undefined;
99
99
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
100
100
  }>, {
101
- type: "text" | "number" | "time" | "date" | "password";
101
+ type: "text" | "number" | "time" | "date" | "password" | "datetime-local";
102
102
  disabled: boolean;
103
103
  label: string;
104
104
  readonly: boolean;
@@ -50,8 +50,8 @@ declare const meta: {
50
50
  defaultTitle?: string | undefined;
51
51
  noTitle?: boolean | undefined;
52
52
  multiLabel?: string | undefined;
53
- filterButtonSize?: "small" | "xs" | undefined;
54
- buttonVariant?: "blue-rounded" | "white-rounded" | "transparent-rounded" | "blank" | undefined;
53
+ filterButtonSize?: ("small" | "xs") | undefined;
54
+ buttonVariant?: ("blue-rounded" | "white-rounded" | "transparent-rounded" | "blank") | undefined;
55
55
  listVariant?: import('./UiMenuTypes').UiMenuListVariant | undefined;
56
56
  checkboxColor?: import('./UiMenuTypes').UiMenuCheckboxColor | undefined;
57
57
  hasResetOption?: boolean | undefined;
@@ -88,7 +88,9 @@ declare const meta: {
88
88
  }): any;
89
89
  }>;
90
90
  emit: (event: "close" | "reset" | "input" | "open" | "option-selected" | "placed", ...args: any[]) => void;
91
- }>) => import('vue').VNode & {
91
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
92
+ [key: string]: any;
93
+ }> & {
92
94
  __ctx?: Awaited<typeof __VLS_setup>;
93
95
  };
94
96
  argTypes: {
@@ -277,8 +279,8 @@ export declare const WithBlankButton: {
277
279
  defaultTitle?: string | undefined;
278
280
  noTitle?: boolean | undefined;
279
281
  multiLabel?: string | undefined;
280
- filterButtonSize?: "small" | "xs" | undefined;
281
- buttonVariant?: "blue-rounded" | "white-rounded" | "transparent-rounded" | "blank" | undefined;
282
+ filterButtonSize?: ("small" | "xs") | undefined;
283
+ buttonVariant?: ("blue-rounded" | "white-rounded" | "transparent-rounded" | "blank") | undefined;
282
284
  listVariant?: import('./UiMenuTypes').UiMenuListVariant | undefined;
283
285
  checkboxColor?: import('./UiMenuTypes').UiMenuCheckboxColor | undefined;
284
286
  hasResetOption?: boolean | undefined;
@@ -315,7 +317,9 @@ export declare const WithBlankButton: {
315
317
  }): any;
316
318
  }>;
317
319
  emit: (event: "close" | "reset" | "input" | "open" | "option-selected" | "placed", ...args: any[]) => void;
318
- }>) => import('vue').VNode & {
320
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
321
+ [key: string]: any;
322
+ }> & {
319
323
  __ctx?: Awaited<typeof __VLS_setup>;
320
324
  };
321
325
  };
@@ -65,7 +65,9 @@ declare const _default: <K>(__VLS_props: Awaited<typeof __VLS_setup>["props"], _
65
65
  }): any;
66
66
  }>;
67
67
  emit: (event: "close" | "reset" | "input" | "open" | "option-selected" | "placed", ...args: any[]) => void;
68
- }>) => import('vue').VNode & {
68
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
69
+ [key: string]: any;
70
+ }> & {
69
71
  __ctx?: Awaited<typeof __VLS_setup>;
70
72
  };
71
73
  export default _default;
@@ -25,7 +25,9 @@ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], _
25
25
  }): any;
26
26
  }>;
27
27
  emit: typeof __VLS_emit;
28
- }>) => import('vue').VNode & {
28
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
29
+ [key: string]: any;
30
+ }> & {
29
31
  __ctx?: Awaited<typeof __VLS_setup>;
30
32
  };
31
33
  export default _default;
@@ -125,7 +125,9 @@ declare const meta: {
125
125
  control: "text";
126
126
  };
127
127
  modelValue: {
128
- control: "array";
128
+ control: {
129
+ type: "object";
130
+ };
129
131
  };
130
132
  placeholder: {
131
133
  control: "text";