@aarhus-university/au-lib-react-components 9.11.17 → 9.12.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 +18 -18
- package/README.md +20 -20
- package/babel.config.js +6 -6
- package/build/dev.html +328 -328
- package/build/umd/all.css +2 -2
- package/build/umd/all.css.map +1 -1
- 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/auAuth.js +1 -1
- package/build/umd/auAuth.js.map +1 -1
- package/build/umd/databox.js +2 -2
- package/build/umd/databox.js.LICENSE.txt +5 -5
- package/build/umd/databox.js.map +1 -1
- package/build/umd/diagramme.js +1 -1
- package/build/umd/flowbox.js +1 -1
- package/build/umd/flowbox.js.map +1 -1
- package/build/umd/news.js +1 -1
- package/build/umd/news.js.map +1 -1
- package/build/umd/universe.js +1 -1
- package/build/umd/universe.js.map +1 -1
- package/package.json +60 -60
- package/src/all.js +3 -3
- package/src/app.js +263 -263
- package/src/components/AUAlertComponent.js +158 -158
- package/src/components/AUAmountComponent.js +84 -84
- package/src/components/AUBannerComponent.js +99 -99
- package/src/components/AUCalendarComponent.js +393 -393
- package/src/components/AUCollapsibleComponent.js +173 -173
- package/src/components/AUDatepickerComponent.js +105 -105
- package/src/components/AUDiagrammeComponent.js +310 -310
- package/src/components/AUFilterCheckboxComponent.js +122 -122
- package/src/components/AUFocusComponent.js +55 -55
- package/src/components/AUModalComponent.js +94 -94
- package/src/components/AUPaginationComponent.js +103 -103
- package/src/components/AUSpinnerComponent.js +125 -125
- package/src/components/AutoSuggestComponent.js +157 -132
- package/src/components/alphabox/AlphaBoxComponent.js +145 -140
- package/src/components/alphabox/AlphaBoxContentComponent.js +136 -125
- package/src/components/context/AUUserContextComponent.js +91 -91
- package/src/components/context/ImpersonateComponent.js +54 -54
- package/src/components/databox/DataBoxAlphabetComponent.js +144 -144
- package/src/components/databox/DataBoxAssociationComponent.js +122 -122
- package/src/components/databox/DataBoxButtonComponent.js +153 -153
- package/src/components/databox/DataBoxComponent.js +297 -297
- package/src/components/databox/DataBoxGroupingComponent.js +62 -62
- package/src/components/databox/DataBoxSearchResultComponent.js +40 -40
- package/src/components/databox/DataBoxStackedAssociationComponent.js +58 -58
- package/src/components/databox/DataBoxSuggestionComponent.js +39 -39
- package/src/components/delphinus/AUAlertComponent.js +85 -85
- package/src/components/delphinus/AUCalendarComponent.js +487 -487
- package/src/components/delphinus/AUContentToggleComponent.js +32 -32
- package/src/components/delphinus/AUDatepickerComponent.js +164 -164
- package/src/components/delphinus/AULoginComponent.js +65 -65
- package/src/components/delphinus/AUModalComponent.js +94 -94
- package/src/components/delphinus/AUSpinnerComponent.js +114 -114
- package/src/components/delphinus/AUSubNavComponent.js +53 -53
- package/src/components/delphinus/AUTabbedContentComponent.js +150 -150
- package/src/components/delphinus/AUTableComponent.js +28 -28
- package/src/components/delphinus/AUToastComponent.js +91 -91
- package/src/components/delphinus/AUToolbarComponent.js +48 -48
- package/src/components/delphinus/hooks.js +28 -28
- package/src/components/flowbox/FlowBoxComponent.js +126 -126
- package/src/components/flowbox/FlowBoxPhoneComponent.js +106 -106
- package/src/components/form/AUMobilePrefixComponent.js +18 -18
- package/src/components/form/AUReceiptComponent.js +40 -40
- package/src/components/form/AUSubmitButtonContainerComponent.js +39 -39
- package/src/components/news/EventLayout1Component.js +94 -94
- package/src/components/news/EventLayout2Component.js +90 -90
- package/src/components/news/EventLayout3Component.js +68 -68
- package/src/components/news/NewsCategoriesComponent.js +21 -21
- package/src/components/news/NewsCollageBannerComponent.js +71 -71
- package/src/components/news/NewsCollageBannerRSSComponent.js +79 -79
- package/src/components/news/NewsColumnsComponent.js +125 -125
- package/src/components/news/NewsLanguageChangeComponent.js +74 -74
- package/src/components/news/NewsLayout1Component.js +80 -80
- package/src/components/news/NewsLayout2Component.js +80 -80
- package/src/components/news/NewsLayout3Component.js +81 -81
- package/src/components/news/NewsLayout4Component.js +80 -80
- package/src/components/news/NewsLayout5Component.js +61 -61
- package/src/components/news/NewsLayout6Component.js +55 -55
- package/src/components/news/NewsLayout7Component.js +58 -58
- package/src/components/news/NewsLayout8Component.js +57 -57
- package/src/components/news/NewsListComponent.js +291 -291
- package/src/components/news/NewsPopUpComponent.js +591 -591
- package/src/components/news/NewsRSSComponent.js +74 -74
- package/src/components/news/NewsSocialComponent.js +104 -104
- package/src/components/news/NewsSubHeaderComponent.js +19 -19
- package/src/components/password/AUChangePasswordComponent.js +190 -177
- package/src/components/password/AUCurrentPasswordComponent.js +72 -72
- package/src/components/password/AUNewPasswordComponent.js +143 -143
- package/src/components/password/AUPasswordActions.js +101 -101
- package/src/components/password/AUPasswordHooks.js +47 -47
- package/src/components/password/AUPasswordReducer.js +78 -78
- package/src/components/password/AUPasswordRequirementsComponent.js +29 -29
- package/src/components/profile/AUProfileActions.js +128 -128
- package/src/components/profile/AUProfileAvatar2016Component.js +99 -99
- package/src/components/profile/AUProfileAvatarComponent.js +83 -83
- package/src/components/profile/AUProfileAvatarV2Component.js +91 -91
- package/src/components/profile/AUProfileAvatarV3Component.js +80 -80
- 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.js +41 -41
- 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.js +130 -130
- package/src/components/universe/StaffTopComponent.js +362 -362
- package/src/components/universe/StudentTopComponent.js +137 -137
- package/src/components/universe/UniverseContainerComponent.js +62 -62
- package/src/components/wrapping/AUEmbedComponent.js +47 -47
- package/src/config/webpack.dev.config.js +47 -47
- package/src/config/webpack.umd.config.js +86 -85
- package/src/index.js +6 -6
- package/src/lib/au-alphabox.js +102 -102
- package/src/lib/au-auth.js +227 -227
- package/src/lib/au-databox.js +403 -403
- package/src/lib/au-diagramme.js +87 -87
- package/src/lib/au-flowbox.js +95 -95
- package/src/lib/au-news.js +371 -371
- package/src/lib/helpers.js +222 -216
- package/src/lib/i18n.js +603 -601
- package/src/lib/menu.js +10 -10
- package/src/lib/tracking.js +65 -65
- package/src/lib/universe.js +9 -9
- package/src/lib/urlHandler.js +63 -63
- package/src/lib/validation.js +219 -181
- package/src/lib/wrapping.js +16 -16
- package/src/styles/_settings.scss +10 -10
- package/src/styles/alert.scss +39 -39
- package/src/styles/alphabox.scss +222 -208
- package/src/styles/app.scss +13 -13
- package/src/styles/autosuggest.scss +57 -57
- package/src/styles/calendar.scss +111 -111
- package/src/styles/databox.scss +563 -563
- package/src/styles/diagramme.scss +119 -119
- package/src/styles/filtercheckbox.scss +4 -4
- package/src/styles/flowbox.scss +72 -72
- package/src/styles/maps.scss +395 -395
- package/src/styles/modal.scss +34 -34
- package/src/styles/pagination.scss +10 -10
- package/src/styles/spinner.scss +30 -30
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
{ loader: '
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
+
const ESLintPlugin = require('eslint-webpack-plugin');
|
|
3
|
+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
// https://github.com/webpack/webpack/issues/4453
|
|
7
|
+
|
|
8
|
+
const entries = {
|
|
9
|
+
all: './src/all',
|
|
10
|
+
alphabox: './src/lib/au-alphabox',
|
|
11
|
+
databox: './src/lib/au-databox',
|
|
12
|
+
diagramme: './src/lib/au-diagramme',
|
|
13
|
+
flowbox: './src/lib/au-flowbox',
|
|
14
|
+
news: './src/lib/au-news',
|
|
15
|
+
universe: './src/lib/universe',
|
|
16
|
+
auAuth: './src/lib/au-auth',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
module.exports = Object.entries(entries).map((entry) => ({
|
|
20
|
+
mode: 'production',
|
|
21
|
+
devtool: 'source-map',
|
|
22
|
+
entry: {
|
|
23
|
+
[entry[0]]: entry[1],
|
|
24
|
+
},
|
|
25
|
+
output: {
|
|
26
|
+
path: path.resolve(__dirname, '../../build/umd'),
|
|
27
|
+
filename: '[name].js',
|
|
28
|
+
libraryTarget: 'umd', // https://webpack.js.org/configuration/output/#output-librarytarget
|
|
29
|
+
},
|
|
30
|
+
plugins: [
|
|
31
|
+
new ESLintPlugin({
|
|
32
|
+
fix: true,
|
|
33
|
+
}),
|
|
34
|
+
new MiniCssExtractPlugin({
|
|
35
|
+
filename: 'all.css',
|
|
36
|
+
chunkFilename: '[id].css',
|
|
37
|
+
}),
|
|
38
|
+
],
|
|
39
|
+
module: {
|
|
40
|
+
rules: [
|
|
41
|
+
{
|
|
42
|
+
test: /\.js$/,
|
|
43
|
+
include: path.resolve(__dirname, '..'),
|
|
44
|
+
use: {
|
|
45
|
+
loader: 'babel-loader',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
test: /\.js$/,
|
|
50
|
+
include: path.resolve(__dirname, '../../node_modules/@aarhus-university/au-designsystem-delphinus/source'),
|
|
51
|
+
use: {
|
|
52
|
+
loader: 'babel-loader',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
test: /\.scss/,
|
|
57
|
+
include: path.resolve(__dirname, '..'),
|
|
58
|
+
sideEffects: true,
|
|
59
|
+
use: [
|
|
60
|
+
MiniCssExtractPlugin.loader,
|
|
61
|
+
{ loader: 'css-loader' },
|
|
62
|
+
{ loader: 'sass-loader' },
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
externals: {
|
|
68
|
+
axios: 'axios',
|
|
69
|
+
moment: 'moment',
|
|
70
|
+
react: {
|
|
71
|
+
root: 'React',
|
|
72
|
+
commonjs2: 'react',
|
|
73
|
+
commonjs: 'react',
|
|
74
|
+
amd: 'react',
|
|
75
|
+
umd: 'react',
|
|
76
|
+
},
|
|
77
|
+
'react-dom': {
|
|
78
|
+
root: 'ReactDOM',
|
|
79
|
+
commonjs2: 'react-dom',
|
|
80
|
+
commonjs: 'react-dom',
|
|
81
|
+
amd: 'react-dom',
|
|
82
|
+
umd: 'react-dom',
|
|
83
|
+
},
|
|
84
|
+
DISQUS: 'DISQUS',
|
|
85
|
+
},
|
|
86
|
+
}));
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* eslint-env browser */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
|
-
import App from './app';
|
|
5
|
-
|
|
6
|
-
ReactDOM.render(<App />, document.getElementById('components'));
|
|
1
|
+
/* eslint-env browser */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
4
|
+
import App from './app';
|
|
5
|
+
|
|
6
|
+
ReactDOM.render(<App />, document.getElementById('components'));
|
package/src/lib/au-alphabox.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
/* eslint no-prototype-builtins: 0 */
|
|
2
|
-
/* eslint no-restricted-syntax: 0 */
|
|
3
|
-
/* eslint no-unused-vars: 0 */
|
|
4
|
-
/* eslint-env browser */
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import ReactDOM from 'react-dom';
|
|
7
|
-
import AlphaBoxComponent from '../components/alphabox/AlphaBoxComponent';
|
|
8
|
-
|
|
9
|
-
const defaultOptions = {
|
|
10
|
-
config: {
|
|
11
|
-
title: '',
|
|
12
|
-
url: '',
|
|
13
|
-
description: '',
|
|
14
|
-
container: '.au_alphabox',
|
|
15
|
-
tracking: '/virtual/alphabox/',
|
|
16
|
-
links: [
|
|
17
|
-
{ title: 'Link 1', url: 'http://www.au.dk' },
|
|
18
|
-
{ title: 'Link 2', url: 'http://www.au.dk' },
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
search: {
|
|
22
|
-
minLength: 1,
|
|
23
|
-
placeHolder: '',
|
|
24
|
-
},
|
|
25
|
-
background: {
|
|
26
|
-
color: '#003e5c',
|
|
27
|
-
linkColor: '#379fcb',
|
|
28
|
-
},
|
|
29
|
-
data: {
|
|
30
|
-
mode: 'json',
|
|
31
|
-
itemsOnly: false,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
class AUAlphabox {
|
|
36
|
-
constructor(boxes) {
|
|
37
|
-
this.boxes = boxes;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
static mergeOptions(_box) {
|
|
41
|
-
const box = _box;
|
|
42
|
-
if (!box.hasOwnProperty('config')) {
|
|
43
|
-
box.config = {};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
for (const conf in defaultOptions.config) {
|
|
47
|
-
if (!box.config.hasOwnProperty(conf)) {
|
|
48
|
-
box.config[conf] = defaultOptions.config[conf];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (!box.hasOwnProperty('background')) {
|
|
53
|
-
box.background = {};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
for (const bg in defaultOptions.background) {
|
|
57
|
-
if (!box.background.hasOwnProperty(bg)) {
|
|
58
|
-
box.background[bg] = defaultOptions.background[bg];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (!box.hasOwnProperty('search')) {
|
|
63
|
-
box.search = {};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
for (const sch in defaultOptions.search) {
|
|
67
|
-
if (!box.search.hasOwnProperty(sch)) {
|
|
68
|
-
box.search[sch] = defaultOptions.search[sch];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (!box.hasOwnProperty('data')) {
|
|
73
|
-
box.data = {};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
for (const data in defaultOptions.data) {
|
|
77
|
-
if (!box.data.hasOwnProperty(data)) {
|
|
78
|
-
box.data[data] = defaultOptions.data[data];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
init() {
|
|
84
|
-
for (let i = 0; i < this.boxes.length; i += 1) {
|
|
85
|
-
const box = this.boxes[i];
|
|
86
|
-
if (!box.loaded) {
|
|
87
|
-
box.id = i;
|
|
88
|
-
AUAlphabox.mergeOptions(box);
|
|
89
|
-
const mountNode = document.querySelector(box.config.container);
|
|
90
|
-
const visible = mountNode && getComputedStyle(mountNode).visibility !== 'hidden';
|
|
91
|
-
if (visible) {
|
|
92
|
-
ReactDOM.render(
|
|
93
|
-
<AlphaBoxComponent box={box} />, mountNode,
|
|
94
|
-
);
|
|
95
|
-
box.loaded = true;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
window.AUAlphabox = AUAlphabox;
|
|
1
|
+
/* eslint no-prototype-builtins: 0 */
|
|
2
|
+
/* eslint no-restricted-syntax: 0 */
|
|
3
|
+
/* eslint no-unused-vars: 0 */
|
|
4
|
+
/* eslint-env browser */
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import ReactDOM from 'react-dom';
|
|
7
|
+
import AlphaBoxComponent from '../components/alphabox/AlphaBoxComponent';
|
|
8
|
+
|
|
9
|
+
const defaultOptions = {
|
|
10
|
+
config: {
|
|
11
|
+
title: '',
|
|
12
|
+
url: '',
|
|
13
|
+
description: '',
|
|
14
|
+
container: '.au_alphabox',
|
|
15
|
+
tracking: '/virtual/alphabox/',
|
|
16
|
+
links: [
|
|
17
|
+
{ title: 'Link 1', url: 'http://www.au.dk' },
|
|
18
|
+
{ title: 'Link 2', url: 'http://www.au.dk' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
search: {
|
|
22
|
+
minLength: 1,
|
|
23
|
+
placeHolder: '',
|
|
24
|
+
},
|
|
25
|
+
background: {
|
|
26
|
+
color: '#003e5c',
|
|
27
|
+
linkColor: '#379fcb',
|
|
28
|
+
},
|
|
29
|
+
data: {
|
|
30
|
+
mode: 'json',
|
|
31
|
+
itemsOnly: false,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
class AUAlphabox {
|
|
36
|
+
constructor(boxes) {
|
|
37
|
+
this.boxes = boxes;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static mergeOptions(_box) {
|
|
41
|
+
const box = _box;
|
|
42
|
+
if (!box.hasOwnProperty('config')) {
|
|
43
|
+
box.config = {};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
for (const conf in defaultOptions.config) {
|
|
47
|
+
if (!box.config.hasOwnProperty(conf)) {
|
|
48
|
+
box.config[conf] = defaultOptions.config[conf];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (!box.hasOwnProperty('background')) {
|
|
53
|
+
box.background = {};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
for (const bg in defaultOptions.background) {
|
|
57
|
+
if (!box.background.hasOwnProperty(bg)) {
|
|
58
|
+
box.background[bg] = defaultOptions.background[bg];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (!box.hasOwnProperty('search')) {
|
|
63
|
+
box.search = {};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
for (const sch in defaultOptions.search) {
|
|
67
|
+
if (!box.search.hasOwnProperty(sch)) {
|
|
68
|
+
box.search[sch] = defaultOptions.search[sch];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (!box.hasOwnProperty('data')) {
|
|
73
|
+
box.data = {};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
for (const data in defaultOptions.data) {
|
|
77
|
+
if (!box.data.hasOwnProperty(data)) {
|
|
78
|
+
box.data[data] = defaultOptions.data[data];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
init() {
|
|
84
|
+
for (let i = 0; i < this.boxes.length; i += 1) {
|
|
85
|
+
const box = this.boxes[i];
|
|
86
|
+
if (!box.loaded) {
|
|
87
|
+
box.id = i;
|
|
88
|
+
AUAlphabox.mergeOptions(box);
|
|
89
|
+
const mountNode = document.querySelector(box.config.container);
|
|
90
|
+
const visible = mountNode && getComputedStyle(mountNode).visibility !== 'hidden';
|
|
91
|
+
if (visible) {
|
|
92
|
+
ReactDOM.render(
|
|
93
|
+
<AlphaBoxComponent box={box} />, mountNode,
|
|
94
|
+
);
|
|
95
|
+
box.loaded = true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
window.AUAlphabox = AUAlphabox;
|