@daoyi/nmtl-ui 2.0.1-beta.87 → 2.0.1-beta.88

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-2b5732e8.js → Autocomplete-24e9686d.js} +4 -4
  3. package/lib/components/Autocomplete.js +5 -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-305b69a0.js → Button-430d39e6.js} +1 -1
  9. package/lib/components/Button.js +2 -2
  10. package/lib/components/Carousel.js +61 -2
  11. package/lib/components/Checkbox.js +1 -1
  12. package/lib/components/CollapseContent.js +3 -3
  13. package/lib/components/{ContactModal-f33af93a.js → ContactModal-d37425b5.js} +7 -7
  14. package/lib/components/ContactModal.js +9 -9
  15. package/lib/components/{Drawer-f6842ba3.js → Drawer-ec47e780.js} +2 -2
  16. package/lib/components/Drawer.js +5 -5
  17. package/lib/components/Dropdown.js +2 -2
  18. package/lib/components/{Empty-bf77164f.js → Empty-dc5fc2fc.js} +1 -1
  19. package/lib/components/Empty.js +2 -2
  20. package/lib/components/ExportButton.js +2 -2
  21. package/lib/components/{ExtraTools-b9cbb205.js → ExtraTools-0ffc772b.js} +66 -5
  22. package/lib/components/ExtraTools.js +4 -4
  23. package/lib/components/Filter.js +3 -3
  24. package/lib/components/Footer.js +9 -9
  25. package/lib/components/{ForwardLink-f80fdf67.js → ForwardLink-15222b22.js} +6 -6
  26. package/lib/components/ForwardLink.js +3 -3
  27. package/lib/components/Header.js +8 -8
  28. package/lib/components/Image.js +2 -2
  29. package/lib/components/Input.js +1 -1
  30. package/lib/components/InputMethod.js +187 -197
  31. package/lib/components/{KeywordSearch-1883b67f.js → KeywordSearch-91167d24.js} +3 -3
  32. package/lib/components/KeywordSearch.js +6 -6
  33. package/lib/components/KeywordTicker.js +4 -4
  34. package/lib/components/Keywords.js +6 -6
  35. package/lib/components/Loading.js +1 -1
  36. package/lib/components/{Modal-7f799c2e.js → Modal-6b8c72d7.js} +3 -3
  37. package/lib/components/Modal.js +4 -4
  38. package/lib/components/{MoreButton-44d3b4fe.js → MoreButton-4d5d94da.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-7b672be8.js → Select-7da870e0.js} +3 -3
  44. package/lib/components/Select.js +4 -4
  45. package/lib/components/{Spin-8dc60bfe.js → Spin-9a07b106.js} +1 -1
  46. package/lib/components/Spin.js +2 -2
  47. package/lib/components/Table.js +1 -1
  48. package/lib/components/{Tooltip-6ebfa9c1.js → Tooltip-6d53cb6e.js} +2 -2
  49. package/lib/components/Tooltip.js +3 -3
  50. package/lib/components/{_rollupPluginBabelHelpers-a52356f6.js → _rollupPluginBabelHelpers-ed61ffc0.js} +42 -24
  51. package/lib/components/globalConfig.js +18 -3
  52. package/lib/components/{index-b76a85f4.js → index-f491ebce.js} +1 -1
  53. package/lib/utils/{_rollupPluginBabelHelpers-8dd26e1a.js → _rollupPluginBabelHelpers-a6e0e6e3.js} +42 -24
  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-e3803ee1.js → createSvgIcon-ff0e3b99.js} +0 -0
  60. /package/lib/components/{index-b47819f3.js → index-a6f22b92.js} +0 -0
@@ -1,8 +1,8 @@
1
- export { F as default } from './ForwardLink-f80fdf67.js';
2
- import './_rollupPluginBabelHelpers-a52356f6.js';
1
+ export { F as default } from './ForwardLink-15222b22.js';
2
+ import './_rollupPluginBabelHelpers-ed61ffc0.js';
3
3
  import 'react';
4
4
  import 'prop-types';
5
- import './index-b47819f3.js';
5
+ import './index-a6f22b92.js';
6
6
  import 'react-router-dom';
7
7
  import '@material-ui/core';
8
8
  import './style-inject.es-1f59c1d0.js';
@@ -1,27 +1,27 @@
1
- import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-ed61ffc0.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-b76a85f4.js';
4
+ import { c as classNames } from './index-f491ebce.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-1883b67f.js';
10
- import { S as Select } from './Select-7b672be8.js';
11
- import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-f6842ba3.js';
9
+ import { K as KeywordSearch } from './KeywordSearch-91167d24.js';
10
+ import { S as Select } from './Select-7da870e0.js';
11
+ import { c as checkLanguageSupport, D as Drawer, d as defaultSupportLanguage } from './Drawer-ec47e780.js';
12
12
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
13
13
  import './isObjectLike-e111475d.js';
14
14
  import './_commonjsHelpers-70de2c37.js';
15
15
  import 'axios';
16
- import './Autocomplete-2b5732e8.js';
16
+ import './Autocomplete-24e9686d.js';
17
17
  import '@material-ui/lab';
18
- import './createSvgIcon-e3803ee1.js';
18
+ import './createSvgIcon-ff0e3b99.js';
19
19
  import './defaultTheme-ed7746fe.js';
20
20
  import 'react-is';
21
21
  import '@material-ui/styles';
22
22
  import 'react-dom';
23
23
  import './toConsumableArray-dbe8af76.js';
24
- import './Empty-bf77164f.js';
24
+ import './Empty-dc5fc2fc.js';
25
25
 
26
26
  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.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}\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__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 .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--focus .header__logo {\n display: none !important;\n }\n\n .autocomplete__icon {\n display: none !important;\n }\n}";
27
27
  styleInject(css_248z);
@@ -1,6 +1,6 @@
1
- import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-ed61ffc0.js';
2
2
  import React__default, { useState } from 'react';
3
- import { c as classNames } from './index-b76a85f4.js';
3
+ import { c as classNames } from './index-f491ebce.js';
4
4
  import PropTypes from 'prop-types';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
@@ -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-b76a85f4.js';
3
+ import { c as classNames } from './index-f491ebce.js';
4
4
  import { OutlinedInput } from '@material-ui/core';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
@@ -1,7 +1,7 @@
1
- import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-ed61ffc0.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-b76a85f4.js';
4
+ import { c as classNames } from './index-f491ebce.js';
5
5
  import { ExpandMore, ExpandLess, Search } from '@material-ui/icons';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
7
  import { c as commonjsGlobal } from './_commonjsHelpers-70de2c37.js';
@@ -17867,51 +17867,50 @@ var TouchInputMethod = new function () {
17867
17867
  };
17868
17868
  var classList_supporting = true;
17869
17869
 
17870
- /**
17871
- required id:
17872
- * keyboard_id: default is 'input_method_keyboard'.
17873
- * candidate_id: default is 'input_method_candidate'.
17874
- * show_input_keys_id: default is 'input_method_show_input_keys'.
17875
-
17876
- optional classes:
17877
- * inputkey: input_method_inputkey
17878
- 字根鍵盤外觀。
17879
- * candidates: input_method_candidates
17880
- 候選字外觀。
17881
- * back_input_key: input_method_back_input_key
17882
- 指定「退一字根」控制項與外觀。
17883
- * clear_input_keys: input_method_clear_input_keys
17884
- 指定「清除字根」控制項與外觀。
17885
- * auto_clear_input_keys_mode: input_method_auto_clear_input_keys_mode
17886
- 指定「自動清除字根」控制項與外觀。
17887
- * auto_clear_input_keys_on: input_method_auto_clear_input_keys_on
17888
- 自動清除功能鈕啟動時外觀。
17889
- 若為函數而不是 CSS 類別名稱,則回呼之 (函數之 this 為控制項),並傳入 mode 參數
17890
- 表示 auto_clear_input_keys 改變後的狀態(型態為 boolean)。
17891
- * capital_toggle: input_method_capital_toggle
17892
- 指定「Caps」(大寫鎖定)控制項與外觀。
17893
- * capital_toggle_on: input_method_capital_toggle_on
17894
- Caps 啟動時外觀。
17895
- 若為函數而不是 CSS 類別名稱,則回呼之 (函數之 this 為控制項),並傳入 mode 參數
17896
- 表示大寫鎖定器改變後的狀態(型態為 boolean)。
17897
- * backspace_output_texts: input_method_backspace_output_texts
17898
- 指定「回刪一字」控制項與外觀。
17899
- * clear_output_texts: input_method_clear_output_texts
17900
- 指定「清除輸入內容」控制項與外觀。
17901
- * select_output_texts: input_method_select_output_texts
17902
- 指定「選取輸入內容」控制項與外觀。
17903
- * add_space_output_texts: input_method_add_space_output_texts
17904
- 指定「空白」控制項與外觀。
17905
- * add_newline_output_texts: input_method_add_newline_output_texts
17906
- 指定「換行」控制項與外觀。
17907
- * switch_engine: input_method_switch_engine
17908
- 指定「切換輸入法」控制項與外觀。
17909
- * goto_next: input_method_goto_next
17910
- 指定「移到下一欄位」控制項與外觀。
17911
- * goto_previous: input_method_goto_previous
17912
- 指定「移到上一欄位」控制項與外觀。
17913
- * end_composition: input_method_end_composition
17914
- 指定「結束輸入法」控制項與外觀。
17870
+ /**
17871
+ required id:
17872
+ * keyboard_id: default is 'input_method_keyboard'.
17873
+ * candidate_id: default is 'input_method_candidate'.
17874
+ * show_input_keys_id: default is 'input_method_show_input_keys'.
17875
+ optional classes:
17876
+ * inputkey: input_method_inputkey
17877
+ 字根鍵盤外觀。
17878
+ * candidates: input_method_candidates
17879
+ 候選字外觀。
17880
+ * back_input_key: input_method_back_input_key
17881
+ 指定「退一字根」控制項與外觀。
17882
+ * clear_input_keys: input_method_clear_input_keys
17883
+ 指定「清除字根」控制項與外觀。
17884
+ * auto_clear_input_keys_mode: input_method_auto_clear_input_keys_mode
17885
+ 指定「自動清除字根」控制項與外觀。
17886
+ * auto_clear_input_keys_on: input_method_auto_clear_input_keys_on
17887
+ 自動清除功能鈕啟動時外觀。
17888
+ 若為函數而不是 CSS 類別名稱,則回呼之 (函數之 this 為控制項),並傳入 mode 參數
17889
+ 表示 auto_clear_input_keys 改變後的狀態(型態為 boolean)
17890
+ * capital_toggle: input_method_capital_toggle
17891
+ 指定「Caps」(大寫鎖定)控制項與外觀。
17892
+ * capital_toggle_on: input_method_capital_toggle_on
17893
+ Caps 啟動時外觀。
17894
+ 若為函數而不是 CSS 類別名稱,則回呼之 (函數之 this 為控制項),並傳入 mode 參數
17895
+ 表示大寫鎖定器改變後的狀態(型態為 boolean)
17896
+ * backspace_output_texts: input_method_backspace_output_texts
17897
+ 指定「回刪一字」控制項與外觀。
17898
+ * clear_output_texts: input_method_clear_output_texts
17899
+ 指定「清除輸入內容」控制項與外觀。
17900
+ * select_output_texts: input_method_select_output_texts
17901
+ 指定「選取輸入內容」控制項與外觀。
17902
+ * add_space_output_texts: input_method_add_space_output_texts
17903
+ 指定「空白」控制項與外觀。
17904
+ * add_newline_output_texts: input_method_add_newline_output_texts
17905
+ 指定「換行」控制項與外觀。
17906
+ * switch_engine: input_method_switch_engine
17907
+ 指定「切換輸入法」控制項與外觀。
17908
+ * goto_next: input_method_goto_next
17909
+ 指定「移到下一欄位」控制項與外觀。
17910
+ * goto_previous: input_method_goto_previous
17911
+ 指定「移到上一欄位」控制項與外觀。
17912
+ * end_composition: input_method_end_composition
17913
+ 指定「結束輸入法」控制項與外觀。
17915
17914
  */
17916
17915
  this.set_controls = function (custom_keyboard_id, custom_candidate_id, custom_show_input_keys_id, optional_classes) {
17917
17916
  if (custom_keyboard_id) keyboard_id = custom_keyboard_id;
@@ -17922,8 +17921,8 @@ var TouchInputMethod = new function () {
17922
17921
  }
17923
17922
  };
17924
17923
 
17925
- /**
17926
- get css selector (id and class) of controls.
17924
+ /**
17925
+ get css selector (id and class) of controls.
17927
17926
  */
17928
17927
  this.get_controls = function () {
17929
17928
  return {
@@ -17934,75 +17933,68 @@ var TouchInputMethod = new function () {
17934
17933
  };
17935
17934
  };
17936
17935
 
17937
- /**
17938
- where to send converted result.
17939
- target must be a kind of text input control.
17936
+ /**
17937
+ where to send converted result.
17938
+ target must be a kind of text input control.
17940
17939
  */
17941
17940
  this.set_target = function (dom) {
17942
17941
  output = dom;
17943
17942
  };
17944
17943
 
17945
- /**
17946
- which control is the target of touch-ime.
17947
- Notice: you should not use this method to get focused control.
17944
+ /**
17945
+ which control is the target of touch-ime.
17946
+ Notice: you should not use this method to get focused control.
17948
17947
  */
17949
17948
  this.get_target = function () {
17950
17949
  return output;
17951
17950
  };
17952
17951
 
17953
- /**
17954
- 指定資源目錄路徑
17955
-
17956
- 預設是從 touch-ime.js 相同目錄下載入字根表等內容。
17957
-
17958
- 請注意瀏覽器的相同來源政策,如果你的字表資源放在不同來源伺服器,那麼你必須按照
17959
- W3 CORS 的建議,設置跨來源資源分享規則。
17960
- 若未設置 CORS ,那麼你在此只能指定資源目錄的路徑。例如 '/js/touch-ime/' 。
17961
-
17962
- See:
17963
- * http://www.w3.org/TR/cors/
17964
- * http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
17952
+ /**
17953
+ 指定資源目錄路徑
17954
+ 預設是從 touch-ime.js 相同目錄下載入字根表等內容。
17955
+ 請注意瀏覽器的相同來源政策,如果你的字表資源放在不同來源伺服器,那麼你必須按照
17956
+ W3 CORS 的建議,設置跨來源資源分享規則。
17957
+ 若未設置 CORS ,那麼你在此只能指定資源目錄的路徑。例如 '/js/touch-ime/' 。
17958
+ See:
17959
+ * http://www.w3.org/TR/cors/
17960
+ * http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
17965
17961
  */
17966
17962
  this.set_resources_path = function (path) {
17967
17963
  resources_path = path;
17968
17964
  if (path[path.length - 1] != '/') resources_path += '/';
17969
17965
  };
17970
17966
 
17971
- /**
17972
- According the class or type of input control to work with special input engine.
17973
- If engine is false, remove this rule.
17974
-
17975
- 1. If the control's class list contains input_class, touch-ime will auto switch
17976
- engine to engine_code.
17977
- 2. If the control's type equals to input_class, touch-ime will auto switch engine
17978
- to engine_code.
17979
- 3. Else touch-ime switch engine to default input method engine.
17980
-
17981
- 有些瀏覽器(特別是在移動設備上的),會針對某些特殊型態的輸入控制項,特化它的UI。
17982
- 例如碰到 datetime 的控制項,那些瀏覽器就會顯示日期挑選的 UI ,而不必使用者輸入文字。
17983
- 碰到這種瀏覽器,touch-ime 就不需要理會那些控制項。
17984
- 但麻煩的是目前還沒有通用方式可判斷瀏覽器有沒有為控制項提供特殊UI。
17967
+ /**
17968
+ According the class or type of input control to work with special input engine.
17969
+ If engine is false, remove this rule.
17970
+ 1. If the control's class list contains input_class, touch-ime will auto switch
17971
+ engine to engine_code.
17972
+ 2. If the control's type equals to input_class, touch-ime will auto switch engine
17973
+ to engine_code.
17974
+ 3. Else touch-ime switch engine to default input method engine.
17975
+ 有些瀏覽器(特別是在移動設備上的),會針對某些特殊型態的輸入控制項,特化它的UI。
17976
+ 例如碰到 datetime 的控制項,那些瀏覽器就會顯示日期挑選的 UI ,而不必使用者輸入文字。
17977
+ 碰到這種瀏覽器,touch-ime 就不需要理會那些控制項。
17978
+ 但麻煩的是目前還沒有通用方式可判斷瀏覽器有沒有為控制項提供特殊UI
17985
17979
  */
17986
17980
  this.specify_control_with_engine = function (input_class, engine_code) {
17987
17981
  // see also: according_input_type_switch_engine().
17988
17982
  if (engine_code) special_input_keyboard_map[input_class] = engine_code;else delete special_input_keyboard_map[input_class];
17989
17983
  };
17990
17984
 
17991
- /**
17992
- 若你增加或刪除輸入法字表,則你必須調用此方法載入你使用的輸入法引擎資訊。
17993
- 如下:
17994
- var new_engine_info = {
17995
- "zhuyin": {
17996
- "name": "注音"
17997
- },
17998
- "en": {
17999
- "name": "英數"
18000
- }
18001
- };
18002
-
18003
- TouchInputMethod.install_engine_info(new_engine_info);
18004
-
18005
- */
17985
+ /**
17986
+ 若你增加或刪除輸入法字表,則你必須調用此方法載入你使用的輸入法引擎資訊。
17987
+ 如下:
17988
+ var new_engine_info = {
17989
+ "zhuyin": {
17990
+ "name": "注音"
17991
+ },
17992
+ "en": {
17993
+ "name": "英數"
17994
+ }
17995
+ };
17996
+ TouchInputMethod.install_engine_info(new_engine_info);
17997
+ */
18006
17998
  this.install_engine_info = function (new_engine_info) {
18007
17999
  console.log('install engine info');
18008
18000
  engine_info = new_engine_info;
@@ -18015,17 +18007,17 @@ var TouchInputMethod = new function () {
18015
18007
  this.enable_engines(code_list);
18016
18008
  };
18017
18009
 
18018
- /**
18019
- enable engines. engine_code_list is an array of engine code name.
18020
- valid code name:
18021
- * zhuyin 注音
18022
- * pinyin 拼音
18023
- * en 英數
18024
- * enShift 英數
18025
- * array30 行列30
18026
- * cangjie3 倉頡第三代
18027
- * cangjie5 倉頡第五代
18028
- * quick 倉頡速成
18010
+ /**
18011
+ enable engines. engine_code_list is an array of engine code name.
18012
+ valid code name:
18013
+ * zhuyin 注音
18014
+ * pinyin 拼音
18015
+ * en 英數
18016
+ * enShift 英數
18017
+ * array30 行列30
18018
+ * cangjie3 倉頡第三代
18019
+ * cangjie5 倉頡第五代
18020
+ * quick 倉頡速成
18029
18021
  */
18030
18022
  this.enable_engines = function (engine_code_list) {
18031
18023
  let next;
@@ -18041,8 +18033,8 @@ var TouchInputMethod = new function () {
18041
18033
  this.change_engine(current_input_method_engine_name);
18042
18034
  };
18043
18035
 
18044
- /**
18045
- change input engine to engine_code.
18036
+ /**
18037
+ change input engine to engine_code.
18046
18038
  */
18047
18039
  this.change_engine = function (engine_code) {
18048
18040
  symbol_mode = false;
@@ -18051,17 +18043,15 @@ var TouchInputMethod = new function () {
18051
18043
  try_change_engine(engine_code);
18052
18044
  };
18053
18045
 
18054
- /**
18055
- 清除本地儲存的特殊字表
18056
-
18057
- 自本地儲存區(localStorage)中清除下列特殊字表的內容。
18058
- * en.tab (localStorage 名稱 input_method_en)
18059
- * s.tab (localStorage 名稱 input_method_s)
18060
- * w.tab (localStorage 名稱 input_method_w)
18061
-
18062
- touch-ime 會讀取特殊字表檔的內容並保存在本地儲存區。
18063
- 如果你修改了特殊字表檔的內容,則你必須調用 clean_local_table() 清除已儲存的內容,
18064
- touch-ime 才會重新讀取新的特殊字表檔內容(並再次保存於本地儲存區)。
18046
+ /**
18047
+ 清除本地儲存的特殊字表
18048
+ 自本地儲存區(localStorage)中清除下列特殊字表的內容。
18049
+ * en.tab (localStorage 名稱 input_method_en)
18050
+ * s.tab (localStorage 名稱 input_method_s)
18051
+ * w.tab (localStorage 名稱 input_method_w)
18052
+ touch-ime 會讀取特殊字表檔的內容並保存在本地儲存區。
18053
+ 如果你修改了特殊字表檔的內容,則你必須調用 clean_local_table() 清除已儲存的內容,
18054
+ touch-ime 才會重新讀取新的特殊字表檔內容(並再次保存於本地儲存區)。
18065
18055
  */
18066
18056
  this.clean_local_table = function () {
18067
18057
  if (!localStorage) return;
@@ -18087,18 +18077,18 @@ var TouchInputMethod = new function () {
18087
18077
  return input_keys;
18088
18078
  };
18089
18079
 
18090
- /**
18091
- TouchInputMethod 組字事件。
18080
+ /**
18081
+ TouchInputMethod 組字事件。
18092
18082
  */
18093
18083
  this.oncomposition = false;
18094
18084
 
18095
- /**
18096
- TouchInputMethod 結束組字事件。
18085
+ /**
18086
+ TouchInputMethod 結束組字事件。
18097
18087
  */
18098
18088
  this.oncompositionend = false;
18099
18089
 
18100
- /**
18101
- TouchInputMethod capital 模式改變事件。
18090
+ /**
18091
+ TouchInputMethod capital 模式改變事件。
18102
18092
  */
18103
18093
  this.oncapitalization = false;
18104
18094
  this.onsymbolization = false;
@@ -18124,15 +18114,15 @@ var TouchInputMethod = new function () {
18124
18114
 
18125
18115
  // step 2
18126
18116
  toggle_auto_clear_input_keys(); // turn on.
18127
- /*
18128
- if (auto_clear_input_keys) {
18129
- elms = document.getElementsByClassName(control_classes['auto_clear_input_keys_mode']);
18130
- if (elms.length > 0) {
18131
- for (i = 0; i < elms.length; ++i) {
18132
- class_list_add(elms[i], control_classes['auto_clear_input_keys_on']);
18133
- }
18134
- }
18135
- }
18117
+ /*
18118
+ if (auto_clear_input_keys) {
18119
+ elms = document.getElementsByClassName(control_classes['auto_clear_input_keys_mode']);
18120
+ if (elms.length > 0) {
18121
+ for (i = 0; i < elms.length; ++i) {
18122
+ class_list_add(elms[i], control_classes['auto_clear_input_keys_on']);
18123
+ }
18124
+ }
18125
+ }
18136
18126
  */
18137
18127
 
18138
18128
  // step 3
@@ -18165,21 +18155,21 @@ var TouchInputMethod = new function () {
18165
18155
  load_input_method_engine();
18166
18156
 
18167
18157
  // step 5
18168
- /*
18169
- document.onkeypress = function(event) {
18170
- //console.log("event.charCode: %s", event.charCode);
18171
- if (event.charCode in code_map) {
18172
- //console.log("input code: %s", code_map[event.charCode]);
18173
- input_code(code_map[event.charCode]);
18174
- }
18175
- return true;
18176
- }
18177
- document.onkeyup = function(event) {
18178
- if (event.keyCode == 8) {
18179
- back_input_key();
18180
- }
18181
- return true;
18182
- }
18158
+ /*
18159
+ document.onkeypress = function(event) {
18160
+ //console.log("event.charCode: %s", event.charCode);
18161
+ if (event.charCode in code_map) {
18162
+ //console.log("input code: %s", code_map[event.charCode]);
18163
+ input_code(code_map[event.charCode]);
18164
+ }
18165
+ return true;
18166
+ }
18167
+ document.onkeyup = function(event) {
18168
+ if (event.keyCode == 8) {
18169
+ back_input_key();
18170
+ }
18171
+ return true;
18172
+ }
18183
18173
  */
18184
18174
  // alert('行列30輸入法網頁點取版\nCopyright (c) 2012 遊手好閒的石頭成 (shirock.tw@gmail.com)\nLicensed by GPL.');
18185
18175
  };
@@ -18220,20 +18210,20 @@ var TouchInputMethod = new function () {
18220
18210
  if (n >= ic.inputs.length) n = 0;
18221
18211
  ic.inputs[n].focus();
18222
18212
 
18223
- /*
18224
- var kev = document.createEvent('KeyboardEvent');
18225
- kev.initKeyEvent('keypress', true, true, window,
18226
- false, // ctrl
18227
- false, // alt
18228
- false, // shift
18229
- false, // meta
18230
- 0x09, // keyCode
18231
- 0);
18232
- output.focus();
18233
- console.log("dispatch event");
18234
- //output.dispatchEvent(kev);
18235
- //document.dispatchEvent(kev);
18236
- // 無效。雖然dom會收到這個按鍵事件,但不會出現跳到下一欄位的效果。
18213
+ /*
18214
+ var kev = document.createEvent('KeyboardEvent');
18215
+ kev.initKeyEvent('keypress', true, true, window,
18216
+ false, // ctrl
18217
+ false, // alt
18218
+ false, // shift
18219
+ false, // meta
18220
+ 0x09, // keyCode
18221
+ 0);
18222
+ output.focus();
18223
+ console.log("dispatch event");
18224
+ //output.dispatchEvent(kev);
18225
+ //document.dispatchEvent(kev);
18226
+ // 無效。雖然dom會收到這個按鍵事件,但不會出現跳到下一欄位的效果。
18237
18227
  */
18238
18228
  // http://maythesource.com/2012/06/26/simulating-keypresses-keystrokes-with-javascript-for-use-with-greesemonkey-etc/
18239
18229
  // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
@@ -18470,17 +18460,17 @@ var TouchInputMethod = new function () {
18470
18460
  if (input_keys.length === 0) {
18471
18461
  output.focus(); // 讓使用者注意動作位置
18472
18462
  // execCommand('delete') not work with input control. see issue 2.
18473
- /*
18474
- // normal input control has contentEditable attrib and value is true.
18475
- if (document.queryCommandSupported('delete') && output.nodeName.toLowerCase() == 'div' && output.contentEditable) {
18476
- document.execCommand('delete', false, null);
18477
- }
18463
+ /*
18464
+ // normal input control has contentEditable attrib and value is true.
18465
+ if (document.queryCommandSupported('delete') && output.nodeName.toLowerCase() == 'div' && output.contentEditable) {
18466
+ document.execCommand('delete', false, null);
18467
+ }
18478
18468
  else */
18479
- /*
18480
- The selectionEnd attribute must, on getting, return the offset (in logical
18481
- order) to the character that immediately follows the end of the selection.
18482
- If there is no selection, then it must return the offset (in logical order)
18483
- to the character that immediately follows the text entry cursor.
18469
+ /*
18470
+ The selectionEnd attribute must, on getting, return the offset (in logical
18471
+ order) to the character that immediately follows the end of the selection.
18472
+ If there is no selection, then it must return the offset (in logical order)
18473
+ to the character that immediately follows the text entry cursor.
18484
18474
  W3 HTML5 - 4.10 Forms. */
18485
18475
  if (output.value.length < 1) return false;
18486
18476
  let txt = output.value;
@@ -18498,10 +18488,10 @@ var TouchInputMethod = new function () {
18498
18488
  function add_char_output_texts(ch) {
18499
18489
  output.focus(); // 讓使用者注意出字到什麼地方
18500
18490
  // execCommand('delete') not work with input control. see issue 2.
18501
- /*if (document.queryCommandSupported('insertText') && output.nodeName.toLowerCase() == 'div' && output.contentEditable) {
18502
- console.log('insertTExt');
18503
- document.execCommand('insertText', false, ch);
18504
- }
18491
+ /*if (document.queryCommandSupported('insertText') && output.nodeName.toLowerCase() == 'div' && output.contentEditable) {
18492
+ console.log('insertTExt');
18493
+ document.execCommand('insertText', false, ch);
18494
+ }
18505
18495
  else */
18506
18496
  let txt = output.value;
18507
18497
  let entry_cursor = output.selectionEnd;
@@ -18582,10 +18572,10 @@ var TouchInputMethod = new function () {
18582
18572
  for (ikb = 0; ikb < kbs.length; ++ikb) {
18583
18573
  kb_text = kbs[ikb].textContent;
18584
18574
  if (capital_mode && kb_text >= 'a' && kb_text <= 'z' && kb_text.length === 1) kbs[ikb].textContent = kb_text.toUpperCase();else if (!capital_mode && kb_text >= 'A' && kb_text <= 'Z' && kb_text.length === 1) kbs[ikb].textContent = kb_text.toLowerCase();
18585
- /* // 減少改寫 DOM 內容的次數
18586
- kbs[ikb].textContent = (capital_mode ?
18587
- kbs[ikb].textContent.toUpperCase() :
18588
- kbs[ikb].textContent.toLowerCase());
18575
+ /* // 減少改寫 DOM 內容的次數
18576
+ kbs[ikb].textContent = (capital_mode ?
18577
+ kbs[ikb].textContent.toUpperCase() :
18578
+ kbs[ikb].textContent.toLowerCase());
18589
18579
  */
18590
18580
  }
18591
18581
 
@@ -18725,12 +18715,12 @@ var TouchInputMethod = new function () {
18725
18715
  function bind_all_text_input_focus_handler() {
18726
18716
  let inputs = document.querySelectorAll('input, textarea');
18727
18717
  for (let i = 0; i < inputs.length; ++i) {
18728
- /*
18729
- if (this.type in special_input_keyboard_map &&
18730
- special_input_keyboard_map[this.type] == 'ignore')
18731
- {
18732
- continue;
18733
- }
18718
+ /*
18719
+ if (this.type in special_input_keyboard_map &&
18720
+ special_input_keyboard_map[this.type] == 'ignore')
18721
+ {
18722
+ continue;
18723
+ }
18734
18724
  */
18735
18725
  inputs[i].addEventListener('focus', function () {
18736
18726
  if (output != this) {
@@ -29801,15 +29791,15 @@ var jquery = {exports: {}};
29801
29791
  var $ = jquery.exports;
29802
29792
 
29803
29793
  /* eslint-disable */
29804
- /*
29805
- * rwdImageMaps jQuery plugin v1.6
29806
- *
29807
- * Allows image maps to be used in a responsive design by recalculating the area coordinates to match the actual image size on load and window.resize
29808
- *
29809
- * Copyright (c) 2016 Matt Stow
29810
- * https://github.com/stowball/jQuery-rwdImageMaps
29811
- * http://mattstow.com
29812
- * Licensed under the MIT license
29794
+ /*
29795
+ * rwdImageMaps jQuery plugin v1.6
29796
+ *
29797
+ * Allows image maps to be used in a responsive design by recalculating the area coordinates to match the actual image size on load and window.resize
29798
+ *
29799
+ * Copyright (c) 2016 Matt Stow
29800
+ * https://github.com/stowball/jQuery-rwdImageMaps
29801
+ * http://mattstow.com
29802
+ * Licensed under the MIT license
29813
29803
  */
29814
29804
 
29815
29805
  function rwdImageMaps ($img) {
@@ -1,10 +1,10 @@
1
- import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
1
+ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-ed61ffc0.js';
2
2
  import React__default, { useState, useEffect } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { c as classNames } from './index-b76a85f4.js';
4
+ import { c as classNames } from './index-f491ebce.js';
5
5
  import axios from 'axios';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
- import { A as Autocomplete } from './Autocomplete-2b5732e8.js';
7
+ import { A as Autocomplete } from './Autocomplete-24e9686d.js';
8
8
 
9
9
  var css_248z = ".keywordSearch {\n border-radius: 4px;\n width: 100%;\n margin-right: 14px;\n}\n.keywordSearch--animation .autocomplete {\n transition: max-width 0.3s ease-out;\n max-width: 240px;\n}\n.keywordSearch--focus {\n flex: 1;\n}\n.keywordSearch--focus .autocomplete {\n max-width: 100%;\n}\n.keywordSearch .MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiAutocomplete-inputRoot[class*=MuiOutlinedInput-root] {\n border-radius: 10px;\n background-color: #ffffff66;\n}";
10
10
  styleInject(css_248z);
@@ -1,21 +1,21 @@
1
- export { K as default } from './KeywordSearch-1883b67f.js';
2
- import './_rollupPluginBabelHelpers-a52356f6.js';
1
+ export { K as default } from './KeywordSearch-91167d24.js';
2
+ import './_rollupPluginBabelHelpers-ed61ffc0.js';
3
3
  import 'react';
4
4
  import 'prop-types';
5
- import './index-b76a85f4.js';
5
+ import './index-f491ebce.js';
6
6
  import 'axios';
7
7
  import './style-inject.es-1f59c1d0.js';
8
- import './Autocomplete-2b5732e8.js';
8
+ import './Autocomplete-24e9686d.js';
9
9
  import './debounce-127da66c.js';
10
10
  import './isObjectLike-e111475d.js';
11
11
  import './_commonjsHelpers-70de2c37.js';
12
12
  import '@material-ui/lab';
13
13
  import '@material-ui/core';
14
14
  import '@material-ui/icons';
15
- import './createSvgIcon-e3803ee1.js';
15
+ import './createSvgIcon-ff0e3b99.js';
16
16
  import './defaultTheme-ed7746fe.js';
17
17
  import 'react-is';
18
18
  import '@material-ui/styles';
19
19
  import 'react-dom';
20
20
  import './toConsumableArray-dbe8af76.js';
21
- import './Empty-bf77164f.js';
21
+ import './Empty-dc5fc2fc.js';