@daoyi/nmtl-ui 2.0.1-beta.90 → 2.0.1-beta.92

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.
Files changed (60) hide show
  1. package/README.md +45 -45
  2. package/lib/components/{Autocomplete-24e9686d.js → Autocomplete-5d6f1df8.js} +57 -15
  3. package/lib/components/Autocomplete.js +6 -5
  4. package/lib/components/Avatar.js +1 -1
  5. package/lib/components/BackTop.js +3 -3
  6. package/lib/components/BarChart.js +1 -1
  7. package/lib/components/Breadcrumbs.js +1 -1
  8. package/lib/components/{Button-430d39e6.js → Button-305b69a0.js} +1 -1
  9. package/lib/components/Button.js +2 -2
  10. package/lib/components/Carousel.js +2 -61
  11. package/lib/components/Checkbox.js +1 -1
  12. package/lib/components/CollapseContent.js +3 -3
  13. package/lib/components/{ContactModal-523ae294.js → ContactModal-1997d146.js} +94 -22
  14. package/lib/components/ContactModal.js +10 -10
  15. package/lib/components/{Drawer-ec47e780.js → Drawer-b9855a54.js} +10 -3
  16. package/lib/components/Drawer.js +6 -5
  17. package/lib/components/Dropdown.js +2 -2
  18. package/lib/components/{Empty-dc5fc2fc.js → Empty-bf77164f.js} +1 -1
  19. package/lib/components/Empty.js +2 -2
  20. package/lib/components/ExportButton.js +2 -2
  21. package/lib/components/{ExtraTools-0ffc772b.js → ExtraTools-5954ee3a.js} +75 -78
  22. package/lib/components/ExtraTools.js +4 -4
  23. package/lib/components/Filter.js +3 -3
  24. package/lib/components/Footer.js +10 -10
  25. package/lib/components/{ForwardLink-15222b22.js → ForwardLink-aa950a50.js} +17 -8
  26. package/lib/components/ForwardLink.js +4 -3
  27. package/lib/components/Header.js +25 -9
  28. package/lib/components/Image.js +2 -2
  29. package/lib/components/Input.js +1 -1
  30. package/lib/components/InputMethod.js +197 -187
  31. package/lib/components/{KeywordSearch-91167d24.js → KeywordSearch-33341dd3.js} +3 -3
  32. package/lib/components/KeywordSearch.js +7 -6
  33. package/lib/components/KeywordTicker.js +5 -4
  34. package/lib/components/Keywords.js +7 -6
  35. package/lib/components/Loading.js +1 -1
  36. package/lib/components/{Modal-6b8c72d7.js → Modal-5a27951f.js} +12 -4
  37. package/lib/components/Modal.js +5 -4
  38. package/lib/components/{MoreButton-4d5d94da.js → MoreButton-44d3b4fe.js} +1 -1
  39. package/lib/components/MoreButton.js +2 -2
  40. package/lib/components/Pagination.js +3 -3
  41. package/lib/components/Radio.js +1 -1
  42. package/lib/components/SNA.js +4 -4
  43. package/lib/components/{Select-7da870e0.js → Select-e550d0a5.js} +24 -7
  44. package/lib/components/Select.js +4 -4
  45. package/lib/components/{Spin-9a07b106.js → Spin-8dc60bfe.js} +1 -1
  46. package/lib/components/Spin.js +2 -2
  47. package/lib/components/Table.js +1 -1
  48. package/lib/components/{Tooltip-6d53cb6e.js → Tooltip-6ebfa9c1.js} +2 -2
  49. package/lib/components/Tooltip.js +3 -3
  50. package/lib/components/{_rollupPluginBabelHelpers-ed61ffc0.js → _rollupPluginBabelHelpers-a52356f6.js} +24 -42
  51. package/lib/components/globalConfig.js +30 -21
  52. package/lib/components/{index-f491ebce.js → index-b76a85f4.js} +1 -1
  53. package/lib/utils/{_rollupPluginBabelHelpers-a6e0e6e3.js → _rollupPluginBabelHelpers-8dd26e1a.js} +24 -42
  54. package/lib/utils/arrayMerge.js +21 -21
  55. package/lib/utils/exportXlsx.js +1 -1
  56. package/lib/utils/historyAppendSearch.js +1 -1
  57. package/lib/utils/snaPreProcess.js +1 -1
  58. package/package.json +125 -125
  59. /package/lib/components/{createSvgIcon-ff0e3b99.js → createSvgIcon-e3803ee1.js} +0 -0
  60. /package/lib/components/{index-a6f22b92.js → index-b47819f3.js} +0 -0
@@ -1,10 +1,11 @@
1
1
  import React__default from 'react';
2
- import { c as classNames } from './index-f491ebce.js';
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';
5
5
  import { CloseSharp } from '@material-ui/icons';
6
- import { B as Button } from './Button-430d39e6.js';
7
- import { S as Spin } from './Spin-9a07b106.js';
6
+ import { B as Button } from './Button-305b69a0.js';
7
+ import { S as Spin } from './Spin-8dc60bfe.js';
8
+ import { getIntl } from './globalConfig';
8
9
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
9
10
 
10
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: 16px;\n padding: 8px 0;\n color: white;\n}\n.modal__title__close {\n cursor: pointer;\n color: white;\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}";
@@ -36,14 +37,21 @@ var Modal = function Modal(props) {
36
37
  onClose: function onClose() {
37
38
  return closable && onCancel();
38
39
  }
40
+ // WCAG 4.1.2 對話框需有可及名稱
41
+ ,
42
+ "aria-label": typeof title === 'string' ? title : undefined
39
43
  }, /*#__PURE__*/React__default.createElement(DialogTitle, {
40
44
  className: "modal__title"
41
45
  }, /*#__PURE__*/React__default.createElement("span", {
42
46
  className: "modal__title__text"
43
47
  }, title), closable && /*#__PURE__*/React__default.createElement(IconButton, {
48
+ "aria-label": getIntl().formatMessage({
49
+ id: 'aria.modal.close'
50
+ }),
44
51
  onClick: onCancel
45
52
  }, /*#__PURE__*/React__default.createElement(CloseSharp, {
46
- className: "modal__title__close"
53
+ className: "modal__title__close",
54
+ "aria-hidden": "true"
47
55
  }))), /*#__PURE__*/React__default.createElement(DialogContent, null, /*#__PURE__*/React__default.createElement(Spin, {
48
56
  spinning: loading
49
57
  }, children)), footer !== null && /*#__PURE__*/React__default.createElement(DialogActions, null, footer === undefined && (cancelText || okText) ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, cancelText && /*#__PURE__*/React__default.createElement(Button, {
@@ -1,9 +1,10 @@
1
- export { M as default } from './Modal-6b8c72d7.js';
1
+ export { M as default } from './Modal-5a27951f.js';
2
2
  import 'react';
3
- import './index-f491ebce.js';
3
+ import './index-b76a85f4.js';
4
4
  import 'prop-types';
5
5
  import '@material-ui/core';
6
6
  import '@material-ui/icons';
7
- import './Button-430d39e6.js';
7
+ import './Button-305b69a0.js';
8
8
  import './style-inject.es-1f59c1d0.js';
9
- import './Spin-9a07b106.js';
9
+ import './Spin-8dc60bfe.js';
10
+ import './globalConfig';
@@ -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-f491ebce.js';
3
+ import { c as classNames } from './index-b76a85f4.js';
4
4
  import { ExpandLess, ExpandMore } from '@material-ui/icons';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
@@ -1,6 +1,6 @@
1
- export { M as default } from './MoreButton-4d5d94da.js';
1
+ export { M as default } from './MoreButton-44d3b4fe.js';
2
2
  import 'react';
3
3
  import 'prop-types';
4
- import './index-f491ebce.js';
4
+ import './index-b76a85f4.js';
5
5
  import '@material-ui/icons';
6
6
  import './style-inject.es-1f59c1d0.js';
@@ -1,16 +1,16 @@
1
- import { c as _objectWithoutProperties$1 } from './_rollupPluginBabelHelpers-ed61ffc0.js';
1
+ import { c as _objectWithoutProperties$1 } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import * as React$2 from 'react';
3
3
  import React__default, { Children, isValidElement, cloneElement } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { d as defaultTheme, k as _objectWithoutProperties, o as _slicedToArray, _ as _extends, q as _objectWithoutPropertiesLoose, r as alpha, j as formatMuiErrorMessage } from './defaultTheme-ed7746fe.js';
6
- import { u as useControlled, c as clsx, b as useEventCallback, w as withStyles, d as useIsFocusVisible, e as useForkRef, f as createSvgIcon, g as capitalize, h as debounce, r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-ff0e3b99.js';
6
+ import { u as useControlled, c as clsx, b as useEventCallback, w as withStyles, d as useIsFocusVisible, e as useForkRef, f as createSvgIcon, g as capitalize, h as debounce, r as requireCreateSvgIcon, i as interopRequireDefault, a as interopRequireWildcard } from './createSvgIcon-e3803ee1.js';
7
7
  import 'react-is';
8
8
  import { useTheme as useTheme$1 } from '@material-ui/styles';
9
9
  import './withTheme-2d778133.js';
10
10
  import { _ as _toConsumableArray } from './toConsumableArray-dbe8af76.js';
11
11
  import * as ReactDOM from 'react-dom';
12
12
  import ReactDOM__default from 'react-dom';
13
- import { c as classNames } from './index-f491ebce.js';
13
+ import { c as classNames } from './index-b76a85f4.js';
14
14
  import { IconButton } from '@material-ui/core';
15
15
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
16
16
  import './_commonjsHelpers-70de2c37.js';
@@ -1,4 +1,4 @@
1
- import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-ed61ffc0.js';
1
+ import { b as _objectSpread2 } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { RadioGroup, FormControlLabel, Radio as Radio$1 } from '@material-ui/core';
@@ -1,13 +1,13 @@
1
1
  import React__default, { useMemo, useEffect } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { c as classNames } from './index-f491ebce.js';
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-0ffc772b.js';
5
+ import { E as ExtraTools } from './ExtraTools-5954ee3a.js';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
- import './_rollupPluginBabelHelpers-ed61ffc0.js';
7
+ import './_rollupPluginBabelHelpers-a52356f6.js';
8
8
  import './_commonjsHelpers-70de2c37.js';
9
9
  import '@material-ui/core';
10
- import './Tooltip-6d53cb6e.js';
10
+ import './Tooltip-6ebfa9c1.js';
11
11
  import './dataExport-d55d6fa3.js';
12
12
 
13
13
  function sourceEvent() {
@@ -1,9 +1,9 @@
1
- import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-ed61ffc0.js';
1
+ import { b as _objectSpread2, d as _typeof } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { c as classNames } from './index-f491ebce.js';
4
+ import { c as classNames } from './index-b76a85f4.js';
5
5
  import { FormControl, Select as Select$1, CircularProgress, MenuItem } from '@material-ui/core';
6
- import { E as Empty } from './Empty-dc5fc2fc.js';
6
+ import { E as Empty } from './Empty-bf77164f.js';
7
7
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
8
8
 
9
9
  var css_248z = ".select__placeholder {\n color: #999;\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}";
@@ -22,7 +22,9 @@ var Select = function Select(props) {
22
22
  var options = props.options,
23
23
  value = props.value,
24
24
  defaultValue = props.defaultValue,
25
- _onChange = props.onChange;
25
+ _onChange = props.onChange,
26
+ ariaLabel = props.ariaLabel,
27
+ ariaLabelledby = props.ariaLabelledby;
26
28
  var itemFind = function itemFind(key) {
27
29
  return (options || []).find(function (option) {
28
30
  return _typeof(option) === 'object' ? key === option.value : key === option;
@@ -38,7 +40,16 @@ var Select = function Select(props) {
38
40
  background: background
39
41
  }),
40
42
  displayEmpty: true,
41
- disabled: disabled || loading,
43
+ disabled: disabled || loading
44
+ // WCAG 3.3.2 下拉選單需有可及名稱(含 MUI 隱藏 input),未提供時以 placeholder 代替
45
+ ,
46
+ inputProps: {
47
+ 'aria-label': ariaLabelledby ? undefined : ariaLabel || placeholder
48
+ },
49
+ SelectDisplayProps: {
50
+ 'aria-labelledby': ariaLabelledby,
51
+ 'aria-label': ariaLabelledby ? undefined : ariaLabel || placeholder
52
+ },
42
53
  renderValue: function renderValue(id) {
43
54
  var finder = itemFind(id);
44
55
  var content = _typeof(finder) === 'object' ? finder.label : finder;
@@ -81,7 +92,9 @@ Select.defaultProps = {
81
92
  variantSmall: undefined,
82
93
  background: undefined,
83
94
  menuItemClass: undefined,
84
- onChange: function onChange() {}
95
+ onChange: function onChange() {},
96
+ ariaLabel: undefined,
97
+ ariaLabelledby: undefined
85
98
  };
86
99
  Select.propTypes = {
87
100
  /** 樣式 */
@@ -109,7 +122,11 @@ Select.propTypes = {
109
122
  /** override menuItem class */
110
123
  menuItemClass: PropTypes.objectOf(PropTypes.any),
111
124
  /** 點選後的返回 */
112
- onChange: PropTypes.func
125
+ onChange: PropTypes.func,
126
+ /** 無障礙名稱(WCAG 3.3.2),未提供時以placeholder代替 */
127
+ ariaLabel: PropTypes.string,
128
+ /** 以外部元素id作為無障礙名稱 */
129
+ ariaLabelledby: PropTypes.string
113
130
  };
114
131
 
115
132
  export { Select as S };
@@ -1,8 +1,8 @@
1
- export { S as default } from './Select-7da870e0.js';
2
- import './_rollupPluginBabelHelpers-ed61ffc0.js';
1
+ export { S as default } from './Select-e550d0a5.js';
2
+ import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
5
- import './index-f491ebce.js';
5
+ import './index-b76a85f4.js';
6
6
  import '@material-ui/core';
7
- import './Empty-dc5fc2fc.js';
7
+ import './Empty-bf77164f.js';
8
8
  import './style-inject.es-1f59c1d0.js';
@@ -1,6 +1,6 @@
1
1
  import React__default, { useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { c as classNames } from './index-f491ebce.js';
3
+ import { c as classNames } from './index-b76a85f4.js';
4
4
  import { Fade, CircularProgress } from '@material-ui/core';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
@@ -1,6 +1,6 @@
1
- export { S as default } from './Spin-9a07b106.js';
1
+ export { S as default } from './Spin-8dc60bfe.js';
2
2
  import 'react';
3
3
  import 'prop-types';
4
- import './index-f491ebce.js';
4
+ import './index-b76a85f4.js';
5
5
  import '@material-ui/core';
6
6
  import './style-inject.es-1f59c1d0.js';
@@ -1,4 +1,4 @@
1
- import { c as _objectWithoutProperties } from './_rollupPluginBabelHelpers-ed61ffc0.js';
1
+ import { c as _objectWithoutProperties } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { TableContainer, Paper, Table as Table$1, TableHead, TableRow, TableCell, TableBody } from '@material-ui/core';
@@ -1,8 +1,8 @@
1
1
  import React__default from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Tooltip as Tooltip$1 } from '@material-ui/core';
4
- import { _ as _extends } from './_rollupPluginBabelHelpers-ed61ffc0.js';
5
- import { c as classNames } from './index-f491ebce.js';
4
+ import { _ as _extends } from './_rollupPluginBabelHelpers-a52356f6.js';
5
+ import { c as classNames } from './index-b76a85f4.js';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
7
 
8
8
  const TooltipContent = /*#__PURE__*/React__default.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
@@ -1,7 +1,7 @@
1
- export { T as default, p as placements } from './Tooltip-6d53cb6e.js';
1
+ export { T as default, p as placements } from './Tooltip-6ebfa9c1.js';
2
2
  import 'react';
3
3
  import 'prop-types';
4
4
  import '@material-ui/core';
5
- import './_rollupPluginBabelHelpers-ed61ffc0.js';
6
- import './index-f491ebce.js';
5
+ import './_rollupPluginBabelHelpers-a52356f6.js';
6
+ import './index-b76a85f4.js';
7
7
  import './style-inject.es-1f59c1d0.js';
@@ -1,30 +1,3 @@
1
- function _iterableToArrayLimit(arr, i) {
2
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
- if (null != _i) {
4
- var _s,
5
- _e,
6
- _x,
7
- _r,
8
- _arr = [],
9
- _n = !0,
10
- _d = !1;
11
- try {
12
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
- if (Object(_i) !== _i) return;
14
- _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
16
- } catch (err) {
17
- _d = !0, _e = err;
18
- } finally {
19
- try {
20
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
21
- } finally {
22
- if (_d) throw _e;
23
- }
24
- }
25
- return _arr;
26
- }
27
- }
28
1
  function ownKeys(object, enumerableOnly) {
29
2
  var keys = Object.keys(object);
30
3
  if (Object.getOwnPropertySymbols) {
@@ -56,7 +29,6 @@ function _typeof(obj) {
56
29
  }, _typeof(obj);
57
30
  }
58
31
  function _defineProperty(obj, key, value) {
59
- key = _toPropertyKey(key);
60
32
  if (key in obj) {
61
33
  Object.defineProperty(obj, key, {
62
34
  value: value,
@@ -126,6 +98,30 @@ function _slicedToArray(arr, i) {
126
98
  function _arrayWithHoles(arr) {
127
99
  if (Array.isArray(arr)) return arr;
128
100
  }
101
+ function _iterableToArrayLimit(arr, i) {
102
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
103
+ if (_i == null) return;
104
+ var _arr = [];
105
+ var _n = true;
106
+ var _d = false;
107
+ var _s, _e;
108
+ try {
109
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
110
+ _arr.push(_s.value);
111
+ if (i && _arr.length === i) break;
112
+ }
113
+ } catch (err) {
114
+ _d = true;
115
+ _e = err;
116
+ } finally {
117
+ try {
118
+ if (!_n && _i["return"] != null) _i["return"]();
119
+ } finally {
120
+ if (_d) throw _e;
121
+ }
122
+ }
123
+ return _arr;
124
+ }
129
125
  function _unsupportedIterableToArray(o, minLen) {
130
126
  if (!o) return;
131
127
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -142,19 +138,5 @@ function _arrayLikeToArray(arr, len) {
142
138
  function _nonIterableRest() {
143
139
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
144
140
  }
145
- function _toPrimitive(input, hint) {
146
- if (typeof input !== "object" || input === null) return input;
147
- var prim = input[Symbol.toPrimitive];
148
- if (prim !== undefined) {
149
- var res = prim.call(input, hint || "default");
150
- if (typeof res !== "object") return res;
151
- throw new TypeError("@@toPrimitive must return a primitive value.");
152
- }
153
- return (hint === "string" ? String : Number)(input);
154
- }
155
- function _toPropertyKey(arg) {
156
- var key = _toPrimitive(arg, "string");
157
- return typeof key === "symbol" ? key : String(key);
158
- }
159
141
 
160
142
  export { _extends as _, _slicedToArray as a, _objectSpread2 as b, _objectWithoutProperties as c, _typeof as d, _defineProperty as e, _taggedTemplateLiteral as f };
@@ -1,5 +1,4 @@
1
1
  function _defineProperty(obj, key, value) {
2
- key = _toPropertyKey(key);
3
2
  if (key in obj) {
4
3
  Object.defineProperty(obj, key, {
5
4
  value: value,
@@ -12,20 +11,6 @@ function _defineProperty(obj, key, value) {
12
11
  }
13
12
  return obj;
14
13
  }
15
- function _toPrimitive(input, hint) {
16
- if (typeof input !== "object" || input === null) return input;
17
- var prim = input[Symbol.toPrimitive];
18
- if (prim !== undefined) {
19
- var res = prim.call(input, hint || "default");
20
- if (typeof res !== "object") return res;
21
- throw new TypeError("@@toPrimitive must return a primitive value.");
22
- }
23
- return (hint === "string" ? String : Number)(input);
24
- }
25
- function _toPropertyKey(arg) {
26
- var key = _toPrimitive(arg, "string");
27
- return typeof key === "symbol" ? key : String(key);
28
- }
29
14
 
30
15
  var zhtw = {
31
16
  "common.action.failed": "操作失敗",
@@ -70,7 +55,15 @@ var zhtw = {
70
55
  "common.form.attachment.hint2": "2.若有多個檔案請先集中至同一資料夾並以壓縮檔上傳",
71
56
  "common.form.contactUs": "聯繫我們",
72
57
  "common.form.error": "表單尚未完成 請檢察必填項目",
73
- "common.sna.reset": "回到原來位置與大小"
58
+ "common.sna.reset": "回到原來位置與大小",
59
+ "aria.header.searchOpen": "開啟搜尋",
60
+ "aria.header.menuOpen": "開啟主選單",
61
+ "aria.header.logoHome": "回首頁",
62
+ "aria.autocomplete.search": "執行搜尋",
63
+ "aria.modal.close": "關閉視窗",
64
+ "aria.newWindow": "(另開新視窗)",
65
+ "aria.vcode.image": "驗證碼圖片,如無法辨識可刷新驗證碼",
66
+ "aria.vcode.refresh": "刷新驗證碼"
74
67
  };
75
68
 
76
69
  var zhcn = {
@@ -114,7 +107,15 @@ var zhcn = {
114
107
  "common.form.attachment.hint": "1.上传附件大小限制:总共10MB",
115
108
  "common.form.attachment.hint2": "2.若有多个档案请先集中至同一资料夹并以压缩档上传",
116
109
  "common.form.contactUs": "联系我们",
117
- "common.form.error": "表单尚未完成 请检察必填项目"
110
+ "common.form.error": "表单尚未完成 请检察必填项目",
111
+ "aria.header.searchOpen": "开启搜寻",
112
+ "aria.header.menuOpen": "开启主选单",
113
+ "aria.header.logoHome": "回首页",
114
+ "aria.autocomplete.search": "执行搜寻",
115
+ "aria.modal.close": "关闭视窗",
116
+ "aria.newWindow": "(另开新视窗)",
117
+ "aria.vcode.image": "验证码图片,如无法辨识可刷新验证码",
118
+ "aria.vcode.refresh": "刷新验证码"
118
119
  };
119
120
 
120
121
  var enus = {
@@ -158,7 +159,15 @@ var enus = {
158
159
  "common.form.attachment.hint": "1. Upload attachment size limit: 10MB in total. ",
159
160
  "common.form.attachment.hint2": "2. If there are multiple files, please gather them in the same folder and upload them as compressed files",
160
161
  "common.form.contactUs": "Contact Us",
161
- "common.form.error": "The form has not been completed, please check the required items"
162
+ "common.form.error": "The form has not been completed, please check the required items",
163
+ "aria.header.searchOpen": "Open search",
164
+ "aria.header.menuOpen": "Open main menu",
165
+ "aria.header.logoHome": "Back to home",
166
+ "aria.autocomplete.search": "Search",
167
+ "aria.modal.close": "Close dialog",
168
+ "aria.newWindow": " (opens in new window)",
169
+ "aria.vcode.image": "CAPTCHA image, refresh if unreadable",
170
+ "aria.vcode.refresh": "Refresh CAPTCHA"
162
171
  };
163
172
 
164
173
  var _languages;
@@ -166,9 +175,9 @@ var ZH_TW = 'zh-tw';
166
175
  var ZH_CN = 'zh-cn';
167
176
  var EN_US = 'en-us';
168
177
 
169
- /**
170
- * 全域i18n
171
- * 讓元件擁有自己的i18n
178
+ /**
179
+ * 全域i18n
180
+ * 讓元件擁有自己的i18n
172
181
  */
173
182
  var lang;
174
183
  var languages = (_languages = {}, _defineProperty(_languages, ZH_TW, zhtw), _defineProperty(_languages, ZH_CN, zhcn), _defineProperty(_languages, EN_US, enus), _languages);
@@ -58,4 +58,4 @@ var classnames = {exports: {}};
58
58
 
59
59
  var classNames = classnames.exports;
60
60
 
61
- export { classNames as c };
61
+ export { classnames as a, classNames as c };
@@ -1,30 +1,3 @@
1
- function _iterableToArrayLimit(arr, i) {
2
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
- if (null != _i) {
4
- var _s,
5
- _e,
6
- _x,
7
- _r,
8
- _arr = [],
9
- _n = !0,
10
- _d = !1;
11
- try {
12
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
- if (Object(_i) !== _i) return;
14
- _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
16
- } catch (err) {
17
- _d = !0, _e = err;
18
- } finally {
19
- try {
20
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
21
- } finally {
22
- if (_d) throw _e;
23
- }
24
- }
25
- return _arr;
26
- }
27
- }
28
1
  function ownKeys(object, enumerableOnly) {
29
2
  var keys = Object.keys(object);
30
3
  if (Object.getOwnPropertySymbols) {
@@ -47,7 +20,6 @@ function _objectSpread2(target) {
47
20
  return target;
48
21
  }
49
22
  function _defineProperty(obj, key, value) {
50
- key = _toPropertyKey(key);
51
23
  if (key in obj) {
52
24
  Object.defineProperty(obj, key, {
53
25
  value: value,
@@ -102,6 +74,30 @@ function _arrayWithHoles(arr) {
102
74
  function _iterableToArray(iter) {
103
75
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
104
76
  }
77
+ function _iterableToArrayLimit(arr, i) {
78
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
79
+ if (_i == null) return;
80
+ var _arr = [];
81
+ var _n = true;
82
+ var _d = false;
83
+ var _s, _e;
84
+ try {
85
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
86
+ _arr.push(_s.value);
87
+ if (i && _arr.length === i) break;
88
+ }
89
+ } catch (err) {
90
+ _d = true;
91
+ _e = err;
92
+ } finally {
93
+ try {
94
+ if (!_n && _i["return"] != null) _i["return"]();
95
+ } finally {
96
+ if (_d) throw _e;
97
+ }
98
+ }
99
+ return _arr;
100
+ }
105
101
  function _unsupportedIterableToArray(o, minLen) {
106
102
  if (!o) return;
107
103
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -121,19 +117,5 @@ function _nonIterableSpread() {
121
117
  function _nonIterableRest() {
122
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.");
123
119
  }
124
- function _toPrimitive(input, hint) {
125
- if (typeof input !== "object" || input === null) return input;
126
- var prim = input[Symbol.toPrimitive];
127
- if (prim !== undefined) {
128
- var res = prim.call(input, hint || "default");
129
- if (typeof res !== "object") return res;
130
- throw new TypeError("@@toPrimitive must return a primitive value.");
131
- }
132
- return (hint === "string" ? String : Number)(input);
133
- }
134
- function _toPropertyKey(arg) {
135
- var key = _toPrimitive(arg, "string");
136
- return typeof key === "symbol" ? key : String(key);
137
- }
138
120
 
139
121
  export { _toConsumableArray as _, _slicedToArray as a, _objectWithoutProperties as b, _objectSpread2 as c };
@@ -1,4 +1,4 @@
1
- import { c as _objectSpread2 } from './_rollupPluginBabelHelpers-a6e0e6e3.js';
1
+ import { c as _objectSpread2 } from './_rollupPluginBabelHelpers-8dd26e1a.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
 
@@ -4891,26 +4891,26 @@ var arrayMergeTimeline = function arrayMergeTimeline(input, keys, mergeKeys) {
4891
4891
  }, []);
4892
4892
  };
4893
4893
 
4894
- /**
4895
- * arrayMergeBySingleKey 函式功能說明。
4896
- * 根據 id 合併其它所有鍵值為 array
4897
- *
4898
- * params example:
4899
- * arrayMergeBySingleKey(data, 'id', {
4900
- * targetKeys: ['oriImgUrl'],
4901
- * newMergedKeys: ['oriImgUrls'],
4902
- * isShowIndex: true,
4903
- * omitKeys: ['oriImgUrl'],
4904
- * })
4905
- *
4906
- * @param {Array} input - 傳入的data。
4907
- * @param {String} sameKey - data中相同的key(id)。
4908
- * @param {Object} targetKeys {Array} - 欲merge的key。
4909
- * newMergedKeys {Array} - merged後的新key名稱【與targetKeys位置對應】
4910
- * isShowIndex {Boolean} - 該筆data是否顯示index
4911
- * omitKeys {Array} - 移除此筆data中的key
4912
- * @return {[object]} 回傳範例:
4913
- * [{id:1,source:["賴和"],images:[{image:xxxxxxx},{image:xxxxxxx}]},{id:2,source:"賴和",images:[{image:xxxxxxx},{image:xxxxxxx}]}]。
4894
+ /**
4895
+ * arrayMergeBySingleKey 函式功能說明。
4896
+ * 根據 id 合併其它所有鍵值為 array
4897
+ *
4898
+ * params example:
4899
+ * arrayMergeBySingleKey(data, 'id', {
4900
+ * targetKeys: ['oriImgUrl'],
4901
+ * newMergedKeys: ['oriImgUrls'],
4902
+ * isShowIndex: true,
4903
+ * omitKeys: ['oriImgUrl'],
4904
+ * })
4905
+ *
4906
+ * @param {Array} input - 傳入的data。
4907
+ * @param {String} sameKey - data中相同的key(id)。
4908
+ * @param {Object} targetKeys {Array} - 欲merge的key。
4909
+ * newMergedKeys {Array} - merged後的新key名稱【與targetKeys位置對應】
4910
+ * isShowIndex {Boolean} - 該筆data是否顯示index
4911
+ * omitKeys {Array} - 移除此筆data中的key
4912
+ * @return {[object]} 回傳範例:
4913
+ * [{id:1,source:["賴和"],images:[{image:xxxxxxx},{image:xxxxxxx}]},{id:2,source:"賴和",images:[{image:xxxxxxx},{image:xxxxxxx}]}]。
4914
4914
  */
4915
4915
  var arrayMergeBySingleKey = function arrayMergeBySingleKey(input, sameKey, _ref) {
4916
4916
  var targetKeys = _ref.targetKeys,
@@ -1,4 +1,4 @@
1
- import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a6e0e6e3.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-8dd26e1a.js';
2
2
 
3
3
  var fileDownload = function(data, filename, mime, bom) {
4
4
  var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data];
@@ -1,4 +1,4 @@
1
- import { b as _objectWithoutProperties, c as _objectSpread2 } from './_rollupPluginBabelHelpers-a6e0e6e3.js';
1
+ import { b as _objectWithoutProperties, c as _objectSpread2 } from './_rollupPluginBabelHelpers-8dd26e1a.js';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
4
  var queryString = {};
@@ -1,4 +1,4 @@
1
- import { _ as _toConsumableArray } from './_rollupPluginBabelHelpers-a6e0e6e3.js';
1
+ import { _ as _toConsumableArray } from './_rollupPluginBabelHelpers-8dd26e1a.js';
2
2
  import { s as snaDefine } from './snaDefine-6a2bcd94.js';
3
3
 
4
4
  var snaPreProcess = function snaPreProcess(_ref) {