@daoyi/nmtl-ui 2.0.1-beta.126 → 2.0.1-beta.128
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/lib/components/{ContactModal-ac82e7a6.js → ContactModal-7e5b14e8.js} +2 -2
- package/lib/components/ContactModal.js +3 -3
- package/lib/components/{Drawer-48414c2e.js → Drawer-629e59c7.js} +1 -1
- package/lib/components/Drawer.js +3 -3
- package/lib/components/{ExtraTools-0f9ca8be.js → ExtraTools-2691c13e.js} +126 -88
- package/lib/components/ExtraTools.js +2 -1
- package/lib/components/Footer.js +3 -3
- package/lib/components/{ForwardLink-fec856b3.js → ForwardLink-5fbd2705.js} +14 -2
- package/lib/components/ForwardLink.js +1 -1
- package/lib/components/Header.js +2 -2
- package/lib/components/KeywordTicker.js +1 -1
- package/lib/components/Keywords.js +1 -1
- package/lib/components/{Modal-b62ff592.js → Modal-e04532fa.js} +18 -7
- package/lib/components/Modal.js +1 -1
- package/lib/components/SNA.js +18 -25
- package/lib/components/{Select-141d7992.js → Select-cb3e1ba1.js} +47 -11
- package/lib/components/Select.js +2 -1
- package/lib/components/globalConfig.js +127 -3
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/lib/utils/{_rollupPluginBabelHelpers-8dd26e1a.js → _rollupPluginBabelHelpers-9802e640.js} +1 -1
- package/lib/utils/arrayMerge.js +1 -1
- package/lib/utils/exportXlsx.js +57 -71
- package/lib/utils/historyAppendSearch.js +1 -1
- package/lib/utils/snaPreProcess.js +1 -1
- package/package.json +134 -125
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
2
|
import { c as classNames } from './index-b76a85f4.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Dialog, DialogTitle, IconButton, DialogContent, DialogActions, CircularProgress } from '@material-ui/core';
|
|
@@ -11,6 +11,8 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
11
11
|
var css_248z = ".modal__title h2 {\n display: flex;\n align-items: center;\n}\n.modal__title__text {\n flex: 1;\n font-size: 1rem;\n padding: 8px 0;\n color: inherit;\n}\n.modal__title__close {\n cursor: pointer;\n color: inherit;\n}\n.modal--transparent .MuiPaper-root {\n background: transparent !important;\n box-shadow: none;\n}\n.modal--transparent .modal__title {\n background: transparent !important;\n}";
|
|
12
12
|
styleInject(css_248z);
|
|
13
13
|
|
|
14
|
+
/* 每個 Modal 實例需要唯一 id,才能把標題和 role="dialog" 綁起來 */
|
|
15
|
+
var modalSeq = 0;
|
|
14
16
|
var Modal = function Modal(props) {
|
|
15
17
|
var className = props.className,
|
|
16
18
|
title = props.title,
|
|
@@ -28,6 +30,16 @@ var Modal = function Modal(props) {
|
|
|
28
30
|
var endIcon = loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
29
31
|
size: 14
|
|
30
32
|
});
|
|
33
|
+
|
|
34
|
+
/* WCAG 4.1.2 對話框需有可及名稱。MUI Dialog 只把 aria-labelledby 轉給
|
|
35
|
+
role="dialog" 的那層 Paper;aria-label 會被歸進 ...other 掛到外層 Modal
|
|
36
|
+
容器上,讀屏開啟時等於沒名字,故改用 aria-labelledby 指向標題文字。 */
|
|
37
|
+
var titleIdRef = useRef(null);
|
|
38
|
+
if (!titleIdRef.current) {
|
|
39
|
+
modalSeq += 1;
|
|
40
|
+
titleIdRef.current = "nmtl-modal-".concat(modalSeq, "-title");
|
|
41
|
+
}
|
|
42
|
+
var titleId = titleIdRef.current;
|
|
31
43
|
return /*#__PURE__*/React__default.createElement(Dialog, {
|
|
32
44
|
className: classNames('modal', {
|
|
33
45
|
'modal--transparent': transparent
|
|
@@ -36,15 +48,15 @@ var Modal = function Modal(props) {
|
|
|
36
48
|
open: visible || false,
|
|
37
49
|
onClose: function onClose() {
|
|
38
50
|
return closable && onCancel();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
,
|
|
42
|
-
"aria-label": typeof title === 'string' ? title : undefined
|
|
51
|
+
},
|
|
52
|
+
"aria-labelledby": title ? titleId : undefined
|
|
43
53
|
}, /*#__PURE__*/React__default.createElement(DialogTitle, {
|
|
44
54
|
className: "modal__title"
|
|
45
55
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
56
|
+
id: titleId,
|
|
46
57
|
className: "modal__title__text"
|
|
47
58
|
}, title), closable && /*#__PURE__*/React__default.createElement(IconButton, {
|
|
59
|
+
autoFocus: true,
|
|
48
60
|
"aria-label": getIntl().formatMessage({
|
|
49
61
|
id: 'aria.modal.close'
|
|
50
62
|
}),
|
|
@@ -63,8 +75,7 @@ var Modal = function Modal(props) {
|
|
|
63
75
|
onClick: onOk,
|
|
64
76
|
color: "primary",
|
|
65
77
|
endIcon: endIcon,
|
|
66
|
-
disabled: loading
|
|
67
|
-
autoFocus: true
|
|
78
|
+
disabled: loading
|
|
68
79
|
}, okText)) : footer));
|
|
69
80
|
};
|
|
70
81
|
Modal.defaultProps = {
|
package/lib/components/Modal.js
CHANGED
package/lib/components/SNA.js
CHANGED
|
@@ -2,7 +2,8 @@ import React__default, { useMemo, useEffect } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { c as classNames } from './index-b76a85f4.js';
|
|
4
4
|
import { e as event, d as d3Select, a as dispatch, c as customEvent, D as DragEvent, q as quadtree, m as map, t as timer, T as Transform, i as identity, b as interrupt, o as ordinal, f as category10 } from './transform-3a04288b.js';
|
|
5
|
-
import { E as ExtraTools } from './ExtraTools-
|
|
5
|
+
import { E as ExtraTools } from './ExtraTools-2691c13e.js';
|
|
6
|
+
import { getIntl } from './globalConfig';
|
|
6
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
8
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
8
9
|
import './_commonjsHelpers-70de2c37.js';
|
|
@@ -1417,12 +1418,18 @@ var SNA = function SNA(props) {
|
|
|
1417
1418
|
backgroundColor = props.backgroundColor,
|
|
1418
1419
|
iconColor = props.iconColor;
|
|
1419
1420
|
var g;
|
|
1421
|
+
/* 元件內部字串:有傳 intl 就沿用,沒傳就走套件自帶的 getIntl();原本沒傳時落在寫死的中文(nmtl-web i18n 盤點 D3) */
|
|
1422
|
+
var translateText = function translateText(id) {
|
|
1423
|
+
return intl ? intl.formatMessage({
|
|
1424
|
+
id: id
|
|
1425
|
+
}) : getIntl().formatMessage({
|
|
1426
|
+
id: id
|
|
1427
|
+
});
|
|
1428
|
+
};
|
|
1420
1429
|
if (!SNAData || SNAData.nodes.length === 0) {
|
|
1421
1430
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1422
1431
|
className: "noData"
|
|
1423
|
-
},
|
|
1424
|
-
id: 'common.noData'
|
|
1425
|
-
}) : '暫無資料');
|
|
1432
|
+
}, translateText('common.noData'));
|
|
1426
1433
|
}
|
|
1427
1434
|
var contentWidth = useMemo(function () {
|
|
1428
1435
|
return screen.width > 1050 ? width : screen.width - 80;
|
|
@@ -1434,39 +1441,25 @@ var SNA = function SNA(props) {
|
|
|
1434
1441
|
switch (type) {
|
|
1435
1442
|
case 'mainNode':
|
|
1436
1443
|
// 主要搜尋中心
|
|
1437
|
-
return
|
|
1438
|
-
id: 'SNA.search.center'
|
|
1439
|
-
}) : '主要搜尋中心';
|
|
1444
|
+
return translateText('SNA.search.center');
|
|
1440
1445
|
case 'organization':
|
|
1441
1446
|
// 組織
|
|
1442
|
-
return
|
|
1443
|
-
id: 'SNA.organization'
|
|
1444
|
-
}) : '組織';
|
|
1447
|
+
return translateText('SNA.organization');
|
|
1445
1448
|
case 'person':
|
|
1446
1449
|
// 作家
|
|
1447
|
-
return
|
|
1448
|
-
id: 'SNA.author'
|
|
1449
|
-
}) : '作家';
|
|
1450
|
+
return translateText('SNA.author');
|
|
1450
1451
|
case 'publication':
|
|
1451
1452
|
// 著作
|
|
1452
|
-
return
|
|
1453
|
-
id: 'SNA.publication'
|
|
1454
|
-
}) : '作家';
|
|
1453
|
+
return translateText('SNA.publication');
|
|
1455
1454
|
case 'article':
|
|
1456
1455
|
// 單篇作品
|
|
1457
|
-
return
|
|
1458
|
-
id: 'SNA.article'
|
|
1459
|
-
}) : '單篇作品';
|
|
1456
|
+
return translateText('SNA.article');
|
|
1460
1457
|
case 'keyword':
|
|
1461
1458
|
// 關鍵字
|
|
1462
|
-
return
|
|
1463
|
-
id: 'SNA.keyword'
|
|
1464
|
-
}) : '關鍵字';
|
|
1459
|
+
return translateText('SNA.keyword');
|
|
1465
1460
|
case 'event':
|
|
1466
1461
|
// 事件
|
|
1467
|
-
return
|
|
1468
|
-
id: 'SNA.event'
|
|
1469
|
-
}) : '事件';
|
|
1462
|
+
return translateText('SNA.event');
|
|
1470
1463
|
default:
|
|
1471
1464
|
return '';
|
|
1472
1465
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
|
-
import React__default from 'react';
|
|
2
|
+
import React__default, { useRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classNames } from './index-b76a85f4.js';
|
|
5
5
|
import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@material-ui/core';
|
|
@@ -9,11 +9,24 @@ import '@material-ui/styles';
|
|
|
9
9
|
import { u as useTheme } from './useTheme-d16d02d9.js';
|
|
10
10
|
import './withTheme-2d778133.js';
|
|
11
11
|
import { E as Empty } from './Empty-c6a44967.js';
|
|
12
|
+
import { getIntl } from './globalConfig';
|
|
12
13
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
13
14
|
|
|
14
15
|
var css_248z = ".select .MuiSelect-nativeInput {\n visibility: hidden;\n}\n.select__placeholder {\n color: #6b6130;\n}\n.select--small {\n width: 100%;\n}\n.select--small .MuiSelect-root {\n padding: 0.5rem 1.5rem 0.25rem;\n color: white;\n}\n.select--small .MuiSelect-root .select__placeholder {\n color: white;\n}\n.select--small .MuiSelect-root:hover, .select--small .MuiSelect-root:focus {\n background: transparent;\n}\n.select--small .MuiSvgIcon-root {\n color: white;\n}\n.select--small .MuiOutlinedInput-root {\n border-radius: 45px;\n}";
|
|
15
16
|
styleInject(css_248z);
|
|
16
17
|
|
|
18
|
+
/* 視覺隱藏的可及名稱容器(不依賴各站的 .visually-hidden) */
|
|
19
|
+
var hiddenLabelStyle = {
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
width: 1,
|
|
22
|
+
height: 1,
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
25
|
+
whiteSpace: 'nowrap'
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/* 每個 Select 實例需要唯一 id 才能做 aria-labelledby 串接 */
|
|
29
|
+
var selectSeq = 0;
|
|
17
30
|
var Select = function Select(props) {
|
|
18
31
|
var style = props.style,
|
|
19
32
|
className = props.className,
|
|
@@ -24,13 +37,18 @@ var Select = function Select(props) {
|
|
|
24
37
|
variantSmall = props.variantSmall,
|
|
25
38
|
background = props.background,
|
|
26
39
|
menuItemClass = props.menuItemClass;
|
|
40
|
+
/* 未指定 placeholder 時走套件 i18n(原本寫死英文 'Please select...',
|
|
41
|
+
中文語系也照唸英文,走查回饋 5a) */
|
|
42
|
+
var placeholderText = placeholder === undefined ? getIntl().formatMessage({
|
|
43
|
+
id: 'common.select.placeholder'
|
|
44
|
+
}) : placeholder;
|
|
27
45
|
var options = props.options,
|
|
28
46
|
value = props.value,
|
|
29
47
|
defaultValue = props.defaultValue,
|
|
30
48
|
_onChange = props.onChange,
|
|
31
49
|
ariaLabel = props.ariaLabel,
|
|
32
50
|
ariaLabelledby = props.ariaLabelledby;
|
|
33
|
-
/* WCAG 1.4.3 提示字顏色依主題深淺自動選色:select.scss 的 #6b6130 只適用淺底,
|
|
51
|
+
/* WCAG 1.4.3 提示字顏色依主題深淺自動選色:select.scss 的 #6b6130 只適用淺底,
|
|
34
52
|
深色主題(palette.type=dark,如 ocean 深色 Modal)需改亮灰(WAVE 實測「請輸入 年齡」被抓) */
|
|
35
53
|
var theme = useTheme();
|
|
36
54
|
var placeholderStyle = theme && theme.palette && theme.palette.type === 'dark' ? {
|
|
@@ -41,24 +59,42 @@ var Select = function Select(props) {
|
|
|
41
59
|
return _typeof(option) === 'object' ? key === option.value : key === option;
|
|
42
60
|
}) || key;
|
|
43
61
|
};
|
|
62
|
+
|
|
63
|
+
/* WCAG 4.1.2/3.3.2 可及名稱=「這個選單是做什麼的」+「目前選了什麼」。
|
|
64
|
+
直接掛 aria-label 會整個蓋掉顯示層的選中值文字(讀屏只唸得出用途、唸不出選了誰),
|
|
65
|
+
故改採 MUI 原生作法:把用途文字放進視覺隱藏的 label 元素,
|
|
66
|
+
再以 aria-labelledby="<label id> <顯示層 id>" 串起來(走查回饋 5a)。 */
|
|
67
|
+
var uidRef = useRef(null);
|
|
68
|
+
if (!uidRef.current) {
|
|
69
|
+
selectSeq += 1;
|
|
70
|
+
uidRef.current = "nmtl-select-".concat(selectSeq);
|
|
71
|
+
}
|
|
72
|
+
var uid = uidRef.current;
|
|
73
|
+
var buttonId = "".concat(uid, "-value");
|
|
74
|
+
var useHiddenLabel = Boolean(ariaLabel) && !ariaLabelledby;
|
|
75
|
+
// eslint-disable-next-line no-nested-ternary
|
|
76
|
+
var labelledby = ariaLabelledby ? "".concat(ariaLabelledby, " ").concat(buttonId) : useHiddenLabel ? "".concat(uid, "-label ").concat(buttonId) : undefined;
|
|
44
77
|
return /*#__PURE__*/React__default.createElement(FormControl, {
|
|
45
78
|
className: classNames('select', {
|
|
46
79
|
'select--small': variantSmall
|
|
47
80
|
}, className),
|
|
48
81
|
variant: "outlined"
|
|
49
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
82
|
+
}, useHiddenLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
83
|
+
id: "".concat(uid, "-label"),
|
|
84
|
+
style: hiddenLabelStyle
|
|
85
|
+
}, ariaLabel), /*#__PURE__*/React__default.createElement(Select$1, {
|
|
50
86
|
style: _objectSpread2(_objectSpread2({}, style || {}), {}, {
|
|
51
87
|
background: background
|
|
52
88
|
}),
|
|
53
89
|
displayEmpty: true,
|
|
54
90
|
disabled: disabled || loading
|
|
55
|
-
// WCAG 3.3.2
|
|
56
|
-
//
|
|
91
|
+
// WCAG 3.3.2 可及名稱:未提供 ariaLabel/ariaLabelledby 時,顯示層(role=button)
|
|
92
|
+
// 以其文字內容(選中值/placeholder)為名稱;有提供時改為「用途 + 選中值」(見上方 labelledby)。
|
|
57
93
|
// 隱藏原生 input 由 select.scss 的 visibility:hidden 讓檢測工具略過,無需再標 label。
|
|
58
94
|
,
|
|
59
95
|
SelectDisplayProps: {
|
|
60
|
-
|
|
61
|
-
'aria-
|
|
96
|
+
id: buttonId,
|
|
97
|
+
'aria-labelledby': labelledby
|
|
62
98
|
},
|
|
63
99
|
renderValue: function renderValue(id) {
|
|
64
100
|
var finder = itemFind(id);
|
|
@@ -73,7 +109,7 @@ var Select = function Select(props) {
|
|
|
73
109
|
content = /*#__PURE__*/React__default.createElement("span", {
|
|
74
110
|
className: "select__placeholder",
|
|
75
111
|
style: placeholderStyle
|
|
76
|
-
},
|
|
112
|
+
}, placeholderText);
|
|
77
113
|
}
|
|
78
114
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, content, loading && /*#__PURE__*/React__default.createElement(CircularProgress, {
|
|
79
115
|
size: 16,
|
|
@@ -109,7 +145,7 @@ Select.defaultProps = {
|
|
|
109
145
|
labelInValue: undefined,
|
|
110
146
|
disabled: undefined,
|
|
111
147
|
loading: undefined,
|
|
112
|
-
placeholder:
|
|
148
|
+
placeholder: undefined,
|
|
113
149
|
variantSmall: undefined,
|
|
114
150
|
background: undefined,
|
|
115
151
|
menuItemClass: undefined,
|
|
@@ -134,7 +170,7 @@ Select.propTypes = {
|
|
|
134
170
|
disabled: PropTypes.bool,
|
|
135
171
|
/** 是否載入中 */
|
|
136
172
|
loading: PropTypes.bool,
|
|
137
|
-
/**
|
|
173
|
+
/** 下拉選單提示字(不給則使用套件 i18n 的「請選擇…」) */
|
|
138
174
|
placeholder: PropTypes.string,
|
|
139
175
|
/** 是否使用小size */
|
|
140
176
|
variantSmall: PropTypes.bool,
|
|
@@ -144,7 +180,7 @@ Select.propTypes = {
|
|
|
144
180
|
menuItemClass: PropTypes.objectOf(PropTypes.any),
|
|
145
181
|
/** 點選後的返回 */
|
|
146
182
|
onChange: PropTypes.func,
|
|
147
|
-
/** 無障礙名稱(WCAG 3.3.2)
|
|
183
|
+
/** 無障礙名稱(WCAG 3.3.2):說明「這個選單是做什麼的」,會與選中值一起被讀出 */
|
|
148
184
|
ariaLabel: PropTypes.string,
|
|
149
185
|
/** 以外部元素id作為無障礙名稱 */
|
|
150
186
|
ariaLabelledby: PropTypes.string
|
package/lib/components/Select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as default } from './Select-
|
|
1
|
+
export { S as default } from './Select-cb3e1ba1.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
@@ -11,3 +11,4 @@ import './useTheme-d16d02d9.js';
|
|
|
11
11
|
import './withTheme-2d778133.js';
|
|
12
12
|
import './Empty-c6a44967.js';
|
|
13
13
|
import './style-inject.es-1f59c1d0.js';
|
|
14
|
+
import './globalConfig';
|
|
@@ -94,7 +94,47 @@ var zhtw = {
|
|
|
94
94
|
"aria.pagination.pageCurrent": "第 {page} 頁,目前頁",
|
|
95
95
|
"aria.pagination.select": "選擇頁碼,目前在第 {page} 頁,共 {totalPage} 頁(選擇後結果將更新)",
|
|
96
96
|
"aria.pagination.changed": "已切換至第 {page} 頁,結果已更新",
|
|
97
|
-
"aria.keyword.groupLabel": "關鍵字,共 {count} 個,可用方向鍵瀏覽"
|
|
97
|
+
"aria.keyword.groupLabel": "關鍵字,共 {count} 個,可用方向鍵瀏覽",
|
|
98
|
+
"common.select.placeholder": "請選擇…",
|
|
99
|
+
"common.share.facebook": "分享至 Facebook",
|
|
100
|
+
"knowledge.writersAndWorksSNA.download": "下載",
|
|
101
|
+
"knowledge.writersAndWorksSNA.download.img": "下載圖片",
|
|
102
|
+
"knowledge.writersAndWorksSNA.download.gephi": "下載Gephi",
|
|
103
|
+
"knowledge.writersAndWorksSNA.download.tsv": "下載Tsv",
|
|
104
|
+
"knowledge.writersAndWorksSNA.download.xls": "下載Excel",
|
|
105
|
+
"knowledge.writersAndWorksSNA.fullscreen": "全螢幕模式",
|
|
106
|
+
"knowledge.writersAndWorksSNA.big": "字級放大",
|
|
107
|
+
"knowledge.writersAndWorksSNA.small": "字級縮小",
|
|
108
|
+
"common.noData": "暫無資料",
|
|
109
|
+
"SNA.search.center": "主要搜尋中心",
|
|
110
|
+
"SNA.organization": "組織",
|
|
111
|
+
"SNA.author": "作家",
|
|
112
|
+
"SNA.publication": "著作",
|
|
113
|
+
"SNA.article": "單篇作品",
|
|
114
|
+
"SNA.keyword": "關鍵字",
|
|
115
|
+
"SNA.event": "事件",
|
|
116
|
+
"export.chronology.date": "日期",
|
|
117
|
+
"export.chronology.name": "名稱",
|
|
118
|
+
"export.chronology.description": "描述",
|
|
119
|
+
"export.chronology.type": "類型",
|
|
120
|
+
"export.chronology.source": "註(資料集名稱)",
|
|
121
|
+
"export.works.title": "名稱(書名/文章名)",
|
|
122
|
+
"export.works.author": "作者",
|
|
123
|
+
"export.works.publishYear": "出版年/發表年",
|
|
124
|
+
"export.works.keywords": "關鍵字",
|
|
125
|
+
"export.works.genre": "文學分類",
|
|
126
|
+
"export.works.publishDate": "出版日期/發表日期",
|
|
127
|
+
"export.map.publisher": "出版者",
|
|
128
|
+
"export.map.location": "地點(作品描述區域)",
|
|
129
|
+
"export.map.longitude": "經度",
|
|
130
|
+
"export.map.latitude": "緯度",
|
|
131
|
+
"export.mapLg.orgName": "組織名稱",
|
|
132
|
+
"export.mapLg.foundingPlace": "創立地點",
|
|
133
|
+
"export.mapLg.foundingLongitude": "創立地點經度",
|
|
134
|
+
"export.mapLg.foundingLatitude": "創立地點緯度",
|
|
135
|
+
"export.mapLg.activityPlace": "活動地點",
|
|
136
|
+
"export.mapLg.activityLongitude": "活動地點經度",
|
|
137
|
+
"export.mapLg.activityLatitude": "活動地點緯度"
|
|
98
138
|
};
|
|
99
139
|
|
|
100
140
|
var zhcn = {
|
|
@@ -177,7 +217,49 @@ var zhcn = {
|
|
|
177
217
|
"aria.pagination.pageCurrent": "第 {page} 页,目前页",
|
|
178
218
|
"aria.pagination.select": "选择页码,目前在第 {page} 页,共 {totalPage} 页(选择后结果将更新)",
|
|
179
219
|
"aria.pagination.changed": "已切换至第 {page} 页,结果已更新",
|
|
180
|
-
"aria.keyword.groupLabel": "关键字,共 {count} 个,可用方向键浏览"
|
|
220
|
+
"aria.keyword.groupLabel": "关键字,共 {count} 个,可用方向键浏览",
|
|
221
|
+
"common.select.placeholder": "请选择…",
|
|
222
|
+
"common.share.facebook": "分享至 Facebook",
|
|
223
|
+
"common.form.code.check": "请输入验证码(点击图片可更换验证码)",
|
|
224
|
+
"common.sna.reset": "回到原来位置与大小",
|
|
225
|
+
"knowledge.writersAndWorksSNA.download": "下载",
|
|
226
|
+
"knowledge.writersAndWorksSNA.download.img": "下载图片",
|
|
227
|
+
"knowledge.writersAndWorksSNA.download.gephi": "下载Gephi",
|
|
228
|
+
"knowledge.writersAndWorksSNA.download.tsv": "下载Tsv",
|
|
229
|
+
"knowledge.writersAndWorksSNA.download.xls": "下载Excel",
|
|
230
|
+
"knowledge.writersAndWorksSNA.fullscreen": "全屏模式",
|
|
231
|
+
"knowledge.writersAndWorksSNA.big": "字号放大",
|
|
232
|
+
"knowledge.writersAndWorksSNA.small": "字号缩小",
|
|
233
|
+
"common.noData": "暂无资料",
|
|
234
|
+
"SNA.search.center": "主要搜寻中心",
|
|
235
|
+
"SNA.organization": "组织",
|
|
236
|
+
"SNA.author": "作家",
|
|
237
|
+
"SNA.publication": "著作",
|
|
238
|
+
"SNA.article": "单篇作品",
|
|
239
|
+
"SNA.keyword": "关键字",
|
|
240
|
+
"SNA.event": "事件",
|
|
241
|
+
"export.chronology.date": "日期",
|
|
242
|
+
"export.chronology.name": "名称",
|
|
243
|
+
"export.chronology.description": "描述",
|
|
244
|
+
"export.chronology.type": "类型",
|
|
245
|
+
"export.chronology.source": "注(资料集名称)",
|
|
246
|
+
"export.works.title": "名称(书名/文章名)",
|
|
247
|
+
"export.works.author": "作者",
|
|
248
|
+
"export.works.publishYear": "出版年/发表年",
|
|
249
|
+
"export.works.keywords": "关键字",
|
|
250
|
+
"export.works.genre": "文学分类",
|
|
251
|
+
"export.works.publishDate": "出版日期/发表日期",
|
|
252
|
+
"export.map.publisher": "出版者",
|
|
253
|
+
"export.map.location": "地点(作品描述区域)",
|
|
254
|
+
"export.map.longitude": "经度",
|
|
255
|
+
"export.map.latitude": "纬度",
|
|
256
|
+
"export.mapLg.orgName": "组织名称",
|
|
257
|
+
"export.mapLg.foundingPlace": "创立地点",
|
|
258
|
+
"export.mapLg.foundingLongitude": "创立地点经度",
|
|
259
|
+
"export.mapLg.foundingLatitude": "创立地点纬度",
|
|
260
|
+
"export.mapLg.activityPlace": "活动地点",
|
|
261
|
+
"export.mapLg.activityLongitude": "活动地点经度",
|
|
262
|
+
"export.mapLg.activityLatitude": "活动地点纬度"
|
|
181
263
|
};
|
|
182
264
|
|
|
183
265
|
var enus = {
|
|
@@ -260,7 +342,49 @@ var enus = {
|
|
|
260
342
|
"aria.pagination.pageCurrent": "Page {page}, current page",
|
|
261
343
|
"aria.pagination.select": "Select page, currently on page {page} of {totalPage} (results update after selection)",
|
|
262
344
|
"aria.pagination.changed": "Moved to page {page}. Results updated",
|
|
263
|
-
"aria.keyword.groupLabel": "Keywords, {count} items, use arrow keys to browse"
|
|
345
|
+
"aria.keyword.groupLabel": "Keywords, {count} items, use arrow keys to browse",
|
|
346
|
+
"common.select.placeholder": "Please select...",
|
|
347
|
+
"common.share.facebook": "Share on Facebook",
|
|
348
|
+
"common.form.code.check": "Enter the verification code (click the image for a new one)",
|
|
349
|
+
"common.sna.reset": "Reset position and size",
|
|
350
|
+
"knowledge.writersAndWorksSNA.download": "Download",
|
|
351
|
+
"knowledge.writersAndWorksSNA.download.img": "Download image",
|
|
352
|
+
"knowledge.writersAndWorksSNA.download.gephi": "Download Gephi",
|
|
353
|
+
"knowledge.writersAndWorksSNA.download.tsv": "Download TSV",
|
|
354
|
+
"knowledge.writersAndWorksSNA.download.xls": "Download Excel",
|
|
355
|
+
"knowledge.writersAndWorksSNA.fullscreen": "Full screen",
|
|
356
|
+
"knowledge.writersAndWorksSNA.big": "Increase font size",
|
|
357
|
+
"knowledge.writersAndWorksSNA.small": "Decrease font size",
|
|
358
|
+
"common.noData": "No data",
|
|
359
|
+
"SNA.search.center": "Main node",
|
|
360
|
+
"SNA.organization": "Organization",
|
|
361
|
+
"SNA.author": "Author",
|
|
362
|
+
"SNA.publication": "Publication",
|
|
363
|
+
"SNA.article": "Article",
|
|
364
|
+
"SNA.keyword": "Keyword",
|
|
365
|
+
"SNA.event": "Event",
|
|
366
|
+
"export.chronology.date": "Date",
|
|
367
|
+
"export.chronology.name": "Name",
|
|
368
|
+
"export.chronology.description": "Description",
|
|
369
|
+
"export.chronology.type": "Type",
|
|
370
|
+
"export.chronology.source": "Note (dataset)",
|
|
371
|
+
"export.works.title": "Title (book/article)",
|
|
372
|
+
"export.works.author": "Author",
|
|
373
|
+
"export.works.publishYear": "Year of publication",
|
|
374
|
+
"export.works.keywords": "Keywords",
|
|
375
|
+
"export.works.genre": "Literary genre",
|
|
376
|
+
"export.works.publishDate": "Publication date",
|
|
377
|
+
"export.map.publisher": "Publisher",
|
|
378
|
+
"export.map.location": "Location (region described)",
|
|
379
|
+
"export.map.longitude": "Longitude",
|
|
380
|
+
"export.map.latitude": "Latitude",
|
|
381
|
+
"export.mapLg.orgName": "Organization name",
|
|
382
|
+
"export.mapLg.foundingPlace": "Place of founding",
|
|
383
|
+
"export.mapLg.foundingLongitude": "Founding place longitude",
|
|
384
|
+
"export.mapLg.foundingLatitude": "Founding place latitude",
|
|
385
|
+
"export.mapLg.activityPlace": "Place of activity",
|
|
386
|
+
"export.mapLg.activityLongitude": "Activity place longitude",
|
|
387
|
+
"export.mapLg.activityLatitude": "Activity place latitude"
|
|
264
388
|
};
|
|
265
389
|
|
|
266
390
|
var _languages;
|
package/lib/index.d.ts
CHANGED
|
@@ -34,4 +34,6 @@ export { default as CollapseContent } from './components/CollapseContent';
|
|
|
34
34
|
export { default as MoreButton } from './components/MoreButton';
|
|
35
35
|
export { default as KeywordTicker } from './components/KeywordTicker';
|
|
36
36
|
export { default as ExtraTools } from './components/ExtraTools';
|
|
37
|
-
export { default as Filter } from './components/Filter';
|
|
37
|
+
export { default as Filter } from './components/Filter';
|
|
38
|
+
|
|
39
|
+
export { getIntl } from './components/globalConfig';
|
package/lib/index.js
CHANGED
|
@@ -34,4 +34,6 @@ export { default as CollapseContent } from './components/CollapseContent';
|
|
|
34
34
|
export { default as MoreButton } from './components/MoreButton';
|
|
35
35
|
export { default as KeywordTicker } from './components/KeywordTicker';
|
|
36
36
|
export { default as ExtraTools } from './components/ExtraTools';
|
|
37
|
-
export { default as Filter } from './components/Filter';
|
|
37
|
+
export { default as Filter } from './components/Filter';
|
|
38
|
+
|
|
39
|
+
export { getIntl } from './components/globalConfig';
|
package/lib/utils/{_rollupPluginBabelHelpers-8dd26e1a.js → _rollupPluginBabelHelpers-9802e640.js}
RENAMED
|
@@ -118,4 +118,4 @@ function _nonIterableRest() {
|
|
|
118
118
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export { _toConsumableArray as _,
|
|
121
|
+
export { _toConsumableArray as _, _defineProperty as a, _slicedToArray as b, _objectWithoutProperties as c, _objectSpread2 as d };
|
package/lib/utils/arrayMerge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _objectSpread2 } from './_rollupPluginBabelHelpers-9802e640.js';
|
|
2
2
|
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
|