@aarhus-university/au-lib-react-components 10.3.3 → 10.6.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/.eslintrc.js +34 -44
- package/.storybook/main.js +8 -0
- package/{types/common/payloads.d.ts → .storybook/preview-head.html} +0 -0
- package/.storybook/preview.js +11 -0
- package/README.md +19 -19
- package/__tests__/jest/AUButtonComponent.test.tsx +163 -0
- package/__tests__/jest/AUSpinnerComponent.test.tsx +57 -0
- package/__tests__/jest/helpers.test.ts +15 -0
- package/__tests__/jest/setupTests.ts +2 -0
- package/babel.config.js +8 -7
- package/build/umd/all.css +2 -2
- package/build/umd/all.js +1 -1
- package/build/umd/alphabox.js +1 -1
- package/build/umd/alphabox.js.map +1 -1
- package/build/umd/databox.js +1 -1
- package/build/umd/databox.js.map +1 -1
- package/build/umd/diagramme.js +1 -1
- package/build/umd/diagramme.js.map +1 -1
- package/build/umd/flowbox.js +1 -1
- package/build/umd/flowbox.js.map +1 -1
- package/build/umd/universe.js +1 -1
- package/build/umd/universe.js.map +1 -1
- package/package.json +107 -66
- package/src/components/AUAlertComponent.tsx +70 -70
- package/src/components/AUAutoSuggestComponent.js +158 -158
- package/src/components/AUButtonComponent.tsx +77 -0
- package/src/components/AUCalendarComponent.tsx +493 -493
- package/src/components/AUContentToggleComponent.tsx +33 -33
- package/src/components/AUDatepickerComponent.tsx +117 -117
- package/src/components/AUMobilePrefixComponent.tsx +15 -15
- package/src/components/AUModalComponent.tsx +80 -80
- package/src/components/AUReceiptComponent.tsx +33 -33
- package/src/components/AUSpinnerComponent.tsx +33 -91
- package/src/components/AUSubNavComponent.tsx +48 -48
- package/src/components/AUSubmitButtonContainerComponent.tsx +31 -31
- package/src/components/AUTabbedContentComponent.tsx +145 -145
- package/src/components/AUTableComponent.tsx +24 -24
- package/src/components/AUToastComponent.tsx +103 -103
- package/src/components/AUToolbarComponent.tsx +45 -45
- package/src/components/profile/AUProfileActions.js +128 -128
- package/src/components/profile/AUProfileAvatarComponent.js +83 -83
- package/src/components/profile/AUProfileAvatarV2Component.js +91 -91
- package/src/components/profile/AUProfileAvatarV3Component.tsx +42 -42
- package/src/components/profile/AUProfileContainerComponent.js +283 -283
- package/src/components/profile/AUProfileHooks.js +30 -30
- package/src/components/profile/AUProfileItemComponent.js +54 -54
- package/src/components/profile/AUProfileLanguageComponent.js +131 -131
- package/src/components/profile/AUProfileLoginComponent.tsx +26 -26
- package/src/components/profile/AUProfileMailComponent.js +307 -307
- package/src/components/profile/AUProfileMobileComponent.js +164 -164
- package/src/components/profile/AUProfileNameComponent.js +253 -253
- package/src/components/profile/AUProfileNextOfKinComponent.js +216 -216
- package/src/components/profile/AUProfileReducer.js +230 -230
- package/src/components/profile/AUProfileWidgetComponent.js +95 -95
- package/src/components/profile/AUProfileWidgetV2Component.js +116 -116
- package/src/components/profile/AUProfileWidgetV3Component.tsx +122 -122
- package/src/components/wrapping/AUEmbedComponent.js +47 -47
- package/src/layout-2016/components/alphabox/AlphaBoxComponent.js +143 -143
- package/src/layout-2016/components/alphabox/AlphaBoxContentComponent.js +136 -136
- package/src/layout-2016/components/common/AUCollapsibleComponent.js +152 -152
- package/src/layout-2016/components/common/AUSpinnerComponent.js +103 -103
- package/src/layout-2016/components/databox/DataBoxAlphabetComponent.js +144 -144
- package/src/layout-2016/components/databox/DataBoxAssociationComponent.js +122 -122
- package/src/layout-2016/components/databox/DataBoxButtonComponent.js +157 -157
- package/src/layout-2016/components/databox/DataBoxComponent.js +297 -297
- package/src/layout-2016/components/databox/DataBoxGroupingComponent.js +64 -64
- package/src/layout-2016/components/databox/DataBoxSearchResultComponent.js +36 -36
- package/src/layout-2016/components/databox/DataBoxStackedAssociationComponent.js +54 -54
- package/src/layout-2016/components/databox/DataBoxSuggestionComponent.js +39 -39
- package/src/layout-2016/components/diagramme/AUDiagrammeComponent.js +309 -309
- package/src/layout-2016/components/flowbox/FlowBoxComponent.js +126 -126
- package/src/layout-2016/components/flowbox/FlowBoxPhoneComponent.js +104 -104
- package/src/layout-2016/components/profile/AUProfileAvatar2016Component.js +103 -103
- package/src/layout-2016/components/universe/StaffTopComponent.js +363 -363
- package/src/layout-2016/components/universe/StudentTopComponent.js +137 -137
- package/src/layout-2016/components/universe/UniverseContainerComponent.js +65 -65
- package/src/layout-2016/lib/all.js +3 -3
- package/src/layout-2016/lib/au-alphabox.js +100 -100
- package/src/layout-2016/lib/au-databox.js +400 -400
- package/src/layout-2016/lib/au-diagramme.js +85 -85
- package/src/layout-2016/lib/au-flowbox.js +93 -93
- package/src/layout-2016/lib/universe.js +9 -9
- package/src/lib/helpers.ts +194 -194
- package/src/lib/hooks.ts +33 -33
- package/src/lib/i18n.ts +600 -600
- package/src/lib/tracking.ts +69 -69
- package/src/lib/wrapping.ts +21 -21
- package/src/styles/_settings.scss +10 -10
- package/src/styles/alphabox.scss +222 -222
- package/src/styles/app.scss +7 -7
- package/src/styles/autosuggest.scss +57 -57
- package/src/styles/databox.scss +563 -563
- package/src/styles/diagramme.scss +119 -119
- package/src/styles/flowbox.scss +72 -72
- package/src/styles/maps.scss +395 -395
- package/stories/AUButtonComponent.stories.tsx +86 -0
- package/stories/AUSpinnerComponent.stories.tsx +41 -0
- package/stories/assets/code-brackets.svg +1 -0
- package/stories/assets/colors.svg +1 -0
- package/stories/assets/comments.svg +1 -0
- package/stories/assets/direction.svg +1 -0
- package/stories/assets/flow.svg +1 -0
- package/stories/assets/plugin.svg +1 -0
- package/stories/assets/repo.svg +1 -0
- package/stories/assets/stackalt.svg +1 -0
- package/tsconfig.json +46 -46
- package/webpack.config.js +89 -89
- package/types/common/delphinus-duplicates.d.ts +0 -40
- package/types/common/interfaces/gui.d.ts +0 -52
- package/types/common/interfaces/model.d.ts +0 -29
- package/types/common/main.d.ts +0 -6
- package/types/common/package.json +0 -5
- package/types/common/props.d.ts +0 -166
package/types/common/props.d.ts
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
interface AUAlertComponentProps {
|
|
2
|
-
message: string,
|
|
3
|
-
children: JSX.Element,
|
|
4
|
-
alert: boolean,
|
|
5
|
-
buttons?: IAlertButton[],
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface AUCalendarComponentProps {
|
|
9
|
-
lang?: string,
|
|
10
|
-
day: number,
|
|
11
|
-
month: number,
|
|
12
|
-
year: number,
|
|
13
|
-
hour: number,
|
|
14
|
-
minute: number,
|
|
15
|
-
selected?: Date,
|
|
16
|
-
onSelected: (selected: Date) => void,
|
|
17
|
-
highlightWeekend?: boolean,
|
|
18
|
-
highlightHolidays?: boolean,
|
|
19
|
-
yearSpanMinus?: number,
|
|
20
|
-
yearSpanPlus?: number,
|
|
21
|
-
minuteInterval?: number,
|
|
22
|
-
showTime?: boolean,
|
|
23
|
-
closeable?: boolean,
|
|
24
|
-
onClose?: () => void,
|
|
25
|
-
limitStart?: Date | null,
|
|
26
|
-
limitEnd?: Date | null,
|
|
27
|
-
controls: string,
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface AUContentToggleComponentProps {
|
|
31
|
-
toggled: boolean,
|
|
32
|
-
classNames?: string | undefined,
|
|
33
|
-
children: JSX.Element,
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface AUDatepickerComponentProps {
|
|
37
|
-
id: string;
|
|
38
|
-
lang?: string;
|
|
39
|
-
date?: Date;
|
|
40
|
-
onDateChange: (date: Date, formatted: string) => void;
|
|
41
|
-
onHide: (date: Date, dateFormatted: string) => void;
|
|
42
|
-
format?: string;
|
|
43
|
-
showTime?: boolean;
|
|
44
|
-
showLabel?: boolean;
|
|
45
|
-
labelInline?: boolean;
|
|
46
|
-
labelText?: string;
|
|
47
|
-
fullWidth?: boolean;
|
|
48
|
-
yearSpanMinus?: number;
|
|
49
|
-
yearSpanPlus?: number;
|
|
50
|
-
limitStart?: Date | null;
|
|
51
|
-
limitEnd?: Date | null;
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface AUModalComponentProps {
|
|
56
|
-
domId: string,
|
|
57
|
-
children?: JSX.Element,
|
|
58
|
-
onClose?: () => void,
|
|
59
|
-
closeButton?: boolean,
|
|
60
|
-
closeButtonDisabled?: boolean,
|
|
61
|
-
lang?: string,
|
|
62
|
-
sender: HTMLElement | null,
|
|
63
|
-
className?: string,
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface AUSpinnerComponentProps {
|
|
67
|
-
domID?: string,
|
|
68
|
-
className?: string,
|
|
69
|
-
children: JSX.Element,
|
|
70
|
-
visible?: boolean,
|
|
71
|
-
loaded: boolean,
|
|
72
|
-
loadingCondition: boolean,
|
|
73
|
-
height?: string,
|
|
74
|
-
init?: string,
|
|
75
|
-
onLoad: () => void,
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface AUSubNavComponentProps {
|
|
79
|
-
children: JSX.Element,
|
|
80
|
-
className: string,
|
|
81
|
-
dataIcon: string,
|
|
82
|
-
text: string,
|
|
83
|
-
ariaLabel: string,
|
|
84
|
-
id: string,
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface AUTableComponentProps {
|
|
88
|
-
children: JSX.Element,
|
|
89
|
-
className: string,
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface TabRoutesProps {
|
|
93
|
-
onRouteChange: (location: any) => void, // Noget react-router-dom halløj her der ikke spiller...
|
|
94
|
-
content: JSX.Element[],
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
interface AUTabbedContentComponentProps {
|
|
98
|
-
tabKey?: number,
|
|
99
|
-
tabs: ITabbedTab[],
|
|
100
|
-
tabContent?: ITabbedObject[] | null,
|
|
101
|
-
children?: JSX.Element | null,
|
|
102
|
-
focus?: boolean,
|
|
103
|
-
initial?: number,
|
|
104
|
-
lang?: string,
|
|
105
|
-
callback?: () => void,
|
|
106
|
-
withRouter?: boolean,
|
|
107
|
-
classNames?: string,
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface AUToastComponentProps {
|
|
111
|
-
message: IToastMessage,
|
|
112
|
-
buttonText?: string,
|
|
113
|
-
dismiss?: () => void,
|
|
114
|
-
onOpen?: () => void,
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
interface AUToolbarComponentProps {
|
|
118
|
-
lang: string,
|
|
119
|
-
elements: JSX.Element[],
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface AUSubmitButtonContainerComponentProps {
|
|
123
|
-
lang: string,
|
|
124
|
-
disabled: boolean,
|
|
125
|
-
onSubmit: () => void,
|
|
126
|
-
onCancel: () => void,
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
interface AUMobilePrefixComponentProps {
|
|
130
|
-
countryCodes: AU.ICountryCode[],
|
|
131
|
-
important: boolean,
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
interface AUReceiptComponentProps {
|
|
135
|
-
receiptText: string,
|
|
136
|
-
helpText: JSX.Element | null,
|
|
137
|
-
showGoTo: boolean,
|
|
138
|
-
buttons: IReceiptButton[],
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface AUProfileWidgetComponentProps {
|
|
142
|
-
lang: string,
|
|
143
|
-
name: string,
|
|
144
|
-
auId: number,
|
|
145
|
-
studentNumber?: string,
|
|
146
|
-
settings: IProfileSettings[],
|
|
147
|
-
changeLanguageUri: string,
|
|
148
|
-
logoutUri: string,
|
|
149
|
-
profileLabels: any, // Noget med labels her?
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface AUProfileAvatarComponentProps {
|
|
153
|
-
user: AU.IUserContext,
|
|
154
|
-
settings: IProfileSettings[],
|
|
155
|
-
profileLabels: any, // Noget med labels her?
|
|
156
|
-
logoutUri: string,
|
|
157
|
-
changeLanguageUri?: string,
|
|
158
|
-
lang: string,
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface AUProfileLoginComponentProps {
|
|
162
|
-
loggedIn: boolean,
|
|
163
|
-
loginUri: string,
|
|
164
|
-
children: JSX.Element,
|
|
165
|
-
text: string,
|
|
166
|
-
}
|