@next-bricks/presentational-bricks 1.323.4 → 1.323.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deploy/contract.yaml +94 -94
- package/dist/bricks.json +14 -13
- package/dist/{index.29d1859e.js → index.b45ce0a4.js} +2 -2
- package/dist/{index.29d1859e.js.map → index.b45ce0a4.js.map} +1 -1
- package/dist/property-editors/{property-editors.f6c787f8.js → property-editors.c0ccb877.js} +2 -2
- package/dist/property-editors/property-editors.c0ccb877.js.map +1 -0
- package/package.json +2 -2
- package/dist/property-editors/property-editors.f6c787f8.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e){var t={};function o(a){if(t[a])return t[a].exports;var l=t[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,o),l.l=!0,l.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(a,l,function(t){return e[t]}.bind(null,l));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t,o){e.exports=o(2)("tYg3")},function(e,t,o){var a;o.p="".concat(null!==(a=window.PUBLIC_ROOT)&&void 0!==a?a:"","bricks/presentational-bricks/dist/property-editors/")},function(e,t){e.exports=dll},function(e,t,o){"use strict";o.r(t);o(1);var a=o(0),l={name:"layout",type:"void",component:{name:"FormLayout",props:{layout:"vertical"}},children:[{name:"categoryTitle_basic",type:"void",decorator:{name:"CategoryTitle",props:{text:"基础"}}},{name:"placeholder",title:"占位文本",type:"string"},{name:"q",title:"回填文本",type:"string"},{name:"shouldTrimQuery",title:"自动去除输入的首尾空格",type:"boolean",component:{props:{size:"small",defaultValue:!0}}},{name:"disableAutofocus",title:"禁用自动聚焦",type:"boolean"},{name:"allowClear",title:"支持清空",type:"boolean"},{name:"searchTypeEnabled",title:"支持切换搜索类型",type:"boolean","x-reactions":[{target:"searchType",fulfill:{state:{visible:"{{$self.value}}"}}}]},{name:"searchType",title:"默认搜索类型",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"全文搜索",value:"all"},{label:"IP搜索",value:"ip"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"all"}}},{name:"debounceTime",title:"搜索延迟时间",decorator:"FormItem",type:"number",component:{name:"NumberPicker",props:{placeholder:"0"}}},{name:"shouldUpdateUrlParams",title:"更新URL",type:"boolean",component:{props:{size:"small",defaultValue:!0}},"x-reactions":[{target:"qField",fulfill:{state:{visible:"{{$self.value}}"}}}]},{name:"qField",title:"更新到URL上的Key值",type:"string",component:{props:{placeholder:"q"}}},{name:"defaultArgs",title:"搜索重置默认参数",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"categoryTitle_style",type:"void",decorator:{name:"CategoryTitle",props:{text:"样式"}}},{name:"size",title:"尺寸大小",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"超大",value:"extraLarge"},{label:"大",value:"large"},{label:"标准",value:"default"},{label:"小",value:"small"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"default"}}},{name:"shape",title:"形状",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"默认",value:"default"},{label:"圆角",value:"round"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"default"}}},{name:"inputStyle",title:"输入框样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"buttonStyle",title:"按钮样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"}]};Object(a.getRuntime)().customEditors.define("presentational-bricks.brick-general-search",(function(e){return function(t){var{SchemaFieldComponent:o,formilySchemaFormatter:a,advancedMode:n,scope:r,form:i}=t;return e.useEffect(()=>{i.setInitialValues({searchTypeEnabled:!1})},[i]),e.createElement(o,{schema:a(l,n),scope:r})}}));var n={name:"layout",type:"void",component:{name:"FormLayout",props:{layout:"vertical"}},children:[{name:"categoryTitle_basic",type:"void",decorator:{name:"CategoryTitle",props:{text:"基础"}}},{name:"componentType",title:"标签类型",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"默认",value:"Tag"},{label:"可选标签",value:"CheckableTag"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"Tag"}},"x-reactions":[{target:"multipleCheck",fulfill:{state:{visible:"{{$self.value==='CheckableTag'}}"}}},{dependencies:["multipleCheck"],target:"cancelable",fulfill:{state:{visible:"{{$self.value==='CheckableTag'&&$deps[0]===false}}"}}},{target:"default",fulfill:{state:{visible:"{{$self.value==='CheckableTag'}}"}}},{dependencies:["closable"],target:"color",fulfill:{state:{visible:"{{$self.value==='Tag'&&$deps[0]===false}}"}}},{target:"configProps",fulfill:{state:{visible:"{{$self.value==='Tag'}}"}}}]},{name:"tagList",title:"标签列表",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"multipleCheck",title:"允许多选",type:"boolean",component:{props:{size:"small",defaultValue:!0}},"x-reactions":[{dependencies:["componentType"],target:"cancelable",fulfill:{state:{visible:"{{$self.value===false&&$deps[0]==='checkableTag'}}"}}}]},{name:"cancelable",title:"允许取消选中",type:"boolean",component:{props:{size:"small",defaultValue:!0}}},{name:"default",title:"默认值",type:"string"},{name:"categoryTitle_style",type:"void",decorator:{name:"CategoryTitle",props:{text:"样式"}}},{name:"showTagCircle",title:"标签内显示圆点",type:"boolean"},{name:"showCard",title:"显示卡片容器",type:"boolean",component:{props:{size:"small",defaultValue:!0}}},{name:"closable",title:"允许关闭",type:"boolean","x-reactions":[{dependencies:["componentType"],target:"color",fulfill:{state:{visible:"{{$self.value===false&&$deps[0]==='Tag'}}"}}}]},{name:"textEllipsis",title:"是否溢出省略",type:"boolean"},{name:"label",title:"文案",type:"string"},{name:"color",title:"颜色",type:"string",component:"ColorPicker"},{name:"tagStyle",title:"自定义样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"tagCheckedStyle",title:"选中自定义样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"tagHoverStyle",title:"悬浮自定义样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"categoryTitle_other",type:"void",decorator:{name:"CategoryTitle",props:{text:"其他"}}},{name:"disabledTooltip",title:"禁用提示",type:"string"},{name:"tooltipProps",title:"提示配置",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"configProps",title:"额外配置",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"afterBrick",title:"尾部插入构件",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"}]};Object(a.getRuntime)().customEditors.define("presentational-bricks.brick-tag",(function(e){return function(t){var{SchemaFieldComponent:o,formilySchemaFormatter:a,advancedMode:l,scope:r,form:i}=t;return e.useEffect(()=>{i.setInitialValues({componentType:"Tag",multipleCheck:!0,closable:!1})},[i]),e.createElement(o,{schema:a(n,l),scope:r})}}))}]);
|
|
2
|
-
//# sourceMappingURL=property-editors.
|
|
1
|
+
!function(e){var t={};function o(a){if(t[a])return t[a].exports;var l=t[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,o),l.l=!0,l.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(a,l,function(t){return e[t]}.bind(null,l));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,t,o){e.exports=o(2)("tYg3")},function(e,t,o){var a;o.p="".concat(null!==(a=window.PUBLIC_ROOT)&&void 0!==a?a:"","bricks/presentational-bricks/dist/property-editors/")},function(e,t){e.exports=dll},function(e,t,o){"use strict";o.r(t);o(1);var a=o(0),l={name:"layout",type:"void",component:{name:"FormLayout",props:{layout:"vertical"}},children:[{name:"categoryTitle_basic",type:"void",decorator:{name:"CategoryTitle",props:{text:"基础"}}},{name:"placeholder",title:"占位文本",type:"string"},{name:"q",title:"回填文本",type:"string"},{name:"shouldTrimQuery",title:"自动去除输入的首尾空格",type:"boolean",component:{props:{size:"small",defaultValue:!0}}},{name:"disableAutofocus",title:"禁用自动聚焦",type:"boolean"},{name:"allowClear",title:"支持清空",type:"boolean"},{name:"searchTypeEnabled",title:"支持切换搜索类型",type:"boolean","x-reactions":[{target:"searchType",fulfill:{state:{visible:"{{$self.value}}"}}}]},{name:"searchType",title:"默认搜索类型",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"全文搜索",value:"all"},{label:"IP搜索",value:"ip"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"all"}}},{name:"debounceTime",title:"搜索延迟时间",decorator:"FormItem",type:"number",component:{name:"NumberPicker",props:{placeholder:"0"}}},{name:"shouldUpdateUrlParams",title:"更新URL",type:"boolean",component:{props:{size:"small",defaultValue:!0}},"x-reactions":[{target:"qField",fulfill:{state:{visible:"{{$self.value}}"}}}]},{name:"qField",title:"更新到URL上的Key值",type:"string",component:{props:{placeholder:"q"}}},{name:"defaultArgs",title:"搜索重置默认参数",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"categoryTitle_style",type:"void",decorator:{name:"CategoryTitle",props:{text:"样式"}}},{name:"size",title:"尺寸大小",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"超大",value:"extraLarge"},{label:"大",value:"large"},{label:"标准",value:"default"},{label:"小",value:"small"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"default"}}},{name:"shape",title:"形状",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"默认",value:"default"},{label:"圆角",value:"round"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"default"}}},{name:"inputStyle",title:"输入框样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"buttonStyle",title:"按钮样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"}]};Object(a.getRuntime)().customEditors.define("presentational-bricks.brick-general-search",(function(e){return function(t){var{SchemaFieldComponent:o,formilySchemaFormatter:a,advancedMode:n,scope:r,form:i}=t;return e.useEffect(()=>{i.setInitialValues({searchTypeEnabled:!1})},[i]),e.createElement(o,{schema:a(l,n),scope:r})}}));var n={name:"layout",type:"void",component:{name:"FormLayout",props:{layout:"vertical"}},children:[{name:"categoryTitle_basic",type:"void",decorator:{name:"CategoryTitle",props:{text:"基础"}}},{name:"componentType",title:"标签类型",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"默认",value:"Tag"},{label:"可选标签",value:"CheckableTag"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"Tag"}},"x-reactions":[{target:"multipleCheck",fulfill:{state:{visible:"{{$self.value==='CheckableTag'}}"}}},{dependencies:["multipleCheck"],target:"cancelable",fulfill:{state:{visible:"{{$self.value==='CheckableTag'&&$deps[0]===false}}"}}},{target:"default",fulfill:{state:{visible:"{{$self.value==='CheckableTag'}}"}}},{dependencies:["closable"],target:"color",fulfill:{state:{visible:"{{$self.value==='Tag'&&$deps[0]===false}}"}}},{target:"configProps",fulfill:{state:{visible:"{{$self.value==='Tag'}}"}}}]},{name:"tagList",title:"标签列表",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"multipleCheck",title:"允许多选",type:"boolean",component:{props:{size:"small",defaultValue:!0}},"x-reactions":[{dependencies:["componentType"],target:"cancelable",fulfill:{state:{visible:"{{$self.value===false&&$deps[0]==='checkableTag'}}"}}}]},{name:"cancelable",title:"允许取消选中",type:"boolean",component:{props:{size:"small",defaultValue:!0}}},{name:"default",title:"默认值",type:"string"},{name:"categoryTitle_style",type:"void",decorator:{name:"CategoryTitle",props:{text:"样式"}}},{name:"showTagCircle",title:"标签内显示圆点",type:"boolean"},{name:"showCard",title:"显示卡片容器",type:"boolean",component:{props:{size:"small",defaultValue:!0}}},{name:"closable",title:"允许关闭",type:"boolean","x-reactions":[{dependencies:["componentType"],target:"color",fulfill:{state:{visible:"{{$self.value===false&&$deps[0]==='Tag'}}"}}}]},{name:"textEllipsis",title:"是否溢出省略",type:"boolean"},{name:"label",title:"文案",type:"string"},{name:"color",title:"颜色",type:"string",component:"ColorPicker"},{name:"tagStyle",title:"自定义样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"tagCheckedStyle",title:"选中自定义样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"tagHoverStyle",title:"悬浮自定义样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"categoryTitle_other",type:"void",decorator:{name:"CategoryTitle",props:{text:"其他"}}},{name:"disabledTooltip",title:"禁用提示",type:"string"},{name:"tooltipProps",title:"提示配置",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"configProps",title:"额外配置",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"},{name:"afterBrick",title:"尾部插入构件",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"}]};Object(a.getRuntime)().customEditors.define("presentational-bricks.brick-tag",(function(e){return function(t){var{SchemaFieldComponent:o,formilySchemaFormatter:a,advancedMode:l,scope:r,form:i}=t;return e.useEffect(()=>{i.setInitialValues({componentType:"Tag",multipleCheck:!0,closable:!1})},[i]),e.createElement(o,{schema:a(n,l),scope:r})}}));var r={name:"layout",type:"void",component:{name:"FormLayout",props:{layout:"vertical"}},children:[{name:"categoryTitle_basic",type:"void",decorator:{name:"CategoryTitle",props:{text:"基础"}}},{name:"type",title:"类型",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal",tooltip:"Radiation是个特殊的类型,样式是特定的"}},enum:[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"},{label:"Radiation",value:"radiation"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"horizontal"}},"x-reactions":[{target:"proportion",fulfill:{state:{visible:"{{$self.value==='radiation'}}"}}}]},{name:"proportion",title:"数值",type:"string",component:"CodeEditor",decorator:{name:"FormItemWithoutAdvanced",props:{tooltip:"如需要展示1/3,yaml格式填入数组[1,3]"}}},{name:"dividerTitle",title:"标题",type:"string"},{name:"orientation",title:"标题位置",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}},enum:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}],component:{name:"Radio.Group",props:{size:"small",optionType:"button",defaultValue:"center"}}},{name:"dashed",title:"虚线效果",type:"boolean"},{name:"plain",title:"文字普通正文样式",type:"boolean"},{name:"dividerStyle",title:"分割线样式",type:"string",component:"CodeEditor",decorator:"FormItemWithoutAdvanced"}]};Object(a.getRuntime)().customEditors.define("presentational-bricks.brick-divider",(function(e){return function(t){var{SchemaFieldComponent:o,formilySchemaFormatter:a,advancedMode:l,scope:n,form:i}=t;return e.useEffect(()=>{i.setInitialValues({type:"horizontal"})},[i]),e.createElement(o,{schema:a(r,l),scope:n})}}))}]);
|
|
2
|
+
//# sourceMappingURL=property-editors.c0ccb877.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/@next-core/brick-kit/dist/index.esm.js from dll-reference dll","webpack:///./bricks/presentational-bricks/src/property-editors/_/public-path.js","webpack:///external \"dll\"","webpack:///./bricks/presentational-bricks/src/property-editors/brick-general-search/brickGeneralSearch.schema.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-general-search/index.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-tag/brickTag.schema.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-tag/index.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-divider/brickDivider.schema.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-divider/index.tsx"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__webpack_public_path__","window","PUBLIC_ROOT","dll","brickGeneralSearchSchema","type","component","props","layout","children","decorator","text","title","size","defaultValue","target","fulfill","state","visible","enum","label","optionType","placeholder","getRuntime","customEditors","define","React","SchemaFieldComponent","formilySchemaFormatter","advancedMode","scope","form","useEffect","setInitialValues","searchTypeEnabled","createElement","schema","brickTagSchema","dependencies","componentType","multipleCheck","closable","brickDividerSchema","tooltip"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAA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,uCAxBF,SAAsCC,GACpC,OAAO,SAA+BnB,GACpC,IAAM,qBACJoB,EAAoB,uBACpBC,EAAsB,aACtBC,EAAY,MACZC,EAAK,KACLC,GACExB,EAQJ,OANAmB,EAAMM,UAAU,KACdD,EAAKE,iBAAiB,CACpB5B,KAAM,gBAEP,CAAC0B,IAEGL,EAAMS,cAAcR,EAAsB,CAC/CS,OAAQR,EAAuBc,EAA2Bb,GAC1DC","file":"property-editors.c0ccb877.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n","module.exports = (__webpack_require__(2))(\"tYg3\");","__webpack_public_path__ = `${window.PUBLIC_ROOT ?? \"\"}bricks/presentational-bricks/dist/property-editors/`;","module.exports = dll;","export const brickGeneralSearchSchema = {\n name: \"layout\",\n type: \"void\",\n component: {\n name: \"FormLayout\",\n props: {\n layout: \"vertical\",\n },\n },\n children: [\n {\n name: \"categoryTitle_basic\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"基础\",\n },\n },\n },\n {\n name: \"placeholder\",\n title: \"占位文本\",\n type: \"string\",\n },\n {\n name: \"q\",\n title: \"回填文本\",\n type: \"string\",\n },\n {\n name: \"shouldTrimQuery\",\n title: \"自动去除输入的首尾空格\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n },\n {\n name: \"disableAutofocus\",\n title: \"禁用自动聚焦\",\n type: \"boolean\",\n },\n {\n name: \"allowClear\",\n title: \"支持清空\",\n type: \"boolean\",\n },\n {\n name: \"searchTypeEnabled\",\n title: \"支持切换搜索类型\",\n type: \"boolean\",\n \"x-reactions\": [\n {\n target: \"searchType\",\n fulfill: {\n state: {\n visible: \"{{$self.value}}\",\n },\n },\n },\n ],\n },\n {\n name: \"searchType\",\n title: \"默认搜索类型\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"全文搜索\",\n value: \"all\",\n },\n {\n label: \"IP搜索\",\n value: \"ip\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"all\",\n },\n },\n },\n {\n name: \"debounceTime\",\n title: \"搜索延迟时间\",\n decorator: \"FormItem\",\n type: \"number\",\n component: {\n name: \"NumberPicker\",\n props: {\n placeholder: \"0\",\n },\n },\n },\n {\n name: \"shouldUpdateUrlParams\",\n title: \"更新URL\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n \"x-reactions\": [\n {\n target: \"qField\",\n fulfill: {\n state: {\n visible: \"{{$self.value}}\",\n },\n },\n },\n ],\n },\n {\n name: \"qField\",\n title: \"更新到URL上的Key值\",\n type: \"string\",\n component: {\n props: {\n placeholder: \"q\",\n },\n },\n },\n {\n name: \"defaultArgs\",\n title: \"搜索重置默认参数\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"categoryTitle_style\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"样式\",\n },\n },\n },\n {\n name: \"size\",\n title: \"尺寸大小\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"超大\",\n value: \"extraLarge\",\n },\n {\n label: \"大\",\n value: \"large\",\n },\n {\n label: \"标准\",\n value: \"default\",\n },\n {\n label: \"小\",\n value: \"small\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"default\",\n },\n },\n },\n {\n name: \"shape\",\n title: \"形状\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"默认\",\n value: \"default\",\n },\n {\n label: \"圆角\",\n value: \"round\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"default\",\n },\n },\n },\n {\n name: \"inputStyle\",\n title: \"输入框样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"buttonStyle\",\n title: \"按钮样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n ],\n};\n","import type _React from \"react\";\nimport { getRuntime } from \"@next-core/brick-kit\";\nimport { brickGeneralSearchSchema } from \"./brickGeneralSearch.schema\";\n\nfunction BrickGeneralSearchComponentFactory(React: typeof _React) {\n return function BrickGeneralSearchComponent(props: any): React.ReactElement {\n const {\n SchemaFieldComponent,\n formilySchemaFormatter,\n advancedMode,\n scope,\n form,\n } = props;\n\n React.useEffect(() => {\n form.setInitialValues({ searchTypeEnabled: false });\n }, [form]);\n\n return React.createElement(SchemaFieldComponent, {\n schema: formilySchemaFormatter(\n brickGeneralSearchSchema as any,\n advancedMode!\n ),\n scope,\n });\n };\n}\n\n(getRuntime() as any).customEditors.define(\n \"presentational-bricks.brick-general-search\",\n BrickGeneralSearchComponentFactory\n);\n","export const brickTagSchema = {\n name: \"layout\",\n type: \"void\",\n component: {\n name: \"FormLayout\",\n props: {\n layout: \"vertical\",\n },\n },\n children: [\n {\n name: \"categoryTitle_basic\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"基础\",\n },\n },\n },\n {\n name: \"componentType\",\n title: \"标签类型\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"默认\",\n value: \"Tag\",\n },\n {\n label: \"可选标签\",\n value: \"CheckableTag\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"Tag\",\n },\n },\n \"x-reactions\": [\n {\n target: \"multipleCheck\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='CheckableTag'}}\",\n },\n },\n },\n {\n dependencies: [\"multipleCheck\"],\n target: \"cancelable\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='CheckableTag'&&$deps[0]===false}}\",\n },\n },\n },\n {\n target: \"default\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='CheckableTag'}}\",\n },\n },\n },\n {\n dependencies: [\"closable\"],\n target: \"color\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='Tag'&&$deps[0]===false}}\",\n },\n },\n },\n {\n target: \"configProps\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='Tag'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"tagList\",\n title: \"标签列表\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"multipleCheck\",\n title: \"允许多选\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n \"x-reactions\": [\n {\n dependencies: [\"componentType\"],\n target: \"cancelable\",\n fulfill: {\n state: {\n visible: \"{{$self.value===false&&$deps[0]==='checkableTag'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"cancelable\",\n title: \"允许取消选中\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n },\n {\n name: \"default\",\n title: \"默认值\",\n type: \"string\",\n },\n {\n name: \"categoryTitle_style\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"样式\",\n },\n },\n },\n {\n name: \"showTagCircle\",\n title: \"标签内显示圆点\",\n type: \"boolean\",\n },\n {\n name: \"showCard\",\n title: \"显示卡片容器\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n },\n {\n name: \"closable\",\n title: \"允许关闭\",\n type: \"boolean\",\n \"x-reactions\": [\n {\n dependencies: [\"componentType\"],\n target: \"color\",\n fulfill: {\n state: {\n visible: \"{{$self.value===false&&$deps[0]==='Tag'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"textEllipsis\",\n title: \"是否溢出省略\",\n type: \"boolean\",\n },\n {\n name: \"label\",\n title: \"文案\",\n type: \"string\",\n },\n {\n name: \"color\",\n title: \"颜色\",\n type: \"string\",\n component: \"ColorPicker\",\n },\n {\n name: \"tagStyle\",\n title: \"自定义样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"tagCheckedStyle\",\n title: \"选中自定义样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"tagHoverStyle\",\n title: \"悬浮自定义样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"categoryTitle_other\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"其他\",\n },\n },\n },\n {\n name: \"disabledTooltip\",\n title: \"禁用提示\",\n type: \"string\",\n },\n {\n name: \"tooltipProps\",\n title: \"提示配置\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"configProps\",\n title: \"额外配置\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"afterBrick\",\n title: \"尾部插入构件\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n ],\n};\n","import type _React from \"react\";\nimport { getRuntime } from \"@next-core/brick-kit\";\nimport { brickTagSchema } from \"./brickTag.schema\";\n\nfunction BrickTagComponentFactory(React: typeof _React) {\n return function BrickTagComponent(props: any): React.ReactElement {\n const {\n SchemaFieldComponent,\n formilySchemaFormatter,\n advancedMode,\n scope,\n form,\n } = props;\n\n React.useEffect(() => {\n form.setInitialValues({\n componentType: \"Tag\",\n multipleCheck: true,\n closable: false,\n });\n }, [form]);\n\n return React.createElement(SchemaFieldComponent, {\n schema: formilySchemaFormatter(brickTagSchema as any, advancedMode!),\n scope,\n });\n };\n}\n\n(getRuntime() as any).customEditors.define(\n \"presentational-bricks.brick-tag\",\n BrickTagComponentFactory\n);\n","export const brickDividerSchema = {\n name: \"layout\",\n type: \"void\",\n component: {\n name: \"FormLayout\",\n props: {\n layout: \"vertical\",\n },\n },\n children: [\n {\n name: \"categoryTitle_basic\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"基础\",\n },\n },\n },\n {\n name: \"type\",\n title: \"类型\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n tooltip: \"Radiation是个特殊的类型,样式是特定的\",\n },\n },\n enum: [\n {\n label: \"Horizontal\",\n value: \"horizontal\",\n },\n {\n label: \"Vertical\",\n value: \"vertical\",\n },\n {\n label: \"Radiation\",\n value: \"radiation\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"horizontal\",\n },\n },\n \"x-reactions\": [\n {\n target: \"proportion\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='radiation'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"proportion\",\n title: \"数值\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n props: {\n tooltip: \"如需要展示1/3,yaml格式填入数组[1,3]\",\n },\n },\n },\n {\n name: \"dividerTitle\",\n title: \"标题\",\n type: \"string\",\n },\n {\n name: \"orientation\",\n title: \"标题位置\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"左\",\n value: \"left\",\n },\n {\n label: \"中\",\n value: \"center\",\n },\n {\n label: \"右\",\n value: \"right\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"center\",\n },\n },\n },\n {\n name: \"dashed\",\n title: \"虚线效果\",\n type: \"boolean\",\n },\n {\n name: \"plain\",\n title: \"文字普通正文样式\",\n type: \"boolean\",\n },\n {\n name: \"dividerStyle\",\n title: \"分割线样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n ],\n};\n","import type _React from \"react\";\nimport { getRuntime } from \"@next-core/brick-kit\";\nimport { brickDividerSchema } from \"./brickDivider.schema\";\n\nfunction BrickDividerComponentFactory(React: typeof _React) {\n return function BrickDividerComponent(props: any): React.ReactElement {\n const {\n SchemaFieldComponent,\n formilySchemaFormatter,\n advancedMode,\n scope,\n form,\n } = props;\n\n React.useEffect(() => {\n form.setInitialValues({\n type: \"horizontal\",\n });\n }, [form]);\n\n return React.createElement(SchemaFieldComponent, {\n schema: formilySchemaFormatter(brickDividerSchema as any, advancedMode!),\n scope,\n });\n };\n}\n\n(getRuntime() as any).customEditors.define(\n \"presentational-bricks.brick-divider\",\n BrickDividerComponentFactory\n);\n"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational-bricks",
|
|
3
|
-
"version": "1.323.
|
|
3
|
+
"version": "1.323.5",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-basics/tree/master/bricks/presentational-bricks",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"@next-dll/ace": "*",
|
|
75
75
|
"@next-dll/react-dnd": "*"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "57c0f7b27cfbab6f77dabf3fbcd7845dd2cf3758"
|
|
78
78
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/@next-core/brick-kit/dist/index.esm.js from dll-reference dll","webpack:///./bricks/presentational-bricks/src/property-editors/_/public-path.js","webpack:///external \"dll\"","webpack:///./bricks/presentational-bricks/src/property-editors/brick-general-search/brickGeneralSearch.schema.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-general-search/index.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-tag/brickTag.schema.tsx","webpack:///./bricks/presentational-bricks/src/property-editors/brick-tag/index.tsx"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__webpack_public_path__","window","PUBLIC_ROOT","dll","brickGeneralSearchSchema","type","component","props","layout","children","decorator","text","title","size","defaultValue","target","fulfill","state","visible","enum","label","optionType","placeholder","getRuntime","customEditors","define","React","SchemaFieldComponent","formilySchemaFormatter","advancedMode","scope","form","useEffect","setInitialValues","searchTypeEnabled","createElement","schema","brickTagSchema","dependencies","componentType","multipleCheck","closable"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClC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C,MAAO,OACPP,KAAM,UACN,cAAe,CACb,CACEiC,aAAc,CAAC,iBACfvB,OAAQ,QACRC,QAAS,CACPC,MAAO,CACLC,QAAS,iDAMnB,CACE3C,KAAM,eACNqC,MAAO,SACPP,KAAM,WAER,CACE9B,KAAM,QACNqC,MAAO,KACPP,KAAM,UAER,CACE9B,KAAM,QACNqC,MAAO,KACPP,KAAM,SACNC,UAAW,eAEb,CACE/B,KAAM,WACNqC,MAAO,QACPP,KAAM,SACNC,UAAW,aACXI,UAAW,2BAEb,CACEnC,KAAM,kBACNqC,MAAO,UACPP,KAAM,SACNC,UAAW,aACXI,UAAW,2BAEb,CACEnC,KAAM,gBACNqC,MAAO,UACPP,KAAM,SACNC,UAAW,aACXI,UAAW,2BAEb,CACEnC,KAAM,sBACN8B,KAAM,OACNK,UAAW,CACTnC,KAAM,gBACNgC,MAAO,CACLI,KAAM,QAIZ,CACEpC,KAAM,kBACNqC,MAAO,OACPP,KAAM,UAER,CACE9B,KAAM,eACNqC,MAAO,OACPP,KAAM,SACNC,UAAW,aACXI,UAAW,2BAEb,CACEnC,KAAM,cACNqC,MAAO,OACPP,KAAM,SACNC,UAAW,aACXI,UAAW,2BAEb,CACEnC,KAAM,aACNqC,MAAO,SACPP,KAAM,SACNC,UAAW,aACXI,UAAW,6BC9NhBa,uBAAqBC,cAAcC,OAClC,mCA1BF,SAAkCC,GAChC,OAAO,SAA2BnB,GAChC,IAAM,qBACJoB,EAAoB,uBACpBC,EAAsB,aACtBC,EAAY,MACZC,EAAK,KACLC,GACExB,EAUJ,OARAmB,EAAMM,UAAU,KACdD,EAAKE,iBAAiB,CACpBM,cAAe,MACfC,eAAe,EACfC,UAAU,KAEX,CAACV,IAEGL,EAAMS,cAAcR,EAAsB,CAC/CS,OAAQR,EAAuBS,EAAuBR,GACtDC","file":"property-editors.f6c787f8.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n","module.exports = (__webpack_require__(2))(\"tYg3\");","__webpack_public_path__ = `${window.PUBLIC_ROOT ?? \"\"}bricks/presentational-bricks/dist/property-editors/`;","module.exports = dll;","export const brickGeneralSearchSchema = {\n name: \"layout\",\n type: \"void\",\n component: {\n name: \"FormLayout\",\n props: {\n layout: \"vertical\",\n },\n },\n children: [\n {\n name: \"categoryTitle_basic\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"基础\",\n },\n },\n },\n {\n name: \"placeholder\",\n title: \"占位文本\",\n type: \"string\",\n },\n {\n name: \"q\",\n title: \"回填文本\",\n type: \"string\",\n },\n {\n name: \"shouldTrimQuery\",\n title: \"自动去除输入的首尾空格\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n },\n {\n name: \"disableAutofocus\",\n title: \"禁用自动聚焦\",\n type: \"boolean\",\n },\n {\n name: \"allowClear\",\n title: \"支持清空\",\n type: \"boolean\",\n },\n {\n name: \"searchTypeEnabled\",\n title: \"支持切换搜索类型\",\n type: \"boolean\",\n \"x-reactions\": [\n {\n target: \"searchType\",\n fulfill: {\n state: {\n visible: \"{{$self.value}}\",\n },\n },\n },\n ],\n },\n {\n name: \"searchType\",\n title: \"默认搜索类型\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"全文搜索\",\n value: \"all\",\n },\n {\n label: \"IP搜索\",\n value: \"ip\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"all\",\n },\n },\n },\n {\n name: \"debounceTime\",\n title: \"搜索延迟时间\",\n decorator: \"FormItem\",\n type: \"number\",\n component: {\n name: \"NumberPicker\",\n props: {\n placeholder: \"0\",\n },\n },\n },\n {\n name: \"shouldUpdateUrlParams\",\n title: \"更新URL\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n \"x-reactions\": [\n {\n target: \"qField\",\n fulfill: {\n state: {\n visible: \"{{$self.value}}\",\n },\n },\n },\n ],\n },\n {\n name: \"qField\",\n title: \"更新到URL上的Key值\",\n type: \"string\",\n component: {\n props: {\n placeholder: \"q\",\n },\n },\n },\n {\n name: \"defaultArgs\",\n title: \"搜索重置默认参数\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"categoryTitle_style\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"样式\",\n },\n },\n },\n {\n name: \"size\",\n title: \"尺寸大小\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"超大\",\n value: \"extraLarge\",\n },\n {\n label: \"大\",\n value: \"large\",\n },\n {\n label: \"标准\",\n value: \"default\",\n },\n {\n label: \"小\",\n value: \"small\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"default\",\n },\n },\n },\n {\n name: \"shape\",\n title: \"形状\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"默认\",\n value: \"default\",\n },\n {\n label: \"圆角\",\n value: \"round\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"default\",\n },\n },\n },\n {\n name: \"inputStyle\",\n title: \"输入框样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"buttonStyle\",\n title: \"按钮样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n ],\n};\n","import type _React from \"react\";\nimport { getRuntime } from \"@next-core/brick-kit\";\nimport { brickGeneralSearchSchema } from \"./brickGeneralSearch.schema\";\n\nfunction BrickGeneralSearchComponentFactory(React: typeof _React) {\n return function BrickGeneralSearchComponent(props: any): React.ReactElement {\n const {\n SchemaFieldComponent,\n formilySchemaFormatter,\n advancedMode,\n scope,\n form,\n } = props;\n\n React.useEffect(() => {\n form.setInitialValues({ searchTypeEnabled: false });\n }, [form]);\n\n return React.createElement(SchemaFieldComponent, {\n schema: formilySchemaFormatter(\n brickGeneralSearchSchema as any,\n advancedMode!\n ),\n scope,\n });\n };\n}\n\n(getRuntime() as any).customEditors.define(\n \"presentational-bricks.brick-general-search\",\n BrickGeneralSearchComponentFactory\n);\n","export const brickTagSchema = {\n name: \"layout\",\n type: \"void\",\n component: {\n name: \"FormLayout\",\n props: {\n layout: \"vertical\",\n },\n },\n children: [\n {\n name: \"categoryTitle_basic\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"基础\",\n },\n },\n },\n {\n name: \"componentType\",\n title: \"标签类型\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n enum: [\n {\n label: \"默认\",\n value: \"Tag\",\n },\n {\n label: \"可选标签\",\n value: \"CheckableTag\",\n },\n ],\n component: {\n name: \"Radio.Group\",\n props: {\n size: \"small\",\n optionType: \"button\",\n defaultValue: \"Tag\",\n },\n },\n \"x-reactions\": [\n {\n target: \"multipleCheck\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='CheckableTag'}}\",\n },\n },\n },\n {\n dependencies: [\"multipleCheck\"],\n target: \"cancelable\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='CheckableTag'&&$deps[0]===false}}\",\n },\n },\n },\n {\n target: \"default\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='CheckableTag'}}\",\n },\n },\n },\n {\n dependencies: [\"closable\"],\n target: \"color\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='Tag'&&$deps[0]===false}}\",\n },\n },\n },\n {\n target: \"configProps\",\n fulfill: {\n state: {\n visible: \"{{$self.value==='Tag'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"tagList\",\n title: \"标签列表\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"multipleCheck\",\n title: \"允许多选\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n \"x-reactions\": [\n {\n dependencies: [\"componentType\"],\n target: \"cancelable\",\n fulfill: {\n state: {\n visible: \"{{$self.value===false&&$deps[0]==='checkableTag'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"cancelable\",\n title: \"允许取消选中\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n },\n {\n name: \"default\",\n title: \"默认值\",\n type: \"string\",\n },\n {\n name: \"categoryTitle_style\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"样式\",\n },\n },\n },\n {\n name: \"showTagCircle\",\n title: \"标签内显示圆点\",\n type: \"boolean\",\n },\n {\n name: \"showCard\",\n title: \"显示卡片容器\",\n type: \"boolean\",\n component: {\n props: {\n size: \"small\",\n defaultValue: true,\n },\n },\n },\n {\n name: \"closable\",\n title: \"允许关闭\",\n type: \"boolean\",\n \"x-reactions\": [\n {\n dependencies: [\"componentType\"],\n target: \"color\",\n fulfill: {\n state: {\n visible: \"{{$self.value===false&&$deps[0]==='Tag'}}\",\n },\n },\n },\n ],\n },\n {\n name: \"textEllipsis\",\n title: \"是否溢出省略\",\n type: \"boolean\",\n },\n {\n name: \"label\",\n title: \"文案\",\n type: \"string\",\n },\n {\n name: \"color\",\n title: \"颜色\",\n type: \"string\",\n component: \"ColorPicker\",\n },\n {\n name: \"tagStyle\",\n title: \"自定义样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"tagCheckedStyle\",\n title: \"选中自定义样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"tagHoverStyle\",\n title: \"悬浮自定义样式\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"categoryTitle_other\",\n type: \"void\",\n decorator: {\n name: \"CategoryTitle\",\n props: {\n text: \"其他\",\n },\n },\n },\n {\n name: \"disabledTooltip\",\n title: \"禁用提示\",\n type: \"string\",\n },\n {\n name: \"tooltipProps\",\n title: \"提示配置\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"configProps\",\n title: \"额外配置\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n {\n name: \"afterBrick\",\n title: \"尾部插入构件\",\n type: \"string\",\n component: \"CodeEditor\",\n decorator: \"FormItemWithoutAdvanced\",\n },\n ],\n};\n","import type _React from \"react\";\nimport { getRuntime } from \"@next-core/brick-kit\";\nimport { brickTagSchema } from \"./brickTag.schema\";\n\nfunction BrickTagComponentFactory(React: typeof _React) {\n return function BrickTagComponent(props: any): React.ReactElement {\n const {\n SchemaFieldComponent,\n formilySchemaFormatter,\n advancedMode,\n scope,\n form,\n } = props;\n\n React.useEffect(() => {\n form.setInitialValues({\n componentType: \"Tag\",\n multipleCheck: true,\n closable: false,\n });\n }, [form]);\n\n return React.createElement(SchemaFieldComponent, {\n schema: formilySchemaFormatter(brickTagSchema as any, advancedMode!),\n scope,\n });\n };\n}\n\n(getRuntime() as any).customEditors.define(\n \"presentational-bricks.brick-tag\",\n BrickTagComponentFactory\n);\n"],"sourceRoot":""}
|