fds-vue-core 8.6.6 → 8.7.0-rc.2

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 (142) hide show
  1. package/README.md +0 -39
  2. package/components.d.ts +10 -0
  3. package/dist/App.vue.d.ts +2 -1
  4. package/dist/components/BankId/FdsBankIdQr/FdsBankIdQr.vue.d.ts +31 -0
  5. package/dist/components/BankId/FdsBankIdQr/types.d.ts +14 -0
  6. package/dist/components/BankId/FdsBankIdSameDevice/FdsBankIdSameDevice.vue.d.ts +16 -0
  7. package/dist/components/BankId/FdsBankIdSameDevice/types.d.ts +11 -0
  8. package/dist/components/BankId/FdsBankIdStatusAlert/FdsBankIdStatusAlert.vue.d.ts +15 -0
  9. package/dist/components/BankId/FdsBankIdStatusAlert/types.d.ts +11 -0
  10. package/dist/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue.d.ts +6 -13
  11. package/dist/components/Blocks/FdsBlockContent/FdsBlockContent.vue.d.ts +8 -16
  12. package/dist/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue.d.ts +7 -15
  13. package/dist/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue.d.ts +9 -18
  14. package/dist/components/Blocks/FdsBlockLink/FdsBlockLink.vue.d.ts +7 -15
  15. package/dist/components/Buttons/FdsButtonCopy/FdsButtonCopy.vue.d.ts +2 -1
  16. package/dist/components/Buttons/FdsButtonDownload/FdsButtonDownload.vue.d.ts +3 -2
  17. package/dist/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue.d.ts +3 -2
  18. package/dist/components/Buttons/FdsButtonMinor/FdsButtonMinor.vue.d.ts +3 -2
  19. package/dist/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue.d.ts +3 -2
  20. package/dist/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue.d.ts +3 -2
  21. package/dist/components/Buttons/FdsButtonTertiary/FdsButtonTertiary.vue.d.ts +3 -2
  22. package/dist/components/FdsDevMode/FdsBreakpointIndicator.vue.d.ts +2 -3
  23. package/dist/components/FdsDevMode/FdsDevMode.vue.d.ts +9 -7
  24. package/dist/components/FdsDevMode/FdsDevModeOverlay.vue.d.ts +2 -4
  25. package/dist/components/FdsDevMode/FdsDevModeStorage.vue.d.ts +3 -6
  26. package/dist/components/FdsDrawer/FdsDrawer.vue.d.ts +8 -20
  27. package/dist/components/FdsExitModal/FdsExitModal.vue.d.ts +2 -1
  28. package/dist/components/FdsIcon/FdsIcon.vue.d.ts +3 -2
  29. package/dist/components/FdsModal/FdsModal.vue.d.ts +8 -20
  30. package/dist/components/FdsPagination/FdsPagination.vue.d.ts +3 -2
  31. package/dist/components/FdsPopover/FdsPopover.vue.d.ts +12 -18
  32. package/dist/components/FdsSearchSelect/FdsSearchSelect.vue.d.ts +3 -95
  33. package/dist/components/FdsSearchSelectPro/FdsSearchSelectPro.vue.d.ts +3 -97
  34. package/dist/components/FdsSpinner/FdsSpinner.vue.d.ts +3 -2
  35. package/dist/components/FdsSticker/FdsSticker.vue.d.ts +7 -14
  36. package/dist/components/FdsTreeView/FdsTreeView.vue.d.ts +3 -4
  37. package/dist/components/FdsTreeView/TreeNode.vue.d.ts +3 -28
  38. package/dist/components/FdsTruncatedText/FdsTruncatedText.vue.d.ts +7 -14
  39. package/dist/components/FdsWeekCalendar/FdsWeekCalendar.vue.d.ts +3 -2
  40. package/dist/components/FdsWeekCalendar/WeekDay.vue.d.ts +3 -2
  41. package/dist/components/FdsWizard/FdsWizard.vue.d.ts +7 -20
  42. package/dist/components/Form/FdsCheckbox/FdsCheckbox.vue.d.ts +11 -17
  43. package/dist/components/Form/FdsInput/FdsInput.vue.d.ts +8 -8
  44. package/dist/components/Form/FdsLoginEmailForm/FdsLoginEmailForm.vue.d.ts +20 -0
  45. package/dist/components/Form/FdsLoginEmailForm/types.d.ts +20 -0
  46. package/dist/components/Form/FdsPhonenumber/FdsPhonenumber.vue.d.ts +5 -3
  47. package/dist/components/Form/FdsPhonenumber/FdsPhonenumberCountryPicker.vue.d.ts +6 -7
  48. package/dist/components/Form/FdsRadio/FdsRadio.vue.d.ts +10 -16
  49. package/dist/components/Form/FdsSelect/FdsSelect.vue.d.ts +11 -17
  50. package/dist/components/Form/FdsSsn/FdsSsn.vue.d.ts +5 -3
  51. package/dist/components/Form/FdsSsn/ssnMask.d.ts +0 -6
  52. package/dist/components/Form/FdsTextarea/FdsTextarea.vue.d.ts +7 -5
  53. package/dist/components/Table/FdsTable/FdsTable.vue.d.ts +7 -14
  54. package/dist/components/Table/FdsTableHead/FdsTableHead.vue.d.ts +7 -14
  55. package/dist/components/Tabs/FdsTabs/FdsTabs.vue.d.ts +7 -14
  56. package/dist/components/Tabs/FdsTabsItem/FdsTabsItem.vue.d.ts +6 -13
  57. package/dist/components/Typography/FdsError/FdsError.vue.d.ts +6 -0
  58. package/dist/components/Typography/FdsError/types.d.ts +5 -0
  59. package/dist/components/Typography/FdsH1/FdsH1.vue.d.ts +2 -1
  60. package/dist/components/Typography/FdsH2/FdsH2.vue.d.ts +2 -1
  61. package/dist/components/Typography/FdsH3/FdsH3.vue.d.ts +2 -1
  62. package/dist/components/Typography/FdsHr/FdsHr.vue.d.ts +2 -1
  63. package/dist/components/Typography/FdsLabel/FdsLabel.vue.d.ts +6 -13
  64. package/dist/components/Typography/FdsLead/FdsLead.vue.d.ts +6 -13
  65. package/dist/components/Typography/FdsListHeading/FdsListHeading.vue.d.ts +2 -1
  66. package/dist/components/Typography/FdsMeta/FdsMeta.vue.d.ts +6 -13
  67. package/dist/composables/keepInViewport.d.ts +22 -0
  68. package/dist/composables/useBankIdDeviceIdentifier.d.ts +8 -0
  69. package/dist/composables/useBankIdMessages.d.ts +8 -0
  70. package/dist/composables/useBankIdSameDevice.d.ts +22 -0
  71. package/dist/composables/useBankIdSession.d.ts +58 -0
  72. package/dist/composables/useDevModeToggles.d.ts +1 -1
  73. package/dist/composables/useModalDragResize.d.ts +1 -0
  74. package/dist/composables/usePreviousLocation.d.ts +9 -0
  75. package/dist/fds-vue-core.cjs.js +32544 -21010
  76. package/dist/fds-vue-core.cjs.js.map +1 -1
  77. package/dist/fds-vue-core.css +3 -1
  78. package/dist/fds-vue-core.es.js +32456 -21060
  79. package/dist/fds-vue-core.es.js.map +1 -1
  80. package/dist/helpers/appendQueryParams.d.ts +6 -0
  81. package/dist/helpers/bankId/autostart.d.ts +7 -0
  82. package/dist/helpers/bankId/constants.d.ts +7 -0
  83. package/dist/helpers/bankId/device.d.ts +2 -0
  84. package/dist/helpers/bankId/deviceIdentifier.d.ts +6 -0
  85. package/dist/helpers/bankId/hintCode.d.ts +2 -0
  86. package/dist/helpers/bankId/pollError.d.ts +2 -0
  87. package/dist/helpers/bankId/sameDevice.d.ts +10 -0
  88. package/dist/helpers/bankId/types.d.ts +55 -0
  89. package/dist/helpers/validateLoginEmail.d.ts +2 -0
  90. package/dist/index.d.ts +31 -2
  91. package/dist/tsconfig.build.tsbuildinfo +1 -1
  92. package/package.json +25 -38
  93. package/src/components/BankId/FdsBankIdQr/FdsBankIdQr.stories.ts +33 -0
  94. package/src/components/BankId/FdsBankIdQr/FdsBankIdQr.vue +89 -0
  95. package/src/components/BankId/FdsBankIdQr/types.ts +15 -0
  96. package/src/components/BankId/FdsBankIdSameDevice/FdsBankIdSameDevice.stories.ts +23 -0
  97. package/src/components/BankId/FdsBankIdSameDevice/FdsBankIdSameDevice.vue +52 -0
  98. package/src/components/BankId/FdsBankIdSameDevice/types.ts +12 -0
  99. package/src/components/BankId/FdsBankIdStatusAlert/FdsBankIdStatusAlert.stories.ts +26 -0
  100. package/src/components/BankId/FdsBankIdStatusAlert/FdsBankIdStatusAlert.vue +41 -0
  101. package/src/components/BankId/FdsBankIdStatusAlert/types.ts +12 -0
  102. package/src/components/FdsDevMode/FdsBreakpointIndicator.vue +6 -1
  103. package/src/components/FdsDevMode/FdsDevMode.vue +6 -4
  104. package/src/components/FdsDevMode/FdsDevModeOverlay.vue +10 -4
  105. package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.vue +0 -1
  106. package/src/components/Form/FdsInput/FdsInput.vue +2 -3
  107. package/src/components/Form/FdsLoginEmailForm/FdsLoginEmailForm.stories.ts +23 -0
  108. package/src/components/Form/FdsLoginEmailForm/FdsLoginEmailForm.vue +126 -0
  109. package/src/components/Form/FdsLoginEmailForm/types.ts +22 -0
  110. package/src/components/Form/FdsPhonenumber/FdsPhonenumber.vue +7 -12
  111. package/src/components/Form/FdsSelect/FdsSelect.stories.ts +6 -1
  112. package/src/components/Form/FdsSelect/FdsSelect.vue +2 -3
  113. package/src/components/Form/FdsSsn/ssnMask.ts +1 -1
  114. package/src/components/Form/FdsTextarea/FdsTextarea.vue +2 -3
  115. package/src/components/Typography/FdsError/FdsError.stories.ts +24 -0
  116. package/src/components/Typography/FdsError/FdsError.vue +37 -0
  117. package/src/components/Typography/FdsError/types.ts +6 -0
  118. package/src/composables/keepInViewport.ts +176 -0
  119. package/src/composables/useBankIdDeviceIdentifier.ts +15 -0
  120. package/src/composables/useBankIdMessages.ts +83 -0
  121. package/src/composables/useBankIdSameDevice.ts +102 -0
  122. package/src/composables/useBankIdSession.spec.ts +173 -0
  123. package/src/composables/useBankIdSession.ts +300 -0
  124. package/src/composables/useDevModeToggles.ts +1 -1
  125. package/src/composables/useModalDragResize.ts +80 -7
  126. package/src/composables/usePreviousLocation.ts +35 -0
  127. package/src/helpers/appendQueryParams.ts +12 -0
  128. package/src/helpers/bankId/autostart.spec.ts +13 -0
  129. package/src/helpers/bankId/autostart.ts +30 -0
  130. package/src/helpers/bankId/constants.ts +13 -0
  131. package/src/helpers/bankId/device.ts +7 -0
  132. package/src/helpers/bankId/deviceIdentifier.spec.ts +36 -0
  133. package/src/helpers/bankId/deviceIdentifier.ts +52 -0
  134. package/src/helpers/bankId/hintCode.ts +20 -0
  135. package/src/helpers/bankId/pollError.ts +44 -0
  136. package/src/helpers/bankId/sameDevice.spec.ts +61 -0
  137. package/src/helpers/bankId/sameDevice.ts +99 -0
  138. package/src/helpers/bankId/types.ts +63 -0
  139. package/src/helpers/validateLoginEmail.ts +16 -0
  140. package/src/index.ts +113 -0
  141. package/src/lang/en.json +62 -0
  142. package/src/lang/sv.json +62 -0
package/README.md CHANGED
@@ -112,45 +112,6 @@ import { FdsButtonPrimary, FdsInput, FdsModal } from 'fds-vue-core'
112
112
 
113
113
  All components are fully typed. Type definitions are included in the package.
114
114
 
115
- ## Commit workflow
116
-
117
- Use these commands to create commits with the shared Commitizen adapter and security dependency helper.
118
-
119
- ### In this repo
120
-
121
- ```bash
122
- pnpm commit
123
- pnpm commit:vuln
124
- ```
125
-
126
- - `pnpm commit` starts Commitizen prompts (configured via `scripts/cz/cz-adapter.cjs`).
127
- - `pnpm commit:vuln` runs `scripts/vuln-commit.mjs` and auto-creates a `vuln(...)` commit from staged `package.json` dependency bumps.
128
-
129
- ### In a consuming repo
130
-
131
- Install dependencies:
132
-
133
- ```bash
134
- pnpm add fds-vue-core
135
- pnpm add -D commitizen
136
- ```
137
-
138
- Add this to the consuming repo `package.json`:
139
-
140
- ```json
141
- {
142
- "scripts": {
143
- "commit": "cz",
144
- "commit:vuln": "fds-vuln-commit"
145
- },
146
- "config": {
147
- "commitizen": {
148
- "path": "fds-vue-core/cz-adapter"
149
- }
150
- }
151
- }
152
- ```
153
-
154
115
  ## Further Documentation
155
116
 
156
117
  - [Usage Guide](./src/docs/Usage.md) - Detailed usage instructions
package/components.d.ts CHANGED
@@ -35,11 +35,16 @@ import type { FdsRadioProps } from './dist/components/Form/FdsRadio/types'
35
35
  import type { FdsSelectProps } from './dist/components/Form/FdsSelect/types'
36
36
  import type { FdsPhonenumberProps } from './dist/components/Form/FdsPhonenumber/types'
37
37
  import type { FdsSsnProps } from './dist/components/Form/FdsSsn/types'
38
+ import type { FdsLoginEmailFormProps } from './dist/components/Form/FdsLoginEmailForm/types'
39
+ import type { FdsBankIdQrProps } from './dist/components/BankId/FdsBankIdQr/types'
40
+ import type { FdsBankIdSameDeviceProps } from './dist/components/BankId/FdsBankIdSameDevice/types'
41
+ import type { FdsBankIdStatusAlertProps } from './dist/components/BankId/FdsBankIdStatusAlert/types'
38
42
  import type { FdsTextareaProps } from './dist/components/Form/FdsTextarea/types'
39
43
  import type { FdsTableProps } from './dist/components/Table/FdsTable/types'
40
44
  import type { FdsTableHeadProps } from './dist/components/Table/FdsTableHead/types'
41
45
  import type { FdsTabsProps } from './dist/components/Tabs/FdsTabs/types'
42
46
  import type { FdsTabsItemProps } from './dist/components/Tabs/FdsTabsItem/types'
47
+ import type { FdsErrorProps } from './dist/components/Typography/FdsError/types'
43
48
  import type { FdsH1Props } from './dist/components/Typography/FdsH1/types'
44
49
  import type { FdsH2Props } from './dist/components/Typography/FdsH2/types'
45
50
  import type { FdsH3Props } from './dist/components/Typography/FdsH3/types'
@@ -69,6 +74,10 @@ declare module 'vue' {
69
74
  FdsTextarea: DefineComponent<FdsTextareaProps>
70
75
  FdsPhonenumber: DefineComponent<FdsPhonenumberProps>
71
76
  FdsSsn: DefineComponent<FdsSsnProps>
77
+ FdsLoginEmailForm: DefineComponent<FdsLoginEmailFormProps>
78
+ FdsBankIdQr: DefineComponent<FdsBankIdQrProps>
79
+ FdsBankIdSameDevice: DefineComponent<FdsBankIdSameDeviceProps>
80
+ FdsBankIdStatusAlert: DefineComponent<FdsBankIdStatusAlertProps>
72
81
  FdsSelect: DefineComponent<FdsSelectProps>
73
82
  FdsTable: DefineComponent<FdsTableProps>
74
83
  FdsTableHead: DefineComponent<FdsTableHeadProps>
@@ -89,6 +98,7 @@ declare module 'vue' {
89
98
  FdsTruncatedText: DefineComponent<FdsTruncatedTextProps>
90
99
  FdsWeekCalendar: DefineComponent<FdsWeekCalendarProps>
91
100
  FdsWizard: DefineComponent<FdsWizardProps>
101
+ FdsError: DefineComponent<FdsErrorProps>
92
102
  FdsH1: DefineComponent<FdsH1Props>
93
103
  FdsH2: DefineComponent<FdsH2Props>
94
104
  FdsH3: DefineComponent<FdsH3Props>
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -0,0 +1,31 @@
1
+ import { FdsBankIdQrProps } from './types';
2
+ declare var __VLS_14: {
3
+ qrCode: string | null;
4
+ };
5
+ type __VLS_Slots = {} & {
6
+ qr?: (props: typeof __VLS_14) => any;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<FdsBankIdQrProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ cancel: () => any;
10
+ showQr: () => any;
11
+ }, string, import('vue').PublicProps, Readonly<FdsBankIdQrProps> & Readonly<{
12
+ onCancel?: (() => any) | undefined;
13
+ onShowQr?: (() => any) | undefined;
14
+ }>, {
15
+ dataTestid: string;
16
+ heading: string;
17
+ qrCode: string | null;
18
+ activePolling: boolean;
19
+ ongoingLogin: boolean;
20
+ rfa: string | null;
21
+ showQrLabel: string;
22
+ cancelLabel: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,14 @@
1
+ export interface FdsBankIdQrProps {
2
+ qrCode?: string | null;
3
+ activePolling?: boolean;
4
+ ongoingLogin?: boolean;
5
+ rfa?: string | null;
6
+ showQrLabel?: string;
7
+ cancelLabel?: string;
8
+ heading?: string;
9
+ dataTestid?: string;
10
+ }
11
+ export interface FdsBankIdQrEmits {
12
+ showQr: [];
13
+ cancel: [];
14
+ }
@@ -0,0 +1,16 @@
1
+ import { FdsBankIdSameDeviceProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsBankIdSameDeviceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ start: () => any;
4
+ cancel: () => any;
5
+ }, string, import('vue').PublicProps, Readonly<FdsBankIdSameDeviceProps> & Readonly<{
6
+ onStart?: (() => any) | undefined;
7
+ onCancel?: (() => any) | undefined;
8
+ }>, {
9
+ dataTestid: string;
10
+ ongoingLogin: boolean;
11
+ cancelLabel: string;
12
+ logoAlt: string;
13
+ startLabel: string;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export interface FdsBankIdSameDeviceProps {
2
+ ongoingLogin?: boolean;
3
+ startLabel?: string;
4
+ cancelLabel?: string;
5
+ logoAlt?: string;
6
+ dataTestid?: string;
7
+ }
8
+ export interface FdsBankIdSameDeviceEmits {
9
+ start: [];
10
+ cancel: [];
11
+ }
@@ -0,0 +1,15 @@
1
+ import { FdsBankIdStatusAlertProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsBankIdStatusAlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ close: () => any;
4
+ }, string, import('vue').PublicProps, Readonly<FdsBankIdStatusAlertProps> & Readonly<{
5
+ onClose?: (() => any) | undefined;
6
+ }>, {
7
+ title: string | null;
8
+ dataTestid: string;
9
+ body: string | null;
10
+ loading: boolean;
11
+ closeable: boolean;
12
+ loadingLabel: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export interface FdsBankIdStatusAlertProps {
2
+ title?: string | null;
3
+ body?: string | null;
4
+ closeable?: boolean;
5
+ loading?: boolean;
6
+ loadingLabel?: string;
7
+ dataTestid?: string;
8
+ }
9
+ export interface FdsBankIdStatusAlertEmits {
10
+ close: [];
11
+ }
@@ -1,17 +1,9 @@
1
1
  import { Slot } from 'vue';
2
2
  import { FdsAlertBlockProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: Slot;
7
- }> & {
8
- default?: Slot;
9
- };
10
- refs: {};
11
- rootEl: any;
3
+ type __VLS_Slots = {
4
+ default?: Slot;
12
5
  };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<FdsAlertBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ declare const __VLS_base: import('vue').DefineComponent<FdsAlertBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
7
  close: () => any;
16
8
  toggle: () => any;
17
9
  "update:visible": (value: boolean) => any;
@@ -27,9 +19,10 @@ declare const __VLS_component: import('vue').DefineComponent<FdsAlertBlockProps,
27
19
  expanded: boolean;
28
20
  heading: string;
29
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
31
24
  export default _default;
32
- type __VLS_WithTemplateSlots<T, S> = T & {
25
+ type __VLS_WithSlots<T, S> = T & {
33
26
  new (): {
34
27
  $slots: S;
35
28
  };
@@ -1,27 +1,19 @@
1
1
  import { Slot } from 'vue';
2
2
  import { FdsContentBlockProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: Slot;
7
- headerInfo?: Slot;
8
- }> & {
9
- default?: Slot;
10
- headerInfo?: Slot;
11
- };
12
- refs: {};
13
- rootEl: HTMLDivElement;
3
+ type __VLS_Slots = {
4
+ default?: Slot;
5
+ headerInfo?: Slot;
14
6
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<FdsContentBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsContentBlockProps> & Readonly<{}>, {
7
+ declare const __VLS_base: import('vue').DefineComponent<FdsContentBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsContentBlockProps> & Readonly<{}>, {
17
8
  dataTestid: string;
18
9
  heading: string;
19
10
  borderLeft: "" | "green" | "yellow" | "red";
20
11
  tight: boolean;
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
23
15
  export default _default;
24
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
25
17
  new (): {
26
18
  $slots: S;
27
19
  };
@@ -1,19 +1,10 @@
1
1
  import { Slot } from 'vue';
2
2
  import { FdsExpanderBlockProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: Slot;
7
- 'extra-row'?: Slot;
8
- }> & {
9
- default?: Slot;
10
- 'extra-row'?: Slot;
11
- };
12
- refs: {};
13
- rootEl: any;
3
+ type __VLS_Slots = {
4
+ default?: Slot;
5
+ 'extra-row'?: Slot;
14
6
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<FdsExpanderBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ declare const __VLS_base: import('vue').DefineComponent<FdsExpanderBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
8
  toggle: () => any;
18
9
  }, string, import('vue').PublicProps, Readonly<FdsExpanderBlockProps> & Readonly<{
19
10
  onToggle?: (() => any) | undefined;
@@ -27,9 +18,10 @@ declare const __VLS_component: import('vue').DefineComponent<FdsExpanderBlockPro
27
18
  stickerColor: "green" | "yellow" | "red" | "blue" | "gray" | "t_blue";
28
19
  stickerText: string;
29
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
31
23
  export default _default;
32
- type __VLS_WithTemplateSlots<T, S> = T & {
24
+ type __VLS_WithSlots<T, S> = T & {
33
25
  new (): {
34
26
  $slots: S;
35
27
  };
@@ -1,29 +1,20 @@
1
1
  import { Slot } from 'vue';
2
2
  import { FdsBlockInfoProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: Slot;
7
- header?: Slot;
8
- headerInfo?: Slot;
9
- }> & {
10
- default?: Slot;
11
- header?: Slot;
12
- headerInfo?: Slot;
13
- };
14
- refs: {};
15
- rootEl: HTMLDivElement;
3
+ type __VLS_Slots = {
4
+ default?: Slot;
5
+ header?: Slot;
6
+ headerInfo?: Slot;
16
7
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<FdsBlockInfoProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsBlockInfoProps> & Readonly<{}>, {
8
+ declare const __VLS_base: import('vue').DefineComponent<FdsBlockInfoProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsBlockInfoProps> & Readonly<{}>, {
19
9
  dataTestid: string;
20
10
  icon: import('../../..').FdsIconName;
21
11
  iconSize: "large" | "small";
22
12
  heading: string;
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
25
16
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
27
18
  new (): {
28
19
  $slots: S;
29
20
  };
@@ -1,19 +1,10 @@
1
1
  import { Slot } from 'vue';
2
2
  import { FdsInteractionBlockProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: Slot;
7
- sticker?: Slot;
8
- }> & {
9
- default?: Slot;
10
- sticker?: Slot;
11
- };
12
- refs: {};
13
- rootEl: any;
3
+ type __VLS_Slots = {
4
+ default?: Slot;
5
+ sticker?: Slot;
14
6
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<FdsInteractionBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ declare const __VLS_base: import('vue').DefineComponent<FdsInteractionBlockProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
8
  click: (event: Event) => any;
18
9
  }, string, import('vue').PublicProps, Readonly<FdsInteractionBlockProps> & Readonly<{
19
10
  onClick?: ((event: Event) => any) | undefined;
@@ -26,9 +17,10 @@ declare const __VLS_component: import('vue').DefineComponent<FdsInteractionBlock
26
17
  interactive: boolean;
27
18
  as: "button" | "a" | "router-link";
28
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
30
22
  export default _default;
31
- type __VLS_WithTemplateSlots<T, S> = T & {
23
+ type __VLS_WithSlots<T, S> = T & {
32
24
  new (): {
33
25
  $slots: S;
34
26
  };
@@ -1,5 +1,5 @@
1
1
  import { FdsCopyButtonProps } from './types';
2
- declare const _default: import('vue').DefineComponent<FdsCopyButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsCopyButtonProps> & Readonly<{}>, {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsCopyButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FdsCopyButtonProps> & Readonly<{}>, {
3
3
  disabled: boolean;
4
4
  value: string;
5
5
  dataTestid: string;
@@ -7,4 +7,5 @@ declare const _default: import('vue').DefineComponent<FdsCopyButtonProps, {}, {}
7
7
  copiedText: string;
8
8
  timeoutMs: number;
9
9
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FdsButtonDownloadProps } from './types';
2
- declare const _default: import('vue').DefineComponent<FdsButtonDownloadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsButtonDownloadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  click: (ev: MouseEvent) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<FdsButtonDownloadProps> & Readonly<{
5
5
  onClick?: ((ev: MouseEvent) => any) | undefined;
@@ -11,5 +11,6 @@ declare const _default: import('vue').DefineComponent<FdsButtonDownloadProps, {}
11
11
  loading: boolean;
12
12
  iconPos: "left" | "right";
13
13
  downloadOptions: import('./types').DownloadOptions;
14
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
15
16
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FdsIconButtonProps } from './types';
2
- declare const _default: import('vue').DefineComponent<FdsIconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsIconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  click: (ev: MouseEvent) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<FdsIconButtonProps> & Readonly<{
5
5
  onClick?: ((ev: MouseEvent) => any) | undefined;
@@ -8,5 +8,6 @@ declare const _default: import('vue').DefineComponent<FdsIconButtonProps, {}, {}
8
8
  size: number;
9
9
  dataTestid: string;
10
10
  loading: boolean;
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
12
13
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FdsButtonMinorProps } from './types';
2
- declare const _default: import('vue').DefineComponent<FdsButtonMinorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsButtonMinorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  click: (ev: MouseEvent) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<FdsButtonMinorProps> & Readonly<{
5
5
  onClick?: ((ev: MouseEvent) => any) | undefined;
@@ -9,11 +9,12 @@ declare const _default: import('vue').DefineComponent<FdsButtonMinorProps, {}, {
9
9
  icon: string;
10
10
  loading: boolean;
11
11
  iconSize: number;
12
- block: boolean;
13
12
  as: "button" | "a" | "router-link";
13
+ block: boolean;
14
14
  state: "hover" | "focus" | "active";
15
15
  iconPos: "right" | "left";
16
16
  textSelection: boolean;
17
17
  invert: boolean;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
19
20
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FdsButtonBaseProps } from '../ButtonBaseProps';
2
- declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  click: (ev: MouseEvent) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
5
5
  onClick?: ((ev: MouseEvent) => any) | undefined;
@@ -10,10 +10,11 @@ declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}
10
10
  icon: string;
11
11
  loading: boolean;
12
12
  iconSize: number;
13
- block: boolean;
14
13
  as: "button" | "a" | "router-link";
14
+ block: boolean;
15
15
  state: "hover" | "focus" | "active";
16
16
  iconPos: "right" | "left";
17
17
  textSelection: boolean;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
19
20
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FdsButtonBaseProps } from '../ButtonBaseProps';
2
- declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  click: (ev: MouseEvent) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<FdsButtonBaseProps> & Readonly<{
5
5
  onClick?: ((ev: MouseEvent) => any) | undefined;
@@ -10,10 +10,11 @@ declare const _default: import('vue').DefineComponent<FdsButtonBaseProps, {}, {}
10
10
  icon: string;
11
11
  loading: boolean;
12
12
  iconSize: number;
13
- block: boolean;
14
13
  as: "button" | "a" | "router-link";
14
+ block: boolean;
15
15
  state: "hover" | "focus" | "active";
16
16
  iconPos: "right" | "left";
17
17
  textSelection: boolean;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
19
20
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FdsButtonTertiaryProps } from './types';
2
- declare const _default: import('vue').DefineComponent<FdsButtonTertiaryProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ declare const __VLS_export: import('vue').DefineComponent<FdsButtonTertiaryProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  click: (ev: MouseEvent) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<FdsButtonTertiaryProps> & Readonly<{
5
5
  onClick?: ((ev: MouseEvent) => any) | undefined;
@@ -10,10 +10,11 @@ declare const _default: import('vue').DefineComponent<FdsButtonTertiaryProps, {}
10
10
  icon: string;
11
11
  loading: boolean;
12
12
  iconSize: number;
13
- block: boolean;
14
13
  as: "button" | "a" | "router-link";
14
+ block: boolean;
15
15
  state: "hover" | "focus" | "active";
16
16
  iconPos: "right" | "left";
17
17
  textSelection: boolean;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
19
20
  export default _default;
@@ -1,7 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  popoverClass?: string;
3
3
  };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
5
- containerRef: HTMLDivElement;
6
- }, HTMLDivElement>;
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
7
6
  export default _default;
@@ -5,11 +5,14 @@ type __VLS_Props = {
5
5
  customActions?: DevModeAction[];
6
6
  toggles?: DevModeToggle[];
7
7
  };
8
- type __VLS_PublicProps = {
8
+ type __VLS_ModelProps = {
9
+ /** Checkbox state per toggle key – controlled by the consumer. */
9
10
  'toggleChecked'?: Record<string, boolean>;
11
+ /** Selected radio value per group – controlled by the consumer. */
10
12
  'toggleSelected'?: Record<string, string>;
11
- } & __VLS_Props;
12
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ };
14
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
15
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
16
  select: (payload: {
14
17
  key: string;
15
18
  group: string;
@@ -40,10 +43,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
40
43
  "onUpdate:toggleChecked"?: ((value: Record<string, boolean>) => any) | undefined;
41
44
  "onUpdate:toggleSelected"?: ((value: Record<string, string>) => any) | undefined;
42
45
  }>, {
43
- environment: DevModeEnvironmentKey | null;
44
46
  toggles: DevModeToggle[];
45
47
  customActions: DevModeAction[];
46
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
47
- bannerRef: HTMLDivElement;
48
- }, any>;
48
+ environment: DevModeEnvironmentKey | null;
49
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
+ declare const _default: typeof __VLS_export;
49
51
  export default _default;
@@ -1,10 +1,8 @@
1
- import { DevModeEnvironmentKey } from '../../composables/useDevModeEnvironment';
2
1
  import { DevModeOverlayToggle } from './types';
3
2
  type __VLS_Props = {
4
- environment?: DevModeEnvironmentKey | null;
5
3
  toggles?: DevModeOverlayToggle[];
6
4
  };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
6
  select: (payload: {
9
7
  key: string;
10
8
  group: string;
@@ -31,7 +29,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
31
29
  key: string;
32
30
  }) => any) | undefined;
33
31
  }>, {
34
- environment: DevModeEnvironmentKey | null;
35
32
  toggles: DevModeOverlayToggle[];
36
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: typeof __VLS_export;
37
35
  export default _default;
@@ -3,16 +3,13 @@ type __VLS_Props = {
3
3
  open?: boolean;
4
4
  customActions?: DevModeAction[];
5
5
  };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
7
  "update:open": (value: boolean) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
10
10
  }>, {
11
11
  open: boolean;
12
12
  customActions: DevModeAction[];
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
- localTextareaRef: HTMLTextAreaElement;
15
- sessionTextareaRef: HTMLTextAreaElement;
16
- cookieTextareaRef: HTMLTextAreaElement;
17
- }, any>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
18
15
  export default _default;