@mnbsolutions/framework-frontend 0.0.0-stage → 4.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/dist/esm/types/MuiClassNameSetup.d.ts +1 -0
- package/dist/esm/types/components/AdminLoginForm/AdminLoginForm.d.ts +89 -0
- package/dist/esm/types/components/AdminLoginForm/AdminLoginForm.stories.d.ts +11 -0
- package/dist/esm/types/components/AdminLoginForm/index.d.ts +3 -0
- package/dist/esm/types/components/Autocomplete/Autocomplete.d.ts +8 -0
- package/dist/esm/types/components/Autocomplete/Autocomplete.stories.d.ts +17 -0
- package/dist/esm/types/components/Autocomplete/AutocompleteOld.d.ts +7 -0
- package/dist/esm/types/components/Button/Button.d.ts +10 -0
- package/dist/esm/types/components/Button/Button.stories.d.ts +10 -0
- package/dist/esm/types/components/Captcha/CaptchaAccessibilityTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaClientTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaDebugTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaDebugger.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaExample.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaStatusDebugger.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/CaptchaTroubleshoot.d.ts +2 -0
- package/dist/esm/types/components/Captcha/CaptchaWidget.d.ts +27 -0
- package/dist/esm/types/components/Captcha/CaptchaWidget.stories.d.ts +31 -0
- package/dist/esm/types/components/Captcha/CaptchaWidgetTest.d.ts +4 -0
- package/dist/esm/types/components/Captcha/ComprehensiveTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/FinalValidationTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/SimpleValidationTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/SubmitOnlyValidationTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/ValidationTest.d.ts +1 -0
- package/dist/esm/types/components/Captcha/hooks/useCaptchaForm.d.ts +14 -0
- package/dist/esm/types/components/Captcha/hooks/useCaptchaToken.d.ts +9 -0
- package/dist/esm/types/components/Captcha/hooks/useCaptchaValidation.d.ts +11 -0
- package/dist/esm/types/components/Captcha/types/captcha.d.ts +52 -0
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +18 -0
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/esm/types/components/ConfigContext/ConfigContext.d.ts +10 -0
- package/dist/esm/types/components/ConfigContext/ConfigContext.types.d.ts +8 -0
- package/dist/esm/types/components/ConfigContext/index.d.ts +2 -0
- package/dist/esm/types/components/ContactLink/ContactLink.d.ts +7 -0
- package/dist/esm/types/components/ContactLink/ContactLink.stories.d.ts +7 -0
- package/dist/esm/types/components/ContactLink/index.d.ts +2 -0
- package/dist/esm/types/components/DataTable/DataTable.d.ts +14 -0
- package/dist/esm/types/components/DataTable/DataTable.stories.d.ts +16 -0
- package/dist/esm/types/components/DataTable/index.d.ts +3 -0
- package/dist/esm/types/components/DataTable/locales/deDE.d.ts +6 -0
- package/dist/esm/types/components/DataTable/locales/index.d.ts +7 -0
- package/dist/esm/types/components/DataTable/types.d.ts +127 -0
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +12 -0
- package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +15 -0
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +14 -0
- package/dist/esm/types/components/Experimental/UrlField/UrlField.d.ts +34 -0
- package/dist/esm/types/components/Experimental/UrlField/UrlField.stories.d.ts +6 -0
- package/dist/esm/types/components/Experimental/UrlField/index.d.ts +3 -0
- package/dist/esm/types/components/Fields/makeCustomAddressAutocompleteRHF.d.ts +40 -0
- package/dist/esm/types/components/Fields/makeCustomAutocompleteRHF.d.ts +40 -0
- package/dist/esm/types/components/Fields/makeCustomCheckboxRHF.d.ts +53 -0
- package/dist/esm/types/components/Fields/makeCustomDatePickerRHF.d.ts +22 -0
- package/dist/esm/types/components/Fields/makeCustomInputRHF.d.ts +25 -0
- package/dist/esm/types/components/Fields/makeCustomRadioRHF.d.ts +41 -0
- package/dist/esm/types/components/FieldsetLegend/FieldsetLegend.d.ts +58 -0
- package/dist/esm/types/components/FileUpload/FileUpload.d.ts +23 -0
- package/dist/esm/types/components/FileUpload/FileUpload.stories.d.ts +16 -0
- package/dist/esm/types/components/FileUpload/FileUpload2.d.ts +18 -0
- package/dist/esm/types/components/FileUpload/ShowUploadFiles.d.ts +20 -0
- package/dist/esm/types/components/FileUpload/ShowUploadFiles2.d.ts +19 -0
- package/dist/esm/types/components/FileUpload/UploadField.d.ts +28 -0
- package/dist/esm/types/components/FileUpload/UploadField.stories.d.ts +8 -0
- package/dist/esm/types/components/FileUpload/UploadField2.d.ts +33 -0
- package/dist/esm/types/components/FileUpload/UploadField2.stories.d.ts +10 -0
- package/dist/esm/types/components/FileUpload/types.d.ts +8 -0
- package/dist/esm/types/components/FormControlLabel/FormControlLabel.d.ts +7 -0
- package/dist/esm/types/components/ImageUploadCrop/ImageUploadCrop.d.ts +34 -0
- package/dist/esm/types/components/ImageUploadCrop/ImageUploadCrop.stories.d.ts +6 -0
- package/dist/esm/types/components/ImageUploadCrop/index.d.ts +3 -0
- package/dist/esm/types/components/InfoTooltipIcon/InfoTooltipIcon.d.ts +18 -0
- package/dist/esm/types/components/InfoTooltipIcon/InfoTooltipIcon.stories.d.ts +7 -0
- package/dist/esm/types/components/InfoTooltipIcon/TooltipWrapper.d.ts +35 -0
- package/dist/esm/types/components/InfoTooltipIcon/TooltipWrapper.stories.d.ts +7 -0
- package/dist/esm/types/components/LinkButton/LinkButton.d.ts +16 -0
- package/dist/esm/types/components/LinkButton/LinkButton.stories.d.ts +16 -0
- package/dist/esm/types/components/LocalizationProvider/LocalizationProvider.d.ts +8 -0
- package/dist/esm/types/components/Modal/MnbModal.d.ts +31 -0
- package/dist/esm/types/components/Modal/MnbModal.stories.d.ts +9 -0
- package/dist/esm/types/components/Notification/NotificationExample.d.ts +1 -0
- package/dist/esm/types/components/Notification/NotificationSystem.d.ts +81 -0
- package/dist/esm/types/components/Notification/NotificationTest.d.ts +1 -0
- package/dist/esm/types/components/Notification/ToastContainer.d.ts +182 -0
- package/dist/esm/types/components/PrivacyLink/PrivacyLink.d.ts +13 -0
- package/dist/esm/types/components/PrivacyLink/PrivacyLink.stories.d.ts +6 -0
- package/dist/esm/types/components/Radio/Radio.d.ts +31 -0
- package/dist/esm/types/components/Radio/Radio.stories.d.ts +13 -0
- package/dist/esm/types/components/Radio/RadioWCAG.d.ts +35 -0
- package/dist/esm/types/components/RequiredFieldsInfo/RequiredFieldsInfo.d.ts +34 -0
- package/dist/esm/types/components/RequiredFieldsInfo/RequiredFieldsInfo.stories.d.ts +7 -0
- package/dist/esm/types/components/RichTextEditor/RichTextEditor.d.ts +13 -0
- package/dist/esm/types/components/RichTextEditor/RichTextEditor.stories.d.ts +6 -0
- package/dist/esm/types/components/RichTextEditor/index.d.ts +3 -0
- package/dist/esm/types/components/Select/Select.d.ts +19 -0
- package/dist/esm/types/components/Select/Select.stories.d.ts +14 -0
- package/dist/esm/types/components/StatusTimeline/StatusTimeline.d.ts +38 -0
- package/dist/esm/types/components/StatusTimeline/StatusTimeline.stories.d.ts +7 -0
- package/dist/esm/types/components/StatusTimeline/index.d.ts +3 -0
- package/dist/esm/types/components/SvgIcon/SvgIcon.d.ts +27 -0
- package/dist/esm/types/components/SvgIcon/SvgIcon.stories.d.ts +7 -0
- package/dist/esm/types/components/TextField/TextField.d.ts +6 -0
- package/dist/esm/types/components/TextField/TextField.stories.d.ts +14 -0
- package/dist/esm/types/components/ThemeWrapper/ThemeWrapper.d.ts +9 -0
- package/dist/esm/types/components/UsercentricsAllowScreen/UsercentricsAllowScreen.d.ts +8 -0
- package/dist/esm/types/components/Wizard/NavigateItem.d.ts +28 -0
- package/dist/esm/types/components/Wizard/Wizard.d.ts +30 -0
- package/dist/esm/types/components/Wizard/Wizard.stories.d.ts +7 -0
- package/dist/esm/types/components/Wizard/Wizard.types.d.ts +17 -0
- package/dist/esm/types/components/Wizard/WizardAccessibilityTest.d.ts +1 -0
- package/dist/esm/types/components/Wizard/WizardTest.d.ts +1 -0
- package/dist/esm/types/hooks/useUserCentrics.d.ts +42 -0
- package/dist/esm/types/index.d.ts +95 -0
- package/dist/esm/types/stories/ThemeViewer.stories.d.ts +7 -0
- package/dist/esm/types/stories/decorators.d.ts +2 -0
- package/dist/esm/types/utils/accessibility.d.ts +94 -0
- package/dist/esm/types/utils/createFormField.d.ts +19 -0
- package/dist/esm/types/utils/pdfAccessibilityUtils.d.ts +213 -0
- package/dist/esm/types/utils/utils.d.ts +6 -0
- package/dist/index.d.ts +1777 -0
- package/dist/index.esm.js +29 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/package.json +103 -4
- package/README.md +0 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum IconType {
|
|
2
|
+
Phone = 0,
|
|
3
|
+
Calendar = 1,
|
|
4
|
+
ArrowRight = 2,
|
|
5
|
+
ArrowRightCircle01 = 3,
|
|
6
|
+
ArrowLeftCircle01 = 4,
|
|
7
|
+
ArrowRightCircle = 5,
|
|
8
|
+
ArrowLeftCircle = 6,
|
|
9
|
+
ArrowDownCircle = 7,
|
|
10
|
+
Clock = 8,
|
|
11
|
+
LocationPin = 9,
|
|
12
|
+
EnvelopeAt = 10,
|
|
13
|
+
Check = 11,
|
|
14
|
+
SquareUnchecked = 12,
|
|
15
|
+
SquareChecked = 13
|
|
16
|
+
}
|
|
17
|
+
export interface SvgIconProps {
|
|
18
|
+
type: IconType;
|
|
19
|
+
width?: number;
|
|
20
|
+
height?: number;
|
|
21
|
+
className?: string;
|
|
22
|
+
fill?: string;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
style?: any;
|
|
25
|
+
}
|
|
26
|
+
declare const SvgIcon: ({ type, width, height, className, fill, onClick, style }: SvgIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
export default SvgIcon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import SvgIcon from './SvgIcon';
|
|
3
|
+
declare const meta: Meta<typeof SvgIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SvgIcon>;
|
|
6
|
+
export declare const AllIconTypes: Story;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
export interface MyTextFieldProps extends Omit<TextFieldProps, 'variant'> {
|
|
4
|
+
}
|
|
5
|
+
declare const TextField: React.ForwardRefExoticComponent<(Omit<import("@mui/material").FilledTextFieldProps, "ref"> | Omit<import("@mui/material").StandardTextFieldProps, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps, "ref">) & React.RefAttributes<any>>;
|
|
6
|
+
export default TextField;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import MnbTextField from "./TextField";
|
|
3
|
+
declare const meta: Meta<typeof MnbTextField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MnbTextField>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithValue: Story;
|
|
8
|
+
export declare const Required: Story;
|
|
9
|
+
export declare const WithError: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const Multiline: Story;
|
|
12
|
+
export declare const Password: Story;
|
|
13
|
+
export declare const WithLongLabel: Story;
|
|
14
|
+
export declare const WithCustomHandler: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Theme } from "@mui/material";
|
|
3
|
+
import { ThemeProviderProps } from "@mui/material/styles/ThemeProvider";
|
|
4
|
+
interface ThemeWrapperProps extends Omit<ThemeProviderProps, 'theme'> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
}
|
|
8
|
+
declare const ThemeWrapper: React.FC<ThemeWrapperProps>;
|
|
9
|
+
export default ThemeWrapper;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare module '@mui/material/styles' {
|
|
3
|
+
interface Palette {
|
|
4
|
+
primaryHover?: Palette['primary'];
|
|
5
|
+
focus?: Palette['primary'];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type NavigationItem = {
|
|
9
|
+
title?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
isSubStep?: boolean;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
index: number;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
showActiveStepLabel?: boolean;
|
|
16
|
+
activeStepLabelColor?: string;
|
|
17
|
+
onStepClick?: (step: number) => void;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
totalSteps?: number;
|
|
20
|
+
showActiveStepUnderline?: boolean;
|
|
21
|
+
showActiveStepBoldText?: boolean;
|
|
22
|
+
showActiveStepElevation?: boolean;
|
|
23
|
+
activeStepAriaLabel?: string;
|
|
24
|
+
};
|
|
25
|
+
interface INavigateItemProps extends NavigationItem {
|
|
26
|
+
}
|
|
27
|
+
declare const NavigateItem: React.FC<INavigateItemProps>;
|
|
28
|
+
export default NavigateItem;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IWizardProps } from './Wizard.types';
|
|
3
|
+
/**
|
|
4
|
+
* WCAG 2.1 AA Compliant Wizard Component
|
|
5
|
+
*
|
|
6
|
+
* Provides comprehensive accessibility features:
|
|
7
|
+
* - Proper ARIA attributes for screen readers
|
|
8
|
+
* - Keyboard navigation support (Tab, Enter, Space, Arrow keys)
|
|
9
|
+
* - Semantic HTML structure
|
|
10
|
+
* - Screen reader announcements
|
|
11
|
+
* - Focus management
|
|
12
|
+
* - High contrast support
|
|
13
|
+
* - Reduced motion support
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Default WCAG-compliant wizard
|
|
17
|
+
* <Wizard items={wizardSteps} currentStep={currentStep} onStepClick={handleStepClick} />
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // Custom accessibility options
|
|
21
|
+
* <Wizard
|
|
22
|
+
* items={wizardSteps}
|
|
23
|
+
* currentStep={currentStep}
|
|
24
|
+
* showActiveStepUnderline={false}
|
|
25
|
+
* showActiveStepOuterRing={false}
|
|
26
|
+
* onStepClick={handleStepClick}
|
|
27
|
+
* />
|
|
28
|
+
*/
|
|
29
|
+
declare const Wizard: React.FC<IWizardProps>;
|
|
30
|
+
export default Wizard;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Wizard from "./Wizard";
|
|
3
|
+
declare const meta: Meta<typeof Wizard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Wizard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithCustomOptions: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NavigationItem } from './NavigateItem';
|
|
2
|
+
export interface IWizardProps {
|
|
3
|
+
items: NavigationItem[];
|
|
4
|
+
currentStep: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
showActiveStepLabel?: boolean;
|
|
7
|
+
activeStepLabelColor?: string;
|
|
8
|
+
onStepClick?: (step: number) => void;
|
|
9
|
+
/** Show underline for active step text (default: true) */
|
|
10
|
+
showActiveStepUnderline?: boolean;
|
|
11
|
+
/** Show bold text for active step (default: true) */
|
|
12
|
+
showActiveStepBoldText?: boolean;
|
|
13
|
+
/** Show elevated/shadow effect for active step (default: false) */
|
|
14
|
+
showActiveStepElevation?: boolean;
|
|
15
|
+
/** Custom ARIA label for active step (for screen readers) */
|
|
16
|
+
activeStepAriaLabel?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WizardAccessibilityTest(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WizardTest(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
UC_UI: {
|
|
4
|
+
acceptAllConsents: () => void;
|
|
5
|
+
acceptService: (serviceId: string, explicit?: any) => void;
|
|
6
|
+
acceptServices: (serviceIds: string[], explicit?: any) => void;
|
|
7
|
+
areAllConsentsAccepted: () => boolean;
|
|
8
|
+
clearStorage: () => void;
|
|
9
|
+
closeCMP: () => Promise<void>;
|
|
10
|
+
denyAllConsents: () => void;
|
|
11
|
+
denyAndCloseCcpa: () => Promise<void>;
|
|
12
|
+
enableScriptsForServicesWithConsent: () => void;
|
|
13
|
+
getActiveLanguage: () => string;
|
|
14
|
+
getControllerId: () => string;
|
|
15
|
+
getServicesBaseInfo: () => any[];
|
|
16
|
+
getServicesFullInfo: () => any[];
|
|
17
|
+
getSettingsCore: () => any;
|
|
18
|
+
getSettingsLabels: () => any;
|
|
19
|
+
getSettingsUI: () => any;
|
|
20
|
+
getTCFDisclosedVendorsSegmentString: () => string;
|
|
21
|
+
getTCFVendors: () => any;
|
|
22
|
+
getThirdPartyCount: () => number;
|
|
23
|
+
injectTCString: (tcString: string) => Promise<boolean>;
|
|
24
|
+
isConsentRequired: () => boolean;
|
|
25
|
+
isInitialized: () => boolean;
|
|
26
|
+
rejectService: (serviceId: string, explicit?: any) => void;
|
|
27
|
+
rejectServices: (serviceIds: string[], explicit?: any) => void;
|
|
28
|
+
restartCMP: () => Promise<void>;
|
|
29
|
+
restartEmbeddings: () => Promise<void>;
|
|
30
|
+
restoreUserSession: (session: any) => Promise<void>;
|
|
31
|
+
showFirstLayer: () => Promise<void>;
|
|
32
|
+
showSecondLayer: (options?: any) => void;
|
|
33
|
+
updateChoicesForTcf: (choices: any, tcfData: any) => Promise<void>;
|
|
34
|
+
updateLanguage: (language: string) => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export declare const useUserCentrics: (serviceId: string, bypassCheck?: boolean) => {
|
|
39
|
+
consentStatus: boolean | null;
|
|
40
|
+
isLoaded: boolean;
|
|
41
|
+
checkServiceStatus: () => Promise<boolean | null>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export * from '@mui/material';
|
|
2
|
+
export * from '@mui/types';
|
|
3
|
+
export * as muiLocales from '@mui/material/locale';
|
|
4
|
+
export * from '@mui/material/styles';
|
|
5
|
+
export * from '@mui/x-date-pickers-pro';
|
|
6
|
+
export { AdapterMoment } from '@mui/x-date-pickers-pro/AdapterMoment';
|
|
7
|
+
export * as pickerProLocales from '@mui/x-date-pickers-pro/locales';
|
|
8
|
+
export * as pickerLocales from '@mui/x-date-pickers/locales';
|
|
9
|
+
export * from '@mui/x-data-grid-pro';
|
|
10
|
+
export * as DataGrid from '@mui/x-data-grid';
|
|
11
|
+
export * as gridLocales from '@mui/x-data-grid-pro/locales';
|
|
12
|
+
export * from '@mui/x-license';
|
|
13
|
+
export * as Icons from '@mui/icons-material';
|
|
14
|
+
export * as emotionCache from '@emotion/cache';
|
|
15
|
+
export * as emotionReact from '@emotion/react';
|
|
16
|
+
export * from 'react-hook-form';
|
|
17
|
+
export { LicenseInfo } from '@mui/x-license';
|
|
18
|
+
export { createFormField, type BaseFormFieldProps } from './utils/createFormField';
|
|
19
|
+
export * from './utils/pdfAccessibilityUtils';
|
|
20
|
+
export { makeCustomInputRHF } from './components/Fields/makeCustomInputRHF';
|
|
21
|
+
export { makeCustomCheckboxRHF } from './components/Fields/makeCustomCheckboxRHF';
|
|
22
|
+
export { makeCustomRadioRHF } from './components/Fields/makeCustomRadioRHF';
|
|
23
|
+
export { makeCustomAddressAutocompleteRHF } from './components/Fields/makeCustomAddressAutocompleteRHF';
|
|
24
|
+
export { makeCustomAutocompleteRHF } from './components/Fields/makeCustomAutocompleteRHF';
|
|
25
|
+
export { default as MnbButton } from './components/Button/Button';
|
|
26
|
+
export { default as MnbDropdown } from './components/Dropdown/Dropdown';
|
|
27
|
+
export { default as MnbAutocomplete } from './components/Autocomplete/Autocomplete';
|
|
28
|
+
export { default as MnbAutocompleteOld } from './components/Autocomplete/AutocompleteOld';
|
|
29
|
+
export { default as MnbSelect } from './components/Select/Select';
|
|
30
|
+
export { default as MnbFormControlLabel } from './components/FormControlLabel/FormControlLabel';
|
|
31
|
+
export { default as MnbLocalizationProvider } from './components/LocalizationProvider/LocalizationProvider';
|
|
32
|
+
export { RadioCheckedIcon, RadioIcon } from './components/Radio/Radio';
|
|
33
|
+
export { default as MnbTextField } from './components/TextField/TextField';
|
|
34
|
+
export { default as MnbDatePicker } from './components/DatePicker/DatePicker';
|
|
35
|
+
export { makeCustomDatePickerRHF } from './components/Fields/makeCustomDatePickerRHF';
|
|
36
|
+
export { default as MnbCheckbox } from './components/Checkbox/Checkbox';
|
|
37
|
+
export { default as MnbRadio, RadioGroup as MnbRadioGroup } from './components/Radio/Radio';
|
|
38
|
+
export { RadioWCAG as MnbRadioWCAG, RadioGroupWCAG as MnbRadioGroupWCAG } from './components/Radio/RadioWCAG';
|
|
39
|
+
export { default as MnbThemeWrapper } from './components/ThemeWrapper/ThemeWrapper';
|
|
40
|
+
export { CheckboxIcon as MnbCheckboxIcon, CheckboxCheckedIcon as MnbCheckboxCheckedIcon } from './components/Checkbox/Checkbox';
|
|
41
|
+
export { default as MnbLinkButton } from './components/LinkButton/LinkButton';
|
|
42
|
+
export { default as MnbInfoTooltipIcon } from './components/InfoTooltipIcon/InfoTooltipIcon';
|
|
43
|
+
export { default as MnbTooltipWrapper } from './components/InfoTooltipIcon/TooltipWrapper';
|
|
44
|
+
export type { TooltipPlacement, TooltipSize, IToolTipProps } from './components/InfoTooltipIcon/TooltipWrapper';
|
|
45
|
+
export { default as MnbPrivacyLink } from './components/PrivacyLink/PrivacyLink';
|
|
46
|
+
export { default as MnbContactLink } from './components/ContactLink/ContactLink';
|
|
47
|
+
export { IconType } from './components/SvgIcon/SvgIcon';
|
|
48
|
+
export { default as MnbModal } from './components/Modal/MnbModal';
|
|
49
|
+
export { default as MnbWizard } from './components/Wizard/Wizard';
|
|
50
|
+
export { WizardTest } from './components/Wizard/WizardTest';
|
|
51
|
+
export { WizardAccessibilityTest } from './components/Wizard/WizardAccessibilityTest';
|
|
52
|
+
export { default as MnbDataTable } from './components/DataTable/DataTable';
|
|
53
|
+
export type { IDataTableProps, IDataTableConfig } from './components/DataTable/types';
|
|
54
|
+
export { default as AdminLoginForm } from './components/AdminLoginForm/AdminLoginForm';
|
|
55
|
+
export type { AdminLoginFormProps, AdminLoginFormColors, AdminLoginFormTexts } from './components/AdminLoginForm/AdminLoginForm';
|
|
56
|
+
export { default as MnbStatusTimeline } from './components/StatusTimeline/StatusTimeline';
|
|
57
|
+
export type { StatusTimelineProps, StatusTimelineStep } from './components/StatusTimeline/StatusTimeline';
|
|
58
|
+
export { default as MnbRichTextEditor } from './components/RichTextEditor/RichTextEditor';
|
|
59
|
+
export type { IRichTextEditorProps } from './components/RichTextEditor/RichTextEditor';
|
|
60
|
+
export { default as MnbImageUploadCrop } from './components/ImageUploadCrop/ImageUploadCrop';
|
|
61
|
+
export type { ImageUploadCropProps } from './components/ImageUploadCrop/ImageUploadCrop';
|
|
62
|
+
export * from './components/ConfigContext';
|
|
63
|
+
export { default as MnbNotificationProvider, NotificationProvider, useNotification, type Notification } from './components/Notification/NotificationSystem';
|
|
64
|
+
export { NotificationTest } from './components/Notification/NotificationTest';
|
|
65
|
+
export { NotificationExample } from './components/Notification/NotificationExample';
|
|
66
|
+
export { default as MnbToastContainer, AccessibleCloseButton, Success, Error, Info, SuccessToast, ErrorToast, InfoToast } from './components/Notification/ToastContainer';
|
|
67
|
+
export { default as RequiredFieldsInfo } from './components/RequiredFieldsInfo/RequiredFieldsInfo';
|
|
68
|
+
export { default as MnbFieldsetLegend } from './components/FieldsetLegend/FieldsetLegend';
|
|
69
|
+
export { CaptchaWidget } from './components/Captcha/CaptchaWidget';
|
|
70
|
+
export { CaptchaExample } from './components/Captcha/CaptchaExample';
|
|
71
|
+
export { CaptchaTest } from './components/Captcha/CaptchaTest';
|
|
72
|
+
export { ValidationTest } from './components/Captcha/ValidationTest';
|
|
73
|
+
export { ComprehensiveTest } from './components/Captcha/ComprehensiveTest';
|
|
74
|
+
export { SimpleValidationTest } from './components/Captcha/SimpleValidationTest';
|
|
75
|
+
export { FinalValidationTest } from './components/Captcha/FinalValidationTest';
|
|
76
|
+
export { SubmitOnlyValidationTest } from './components/Captcha/SubmitOnlyValidationTest';
|
|
77
|
+
export { CaptchaWidgetTest } from './components/Captcha/CaptchaWidgetTest';
|
|
78
|
+
export { CaptchaDebugTest } from './components/Captcha/CaptchaDebugTest';
|
|
79
|
+
export { CaptchaAccessibilityTest } from './components/Captcha/CaptchaAccessibilityTest';
|
|
80
|
+
export { useCaptchaToken } from './components/Captcha/hooks/useCaptchaToken';
|
|
81
|
+
export { useCaptchaForm } from './components/Captcha/hooks/useCaptchaForm';
|
|
82
|
+
export { useCaptchaValidation } from './components/Captcha/hooks/useCaptchaValidation';
|
|
83
|
+
export type { MTCaptchaConfig, MTCaptchaAPI } from './components/Captcha/types/captcha';
|
|
84
|
+
export { useUserCentrics } from './hooks/useUserCentrics';
|
|
85
|
+
export { UsercentricsAllowScreen } from './components/UsercentricsAllowScreen/UsercentricsAllowScreen';
|
|
86
|
+
/** @deprecated Use FileUpload2 instead */
|
|
87
|
+
export { default as FileUpload } from './components/FileUpload/FileUpload';
|
|
88
|
+
/** @deprecated Use UploadField2 instead */
|
|
89
|
+
export { default as UploadField } from './components/FileUpload/UploadField';
|
|
90
|
+
/** @deprecated Use ShowUploadFiles2 instead */
|
|
91
|
+
export { default as ShowUploadFiles } from './components/FileUpload/ShowUploadFiles';
|
|
92
|
+
export { default as FileUpload2 } from './components/FileUpload/FileUpload2';
|
|
93
|
+
export { default as UploadField2 } from './components/FileUpload/UploadField2';
|
|
94
|
+
export { default as ShowUploadFiles2 } from './components/FileUpload/ShowUploadFiles2';
|
|
95
|
+
export type { IFile } from './components/FileUpload/types';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const ThemeViewer: React.FC;
|
|
4
|
+
declare const meta: Meta<typeof ThemeViewer>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof ThemeViewer>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormHelperTextProps } from '@mui/material';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
export declare const EDISCOM_BRAND_KEY = "ediscom";
|
|
5
|
+
export declare const EDISCOM_REQUIRED_LABEL_COLOR = "#5c5c5c";
|
|
6
|
+
export declare const EDISCOM_ERROR_COLOR = "#e63121";
|
|
7
|
+
export declare const EDISCOM_DISABLED_OPACITY = 0.6;
|
|
8
|
+
export declare const EDISCOM_DISABLED_BORDER_COLOR = "rgb(51, 109.4, 148.6)";
|
|
9
|
+
export declare const EDISCOM_DISABLED_BACKGROUND_COLOR = "#ffffff";
|
|
10
|
+
export declare const EDISCOM_ERROR_ICON_SIZE = 15;
|
|
11
|
+
export declare const EDISCOM_ERROR_ICON_WIDTH = 15;
|
|
12
|
+
export declare const EDISCOM_ERROR_ICON_HEIGHT = 15;
|
|
13
|
+
export declare const EDISCOM_ERROR_ICON_GAP = 6;
|
|
14
|
+
export declare const EDISCOM_REQUIRED_INPUT_MESSAGE = "Bitte f\u00FCllen Sie das Feld aus.";
|
|
15
|
+
export declare const EDISCOM_REQUIRED_SELECT_MESSAGE = "Bitte w\u00E4hlen Sie eine M\u00F6glichkeit aus!";
|
|
16
|
+
export type EdiscomRequiredErrorKind = 'input' | 'select';
|
|
17
|
+
export declare const isEdiscomTheme: (theme?: {
|
|
18
|
+
brandKey?: string;
|
|
19
|
+
}) => boolean;
|
|
20
|
+
export declare const getRequiredFieldErrorMessage: (kind: EdiscomRequiredErrorKind, theme?: {
|
|
21
|
+
brandKey?: string;
|
|
22
|
+
}, label?: string | React.ReactNode) => string;
|
|
23
|
+
export declare const ediscomHelperContentClassName = "mnb-ediscom-helper-content";
|
|
24
|
+
export declare const ediscomHelperTextClassName = "mnb-ediscom-helper-text";
|
|
25
|
+
export declare const ediscomErrorIconWrapClassName = "mnb-ediscom-error-icon-wrap";
|
|
26
|
+
/** Shared grid layout for error icon + message (theme CssBaseline + component sx). */
|
|
27
|
+
export declare const ediscomHelperLayoutSx: {
|
|
28
|
+
readonly "& .mnb-ediscom-helper-content": {
|
|
29
|
+
readonly display: "grid";
|
|
30
|
+
readonly gridTemplateColumns: "15px minmax(0, 1fr)";
|
|
31
|
+
readonly columnGap: "6px";
|
|
32
|
+
readonly alignItems: "start";
|
|
33
|
+
readonly width: "100%";
|
|
34
|
+
readonly margin: 0;
|
|
35
|
+
};
|
|
36
|
+
readonly "& .mnb-ediscom-error-icon-wrap": {
|
|
37
|
+
readonly gridColumn: "1";
|
|
38
|
+
readonly gridRow: "1";
|
|
39
|
+
readonly width: "15px";
|
|
40
|
+
readonly height: "15px";
|
|
41
|
+
readonly lineHeight: 0;
|
|
42
|
+
readonly marginTop: "3px";
|
|
43
|
+
};
|
|
44
|
+
readonly "& .mnb-ediscom-error-icon": {
|
|
45
|
+
readonly display: "block";
|
|
46
|
+
readonly width: "15px";
|
|
47
|
+
readonly height: "15px";
|
|
48
|
+
};
|
|
49
|
+
readonly "& .mnb-ediscom-helper-text": {
|
|
50
|
+
readonly gridColumn: "2";
|
|
51
|
+
readonly gridRow: "1";
|
|
52
|
+
readonly minWidth: 0;
|
|
53
|
+
readonly whiteSpace: "pre-line";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const ediscomFormHelperTextSx: {
|
|
57
|
+
readonly "& .mnb-ediscom-helper-content": {
|
|
58
|
+
readonly display: "grid";
|
|
59
|
+
readonly gridTemplateColumns: "15px minmax(0, 1fr)";
|
|
60
|
+
readonly columnGap: "6px";
|
|
61
|
+
readonly alignItems: "start";
|
|
62
|
+
readonly width: "100%";
|
|
63
|
+
readonly margin: 0;
|
|
64
|
+
};
|
|
65
|
+
readonly "& .mnb-ediscom-error-icon-wrap": {
|
|
66
|
+
readonly gridColumn: "1";
|
|
67
|
+
readonly gridRow: "1";
|
|
68
|
+
readonly width: "15px";
|
|
69
|
+
readonly height: "15px";
|
|
70
|
+
readonly lineHeight: 0;
|
|
71
|
+
readonly marginTop: "3px";
|
|
72
|
+
};
|
|
73
|
+
readonly "& .mnb-ediscom-error-icon": {
|
|
74
|
+
readonly display: "block";
|
|
75
|
+
readonly width: "15px";
|
|
76
|
+
readonly height: "15px";
|
|
77
|
+
};
|
|
78
|
+
readonly "& .mnb-ediscom-helper-text": {
|
|
79
|
+
readonly gridColumn: "2";
|
|
80
|
+
readonly gridRow: "1";
|
|
81
|
+
readonly minWidth: 0;
|
|
82
|
+
readonly whiteSpace: "pre-line";
|
|
83
|
+
};
|
|
84
|
+
readonly display: "block";
|
|
85
|
+
readonly marginLeft: 0;
|
|
86
|
+
readonly marginTop: "4px";
|
|
87
|
+
};
|
|
88
|
+
export declare const EdiscomErrorIcon: React.FC;
|
|
89
|
+
export declare const formatEdiscomHelperText: (helperText: React.ReactNode) => React.ReactNode;
|
|
90
|
+
export type EdiscomFormHelperTextProps = FormHelperTextProps & {
|
|
91
|
+
showValidationError?: boolean;
|
|
92
|
+
};
|
|
93
|
+
export declare const EdiscomFormHelperText: React.ForwardRefExoticComponent<Omit<EdiscomFormHelperTextProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
94
|
+
export declare const getAccessibleLabel: (label: string | React.ReactNode, required?: boolean, theme?: Pick<Theme, "brandKey" | "palette">) => React.ReactNode;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldValues, Path, RegisterOptions, Control } from 'react-hook-form';
|
|
3
|
+
export interface BaseFormFieldProps<T extends FieldValues = FieldValues> {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
rules?: RegisterOptions<T, Path<T>>;
|
|
9
|
+
config?: RegisterOptions<T, Path<T>>;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
/** Pass this when you’re NOT using FormProvider */
|
|
12
|
+
control?: Control<T>;
|
|
13
|
+
}
|
|
14
|
+
export declare function createFormField<T extends FieldValues, P extends {}>(render: (args: {
|
|
15
|
+
field: any;
|
|
16
|
+
fieldState: any;
|
|
17
|
+
formState: any;
|
|
18
|
+
props: BaseFormFieldProps<T> & Omit<P, 'name'>;
|
|
19
|
+
}) => React.ReactNode): React.FC<BaseFormFieldProps<T> & Omit<P, "name">>;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PDF Accessibility Utilities Module
|
|
3
|
+
*
|
|
4
|
+
* A flexible, configurable module for improving PDF accessibility when using jsPDF.
|
|
5
|
+
* Designed to be shared across projects in the mnb-framework.
|
|
6
|
+
*
|
|
7
|
+
* WARNING: This module provides LIMITED accessibility improvements for PDFs generated with jsPDF.
|
|
8
|
+
* It does NOT create true PDF tags (structure tree) required for WCAG/PDF-UA compliance.
|
|
9
|
+
*
|
|
10
|
+
* What this module DOES:
|
|
11
|
+
* - Adds invisible semantic text hints that screen readers can read
|
|
12
|
+
* - Provides bookmark/outline tracking for navigation
|
|
13
|
+
* - Enhances document metadata (language, title, etc.)
|
|
14
|
+
* - Supports German language with customizable announcements
|
|
15
|
+
* - Configurable visual settings (font size, color, position)
|
|
16
|
+
*
|
|
17
|
+
* What this module DOES NOT do:
|
|
18
|
+
* - Create PDF structure tree (/StructTreeRoot)
|
|
19
|
+
* - Enable heading navigation shortcuts in screen readers
|
|
20
|
+
* - Provide table cell navigation
|
|
21
|
+
* - Make PDFs WCAG/PDF-UA compliant
|
|
22
|
+
*
|
|
23
|
+
* LIMITATIONS:
|
|
24
|
+
* 1. Invisible text may still be selectable/copyable in some PDF viewers
|
|
25
|
+
* 2. Light gray text becomes visible if PDF is printed in grayscale
|
|
26
|
+
* 3. Bookmarks require jsPDF version with outline API support
|
|
27
|
+
* 4. This is a workaround, not a true accessibility solution
|
|
28
|
+
*
|
|
29
|
+
* For true WCAG compliance, use server-side PDF generation with libraries that support
|
|
30
|
+
* tagged PDFs (e.g., iText, pdfbox, etc.)
|
|
31
|
+
*/
|
|
32
|
+
import { jsPDF } from 'jspdf';
|
|
33
|
+
/**
|
|
34
|
+
* Type for semantic element types that can be announced
|
|
35
|
+
*/
|
|
36
|
+
export type SemanticType = 'heading' | 'section' | 'table' | 'list' | 'paragraph' | 'checkbox' | 'radio';
|
|
37
|
+
/**
|
|
38
|
+
* Interface for tracking bookmarks/sections
|
|
39
|
+
*/
|
|
40
|
+
export interface BookmarkEntry {
|
|
41
|
+
name: string;
|
|
42
|
+
page: number;
|
|
43
|
+
level?: number;
|
|
44
|
+
parent?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Language-specific text mappings for semantic announcements (German only)
|
|
48
|
+
*/
|
|
49
|
+
export interface LanguageTexts {
|
|
50
|
+
heading: (level: number, label?: string) => string;
|
|
51
|
+
section: (label?: string) => string;
|
|
52
|
+
table: (label?: string) => string;
|
|
53
|
+
list: (label?: string) => string;
|
|
54
|
+
paragraph: (label?: string) => string;
|
|
55
|
+
checkbox: (label?: string, checked?: boolean) => string;
|
|
56
|
+
radio: (label?: string, selected?: boolean) => string;
|
|
57
|
+
labelValueList: string;
|
|
58
|
+
checkboxChecked: string;
|
|
59
|
+
checkboxUnchecked: string;
|
|
60
|
+
radioSelected: string;
|
|
61
|
+
radioUnselected: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Character sanitization function type
|
|
65
|
+
*/
|
|
66
|
+
export type CharacterSanitizer = (text: string) => string;
|
|
67
|
+
/**
|
|
68
|
+
* Predefined character sanitizers
|
|
69
|
+
*/
|
|
70
|
+
export declare const CharacterSanitizers: Record<string, CharacterSanitizer>;
|
|
71
|
+
/**
|
|
72
|
+
* Configuration for PDF accessibility utilities
|
|
73
|
+
*/
|
|
74
|
+
export interface PdfAccessibilityConfig {
|
|
75
|
+
/**
|
|
76
|
+
* Custom language texts (overrides predefined if provided)
|
|
77
|
+
*/
|
|
78
|
+
languageTexts?: Partial<LanguageTexts>;
|
|
79
|
+
/**
|
|
80
|
+
* Character sanitizer function for PDF metadata
|
|
81
|
+
* Default: german sanitizer (converts umlauts to ASCII)
|
|
82
|
+
*/
|
|
83
|
+
characterSanitizer?: CharacterSanitizer;
|
|
84
|
+
/**
|
|
85
|
+
* Font size for invisible semantic hints (in points)
|
|
86
|
+
* Default: 2 (minimum recommended for accessible PDFs)
|
|
87
|
+
*/
|
|
88
|
+
semanticHintFontSize?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Text color for invisible semantic hints (RGB values 0-255)
|
|
91
|
+
* Default: [250, 250, 250] (very light gray)
|
|
92
|
+
*/
|
|
93
|
+
semanticHintColor?: [number, number, number];
|
|
94
|
+
/**
|
|
95
|
+
* Y-position offset for semantic hints (in mm)
|
|
96
|
+
* Negative values place hint above visible text
|
|
97
|
+
* Default: -0.5
|
|
98
|
+
*/
|
|
99
|
+
semanticHintPositionOffset?: number;
|
|
100
|
+
/**
|
|
101
|
+
* X-position (margin left) for semantic hints (in mm)
|
|
102
|
+
* If not provided, uses doc's current margin or 10mm
|
|
103
|
+
*/
|
|
104
|
+
semanticHintMarginLeft?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Enable/disable semantic hints
|
|
107
|
+
* Default: true
|
|
108
|
+
*/
|
|
109
|
+
enableSemanticHints?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Enable/disable bookmarks
|
|
112
|
+
* Default: true
|
|
113
|
+
*/
|
|
114
|
+
enableBookmarks?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Enable/disable metadata enhancement
|
|
117
|
+
* Default: true
|
|
118
|
+
*/
|
|
119
|
+
enableMetadata?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Class to track document structure for bookmarks
|
|
123
|
+
*/
|
|
124
|
+
export declare class BookmarkTracker {
|
|
125
|
+
private bookmarks;
|
|
126
|
+
private currentPage;
|
|
127
|
+
/**
|
|
128
|
+
* Add a bookmark entry
|
|
129
|
+
*/
|
|
130
|
+
addBookmark(name: string, page: number, level?: number, parent?: string): void;
|
|
131
|
+
/**
|
|
132
|
+
* Get current page
|
|
133
|
+
* @deprecated This method is not used effectively. Page numbers should be passed directly to addBookmark.
|
|
134
|
+
*/
|
|
135
|
+
getCurrentPage(): number;
|
|
136
|
+
/**
|
|
137
|
+
* Get all bookmarks
|
|
138
|
+
*/
|
|
139
|
+
getBookmarks(): BookmarkEntry[];
|
|
140
|
+
/**
|
|
141
|
+
* Clear all bookmarks
|
|
142
|
+
*/
|
|
143
|
+
clear(): void;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Main class for PDF accessibility utilities
|
|
147
|
+
*/
|
|
148
|
+
export declare class PdfAccessibilityUtils {
|
|
149
|
+
private config;
|
|
150
|
+
private languageTexts;
|
|
151
|
+
constructor(config?: PdfAccessibilityConfig);
|
|
152
|
+
/**
|
|
153
|
+
* Get current configuration
|
|
154
|
+
*/
|
|
155
|
+
getConfig(): Required<PdfAccessibilityConfig>;
|
|
156
|
+
/**
|
|
157
|
+
* Update configuration
|
|
158
|
+
*/
|
|
159
|
+
updateConfig(updates: Partial<PdfAccessibilityConfig>): void;
|
|
160
|
+
/**
|
|
161
|
+
* Adds invisible semantic hint text that screen readers can read
|
|
162
|
+
*/
|
|
163
|
+
addInvisibleSemanticHint(doc: jsPDF, currentPos: number, semanticType: SemanticType, level?: number, label?: string, additionalData?: {
|
|
164
|
+
checked?: boolean;
|
|
165
|
+
selected?: boolean;
|
|
166
|
+
}): number;
|
|
167
|
+
/**
|
|
168
|
+
* Adds bookmarks/outline to PDF document
|
|
169
|
+
*
|
|
170
|
+
* @param rootTitle - Optional root bookmark title. If not provided or empty, no root bookmark is created
|
|
171
|
+
* and top-level bookmarks are added directly to the outline.
|
|
172
|
+
*/
|
|
173
|
+
addBookmarksToPdf(doc: jsPDF, tracker: BookmarkTracker, rootTitle?: string | null): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Enhances PDF document properties with accessibility metadata
|
|
176
|
+
*/
|
|
177
|
+
setAccessiblePdfProperties(doc: jsPDF, title: string, subject: string, author: string, keywords: string, creator: string, language?: string): void;
|
|
178
|
+
/**
|
|
179
|
+
* Convenience methods for common semantic hints
|
|
180
|
+
*/
|
|
181
|
+
addHeadingSemanticHint(doc: jsPDF, pos: number, headingText: string, level?: number): number;
|
|
182
|
+
addTableSemanticHint(doc: jsPDF, pos: number, tableDescription: string): number;
|
|
183
|
+
addLabelValueListSemanticHint(doc: jsPDF, pos: number): number;
|
|
184
|
+
addCheckboxSemanticHint(doc: jsPDF, pos: number, checkboxLabel: string, checked: boolean): number;
|
|
185
|
+
addRadioSemanticHint(doc: jsPDF, pos: number, radioLabel: string, selected: boolean): number;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Default instance with German configuration (for backward compatibility)
|
|
189
|
+
*/
|
|
190
|
+
export declare const defaultPdfAccessibilityUtils: PdfAccessibilityUtils;
|
|
191
|
+
/**
|
|
192
|
+
* Convenience exports using default instance (for backward compatibility)
|
|
193
|
+
* Note: BookmarkTracker is already exported as a class above
|
|
194
|
+
*/
|
|
195
|
+
export declare const addInvisibleSemanticHint: (doc: jsPDF, currentPos: number, semanticType: SemanticType, level?: number, label?: string, additionalData?: {
|
|
196
|
+
checked?: boolean;
|
|
197
|
+
selected?: boolean;
|
|
198
|
+
}) => number;
|
|
199
|
+
export declare const addBookmarksToPdf: (doc: jsPDF, tracker: BookmarkTracker, rootTitle?: string | null) => boolean;
|
|
200
|
+
export declare const setAccessiblePdfProperties: (doc: jsPDF, title: string, subject: string, author: string, keywords: string, creator: string, language?: string) => void;
|
|
201
|
+
export declare const addHeadingSemanticHint: (doc: jsPDF, pos: number, headingText: string, level?: number) => number;
|
|
202
|
+
export declare const addTableSemanticHint: (doc: jsPDF, pos: number, tableDescription: string) => number;
|
|
203
|
+
export declare const addLabelValueListSemanticHint: (doc: jsPDF, pos: number) => number;
|
|
204
|
+
export declare const addCheckboxSemanticHint: (doc: jsPDF, pos: number, checkboxLabel: string, checked: boolean) => number;
|
|
205
|
+
export declare const addRadioSemanticHint: (doc: jsPDF, pos: number, radioLabel: string, selected: boolean) => number;
|
|
206
|
+
/**
|
|
207
|
+
* Validates that accessibility features are working
|
|
208
|
+
*/
|
|
209
|
+
export declare const validateAccessibilityFeatures: (doc: jsPDF) => {
|
|
210
|
+
outlineSupported: boolean;
|
|
211
|
+
propertiesSet: boolean;
|
|
212
|
+
warnings: string[];
|
|
213
|
+
};
|