@alicloud/console-components-search 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +193 -0
  2. package/config/breezr.docs.config.ts +28 -0
  3. package/config/components-with-style.tsx +2 -0
  4. package/config/config.ts +14 -0
  5. package/config/demoOpts.ts +12 -0
  6. package/demos/demo1.demo.tsx +143 -0
  7. package/demos/demo2.demo.tsx +110 -0
  8. package/demos/demo3.demo.tsx +115 -0
  9. package/demos/demo4.demo.tsx +144 -0
  10. package/dist/index.css +1 -0
  11. package/dist/index.js +60 -0
  12. package/doc-dist/0.js +27 -0
  13. package/doc-dist/1.js +1928 -0
  14. package/doc-dist/10.js +6 -0
  15. package/doc-dist/11.js +6 -0
  16. package/doc-dist/12.js +6 -0
  17. package/doc-dist/13.js +6 -0
  18. package/doc-dist/14.js +6 -0
  19. package/doc-dist/15.js +6 -0
  20. package/doc-dist/16.js +6 -0
  21. package/doc-dist/17.js +6 -0
  22. package/doc-dist/18.js +6 -0
  23. package/doc-dist/19.js +6 -0
  24. package/doc-dist/20.js +6 -0
  25. package/doc-dist/3.js +104 -0
  26. package/doc-dist/4.js +6 -0
  27. package/doc-dist/5.js +13 -0
  28. package/doc-dist/6.css +1 -0
  29. package/doc-dist/6.js +6 -0
  30. package/doc-dist/6.os.css +1 -0
  31. package/doc-dist/7.js +6 -0
  32. package/doc-dist/8.js +6 -0
  33. package/doc-dist/9.js +6 -0
  34. package/doc-dist/console-fe-test-rc-search-doc.manifest.json +18 -0
  35. package/doc-dist/deps/console-fe-test-rc-search-doc-deps.manifest.json +18 -0
  36. package/doc-dist/deps/index.html +14 -0
  37. package/doc-dist/deps/main.css +1 -0
  38. package/doc-dist/deps/main.js +66 -0
  39. package/doc-dist/deps/main.os.css +1 -0
  40. package/doc-dist/index.css +1 -0
  41. package/doc-dist/index.html +14 -0
  42. package/doc-dist/index.js +19 -0
  43. package/doc-dist/index.os.css +1 -0
  44. package/doc-dist/log-deps-build.log +16 -0
  45. package/docs/markdown-render.doc.md +21 -0
  46. package/docs/test.doc.md +8 -0
  47. package/es/constants.js +6 -0
  48. package/es/index.js +7 -0
  49. package/es/modeSingleMulti/index.js +862 -0
  50. package/es/modeSingleSingle/index.js +213 -0
  51. package/es/provider/LoggerProvider.js +37 -0
  52. package/es/search.js +23 -0
  53. package/es/searchTagList/index.js +58 -0
  54. package/es/style.js +14 -0
  55. package/es/types/IRcSearchOptions.type.js +1 -0
  56. package/es/types/IRcSearchProps.type.js +1 -0
  57. package/es/types/IRcSearchTagItemProps.type.js +1 -0
  58. package/es/types/IRcSearchTagListProps.type.js +1 -0
  59. package/es/utils.js +149 -0
  60. package/lib/constants.d.ts +2 -0
  61. package/lib/constants.js +15 -0
  62. package/lib/index.d.ts +7 -0
  63. package/lib/index.js +55 -0
  64. package/lib/modeSingleMulti/index.d.ts +4 -0
  65. package/lib/modeSingleMulti/index.js +883 -0
  66. package/lib/modeSingleSingle/index.d.ts +4 -0
  67. package/lib/modeSingleSingle/index.js +237 -0
  68. package/lib/provider/LoggerProvider.d.ts +8 -0
  69. package/lib/provider/LoggerProvider.js +47 -0
  70. package/lib/search.d.ts +4 -0
  71. package/lib/search.js +42 -0
  72. package/lib/searchTagList/index.d.ts +4 -0
  73. package/lib/searchTagList/index.js +75 -0
  74. package/lib/style.d.ts +5 -0
  75. package/lib/style.js +34 -0
  76. package/lib/types/IRcSearchOptions.type.d.ts +26 -0
  77. package/lib/types/IRcSearchOptions.type.js +5 -0
  78. package/lib/types/IRcSearchProps.type.d.ts +76 -0
  79. package/lib/types/IRcSearchProps.type.js +5 -0
  80. package/lib/types/IRcSearchTagItemProps.type.d.ts +23 -0
  81. package/lib/types/IRcSearchTagItemProps.type.js +5 -0
  82. package/lib/types/IRcSearchTagListProps.type.d.ts +32 -0
  83. package/lib/types/IRcSearchTagListProps.type.js +5 -0
  84. package/lib/utils.d.ts +14 -0
  85. package/lib/utils.js +177 -0
  86. package/package.json +41 -0
package/doc-dist/10.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[10],{681:function(e,n,a){"use strict";a.r(n),a.d(n,"demo",(function(){return f})),a.d(n,"meta",(function(){return S})),a.d(n,"code",(function(){return h})),a.d(n,"imports",(function(){return g})),a.d(n,"deps",(function(){return b}));var t={};a.r(t),a.d(t,"default",(function(){return m}));var o=a(28),r=a(19),l=a.n(r),c=a(0),s=a.n(c),u=a(63),i=[{label:"实例名称",dataIndex:"name",template:"input",templateProps:{placeholder:"默认按实例名称搜索",dataSource:[]}}],d=[{label:"实例名称",dataIndex:"name",template:"input",templateProps:{placeholder:"默认按实例名称搜索",dataSource:[],fuzzyDisable:!0}}],p=[{label:"网络类型",dataIndex:"type",template:"select",templateProps:{placeholder:"请选择网络类型",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}}],m=function(e){function n(){return n=Object(o.a)(l.a.mark((function e(n,a){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",["".concat(n,"-1"),"".concat(n,"-2"),"".concat(n,"-3"),"".concat(n,"-4"),"".concat(n,"-5")]);case 3:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}function a(e,n){var a=[];return e||(a=[]),a=["".concat(e,"-1"),"".concat(e,"-2"),"".concat(e,"-3"),"".concat(e,"-4"),"".concat(e,"-5")],Promise.resolve(a)}function t(e,n){return r.apply(this,arguments)}function r(){return r=Object(o.a)(l.a.mark((function e(n,a){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("changedFileds:",n,"allFileds",a);case 1:case"end":return e.stop()}}),e)}))),r.apply(this,arguments)}function c(e){return m.apply(this,arguments)}function m(){return m=Object(o.a)(l.a.mark((function e(n){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("onSearch:","allFileds",n),console.log("提交搜索: ".concat(JSON.stringify(n)));case 2:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}return s.a.createElement("div",null,"搜索类型:(async 调用)",s.a.createElement("br",null),s.a.createElement(u.Search,{mode:"single-single",regionId:"demo",resourceType:"demo",options:i,onSuggest:function(e,a){return n.apply(this,arguments)},onChange:t,onSearch:c}),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),"搜索类型:(promise调用)",s.a.createElement("br",null),s.a.createElement(u.Search,{mode:"single-single",regionId:"demo",resourceType:"demo",options:i,onSuggest:a,onChange:t,onSearch:c}),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),"搜索类型:(不支持模糊搜索 fuzzyDisable: true)",s.a.createElement("br",null),s.a.createElement(u.Search,{mode:"single-single",regionId:"demo",resourceType:"demo",options:d,onSuggest:a,onChange:t,onSearch:c}),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("br",null),"单选类型:",s.a.createElement("br",null),s.a.createElement(u.Search,{mode:"single-single",regionId:"demo",resourceType:"demo",options:p,onChange:t,onSearch:c}),s.a.createElement("br",null),"单维度单类别,暂不支持多选")};const g=["react","@alicloud/console-components-search"],h="/**\n * @title 场景一\n * @describe 场景一:single-single:单维度单类别单选.\n */\n\nimport React from \"react\";\nimport { Search, IRcSearchProps } from \"@alicloud/console-components-search\";\n\n// interface IProps {}\n\nlet options = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '默认按实例名称搜索',\n dataSource: []\n }\n }\n]\n\nlet noFuzzyoptions = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '默认按实例名称搜索',\n dataSource: [],\n fuzzyDisable: true // 不支持模糊搜索 \n }\n }\n]\n\nlet options2 = [\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择网络类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n }\n]\n\nconst Demo1: React.FC<IRcSearchProps> = (props) => {\n\n async function onSuggestAsync (value: string, dataIndex: string) {\n if (!value) {\n return [];\n }\n return [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n }\n function onSuggestPromise (value: string, dataIndex: string) {\n let rtList = [];\n if (!value) {\n rtList = [];\n }\n rtList = [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n return Promise.resolve(rtList)\n }\n\n async function onChange1 (changedFileds:any, allFileds:any) {\n console.log(`changedFileds:`, changedFileds, 'allFileds', allFileds)\n }\n\n async function onSearch (allFileds:any) {\n console.log(`onSearch:`, 'allFileds', allFileds)\n console.log(`提交搜索: ${JSON.stringify(allFileds)}`)\n }\n\n return (\n <div>\n 搜索类型:(async 调用)<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options}\n onSuggest={onSuggestAsync}\n onChange={onChange1}\n onSearch={onSearch}\n />\n <br /><br /><br />\n 搜索类型:(promise调用)<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options}\n onSuggest={onSuggestPromise}\n onChange={onChange1}\n onSearch={onSearch} \n />\n <br /><br /><br />\n 搜索类型:(不支持模糊搜索 fuzzyDisable: true)<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={noFuzzyoptions}\n onSuggest={onSuggestPromise}\n onChange={onChange1}\n onSearch={onSearch} \n />\n <br /><br /><br />\n 单选类型:<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options2}\n onChange={onChange1}\n onSearch={onSearch}\n />\n <br />\n 单维度单类别,暂不支持多选\n </div>\n );\n};\n\nexport default Demo1;\n",b={react:c,"@alicloud/console-components-search":u},{default:f,meta:S={}}=t}}]);
6
+ }})
package/doc-dist/11.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[11],{682:function(n,e,a){"use strict";a.r(e),a.d(e,"demo",(function(){return f})),a.d(e,"meta",(function(){return b})),a.d(e,"code",(function(){return h})),a.d(e,"imports",(function(){return g})),a.d(e,"deps",(function(){return m}));var t={};a.r(t),a.d(t,"default",(function(){return p}));var l=a(28),o=a(1),c=a(19),r=a.n(c),s=a(0),u=a.n(s),i=a(63),d=[{label:"实例名称",dataIndex:"name",template:"input",templateProps:{placeholder:"按实例名称搜索",dataSource:[]}},{label:"网络类型",dataIndex:"type",template:"select",templateProps:{placeholder:"请选择网络类型",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}},{label:"付费类型",dataIndex:"pay",template:"multiple",templateProps:{placeholder:"请选择付费类型",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}}],p=function(n){var e=Object(s.useState)([]),a=Object(o.a)(e,2),t=a[0],c=a[1];function p(){return p=Object(l.a)(r.a.mark((function n(e,a){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return",[]);case 2:return n.abrupt("return",["".concat(e,"-1"),"".concat(e,"-2"),"".concat(e,"-3"),"".concat(e,"-4"),"".concat(e,"-5")]);case 3:case"end":return n.stop()}}),n)}))),p.apply(this,arguments)}function g(){return g=Object(l.a)(r.a.mark((function n(e,a){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:console.log("changedFileds:",e,"allFileds",a);case 1:case"end":return n.stop()}}),n)}))),g.apply(this,arguments)}function h(){return h=Object(l.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:console.log("onSearch:","allFileds",e),console.log("提交搜索: ".concat(JSON.stringify(e)));case 2:case"end":return n.stop()}}),n)}))),h.apply(this,arguments)}return u.a.createElement("div",null,u.a.createElement(i.Search,{mode:"single-multi",defaultDataIndex:"name",regionId:"demo",resourceType:"demo",options:d,onChange:function(n,e){return g.apply(this,arguments)},onSuggest:function(n,e){return p.apply(this,arguments)},onTagChange:function(n){console.log("onTagChange:",n),c(n)},onSearch:function(n){return h.apply(this,arguments)},tags:t}),u.a.createElement(i.SearchTagList,{regionId:"demo",resourceType:"demo",style:{marginTop:"8px"},tagList:t,onChange:function(n){console.log("onTagChange:",n),c(n)}}))};const g=["react","@alicloud/console-components-search"],h="/**\n * @title 场景二 + 结合SearchTagList使用\n * @describe 场景二:single-multi:单维度多类别单选\n * @canFullScreen\n */\n\nimport React, {useState} from \"react\";\nimport { Search, IRcSearchProps, SearchTagList } from \"@alicloud/console-components-search\";\n\n// interface IProps {}\nlet options = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '按实例名称搜索',\n dataSource: []\n }\n },\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择网络类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n },\n {\n label: '付费类型',\n dataIndex: 'pay',\n template: 'multiple',\n templateProps: {\n placeholder: '请选择付费类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n }\n]\n\nconst Demo2: React.FC<IRcSearchProps> = (props) => {\n const [tagList, setTagList] = useState<any>([]);\n\n async function onSuggest (value: string, dataIndex: string) {\n if (!value) {\n return [];\n }\n return [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n }\n\n async function onChange (changedFileds:any, allFileds:any) {\n console.log(`changedFileds:`, changedFileds, 'allFileds', allFileds)\n }\n\n function onTagChange(newTags: any) {\n console.log(`onTagChange:`, newTags);\n setTagList(newTags);\n }\n\n function onTagChangeByTagList (newTags: any) {\n console.log(`onTagChange:`, newTags);\n setTagList(newTags);\n \n }\n\n async function onSearch (allFileds:any) {\n console.log(`onSearch:`, 'allFileds', allFileds)\n console.log(`提交搜索: ${JSON.stringify(allFileds)}`)\n }\n\n\n return (\n <div>\n <Search\n mode=\"single-multi\"\n defaultDataIndex=\"name\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options}\n onChange={onChange}\n onSuggest={onSuggest}\n onTagChange={onTagChange}\n onSearch={onSearch}\n tags={tagList}\n />\n <SearchTagList regionId=\"demo\" resourceType=\"demo\" style={{marginTop: '8px'}} tagList={tagList} onChange={onTagChangeByTagList} />\n \n </div>\n \n )\n};\n \nexport default Demo2;\n",m={react:s,"@alicloud/console-components-search":i},{default:f,meta:b={}}=t}}]);
6
+ }})
package/doc-dist/12.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[12],{683:function(e,n,a){"use strict";a.r(n),a.d(n,"demo",(function(){return f})),a.d(n,"meta",(function(){return y})),a.d(n,"code",(function(){return h})),a.d(n,"imports",(function(){return g})),a.d(n,"deps",(function(){return b}));var t={};a.r(t),a.d(t,"default",(function(){return m}));var l=a(28),o=a(1),r=a(19),c=a.n(r),u=a(0),s=a.n(u),i=a(63),d=a(64),p=[{label:"实例名称",dataIndex:"name",template:"input",templateProps:{placeholder:"按实例名称搜索",dataSource:[]}},{label:"网络类型",dataIndex:"type",template:"select",templateProps:{placeholder:"请选择网络类型",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}},{label:"付费类型",dataIndex:"pay",template:"multiple",templateProps:{placeholder:"请选择付费类型",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}}],m=function(e){var n=Object(u.useState)([]),a=Object(o.a)(n,2),t=a[0],r=a[1];function m(){return m=Object(l.a)(c.a.mark((function e(n,a){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",["".concat(n,"-1"),"".concat(n,"-2"),"".concat(n,"-3"),"".concat(n,"-4"),"".concat(n,"-5")]);case 3:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function g(){return g=Object(l.a)(c.a.mark((function e(n,a){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("changedFileds:",n,"allFileds",a);case 1:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function h(e){console.log("onTagChange:",e),r(e)}function b(){return b=Object(l.a)(c.a.mark((function e(n){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("onSearch:","allFileds",n),console.log("提交搜索: ".concat(JSON.stringify(n)));case 2:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}return s.a.createElement("div",null,s.a.createElement("p",null,"有默认分类: 实例名称"),s.a.createElement("div",null,s.a.createElement(d.Button,{type:"primary",style:{marginRight:"10px"}},"主按钮"),s.a.createElement(i.Search,{mode:"multi-multi",defaultDataIndex:"name",regionId:"demo",resourceType:"demo",options:p,onChange:function(e,n){return g.apply(this,arguments)},onSuggest:function(e,n){return m.apply(this,arguments)},onTagChange:h,onSearch:function(e){return b.apply(this,arguments)},tags:t,style:{marginRight:"10px",width:"500px"}}),s.a.createElement(d.Button,{type:"normal"},"普通按钮")),s.a.createElement(i.SearchTagList,{regionId:"demo",resourceType:"demo",style:{marginTop:"8px"},tagList:t,onChange:h}),s.a.createElement(d.Table,null,s.a.createElement(d.Table.Column,{title:"Key",dataIndex:"key"}),s.a.createElement(d.Table.Column,{title:"实例ID/名称",dataIndex:"id"}),s.a.createElement(d.Table.Column,{title:"状态",dataIndex:"status"})))};const g=["react","@alicloud/console-components-search","@alicloud/console-components"],h="/**\n * @title 场景三 + 结合表格使用\n * @describe 场景三:multi-multi:多维度多类别单选\n * @canFullScreen\n */\n\nimport React, {useState} from \"react\";\nimport { Search, IRcSearchProps, SearchTagList } from \"@alicloud/console-components-search\";\nimport { Button, Table } from '@alicloud/console-components'\n// interface IProps {}\nlet options = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '按实例名称搜索',\n dataSource: []\n }\n },\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择网络类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n },\n {\n label: '付费类型',\n dataIndex: 'pay',\n template: 'multiple',\n templateProps: {\n placeholder: '请选择付费类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n }\n]\n \nconst Demo3: React.FC<IRcSearchProps> = (props) => {\n const [tagList, setTagList] = useState<any>([]);\n\n async function onSuggest (value: string, dataIndex: string) {\n if (!value) {\n return [];\n }\n return [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n }\n\n async function onChange (changedFileds:any, allFileds:any) {\n console.log(`changedFileds:`, changedFileds, 'allFileds', allFileds)\n }\n\n function onTagChange(newTags: any) {\n console.log(`onTagChange:`, newTags);\n setTagList(newTags);\n }\n\n async function onSearch (allFileds:any) {\n console.log(`onSearch:`, 'allFileds', allFileds)\n console.log(`提交搜索: ${JSON.stringify(allFileds)}`)\n }\n\n return (\n <div>\n <p>有默认分类: 实例名称</p>\n <div>\n <Button type=\"primary\" style={{marginRight: '10px'}}>主按钮</Button>\n <Search\n mode=\"multi-multi\"\n defaultDataIndex=\"name\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options}\n onChange={onChange}\n onSuggest={onSuggest}\n onTagChange={onTagChange}\n onSearch={onSearch}\n tags={tagList}\n style={{marginRight: '10px', width: '500px'}}\n />\n <Button type=\"normal\">普通按钮</Button>\n\n </div>\n \n <SearchTagList regionId=\"demo\" resourceType=\"demo\" style={{marginTop: '8px'}} tagList={tagList} onChange={onTagChange} />\n <Table>\n <Table.Column title=\"Key\" dataIndex=\"key\" />\n <Table.Column title=\"实例ID/名称\" dataIndex=\"id\" />\n <Table.Column title=\"状态\" dataIndex=\"status\" />\n </Table>\n </div>\n \n )\n};\n\nexport default Demo3;\n",b={react:u,"@alicloud/console-components-search":i,"@alicloud/console-components":d},{default:f,meta:y={}}=t}}]);
6
+ }})
package/doc-dist/13.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[13],{684:function(e,n,a){"use strict";a.r(n),a.d(n,"demo",(function(){return v})),a.d(n,"meta",(function(){return f})),a.d(n,"code",(function(){return b})),a.d(n,"imports",(function(){return g})),a.d(n,"deps",(function(){return h}));var t={};a.r(t),a.d(t,"default",(function(){return m}));var l=a(28),o=a(1),c=a(19),r=a.n(c),u=a(0),d=a.n(u),s=a(63),i=a(64),p=(i.Radio.Group,[{label:"实例名称",dataIndex:"name",template:"input",templateProps:{placeholder:"请输入",dataSource:[]}},{label:"密钥名称",dataIndex:"netkey",template:"input",templateProps:{placeholder:"请输入",dataSource:[]}},{label:"网络类型",dataIndex:"type",template:"select",templateProps:{placeholder:"请选择",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}},{label:"付费类型",dataIndex:"pay",template:"multiple",templateProps:{placeholder:"请选择",dataSource:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"}]}}]),m=function(e){var n=Object(u.useState)([]),a=Object(o.a)(n,2),t=a[0],c=a[1];function i(){return i=Object(l.a)(r.a.mark((function e(n,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(),n){e.next=3;break}return e.abrupt("return",[]);case 3:return e.abrupt("return",["".concat(n,"-1"),"".concat(n,"-2"),"".concat(n,"-3"),"".concat(n,"-4"),"".concat(n,"-5")]);case 4:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function m(){return m=Object(l.a)(r.a.mark((function e(n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",[{label:"实例名称",dataIndex:"name",children:[{label:"".concat(n,"-1"),value:"".concat(n,"-1"),dataIndex:"name"},{label:"".concat(n,"-2"),value:"".concat(n,"-2"),dataIndex:"name"},{label:"".concat(n,"-3"),value:"".concat(n,"-3"),dataIndex:"name"}]},{label:"密钥名称",dataIndex:"netkey",children:[{label:"".concat(n,"-1"),value:"".concat(n,"-1"),dataIndex:"name"},{label:"".concat(n,"-2"),value:"".concat(n,"-2"),dataIndex:"name"},{label:"".concat(n,"-3"),value:"".concat(n,"-3"),dataIndex:"name"}]}]);case 3:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function g(){return g=Object(l.a)(r.a.mark((function e(n,a){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("changedFileds:",n,"allFileds",a);case 1:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function b(e){console.log("onTagChange:",e),c(e)}function h(){return h=Object(l.a)(r.a.mark((function e(n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("onSearch:","allFileds",n),console.log("提交搜索: ".concat(JSON.stringify(n)));case 2:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}return d.a.createElement("div",null,d.a.createElement("p",null,"无默认分类, 默认多类别搜索"),d.a.createElement(s.Search,{mode:"multi-multi",options:p,regionId:"demo",resourceType:"demo",onChange:function(e,n){return g.apply(this,arguments)},onSuggest:function(e,n){return i.apply(this,arguments)},defaultPlaceholder:"请搜索",onSuggestNoDataIndex:function(e){return m.apply(this,arguments)},onTagChange:b,onSearch:function(e){return h.apply(this,arguments)},tags:t}),d.a.createElement(s.SearchTagList,{regionId:"demo",resourceType:"demo",style:{marginTop:"8px"},tagList:t,onChange:b}),d.a.createElement("br",null),d.a.createElement("br",null),d.a.createElement("br",null))};const g=["react","@alicloud/console-components-search","@alicloud/console-components"],b="/**\n * @title 场景三 + 无默认类别\n * @describe 场景三:multi-multi:多维度多类别单选\n * @canFullScreen\n */\n\nimport React, {useState} from \"react\";\nimport { Search, IRcSearchProps, SearchTagList } from \"@alicloud/console-components-search\";\nimport { Radio } from '@alicloud/console-components'\n\nconst RadioGroup = Radio.Group;\n// interface IProps {}\nlet options = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '请输入',\n dataSource: []\n }\n },\n {\n label: '密钥名称',\n dataIndex: 'netkey',\n template: 'input',\n templateProps: {\n placeholder: '请输入',\n dataSource: []\n }\n },\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n },\n {\n label: '付费类型',\n dataIndex: 'pay',\n template: 'multiple',\n templateProps: {\n placeholder: '请选择',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n }\n]\n \nconst Demo3: React.FC<IRcSearchProps> = (props) => {\n const [tagList, setTagList] = useState<any>([]);\n\n async function onSuggest (value: string, dataIndex: string) {\n console.log()\n if (!value) {\n return [];\n }\n return [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n }\n\n async function onSuggestNoIndex (value: string) {\n if (!value) {\n return [];\n }\n \n return [\n {\n label: '实例名称',\n dataIndex: 'name',\n children: [\n {label: `${value}-1`, value: `${value}-1`, dataIndex: 'name'},\n {label: `${value}-2`, value: `${value}-2`, dataIndex: 'name'},\n {label: `${value}-3`, value: `${value}-3`, dataIndex: 'name'},\n ]\n },\n {\n label: '密钥名称',\n dataIndex: 'netkey',\n children: [\n {label: `${value}-1`, value: `${value}-1`, dataIndex: 'name'},\n {label: `${value}-2`, value: `${value}-2`, dataIndex: 'name'},\n {label: `${value}-3`, value: `${value}-3`, dataIndex: 'name'},\n ]\n }\n ]\n }\n\n async function onChange (changedFileds:any, allFileds:any) {\n console.log(`changedFileds:`, changedFileds, 'allFileds', allFileds)\n }\n\n function onTagChange(newTags: any) {\n console.log(`onTagChange:`, newTags);\n setTagList(newTags);\n }\n\n async function onSearch (allFileds:any) {\n console.log(`onSearch:`, 'allFileds', allFileds)\n console.log(`提交搜索: ${JSON.stringify(allFileds)}`)\n }\n\n return (\n <div>\n <p>无默认分类, 默认多类别搜索</p>\n <Search\n mode=\"multi-multi\"\n options={options}\n regionId=\"demo\"\n resourceType=\"demo\"\n onChange={onChange}\n onSuggest={onSuggest}\n defaultPlaceholder=\"请搜索\"\n onSuggestNoDataIndex={onSuggestNoIndex}\n onTagChange={onTagChange}\n onSearch={onSearch}\n tags={tagList}\n />\n <SearchTagList regionId=\"demo\" resourceType=\"demo\" style={{marginTop: '8px'}} tagList={tagList} onChange={onTagChange} />\n <br /><br /><br />\n </div>\n \n )\n};\n\nexport default Demo3;\n",h={react:u,"@alicloud/console-components-search":s,"@alicloud/console-components":i},{default:v,meta:f={}}=t}}]);
6
+ }})
package/doc-dist/14.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[14],{686:function(n,e,c){"use strict";c.r(e);var s=c(0),o=c.n(s),t=c(130);e.default=n=>o.a.createElement(t.a,Object.assign({source:"基础搜索组件。\n\n# 三种场景\n\n1. 场景一:单维度单类别\n2. 场景二:单维度多类别\n3. 场景三:多维度多类别\n\n## 场景一\n\n单维度单类别\n\n## 场景二\n\n单维度多类别\n\n## 场景三\n\n多维度多类别\n\n\n"},n))}}]);
6
+ }})
package/doc-dist/15.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[15],{687:function(n,e,t){"use strict";t.r(e);var a=t(0),c=t.n(a),o=t(130);e.default=n=>c.a.createElement(o.a,Object.assign({source:"## markdown fragment\n\ntest **markdown** fragment.\n\n\n### markdown fragment nested title\n\ncontent\n"},n))}}]);
6
+ }})
package/doc-dist/16.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[16],{688:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return o}));var o={name:"IRcSearchOptionsProps",documentation:"",properties:[{name:"label",typeText:" string",documentation:"字段展示名称"},{name:"dataIndex",typeText:" string",documentation:"字段表单key"},{name:"template",typeText:" string",documentation:"字段,交互组件类型(input/select/multiple)<br />\n - input:搜索框<br />\n - select:单选<br />\n - multiple:多选<br />"},{name:"templateProps",typeText:" any",documentation:"定义传给表单项的属性\ntemplateProps.placeholder\ntemplateProps.dataSource"}]}}}]);
6
+ }})
package/doc-dist/17.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[17],{689:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return a}));var a={name:"IRcSearchProps",documentation:"",properties:[{name:"mode",typeText:' "single-single" | "single-multi" | "multi-multi" | string',documentation:"组件适应的场景:<br />\n - 场景一:single-single:单维度单类别单选<br />\n - 场景二:single-multi:单维度多类别单选<br />\n - 场景三:multi-multi:多维度多类别单选<br />",defaultValue:'"single-single"'},{name:"className",typeText:" string",documentation:"类名"},{name:"style",typeText:" any",documentation:"样式"},{name:"options",typeText:" IRcSearchOptionsProps[]",documentation:"对应不同场景值的类型数组,后面要详细展开列一下",defaultValue:"[]"},{name:"tags",typeText:" IRcSearchTagItemProps[]",documentation:"tags 传入的taglist, 用于, 同步"},{name:"defaultDataIndex",typeText:" string",documentation:'默认类别\n仅在mode是"single-multi" | "multi-multi"生效'},{name:"defaultPlaceholder",typeText:" string",documentation:'默认placeholder\n仅在mode是"single-multi" | "multi-multi"生效, 且, 未配置默认值时生效'},{name:"regionId",typeText:" string",documentation:"regionId"},{name:"resourceType",typeText:" string",documentation:"resourceType"},{name:"onSearch",typeText:" (allFileds: any) => void",documentation:"点击搜索按钮, 触发搜索回调。"},{name:"onChange",typeText:" (changeFileds: any, allFileds: any) => void",documentation:"包括onInput的回车;onSelect; 对Tag的增减。"},{name:"onInput",typeText:" () => void",documentation:"input的input"},{name:"onSuggest",typeText:" (value: string, dataIndex: string) => void",documentation:"模糊搜索的回调函数(仅输入框返回),用于构建模糊搜索的联想列表"},{name:"onSuggestNoDataIndex",typeText:" (value: string) => Promise<any>",documentation:"模糊搜索的回调函数(仅输入框返回),当没设置defaultDataIndex,且有多个input类别时触发,\n可自定义二级返回List"},{name:"onSelect",typeText:" () => void",documentation:"提供单选和多选, 触发。"},{name:"onTagChange",typeText:" (newTags: any) => void",documentation:"tag有增减时。"}]}}}]);
6
+ }})
package/doc-dist/18.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[18],{690:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return o}));var o={name:"IRcSearchTagItemProps",documentation:"这是IRcSearchTagItemProps的说明。breezr-docs支持从源码中提取接口信息并文档化,因此你可以使用接口来定义Props,从而能便捷地将Props的信息通过文档透出。\n\n下面列举的props其实是随便写的,仅仅用来说明breezr-docs的接口提取功能。",properties:[{name:"label",typeText:" string",documentation:"tag的类别展示名称"},{name:"dataIndex",typeText:" string",documentation:"tag的类别的key"},{name:"value",typeText:" any",documentation:"tag的类别的值"},{name:"valueShow",typeText:" string",documentation:"tag的类别的展示值"}]}}}]);
6
+ }})
package/doc-dist/19.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[19],{691:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return o}));var o={name:"IRcSearchTagListProps",documentation:"",properties:[{name:"className",typeText:" string",documentation:"类名"},{name:"style",typeText:" any",documentation:"样式"},{name:"tagList",typeText:" IRcSearchTagItemProps[]",documentation:"tags 传入的taglist, 用于, 同步"},{name:"regionId",typeText:" string",documentation:"regionId"},{name:"resourceType",typeText:" string",documentation:"resourceType"},{name:"onChange",typeText:" (newTags: any) => void",documentation:"当删减tag时, 返回新的taglist, 可直接赋值给rc-search组件"}]}}}]);
6
+ }})
package/doc-dist/20.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[20],{676:function(e,t,n){"use strict";n.r(t);var r=n(3),l=n(2),a=n(0),c=n.n(a),o=n(130);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={p:function(e){return c.a.createElement("p",Object(r.a)({style:i({margin:0},e.style)},e))},ul:function(e){return c.a.createElement("ul",e)},ol:function(e){return c.a.createElement("ol",e)},li:function(e){return c.a.createElement("li",e)}},m={width:"100%",overflowX:"auto"};t.default=function(e){var t=e.typeInfo;return c.a.createElement("div",{style:m},c.a.createElement(o.c.table,null,c.a.createElement("colgroup",null,c.a.createElement("col",{span:1,style:{width:"15%"}}),c.a.createElement("col",{span:1,style:{width:"15%"}}),c.a.createElement("col",{span:1,style:{width:"60%"}}),c.a.createElement("col",{span:1,style:{width:"10%"}})),c.a.createElement(o.c.thead,null,c.a.createElement("tr",null,c.a.createElement("th",null,"名称"),c.a.createElement("th",null,"类型"),c.a.createElement("th",null,"说明"),c.a.createElement("th",null,"默认值"))),c.a.createElement(o.c.tbody,null,t.properties.map((function(e,t){return c.a.createElement("tr",{key:t},c.a.createElement("td",null,e.name),c.a.createElement("td",null,c.a.createElement(o.c.inlinecode,null,e.typeText)),c.a.createElement("td",null,c.a.createElement(o.a,{source:e.documentation,components:s})),c.a.createElement("td",null,e.defaultValue&&c.a.createElement(o.c.inlinecode,null,e.defaultValue)))})))))}}}]);
6
+ }})
package/doc-dist/3.js ADDED
@@ -0,0 +1,104 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[3],{165:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node||e;if((({leadingComments:e})=>!!e&&e.some(e=>/[@#]__PURE__/.test(e.value)))(t))return;i(t,"leading","#__PURE__")};var r=s(65);const{addComment:i}=r},280:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,Object.defineProperty(t,"environmentVisitor",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"skipAllButComputedKey",{enumerable:!0,get:function(){return o.skipAllButComputedKey}});var r=s(74),i=s(281),n=s(282),o=s(103),a=s(65);const{assignmentExpression:l,booleanLiteral:d,callExpression:p,cloneNode:c,identifier:u,memberExpression:f,sequenceExpression:m,stringLiteral:h,thisExpression:y}=a;function b(e,t,s,r){e=c(e);const i=t||r?e:f(e,u("prototype"));return p(s.addHelper("getPrototypeOf"),[i])}const g=r.default.visitors.merge([o.default,{Super(e,t){const{node:s,parentPath:r}=e;r.isMemberExpression({object:s})&&t.handle(r)}}]),v=r.default.visitors.merge([o.default,{Scopable(e,{refName:t}){const s=e.scope.getOwnBinding(t);s&&s.identifier.name===t&&e.scope.rename(t)}}]),E={memoise(e,t){const{scope:s,node:r}=e,{computed:i,property:n}=r;if(!i)return;const o=s.maybeGenerateMemoised(n);o&&this.memoiser.set(n,o,t)},prop(e){const{computed:t,property:s}=e.node;return this.memoiser.has(s)?c(this.memoiser.get(s)):t?c(s):h(s.name)},get(e){return this._get(e,this._getThisRefs())},_get(e,t){const s=b(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return p(this.file.addHelper("get"),[t.memo?m([t.memo,s]):s,this.prop(e),t.this])},_getThisRefs(){if(!this.isDerivedConstructor)return{this:y()};const e=this.scope.generateDeclaredUidIdentifier("thisSuper");return{memo:l("=",e,y()),this:c(e)}},set(e,t){const s=this._getThisRefs(),r=b(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return p(this.file.addHelper("set"),[s.memo?m([s.memo,r]):r,this.prop(e),t,s.this,d(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){const s=this._getThisRefs();return(0,n.default)(this._get(e,s),c(s.this),t,!1)},optionalCall(e,t){const s=this._getThisRefs();return(0,n.default)(this._get(e,s),c(s.this),t,!0)}},P=Object.assign({},E,{prop(e){const{property:t}=e.node;return this.memoiser.has(t)?c(this.memoiser.get(t)):c(t)},get(e){const{isStatic:t,getSuperRef:s}=this,{computed:r}=e.node,i=this.prop(e);let n;var o,a;t?n=null!=(o=s())?o:f(u("Function"),u("prototype")):n=f(null!=(a=s())?a:u("Object"),u("prototype"));return f(n,i,r)},set(e,t){const{computed:s}=e.node,r=this.prop(e);return l("=",f(y(),r,s),t)},destructureSet(e){const{computed:t}=e.node,s=this.prop(e);return f(y(),s,t)},call(e,t){return(0,n.default)(this.get(e),y(),t,!1)},optionalCall(e,t){return(0,n.default)(this.get(e),y(),t,!0)}});t.default=class{constructor(e){var t;const s=e.methodPath;this.methodPath=s,this.isDerivedConstructor=s.isClassMethod({kind:"constructor"})&&!!e.superRef,this.isStatic=s.isObjectMethod()||s.node.static||(null==s.isStaticBlock?void 0:s.isStaticBlock()),this.isPrivateMethod=s.isPrivate()&&s.isMethod(),this.file=e.file,this.constantSuper=null!=(t=e.constantSuper)?t:e.isLoose,this.opts=e}getObjectRef(){return c(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?c(this.opts.superRef):this.opts.getSuperRef?c(this.opts.getSuperRef()):void 0}replace(){this.opts.refToPreserve&&this.methodPath.traverse(v,{refName:this.opts.refToPreserve.name});const e=this.constantSuper?P:E;(0,i.default)(this.methodPath,g,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:e.get},e))}}},281:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(65);function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}})),t.default=e,Object.freeze(t)}var n=i(r);const{LOGICAL_OPERATORS:o,arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:d,booleanLiteral:p,callExpression:c,cloneNode:u,conditionalExpression:f,identifier:m,isMemberExpression:h,isOptionalCallExpression:y,isOptionalMemberExpression:b,isUpdateExpression:g,logicalExpression:v,memberExpression:E,nullLiteral:P,numericLiteral:x,optionalCallExpression:S,optionalMemberExpression:w,sequenceExpression:N,unaryExpression:C}=n;class k{constructor(){this._map=void 0,this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e),{value:s}=t;return t.count--,0===t.count?l("=",s,e):s}set(e,t,s){return this._map.set(e,{count:s,value:t})}}function O(e,t){const{node:s}=e;if(b(s))return E(t,s.property,s.computed);if(e.isOptionalCallExpression()){const s=e.get("callee");if(e.node.optional&&s.isOptionalMemberExpression()){const{object:r}=s.node,i=e.scope.maybeGenerateMemoised(r)||r;return s.get("object").replaceWith(l("=",i,r)),c(E(t,m("call")),[i,...e.node.arguments])}return c(t,e.node.arguments)}return e.node}const j={memoise(){},handle(e,t){const{node:s,parent:r,parentPath:i,scope:n}=e;if(e.isOptionalMemberExpression()){if(function(e){for(;e&&!e.isProgram();){const{parentPath:t,container:s,listKey:r}=e,i=t.node;if(r){if(s!==i[r])return!0}else if(s!==i)return!0;e=t}return!1}(e))return;const o=e.find(({node:t,parent:s})=>b(s)?s.optional||s.object!==t:!y(s)||(t!==e.node&&s.optional||s.callee!==t));if(n.path.isPattern())return void o.replaceWith(c(a([],o.node),[]));const g=function e(t){const s=t,{node:r,parentPath:i}=s;if(i.isLogicalExpression()){const{operator:t,right:s}=i.node;if("&&"===t||"||"===t||"??"===t&&r===s)return e(i)}if(i.isSequenceExpression()){const{expressions:t}=i.node;return t[t.length-1]!==r||e(i)}return i.isConditional({test:r})||i.isUnaryExpression({operator:"!"})||i.isLoop({test:r})}(o),E=o.parentPath;if(E.isUpdateExpression({argument:s})||E.isAssignmentExpression({left:s}))throw e.buildCodeFrameError("can't handle assignment");const x=E.isUnaryExpression({operator:"delete"});if(x&&o.isOptionalMemberExpression()&&o.get("property").isPrivateName())throw e.buildCodeFrameError("can't delete a private class element");let N=e;for(;;)if(N.isOptionalMemberExpression()){if(N.node.optional)break;N=N.get("object")}else{if(!N.isOptionalCallExpression())throw new Error("Internal error: unexpected "+N.node.type);if(N.node.optional)break;N=N.get("callee")}const C=N.isOptionalMemberExpression()?"object":"callee",k=N.node[C],j=n.maybeGenerateMemoised(k),I=null!=j?j:k,M=i.isOptionalCallExpression({callee:s}),D=e=>M,T=i.isCallExpression({callee:s});N.replaceWith(O(N,I)),D()?r.optional?i.replaceWith(this.optionalCall(e,r.arguments)):i.replaceWith(this.call(e,r.arguments)):T?e.replaceWith(this.boundGet(e)):e.replaceWith(this.get(e));let $,F=e.node;for(let t=e;t!==o;){const e=t.parentPath;if(e===o&&D()&&r.optional){F=e.node;break}F=O(e,F),t=e}const _=o.parentPath;if(h(F)&&_.isOptionalCallExpression({callee:o.node,optional:!0})){const{object:t}=F;$=e.scope.maybeGenerateMemoised(t),$&&(F.object=l("=",$,t))}let R=o;x&&(R=_,F=_.node);const A=j?l("=",u(I),u(k)):u(I);if(g){let e;e=t?d("!=",A,P()):v("&&",d("!==",A,P()),d("!==",u(I),n.buildUndefinedNode())),R.replaceWith(v("&&",e,F))}else{let e;e=t?d("==",A,P()):v("||",d("===",A,P()),d("===",u(I),n.buildUndefinedNode())),R.replaceWith(f(e,x?p(!0):n.buildUndefinedNode(),F))}if($){const e=_.node;_.replaceWith(S(w(e.callee,m("call"),!1,!0),[u($),...e.arguments],!1))}}else if(g(r,{argument:s})){if(this.simpleSet)return void e.replaceWith(this.simpleSet(e));const{operator:t,prefix:n}=r;this.memoise(e,2);const o=d(t[0],C("+",this.get(e)),x(1));if(n)i.replaceWith(this.set(e,o));else{const{scope:t}=e,r=t.generateUidIdentifierBasedOnNode(s);t.push({id:r}),o.left=l("=",u(r),o.left),i.replaceWith(N([this.set(e,o),u(r)]))}}else if(i.isAssignmentExpression({left:s})){if(this.simpleSet)return void e.replaceWith(this.simpleSet(e));const{operator:t,right:s}=i.node;if("="===t)i.replaceWith(this.set(e,s));else{const r=t.slice(0,-1);o.includes(r)?(this.memoise(e,1),i.replaceWith(v(r,this.get(e),this.set(e,s)))):(this.memoise(e,2),i.replaceWith(this.set(e,d(r,this.get(e),s))))}}else{if(!i.isCallExpression({callee:s}))return i.isOptionalCallExpression({callee:s})?n.path.isPattern()?void i.replaceWith(c(a([],i.node),[])):void i.replaceWith(this.optionalCall(e,i.node.arguments)):void(i.isForXStatement({left:s})||i.isObjectProperty({value:s})&&i.parentPath.isObjectPattern()||i.isAssignmentPattern({left:s})&&i.parentPath.isObjectProperty({value:r})&&i.parentPath.parentPath.isObjectPattern()||i.isArrayPattern()||i.isAssignmentPattern({left:s})&&i.parentPath.isArrayPattern()||i.isRestElement()?e.replaceWith(this.destructureSet(e)):i.isTaggedTemplateExpression()?e.replaceWith(this.boundGet(e)):e.replaceWith(this.get(e)));i.replaceWith(this.call(e,i.node.arguments))}}};t.default=function(e,t,s){e.traverse(t,Object.assign({},j,s,{memoiser:new k}))}},282:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,s,r){return 1===s.length&&a(s[0])&&o(s[0].argument,{name:"arguments"})?r?d(p(e,n("apply"),!1,!0),[t,s[0].argument],!1):i(l(e,n("apply")),[t,s[0].argument]):r?d(p(e,n("call"),!1,!0),[t,...s],!1):i(l(e,n("call")),[t,...s])};var r=s(65);const{callExpression:i,identifier:n,isIdentifier:o,isSpreadElement:a,memberExpression:l,optionalCallExpression:d,optionalMemberExpression:p}=r},283:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertFieldTransformed=function(e){if(e.node.declare)throw e.buildCodeFrameError("TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-proposal-class-properties\n - @babel/plugin-proposal-private-methods\n - @babel/plugin-proposal-decorators")}},284:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDecoratedClass=function(e,t,s,i){const{node:n,scope:o}=t,a=o.generateUidIdentifier("initialize"),d=n.id&&t.isDeclaration(),c=t.isInStrictMode(),{superClass:u}=n;n.type="ClassDeclaration",n.id||(n.id=r.types.cloneNode(e));let f;u&&(f=o.generateUidIdentifierBasedOnNode(n.superClass,"super"),n.superClass=f);const m=l(n),h=r.types.arrayExpression(s.filter(e=>!e.node.abstract).map(p.bind(i,n.id,f))),y=r.template.expression.ast`
6
+ ${function(e){try{return e.addHelper("decorate")}catch(t){throw"BABEL_HELPER_UNKNOWN"===t.code&&(t.message+="\n '@babel/plugin-transform-decorators' in non-legacy mode requires '@babel/core' version ^7.0.2 and you appear to be using an older version."),t}}(i)}(
7
+ ${m||r.types.nullLiteral()},
8
+ function (${a}, ${u?r.types.cloneNode(f):null}) {
9
+ ${n}
10
+ return { F: ${r.types.cloneNode(n.id)}, d: ${h} };
11
+ },
12
+ ${u}
13
+ )
14
+ `;c||y.arguments[1].body.directives.push(r.types.directive(r.types.directiveLiteral("use strict")));let b=y,g="arguments.1.body.body.0";d&&(b=r.template.statement.ast`let ${e} = ${y}`,g="declarations.0.init."+g);return{instanceNodes:[r.template.statement.ast`${r.types.cloneNode(a)}(this)`],wrapClass:e=>(e.replaceWith(b),e.get(g))}},t.hasDecorators=function(e){return o(e)||e.body.body.some(o)},t.hasOwnDecorators=o;var r=s(76),i=s(280),n=s(159);function o(e){return!(!e.decorators||!e.decorators.length)}function a(e,t){return t?r.types.objectProperty(r.types.identifier(e),t):null}function l(e){let t;return e.decorators&&e.decorators.length>0&&(t=r.types.arrayExpression(e.decorators.map(e=>e.expression))),e.decorators=void 0,t}function d(e){return e.computed?e.key:r.types.isIdentifier(e.key)?r.types.stringLiteral(e.key.name):r.types.stringLiteral(String(e.key.value))}function p(e,t,s){const{node:o,scope:p}=s,c=s.isClassMethod();if(s.isPrivate())throw s.buildCodeFrameError(`Private ${c?"methods":"fields"} in decorated classes are not supported yet.`);new i.default({methodPath:s,objectRef:e,superRef:t,file:this,refToPreserve:e}).replace();const u=[a("kind",r.types.stringLiteral(r.types.isClassMethod(o)?o.kind:"field")),a("decorators",l(o)),a("static",o.static&&r.types.booleanLiteral(!0)),a("key",d(o))].filter(Boolean);if(r.types.isClassMethod(o)){const e=o.computed?null:o.key;r.types.toExpression(o),u.push(a("value",(0,n.default)({node:o,id:e,scope:p})||o))}else r.types.isClassProperty(o)&&o.value?u.push((f="value",m=r.template.statements.ast`return ${o.value}`,r.types.objectMethod("method",r.types.identifier(f),[],r.types.blockStatement(m)))):u.push(a("value",p.buildUndefinedNode()));var f,m;return s.remove(),r.types.objectExpression(u)}},285:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{node:s}=e;if(s.declare)return void e.remove();const r=s.id.name,i=function(e,t,s){const r=l(e,t),i=r.map(([e,r])=>{return i=t.isStringLiteral(r),n={ENUM:t.cloneNode(s),NAME:e,VALUE:r},(i?o:a)(n);var i,n});return n({ID:t.cloneNode(s),ASSIGNMENTS:i})}(e,t,s.id);switch(e.parent.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":if(e.insertAfter(i),function e(t){if(t.isExportDeclaration())return e(t.parentPath);return!!t.getData(r)||(t.setData(r,!0),!1)}(e.parentPath))e.remove();else{const r=t.isProgram(e.parent);e.scope.registerDeclaration(e.replaceWith(function(e,t,s){return t.variableDeclaration(s,[t.variableDeclarator(e)])}(s.id,t,r?"var":"let"))[0])}break;default:throw new Error("Unexpected enum parent '"+e.parent.type)}},t.translateEnumValues=l;var r=s(104),i=s(76);const n=(0,i.template)("\n (function (ID) {\n ASSIGNMENTS;\n })(ID || (ID = {}));\n"),o=(0,i.template)('\n ENUM["NAME"] = VALUE;\n'),a=(0,i.template)('\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n');function l(e,t){const s=new Map;let i,n=-1;return e.node.members.map(o=>{const a=t.isIdentifier(o.id)?o.id.name:o.id.value,l=o.initializer;let d;if(l)n=function(e,t){return s(e);function s(e){switch(e.type){case"StringLiteral":return e.value;case"UnaryExpression":return function({argument:e,operator:t}){const r=s(e);if(void 0===r)return;switch(t){case"+":return r;case"-":return-r;case"~":return~r;default:return}}(e);case"BinaryExpression":return function(e){const t=s(e.left);if(void 0===t)return;const r=s(e.right);if(void 0===r)return;switch(e.operator){case"|":return t|r;case"&":return t&r;case">>":return t>>r;case">>>":return t>>>r;case"<<":return t<<r;case"^":return t^r;case"*":return t*r;case"/":return t/r;case"+":return t+r;case"-":return t-r;case"%":return t%r;default:return}}(e);case"NumericLiteral":return e.value;case"ParenthesizedExpression":return s(e.expression);case"Identifier":return t.get(e.name);case"TemplateLiteral":if(1===e.quasis.length)return e.quasis[0].value.cooked;default:return}}}(l,s),void 0!==n?(s.set(a,n),"number"==typeof n?d=t.numericLiteral(n):(r("string"==typeof n),d=t.stringLiteral(n))):d=l;else if("number"==typeof n)n+=1,d=t.numericLiteral(n),s.set(a,n);else{if("string"==typeof n)throw e.buildCodeFrameError("Enum member must have initializer.");{const s=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(i),!0);d=t.binaryExpression("+",t.numericLiteral(1),s)}}return i=a,[a,d]})}},663:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(86),i=s(664),n=s(76),o=s(665),a=s(669),l=s(285),d=s(670);function p(e){switch(e.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"ExportSpecifier":return"type"===e.parentPath.parent.exportKind;default:return!1}}const c=new WeakMap,u=new WeakMap,f=new WeakSet;function m(e,t){const s=e.find(e=>e.isProgram()).node;return!e.scope.hasOwnBinding(t)&&(!!c.get(s).has(t)||(console.warn(`The exported identifier "${t}" is not declared in Babel's scope tracker\nas a JavaScript value binding, and "@babel/plugin-transform-typescript"\nnever encountered it as a TypeScript type declaration.\nIt will be treated as a JavaScript value.\n\nThis problem is likely caused by another plugin injecting\n"${t}" without registering it in the scope tracker. If you are the author\n of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1))}function h(e,t){c.get(e).add(t)}var y=(0,r.declare)((e,t)=>{e.assertVersion(7);const s=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,{allowNamespaces:r=!0,jsxPragma:y="React.createElement",jsxPragmaFrag:b="React.Fragment",onlyRemoveTypeImports:g=!1,optimizeConstEnums:v=!1}=t;var{allowDeclareFields:E=!1}=t;const P={field(e){const{node:t}=e;if(!E&&t.declare)throw e.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(t.declare){if(t.value)throw e.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");t.decorators||e.remove()}else if(t.definite){if(t.value)throw e.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");E||t.decorators||e.remove()}else E||t.value||t.decorators||n.types.isClassPrivateProperty(t)||e.remove();t.accessibility&&(t.accessibility=null),t.abstract&&(t.abstract=null),t.readonly&&(t.readonly=null),t.optional&&(t.optional=null),t.typeAnnotation&&(t.typeAnnotation=null),t.definite&&(t.definite=null),t.declare&&(t.declare=null),t.override&&(t.override=null)},method({node:e}){e.accessibility&&(e.accessibility=null),e.abstract&&(e.abstract=null),e.optional&&(e.optional=null),e.override&&(e.override=null)},constructor(e,t){e.node.accessibility&&(e.node.accessibility=null);const s=[];for(const r of e.node.params)"TSParameterProperty"!==r.type||f.has(r.parameter)||(f.add(r.parameter),s.push(r.parameter));if(s.length){const r=s.map(t=>{let s;if(n.types.isIdentifier(t))s=t;else{if(!n.types.isAssignmentPattern(t)||!n.types.isIdentifier(t.left))throw e.buildCodeFrameError("Parameter properties can not be destructuring patterns.");s=t.left}return n.template.statement.ast`
15
+ this.${n.types.cloneNode(s)} = ${n.types.cloneNode(s)}`});(0,o.injectInitialization)(t,e,r)}}};return{name:"transform-typescript",inherits:i.default,visitor:{Pattern:S,Identifier:S,RestElement:S,Program:{enter(e,t){const{file:r}=t;let i=null,n=null;const o=e.node;if(c.has(o)||c.set(o,new Set),r.ast.comments)for(const d of r.ast.comments){const e=s.exec(d.value);e&&(e[1]?n=e[2]:i=e[2])}let a=i||y;a&&([a]=a.split("."));let l=n||b;l&&([l]=l.split("."));for(let s of e.get("body"))if(s.isImportDeclaration()){if(u.has(t.file.ast.program)||u.set(t.file.ast.program,!0),"type"===s.node.importKind){for(const e of s.node.specifiers)h(o,e.local.name);s.remove();continue}const r=new Set,i=s.node.specifiers.length,n=()=>i>0&&i===r.size;for(const e of s.node.specifiers)if("ImportSpecifier"===e.type&&"type"===e.importKind){h(o,e.local.name);const t=s.scope.getBinding(e.local.name);t&&r.add(t.path)}if(g)u.set(e.node,!1);else{if(0===s.node.specifiers.length){u.set(e.node,!1);continue}for(const t of s.node.specifiers){const i=s.scope.getBinding(t.local.name);i&&!r.has(i.path)&&(w({binding:i,programPath:e,pragmaImportName:a,pragmaFragImportName:l})?r.add(i.path):u.set(e.node,!1))}}if(n())s.remove();else for(const e of r)e.remove()}else if(s.isExportDeclaration()&&(s=s.get("declaration")),s.isVariableDeclaration({declare:!0}))for(const e of Object.keys(s.getBindingIdentifiers()))h(o,e);else(s.isTSTypeAliasDeclaration()||s.isTSDeclareFunction()&&s.get("id").isIdentifier()||s.isTSInterfaceDeclaration()||s.isClassDeclaration({declare:!0})||s.isTSEnumDeclaration({declare:!0})||s.isTSModuleDeclaration({declare:!0})&&s.get("id").isIdentifier())&&h(o,s.node.id.name)},exit(e){"module"===e.node.sourceType&&u.get(e.node)&&e.pushContainer("body",n.types.exportNamedDeclaration())}},ExportNamedDeclaration(e,t){u.has(t.file.ast.program)||u.set(t.file.ast.program,!0),"type"!==e.node.exportKind?e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(e=>"ExportSpecifier"===e.type&&"type"===e.exportKind)||!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(t=>n.types.isExportSpecifier(t)&&m(e,t.local.name))?e.remove():u.set(t.file.ast.program,!1):e.remove()},ExportSpecifier(e){const t=e.parent;(!t.source&&m(e,e.node.local.name)||"type"===e.node.exportKind)&&e.remove()},ExportDefaultDeclaration(e,t){u.has(t.file.ast.program)||u.set(t.file.ast.program,!0),n.types.isIdentifier(e.node.declaration)&&m(e,e.node.declaration.name)?e.remove():u.set(t.file.ast.program,!1)},TSDeclareFunction(e){e.remove()},TSDeclareMethod(e){e.remove()},VariableDeclaration(e){e.node.declare&&e.remove()},VariableDeclarator({node:e}){e.definite&&(e.definite=null)},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;t.declare&&e.remove()},Class(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.superTypeParameters&&(t.superTypeParameters=null),t.implements&&(t.implements=null),t.abstract&&(t.abstract=null),e.get("body.body").forEach(t=>{t.isClassMethod()||t.isClassPrivateMethod()?"constructor"===t.node.kind?P.constructor(t,e):P.method(t):(t.isClassProperty()||t.isClassPrivateProperty())&&P.field(t)})},Function(e){const{node:t,scope:s}=e;t.typeParameters&&(t.typeParameters=null),t.returnType&&(t.returnType=null);const r=t.params;r.length>0&&n.types.isIdentifier(r[0],{name:"this"})&&r.shift();const i=e.get("params");for(const n of i)"TSParameterProperty"===n.type&&(n.replaceWith(n.get("parameter")),s.registerBinding("param",n))},TSModuleDeclaration(e){(0,d.default)(e,n.types,r)},TSInterfaceDeclaration(e){e.remove()},TSTypeAliasDeclaration(e){e.remove()},TSEnumDeclaration(e){v&&e.node.const?(0,a.default)(e,n.types):(0,l.default)(e,n.types)},TSImportEqualsDeclaration(e){if(n.types.isTSExternalModuleReference(e.node.moduleReference))throw e.buildCodeFrameError(`\`import ${e.node.id.name} = require('${e.node.moduleReference.expression.value}')\` is not supported by @babel/plugin-transform-typescript\nPlease consider using \`import ${e.node.id.name} from '${e.node.moduleReference.expression.value}';\` alongside Typescript's --allowSyntheticDefaultImports option.`);e.replaceWith(n.types.variableDeclaration("var",[n.types.variableDeclarator(e.node.id,x(e.node.moduleReference))]))},TSExportAssignment(e){throw e.buildCodeFrameError("`export =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `export <value>;`.")},TSTypeAssertion(e){e.replaceWith(e.node.expression)},TSAsExpression(e){let{node:t}=e;do{t=t.expression}while(n.types.isTSAsExpression(t));e.replaceWith(t)},TSNonNullExpression(e){e.replaceWith(e.node.expression)},CallExpression(e){e.node.typeParameters=null},OptionalCallExpression(e){e.node.typeParameters=null},NewExpression(e){e.node.typeParameters=null},JSXOpeningElement(e){e.node.typeParameters=null},TaggedTemplateExpression(e){e.node.typeParameters=null}}};function x(e){return n.types.isTSQualifiedName(e)?n.types.memberExpression(x(e.left),e.right):e}function S({node:e}){e.typeAnnotation&&(e.typeAnnotation=null),n.types.isIdentifier(e)&&e.optional&&(e.optional=null)}function w({binding:e,programPath:t,pragmaImportName:s,pragmaFragImportName:r}){for(const n of e.referencePaths)if(!p(n))return!1;if(e.identifier.name!==s&&e.identifier.name!==r)return!0;let i=!1;return t.traverse({"JSXElement|JSXFragment"(e){i=!0,e.stop()}}),!i}});t.default=y},664:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(86);function i(e,t){const s=[];e.forEach((e,r)=>{const i=Array.isArray(e)?e[0]:e;i===t&&s.unshift(r)});for(const r of s)e.splice(r,1)}var n=(0,r.declare)((e,{isTSX:t,disallowAmbiguousJSXLike:s})=>(e.assertVersion(7),{name:"syntax-typescript",manipulateOptions(e,r){const{plugins:n}=r;i(n,"flow"),i(n,"jsx"),r.plugins.push(["typescript",{disallowAmbiguousJSXLike:s}],"classProperties"),r.plugins.push("objectRestSpread"),t&&r.plugins.push("jsx")}}));t.default=n},665:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FEATURES",{enumerable:!0,get:function(){return d.FEATURES}}),t.createClassFeaturePlugin=function({name:e,feature:t,loose:s,manipulateOptions:f,api:m={assumption:()=>{}}}){const h=m.assumption("setPublicClassFields"),y=m.assumption("privateFieldsAsProperties"),b=m.assumption("constantSuper"),g=m.assumption("noDocumentAll");if(!0===s){const t=[];void 0!==h&&t.push('"setPublicClassFields"'),void 0!==y&&t.push('"privateFieldsAsProperties"'),0!==t.length&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the `+t.join(" and ")+` assumption${t.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsProperties": true\n\t}`)}return{name:e,manipulateOptions:f,pre(){(0,d.enableFeature)(this.file,t,s),(!this.file.get(u)||this.file.get(u)<c)&&this.file.set(u,c)},visitor:{Class(e,s){if(this.file.get(u)!==c)return;(0,d.verifyUsedFeatures)(e,this.file),e.isClassDeclaration()&&(0,p.assertFieldTransformed)(e);const n=(0,d.isLoose)(this.file,t);let f;const m=(0,a.hasDecorators)(e.node),v=[],E=[],P=[],x=new Set,S=e.get("body");for(const t of S.get("body")){if((0,d.verifyUsedFeatures)(t,this.file),(t.isClassProperty()||t.isClassMethod())&&t.node.computed&&P.push(t),t.isPrivate()){const{name:e}=t.node.key.id,s="get "+e,r="set "+e;if(t.isClassPrivateMethod()){if("get"===t.node.kind){if(x.has(s)||x.has(e)&&!x.has(r))throw t.buildCodeFrameError("Duplicate private field");x.add(s).add(e)}else if("set"===t.node.kind){if(x.has(r)||x.has(e)&&!x.has(s))throw t.buildCodeFrameError("Duplicate private field");x.add(r).add(e)}}else{if(x.has(e)&&!x.has(s)&&!x.has(r)||x.has(e)&&(x.has(s)||x.has(r)))throw t.buildCodeFrameError("Duplicate private field");x.add(e)}}t.isClassMethod({kind:"constructor"})?f=t:(E.push(t),(t.isProperty()||t.isPrivate()||null!=t.isStaticBlock&&t.isStaticBlock())&&v.push(t))}if(!v.length&&!m)return;const w=e.node.id;let N;!w||e.isClassExpression()?((0,i.default)(e),N=e.scope.generateUidIdentifier("class")):N=r.types.cloneNode(e.node.id);const C=(0,o.buildPrivateNamesMap)(v),k=(0,o.buildPrivateNamesNodes)(C,null!=y?y:n,s);let O,j,I,M,D;(0,o.transformPrivateNamesUsage)(N,e,C,{privateFieldsAsProperties:null!=y?y:n,noDocumentAll:g,innerBinding:w},s),m?(j=M=O=[],({instanceNodes:I,wrapClass:D}=(0,a.buildDecoratedClass)(N,e,E,this.file))):(O=(0,l.extractComputedKeys)(N,e,P,this.file),({staticNodes:j,pureStaticNodes:M,instanceNodes:I,wrapClass:D}=(0,o.buildFieldsInitNodes)(N,e.node.superClass,v,C,s,null!=h?h:n,null!=y?y:n,null!=b?b:n,w))),I.length>0&&(0,l.injectInitialization)(e,f,I,(e,t)=>{if(!m)for(const s of v)s.node.static||s.traverse(e,t)});const T=D(e);T.insertBefore([...k,...O]),j.length>0&&T.insertAfter(j),M.length>0&&T.find(e=>e.isStatement()||e.isDeclaration()).insertAfter(M)},PrivateName(e){if(this.file.get(u)===c&&!e.parentPath.isPrivate({key:e.node}))throw e.buildCodeFrameError(`Unknown PrivateName "${e}"`)},ExportDefaultDeclaration(e){if(this.file.get(u)!==c)return;const t=e.get("declaration");t.isClassDeclaration()&&(0,a.hasDecorators)(t.node)&&(t.node.id?(0,n.default)(e):t.node.type="ClassExpression")}}}},Object.defineProperty(t,"enableFeature",{enumerable:!0,get:function(){return d.enableFeature}}),Object.defineProperty(t,"injectInitialization",{enumerable:!0,get:function(){return l.injectInitialization}});var r=s(76),i=s(159),n=s(157),o=s(666),a=s(284),l=s(667),d=s(668),p=s(283);const c="7.16.5".split(".").reduce((e,t)=>1e5*e+ +t,0),u="@babel/plugin-class-features/version"},666:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildFieldsInitNodes=function(e,t,s,i,n,o,a,l,p){let c,u=!1;const f=[],m=[],h=[],N=r.types.isIdentifier(t)?()=>t:()=>(null!=c||(c=s[0].scope.generateUidIdentifierBasedOnNode(t)),c);for(const C of s){C.isClassProperty()&&d.assertFieldTransformed(C);const t=C.node.static,s=!t,c=C.isPrivate(),O=!c,j=C.isProperty(),I=!j,M=null==C.isStaticBlock?void 0:C.isStaticBlock();if(t||I&&c||M){const t=k(C,e,N,n,M,l,p);u=u||t}switch(!0){case M:f.push(r.template.statement.ast`(() => ${r.types.blockStatement(C.node.body)})()`);break;case t&&c&&j&&a:u=!0,f.push(y(r.types.cloneNode(e),C,i));break;case t&&c&&j&&!a:u=!0,f.push(g(C,i));break;case t&&O&&j&&o:u=!0,f.push(P(r.types.cloneNode(e),C));break;case t&&O&&j&&!o:u=!0,f.push(x(r.types.cloneNode(e),C,n));break;case s&&c&&j&&a:m.push(y(r.types.thisExpression(),C,i));break;case s&&c&&j&&!a:m.push(b(r.types.thisExpression(),C,i,n));break;case s&&c&&I&&a:m.unshift(v(r.types.thisExpression(),C,i)),h.push(w(C,i,a));break;case s&&c&&I&&!a:m.unshift(E(r.types.thisExpression(),C,i,n)),h.push(w(C,i,a));break;case t&&c&&I&&!a:u=!0,f.unshift(g(C,i)),h.push(w(C,i,a));break;case t&&c&&I&&a:u=!0,f.unshift(S(r.types.cloneNode(e),C,n,i)),h.push(w(C,i,a));break;case s&&O&&j&&o:m.push(P(r.types.thisExpression(),C));break;case s&&O&&j&&!o:m.push(x(r.types.thisExpression(),C,n));break;default:throw new Error("Unreachable.")}}return{staticNodes:f.filter(Boolean),instanceNodes:m.filter(Boolean),pureStaticNodes:h.filter(Boolean),wrapClass(t){for(const e of s)e.remove();return c&&(t.scope.push({id:r.types.cloneNode(c)}),t.set("superClass",r.types.assignmentExpression("=",c,t.node.superClass))),u?(t.isClassExpression()?(t.scope.push({id:e}),t.replaceWith(r.types.assignmentExpression("=",r.types.cloneNode(e),t.node))):t.node.id||(t.node.id=e),t):t}}},t.buildPrivateNamesMap=function(e){const t=new Map;for(const s of e)if(s.isPrivate()){const{name:e}=s.node.key.id,r=t.has(e)?t.get(e):{id:s.scope.generateUidIdentifier(e),static:s.node.static,method:!s.isProperty()};s.isClassPrivateMethod()&&("get"===s.node.kind?r.getId=s.scope.generateUidIdentifier("get_"+e):"set"===s.node.kind?r.setId=s.scope.generateUidIdentifier("set_"+e):"method"===s.node.kind&&(r.methodId=s.scope.generateUidIdentifier(e))),t.set(e,r)}return t},t.buildPrivateNamesNodes=function(e,t,s){const i=[];for(const[n,o]of e){const{static:e,method:a,getId:d,setId:p}=o,c=d||p,u=r.types.cloneNode(o.id);let f;t?f=r.types.callExpression(s.addHelper("classPrivateFieldLooseKey"),[r.types.stringLiteral(n)]):e||(f=r.types.newExpression(r.types.identifier(!a||c?"WeakMap":"WeakSet"),[])),f&&((0,l.default)(f),i.push(r.template.statement.ast`var ${u} = ${f}`))}return i},t.transformPrivateNamesUsage=function(e,t,s,{privateFieldsAsProperties:r,noDocumentAll:i,innerBinding:n},a){if(!s.size)return;const l=t.get("body"),d=r?h:m;(0,o.default)(l,c,Object.assign({privateNamesMap:s,classRef:e,file:a},d,{noDocumentAll:i,innerBinding:n})),l.traverse(f,{privateNamesMap:s,classRef:e,file:a,privateFieldsAsProperties:r,innerBinding:n})};var r=s(76),i=s(280),n=s(103),o=s(281),a=s(282),l=s(165),d=s(283);function p(e){const t=Object.assign({},e,{Class(e){const{privateNamesMap:r}=this,i=e.get("body.body"),n=new Map(r),o=[];for(const t of i){if(!t.isPrivate())continue;const{name:e}=t.node.key.id;n.delete(e),o.push(e)}o.length&&(e.get("body").traverse(s,Object.assign({},this,{redeclared:o})),e.traverse(t,Object.assign({},this,{privateNamesMap:n})),e.skipKey("body"))}}),s=r.traverse.visitors.merge([Object.assign({},e),n.default]);return t}const c=p({PrivateName(e,{noDocumentAll:t}){const{privateNamesMap:s,redeclared:r}=this,{node:i,parentPath:n}=e;if(!n.isMemberExpression({property:i})&&!n.isOptionalMemberExpression({property:i}))return;const{name:o}=i.id;s.has(o)&&(r&&r.includes(o)||this.handle(n,t))}});function u(e,t,s){for(;null!=(r=t)&&r.hasBinding(e)&&!t.bindingIdentifierEquals(e,s);){var r;t.rename(e),t=t.parent}}const f=p({BinaryExpression(e){const{operator:t,left:s,right:i}=e.node;if("in"!==t)return;if(!r.types.isPrivateName(s))return;const{privateFieldsAsProperties:n,privateNamesMap:o,redeclared:a}=this,{name:l}=s.id;if(!o.has(l))return;if(a&&a.includes(l))return;if(u(this.classRef.name,e.scope,this.innerBinding),n){const{id:t}=o.get(l);return void e.replaceWith(r.template.expression.ast`
16
+ Object.prototype.hasOwnProperty.call(${i}, ${r.types.cloneNode(t)})
17
+ `)}const{id:d,static:p}=o.get(l);p?e.replaceWith(r.template.expression.ast`${i} === ${this.classRef}`):e.replaceWith(r.template.expression.ast`${r.types.cloneNode(d)}.has(${i})`)}}),m={memoise(e,t){const{scope:s}=e,{object:r}=e.node,i=s.maybeGenerateMemoised(r);i&&this.memoiser.set(r,i,t)},receiver(e){const{object:t}=e.node;return this.memoiser.has(t)?r.types.cloneNode(this.memoiser.get(t)):r.types.cloneNode(t)},get(e){const{classRef:t,privateNamesMap:s,file:i,innerBinding:n}=this,{name:o}=e.node.property.id,{id:a,static:l,method:d,methodId:p,getId:c,setId:f}=s.get(o),m=c||f;if(l){const s=d&&!m?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return u(t.name,e.scope,n),r.types.callExpression(i.addHelper(s),[this.receiver(e),r.types.cloneNode(t),r.types.cloneNode(a)])}if(d){if(m){if(!c&&f){if(i.availableHelper("writeOnlyError"))return r.types.sequenceExpression([this.receiver(e),r.types.callExpression(i.addHelper("writeOnlyError"),[r.types.stringLiteral("#"+o)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.")}return r.types.callExpression(i.addHelper("classPrivateFieldGet"),[this.receiver(e),r.types.cloneNode(a)])}return r.types.callExpression(i.addHelper("classPrivateMethodGet"),[this.receiver(e),r.types.cloneNode(a),r.types.cloneNode(p)])}return r.types.callExpression(i.addHelper("classPrivateFieldGet"),[this.receiver(e),r.types.cloneNode(a)])},boundGet(e){return this.memoise(e,1),r.types.callExpression(r.types.memberExpression(this.get(e),r.types.identifier("bind")),[this.receiver(e)])},set(e,t){const{classRef:s,privateNamesMap:i,file:n}=this,{name:o}=e.node.property.id,{id:a,static:l,method:d,setId:p,getId:c}=i.get(o),u=c||p;if(l){const i=d&&!u?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return r.types.callExpression(n.addHelper(i),[this.receiver(e),r.types.cloneNode(s),r.types.cloneNode(a),t])}return d?p?r.types.callExpression(n.addHelper("classPrivateFieldSet"),[this.receiver(e),r.types.cloneNode(a),t]):r.types.sequenceExpression([this.receiver(e),t,r.types.callExpression(n.addHelper("readOnlyError"),[r.types.stringLiteral("#"+o)])]):r.types.callExpression(n.addHelper("classPrivateFieldSet"),[this.receiver(e),r.types.cloneNode(a),t])},destructureSet(e){const{classRef:t,privateNamesMap:s,file:i}=this,{name:n}=e.node.property.id,{id:o,static:a}=s.get(n);if(a){try{var l=i.addHelper("classStaticPrivateFieldDestructureSet")}catch(d){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return r.types.memberExpression(r.types.callExpression(l,[this.receiver(e),r.types.cloneNode(t),r.types.cloneNode(o)]),r.types.identifier("value"))}return r.types.memberExpression(r.types.callExpression(i.addHelper("classPrivateFieldDestructureSet"),[this.receiver(e),r.types.cloneNode(o)]),r.types.identifier("value"))},call(e,t){return this.memoise(e,1),(0,a.default)(this.get(e),this.receiver(e),t,!1)},optionalCall(e,t){return this.memoise(e,1),(0,a.default)(this.get(e),this.receiver(e),t,!0)}},h={get(e){const{privateNamesMap:t,file:s}=this,{object:i}=e.node,{name:n}=e.node.property.id;return r.template.expression`BASE(REF, PROP)[PROP]`({BASE:s.addHelper("classPrivateFieldLooseBase"),REF:r.types.cloneNode(i),PROP:r.types.cloneNode(t.get(n).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(e){return r.types.callExpression(r.types.memberExpression(this.get(e),r.types.identifier("bind")),[r.types.cloneNode(e.node.object)])},simpleSet(e){return this.get(e)},destructureSet(e){return this.get(e)},call(e,t){return r.types.callExpression(this.get(e),t)},optionalCall(e,t){return r.types.optionalCallExpression(this.get(e),t,!0)}};function y(e,t,s){const{id:i}=s.get(t.node.key.id.name),n=t.node.value||t.scope.buildUndefinedNode();return r.template.statement.ast`
18
+ Object.defineProperty(${e}, ${r.types.cloneNode(i)}, {
19
+ // configurable is false by default
20
+ // enumerable is false by default
21
+ writable: true,
22
+ value: ${n}
23
+ });
24
+ `}function b(e,t,s,i){const{id:n}=s.get(t.node.key.id.name),o=t.node.value||t.scope.buildUndefinedNode();if(!i.availableHelper("classPrivateFieldInitSpec"))return r.template.statement.ast`${r.types.cloneNode(n)}.set(${e}, {
25
+ // configurable is always false for private elements
26
+ // enumerable is always false for private elements
27
+ writable: true,
28
+ value: ${o},
29
+ })`;const a=i.addHelper("classPrivateFieldInitSpec");return r.template.statement.ast`${a}(
30
+ ${r.types.thisExpression()},
31
+ ${r.types.cloneNode(n)},
32
+ {
33
+ writable: true,
34
+ value: ${o}
35
+ },
36
+ )`}function g(e,t){const s=t.get(e.node.key.id.name),{id:i,getId:n,setId:o,initAdded:a}=s,l=n||o;if(!e.isProperty()&&(a||!l))return;if(l)return t.set(e.node.key.id.name,Object.assign({},s,{initAdded:!0})),r.template.statement.ast`
37
+ var ${r.types.cloneNode(i)} = {
38
+ // configurable is false by default
39
+ // enumerable is false by default
40
+ // writable is false by default
41
+ get: ${n?n.name:e.scope.buildUndefinedNode()},
42
+ set: ${o?o.name:e.scope.buildUndefinedNode()}
43
+ }
44
+ `;const d=e.node.value||e.scope.buildUndefinedNode();return r.template.statement.ast`
45
+ var ${r.types.cloneNode(i)} = {
46
+ // configurable is false by default
47
+ // enumerable is false by default
48
+ writable: true,
49
+ value: ${d}
50
+ };
51
+ `}function v(e,t,s){const i=s.get(t.node.key.id.name),{methodId:n,id:o,getId:a,setId:l,initAdded:d}=i;if(d)return;if(n)return r.template.statement.ast`
52
+ Object.defineProperty(${e}, ${o}, {
53
+ // configurable is false by default
54
+ // enumerable is false by default
55
+ // writable is false by default
56
+ value: ${n.name}
57
+ });
58
+ `;const p=a||l;return p?(s.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),r.template.statement.ast`
59
+ Object.defineProperty(${e}, ${o}, {
60
+ // configurable is false by default
61
+ // enumerable is false by default
62
+ // writable is false by default
63
+ get: ${a?a.name:t.scope.buildUndefinedNode()},
64
+ set: ${l?l.name:t.scope.buildUndefinedNode()}
65
+ });
66
+ `):void 0}function E(e,t,s,i){const n=s.get(t.node.key.id.name),{getId:o,setId:a,initAdded:l}=n;if(l)return;const d=o||a;return d?function(e,t,s,i){const n=s.get(t.node.key.id.name),{id:o,getId:a,setId:l}=n;if(s.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),!i.availableHelper("classPrivateFieldInitSpec"))return r.template.statement.ast`
67
+ ${o}.set(${e}, {
68
+ get: ${a?a.name:t.scope.buildUndefinedNode()},
69
+ set: ${l?l.name:t.scope.buildUndefinedNode()}
70
+ });
71
+ `;const d=i.addHelper("classPrivateFieldInitSpec");return r.template.statement.ast`${d}(
72
+ ${r.types.thisExpression()},
73
+ ${r.types.cloneNode(o)},
74
+ {
75
+ get: ${a?a.name:t.scope.buildUndefinedNode()},
76
+ set: ${l?l.name:t.scope.buildUndefinedNode()}
77
+ },
78
+ )`}(e,t,s,i):function(e,t,s,i){const n=s.get(t.node.key.id.name),{id:o}=n;if(!i.availableHelper("classPrivateMethodInitSpec"))return r.template.statement.ast`${o}.add(${e})`;const a=i.addHelper("classPrivateMethodInitSpec");return r.template.statement.ast`${a}(
79
+ ${r.types.thisExpression()},
80
+ ${r.types.cloneNode(o)}
81
+ )`}(e,t,s,i)}function P(e,t){const{key:s,computed:i}=t.node,n=t.node.value||t.scope.buildUndefinedNode();return r.types.expressionStatement(r.types.assignmentExpression("=",r.types.memberExpression(e,s,i||r.types.isLiteral(s)),n))}function x(e,t,s){const{key:i,computed:n}=t.node,o=t.node.value||t.scope.buildUndefinedNode();return r.types.expressionStatement(r.types.callExpression(s.addHelper("defineProperty"),[e,n||r.types.isLiteral(i)?i:r.types.stringLiteral(i.name),o]))}function S(e,t,s,i){const n=i.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:d,initAdded:p}=n;if(p)return;const c=l||d;return c?(i.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),r.template.statement.ast`
82
+ Object.defineProperty(${e}, ${o}, {
83
+ // configurable is false by default
84
+ // enumerable is false by default
85
+ // writable is false by default
86
+ get: ${l?l.name:t.scope.buildUndefinedNode()},
87
+ set: ${d?d.name:t.scope.buildUndefinedNode()}
88
+ })
89
+ `):r.template.statement.ast`
90
+ Object.defineProperty(${e}, ${o}, {
91
+ // configurable is false by default
92
+ // enumerable is false by default
93
+ // writable is false by default
94
+ value: ${a.name}
95
+ });
96
+ `}function w(e,t,s=!1){const i=t.get(e.node.key.id.name),{id:n,methodId:o,getId:a,setId:l,getterDeclared:d,setterDeclared:p,static:c}=i,{params:u,body:f,generator:m,async:h}=e.node,y=a&&!d&&0===u.length,b=l&&!p&&u.length>0;let g=o;return y?(t.set(e.node.key.id.name,Object.assign({},i,{getterDeclared:!0})),g=a):b?(t.set(e.node.key.id.name,Object.assign({},i,{setterDeclared:!0})),g=l):c&&!s&&(g=n),r.types.functionDeclaration(r.types.cloneNode(g),u,f,m,h)}const N=r.traverse.visitors.merge([{ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(r.types.cloneNode(t.classRef))},MetaProperty(e){const t=e.get("meta"),s=e.get("property"),{scope:r}=e;t.isIdentifier({name:"new"})&&s.isIdentifier({name:"target"})&&e.replaceWith(r.buildUndefinedNode())}},n.default]),C={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.classRef.name)}};function k(e,t,s,n,o,a,l){var d;const p={classRef:t,needsClassRef:!1,innerBinding:l},c=new i.default({methodPath:e,constantSuper:a,file:n,refToPreserve:t,getSuperRef:s,getObjectRef:()=>(p.needsClassRef=!0,o||e.node.static?t:r.types.memberExpression(t,r.types.identifier("prototype")))});return c.replace(),(o||e.isProperty())&&e.traverse(N,p),null!=(d=p.classRef)&&d.name&&p.classRef.name!==(null==l?void 0:l.name)&&e.traverse(C,p),p.needsClassRef}},667:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractComputedKeys=function(e,t,s,i){const n=[],o={classBinding:t.node.id&&t.scope.getBinding(t.node.id.name),file:i};for(const d of s){const e=d.get("key");e.isReferencedIdentifier()?a(e,o):e.traverse(l,o);const s=d.node;if(!e.isConstantExpression()){const e=t.scope.generateUidIdentifierBasedOnNode(s.key);t.scope.push({id:e,kind:"let"}),n.push(r.types.expressionStatement(r.types.assignmentExpression("=",r.types.cloneNode(e),s.key))),s.key=r.types.cloneNode(e)}}return n},t.injectInitialization=function(e,t,s,i){if(!s.length)return;const a=!!e.node.superClass;if(!t){const s=r.types.classMethod("constructor",r.types.identifier("constructor"),[],r.types.blockStatement([]));a&&(s.params=[r.types.restElement(r.types.identifier("args"))],s.body.body.push(r.template.statement.ast`super(...args)`)),[t]=e.get("body").unshiftContainer("body",s)}i&&i(o,{scope:t.scope});if(a){const e=[];t.traverse(n,e);let i=!0;for(const t of e)i?(t.insertAfter(s),i=!1):t.insertAfter(s.map(e=>r.types.cloneNode(e)))}else t.get("body").unshiftContainer("body",s)};var r=s(76),i=s(103);const n=r.traverse.visitors.merge([{Super(e){const{node:t,parentPath:s}=e;s.isCallExpression({callee:t})&&this.push(s)}},i.default]),o={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e){this.scope.hasOwnBinding(e.node.name)&&(this.scope.rename(e.node.name),e.skip())}};function a(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const s=t.file.addHelper("classNameTDZError"),i=r.types.callExpression(s,[r.types.stringLiteral(e.node.name)]);e.replaceWith(r.types.sequenceExpression([i,e.node])),e.skip()}}const l={ReferencedIdentifier:a}},668:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURES=void 0,t.enableFeature=function(e,t,s){d(e,t)&&!u(e,t)||(e.set(o,e.get(o)|t),"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"===s?(c(e,t,!0),e.set(l,e.get(l)|t)):"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"===s?(c(e,t,!1),e.set(l,e.get(l)|t)):c(e,t,s));let r,i;for(const[o,a]of n){if(!d(e,o))continue;const t=p(e,o);if(!u(e,o)){if(r===!t)throw new Error("'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).");r=t,i=a}}if(void 0!==r)for(const[o,a]of n)d(e,o)&&p(e,o)!==r&&(c(e,o,r),console.warn(`Though the "loose" option was set to "${!r}" in your @babel/preset-env config, it will not be used for ${a} since the "loose" mode option was set to "${r}" for ${i}.\nThe "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding\n\t["${a}", { "loose": ${r} }]\nto the "plugins" section of your Babel config.`))},t.isLoose=p,t.verifyUsedFeatures=function(e,t){if((0,r.hasOwnDecorators)(e.node)){if(!d(t,i.decorators))throw e.buildCodeFrameError('Decorators are not enabled.\nIf you are using ["@babel/plugin-proposal-decorators", { "legacy": true }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:\n\t["@babel/plugin-proposal-decorators", { "legacy": true }]\n\t["@babel/plugin-proposal-class-properties", { "loose": true }]');if(e.isPrivate())throw e.buildCodeFrameError(`Private ${e.isClassMethod()?"methods":"fields"} in decorated classes are not supported yet.`)}if(null!=e.isClassPrivateMethod&&e.isClassPrivateMethod()&&!d(t,i.privateMethods))throw e.buildCodeFrameError("Class private methods are not enabled.");if(e.isPrivateName()&&e.parentPath.isBinaryExpression({operator:"in",left:e.node})&&!d(t,i.privateIn))throw e.buildCodeFrameError("Private property in checks are not enabled.");if(e.isProperty()&&!d(t,i.fields))throw e.buildCodeFrameError("Class fields are not enabled.");if(null!=e.isStaticBlock&&e.isStaticBlock()&&!d(t,i.staticBlocks))throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-proposal-class-static-block` to your configuration.")};var r=s(284);const i=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32});t.FEATURES=i;const n=new Map([[i.fields,"@babel/plugin-proposal-class-properties"],[i.privateMethods,"@babel/plugin-proposal-private-methods"],[i.privateIn,"@babel/plugin-proposal-private-property-in-object"]]),o="@babel/plugin-class-features/featuresKey",a="@babel/plugin-class-features/looseKey",l="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";function d(e,t){return!!(e.get(o)&t)}function p(e,t){return!!(e.get(a)&t)}function c(e,t,s){s?e.set(a,e.get(a)|t):e.set(a,e.get(a)&~t),e.set(l,e.get(l)&~t)}function u(e,t){return!!(e.get(l)&t)}},669:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{name:s}=e.node.id,i=e.parentPath.isExportNamedDeclaration();let n=i;!n&&t.isProgram(e.parent)&&(n=e.parent.body.some(e=>t.isExportNamedDeclaration(e)&&!e.source&&e.specifiers.some(e=>t.isExportSpecifier(e)&&e.local.name===s)));const o=(0,r.translateEnumValues)(e,t);if(n){const r=t.objectExpression(o.map(([e,s])=>t.objectProperty(t.isValidIdentifier(e)?t.identifier(e):t.stringLiteral(e),s)));return void(e.scope.hasOwnBinding(s)?(i?e.parentPath:e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[e.node.id,r]))):(e.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(e.node.id,r)])),e.scope.registerDeclaration(e)))}const a=new Map(o);e.scope.path.traverse({Scope(e){e.scope.hasOwnBinding(s)&&e.skip()},MemberExpression(e){if(!t.isIdentifier(e.node.object,{name:s}))return;let r;if(e.node.computed){if(!t.isStringLiteral(e.node.property))return;r=e.node.property.value}else{if(!t.isIdentifier(e.node.property))return;r=e.node.property.name}a.has(r)&&e.replaceWith(t.cloneNode(a.get(r)))}}),e.remove()};var r=s(285)},670:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,s){if(e.node.declare||"StringLiteral"===e.node.id.type)return void e.remove();if(!s)throw e.hub.file.buildCodeFrameError(e.node.id,"Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const l=e.node.id.name,d=function e(t,s,l,d){const p=new Set,c=l.id;s.assertIdentifier(c);const u=t.scope.generateUid(c.name),f=s.isTSModuleBlock(l.body)?l.body.body:[s.exportNamedDeclaration(l.body)];for(let r=0;r<f.length;r++){const l=f[r];switch(l.type){case"TSModuleDeclaration":{if(!s.isIdentifier(l.id))throw a(t,l);const n=e(t,s,l),o=l.id.name;p.has(o)?f[r]=n:(p.add(o),f.splice(r++,1,i(s,o),n));continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":p.add(l.id.name);continue;case"VariableDeclaration":for(const e in s.getBindingIdentifiers(l))p.add(e);continue;default:continue;case"ExportNamedDeclaration":}switch(l.declaration.type){case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":{const e=l.declaration.id.name;p.add(e),f.splice(r++,1,l.declaration,s.expressionStatement(s.assignmentExpression("=",n(s,u,e),s.identifier(e))));break}case"VariableDeclaration":{const e=o(l.declaration,u,t.hub);f.splice(r,e.length,...e),r+=e.length-1;break}case"TSModuleDeclaration":{if(!s.isIdentifier(l.declaration.id))throw a(t,l.declaration);const n=e(t,s,l.declaration,s.identifier(u)),o=l.declaration.id.name;p.has(o)?f[r]=n:(p.add(o),f.splice(r++,1,i(s,o),n))}}}let m=s.objectExpression([]);if(d){const e=s.memberExpression(d,c);m=r.template.expression.ast`
97
+ ${s.cloneNode(e)} ||
98
+ (${s.cloneNode(e)} = ${m})
99
+ `}return r.template.statement.ast`
100
+ (function (${s.identifier(u)}) {
101
+ ${f}
102
+ })(${c} || (${s.cloneNode(c)} = ${m}));
103
+ `}(e,t,t.cloneDeep(e.node)),p=e.scope.hasOwnBinding(l);"ExportNamedDeclaration"===e.parent.type?p?e.parentPath.replaceWith(d):(e.parentPath.insertAfter(d),e.replaceWith(i(t,l)),e.scope.registerDeclaration(e.parentPath)):p?e.replaceWith(d):e.scope.registerDeclaration(e.replaceWithMultiple([i(t,l),d])[0])};var r=s(76);function i(e,t){return e.variableDeclaration("let",[e.variableDeclarator(e.identifier(t))])}function n(e,t,s){return e.memberExpression(e.identifier(t),e.identifier(s))}function o(e,t,s){if("const"!==e.kind)throw s.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const{declarations:i}=e;if(i.every(e=>r.types.isIdentifier(e.id))){for(const e of i)e.init=r.types.assignmentExpression("=",n(r.types,t,e.id.name),e.init);return[e]}const o=r.types.getBindingIdentifiers(e),a=[];for(const l in o)a.push(r.types.assignmentExpression("=",n(r.types,t,l),r.types.cloneNode(o[l])));return[e,r.types.expressionStatement(r.types.sequenceExpression(a))]}function a(e,t){throw e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}},677:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(86),i=s(663),n=s(162);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(i);const l=new n.OptionValidator("@babel/preset-typescript");var d=r.declare((e,t)=>{e.assertVersion(7);const{allExtensions:s,allowNamespaces:r,disallowAmbiguousJSXLike:i,isTSX:n,jsxPragma:o,jsxPragmaFrag:d,onlyRemoveTypeImports:p,optimizeConstEnums:c}=function(e={}){let{allowNamespaces:t=!0,jsxPragma:s,onlyRemoveTypeImports:r}=e;const i="allExtensions",n="disallowAmbiguousJSXLike",o="isTSX",a="jsxPragmaFrag",d="optimizeConstEnums",p=l.validateStringOption(a,e.jsxPragmaFrag,"React.Fragment"),c=l.validateBooleanOption(i,e.allExtensions,!1),u=l.validateBooleanOption(o,e.isTSX,!1);u&&l.invariant(c,"isTSX:true requires allExtensions:true");const f=l.validateBooleanOption(n,e.disallowAmbiguousJSXLike,!1);f&&l.invariant(c,"disallowAmbiguousJSXLike:true requires allExtensions:true");const m=l.validateBooleanOption(d,e.optimizeConstEnums,!1);return{allExtensions:c,allowNamespaces:t,disallowAmbiguousJSXLike:f,isTSX:u,jsxPragma:s,jsxPragmaFrag:p,onlyRemoveTypeImports:r,optimizeConstEnums:m}}(t),u=(e,s)=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:r,disallowAmbiguousJSXLike:s,isTSX:e,jsxPragma:o,jsxPragmaFrag:d,onlyRemoveTypeImports:p,optimizeConstEnums:c});return{overrides:s?[{plugins:[[a.default,u(n,i)]]}]:[{test:/\.ts$/,plugins:[[a.default,u(!1,!1)]]},{test:/\.mts$/,sourceType:"module",plugins:[[a.default,u(!1,!0)]]},{test:/\.cts$/,sourceType:"script",plugins:[[a.default,u(!1,!0)]]},{test:/\.tsx$/,plugins:[[a.default,u(!0,!1)]]}]}});t.default=d},86:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,s,n)=>{var o;let a;for(const e of Object.keys(r)){var l;t[e]||(a=null!=(l=a)?l:i(t),a[e]=r[e](a))}return e(null!=(o=a)?o:t,s||{},n)}};const r={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const s=Error.stackTraceLimit;"number"==typeof s&&s<25&&(Error.stackTraceLimit=25);let r;r="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof s&&(Error.stackTraceLimit=s);throw Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function i(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||n(t,"version")&&n(t,"transform")&&n(t,"template")&&n(t,"types")||(t=null)),Object.assign({},t,e)}function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
104
+ }})
package/doc-dist/4.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[4,7,8],{127:function(e,t){},129:function(e,t){},165:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node||e;if((({leadingComments:e})=>!!e&&e.some(e=>/[@#]__PURE__/.test(e.value)))(t))return;s(t,"leading","#__PURE__")};var n=r(65);const{addComment:s}=n},673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({name:e,development:t}){return(0,s.declare)((r,s)=>{const{pure:h,throwIfNamespace:g=!0,filter:x,runtime:E=(t?"automatic":"classic"),importSource:j=u.importSource,pragma:v=u.pragma,pragmaFrag:w=u.pragmaFrag}=s;var{useSpread:S=!1,useBuiltIns:_=!1}=s;if("classic"===E){if("boolean"!=typeof S)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof _)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(S&&_)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}const N={JSXOpeningElement(e,t){const r=[];(function(e){const t=function(e){let t=e.scope;do{if(t.path.isFunctionParent()&&!t.path.isArrowFunctionExpression())return t.path}while(t=t.parent);return null}(e);if(null===t)return!0;if(!t.isMethod())return!0;if("constructor"!==t.node.kind)return!0;return r=t.parentPath.parentPath,!(null!==r.node.superClass);var r})(e)&&r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression()))),r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(function(e,t){const r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){const{filename:r=""}=t,n=e.scope.generateUidIdentifier("_jsxFileName"),s=e.hub.getScope();s&&s.push({id:n,init:i.types.stringLiteral(r)}),t.fileNameIdentifier=n}return function(e,t,r){const n=null!=t?i.types.numericLiteral(t):i.types.nullLiteral(),s=null!=r?i.types.numericLiteral(r+1):i.types.nullLiteral(),o=i.types.objectProperty(i.types.identifier("fileName"),e),a=i.types.objectProperty(i.types.identifier("lineNumber"),n),u=i.types.objectProperty(i.types.identifier("columnNumber"),s);return i.types.objectExpression([o,a,u])}(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}(e,t)))),e.pushContainer("attributes",r)}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(g)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=E,b=j,h=v,g=w,x=!!s.importSource,S=!!s.pragma,_=!!s.pragmaFrag;if(n.ast.comments)for(const t of n.ast.comments){const e=l.exec(t.value);e&&(b=e[1],x=!0);const r=c.exec(t.value);r&&(a=r[1]);const n=p.exec(t.value);n&&(h=n[1],S=!0);const s=d.exec(t.value);s&&(g=s[1],_=!0)}if(f(r,"runtime",a),"classic"===a){if(x)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");const t=y(h),n=y(g);f(r,"id/createElement",()=>i.types.cloneNode(t)),f(r,"id/fragment",()=>i.types.cloneNode(n)),f(r,"defaultPure",h===u.pragma)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');{if(S||_)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");const n=(n,s)=>f(r,n,function(e,r,n,s){return()=>{const a=function(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return e+"/jsx-dev-runtime";case"jsx":case"jsxs":return e+"/jsx-runtime";case"createElement":return e}}(s,n);if((0,o.isModule)(r)){let t=m(e,"imports/"+n);return t?i.types.cloneNode(t):(t=(0,o.addNamed)(r,n,a,{importedInterop:"uncompiled",importPosition:"after"}),f(e,"imports/"+n,t),t)}{let t=m(e,"requires/"+a);return t?t=i.types.cloneNode(t):(t=(0,o.addNamespace)(r,a,{importedInterop:"uncompiled"}),f(e,"requires/"+a,t)),i.types.memberExpression(t,i.types.identifier(n))}}}(r,e,s,b));n("id/jsx",t?"jsxDEV":"jsx"),n("id/jsxs",t?"jsxDEV":"jsxs"),n("id/createElement","createElement"),n("id/fragment","Fragment"),f(r,"defaultPure",b===u.importSource)}}t&&e.traverse(N,r)}},JSXElement:{exit(e,r){let n;n="classic"===m(r,"runtime")||function(e){const t=e.get("openingElement"),r=t.node.attributes;let n=!1;for(let s=0;s<r.length;s++){const e=r[s];if(n&&i.types.isJSXAttribute(e)&&"key"===e.name.name)return!0;i.types.isJSXSpreadAttribute(e)&&(n=!0)}return!1}(e)?function(e,t){const r=e.get("openingElement");return P(t,"createElement",[J(r),L(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=e.get("openingElement"),s=[J(n)],o=[],a=Object.create(null);for(const t of n.get("attributes"))if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(a[r])throw b(e,r);case"key":{const e=I(t.node.value);if(null===e)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');a[r]=e;break}default:o.push(t)}}else o.push(t);const u=i.types.react.buildChildren(e.node);let l;l=o.length||u.length?function(e,t){const r=e.reduce(k,[]);(null==t?void 0:t.length)>0&&r.push(C(t));return i.types.objectExpression(r)}(o,u):i.types.objectExpression([]);var c,p,d;s.push(l),t?s.push(null!=(c=a.key)?c:e.scope.buildUndefinedNode(),i.types.booleanLiteral(u.length>1),null!=(p=a.__source)?p:e.scope.buildUndefinedNode(),null!=(d=a.__self)?d:e.scope.buildUndefinedNode()):void 0!==a.key&&s.push(a.key);return P(r,u.length>1?"jsxs":"jsx",s)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXFragment:{exit(e,r){let n;n="classic"===m(r,"runtime")?function(e,t){if(x&&!x(e.node,t))return;return P(t,"createElement",[m(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=[m(r,"id/fragment")()],s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[C(s)]:[])),t&&n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1));return P(r,s.length>1?"jsxs":"jsx",n)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXAttribute(e){i.types.isJSXElement(e.node.value)&&(e.node.value=i.types.jsxExpressionContainer(e.node.value))}}};function P(e,t,r){const n=i.types.callExpression(m(e,"id/"+t)(),r);return(null!=h?h:m(e,"defaultPure"))&&(0,a.default)(n),n}function I(e){return i.types.isJSXExpressionContainer(e)?e.expression:e}function k(e,t){if(i.types.isJSXSpreadAttribute(t.node)){const r=t.node.argument;return i.types.isObjectExpression(r)?e.push(...r.properties):e.push(i.types.spreadElement(r)),e}const r=I("key"!==t.node.name.name?t.node.value||i.types.booleanLiteral(!0):t.node.value);if("key"===t.node.name.name&&null===r)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');var n;i.types.isStringLiteral(r)&&!i.types.isJSXExpressionContainer(t.node.value)&&(r.value=r.value.replace(/\n\s+/g," "),null==(n=r.extra)||delete n.raw);return i.types.isJSXNamespacedName(t.node.name)?t.node.name=i.types.stringLiteral(t.node.name.namespace.name+":"+t.node.name.name.name):i.types.isValidIdentifier(t.node.name.name,!1)?t.node.name.type="Identifier":t.node.name=i.types.stringLiteral(t.node.name.name),e.push(i.types.inherits(i.types.objectProperty(t.node.name,r),t.node)),e}function C(e){let t;if(1===e.length)t=e[0];else{if(!(e.length>1))return;t=i.types.arrayExpression(e)}return i.types.objectProperty(i.types.identifier("children"),t)}function J(e){const t=function e(t,r){if(i.types.isJSXIdentifier(t)){if("this"===t.name&&i.types.isReferenced(t,r))return i.types.thisExpression();if(!i.types.isValidIdentifier(t.name,!1))return i.types.stringLiteral(t.name);t.type="Identifier"}else{if(i.types.isJSXMemberExpression(t))return i.types.memberExpression(e(t.object,t),e(t.property,t));if(i.types.isJSXNamespacedName(t))return i.types.stringLiteral(`${t.namespace.name}:${t.name.name}`)}return t}(e.node.name,e.node);let r;return i.types.isIdentifier(t)?r=t.name:i.types.isLiteral(t)&&(r=t.value),i.types.react.isCompatTag(r)?i.types.stringLiteral(r):t}function L(e,t,r){const n=m(e,"runtime");if("automatic"!==n){const t=[],n=r.reduce(k,[]);if(S)n.length&&t.push(i.types.objectExpression(n));else{let e=0;n.forEach((r,s)=>{i.types.isSpreadElement(r)&&(s>e&&t.push(i.types.objectExpression(n.slice(e,s))),t.push(r.argument),e=s+1)}),n.length>e&&t.push(i.types.objectExpression(n.slice(e)))}if(!t.length)return i.types.nullLiteral();if(1===t.length)return t[0];i.types.isObjectExpression(t[0])||t.unshift(i.types.objectExpression([]));const s=_?i.types.memberExpression(i.types.identifier("Object"),i.types.identifier("assign")):e.addHelper("extends");return i.types.callExpression(s,t)}const s=[],o=Object.create(null);for(const a of r){const e=i.types.isJSXAttribute(a)&&i.types.isJSXIdentifier(a.name)&&a.name.name;if("automatic"===n&&("__source"===e||"__self"===e)){if(o[e])throw b(t,e);o[e]=!0}k(s,a)}return 1===s.length&&i.types.isSpreadElement(s[0])?s[0].argument:s.length>0?i.types.objectExpression(s):i.types.nullLiteral()}})};var n=r(674),s=r(86),i=r(76),o=r(262),a=r(165);const u={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"},l=/^\s*\*?\s*@jsxImportSource\s+([^\s]+)\s*$/m,c=/^\s*\*?\s*@jsxRuntime\s+([^\s]+)\s*$/m,p=/^\s*\*?\s*@jsx\s+([^\s]+)\s*$/m,d=/^\s*\*?\s*@jsxFrag\s+([^\s]+)\s*$/m,m=(e,t)=>e.get("@babel/plugin-react-jsx/"+t),f=(e,t,r)=>e.set("@babel/plugin-react-jsx/"+t,r);function y(e){return e.split(".").map(e=>i.types.identifier(e)).reduce((e,t)=>i.types.memberExpression(e,t))}function b(e,t){const r="transform-react-jsx-"+t.slice(2);return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}},674:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(86),s=(0,n.declare)(e=>(e.assertVersion(7),{name:"syntax-jsx",manipulateOptions(e,t){t.plugins.some(e=>"typescript"===(Array.isArray(e)?e[0]:e))||t.plugins.push("jsx")}}));t.default=s},679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(673),s=(0,n.default)({name:"transform-react-jsx",development:!1});t.default=s},86:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,i)=>{var o;let a;for(const e of Object.keys(n)){var u;t[e]||(a=null!=(u=a)?u:s(t),a[e]=n[e](a))}return e(null!=(o=a)?o:t,r||{},i)}};const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let n;n="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function s(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||i(t,"version")&&i(t,"transform")&&i(t,"template")&&i(t,"types")||(t=null)),Object.assign({},t,e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
6
+ }})
package/doc-dist/5.js ADDED
@@ -0,0 +1,13 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[5,7,8],{127:function(e,t){},129:function(e,t){},671:function(e,t,r){e.exports=r(672)},672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],o=!0,n=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);o=!0);}catch(l){n=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(n)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function n(e,t){var r=t.arguments,n=o(r,1),i=n[0],s=e.isStringLiteral(i)||e.isTemplateLiteral(i);return s?(e.removeComments(i),i):e.templateLiteral([e.templateElement({raw:"",cooked:""}),e.templateElement({raw:"",cooked:""},!0)],r)}t.getImportSource=n,t.createDynamicImportTransform=function(e){var t=e.template,r=e.types,o={static:{interop:t("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:t("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:t("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:t("Promise.resolve(SOURCE).then(s => require(s))")}},i="function"==typeof WeakSet&&new WeakSet;return function(e,t){if(i){if(i.has(t))return;i.add(t)}var s,a=n(r,t.parent),l=(s=a,r.isStringLiteral(s)||r.isTemplateLiteral(s)&&0===s.expressions.length?o.static:o.dynamic),p=e.opts.noInterop?l.noInterop({SOURCE:a}):l.interop({SOURCE:a,INTEROP:e.addHelper("interopRequireWildcard")});t.parentPath.replaceWith(p)}}},678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(86),n=r(261),i=r(76),s=r(671);const a=(0,i.template)("\n define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {\n })\n"),l=(0,i.template)('\n define(["require"], function(REQUIRE) {\n })\n');function p(e,t){const{body:r,directives:o}=e.node;e.node.directives=[],e.node.body=[];const n=e.pushContainer("body",t)[0],i=n.get("expression.arguments").filter(e=>e.isFunctionExpression())[0].get("body");i.pushContainer("directives",o),i.pushContainer("body",r)}var c=(0,o.declare)((e,t)=>{var r,o;e.assertVersion(7);const{allowTopLevelThis:c,strict:u,strictMode:d,importInterop:f,noInterop:m}=t,y=null!=(r=e.assumption("constantReexports"))?r:t.loose,h=null!=(o=e.assumption("enumerableModuleMeta"))?o:t.loose;return{name:"transform-modules-amd",pre(){this.file.set("@babel/plugin-transform-modules-*","amd")},visitor:{CallExpression(e,t){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(!e.get("callee").isImport())return;let{requireId:r,resolveId:o,rejectId:a}=t;r||(r=e.scope.generateUidIdentifier("require"),t.requireId=r),o&&a||(o=e.scope.generateUidIdentifier("resolve"),a=e.scope.generateUidIdentifier("reject"),t.resolveId=o,t.rejectId=a);let l=i.types.identifier("imported");m||(l=(0,n.wrapInterop)(e,l,"namespace")),e.replaceWith(i.template.expression.ast`
6
+ new Promise((${o}, ${a}) =>
7
+ ${r}(
8
+ [${(0,s.getImportSource)(i.types,e.node)}],
9
+ imported => ${i.types.cloneNode(o)}(${l}),
10
+ ${i.types.cloneNode(a)}
11
+ )
12
+ )`)},Program:{exit(e,{requireId:r}){if(!(0,n.isModule)(e))return void(r&&p(e,l({REQUIRE:i.types.cloneNode(r)})));const o=[],s=[];r&&(o.push(i.types.stringLiteral("require")),s.push(i.types.cloneNode(r)));let b=(0,n.getModuleName)(this.file.opts,t);b&&(b=i.types.stringLiteral(b));const{meta:v,headers:E}=(0,n.rewriteModuleStatementsAndPrepareHeader)(e,{enumerableModuleMeta:h,constantReexports:y,strict:u,strictMode:d,allowTopLevelThis:c,importInterop:f,noInterop:m});(0,n.hasExports)(v)&&(o.push(i.types.stringLiteral("exports")),s.push(i.types.identifier(v.exportName)));for(const[t,a]of v.source){if(o.push(i.types.stringLiteral(t)),s.push(i.types.identifier(a.name)),!(0,n.isSideEffectImport)(a)){const t=(0,n.wrapInterop)(e,i.types.identifier(a.name),a.interop);if(t){const e=i.types.expressionStatement(i.types.assignmentExpression("=",i.types.identifier(a.name),t));e.loc=a.loc,E.push(e)}}E.push(...(0,n.buildNamespaceInitStatements)(v,a,y))}(0,n.ensureStatementsHoisted)(E),e.unshiftContainer("body",E),p(e,a({MODULE_NAME:b,AMD_ARGUMENTS:i.types.arrayExpression(o),IMPORT_NAMES:s}))}}}}});t.default=c},86:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(o)){var l;t[e]||(a=null!=(l=a)?l:n(t),a[e]=o[e](a))}return e(null!=(s=a)?s:t,r||{},i)}};const o={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let o;o="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(o,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function n(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||i(t,"version")&&i(t,"transform")&&i(t,"template")&&i(t,"types")||(t=null)),Object.assign({},t,e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
13
+ }})
package/doc-dist/6.css ADDED
@@ -0,0 +1 @@
1
+ *,body{margin:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Overview-___index-scoped__list___1PdWk{padding:0 8px;-webkit-padding-start:0;-moz-padding-start:0;padding-inline-start:0;overflow:auto;max-height:200px}.Overview-___index-scoped__item___2RSFm{display:inline-block;font-size:18px;margin-top:12px;cursor:pointer;width:24%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Overview-___index-scoped__item___2RSFm.Overview-___index-scoped__active___2a9rn{color:#f06292}.Overview-___index-scoped__item___2RSFm:hover{color:red}.Overview-___index-scoped__widgetCtn___xPSZF{padding:8px 12px}
package/doc-dist/6.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[6],{166:function(t,n,e){t.exports={list:"Overview-___index-scoped__list___1PdWk",item:"Overview-___index-scoped__item___2RSFm",active:"Overview-___index-scoped__active___2a9rn",widgetCtn:"Overview-___index-scoped__widgetCtn___xPSZF"}},286:function(t,n,e){"use strict";var r=e(287),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,n){var e,a,i,c,s,u,l=!1;n||(n={}),e=n.debug||!1;try{i=r(),c=document.createRange(),s=document.getSelection(),u=document.createElement("span"),u.textContent=t,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),void 0===r.clipboardData){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[n.format]||o.default;window.clipboardData.setData(a,t)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,t);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");l=!0}catch(f){e&&console.error("unable to copy using execCommand: ",f),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",t),n.onCopy&&n.onCopy(window.clipboardData),l=!0}catch(f){e&&console.error("unable to copy using clipboardData: ",f),e&&console.error("falling back to prompt"),a=function(t){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,t)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),i()}return l}},287:function(t,n){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var n=document.activeElement,e=[],r=0;r<t.rangeCount;r++)e.push(t.getRangeAt(r));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||e.forEach((function(n){t.addRange(n)})),n&&n.focus()}}},680:function(t,n,e){"use strict";e.r(n);var r=e(3),o=e(12),a=e(0),i=e.n(a);let c={data:""},s=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||c,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/|\s\s+|\n/g,d=(t,n)=>{let e="",r="",o="";for(let a in t){let i=t[a];"@"==a[0]?"i"==a[1]?e=a+" "+i+";":r+="f"==a[1]?d(i,a):a+"{"+d(i,"k"==a[1]?"":n)+"}":"object"==typeof i?r+=d(i,n?n.replace(/([^,])+/g,t=>a.replace(/(^:.*)|([^,])+/g,n=>/&/.test(n)?n.replace(/&/g,t):t?t+" "+n:n)):a):null!=i&&(a=a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=d.p?d.p(a,i):a+":"+i+";")}return e+(n&&o?n+"{"+o+"}":o)+r},f={},p=t=>{if("object"==typeof t){let n="";for(let e in t)n+=e+p(t[e]);return n}return t},m=(t,n,e,r,o)=>{let a=p(t),i=f[a]||(f[a]=(t=>{let n=0,e=11;for(;n<t.length;)e=101*e+t.charCodeAt(n++)>>>0;return"go"+e})(a));if(!f[i]){let n=a!==t?t:(t=>{let n,e=[{}];for(;n=u.exec(t.replace(l,""));)n[4]?e.shift():n[3]?e.unshift(e[0][n[3]]=e[0][n[3]]||{}):e[0][n[1]]=n[2];return e[0]})(t);f[i]=d(o?{["@keyframes "+i]:n}:n,e?"":"."+i)}return((t,n,e)=>{-1==n.data.indexOf(t)&&(n.data=e?t+n.data:n.data+t)})(f[i],n,r),i},y=(t,n,e)=>t.reduce((t,r,o)=>{let a=n[o];if(a&&a.call){let t=a(e),n=t&&t.props&&t.props.className||/^go/.test(t)&&t;a=n?"."+n:t&&"object"==typeof t?t.props?"":d(t,""):!1===t?"":t}return t+r+(null==a?"":a)},"");function v(t){let n=this||{},e=t.call?t(n.p):t;return m(e.unshift?e.raw?y(e,[].slice.call(arguments,1),n.p):e.reduce((t,e)=>Object.assign(t,e&&e.call?e(n.p):e),{}):e,s(n.target),n.g,n.o,n.k)}v.bind({g:1});let g,b,h,x=v.bind({k:1});function O(t,n){let e=this||{};return function(){let r=arguments;function o(a,i){let c=Object.assign({},a),s=c.className||o.className;e.p=Object.assign({theme:b&&b()},c),e.o=/ *go\d+/.test(s),c.className=v.apply(e,r)+(s?" "+s:""),n&&(c.ref=i);let u=t;return t[0]&&(u=c.as||t,delete c.as),h&&u[0]&&h(c),g(u,c)}return n?n(o):o}}function E(){return E=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},E.apply(this,arguments)}function T(t,n){return n||(n=t.slice(0)),t.raw=n,t}var w,S=function(t,n){return function(t){return"function"==typeof t}(t)?t(n):t},_=function(){var t=0;return function(){return(++t).toString()}}();!function(t){t[t.ADD_TOAST=0]="ADD_TOAST",t[t.UPDATE_TOAST=1]="UPDATE_TOAST",t[t.UPSERT_TOAST=2]="UPSERT_TOAST",t[t.DISMISS_TOAST=3]="DISMISS_TOAST",t[t.REMOVE_TOAST=4]="REMOVE_TOAST",t[t.START_PAUSE=5]="START_PAUSE",t[t.END_PAUSE=6]="END_PAUSE"}(w||(w={}));var A=[],D={toasts:[],pausedAt:void 0},j=function(t){D=function t(n,e){switch(e.type){case w.ADD_TOAST:return E({},n,{toasts:[e.toast].concat(n.toasts).slice(0,20)});case w.UPDATE_TOAST:return E({},n,{toasts:n.toasts.map((function(t){return t.id===e.toast.id?E({},t,e.toast):t}))});case w.UPSERT_TOAST:var r=e.toast;return n.toasts.find((function(t){return t.id===r.id}))?t(n,{type:w.UPDATE_TOAST,toast:r}):t(n,{type:w.ADD_TOAST,toast:r});case w.DISMISS_TOAST:return E({},n,{toasts:n.toasts.map((function(t){return t.id===e.toastId||void 0===e.toastId?E({},t,{visible:!1}):t}))});case w.REMOVE_TOAST:return void 0===e.toastId?E({},n,{toasts:[]}):E({},n,{toasts:n.toasts.filter((function(t){return t.id!==e.toastId}))});case w.START_PAUSE:return E({},n,{pausedAt:e.time});case w.END_PAUSE:var o=e.time-(n.pausedAt||0);return E({},n,{pausedAt:void 0,toasts:n.toasts.map((function(t){return E({},t,{pauseDuration:t.pauseDuration+o})}))})}}(D,t),A.forEach((function(t){t(D)}))},C={blank:4e3,error:4e3,success:2e3,loading:3e4},R=function(t){return function(n,e){var r=function(t,n,e){return void 0===n&&(n="blank"),E({id:(null==e?void 0:e.id)||_(),createdAt:Date.now(),visible:!0,type:n,role:"status",ariaLive:"polite",message:t,pauseDuration:0},e)}(n,t,e);return j({type:w.UPSERT_TOAST,toast:r}),r.id}},P=function(t,n){return R("blank")(t,n)};P.error=R("error"),P.success=R("success"),P.loading=R("loading"),P.dismiss=function(t){j({type:w.DISMISS_TOAST,toastId:t}),setTimeout((function(){j({type:w.REMOVE_TOAST,toastId:t})}),1e3)},P.remove=function(t){return j({type:w.REMOVE_TOAST,toastId:t})},P.promise=function(t,n,e){var r=P.loading(n.loading,E({},e,null==e?void 0:e.loading));return t.then((function(t){return P.success(S(n.success,t),E({id:r},e,null==e?void 0:e.success)),t})).catch((function(t){P.error(S(n.error,t),E({id:r},e,null==e?void 0:e.error))})),t};var k=function(t){var n=function(t){void 0===t&&(t={});var n=Object(a.useState)(D),e=n[0],r=n[1];Object(a.useEffect)((function(){return A.push(r),function(){var t=A.indexOf(r);t>-1&&A.splice(t,1)}}),[e]);var o=e.toasts.map((function(n){var e,r,o;return E({},t,t[n.type],n,{duration:n.duration||(null==(e=t[n.type])?void 0:e.duration)||(null==(r=t)?void 0:r.duration)||C[n.type],style:E({},t.style,null==(o=t[n.type])?void 0:o.style,n.style)})}));return E({},e,{toasts:o})}(t),e=n.toasts,r=n.pausedAt,o=e.filter((function(t){return t.visible}));Object(a.useEffect)((function(){if(!r){var t=Date.now(),n=e.map((function(n){var e=(n.duration||0)+n.pauseDuration-(t-n.createdAt);if(!(e<0))return setTimeout((function(){return P.dismiss(n.id)}),e);n.visible&&P.dismiss(n.id)}));return function(){n.forEach((function(t){return t&&clearTimeout(t)}))}}}),[e,r]);var i=Object(a.useMemo)((function(){return{startPause:function(){j({type:w.START_PAUSE,time:Date.now()})},endPause:function(){r&&j({type:w.END_PAUSE,time:Date.now()})},updateHeight:function(t,n){return j({type:w.UPDATE_TOAST,toast:{id:t,height:n}})},calculateOffset:function(t,n){var e=n||{},r=e.reverseOrder,a=void 0!==r&&r,i=e.margin,c=void 0===i?8:i,s=o.findIndex((function(n){return n.id===t})),u=-1!==s?o.slice.apply(o,a?[s+1]:[0,s]).reduce((function(t,n){return t+(n.height||0)+c}),0):0;return u}}}),[o,r]);return{toasts:e,visibleToasts:o,handlers:i}};function I(){var t=T(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);return I=function(){return t},t}function U(){var t=T(["\n from {\n transform: scale(0) rotate(90deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(90deg);\n\t opacity: 1;\n }\n"]);return U=function(){return t},t}function N(){var t=T(["\n from {\n transform: scale(0);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1);\n\t opacity: 1;\n }\n"]);return N=function(){return t},t}function M(){var t=T(["\n from {\n transform: scale(0) rotate(45deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(45deg);\n\t opacity: 1;\n }\n"]);return M=function(){return t},t}var z=x(M()),K=x(N()),F=x(U()),L=O("div")(I(),(function(t){return t.primary||"#ff4b4b"}),z,K,(function(t){return t.secondary||"#fff"}),F);function H(){var t=T(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"]);return H=function(){return t},t}function V(){var t=T(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);return V=function(){return t},t}var J=x(V()),Z=O("div")(H(),(function(t){return t.secondary||"#e0e0e0"}),(function(t){return t.primary||"#616161"}),J);function q(){var t=T(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);return q=function(){return t},t}function B(){var t=T(["\n 0% {\n\t\theight: 0;\n\t\twidth: 0;\n\t\topacity: 0;\n }\n\n 40% {\n\t\theight: 0;\n\t\twidth: 6px;\n\t\topacity: 1;\n }\n\n 100% {\n opacity: 1;\n\t\theight: 10px;\n }\n"]);return B=function(){return t},t}function W(){var t=T(["\n from {\n transform: scale(0) rotate(45deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(45deg);\n\t opacity: 1;\n }\n"]);return W=function(){return t},t}var X=x(W()),Y=x(B()),$=O("div")(q(),(function(t){return t.primary||"#61d345"}),X,Y,(function(t){return t.secondary||"#fff"}));function G(){var t=T(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);return G=function(){return t},t}function Q(){var t=T(["\n position: absolute;\n"]);return Q=function(){return t},t}var tt=O("div")(Q()),nt=O("div")(G()),et=function(t){var n=t.type,e=t.theme;return"blank"===n?null:Object(a.createElement)(nt,null,Object(a.createElement)(Z,Object.assign({},e)),"loading"!==n&&Object(a.createElement)(tt,null,"error"===n?Object(a.createElement)(L,Object.assign({},e)):Object(a.createElement)($,Object.assign({},e))))};function rt(){var t=T(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);return rt=function(){return t},t}function ot(){var t=T(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\n\nto {\n transform: scale(1);\n opacity: 1;\n}\n"]);return ot=function(){return t},t}var at=x(ot()),it=O("div")(rt(),at);function ct(){var t=T(["",""]);return ct=function(){return t},t}function st(){var t=T(["",""]);return st=function(){return t},t}function ut(){var t=T(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1;\n"]);return ut=function(){return t},t}function lt(){var t=T(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n margin: 16px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);return lt=function(){return t},t}var dt=function(t){return"\n0% {transform: translate3d(0,"+-80*t+"px,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"},ft=function(t){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,"+-130*t+"px,-1px) scale(.5); opacity:0;}\n"},pt=O("div",a.forwardRef)(lt()),mt=O("div")(ut()),yt=Object(a.memo)((function(t){var n,e,r,o=t.toast,i=t.position,c=function(t,n){if(null==t)return{};var e,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,["toast","position"]),s=Object(a.useCallback)((function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();c.onHeight(n.height)}))}),[]),u=function(t,n){var e=t.includes("top"),r=e?{top:0}:{bottom:0},o=t.includes("left")?{left:0}:t.includes("right")?{right:0}:{left:0,pointerEvents:"none",right:0,justifyContent:"center"};return E({position:"fixed",transition:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+n*(e?1:-1)+"px)"},r,o)}(i,c.offset),l=null!=o&&o.height?function(t,n){var e=t.includes("top"),r=e?1:-1;return n?{animation:x(st(),dt(r))+" 0.35s cubic-bezier(.21,1.02,.73,1) forwards"}:{animation:x(ct(),ft(r))+" 0.8s forwards cubic-bezier(.06,.71,.55,1)",pointerEvents:"none"}}(i,o.visible):{opacity:0};return Object(a.createElement)("div",{style:E({display:"flex",zIndex:o.visible?9999:void 0},u)},Object(a.createElement)(pt,{ref:s,className:o.className,style:E({},l,o.style)},(n=o.icon,e=o.type,r=o.iconTheme,void 0!==n?"string"==typeof n?Object(a.createElement)(it,null,n):n:Object(a.createElement)(et,{theme:r,type:e})),Object(a.createElement)(mt,{role:o.role,"aria-live":o.ariaLive},S(o.message,o))))}));!function(t,n,e,r){d.p=n,g=t,b=e,h=r}(a.createElement);var vt=function(t){var n=t.reverseOrder,e=t.position,r=void 0===e?"top-center":e,o=t.containerStyle,i=t.toastOptions,c=k(i),s=c.toasts,u=c.handlers;return Object(a.createElement)("div",{style:E({position:"fixed",zIndex:9999},o),onMouseEnter:u.startPause,onMouseLeave:u.endPause},s.map((function(t){return Object(a.createElement)(yt,{key:t.id,onHeight:function(n){return u.updateHeight(t.id,n)},toast:t,offset:u.calculateOffset(t.id,{reverseOrder:n}),position:r})})))},gt=P,bt=e(18),ht=e(166),xt=e.n(ht),Ot=e(286),Et=e.n(Ot),Tt=function(t){var n=t.entryKeys,e=t.currentEntryKey,r=t.onChange,o=t.loadOpts;return i.a.createElement("ul",{className:xt.a.list},n.map((function(t){return i.a.createElement("li",{className:(t===e?xt.a.active:"")+" "+xt.a.item,onClick:function(){if("function"==typeof r&&r(t),t===e){var n=null!=o?o:{},a=n.servePath,i=n.consoleOSId,c=n.entryKey;if(!c)return;a=encodeURIComponent(a),i=encodeURIComponent(i),c=encodeURIComponent(c),Et()("https://xconsole.aliyun-inc.com/demo-playground?servePath=".concat(a,"&consoleOSId=").concat(i,"&entryKey=").concat(c)),gt("已将demo地址复制到剪贴板")}},key:t},t)})))},wt=["entryKey","onEntryKeyChange"],St=bt.b.map((function(t){var n=t.key;return n}));n.default=function(t){var n=t.entryKey,e=t.onEntryKeyChange,a=Object(o.a)(t,wt),c=a,s=c.loadOpts;return i.a.createElement("div",{className:xt.a.container},i.a.createElement(vt,{position:"bottom-right"}),i.a.createElement(Tt,{entryKeys:St,currentEntryKey:n,onChange:e,loadOpts:s}),i.a.createElement("hr",null),n&&i.a.createElement("div",{className:xt.a.widgetCtn},i.a.createElement(bt.a,Object(r.a)({},a,{key:n,entryKey:n}))))}}}]);
6
+ }})
@@ -0,0 +1 @@
1
+ html *,html body{margin:0}html *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html .Overview-___index-scoped__list___1PdWk{padding:0 8px;-webkit-padding-start:0;-moz-padding-start:0;padding-inline-start:0;overflow:auto;max-height:200px}html .Overview-___index-scoped__item___2RSFm{display:inline-block;font-size:18px;margin-top:12px;cursor:pointer;width:24%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html .Overview-___index-scoped__item___2RSFm.Overview-___index-scoped__active___2a9rn{color:#f06292}html .Overview-___index-scoped__item___2RSFm:hover{color:red}html .Overview-___index-scoped__widgetCtn___xPSZF{padding:8px 12px}
package/doc-dist/7.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[7,8],{127:function(c,o){},129:function(c,o){}}]);
6
+ }})
package/doc-dist/8.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[8,7],{127:function(c,o){},129:function(c,o){}}]);
6
+ }})
package/doc-dist/9.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
+ window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
+
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[9],{685:function(n,e,o){"use strict";o.r(e);var a=o(0),s=o.n(a),t=o(130);e.default=n=>s.a.createElement(t.a,Object.assign({source:"# @alicloud/console-components-search\n\n基础搜索组件: 当前控制台的基础搜索主要针对列表页的搜索场景,此次基础搜索组件主要通过一个简约通用的框架满足控制台针对列表页不同场景下的搜索需求\n按照使用场景分为三种使用场景\n- 场景一:单维度单类别单选 (eg:该功能模块下只支持“实例名称”这唯一类别的搜索);\n- 场景二:单维度多类别单选(eg:该功能模块下只支持“实例名称”这唯一类别的搜索网络类型包括多个子类别);\n- 场景三:多维度多类别(eg:该功能模块下支持“网络类型”这一类别和其他同等类别的交集搜索);\n\n### SearchTagList\n场景二、三需结合SearchTagList使用, SearchTagList用与展示Search已选的筛选条件(以tag的形式),分成两个组件可以更灵活的定位SearchTagList的位置(比如表格场景)\n\n## install \n\n```bash\ntnpm i @alicloud/xconsole-components-search --save-dev\n```\n\n## Usage\n\n```js\nimport { Search, IRcSearchProps } from \"@alicloud/console-components-search\";\nlet options = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '默认按实例名称搜索',\n dataSource: []\n }\n }\n]\n\nlet options2 = [\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择网络类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n }\n }\n]\nasync function onSuggestAsync (value: string, dataIndex: string) {\n if (!value) {\n return [];\n }\n return [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n}\nfunction onSuggestPromise (value: string, dataIndex: string) {\n let rtList = [];\n if (!value) {\n rtList = [];\n }\n rtList = [\n // {label: value, value: `${dataIndex}-${value}`}\n `${value}-1`,\n `${value}-2`,\n `${value}-3`,\n `${value}-4`,\n `${value}-5`,\n ]\n return Promise.resolve(rtList)\n}\n\nasync function onChange1 (changedFileds:any, allFileds:any) {\n console.log(`changedFileds:`, changedFileds, 'allFileds', allFileds)\n}\n\nasync function onSearch (allFileds:any) {\n console.log(`onSearch:`, 'allFileds', allFileds)\n alert(`提交搜索: ${JSON.stringify(allFileds)}`)\n}\n<div>\n 搜索类型:(async 调用)<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options}\n onSuggest={onSuggestAsync}\n onChange={onChange1}\n onSearch={onSearch} \n />\n <br /><br /><br /> 搜索类型:(promise调用)<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options}\n onSuggest={onSuggestPromise}\n onChange={onChange1}\n onSearch={onSearch} \n />\n <br /><br /><br /> 单选类型:<br />\n <Search\n mode=\"single-single\"\n regionId=\"demo\"\n resourceType=\"demo\"\n options={options2}\n onChange={onChange1}\n onSearch={onSearch}\n />\n <br /> 单维度单类别,暂不支持多选\n</div>\n\n```\n\n## 使用场景\n\n### 场景一:单维度单类别单选 (eg:该功能模块下只支持“实例名称”这唯一类别的搜索);\n\n1、用户点击输入框直接输入要搜索的内容;<br>\n2、场景一只提供‘input’类型和‘select’类型;<br>\n3、模糊搜索的回调函数支持async 和 promise 调用;<br>\n\n[$XView](http://localhost:3333/?entryKey=demo1&consoleOSId=console-fe-test-rc-search-doc)\n\n> 场景一的已选值在基础搜索组件上展示, 无需引用“searchTagList”组件\n<br>\n\n### 场景二:单维度多类别单选(eg:该功能模块下只支持“实例名称”这唯一类别的搜索网络类型包括多个子类别);\n\n1、用户点击输入框激活下拉类别列表<br>\n2、当用户直接输入内容的时候,列表消失<br>\n3、用户点击类别后,在搜索框内生成类别Tag<br>\n4、如果该类别有子类别/推荐项,顺次自动下拉展开<br>\n5、当用户完成该类别搜索后,搜索框默认保留该类别Tag<br>\n6、用户点击类别后,在搜索框内生成类别Tag<br>\n7、如果该类别有子类别/推荐项,顺次自动下拉展开<br>\n8、当用户完成该类别搜索后,搜索框默认保留该类别Tag<br>\n\n[$XView](http://localhost:3333/?entryKey=demo2&consoleOSId=console-fe-test-rc-search-doc)\n\n> 场景二:单维度单类别单选,同一类别下,用户切换子类别内容筛选条件区域的Tag直接被替换。当内容为空时点击输入框里面的叉, 可清除当前类别,回到初始状态。场景三的已选值在基础搜索组件外展示, 需引用“searchTagList”组件\n\n<br>\n\n### 场景三:多维度多类别(eg:该功能模块下支持“网络类型”这一类别和其他同等类别的交集搜索);\n\n1、多维度单类别单选,同一类别下,用户切换子类别内容<br>\n2、筛选条件区域的Tag直接被替换;用户选择不同类别会<br>\n3、生成新的筛选Tag出现在筛选区<br>\n\n[$XView](http://localhost:3333/?entryKey=demo3&consoleOSId=console-fe-test-rc-search-doc)\n\n> 场景三的已选值在基础搜索组件外展示, 需引用“searchTagList”组件\n\n<br>\n\n### 无默认分类, 默认多类别搜索;\n\n1、当开发者没有指定默认类别且用户没有选择类别的时候;<br>\n2、模糊搜索的回调函数将使用onSuggestNoDataIndex,返回<br>\n3、开发者可返回多组类别的模糊搜索结果\n[$XView](http://localhost:3333/?entryKey=demo4&consoleOSId=console-fe-test-rc-search-doc)\n\n\n## API\n\n## rc-search\n\n基础搜索组件的参数\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchProps&consoleOSId=console-fe-test-rc-search-doc)\n\n## options\n\n配置组件类别的options\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchOptions&consoleOSId=console-fe-test-rc-search-doc)\n\n## tags\n\n场景二、三, 需要与SearchTagList共同使用时的参数\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchTagItemProps&consoleOSId=console-fe-test-rc-search-doc)\n\n## SearchTagList\n\n场景二、三, 需要与Search共同使用时的参数\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchTagListProps&consoleOSId=console-fe-test-rc-search-doc)\n\n"},n))}}]);
6
+ }})