@daoyi/nmtl-ui 2.0.1-beta.134 → 2.0.1-beta.136
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/README.md +45 -45
- package/lib/components/{Autocomplete-0ea4a31c.js → Autocomplete-e40d7145.js} +4 -4
- package/lib/components/Autocomplete.js +4 -4
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +2 -2
- package/lib/components/BarChart.js +1 -1
- package/lib/components/Breadcrumbs.js +20 -9
- package/lib/components/{Button-7bd5aa09.js → Button-8cf35bc0.js} +1 -1
- package/lib/components/Button.js +2 -2
- package/lib/components/Carousel.js +1 -1
- package/lib/components/CollapseContent.js +55 -4
- package/lib/components/{ContactModal-159de99c.js → ContactModal-19979528.js} +37 -24
- package/lib/components/ContactModal.js +8 -8
- package/lib/components/{Drawer-2328b5f7.js → Drawer-b770014f.js} +2 -2
- package/lib/components/Drawer.js +5 -5
- package/lib/components/Dropdown.js +1 -1
- package/lib/components/{Empty-c6a44967.js → Empty-48685dd0.js} +1 -1
- package/lib/components/Empty.js +2 -2
- package/lib/components/ExportButton.js +1 -1
- package/lib/components/{ExtraTools-2691c13e.js → ExtraTools-c46c1965.js} +3 -3
- package/lib/components/ExtraTools.js +3 -3
- package/lib/components/Filter.js +2 -2
- package/lib/components/Footer.js +8 -8
- package/lib/components/{ForwardLink-5fbd2705.js → ForwardLink-2905563c.js} +2 -2
- package/lib/components/ForwardLink.js +3 -3
- package/lib/components/Header.js +8 -8
- package/lib/components/Image.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputMethod.js +186 -196
- package/lib/components/{KeywordSearch-db9c45d9.js → KeywordSearch-4e621ded.js} +5 -5
- package/lib/components/KeywordSearch.js +5 -5
- package/lib/components/KeywordTicker.js +3 -3
- package/lib/components/Keywords.js +5 -5
- package/lib/components/Loading.js +1 -1
- package/lib/components/MUITheme.js +2 -2
- package/lib/components/{Modal-e04532fa.js → Modal-b984f381.js} +3 -3
- package/lib/components/Modal.js +4 -4
- package/lib/components/{MoreButton-19055e07.js → MoreButton-0b5aaef3.js} +2 -2
- package/lib/components/MoreButton.js +2 -2
- package/lib/components/Pagination.js +2 -2
- package/lib/components/SNA.js +11 -11
- package/lib/components/{SegmentedControl-81f63afc.js → SegmentedControl-804da0a6.js} +1 -1
- package/lib/components/SegmentedControl.js +2 -2
- package/lib/components/{Select-89841c71.js → Select-979f7e73.js} +2 -2
- package/lib/components/Select.js +3 -3
- package/lib/components/{Spin-8f87eadc.js → Spin-07679812.js} +1 -1
- package/lib/components/Spin.js +2 -2
- package/lib/components/{Tooltip-6ebfa9c1.js → Tooltip-bbbaa9c7.js} +1 -1
- package/lib/components/Tooltip.js +2 -2
- package/lib/components/globalConfig.js +19 -4
- package/lib/utils/arrayMerge.js +20 -20
- package/lib/utils/convert2HtmlEntities.js +16 -1
- package/lib/utils/exportXlsx.js +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/newWindowHint-db113a69.js +49 -0
- package/lib/utils/prepareTimelineData.js +78 -0
- package/lib/utils/syncTimelineA11y.js +53 -0
- package/package.json +2 -1
- /package/lib/components/{createSvgIcon-dc603596.js → createSvgIcon-370e163a.js} +0 -0
- /package/lib/components/{index-b76a85f4.js → index-c33afcb5.js} +0 -0
- /package/lib/components/{index-b47819f3.js → index-ff95f719.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { Component, forwardRef, useState, useRef, useEffect } from 'react';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { a as getDefaultExportFromCjs } from './_commonjsHelpers-70de2c37.js';
|
|
7
7
|
import { Menu, MenuItem, useMediaQuery, IconButton } from '@material-ui/core';
|
|
8
|
-
import { T as Tooltip } from './Tooltip-
|
|
8
|
+
import { T as Tooltip } from './Tooltip-bbbaa9c7.js';
|
|
9
9
|
import { s as snaToExcel, f as fileDownload$1, a as jsonExcel } from './dataExport-a9e3fae1.js';
|
|
10
10
|
import { getIntl } from './globalConfig';
|
|
11
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -2888,7 +2888,7 @@ const worksSlider = data => (data || []).map(_ref6 => {
|
|
|
2888
2888
|
};
|
|
2889
2889
|
});
|
|
2890
2890
|
|
|
2891
|
-
/* \u532F\u51FA\u6A94\u540D\u7684\u65E5\u671F\u5F8C\u7DB4\uFF08YYYY-MM-DD\uFF09\uFF0C
|
|
2891
|
+
/* \u532F\u51FA\u6A94\u540D\u7684\u65E5\u671F\u5F8C\u7DB4\uFF08YYYY-MM-DD\uFF09\uFF0C
|
|
2892
2892
|
\u8207 DownloadMenu \u4E0B\u8F09\u5716\u7247\u5171\u7528 */
|
|
2893
2893
|
const exportDateSuffix = () => {
|
|
2894
2894
|
const now = new Date();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { E as default } from './ExtraTools-
|
|
1
|
+
export { E as default } from './ExtraTools-c46c1965.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-c33afcb5.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import './_commonjsHelpers-70de2c37.js';
|
|
7
7
|
import '@material-ui/core';
|
|
8
|
-
import './Tooltip-
|
|
8
|
+
import './Tooltip-bbbaa9c7.js';
|
|
9
9
|
import './style-inject.es-1f59c1d0.js';
|
|
10
10
|
import './dataExport-a9e3fae1.js';
|
|
11
11
|
import './globalConfig';
|
package/lib/components/Filter.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as _slicedToArray, f as _taggedTemplateLiteral, e as _defineProperty } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useContext, createElement, useState, useCallback } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
5
|
-
import { q as queryString } from './index-
|
|
4
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
5
|
+
import { q as queryString } from './index-ff95f719.js';
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import { isValidElementType, typeOf } from 'react-is';
|
|
8
8
|
import { h as hoistNonReactStatics_cjs } from './hoist-non-react-statics.cjs-3f408ad2.js';
|
package/lib/components/Footer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as _slicedToArray, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { C as ContactModal } from './ContactModal-
|
|
7
|
-
import { S as Spin } from './Spin-
|
|
6
|
+
import { C as ContactModal } from './ContactModal-19979528.js';
|
|
7
|
+
import { S as Spin } from './Spin-07679812.js';
|
|
8
8
|
import { getIntl } from './globalConfig';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
10
10
|
import './hoist-non-react-statics.cjs-3f408ad2.js';
|
|
@@ -13,14 +13,14 @@ import './defaultTheme-c5dd0f64.js';
|
|
|
13
13
|
import '@material-ui/styles';
|
|
14
14
|
import './useTheme-98b6cf17.js';
|
|
15
15
|
import './withTheme-3486f38b.js';
|
|
16
|
-
import './Modal-
|
|
16
|
+
import './Modal-b984f381.js';
|
|
17
17
|
import '@material-ui/core';
|
|
18
18
|
import '@material-ui/icons';
|
|
19
|
-
import './Button-
|
|
19
|
+
import './Button-8cf35bc0.js';
|
|
20
20
|
import './_commonjsHelpers-70de2c37.js';
|
|
21
|
-
import './Select-
|
|
22
|
-
import './Empty-
|
|
23
|
-
import './createSvgIcon-
|
|
21
|
+
import './Select-979f7e73.js';
|
|
22
|
+
import './Empty-48685dd0.js';
|
|
23
|
+
import './createSvgIcon-370e163a.js';
|
|
24
24
|
import 'react-dom';
|
|
25
25
|
|
|
26
26
|
/* eslint-disable max-len */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _objectWithoutProperties } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useMemo, useCallback } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
5
|
-
import { q as queryString } from './index-
|
|
4
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
5
|
+
import { q as queryString } from './index-ff95f719.js';
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import { Tooltip } from '@material-ui/core';
|
|
8
8
|
import { getIntl } from './globalConfig';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { F as default } from './ForwardLink-
|
|
1
|
+
export { F as default } from './ForwardLink-2905563c.js';
|
|
2
2
|
import './_rollupPluginBabelHelpers-a52356f6.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'prop-types';
|
|
5
|
-
import './index-
|
|
6
|
-
import './index-
|
|
5
|
+
import './index-c33afcb5.js';
|
|
6
|
+
import './index-ff95f719.js';
|
|
7
7
|
import 'react-router-dom';
|
|
8
8
|
import '@material-ui/core';
|
|
9
9
|
import './globalConfig';
|
package/lib/components/Header.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classNames } from './index-
|
|
4
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
5
5
|
import { d as debounce_1 } from './debounce-127da66c.js';
|
|
6
6
|
import { useHistory, useRouteMatch, NavLink } from 'react-router-dom';
|
|
7
7
|
import { Typography, IconButton } from '@material-ui/core';
|
|
8
8
|
import { SearchOutlined } from '@material-ui/icons';
|
|
9
|
-
import { K as KeywordSearch } from './KeywordSearch-
|
|
10
|
-
import { S as Select } from './Select-
|
|
11
|
-
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-
|
|
9
|
+
import { K as KeywordSearch } from './KeywordSearch-4e621ded.js';
|
|
10
|
+
import { S as Select } from './Select-979f7e73.js';
|
|
11
|
+
import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-b770014f.js';
|
|
12
12
|
import { getIntl } from './globalConfig';
|
|
13
13
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
14
14
|
import './isObjectLike-e111475d.js';
|
|
15
15
|
import './_commonjsHelpers-70de2c37.js';
|
|
16
16
|
import 'axios';
|
|
17
|
-
import './Autocomplete-
|
|
17
|
+
import './Autocomplete-e40d7145.js';
|
|
18
18
|
import '@material-ui/lab';
|
|
19
|
-
import './createSvgIcon-
|
|
19
|
+
import './createSvgIcon-370e163a.js';
|
|
20
20
|
import './defaultTheme-c5dd0f64.js';
|
|
21
21
|
import 'react-is';
|
|
22
22
|
import '@material-ui/styles';
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import './toConsumableArray-c268c112.js';
|
|
25
|
-
import './Empty-
|
|
25
|
+
import './Empty-48685dd0.js';
|
|
26
26
|
import './useTheme-98b6cf17.js';
|
|
27
27
|
import './withTheme-3486f38b.js';
|
|
28
|
-
import './SegmentedControl-
|
|
28
|
+
import './SegmentedControl-804da0a6.js';
|
|
29
29
|
|
|
30
30
|
var css_248z = "@charset \"UTF-8\";\n.header {\n display: flex;\n align-items: center;\n background: rgba(255, 255, 255, 0.6);\n background-color: rgba(255, 255, 255, 0.6);\n padding: 12px 36px !important;\n position: fixed;\n top: 0;\n z-index: 10;\n width: 100% !important;\n transition: top 0.3s ease-in-out;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n /* 呼叫端自訂工具區(如字級縮放):與語系選單同屬右側工具列 */\n}\n.header__logo {\n display: flex;\n width: -moz-fit-content !important;\n width: fit-content !important;\n margin-right: 30px !important;\n cursor: pointer;\n text-decoration: none;\n}\n.header__logo__img {\n display: flex;\n align-items: center;\n}\n.header__logo__title {\n white-space: nowrap;\n margin-left: 1rem !important;\n font-size: 1.5rem !important;\n font-weight: 700 !important;\n font-family: \"Noto Sans TC\" !important;\n}\n.header__links {\n display: flex;\n justify-content: flex-end;\n padding-right: 14px;\n}\n.header__links a {\n text-decoration: none;\n}\n.header__links--full {\n flex: 1;\n}\n.header__links__item {\n color: rgba(0, 0, 0, 0.85);\n font-size: 1.125rem !important;\n font-weight: 500 !important;\n white-space: nowrap;\n padding: 6px 14px;\n font-family: \"Noto Sans TC\" !important;\n}\n.header__links__item--active .header__links__item {\n font-weight: 800 !important;\n background: transparent;\n border-radius: 45px;\n}\n.header__links__item:hover {\n font-weight: 800 !important;\n}\n.header__language {\n min-width: 100px !important;\n}\n.header__extraTools {\n display: flex;\n align-items: center;\n margin-right: 8px;\n}\n.header__searchIcon {\n display: none !important;\n}\n@media screen and (max-width: 768px) {\n .header--smallUseSearchIcon .header__searchIcon {\n display: flex !important;\n margin-right: 10px !important;\n }\n .header--smallUseSearchIcon .keywordSearch {\n visibility: hidden;\n flex: 1;\n width: 0;\n }\n}\n.header--hide {\n top: -100px;\n}\n.header--focus .header__links {\n display: none;\n}\n.header .MuiTypography-root {\n width: 100%;\n display: flex;\n align-items: center;\n}\n.header .autocomplete {\n float: right;\n}\n.header .autocomplete .MuiAutocomplete-inputRoot[class*=MuiOutlinedInput-root] {\n padding: 1px 8px !important;\n}\n.header .keywordSearch {\n margin-right: 8px;\n}\n.header .keywordSearch--focus .autocomplete {\n width: 100% !important;\n}\n.header .keywordSearch--animation .autocomplete {\n width: 240px;\n transition: width 0.3s ease-in-out;\n}\n\n/* 避免寬度460以下炸版 */\n@media screen and (max-width: 460px) {\n .header .keywordSearch--animation .autocomplete {\n width: 100%;\n }\n}\n@media screen and (max-width: 768px) {\n .header {\n padding: 12px 15px !important;\n /* 窄畫面比照語系選單收進抽屜,避免擠壓搜尋框 */\n }\n .header__logo {\n margin-right: 16px !important;\n }\n .header__logo__title {\n display: none !important;\n }\n .header__links {\n display: none;\n }\n .header__links__item {\n font-size: 1rem !important;\n }\n .header__language {\n display: none !important;\n }\n .header__extraTools {\n display: none !important;\n }\n .header--focus .header__logo {\n display: none !important;\n }\n\n .autocomplete__icon {\n display: none !important;\n }\n}";
|
|
31
31
|
styleInject(css_248z);
|
package/lib/components/Image.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
package/lib/components/Input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { c as classNames } from './index-
|
|
3
|
+
import { c as classNames } from './index-c33afcb5.js';
|
|
4
4
|
import { OutlinedInput } from '@material-ui/core';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|