update slowlyo/owl-admin:4.0.5
parent
b6a620e935
commit
933e1c2d53
|
|
@ -65,3 +65,6 @@ VITE_APP_NAME="${APP_NAME}"
|
||||||
|
|
||||||
ADMIN_SHOW_DEVELOPMENT_TOOLS=false
|
ADMIN_SHOW_DEVELOPMENT_TOOLS=false
|
||||||
ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON=false
|
ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON=false
|
||||||
|
ADMIN_HEADER_DARK=false
|
||||||
|
ADMIN_HEADER_FULL_SCREEN=false
|
||||||
|
ADMIN_HEADER_LOCALE_TOGGLE=false
|
||||||
|
|
|
||||||
28
README.md
28
README.md
|
|
@ -29,7 +29,7 @@
|
||||||
| path | 所有上级id | 默认: -, 例如: -1-2-3- |
|
| path | 所有上级id | 默认: -, 例如: -1-2-3- |
|
||||||
| sort | 排序 | 正序 |
|
| sort | 排序 | 正序 |
|
||||||
|
|
||||||
### 修改扩展 slowlyo/owl-admin 鉴权 `permission` 方法
|
### 修改 `BaseRenderer` 中的 `permission` 方法
|
||||||
|
|
||||||
- `vendor\slowlyo\owl-admin\src\Renderers\BaseRenderer.php`
|
- `vendor\slowlyo\owl-admin\src\Renderers\BaseRenderer.php`
|
||||||
|
|
||||||
|
|
@ -52,6 +52,30 @@ public function filteredResults()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 重写 `AdminService` 中的 `store` 和 `update` 方法
|
||||||
|
|
||||||
|
- `app\Services\UserService.php`
|
||||||
|
|
||||||
|
```php
|
||||||
|
public function store($data)
|
||||||
|
{
|
||||||
|
$this->saving($data);
|
||||||
|
$model = $this->modelName::create($data);
|
||||||
|
$this->saved($model);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update($primaryKey, $data)
|
||||||
|
{
|
||||||
|
$this->saving($data, $primaryKey);
|
||||||
|
|
||||||
|
$model = $this->query()->whereKey($primaryKey)->first();
|
||||||
|
$model->update($data);
|
||||||
|
$this->saved($model, true);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- 表单验证: 服务端返回 `errors` 不生效, https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formitem#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C
|
- 表单验证: 服务端返回 `errors` 不生效, 示例文件: `app\Services\UserService.php`, [组件文档](https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formitem#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C)
|
||||||
|
|
@ -15,6 +15,24 @@ class UserService extends AdminService
|
||||||
{
|
{
|
||||||
protected string $modelName = User::class;
|
protected string $modelName = User::class;
|
||||||
|
|
||||||
|
public function store($data)
|
||||||
|
{
|
||||||
|
$this->saving($data);
|
||||||
|
$model = $this->modelName::create($data);
|
||||||
|
$this->saved($model);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update($primaryKey, $data)
|
||||||
|
{
|
||||||
|
$this->saving($data, $primaryKey);
|
||||||
|
|
||||||
|
$model = $this->query()->whereKey($primaryKey)->first();
|
||||||
|
$model->update($data);
|
||||||
|
$this->saved($model, true);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function saving(&$data, $primaryKey = '')
|
public function saving(&$data, $primaryKey = '')
|
||||||
{
|
{
|
||||||
$unique = Rule::unique('users', 'phone');
|
$unique = Rule::unique('users', 'phone');
|
||||||
|
|
|
||||||
|
|
@ -3395,16 +3395,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "slowlyo/owl-admin",
|
"name": "slowlyo/owl-admin",
|
||||||
"version": "v4.0.3",
|
"version": "v4.0.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/slowlyo/owl-admin.git",
|
"url": "https://github.com/slowlyo/owl-admin.git",
|
||||||
"reference": "667249c5d333777f78625d5a355b7587cff5c549"
|
"reference": "843fbe5be86fbd396c690a41583d247c131398dc"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/slowlyo/owl-admin/zipball/667249c5d333777f78625d5a355b7587cff5c549",
|
"url": "https://api.github.com/repos/slowlyo/owl-admin/zipball/843fbe5be86fbd396c690a41583d247c131398dc",
|
||||||
"reference": "667249c5d333777f78625d5a355b7587cff5c549",
|
"reference": "843fbe5be86fbd396c690a41583d247c131398dc",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -3456,10 +3456,10 @@
|
||||||
"email": "slowlyo_email@qq.com",
|
"email": "slowlyo_email@qq.com",
|
||||||
"forum": "https://github.com/orgs/owl-admin/discussions",
|
"forum": "https://github.com/orgs/owl-admin/discussions",
|
||||||
"issues": "https://github.com/Slowlyo/owl-admin/issues",
|
"issues": "https://github.com/Slowlyo/owl-admin/issues",
|
||||||
"source": "https://github.com/slowlyo/owl-admin/tree/v4.0.3",
|
"source": "https://github.com/slowlyo/owl-admin/tree/v4.0.5",
|
||||||
"wiki": "https://doc.owladmin.com/"
|
"wiki": "https://doc.owladmin.com/"
|
||||||
},
|
},
|
||||||
"time": "2024-10-28T14:20:18+00:00"
|
"time": "2024-11-05T14:02:41+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/clock",
|
"name": "symfony/clock",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as i,ai as u,z as c,D as l,f as m}from"./index-DT8qTvyx.js";var f=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var a=this.props,n=a.render,s=a.props,o=a.schema,r=u(this.props)||o;if(typeof r=="string")try{r=JSON.parse(r)}catch(p){console.warn("amis value must be json string",p),r=null}return n("amis",r,s)},e=c([l({type:"amis"})],e),e}(m.Component);export{f as AMISRenderer};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as u,t as v,v as i,w as l,f as c,x as _,y,z as m,D as b}from"./index-DT8qTvyx.js";var A=function(s){u(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.render=function(){var e=this.props,d=e.render,p=e.body,t=e.level,n=e.icon,a=e.showIcon,o=e.actions,h=v(e,["render","body","level","icon","showIcon","actions"]);i(t)&&(t=l(t,this.props.data)),i(n)&&(n=l(n,this.props.data)),i(a)&&(a=l(a,this.props.data));var f=o?c.isValidElement(o)?o:d("alert-actions",o):null;return c.createElement(_,y({},h,{level:t,icon:n,showIcon:a,actions:f}),d("body",p))},r=m([b({type:"alert"})],r),r}(c.Component);export{A as AlertRenderer};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as m,a5 as N,f as p,dN as _,y as S,K as A,aG as g,aH as C,dO as R,z as u,P as y,Q as d,D as b}from"./index-DT8qTvyx.js";var P=function(c){m(a,c);function a(e){var r=c.call(this,e)||this,t=e.links,s=0;if(typeof e.active<"u")s=e.active;else{var i=r.getActiveSection(t,e.active,null);s=i&&i.href?i.href:t[0]&&t[0].href||0}return r.state={active:s},r}return a.prototype.getActiveSection=function(e,r,t){var s=this;return t||(e.forEach(function(i){i.href===r?t=i:i.children&&s.getActiveSection(i.children,r,t)}),t)},a.prototype.handleSelect=function(e){this.setState({active:e})},a.prototype.locateTo=function(e){var r=this.props.links;Array.isArray(r)&&r[e]&&this.setState({active:r[e].href||e})},a.prototype.renderSections=function(e,r){var t=this,s=this.props;s.classnames,s.classPrefix;var i=s.sectionRender,f=s.render,h=s.data;e=Array.isArray(e)?e:[e];var l=[];return e.forEach(function(n,v){if(N(n,h)){var o=(r?r+"-":"")+v;l.push(p.createElement(_,S({},n,{title:A(n.title,h),key:o,name:n.href||o}),t.renderSection?t.renderSection(n,t.props,o):i?i(n,t.props,o):f("section/".concat(o),n.body||""))),n.children&&l.push.apply(l,g([],C(t.renderSections(n.children,o)),!1))}}),l.filter(function(n){return!!n})},a.prototype.render=function(){var e=this.props,r=e.classnames,t=e.classPrefix,s=e.className,i=e.style,f=e.linkClassName,h=e.sectionClassName,l=e.direction;e.sectionRender,e.render,e.data;var n=this.props.links;if(!n)return null;var v=this.renderSections(n);return p.createElement(R,{classPrefix:t,classnames:r,className:s,style:i,linkClassName:f,sectionClassName:h,onSelect:this.handleSelect,active:this.state.active,direction:l},v)},a.defaultProps={className:"",linkClassName:"",sectionClassName:""},u([y,d("design:type",Function),d("design:paramtypes",[Object]),d("design:returntype",void 0)],a.prototype,"handleSelect",null),u([y,d("design:type",Function),d("design:paramtypes",[Number]),d("design:returntype",void 0)],a.prototype,"locateTo",null),a}(p.Component),E=function(c){m(a,c);function a(){return c!==null&&c.apply(this,arguments)||this}return a=u([b({type:"anchor-nav"})],a),a}(P);export{E as AnchorNavRenderer,P as default};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as E,v,w as h,f as m,Z as z,z as p,P as f,Q as n,D as L,$ as R}from"./index-DT8qTvyx.js";var j=function(r){E(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.handleClick=function(e){var t=this.props,s=t.dispatchEvent,i=t.data;s(e,i)},a.prototype.handleMouseEnter=function(e){var t=this.props,s=t.dispatchEvent,i=t.data;s(e,i)},a.prototype.handleMouseLeave=function(e){var t=this.props,s=t.dispatchEvent,i=t.data;s(e,i)},a.prototype.render=function(){var e=this.props,t=e.style,s=t===void 0?{}:t,i=e.className,b=e.classnames,o=e.src,_=e.defaultAvatar,g=e.icon,d=g===void 0?"fa fa-user":g,F=e.fit,A=e.shape,M=e.size,l=e.text,x=e.gap,O=e.alt,w=e.draggable,C=e.crossOrigin,c=e.onError,u=e.data,y=function(){return!1};if(typeof c=="string")try{y=new Function("event",c)}catch(k){console.warn(c,k)}return v(o)&&(o=h(o,u,"| raw")),v(l)&&(l=h(l,u)),v(d)&&(d=h(d,u)),m.createElement(z,{style:s,className:i,classnames:b,src:o||_,icon:d,fit:F,shape:A,size:M,text:l,gap:x,alt:O,draggable:w,crossOrigin:C,onError:y,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave})},p([f,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],a.prototype,"handleClick",null),p([f,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],a.prototype,"handleMouseEnter",null),p([f,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],a.prototype,"handleMouseLeave",null),a}(m.Component),P=function(r){E(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a=p([L({type:"avatar"}),R],a),a}(j);export{j as AvatarField,P as AvatarFieldRenderer};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,2 @@
|
||||||
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BarCode-KSuiJLoD.js","assets/index-DT8qTvyx.js","assets/index-We5Babj5.css"])))=>i.map(i=>d[i]);
|
||||||
|
import{f as n,o as u,s as o,ai as p,j as t,r as h,z as v,D as f}from"./index-DT8qTvyx.js";var m=n.lazy(function(){return u(()=>import("./BarCode-KSuiJLoD.js"),__vite__mapDeps([0,1,2]))}),_=function(a){o(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(){var r=this.props,s=r.className,i=r.style;r.width,r.height;var d=r.classnames,l=r.options,c=p(this.props);return t(h.Suspense,{fallback:t("div",{children:"..."}),children:t("div",{"data-testid":"barcode",className:d("BarCode",s),style:i,children:t(m,{value:c,options:l})})})},e}(n.Component),C=function(a){o(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e=v([f({type:"barcode"})],e),e}(_);export{_ as BarCodeField,C as BarCodeFieldRenderer};
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as d,t as v,w as u,K as o,f as c,a2 as p,y as _,z as m,D as y}from"./index-DT8qTvyx.js";var B=function(a){d(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props,f=t.items,b=t.source,l=t.data,i=t.env,h=v(t,["items","source","data","env"]),s=f||u(b,l,"| raw");return s&&(s=s.map(function(r){return r.label&&(r.label=o(r.label,l)),r.href&&(r.href=u(r.href,l,"| raw")),r.dropdown&&(r.dropdown=r.dropdown.map(function(n){return n.label&&(n.label=o(n.label,l)),n.href&&(n.href=u(n.href,l,"| raw")),n})),r})),c.createElement(p,_({items:s,tooltipContainer:i==null?void 0:i.getModalContainer},h))},e}(c.Component),g=function(a){d(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e=m([y({type:"breadcrumb"})],e),e}(B);export{B as BreadcrumbField,g as BreadcrumbFieldRenderer};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as e,z as n,D as o,a0 as u}from"./index-DT8qTvyx.js";var s=function(r){e(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t=n([o({type:"button-group"})],t),t}(u);export{s as ButtonGroupRenderer,u as default};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as u,f as s,z as c,a1 as i}from"./index-DT8qTvyx.js";var p=function(n){u(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.renderButtons=function(){var r=this.props,o=r.render;r.classPrefix;var e=r.buttons;return Array.isArray(e)?e.map(function(l,a){return o("button/".concat(a),l,{key:a})}):null},t.prototype.render=function(){var r=this.props;r.buttons;var o=r.className,e=r.classnames;return r.render,r.style,s.createElement("div",{className:e("ButtonToolbar",o)},this.renderButtons())},t.propsList=["buttons","className"],t}(s.Component),m=function(n){u(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t=c([i({type:"button-toolbar",strictMode:!1})],t),t}(p);export{m as ButtonToolbarRenderer,p as default};
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as t,y as a,z as d,D as o}from"./index-DT8qTvyx.js";import{DateControlRenderer as n}from"./InputDate-DPoEF13T.js";var i=function(r){t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.defaultProps=a(a({},n.defaultProps),{embed:!0}),e=d([o({type:"calendar"})],e),e}(n);export{i as CalendarRenderer};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as k,f as d,b2 as u,t as y,b0 as b,z as m,P as C,Q as c,D as f}from"./index-DT8qTvyx.js";var v=function(n){k(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.handleClick=function(e){var a=this.props,s=a.checkOnItemClick,r=a.selectable;s&&r&&this.handleCheck()},t.prototype.handleCheck=function(){var e,a;(a=(e=this.props).onCheck)===null||a===void 0||a.call(e)},t.prototype.renderCheckbox=function(){var e=this.props,a=e.selectable,s=e.classnames,r=e.multiple,l=e.disabled,o=e.selected,i=e.hideCheckToggler,p=e.checkOnItemClick,h=e.checkboxClassname;return!a||p&&i?null:d.createElement(u,{className:s("Card2-checkbox",h),type:r?"checkbox":"radio",disabled:l,checked:o,onChange:this.handleCheck})},t.prototype.renderBody=function(){var e=this.props,a=e.body,s=e.render,r=e.classnames,l=e.bodyClassName,o=y(e,["body","render","classnames","bodyClassName"]);return d.createElement("div",{className:r("Card2-body",l),onClick:this.handleClick},a?s("body",a,o):null)},t.prototype.render=function(){var e=this.props,a=e.className,s=e.wrapperComponent,r=e.classnames,l=e.style,o=e.item,i=e.selected,p=e.checkOnItemClick,h=s||"div";return d.createElement(h,{className:r("Card2",a,{checkOnItem:p,"is-checked":i}),style:b(l,o)},this.renderBody(),this.renderCheckbox())},t.propsList=["body","className"],t.defaultProps={className:""},m([C,c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",void 0)],t.prototype,"handleClick",null),m([C,c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"handleCheck",null),t}(d.Component),x=function(n){k(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t=m([f({type:"card2"})],t),t}(v);export{x as Card2Renderer,v as default};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as F,f as d,y as v,z as c,P as x,Q as h,aX as _,bk as b}from"./index-DT8qTvyx.js";var O=function(n){F(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.highlightIndex=-1,t.prevIndex=-1,t}return e.prototype.chartRef=function(t){var i=this,o;this.chart=t,(o=this.chart)===null||o===void 0||o.on("click","series",function(r){i.props.onToggle(i.props.options[r.dataIndex])}),setTimeout(function(){return i.highlight()})},e.prototype.highlight=function(t){t===void 0&&(t=this.highlightIndex),!this.props.static&&(this.highlightIndex=t,!(!this.chart||this.prevIndex===t)&&(~this.prevIndex&&this.chart.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:this.prevIndex}),~t&&(this.chart.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:t}),this.props.showTooltipOnHighlight&&this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})),this.prevIndex=t))},e.prototype.componentDidMount=function(){this.props.selectedOptions.length&&this.highlight(this.props.options.indexOf(this.props.selectedOptions[0]))},e.prototype.componentDidUpdate=function(){this.props.selectedOptions.length&&this.highlight(this.props.options.indexOf(this.props.selectedOptions[0]))},e.prototype.renderStatic=function(t){t===void 0&&(t="-"),this.prevIndex=-1,this.highlightIndex=-1;var i=this.props,o=i.options,r=o===void 0?[]:o,s=i.selectedOptions,p=i.labelField,l=p===void 0?"label":p,a=i.valueField,u=a===void 0?"value":a,f=i.chartValueField;if(r.length&&s.length){var g=r.reduce(function(I,m){return I+m[f||u]},0);if(g>0){var y=(+s[0][f||u]/g*100).toFixed(2);t="".concat(s[0][l],":").concat(y,"%")}}return d.createElement(d.Fragment,null,t)},e.prototype.render=function(){var t=this.props,i=t.options,o=t.labelField,r=t.chartValueField,s=t.valueField,p=t.render,l=v(v({legend:{top:10},tooltip:{formatter:function(a){return"".concat(a.name,":").concat(a.value[r||s||"value"],"(").concat(a.percent,"%)")}},series:[{type:"pie",top:30,bottom:0}]},this.props.config),{dataset:{dimensions:[o||"label",r||s||"value"],source:i}});return p("chart",{type:"chart"},{config:l,chartRef:this.chartRef})},c([x,h("design:type",Function),h("design:paramtypes",[Object]),h("design:returntype",void 0)],e.prototype,"chartRef",null),c([_(),h("design:type",Function),h("design:paramtypes",[]),h("design:returntype",void 0)],e.prototype,"render",null),e}(d.Component),C=function(n){F(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.defaultProps={multiple:!1},e=c([b({type:"chart-radios",sizeMutable:!1})],e),e}(O);export{C as RadiosControlRenderer,O as default};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1,2 @@
|
||||||
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.main-DpNMXfyH.js","assets/index-DT8qTvyx.js","assets/index-We5Babj5.css","assets/editor-CIwA5Sev.css"])))=>i.map(i=>d[i]);
|
||||||
|
import{s as _,f as L,al as T,ai as v,o as x,E as b,G as y,v as z,w as R,aE as S,bx as H,z as k,D as A}from"./index-DT8qTvyx.js";var M=function(g){_(o,g);function o(t){var e=g.call(this,t)||this;return e.toDispose=[],e.codeRef=L.createRef(),e}return o.prototype.shouldComponentUpdate=function(t){return T(o.propsList,this.props,t)||this.resolveLanguage(this.props)!==this.resolveLanguage(t)||v(this.props)!==v(t)},o.prototype.componentDidMount=function(){var t=this;x(()=>import("./editor.main-DpNMXfyH.js").then(e=>e.b),__vite__mapDeps([0,1,2,3])).then(function(e){return t.handleMonaco(e)})},o.prototype.componentDidUpdate=function(t){var e,a;return b(this,void 0,void 0,function(){var i,n,r,d,s,u,l;return y(this,function(c){switch(c.label){case 0:return i=this.props,n=this.codeRef.current,!((e=this===null||this===void 0?void 0:this.monaco)===null||e===void 0)&&e.editor&&n?(r=i.tabSize,d=(a=v(this.props))!==null&&a!==void 0?a:"",s=this.resolveLanguage(),u=this.registerAndGetTheme(),this.monaco.editor.setTheme(u),[4,this.monaco.editor.colorize(d,s,{tabSize:r})]):[3,2];case 1:l=c.sent(),n.innerHTML=l,c.label=2;case 2:return[2]}})})},o.prototype.handleMonaco=function(t){var e,a;return b(this,void 0,void 0,function(){var i,n,r,d,s,u;return y(this,function(l){switch(l.label){case 0:return t?(this.monaco=t,i=this.props.tabSize,n=(e=v(this.props))!==null&&e!==void 0?e:"",r=this.resolveLanguage(),d=this.codeRef.current,d&&(!((a=this.monaco)===null||a===void 0)&&a.editor)?(s=this.registerAndGetTheme(),this.monaco.editor.setTheme(s),[4,this.monaco.editor.colorize(n,r,{tabSize:i})]):[3,2]):[2];case 1:u=l.sent(),d.innerHTML=u,l.label=2;case 2:return[2]}})})},o.prototype.resolveLanguage=function(t){var e=t??this.props,a=e.customLang,i=e.data,n=e.language,r=n===void 0?"plaintext":n;return z(r)&&(r=R(r,i)),a&&a.name&&(r=a.name),r},o.prototype.registerAndGetTheme=function(){var t,e,a,i,n=this.monaco,r=this.props,d=r.theme,s=r.editorTheme;if(s=s||(d==="dark"?"vs-dark":"vs"),!n)return s;if(this.customLang&&this.customLang.name&&Array.isArray(this.customLang.tokens)&&this.customLang.tokens.length){var u=this.customLang.name,l=!((a=this.customLang)===null||a===void 0)&&a.colors&&S((i=this.customLang)===null||i===void 0?void 0:i.colors)?this.customLang.colors:{};n.languages.register({id:u});var c=[],f=[];try{for(var m=H(this.customLang.tokens),h=m.next();!h.done;h=m.next()){var p=h.value,C=new RegExp(p.regex,p.regexFlags||void 0);c.push([C,p.name]),f.push({token:p.name,foreground:p.color,background:p.background,fontStyle:p.fontStyle})}}catch(w){t={error:w}}finally{try{h&&!h.done&&(e=m.return)&&e.call(m)}finally{if(t)throw t.error}}return n.languages.setMonarchTokensProvider(u,{tokenizer:{root:c}}),n.editor.defineTheme(u,{base:"vs",inherit:!1,rules:f,colors:l}),u}return s},o.prototype.render=function(){var t=v(this.props),e=this.props,a=e.className,i=e.maxHeight,n=e.style,r=n===void 0?{}:n,d=e.classnames,s=e.editorTheme,u=e.customLang,l=e.wordWrap,c=e.wrapperComponent,f=this.resolveLanguage(),m=typeof t=="string"&&t.split(/\r?\n/).length>1,h=c||(m?"pre":"code");return u&&(this.customLang=u),i&&(r.maxHeight=r.maxHeight||i,r.overflow="auto"),L.createElement(h,{ref:this.codeRef,className:d("Code",{"Code--dark":s&&["vs-dark","hc-black"].includes(s),"Code-pre-wrap":h==="pre","word-break":l},a),style:r,"data-lang":f},t)},o.propsList=["language","editorTheme","tabSize","wordWrap","customLang","style"],o.defaultProps={language:"plaintext",tabSize:4,wordWrap:!0},o}(L.Component),E=function(g){_(o,g);function o(){return g!==null&&g.apply(this,arguments)||this}return o=k([A({type:"code"})],o),o}(M);export{E as CodeRenderer,M as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as f,E as I,G as w,v as E,w as F,f as r,af as N,ag as P,ad as v,y as l,ae as G,z as g,P as R,Q as h,D as A,ah as K}from"./index-DT8qTvyx.js";var U=function(t){f(a,t);function a(e){return t.call(this,e)||this}return a.prototype.handleCollapseChange=function(e,i,p){return I(this,void 0,void 0,function(){var o,d,n,s;return w(this,function(c){switch(c.label){case 0:return o=this.props,d=o.dispatchEvent,n=o.onCollapse,[4,d("change",K(this.props,{activeKeys:e,collapseId:i,collapsed:p}))];case 1:return s=c.sent(),s!=null&&s.prevented?[2]:(n==null||n(e,i,p),[2])}})})},a.prototype.render=function(){var e=this.props,i=e.defaultActiveKey,p=e.accordion,o=e.expandIcon,d=e.expandIconPosition,n=e.body,s=e.className,c=e.style,b=e.render,S=e.mobileUI,_=e.data,m=e.id,y=e.themeCss,C=e.wrapperCustomStyle,x=e.env,u=this.props.enableFieldSetStyle;return E(u)&&(u=F(u,_,"| raw")),r.createElement(r.Fragment,null,r.createElement(N,{defaultActiveKey:i,accordion:p,expandIcon:o,expandIconPosition:d,className:P(s,v(l(l({},this.props),{name:"className",id:m,themeCss:y})),v(l(l({},this.props),{name:"wrapperCustomStyle",id:m,themeCss:C}))),style:c,mobileUI:S,onCollapseChange:this.handleCollapseChange},b("body",n||"",{enableFieldSetStyle:u})),r.createElement(G,l({},this.props,{config:{wrapperCustomStyle:C,id:m,themeCss:y,classNames:[{key:"className"}]},env:x})))},a.defaultProps={enableFieldSetStyle:!0},g([R,h("design:type",Function),h("design:paramtypes",[Array,Object,Boolean]),h("design:returntype",Promise)],a.prototype,"handleCollapseChange",null),a}(r.Component),V=function(t){f(a,t);function a(){return t!==null&&t.apply(this,arguments)||this}return a=g([A({type:"collapse-group"})],a),a}(U);export{U as CollapseGroupRender,V as CollapseGroupRenderer};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s,ai as d,f as r,z as m,D as p}from"./index-DT8qTvyx.js";var f=function(l){s(e,l);function e(){return l!==null&&l.apply(this,arguments)||this}return e.prototype.render=function(){var o=this.props,n=o.className,i=o.style,a=o.classnames,u=o.defaultColor,c=o.showValue,t=d(this.props)||u;return r.createElement("div",{className:a("ColorField",n),style:i},r.createElement("i",{className:a("ColorField-previewIcon"),style:{backgroundColor:t}}),c&&t?r.createElement("span",{className:a("ColorField-value")},t):null)},e.defaultProps={className:"",defaultColor:"",showValue:!0},e}(r.Component),h=function(l){s(e,l);function e(){return l!==null&&l.apply(this,arguments)||this}return e=m([p({type:"color"})],e),e}(f);export{f as ColorField,h as ColorFieldRenderer};
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as b,aM as g,a3 as y,t as m,y as v,v as h,w as V,f as u,a4 as C,z as p,P as f,Q as o,bM as B,co as O,a1 as _}from"./index-DT8qTvyx.js";var E=function(i){b(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.renderEtrValue=function(e,t){return this.props.render("inline",Object.assign({},e,{label:!1,inputOnly:!0,changeImmediately:!0}),t)},r.prototype.renderPickerIcon=function(){var e=this.props,t=e.render,n=e.pickerIcon;return n?t("picker-icon",n):void 0},r.prototype.getAddBtnVisible=function(e){var t=this.props,n=t.data,a=t.addBtnVisibleOn;return typeof a=="string"&&a?g(a,y(n,e)):!0},r.prototype.getAddGroupBtnVisible=function(e){var t=this.props,n=t.data,a=t.addGroupBtnVisibleOn;return typeof a=="string"&&a?g(a,y(n,e)):!0},r.prototype.validate=function(){var e,t=this.props,n=t.value,a=t.required,l=t.translate;if(a){if(!n||!n.children)return l("Condition.isRequired");var d=!0,s=["is_empty","is_not_empty"];return(e=n==null?void 0:n.children)===null||e===void 0||e.forEach(function(c){if(c.op&&(c.right||~s.indexOf(c.op))){d=!1;return}}),d?l("Condition.isRequired"):null}},r.prototype.render=function(){var e=this.props,t=e.className,n=e.classnames;e.style,e.pickerIcon;var a=e.env,l=e.popOverContainer,d=m(e,["className","classnames","style","pickerIcon","env","popOverContainer"]),s=this.props.formula?v({},this.props.formula):void 0;return s&&s.variables&&h(s.variables)&&(s.variables=V(s.variables,this.props.data,"| raw")),u.createElement("div",{className:n("ConditionBuilderControl",{"is-mobile":C()},t)},u.createElement(A,v({renderEtrValue:this.renderEtrValue,pickerIcon:this.renderPickerIcon(),isAddBtnVisibleOn:this.getAddBtnVisible,isAddGroupBtnVisibleOn:this.getAddGroupBtnVisible,popOverContainer:l||a.getModalContainer},d,{formula:s})))},p([f,o("design:type",Function),o("design:paramtypes",[Object,Object]),o("design:returntype",void 0)],r.prototype,"renderEtrValue",null),p([f,o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],r.prototype,"getAddBtnVisible",null),p([f,o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],r.prototype,"getAddGroupBtnVisible",null),r}(u.PureComponent),A=B({adaptor:function(i){return i.fields||i}})(function(i){b(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.render=function(){var e=this.props,t=e.loading,n=e.config;e.deferLoad;var a=e.disabled,l=e.renderEtrValue,d=m(e,["loading","config","deferLoad","disabled","renderEtrValue"]);return u.createElement(O,v({},d,{fields:n||d.fields||[],disabled:a||t,renderEtrValue:l}))},r}(u.Component)),k=function(i){b(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r=p([_({type:"condition-builder",strictMode:!1})],r),r}(E);export{k as ConditionBuilderRenderer,E as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as w,f as m,y as l,v as f,w as E,cq as k,ad as N,b0 as x,ae as D,dr as L,z as y,P as g,Q as r,D as F}from"./index-DT8qTvyx.js";var P=function(o){w(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a.prototype.handleClick=function(e){var t=this.props,s=t.dispatchEvent,n=t.data;s(e,n)},a.prototype.handleMouseEnter=function(e){var t=this.props,s=t.dispatchEvent,n=t.data;s(e,n)},a.prototype.handleMouseLeave=function(e){var t=this.props,s=t.dispatchEvent,n=t.data;s(e,n)},a.prototype.renderBody=function(){var e=this.props,t=e.children,s=e.body,n=e.render,h=e.classnames,C=e.bodyClassName,c=e.disabled,i=e.wrapperBody,d=e.testIdBuilder,p=i??!0,u=t?typeof t=="function"?t(this.props):t:s?n("body",s,{disabled:c}):null;return p?m.createElement("div",l({className:h("Container-body",C)},d==null?void 0:d.getTestId()),u):u},a.prototype.render=function(){var e=this.props,t=e.className,s=e.wrapperComponent,n=e.size,h=e.classnames,C=e.style,c=e.data,i=e.draggable,d=e.draggableConfig,p=e.id,u=e.wrapperCustomStyle,_=e.env,v=e.themeCss;e.baseControlClassName;var B=f(i)?E(i,c,"| raw"):i,M=k(a.defaultProps.draggableConfig,f(d)?E(d,c,"| raw"):d),S=s||"div",b=m.createElement(S,{className:h("Container",n&&n!=="none"?"Container--".concat(n):"",t,N(l(l({},this.props),{name:"baseControlClassName",id:p,themeCss:v})),N(l(l({},this.props),{name:"wrapperCustomStyle",id:p,themeCss:u}))),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,style:x(C,c),"data-id":p},this.renderBody(),m.createElement(D,l({},this.props,{config:{wrapperCustomStyle:u,id:p,themeCss:v,classNames:[{key:"baseControlClassName"}]},env:_})));return B?m.createElement(L,l({},M,{draggable:!0}),b):b},a.propsList=["body","className"],a.defaultProps={className:"",draggableConfig:{axis:"both",scale:1,enableUserSelect:!1}},y([g,r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],a.prototype,"handleClick",null),y([g,r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],a.prototype,"handleMouseEnter",null),y([g,r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],a.prototype,"handleMouseLeave",null),a}(m.Component),j=function(o){w(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a=y([F({type:"container"})],a),a}(P);export{j as ContainerRenderer,P as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as p,bb as u,t as m,f as l,bc as b,y as _,z as i,P as c,Q as s,D as f}from"./index-DT8qTvyx.js";var v=function(o){p(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.renderInput=function(){var e=this.props,n=e.render,d=e.body,a=e.name,t=e.data;return n("inner",d,{value:typeof a=="string"?u(a,t):void 0})},r.prototype.render=function(){var e,n=this.props,d=n.render,a=n.label;n.control;var t=m(n,["render","label","control"]);return l.createElement(b,_({},t,{formMode:(e=t.mode)!==null&&e!==void 0?e:t.formMode,render:d,sizeMutable:!1,label:a,renderControl:this.renderInput}))},i([c,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],r.prototype,"renderInput",null),r=i([f({type:"control"})],r),r}(l.Component);export{v as ControlRenderer};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{aj as U,aG as C,aH as y,s as f,f as m,am as a,b3 as c,b4 as g,z as v,D as M}from"./index-DT8qTvyx.js";var p=U(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(Function.bind.apply(Function,C([void 0],y(e),!1)))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}),E=function(e){f(t,e);function t(n){var o=e.call(this,n)||this;return o.onUpdate=function(){},o.onMount=function(){},o.onUnmount=function(){},o.childElemArr=[],o.dom=m.createRef(),o.initOnMount(n),o.initOnUpdate(n),o.initOnUnmount(n),o.renderChild=o.renderChild.bind(o),o.recordChildElem=o.recordChildElem.bind(o),o.unmountChildElem=o.unmountChildElem.bind(o),o}return t.prototype.initOnMount=function(n){n.onMount&&(typeof n.onMount=="string"?this.onMount=p("dom","value","onChange","props",n.onMount):this.onMount=n.onMount)},t.prototype.initOnUpdate=function(n){n.onUpdate&&(typeof n.onUpdate=="string"?this.onUpdate=p("dom","data","prevData","props",n.onUpdate):this.onUpdate=n.onUpdate)},t.prototype.initOnUnmount=function(n){n.onUnmount&&(typeof n.onUnmount=="string"?this.onUnmount=p("props",n.onUnmount):this.onUnmount=n.onUnmount)},t.prototype.componentDidUpdate=function(n){a(this.props.onUpdate,n.onUpdate)||this.initOnUpdate(this.props),(!a(this.props.onUpdate,n.onUpdate)||!a(this.props.data,n.data))&&this.onUpdate(this.dom,this.props.data,n.data,this.props),a(this.props.onMount,n.onMount)||this.initOnMount(this.props),a(this.props.onUnmount,n.onUnmount)||this.initOnUnmount(this.props)},t.prototype.componentDidMount=function(){var n=this.props,o=n.value,i=n.onChange;this.onMount(this.dom.current,o,i,this.props)},t.prototype.componentWillUnmount=function(){this.onUnmount(this.props),this.unmountChildElem()},t.prototype.recordChildElem=function(n){n&&!this.childElemArr.some(function(o){return o===n})&&this.childElemArr.push(n)},t.prototype.unmountChildElem=function(){this.childElemArr&&this.childElemArr.length>0&&this.childElemArr.forEach(function(n){return c.unmountComponentAtNode(n)})},t.prototype.renderChild=function(n,o,i){var u=this,l=this.props.render,s=null,r=null;if(g(i)){var d=document.getElementById(i);d&&(r=d)}else r=i;if(o&&r){var h=l(n,o);s=c.render(h,r,function(){u.recordChildElem(r)})}return s},t.prototype.render=function(){var n=this.props,o=n.className,i=n.style,u=n.html,l=n.id,s=n.wrapperComponent,r=n.inline;n.translate;var d=n.classnames,h=s||r?"span":"div";return m.createElement(h,{ref:this.dom,className:d(o),style:i,id:l,dangerouslySetInnerHTML:{__html:u||""}})},t.defaultProps={inline:!1},t}(m.Component),A=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t=v([M({type:"custom"})],t),t}(E);export{E as Custom,A as CustomRenderer};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as _,aH as h,aV as o,f as D,z as M,D as x}from"./index-DT8qTvyx.js";var N=function(r){_(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,s=n.delimiter,g=s===void 0?",":s,d=n.connector,y=d===void 0?"~":d,i=n.value,l=n.valueFormat,m=n.format,c=m===void 0?"YYYY-MM-DD":m,u=n.displayFormat,F=n.classnames,R=n.className,Y=n.style;if(!i)return null;typeof i=="string"&&(i=i.split(g));var f=h(i,2),v=f[0],e=v===void 0?"":v,p=f[1],a=p===void 0?"":p;return l?(e=o(e,l),a=o(a,l)):(e=o(e*1e3),a=o(a*1e3)),e=e!=null&&e.isValid()?e.format(u||c):"",a=a!=null&&a.isValid()?a.format(u||c):"",D.createElement("span",{className:F("DateRangeField",R),style:Y},[e,a].join(" ".concat(y," ")))},t.defaultProps={format:"YYYY-MM-DD",valueFormat:"X",connector:"~"},t}(D.Component),z=function(r){_(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t=M([x({type:"date-range"})],t),t}(N);export{N as DateRangeField,z as DateRangeFieldRenderer};
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as C,aF as F,E as g,G as m,v as V,w as B,f as E,cs as S,y as w,z as D,a1 as N,ah as y}from"./index-DT8qTvyx.js";function _(r,o){if(r&&typeof r!="string"&&(r=JSON.stringify(r,null,2)),o&&o==="json")try{r=JSON.stringify(typeof r=="string"?JSON.parse(r):r,null,2)}catch{}return r||""}var b=function(r){C(o,r);function o(t){var e=r.call(this,t)||this;return e.state={focused:!1},e.handleFocus=e.handleFocus.bind(e),e.handleBlur=e.handleBlur.bind(e),e.handleEditorMounted=e.handleEditorMounted.bind(e),e.handleChange=e.handleChange.bind(e),e}return o.prototype.doAction=function(t,e,a,d){var n,i,s=t==null?void 0:t.actionType,l=this.props,u=l.onChange,h=l.resetValue,c=l.formStore,f=l.store,v=l.name;if(s==="clear")u("");else if(s==="reset"){var p=(i=F((n=c==null?void 0:c.pristine)!==null&&n!==void 0?n:f==null?void 0:f.pristine,v))!==null&&i!==void 0?i:h;u(p??"")}else s==="focus"&&this.focus()},o.prototype.focus=function(){var t,e,a;(t=this.editor)===null||t===void 0||t.focus(),this.setState({focused:!0});var d=(e=this.editor)===null||e===void 0?void 0:e.getPosition();(a=this.editor)===null||a===void 0||a.setPosition(d)},o.prototype.handleFocus=function(t){return g(this,void 0,void 0,function(){var e,a,d,n,i;return m(this,function(s){switch(s.label){case 0:return e=this.props,a=e.dispatchEvent,d=e.value,n=e.onFocus,this.setState({focused:!0}),[4,a("focus",y(this.props,{value:d}))];case 1:return i=s.sent(),i!=null&&i.prevented?[2]:(n==null||n(t),[2])}})})},o.prototype.handleBlur=function(t){return g(this,void 0,void 0,function(){var e,a,d,n,i;return m(this,function(s){switch(s.label){case 0:return e=this.props,a=e.dispatchEvent,d=e.value,n=e.onBlur,this.setState({focused:!1}),[4,a("blur",y(this.props,{value:d}))];case 1:return i=s.sent(),i!=null&&i.prevented?[2]:(n==null||n(t),[2])}})})},o.prototype.handleChange=function(t){return g(this,void 0,void 0,function(){var e,a,d,n;return m(this,function(i){switch(i.label){case 0:return e=this.props,a=e.onChange,d=e.dispatchEvent,[4,d("change",y(this.props,{value:t}))];case 1:return n=i.sent(),n!=null&&n.prevented?[2]:(a&&a(t),[2])}})})},o.prototype.handleEditorMounted=function(t){this.editor=t},o.prototype.render=function(){var t=this.props,e=t.className;t.style;var a=t.value;t.onChange;var d=t.disabled,n=t.size,i=t.options,s=t.language,l=t.editorTheme,u=t.diffValue,h=t.classnames,c=t.data,f=V(u)?_(B(u||"",c,"| raw"),s):_(u,s),v=_(a,s);return E.createElement("div",{className:h("EditorControl",n?"EditorControl--".concat(n):"",e,{"is-focused":this.state.focused})},E.createElement(S,{value:v,originValue:f,onChange:this.handleChange,disabled:d,language:s,editorTheme:l,options:i,onFocus:this.handleFocus,onBlur:this.handleBlur,editorDidMount:this.handleEditorMounted}))},o.defaultProps={language:"javascript",editorTheme:"vs",options:{automaticLayout:!1,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}},diffValue:""},o}(E.Component),P=function(r){C(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}return o.defaultProps=w({},b.defaultProps),o=D([N({type:"diff-editor",sizeMutable:!1})],o),o}(b);export{P as DiffEditorControlRenderer,b as DiffEditorRenderer};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as y,v as P,w as R,ad as N,y as i,f as o,ae as S,z as k,D as E}from"./index-DT8qTvyx.js";var W=function(r){y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props,D=e.render,f=e.classnames,g=e.className,u=e.style,n=u===void 0?{}:u,p=e.lineStyle,l=e.direction,s=e.color,C=e.rotate,a=e.title,x=e.titleClassName,d=e.titlePosition,c=e.id,m=e.themeCss,b=e.env,w=e.data,v={};s&&(~(s==null?void 0:s.indexOf("linear-gradient"))?v.borderImage=s+" 10":v.borderColor=s);var h=(n==null?void 0:n.transform)||"";C&&(h+=" rotate(".concat(C,"deg)")),P(a)&&(a=R(a,w));var _=f("Divider",p?"Divider--".concat(p):"",l==="vertical"?"Divider--vertical":"Divider--horizontal",a&&l!=="vertical"?"Divider--with-text":"",a&&l!=="vertical"&&d?"Divider--with-text-".concat(d):"",a&&l!=="vertical"?N(i(i({},this.props),{name:"titleWrapperControlClassName",id:c,themeCss:m})):"",g);return o.createElement("div",{className:_,style:i(i(i({},n),v),{transform:h})},a&&l!=="vertical"?o.createElement("span",{className:f("Divider-text Divider-text-".concat(d," ").concat(x),N(i(i({},this.props),{name:"titleControlClassName",id:c,themeCss:m})))},D("title",a)):null,o.createElement(S,i({},this.props,{config:{themeCss:m,classNames:[{key:"titleWrapperControlClassName",weights:{default:{suf:"::before",important:!0}}},{key:"titleWrapperControlClassName",weights:{default:{suf:"::after",important:!0}}},{key:"titleControlClassName",weights:{default:{important:!0}}}],id:c},env:b})))},t.defaultProps={className:"",lineStyle:"solid",titleClassName:"",titlePosition:"center"},t}(o.Component),V=function(r){y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t=k([E({type:"divider"})],t),t}(W);export{V as DividerRenderer,W as default};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as b,ai as S,ao as K,v as R,w as E,f as c,ad as j,y as i,b0 as k,ae as O,z as P,D as V,a3 as D}from"./index-DT8qTvyx.js";function z(a){var t=a.render,h=a.data,e=a.items,r=a.item,u=a.name,m=a.index,y=a.itemKeyName,p=a.indexKeyName,v=c.useMemo(function(){var d,l;return D(h,i(i({},K(r)?i({index:m},r):(d={},d[u]=r,d)),(l={},l[y||"item"]=r,l[p||"index"]=m,l)))},[r,h,u,m,y,p]);return t("item/".concat(m),e,{data:v})}var F=function(a){b(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.render=function(){var h=this,e=this.props,r=e.data,u=e.name,m=e.className,y=e.style,p=e.render,v=e.items,d=e.itemKeyName,l=e.indexKeyName,_=e.placeholder,f=e.classnames,A=e.translate,w=e.env,x=e.id,L=e.wrapperCustomStyle,C=e.themeCss,o=S(this.props,function(s){return s.source?E(s.source,s.data,"| raw"):void 0}),n=K(o)?Object.keys(o).map(function(s){return{key:s,value:o[s]}}):Array.isArray(o)?o:[],N=R(this.props.maxLength)?E(this.props.maxLength,this.props.data)||0:this.props.maxLength;return Array.isArray(n)&&N>=1&&n.length>N&&(n=n.slice(0,N)),c.createElement("div",{className:f("Each",m,j(i(i({},this.props),{name:"baseControlClassName",id:x,themeCss:C}))),style:k(y,r)},Array.isArray(n)&&n.length&&v?n.map(function(s,g){return c.createElement(z,i({},h.props,{items:v,key:g,index:g,data:r,item:s,name:u,itemKeyName:d,indexKeyName:l}))}):c.createElement("div",{className:f("Each-placeholder")},p("placeholder",A(_))),c.createElement(O,i({},this.props,{config:{wrapperCustomStyle:L,id:x,themeCss:C,classNames:[{key:"baseControlClassName"}]},env:w})))},t.propsList=["name","items","value"],t.defaultProps={className:"",placeholder:"placeholder.noData"},t}(c.Component),M=function(a){b(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t=P([V({type:"each"})],t),t}(F);export{M as EachRenderer,F as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as c,b0 as B,y as l,f as i,ad as C,ae as E,z as v,D as b}from"./index-DT8qTvyx.js";var z=function(s){c(t,s);function t(e){return s.call(this,e)||this}return t.prototype.render=function(){var e=this.props,n=e.items,a=e.direction,m=e.justify,u=e.alignItems,g=e.alignContent,N=e.style,I=e.className,F=e.render,S=e.disabled,R=e.data,o=e.id,f=e.wrapperCustomStyle,w=e.env,h=e.themeCss,_=e.classnames,j=B(N,R),r=l({display:"flex",flexDirection:a,justifyContent:m,alignItems:u,alignContent:g},j);if(r.flexBasis!==void 0&&r.flex){var p=r.flex.split(" ");r.flex="".concat(p[0]," ").concat(p[1]||p[0]," ").concat(r.flexBasis)}return i.createElement("div",{style:r,className:_("Flex",I,C(l(l({},this.props),{name:"baseControlClassName",id:o,themeCss:h})),C(l(l({},this.props),{name:"wrapperCustomStyle",id:o,themeCss:f}))),"data-id":o},(Array.isArray(n)?n:n?[n]:[]).map(function(d,x){var y;return F("flexItem/".concat(x),d,{key:"flexItem/".concat(x),disabled:(y=d==null?void 0:d.disabled)!==null&&y!==void 0?y:S})}),i.createElement(E,l({},this.props,{config:{wrapperCustomStyle:f,id:o,themeCss:h,classNames:[{key:"baseControlClassName"}]},env:w})))},t.defaultProps={direction:"row",justify:"center",alignItems:"stretch",alignContent:"center"},t}(i.Component),D=function(s){c(t,s);function t(){return s!==null&&s.apply(this,arguments)||this}return t.prototype.renderBody=function(){var e=this.props,n=e.children,a=e.body,m=e.render,u=e.disabled;return n?typeof n=="function"?n(this.props):n:a?m("body",a,{disabled:u}):null},t.prototype.render=function(){var e=this.props,n=e.className;e.size,e.classnames;var a=e.style;return i.createElement("div",{className:n,style:a},this.renderBody())},t.propsList=["body","className","children"],t}(i.Component),L=function(s){c(t,s);function t(){return s!==null&&s.apply(this,arguments)||this}return t=v([b({type:"flex"})],t),t}(z),P=function(s){c(t,s);function t(){return s!==null&&s.apply(this,arguments)||this}return t=v([b({type:"flex-item"})],t),t}(D);export{D as FlexItem,P as FlexItemRenderer,L as FlexRenderer,z as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as m,bl as v,cN as d,an as y,K as p,z as c,P as S,Q as s,f as g,a1 as _}from"./index-DT8qTvyx.js";var C=function(r){m(n,r);function n(){var t=r!==null&&r.apply(this,arguments)||this;return t.inited=!1,t}return n.prototype.componentDidMount=function(){var t=this.props,i=t.formInited,o=t.initSet,e=t.addHook;this.unHook=e?e(this.handleFormInit,"init"):void 0,i!==!1&&(this.inited=!0,o===!1||this.initSet())},n.prototype.componentDidUpdate=function(t){var i=this.props,o=i.formInited,e=i.initSet,a=i.autoSet;this.inited?a===!1||this.autoSet(t):typeof o>"u"&&(this.inited=!0,e===!1||this.initSet())},n.prototype.componentWillUnmount=function(){var t;(t=this.unHook)===null||t===void 0||t.call(this)},n.prototype.handleFormInit=function(t){this.inited=!0;var i=this.props,o=i.name,e=i.initSet;if(e!==!1){var a=this.initSet();typeof o=="string"&&typeof a<"u"&&v(t,o,a)}},n.prototype.initSet=function(){var t=this.props,i=t.formula,o=t.data,e=t.setPrinstineValue;t.initSet;var a=t.condition;if(i){if(a&&!~a.indexOf("$")&&!~a.indexOf("<%")&&!d(a,o))return}else return;var f=d(i,o);return f!==null&&(e==null||e(f)),f},n.prototype.autoSet=function(t){var i=this.props,o=t.formula,e=t.data,a=t.onChange,f=t.value,u=t.condition;if(o&&i.formula&&y(e,i.data,!1)&&f===i.value){var l=d(i.formula,i.data);if(u&&i.condition)~u.indexOf("$")||~u.indexOf("<%")?p(u,e)!==p(i.condition,i.data)&&a(l):d(i.condition,i.data)&&a(l);else{var h=d(o,e);JSON.stringify(h)!==JSON.stringify(l)&&a(l??"")}}},n.prototype.doAction=function(){var t=this.props,i=t.formula,o=t.data,e=t.onChange;t.autoSet,t.value;var a=d(i,o);e(a)},n.prototype.render=function(){return null},c([S,s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],n.prototype,"handleFormInit",null),n}(g.Component),I=function(r){m(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n=c([_({type:"formula",wrap:!1,strictMode:!1,sizeMutable:!1})],n),n}(C);export{I as FormulaControlRenderer,C as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as w,a5 as R,f,y as m,z as G,D as x}from"./index-DT8qTvyx.js";var _={left:"start",right:"end",center:"center",auto:"stretch"},C={top:"start",bottom:"end",middle:"center",auto:"stretch"},b=function(o){w(e,o);function e(t){return o.call(this,t)||this}return e.prototype.renderChild=function(t,a){var i=this.props,n=i.render,s=i.disabled;return n(t,a,{disabled:s})},e.prototype.renderGrid=function(t,a,i){var n=this.props,s=n.itemRender,l=n.data;if(!R(t,l))return null;var d={gridColumnStart:t.x,gridColumnEnd:t.x+t.w,gridRowStart:t.y,gridRowEnd:t.y+t.h,justifySelf:t.align?_[t.align]:"stretch",alignSelf:t.valign?C[t.valign]:"stretch"};return f.createElement("div",{key:a,style:d,className:t.gridClassName},s?s(t,a,i,this.props):this.renderChild("grid2d/".concat(a),t))},e.prototype.renderGrids=function(){var t=this,a=this.props.grids;return a.map(function(i,n){return t.renderGrid(i,n,a.length)})},e.prototype.render=function(){var t=this.props,a=t.grids,i=t.cols,n=t.gap,s=t.gapRow,l=t.width,d=t.rowHeight,y=t.style,v=t.id,h=new Array(i);h.fill("1fr");var p=0;a.forEach(function(r,S){var c=r.y+r.h-1;c>p&&(p=c)});var u=new Array(p);u.fill(d),a.forEach(function(r){r.width&&(h[r.x-1]=Number.isInteger(r.width)?r.width+"px":r.width),r.height&&(u[r.y-1]=Number.isInteger(r.height)?r.height+"px":r.height)});var g=m(m({},y),{display:"grid",columnGap:n,rowGap:typeof s>"u"?n:s,width:l,gridTemplateColumns:h.join(" "),gridTemplateRows:u.join(" ")});return f.createElement("div",{style:g,"data-id":v},this.renderGrids())},e.propsList=["grids"],e.defaultProps={cols:12,width:"auto",gap:0,rowHeight:"3.125rem"},e}(f.Component),D=function(o){w(e,o);function e(){return o!==null&&o.apply(this,arguments)||this}return e=G([x({type:"grid-2d"})],e),e}(b);export{D as Grid2DRenderer,b as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as h,dS as g,dT as b,ai as _,v as m,w as A,f as d,dU as C,y as N,dV as x,z as v,P as V,Q as c,D as P}from"./index-DT8qTvyx.js";var w=function(i){h(s,i);function s(){return i!==null&&i.apply(this,arguments)||this}return s.prototype.handleClick=function(e){var n=this;return function(l){var r;e.link?r=g.isUrl({},e.link)?{type:"button",actionType:"url",url:e.link,blank:e.blank}:{type:"button",actionType:"link",link:e.link}:r=e.clickAction,b(l,r,n.props,e)}},s.prototype.render=function(){var e=this,n=this.props,l=n.itemClassName;n.style;var r=n.contentClassName,o=n.source,u=n.data,p=n.options,y=n.classnames,f=_(this.props),a=[];return typeof o=="string"&&m(o)?a=A(o,u,"| raw")||void 0:Array.isArray(f)?a=f:Array.isArray(p)&&(a=p),a&&!Array.isArray(a)&&(a=[a]),a!=null&&a.length?d.createElement(C,N({},this.props),a.map(function(t,k){return d.createElement(x,{key:k,onClick:t.clickAction||t.link?e.handleClick(t):void 0,className:l,contentClassName:r,text:t.text,icon:t.icon,classnames:y,badge:t.badge?{badge:t.badge,data:u,classnames:y}:void 0})})):null},v([V,c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",void 0)],s.prototype,"handleClick",null),s=v([P({type:"grid-nav"})],s),s}(d.Component);export{w as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as I,b8 as R,K as N,y as S,f as b,a5 as z,cS as k,cT as E,t as W,bc as D,z as V,D as j,Q as G}from"./index-DT8qTvyx.js";var K=function(F){I(o,F);function o(e){var r=F.call(this,e)||this;r.renderInput=r.renderInput.bind(r);var n=e.body;return Array.isArray(n)&&(r.reaction=R(function(){return n.map(function(t){var i,d=N(t.id,e.data),u=N(t.name,e.data);return"".concat((i=e.statusStore.visibleState[d])!==null&&i!==void 0?i:e.statusStore.visibleState[u])}).join("-")},function(){return r.forceUpdate()})),r}return o.prototype.componentWillUnmount=function(){var e;(e=this.reaction)===null||e===void 0||e.call(this)},o.prototype.renderControl=function(e,r,n){var t=this.props,i=t.render,d=t.disabled;t.data;var u=t.mode,f=t.horizontal,l=t.formMode,m=t.formHorizontal,c=t.subFormMode,s=t.subFormHorizontal;if(!e)return null;var y=e;return i("".concat(r),y,S({disabled:e.disabled||d,formMode:c||u||l,formHorizontal:s||f||m},n))},o.prototype.renderVertical=function(e){var r=this;e===void 0&&(e=this.props);var n=e.body,t=e.className;e.style;var i=e.classnames,d=e.mode,u=e.formMode,f=e.data,l=e.statusStore;return u=d||u,Array.isArray(n)?b.createElement("div",{className:i("Form-group Form-group--ver Form-group--".concat(u),t)},n.map(function(m,c){var s;return z(m,f,l)?r.renderControl(m,c,{key:"".concat((s=m.name)!==null&&s!==void 0?s:"","-").concat(c)}):null})):null},o.prototype.renderHorizontal=function(e){var r=this;e===void 0&&(e=this.props);var n=e.body,t=e.className;e.style;var i=e.classPrefix,d=e.classnames,u=e.mode,f=e.horizontal,l=e.formMode,m=e.formHorizontal,c=e.subFormMode,s=e.subFormHorizontal,y=e.data,g=e.gap,M=e.statusStore;if(!Array.isArray(n))return null;l=c||u||l;var A=s||f||(m?k(m,n.filter(function(a){return(a==null?void 0:a.mode)!=="inline"&&z(a,y,M)}).length):void 0);return b.createElement("div",{className:d("Form-group Form-group--hor Form-group--".concat(l),g?"Form-group--".concat(g):"",t)},n.map(function(a,v){var h,_;if(!z(a,y,M))return null;var C=(a==null?void 0:a.mode)||l;if(C==="inline"||a!=null&&a.type&&["formula","hidden"].includes(a.type))return r.renderControl(a,v,{key:"".concat((h=a.name)!==null&&h!==void 0?h:"","-").concat(v),className:d(a.className,a.columnClassName)});var H=a.columnRatio||E(a&&a.columnClassName,!0);return b.createElement("div",{key:v,className:d("".concat(i,"Form-groupColumn"),H?"".concat(i,"Form-groupColumn--").concat(H):"",a&&a.columnClassName)},r.renderControl(a,v,{key:"".concat((_=a.name)!==null&&_!==void 0?_:"","-").concat(v),formHorizontal:A,formMode:C}))}))},o.prototype.renderInput=function(e){e===void 0&&(e=this.props);var r=e.direction;return r==="vertical"?this.renderVertical(e):this.renderHorizontal(e)},o.prototype.render=function(){var e=this.props,r=e.label,n=W(e,["label"]);return typeof r<"u"?b.createElement(D,S({},n,{sizeMutable:!1,label:r,renderControl:this.renderInput})):this.renderInput()},o=V([j({type:"group"}),G("design:paramtypes",[Object])],o),o}(b.Component);export{K as ControlGroupRenderer};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as e,f as r,z as o,a1 as a}from"./index-DT8qTvyx.js";var d=function(t){e(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.render=function(){return null},n}(r.Component),i=function(t){e(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n=o([a({type:"hidden",wrap:!1,sizeMutable:!1})],n),n}(d);export{i as HiddenControlRenderer,d as default};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as x,f as h,E as L,G as j,w as E,a3 as S,V as A,y as m,ad as N,ae as U,z as g,P as b,Q as n,T as W,D as z,dG as B,dH as D,aH as P}from"./index-DT8qTvyx.js";var T=function(p){x(a,p);function a(){var e=p!==null&&p.apply(this,arguments)||this;return e.IFrameRef=h.createRef(),e.state={width:e.props.width||"100%",height:e.props.height||"100%"},e}return a.prototype.componentDidMount=function(){window.addEventListener("message",this.onMessage)},a.prototype.componentDidUpdate=function(e){var r=this.props.data;r!==e.data?this.postMessage("update",r):(this.props.width!==e.width||this.props.height!==e.height)&&this.setState({width:this.props.width||"100%",height:this.props.height||"100%"})},a.prototype.componentWillUnmount=function(){window.removeEventListener("message",this.onMessage)},a.prototype.validateURL=function(e){return e&&typeof e=="string"&&/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9]+);base64,.*/.test(e)?!0:!(e&&typeof e=="string"&&!/^(\.\/|\.\.\/|\/|(blob\:)?https?\:\/\/|\/\/)/.test(e))},a.prototype.onMessage=function(e){var r,s,t;return L(this,void 0,void 0,function(){var i,u,v,_,w,d,C,o,f,y,c;return j(this,function(l){switch(l.label){case 0:return i=this.props,u=i.events,v=i.onEvent,_=i.onAction,w=i.data,typeof((r=e==null?void 0:e.data)===null||r===void 0?void 0:r.type)!="string"?[2]:(d=P(e.data.type.split(":"),2),C=d[0],o=d[1],C!=="amis"||!o?[2]:o==="resize"&&e.data.data?(this.setState({width:e.data.data.width||"100%",height:e.data.data.height||"100%"}),[3,4]):[3,1]);case 1:return f=v==null?void 0:v[o],f&&(!((s=f.actions)===null||s===void 0)&&s.length)?(y=B(o,{env:(t=this.props)===null||t===void 0?void 0:t.env,nativeEvent:e,data:S(w,e.data.data),scoped:this.context}),[4,D(f.actions,this,y)]):[3,3];case 2:if(l.sent(),y.prevented)return[2];l.label=3;case 3:u&&(c=u[o],c&&_(e,c,S(w,e.data.data))),l.label=4;case 4:return[2]}})})},a.prototype.onLoad=function(){var e=this.props,r=e.src,s=e.data;r&&this.postMessage("init",s)},a.prototype.reload=function(e,r){if(r)return this.receive(r);var s=this.props,t=s.src,i=s.data;t&&(this.IFrameRef.current.src=E(t,i,"| raw"))},a.prototype.receive=function(e){var r=this.props,s=r.src,t=r.data,i=S(t,e);this.postMessage("receive",i),A(s,s,t,i)&&(this.IFrameRef.current.src=E(s,i,"| raw"))},a.prototype.postMessage=function(e,r){var s,t;(t=(s=this.IFrameRef.current)===null||s===void 0?void 0:s.contentWindow)===null||t===void 0||t.postMessage({type:"amis:".concat(e),data:JSON.parse(JSON.stringify(r))},"*")},a.prototype.render=function(){var e=this.state,r=e.width,s=e.height,t=this.props,i=t.className,u=t.src,v=t.name,_=t.frameBorder,w=t.data,d=t.style,C=t.allow,o=t.sandbox,f=t.referrerpolicy,y=t.translate,c=t.id,l=t.wrapperCustomStyle,I=t.env,M=t.themeCss;t.baseControlClassName;var O=t.classnames,R={};r!==void 0&&(R.width=r),s!==void 0&&(R.height=s),d=m(m({},R),d);var F=u?E(u,w,"| raw"):void 0;return this.validateURL(F)?(location.protocol==="https:"&&F&&F.startsWith("http://")&&I.notify("error",y("Iframe.invalidProtocol")),h.createElement(h.Fragment,null,h.createElement("iframe",{name:v,className:O("IFrame",i,N(m(m({},this.props),{name:"baseControlClassName",id:c,themeCss:M})),N(m(m({},this.props),{name:"wrapperCustomStyle",id:c,themeCss:l}))),frameBorder:_,style:d,ref:this.IFrameRef,onLoad:this.onLoad,src:F,allow:C,referrerPolicy:f,sandbox:o}),h.createElement(U,m({},this.props,{config:{wrapperCustomStyle:l,id:c,themeCss:M,classNames:[{key:"baseControlClassName"}]},env:I})))):h.createElement("p",null,y("Iframe.invalid"))},a.propsList=["src","className"],a.defaultProps={className:"",frameBorder:0},g([b,n("design:type",Function),n("design:paramtypes",[MessageEvent]),n("design:returntype",Promise)],a.prototype,"onMessage",null),g([b,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],a.prototype,"onLoad",null),g([b,n("design:type",Function),n("design:paramtypes",[Object,Object]),n("design:returntype",void 0)],a.prototype,"reload",null),g([b,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],a.prototype,"receive",null),g([b,n("design:type",Function),n("design:paramtypes",[String,Object]),n("design:returntype",void 0)],a.prototype,"postMessage",null),a}(h.Component),H=function(p){x(a,p);function a(e,r){var s=p.call(this,e)||this,t=r;return t.registerComponent(s),s}return a.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this),p.prototype.componentWillUnmount.call(this)},a.contextType=W,a=g([z({type:"iframe"}),n("design:paramtypes",[Object,Object])],a),a}(T);export{H as IFrameRenderer,T as default};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as y,K as g,f as p,L as C,y as i,ad as m,ae as E,z as d,P as h,Q as n,D as _,$ as M}from"./index-DT8qTvyx.js";var N=function(s){y(e,s);function e(){return s!==null&&s.apply(this,arguments)||this}return e.prototype.handleClick=function(t){var a=this.props,o=a.dispatchEvent,r=a.data;o(t,r)},e.prototype.handleMouseEnter=function(t){var a=this.props,o=a.dispatchEvent,r=a.data;o(t,r)},e.prototype.handleMouseLeave=function(t){var a=this.props,o=a.dispatchEvent,r=a.data;o(t,r)},e.prototype.render=function(){var t=this.props,a=t.classnames,o=t.className,r=t.data,c=t.id,u=t.themeCss,v=t.env,f=t.wrapperCustomStyle,l=this.props.icon;return typeof l=="string"&&(l=g(this.props.icon,r)),p.createElement(p.Fragment,null,p.createElement(C,i({},this.props,{icon:l,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:a(o,m(i(i({},this.props),{name:"className",id:c,themeCss:u})),m(i(i({},this.props),{name:"wrapperCustomStyle",id:c,themeCss:f})))})),p.createElement(E,i({},this.props,{config:{themeCss:u,classNames:[{key:"className"}],id:c},env:v})))},e.defaultProps={icon:"",vendor:"fa"},d([h,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],e.prototype,"handleClick",null),d([h,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),d([h,n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),e}(p.Component),I=function(s){y(e,s);function e(){return s!==null&&s.apply(this,arguments)||this}return e=d([_({type:"icon"}),M],e),e}(N);export{N as Icon,I as IconRenderer};
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as R,y as t,K as p,v as z,w as D,ai as K,f as i,ad as y,cY as _,ae as O,cZ as Q,z as F,P as Y,Q as f,D as Z}from"./index-DT8qTvyx.js";var q=function(n){R(l,n);function l(){var o=n!==null&&n.apply(this,arguments)||this;return o.list=[],o}return l.prototype.handleEnlarge=function(o){var a=this.props,h=a.onImageEnlarge,c=a.src,m=a.originalSrc;h&&h(t(t({},o),{originalSrc:o.originalSrc||o.src,list:this.list.map(function(e){return{src:c?p(c,e,"| raw"):e&&e.image||e,originalSrc:m?p(m,e,"| raw"):(e==null?void 0:e.src)||p(c,e,"| raw")||(e==null?void 0:e.image)||e,title:e&&(e.enlargeTitle||e.title),caption:e&&(e.enlargeCaption||e.description||e.caption)}})}),this.props)},l.prototype.render=function(){var o=this,a=this.props,h=a.className,c=a.style,m=a.defaultImage,e=a.thumbMode,v=a.thumbRatio,G=a.data;a.name;var T=a.placeholder,g=a.classnames,C=a.source,M=a.delimiter,P=a.enlargeAble,k=a.enlargeWithGallary,N=a.src,A=a.originalSrc,I=a.listClassName,w=a.options,x=a.showToolbar,V=a.toolbarActions,W=a.imageGallaryClassName;a.galleryControlClassName;var d=a.id,S=a.wrapperCustomStyle,j=a.env,u=a.themeCss;a.imagesControlClassName;var b,s;return typeof C=="string"&&z(C)?s=D(C,G,"| raw")||void 0:Array.isArray(b=K(this.props))||typeof b=="string"?s=b:Array.isArray(w)&&(s=w),typeof s=="string"?s=s.split(M):s&&!Array.isArray(s)&&(s=[s]),this.list=s,i.createElement("div",{className:g("ImagesField",h,y(t(t({},this.props),{name:"imagesControlClassName",id:d,themeCss:u})),y(t(t({},this.props),{name:"wrapperCustomStyle",id:d,themeCss:S}))),style:c},Array.isArray(s)?i.createElement("div",{className:g("Images",I)},s.map(function(r,E){return i.createElement(_,{index:E,className:g("Images-item"),key:E,src:(N?p(N,r,"| raw"):r&&r.image)||r,originalSrc:(A?p(A,r,"| raw"):r&&r.src)||r,title:r&&r.title,caption:r&&(r.description||r.caption),thumbMode:e,thumbRatio:v,enlargeAble:P,enlargeWithGallary:k,onEnlarge:o.handleEnlarge,showToolbar:x,imageGallaryClassName:"".concat(W," ").concat(y(t(t({},o.props),{name:"imageGallaryClassName",id:d,themeCss:u}))," ").concat(y(t(t({},o.props),{name:"galleryControlClassName",id:d,themeCss:u}))),toolbarActions:V})})):m?i.createElement("div",{className:g("Images",I)},i.createElement(_,{className:g("Images-item"),src:m,thumbMode:e,thumbRatio:v})):T,i.createElement(O,t({},this.props,{config:{wrapperCustomStyle:S,id:d,themeCss:u,classNames:[{key:"imagesControlClassName"},{key:"galleryControlClassName"}]},env:j})))},l.defaultProps={className:"",delimiter:",",defaultImage:Q,placehoder:"-",thumbMode:"contain",thumbRatio:"1:1"},F([Y,f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],l.prototype,"handleEnlarge",null),l}(i.Component),H=function(n){R(l,n);function l(){return n!==null&&n.apply(this,arguments)||this}return l=F([Z({type:"images"})],l),l}(q);export{q as ImagesField,H as ImagesFieldRenderer};
|
||||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
import{s as a,t as c,f as n,y as f,z as m,a1 as u,ce as p}from"./index-DT8qTvyx.js";import d from"./Combo-DiToMg-K.js";var y=function(o){a(r,o);function r(e){var t=o.call(this,e)||this;return t.comboRef=t.comboRef.bind(t),t}return r.prototype.comboRef=function(e){this.comboInstance=e},r.prototype.validate=function(e){return this.comboInstance?this.comboInstance.validate():null},r.prototype.render=function(){var e=this.props,t=e.items,s=e.scaffold,i=c(e,["items","scaffold"]),l=Array.isArray(t)?t.length>1?t.slice(0,1):t:t!=null?[t]:[];return n.createElement(d,f({},i,{scaffold:s,items:l,flat:!0,multiple:!0,multiLine:!1,ref:this.comboRef}))},r}(n.Component),_=function(o){a(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r=m([u({type:"input-array",storeType:p.name})],r),r}(y);export{_ as ArrayControlRenderer,y as default};
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1,2 @@
|
||||||
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ColorPicker-CyxxnIJm.js","assets/index-DT8qTvyx.js","assets/index-We5Babj5.css"])))=>i.map(i=>d[i]);
|
||||||
|
import{f as c,o as m,s as u,t as f,j as o,ag as _,r as C,y,z as p,aX as h,Q as n,a1 as g}from"./index-DT8qTvyx.js";var x=c.lazy(function(){return m(()=>import("./ColorPicker-CyxxnIJm.js"),__vite__mapDeps([0,1,2]))}),P=function(r){u(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.state={open:!1},e}return t.prototype.render=function(){var e=this.props,d=e.className;e.style;var s=e.classPrefix,v=e.value,a=e.env;e.static;var l=e.mobileUI,i=f(e,["className","style","classPrefix","value","env","static","mobileUI"]);return o("div",{className:_("".concat(s,"ColorControl"),d),children:o(C.Suspense,{fallback:o("div",{children:"..."}),children:o(x,{...y({classPrefix:s},i,{mobileUI:l,popOverContainer:l?a==null?void 0:a.getModalContainer:i.popOverContainer||a.getModalContainer,value:v||""})})})})},t.defaultProps={format:"hex",clearable:!0},p([h(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],t.prototype,"render",null),t}(c.PureComponent),I=function(r){u(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t=p([g({type:"input-color"})],t),t}(P);export{I as ColorControlRenderer,x as ColorPicker,P as default};
|
||||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue