amis 1.9.1-beta.21 → 1.9.1-beta.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js.map +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +2 -3
- package/lib/components/GroupedSelection.js.map +2 -2
- package/lib/components/PickerContainer.d.ts +0 -1
- package/lib/components/PickerContainer.js +4 -4
- package/lib/components/PickerContainer.js.map +2 -2
- package/lib/components/ResultBox.js +3 -1
- package/lib/components/ResultBox.js.map +2 -2
- package/lib/components/ResultList.d.ts +53 -43
- package/lib/components/ResultList.js +22 -34
- package/lib/components/ResultList.js.map +2 -2
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/Select.js +10 -6
- package/lib/components/Select.js.map +2 -2
- package/lib/components/Selection.d.ts +40 -41
- package/lib/components/Selection.js.map +2 -2
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TabsTransfer.d.ts +2 -2
- package/lib/components/TabsTransfer.js.map +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +1 -1
- package/lib/components/Transfer.js.map +2 -2
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +2 -3
- package/lib/components/TreeSelection.js.map +2 -2
- package/lib/components/formula/Editor.d.ts +45 -45
- package/lib/components/formula/Editor.js +16 -11
- package/lib/components/formula/Editor.js.map +2 -2
- package/lib/components/formula/Picker.d.ts +85 -40
- package/lib/components/formula/Picker.js +12 -6
- package/lib/components/formula/Picker.js.map +2 -2
- package/lib/components/formula/VariableList.d.ts +0 -2
- package/lib/components/formula/VariableList.js +5 -15
- package/lib/components/formula/VariableList.js.map +2 -2
- package/lib/components/index.d.ts +1 -3
- package/lib/components/index.js +1 -5
- package/lib/components/index.js.map +2 -2
- package/lib/components/schema-editor/SchemaVariableList.d.ts +0 -1
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.js.map +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +0 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.js.map +2 -2
- package/lib/helper.css.map +1 -1
- package/lib/index.js +1 -1
- package/lib/renderers/CRUD.js +3 -3
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Form/DiffEditor.d.ts +66 -20
- package/lib/renderers/Form/Editor.d.ts +66 -20
- package/lib/renderers/Form/Group.js +1 -1
- package/lib/renderers/Form/Group.js.map +2 -2
- package/lib/renderers/Form/InputFormula.d.ts +5 -5
- package/lib/renderers/Form/InputFormula.js +4 -3
- package/lib/renderers/Form/InputFormula.js.map +2 -2
- package/lib/renderers/Form/InputTag.d.ts +1 -1
- package/lib/renderers/Form/InputTag.js.map +1 -1
- package/lib/renderers/Form/Options.js +7 -7
- package/lib/renderers/Form/Options.js.map +2 -2
- package/lib/renderers/Form/Select.d.ts +6 -1
- package/lib/renderers/Form/Select.js +3 -1
- package/lib/renderers/Form/Select.js.map +2 -2
- package/lib/renderers/Form/TreeSelect.d.ts +0 -1
- package/lib/renderers/Form/TreeSelect.js +1 -9
- package/lib/renderers/Form/TreeSelect.js.map +2 -2
- package/lib/renderers/Form/index.js +9 -4
- package/lib/renderers/Form/index.js.map +2 -2
- package/lib/renderers/Table/exportExcel.js +1 -1
- package/lib/renderers/Table/exportExcel.js.map +2 -2
- package/lib/renderers/Table/index.d.ts +2 -0
- package/lib/renderers/Table/index.js +37 -5
- package/lib/renderers/Table/index.js.map +2 -2
- package/lib/renderers/Tpl.d.ts +4 -0
- package/lib/renderers/Tpl.js +6 -3
- package/lib/renderers/Tpl.js.map +2 -2
- package/lib/store/combo.d.ts +72 -22
- package/lib/store/form.d.ts +30 -9
- package/lib/store/form.js +28 -10
- package/lib/store/form.js.map +2 -2
- package/lib/store/formItem.d.ts +3 -1
- package/lib/store/formItem.js +3 -5
- package/lib/store/formItem.js.map +2 -2
- package/lib/store/table.d.ts +60 -18
- package/lib/themes/ang-ie11.css +33 -9
- package/lib/themes/ang.css +27 -9
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +33 -9
- package/lib/themes/antd.css +27 -9
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +35 -15
- package/lib/themes/cxd.css +31 -17
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +33 -9
- package/lib/themes/dark.css +27 -9
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default-ie11.css +35 -15
- package/lib/themes/default.css +31 -17
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/formula.js +2 -3
- package/lib/utils/formula.js.map +2 -2
- package/lib/utils/helper.js +1 -1
- package/lib/utils/helper.js.map +2 -2
- package/package.json +1 -1
- package/schema.json +22 -16
- package/scss/_mixins.scss +1 -1
- package/scss/components/form/_date.scss +9 -10
- package/scss/components/form/_select.scss +14 -0
- package/scss/components/form/_transfer.scss +1 -2
- package/scss/themes/cxd.scss +4 -9
- package/sdk/ang-ie11.css +36 -9
- package/sdk/ang.css +30 -9
- package/sdk/antd-ie11.css +36 -9
- package/sdk/antd.css +30 -9
- package/sdk/barcode.js +51 -51
- package/sdk/charts.js +14 -14
- package/sdk/codemirror.js +7 -7
- package/sdk/color-picker.js +65 -65
- package/sdk/cropperjs.js +2 -2
- package/sdk/cxd-ie11.css +38 -16
- package/sdk/cxd.css +34 -18
- package/sdk/dark-ie11.css +36 -9
- package/sdk/dark.css +30 -9
- package/sdk/exceljs.js +1 -1
- package/sdk/helper.css.map +1 -1
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +16 -16
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +38 -16
- package/sdk/sdk.css +34 -18
- package/sdk/sdk.js +1356 -1354
- package/sdk/thirds/hls.js/hls.js +1 -1
- package/sdk/thirds/mpegts.js/mpegts.js +1 -1
- package/sdk/tinymce.js +57 -57
- package/src/components/Badge.tsx +1 -1
- package/src/components/GroupedSelection.tsx +2 -3
- package/src/components/PickerContainer.tsx +8 -13
- package/src/components/ResultBox.tsx +3 -1
- package/src/components/ResultList.tsx +51 -48
- package/src/components/Select.tsx +16 -8
- package/src/components/Selection.tsx +0 -1
- package/src/components/TabsTransfer.tsx +2 -2
- package/src/components/Transfer.tsx +4 -0
- package/src/components/TreeSelection.tsx +1 -2
- package/src/components/formula/Editor.tsx +51 -38
- package/src/components/formula/Picker.tsx +26 -7
- package/src/components/formula/VariableList.tsx +2 -36
- package/src/components/index.tsx +0 -4
- package/src/components/schema-editor/SchemaVariableList.tsx +2 -4
- package/src/components/schema-editor/SchemaVariableListPicker.tsx +1 -4
- package/src/renderers/CRUD.tsx +3 -3
- package/src/renderers/Form/Group.tsx +1 -1
- package/src/renderers/Form/InputFormula.tsx +11 -10
- package/src/renderers/Form/InputTag.tsx +1 -1
- package/src/renderers/Form/Options.tsx +7 -9
- package/src/renderers/Form/Select.tsx +10 -2
- package/src/renderers/Form/TreeSelect.tsx +14 -16
- package/src/renderers/Form/index.tsx +13 -2
- package/src/renderers/Table/exportExcel.ts +1 -1
- package/src/renderers/Table/index.tsx +42 -6
- package/src/renderers/Tpl.tsx +11 -1
- package/src/store/form.ts +31 -24
- package/src/store/formItem.ts +65 -52
- package/src/utils/formula.ts +2 -2
- package/src/utils/helper.ts +2 -2
package/sdk/cropperjs.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
;/*!node_modules/cropperjs/dist/cropper.js*/
|
2
|
-
amis.define("
|
2
|
+
amis.define("5dd0de6",(function(t,e,i,a){
|
3
3
|
/*!
|
4
4
|
* Cropper.js v1.5.12
|
5
5
|
* https://fengyuanchen.github.io/cropperjs
|
@@ -10,4 +10,4 @@ amis.define("0fe6d7c",(function(t,e,i,a){
|
|
10
10
|
* Date: 2021-06-12T08:00:17.411Z
|
11
11
|
*/var n,o;n=this,o=function(){"use strict";function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function e(e){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?t(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}var s="undefined"!=typeof window&&void 0!==window.document,c=s?window:{},l=!(!s||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!s&&"PointerEvent"in c,p="cropper",m="all",u="crop",g="move",f="zoom",v="e",w="w",b="s",y="n",x="ne",M="nw",C="se",D="sw",B="".concat(p,"-crop"),k="".concat(p,"-disabled"),O="".concat(p,"-hidden"),T="".concat(p,"-hide"),E="".concat(p,"-invisible"),W="".concat(p,"-modal"),H="".concat(p,"-move"),N="".concat(p,"Action"),L="".concat(p,"Preview"),z="crop",Y="move",X="none",R="crop",S="cropend",A="cropmove",j="cropstart",I="dblclick",P=d?"pointerdown":l?"touchstart":"mousedown",U=d?"pointermove":l?"touchmove":"mousemove",q=d?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",$="ready",Q="resize",K="wheel",Z="zoom",G="image/jpeg",V=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,F=/^data:/,J=/^data:image\/jpeg;base64,/,_=/^img|canvas$/i,tt={viewMode:0,dragMode:z,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},et=Number.isNaN||c.isNaN;function it(t){return"number"==typeof t&&!et(t)}var at=function(t){return t>0&&t<1/0};function nt(t){return void 0===t}function ot(t){return"object"===i(t)&&null!==t}var rt=Object.prototype.hasOwnProperty;function ht(t){if(!ot(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&rt.call(i,"isPrototypeOf")}catch(t){return!1}}function st(t){return"function"==typeof t}var ct=Array.prototype.slice;function lt(t){return Array.from?Array.from(t):ct.call(t)}function dt(t,e){return t&&st(e)&&(Array.isArray(t)||it(t.length)?lt(t).forEach((function(i,a){e.call(t,i,a,t)})):ot(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var pt=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return ot(t)&&i.length>0&&i.forEach((function(e){ot(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},mt=/\.\d*(?:0|9){12}\d*$/;function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return mt.test(t)?Math.round(t*e)/e:t}var gt=/^width|height|left|top|marginLeft|marginTop$/;function ft(t,e){var i=t.style;dt(e,(function(t,e){gt.test(e)&&it(t)&&(t="".concat(t,"px")),i[e]=t}))}function vt(t,e){if(e)if(it(t.length))dt(t,(function(t){vt(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function wt(t,e){e&&(it(t.length)?dt(t,(function(t){wt(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function bt(t,e,i){e&&(it(t.length)?dt(t,(function(t){bt(t,e,i)})):i?vt(t,e):wt(t,e))}var yt=/([a-z\d])([A-Z])/g;function xt(t){return t.replace(yt,"$1-$2").toLowerCase()}function Mt(t,e){return ot(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(xt(e)))}function Ct(t,e,i){ot(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(xt(e)),i)}var Dt=/\s\s*/,Bt=function(){var t=!1;if(s){var e=!1,i=function(){},a=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});c.addEventListener("test",i,a),c.removeEventListener("test",i,a)}return t}();function kt(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Dt).forEach((function(e){if(!Bt){var o=t.listeners;o&&o[e]&&o[e][i]&&(n=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,n,a)}))}function Ot(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;e.trim().split(Dt).forEach((function(e){if(a.once&&!Bt){var o=t.listeners,r=void 0===o?{}:o;n=function(){delete r[e][i],t.removeEventListener(e,n,a);for(var o=arguments.length,h=new Array(o),s=0;s<o;s++)h[s]=arguments[s];i.apply(t,h)},r[e]||(r[e]={}),r[e][i]&&t.removeEventListener(e,r[e][i],a),r[e][i]=n,t.listeners=r}t.addEventListener(e,n,a)}))}function Tt(t,e,i){var a;return st(Event)&&st(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function Et(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Wt=c.location,Ht=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Nt(t){var e=t.match(Ht);return null!==e&&(e[1]!==Wt.protocol||e[2]!==Wt.hostname||e[3]!==Wt.port)}function Lt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function zt(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,o=t.translateY,r=[];it(n)&&0!==n&&r.push("translateX(".concat(n,"px)")),it(o)&&0!==o&&r.push("translateY(".concat(o,"px)")),it(e)&&0!==e&&r.push("rotate(".concat(e,"deg)")),it(i)&&1!==i&&r.push("scaleX(".concat(i,")")),it(a)&&1!==a&&r.push("scaleY(".concat(a,")"));var h=r.length?r.join(" "):"none";return{WebkitTransform:h,msTransform:h,transform:h}}function Yt(t,i){var a=t.pageX,n=t.pageY,o={endX:a,endY:n};return i?o:e({startX:a,startY:n},o)}function Xt(t){var e=t.aspectRatio,i=t.height,a=t.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=at(a),r=at(i);if(o&&r){var h=i*e;"contain"===n&&h>a||"cover"===n&&h<a?i=a/e:a=i*e}else o?i=a/e:r&&(a=i*e);return{width:a,height:i}}function Rt(t,e,i,a){var n=e.aspectRatio,o=e.naturalWidth,h=e.naturalHeight,s=e.rotate,c=void 0===s?0:s,l=e.scaleX,d=void 0===l?1:l,p=e.scaleY,m=void 0===p?1:p,u=i.aspectRatio,g=i.naturalWidth,f=i.naturalHeight,v=a.fillColor,w=void 0===v?"transparent":v,b=a.imageSmoothingEnabled,y=void 0===b||b,x=a.imageSmoothingQuality,M=void 0===x?"low":x,C=a.maxWidth,D=void 0===C?1/0:C,B=a.maxHeight,k=void 0===B?1/0:B,O=a.minWidth,T=void 0===O?0:O,E=a.minHeight,W=void 0===E?0:E,H=document.createElement("canvas"),N=H.getContext("2d"),L=Xt({aspectRatio:u,width:D,height:k}),z=Xt({aspectRatio:u,width:T,height:W},"cover"),Y=Math.min(L.width,Math.max(z.width,g)),X=Math.min(L.height,Math.max(z.height,f)),R=Xt({aspectRatio:n,width:D,height:k}),S=Xt({aspectRatio:n,width:T,height:W},"cover"),A=Math.min(R.width,Math.max(S.width,o)),j=Math.min(R.height,Math.max(S.height,h)),I=[-A/2,-j/2,A,j];return H.width=ut(Y),H.height=ut(X),N.fillStyle=w,N.fillRect(0,0,Y,X),N.save(),N.translate(Y/2,X/2),N.rotate(c*Math.PI/180),N.scale(d,m),N.imageSmoothingEnabled=y,N.imageSmoothingQuality=M,N.drawImage.apply(N,[t].concat(r(I.map((function(t){return Math.floor(ut(t))}))))),N.restore(),H}var St=String.fromCharCode,At=/^data:.*,/;function jt(t){var e,i=new DataView(t);try{var a,n,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var r=i.byteLength,h=2;h+1<r;){if(255===i.getUint8(h)&&225===i.getUint8(h+1)){n=h;break}h+=1}if(n){var s=n+10;if("Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=St(t.getUint8(n));return a}(i,n+4,4)){var c=i.getUint16(s);if(((a=18761===c)||19789===c)&&42===i.getUint16(s+2,a)){var l=i.getUint32(s+4,a);l>=8&&(o=s+l)}}}if(o){var d,p,m=i.getUint16(o,a);for(p=0;p<m;p+=1)if(d=o+12*p+2,274===i.getUint16(d,a)){d+=8,e=i.getUint16(d,a),i.setUint16(d,1,a);break}}}catch(t){e=1}return e}var It={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper,n=Number(e.minContainerWidth),o=Number(e.minContainerHeight);vt(a,O),wt(t,O);var r={width:Math.max(i.offsetWidth,n>=0?n:200),height:Math.max(i.offsetHeight,o>=0?o:100)};this.containerData=r,ft(a,{width:r.width,height:r.height}),vt(t,O),wt(a,O)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,o=a?e.naturalWidth:e.naturalHeight,r=n/o,h=t.width,s=t.height;t.height*r>t.width?3===i?h=t.height*r:s=t.width/r:3===i?s=t.width/r:h=t.height*r;var c={aspectRatio:r,naturalWidth:n,naturalHeight:o,width:h,height:s};this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=pt({},c)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=i.viewMode,h=n.aspectRatio,s=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,l=Number(i.minCanvasHeight)||0;r>1?(c=Math.max(c,a.width),l=Math.max(l,a.height),3===r&&(l*h>c?c=l*h:l=c/h)):r>0&&(c?c=Math.max(c,s?o.width:0):l?l=Math.max(l,s?o.height:0):s&&(c=o.width,(l=o.height)*h>c?c=l*h:l=c/h));var d=Xt({aspectRatio:h,width:c,height:l});c=d.width,l=d.height,n.minWidth=c,n.minHeight=l,n.maxWidth=1/0,n.maxHeight=1/0}if(e)if(r>(s?0:1)){var p=a.width-n.width,m=a.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,m),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,m),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===r&&(n.width>=a.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=a.height&&(n.minTop=Math.min(0,m),n.maxTop=Math.max(0,m))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,e){var i=this.canvasData,a=this.imageData;if(e){var n=function(t){var e=t.width,i=t.height,a=t.degree;if(90==(a=Math.abs(a)%180))return{width:i,height:e};var n=a%90*Math.PI/180,o=Math.sin(n),r=Math.cos(n),h=e*r+i*o,s=e*o+i*r;return a>90?{width:s,height:h}:{width:h,height:s}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,r=n.height,h=i.width*(o/i.naturalWidth),s=i.height*(r/i.naturalHeight);i.left-=(h-i.width)/2,i.top-=(s-i.height)/2,i.width=h,i.height=s,i.aspectRatio=o/r,i.naturalWidth=o,i.naturalHeight=r,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,ft(this.canvas,pt({width:i.width,height:i.height},zt({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);pt(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),ft(this.image,pt({width:i.width,height:i.height},zt(pt({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:e.width,height:e.height};i&&(e.height*i>e.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=e.left+(e.width-n.width)/2,n.top=e.top+(e.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=pt({},n)},limitCropBox:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,r=this.limited,h=i.aspectRatio;if(t){var s=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,l=r?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,d=r?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;s=Math.min(s,a.width),c=Math.min(c,a.height),h&&(s&&c?c*h>s?c=s/h:s=c*h:s?c=s/h:c&&(s=c*h),d*h>l?d=l/h:l=d*h),o.minWidth=Math.min(s,l),o.minHeight=Math.min(c,d),o.maxWidth=l,o.maxHeight=d}e&&(r?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&Ct(this.face,N,i.width>=e.width&&i.height>=e.height?g:m),ft(this.cropBox,pt({width:i.width,height:i.height},zt({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Tt(this.element,R,this.getData())}},Pt={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,a=e?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var r=i;"string"==typeof i?r=t.ownerDocument.querySelectorAll(i):i.querySelector&&(r=[i]),this.previews=r,dt(r,(function(t){var i=document.createElement("img");Ct(t,L,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=a,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){dt(this.previews,(function(t){var e=Mt(t,L);ft(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(ot(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(xt(e)))}(t,L)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,a=i.width,n=i.height,o=t.width,r=t.height,h=i.left-e.left-t.left,s=i.top-e.top-t.top;this.cropped&&!this.disabled&&(ft(this.viewBoxImage,pt({width:o,height:r},zt(pt({translateX:-h,translateY:-s},t)))),dt(this.previews,(function(e){var i=Mt(e,L),c=i.width,l=i.height,d=c,p=l,m=1;a&&(p=n*(m=c/a)),n&&p>l&&(d=a*(m=l/n),p=l),ft(e,{width:d,height:p}),ft(e.getElementsByTagName("img")[0],pt({width:o*m,height:r*m},zt(pt({translateX:-h*m,translateY:-s*m},t))))})))}},Ut={bind:function(){var t=this.element,e=this.options,i=this.cropper;st(e.cropstart)&&Ot(t,j,e.cropstart),st(e.cropmove)&&Ot(t,A,e.cropmove),st(e.cropend)&&Ot(t,S,e.cropend),st(e.crop)&&Ot(t,R,e.crop),st(e.zoom)&&Ot(t,Z,e.zoom),Ot(i,P,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Ot(i,K,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Ot(i,I,this.onDblclick=this.dblclick.bind(this)),Ot(t.ownerDocument,U,this.onCropMove=this.cropMove.bind(this)),Ot(t.ownerDocument,q,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Ot(window,Q,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;st(e.cropstart)&&kt(t,j,e.cropstart),st(e.cropmove)&&kt(t,A,e.cropmove),st(e.cropend)&&kt(t,S,e.cropend),st(e.crop)&&kt(t,R,e.crop),st(e.zoom)&&kt(t,Z,e.zoom),kt(i,P,this.onCropStart),e.zoomable&&e.zoomOnWheel&&kt(i,K,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&kt(i,I,this.onDblclick),kt(t.ownerDocument,U,this.onCropMove),kt(t.ownerDocument,q,this.onCropEnd),e.responsive&&kt(window,Q,this.onResize)}},qt={resize:function(){if(!this.disabled){var t,e,i=this.options,a=this.container,n=this.containerData,o=a.offsetWidth/n.width,r=a.offsetHeight/n.height,h=Math.abs(o-1)>Math.abs(r-1)?o:r;1!==h&&(i.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(dt(t,(function(e,i){t[i]=e*h}))),this.setCropBoxData(dt(e,(function(t,i){e[i]=t*h})))))}},dblclick:function(){var t,e;this.disabled||this.options.dragMode===X||this.setDragMode((t=this.dragBox,e=B,(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?Y:z))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(it(e)&&1!==e||it(i)&&0!==i||t.ctrlKey))){var a,n=this.options,o=this.pointers;t.changedTouches?dt(t.changedTouches,(function(t){o[t.identifier]=Yt(t)})):o[t.pointerId||0]=Yt(t),a=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?f:Mt(t.target,N),V.test(a)&&!1!==Tt(this.element,j,{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,a===u&&(this.cropping=!0,vt(this.dragBox,W)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==Tt(this.element,A,{originalEvent:t,action:e})&&(t.changedTouches?dt(t.changedTouches,(function(t){pt(i[t.identifier]||{},Yt(t,!0))})):pt(i[t.pointerId||0]||{},Yt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?dt(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,bt(this.dragBox,W,this.cropped&&this.options.modal)),Tt(this.element,S,{originalEvent:t,action:e}))}}},$t={change:function(t){var i,a=this.options,n=this.canvasData,o=this.containerData,r=this.cropBoxData,h=this.pointers,s=this.action,c=a.aspectRatio,l=r.left,d=r.top,p=r.width,B=r.height,k=l+p,T=d+B,E=0,W=0,H=o.width,N=o.height,L=!0;!c&&t.shiftKey&&(c=p&&B?p/B:1),this.limited&&(E=r.minLeft,W=r.minTop,H=E+Math.min(o.width,n.width,n.left+n.width),N=W+Math.min(o.height,n.height,n.top+n.height));var z=h[Object.keys(h)[0]],Y={x:z.endX-z.startX,y:z.endY-z.startY},X=function(t){switch(t){case v:k+Y.x>H&&(Y.x=H-k);break;case w:l+Y.x<E&&(Y.x=E-l);break;case y:d+Y.y<W&&(Y.y=W-d);break;case b:T+Y.y>N&&(Y.y=N-T)}};switch(s){case m:l+=Y.x,d+=Y.y;break;case v:if(Y.x>=0&&(k>=H||c&&(d<=W||T>=N))){L=!1;break}X(v),(p+=Y.x)<0&&(s=w,l-=p=-p),c&&(B=p/c,d+=(r.height-B)/2);break;case y:if(Y.y<=0&&(d<=W||c&&(l<=E||k>=H))){L=!1;break}X(y),B-=Y.y,d+=Y.y,B<0&&(s=b,d-=B=-B),c&&(p=B*c,l+=(r.width-p)/2);break;case w:if(Y.x<=0&&(l<=E||c&&(d<=W||T>=N))){L=!1;break}X(w),p-=Y.x,l+=Y.x,p<0&&(s=v,l-=p=-p),c&&(B=p/c,d+=(r.height-B)/2);break;case b:if(Y.y>=0&&(T>=N||c&&(l<=E||k>=H))){L=!1;break}X(b),(B+=Y.y)<0&&(s=y,d-=B=-B),c&&(p=B*c,l+=(r.width-p)/2);break;case x:if(c){if(Y.y<=0&&(d<=W||k>=H)){L=!1;break}X(y),B-=Y.y,d+=Y.y,p=B*c}else X(y),X(v),Y.x>=0?k<H?p+=Y.x:Y.y<=0&&d<=W&&(L=!1):p+=Y.x,Y.y<=0?d>W&&(B-=Y.y,d+=Y.y):(B-=Y.y,d+=Y.y);p<0&&B<0?(s=D,d-=B=-B,l-=p=-p):p<0?(s=M,l-=p=-p):B<0&&(s=C,d-=B=-B);break;case M:if(c){if(Y.y<=0&&(d<=W||l<=E)){L=!1;break}X(y),B-=Y.y,d+=Y.y,p=B*c,l+=r.width-p}else X(y),X(w),Y.x<=0?l>E?(p-=Y.x,l+=Y.x):Y.y<=0&&d<=W&&(L=!1):(p-=Y.x,l+=Y.x),Y.y<=0?d>W&&(B-=Y.y,d+=Y.y):(B-=Y.y,d+=Y.y);p<0&&B<0?(s=C,d-=B=-B,l-=p=-p):p<0?(s=x,l-=p=-p):B<0&&(s=D,d-=B=-B);break;case D:if(c){if(Y.x<=0&&(l<=E||T>=N)){L=!1;break}X(w),p-=Y.x,l+=Y.x,B=p/c}else X(b),X(w),Y.x<=0?l>E?(p-=Y.x,l+=Y.x):Y.y>=0&&T>=N&&(L=!1):(p-=Y.x,l+=Y.x),Y.y>=0?T<N&&(B+=Y.y):B+=Y.y;p<0&&B<0?(s=x,d-=B=-B,l-=p=-p):p<0?(s=C,l-=p=-p):B<0&&(s=M,d-=B=-B);break;case C:if(c){if(Y.x>=0&&(k>=H||T>=N)){L=!1;break}X(v),B=(p+=Y.x)/c}else X(b),X(v),Y.x>=0?k<H?p+=Y.x:Y.y>=0&&T>=N&&(L=!1):p+=Y.x,Y.y>=0?T<N&&(B+=Y.y):B+=Y.y;p<0&&B<0?(s=M,d-=B=-B,l-=p=-p):p<0?(s=D,l-=p=-p):B<0&&(s=x,d-=B=-B);break;case g:this.move(Y.x,Y.y),L=!1;break;case f:this.zoom(function(t){var i=e({},t),a=0;return dt(t,(function(t,e){delete i[e],dt(i,(function(e){var i=Math.abs(t.startX-e.startX),n=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),r=Math.abs(t.endY-e.endY),h=Math.sqrt(i*i+n*n),s=(Math.sqrt(o*o+r*r)-h)/h;Math.abs(s)>Math.abs(a)&&(a=s)}))})),a}(h),t),L=!1;break;case u:if(!Y.x||!Y.y){L=!1;break}i=Et(this.cropper),l=z.startX-i.left,d=z.startY-i.top,p=r.minWidth,B=r.minHeight,Y.x>0?s=Y.y>0?C:x:Y.x<0&&(l-=p,s=Y.y>0?D:M),Y.y<0&&(d-=B),this.cropped||(wt(this.cropBox,O),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}L&&(r.width=p,r.height=B,r.left=l,r.top=d,this.action=s,this.renderCropBox()),dt(h,(function(t){t.startX=t.endX,t.startY=t.endY}))}},Qt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&vt(this.dragBox,W),wt(this.cropBox,O),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=pt({},this.initialImageData),this.canvasData=pt({},this.initialCanvasData),this.cropBoxData=pt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(pt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),wt(this.dragBox,W),vt(this.cropBox,O)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,dt(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,wt(this.cropper,k)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,vt(this.cropper,k)),this},destroy:function(){var t=this.element;return t.cropper?(t.cropper=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,n=i.top;return this.moveTo(nt(t)?t:a+Number(t),nt(e)?e:n+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(it(t)&&(i.left=t,a=!0),it(e)&&(i.top=e,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a=this.options,n=this.canvasData,o=n.width,r=n.height,h=n.naturalWidth,s=n.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&a.zoomable){var c=h*t,l=s*t;if(!1===Tt(this.element,Z,{ratio:t,oldRatio:o/h,originalEvent:i}))return this;if(i){var d=this.pointers,p=Et(this.cropper),m=d&&Object.keys(d).length?function(t){var e=0,i=0,a=0;return dt(t,(function(t){var n=t.startX,o=t.startY;e+=n,i+=o,a+=1})),{pageX:e/=a,pageY:i/=a}}(d):{pageX:i.pageX,pageY:i.pageY};n.left-=(c-o)*((m.pageX-p.left-n.left)/o),n.top-=(l-r)*((m.pageY-p.top-n.top)/r)}else ht(e)&&it(e.x)&&it(e.y)?(n.left-=(c-o)*((e.x-n.left)/o),n.top-=(l-r)*((e.y-n.top)/r)):(n.left-=(c-o)/2,n.top-=(l-r)/2);n.width=c,n.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return it(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,it(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(it(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(it(t)&&(i.scaleX=t,a=!0),it(e)&&(i.scaleY=e,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,a=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var r=a.width/a.naturalWidth;if(dt(t,(function(e,i){t[i]=e/r})),e){var h=Math.round(t.y+t.height),s=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=s-t.x,t.height=h-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=a.rotate||0),i.scalable&&(t.scaleX=a.scaleX||1,t.scaleY=a.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&ht(t)){var o=!1;e.rotatable&&it(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),e.scalable&&(it(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),it(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var r=i.width/i.naturalWidth;it(t.x)&&(n.left=t.x*r+a.left),it(t.y)&&(n.top=t.y*r+a.top),it(t.width)&&(n.width=t.width*r),it(t.height)&&(n.height=t.height*r),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?pt({},this.containerData):{}},getImageData:function(){return this.sized?pt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&dt(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&ht(t)&&(it(t.left)&&(e.left=t.left),it(t.top)&&(e.top=t.top),it(t.width)?(e.width=t.width,e.height=t.width/i):it(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ht(t)&&(it(t.left)&&(a.left=t.left),it(t.top)&&(a.top=t.top),it(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),it(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=Rt(this.image,this.imageData,e,t);if(!this.cropped)return i;var a=this.getData(),n=a.x,o=a.y,h=a.width,s=a.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(n*=c,o*=c,h*=c,s*=c);var l=h/s,d=Xt({aspectRatio:l,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=Xt({aspectRatio:l,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=Xt({aspectRatio:l,width:t.width||(1!==c?i.width:h),height:t.height||(1!==c?i.height:s)}),u=m.width,g=m.height;u=Math.min(d.width,Math.max(p.width,u)),g=Math.min(d.height,Math.max(p.height,g));var f=document.createElement("canvas"),v=f.getContext("2d");f.width=ut(u),f.height=ut(g),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,u,g);var w=t.imageSmoothingEnabled,b=void 0===w||w,y=t.imageSmoothingQuality;v.imageSmoothingEnabled=b,y&&(v.imageSmoothingQuality=y);var x,M,C,D,B,k,O=i.width,T=i.height,E=n,W=o;E<=-h||E>O?(E=0,x=0,C=0,B=0):E<=0?(C=-E,E=0,B=x=Math.min(O,h+E)):E<=O&&(C=0,B=x=Math.min(h,O-E)),x<=0||W<=-s||W>T?(W=0,M=0,D=0,k=0):W<=0?(D=-W,W=0,k=M=Math.min(T,s+W)):W<=T&&(D=0,k=M=Math.min(s,T-W));var H=[E,W,x,M];if(B>0&&k>0){var N=u/h;H.push(C*N,D*N,B*N,k*N)}return v.drawImage.apply(v,[i].concat(r(H.map((function(t){return Math.floor(ut(t))}))))),f},setAspectRatio:function(t){var e=this.options;return this.disabled||nt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n=t===z,o=e.movable&&t===Y;t=n||o?t:X,e.dragMode=t,Ct(i,N,t),bt(i,B,n),bt(i,H,o),e.cropBoxMovable||(Ct(a,N,t),bt(a,B,n),bt(a,H,o))}return this}},Kt=c.Cropper,Zt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a(this,t),!e||!_.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=pt({},tt,ht(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var e,i,o;return e=t,o=[{key:"noConflict",value:function(){return window.Cropper=Kt,t}},{key:"setDefaults",value:function(t){pt(tt,ht(t)&&t)}}],(i=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e.cropper){if(e.cropper=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var i=this.element,a=this.options;if(a.rotatable||a.scalable||(a.checkOrientation=!1),a.checkOrientation&&window.ArrayBuffer)if(F.test(t))J.test(t)?this.read((n=t.replace(At,""),o=atob(n),r=new ArrayBuffer(o.length),dt(h=new Uint8Array(r),(function(t,e){h[e]=o.charCodeAt(e)})),r)):this.clone();else{var n,o,r,h,s=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=c,s.onerror=c,s.ontimeout=c,s.onprogress=function(){s.getResponseHeader("content-type")!==G&&s.abort()},s.onload=function(){e.read(s.response)},s.onloadend=function(){e.reloading=!1,e.xhr=null},a.checkCrossOrigin&&Nt(t)&&i.crossOrigin&&(t=Lt(t)),s.open("GET",t,!0),s.responseType="arraybuffer",s.withCredentials="use-credentials"===i.crossOrigin,s.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=jt(t),n=0,o=1,r=1;if(a>1){this.url=function(t,e){for(var i=[],a=new Uint8Array(t);a.length>0;)i.push(St.apply(null,lt(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,G);var h=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a);n=h.rotate,o=h.scaleX,r=h.scaleY}e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=r),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e;this.options.checkCrossOrigin&&Nt(e)&&(i||(i="anonymous"),a=Lt(e)),this.crossOrigin=i,this.crossOriginUrl=a;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),vt(n,T),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),a=function(e,i){pt(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.initialImageData=pt({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){a(n.width,n.height),i||o.removeChild(n)},n.src=e.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}else a(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,a=t.parentNode,n=document.createElement("div");n.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=n.querySelector(".".concat(p,"-container")),r=o.querySelector(".".concat(p,"-canvas")),h=o.querySelector(".".concat(p,"-drag-box")),s=o.querySelector(".".concat(p,"-crop-box")),c=s.querySelector(".".concat(p,"-face"));this.container=a,this.cropper=o,this.canvas=r,this.dragBox=h,this.cropBox=s,this.viewBox=o.querySelector(".".concat(p,"-view-box")),this.face=c,r.appendChild(i),vt(t,O),a.insertBefore(o,t.nextSibling),this.isImg||wt(i,T),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,vt(s,O),e.guides||vt(s.getElementsByClassName("".concat(p,"-dashed")),O),e.center||vt(s.getElementsByClassName("".concat(p,"-center")),O),e.background&&vt(o,"".concat(p,"-bg")),e.highlight||vt(c,E),e.cropBoxMovable&&(vt(c,H),Ct(c,N,m)),e.cropBoxResizable||(vt(s.getElementsByClassName("".concat(p,"-line")),O),vt(s.getElementsByClassName("".concat(p,"-point")),O)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),st(e.ready)&&Ot(t,$,e.ready,{once:!0}),Tt(t,$)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),wt(this.element,O))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(e.prototype,i),o&&n(e,o),t}();return pt(Zt.prototype,It,Pt,Ut,qt,$t,Qt),Zt},"object"==typeof e&&void 0!==i?i.exports=o():"function"==typeof a&&a.amd?a(o):(n="undefined"!=typeof globalThis?globalThis:n||self).Cropper=o()}));
|
12
12
|
;/*!node_modules/react-cropper/dist/react-cropper.umd.js*/
|
13
|
-
amis.define("
|
13
|
+
amis.define("1d74b61",(function(e,r,t,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("009cb73"),a=e("5dd0de6");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(n),u=c(a),i=function(){return i=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},i.apply(this,arguments)};function f(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}var s=l.default.forwardRef((function(e,r){var t=f(e,[]),o=t.dragMode,a=void 0===o?"crop":o,c=t.src,s=t.style,d=t.className,p=t.crossOrigin,v=t.scaleX,y=t.scaleY,b=t.enable,m=t.zoomTo,O=t.rotateTo,g=t.alt,T=void 0===g?"picture":g,z=t.ready,h=t.onInitialized,j=f(t,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),E={scaleY:y,scaleX:v,enable:b,zoomTo:m,rotateTo:O},w=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=n.useRef(null);return l.default.useEffect((function(){e.forEach((function(e){e&&("function"==typeof e?e(t.current):e.current=t.current)}))}),[e]),t}(r,n.useRef(null));return n.useEffect((function(){var e;(null===(e=w.current)||void 0===e?void 0:e.cropper)&&"number"==typeof m&&w.current.cropper.zoomTo(m)}),[t.zoomTo]),n.useEffect((function(){var e;(null===(e=w.current)||void 0===e?void 0:e.cropper)&&void 0!==c&&w.current.cropper.reset().clear().replace(c)}),[c]),n.useEffect((function(){if(null!==w.current){var e=new u.default(w.current,i(i({dragMode:a},j),{ready:function(e){null!==e.currentTarget&&function(e,r){void 0===r&&(r={});var t=r.enable,o=void 0===t||t,n=r.scaleX,a=void 0===n?1:n,c=r.scaleY,l=void 0===c?1:c,u=r.zoomTo,i=void 0===u?0:u,f=r.rotateTo;o?e.enable():e.disable(),e.scaleX(a),e.scaleY(l),void 0!==f&&e.rotateTo(f),i>0&&e.zoomTo(i)}(e.currentTarget.cropper,E),z&&z(e)}}));h&&h(e)}return function(){var e,r;null===(r=null===(e=w.current)||void 0===e?void 0:e.cropper)||void 0===r||r.destroy()}}),[w]),l.default.createElement("div",{style:s,className:d},l.default.createElement("img",{crossOrigin:p,src:c,alt:T,style:{opacity:0,maxWidth:"100%"},ref:w}))}));r.Cropper=s,r.default=s}));
|
package/sdk/cxd-ie11.css
CHANGED
@@ -38207,7 +38207,7 @@ readers do not read off random characters that represent icons */
|
|
38207
38207
|
}
|
38208
38208
|
|
38209
38209
|
.amis-scope .cxd-InputBox input {
|
38210
|
-
flex-basis:
|
38210
|
+
flex-basis: 1.875rem;
|
38211
38211
|
flex-grow: 1;
|
38212
38212
|
outline: none;
|
38213
38213
|
background: transparent;
|
@@ -38604,7 +38604,7 @@ readers do not read off random characters that represent icons */
|
|
38604
38604
|
}
|
38605
38605
|
|
38606
38606
|
.amis-scope .cxd-ResultBox input {
|
38607
|
-
flex-basis:
|
38607
|
+
flex-basis: 1.875rem;
|
38608
38608
|
flex-grow: 1;
|
38609
38609
|
outline: none;
|
38610
38610
|
background: transparent;
|
@@ -40319,7 +40319,7 @@ readers do not read off random characters that represent icons */
|
|
40319
40319
|
}
|
40320
40320
|
|
40321
40321
|
.amis-scope .cxd-TextControl-input input {
|
40322
|
-
flex-basis:
|
40322
|
+
flex-basis: 1.875rem;
|
40323
40323
|
flex-grow: 1;
|
40324
40324
|
outline: none;
|
40325
40325
|
background: transparent;
|
@@ -40716,7 +40716,7 @@ readers do not read off random characters that represent icons */
|
|
40716
40716
|
}
|
40717
40717
|
|
40718
40718
|
.amis-scope .cxd-TextareaControl-input input {
|
40719
|
-
flex-basis:
|
40719
|
+
flex-basis: 1.875rem;
|
40720
40720
|
flex-grow: 1;
|
40721
40721
|
outline: none;
|
40722
40722
|
background: transparent;
|
@@ -42251,6 +42251,10 @@ readers do not read off random characters that represent icons */
|
|
42251
42251
|
box-shadow: none;
|
42252
42252
|
}
|
42253
42253
|
|
42254
|
+
.amis-scope .cxd-Select .cxd-PopOver.cxd-Select-popover .cxd-Select-menu {
|
42255
|
+
overflow-x: hidden;
|
42256
|
+
}
|
42257
|
+
|
42254
42258
|
.amis-scope .cxd-Select .cxd-PopOver.cxd-Select-popover .cxd-Select-menu .cxd-Select-option {
|
42255
42259
|
height: 2rem;
|
42256
42260
|
line-height: 1.375rem;
|
@@ -42512,6 +42516,16 @@ readers do not read off random characters that represent icons */
|
|
42512
42516
|
display: block;
|
42513
42517
|
}
|
42514
42518
|
|
42519
|
+
.amis-scope .cxd-Select-option .cxd-Select-option-content,
|
42520
|
+
.amis-scope .cxd-Select-option .cxd-Select-option-content > span > div {
|
42521
|
+
flex: auto;
|
42522
|
+
overflow: hidden;
|
42523
|
+
white-space: nowrap;
|
42524
|
+
text-overflow: ellipsis;
|
42525
|
+
display: inline-block;
|
42526
|
+
max-width: 100%;
|
42527
|
+
}
|
42528
|
+
|
42515
42529
|
.amis-scope .cxd-Select-noResult {
|
42516
42530
|
color: #999;
|
42517
42531
|
line-height: 1.4285714286;
|
@@ -43328,6 +43342,20 @@ readers do not read off random characters that represent icons */
|
|
43328
43342
|
display: flex;
|
43329
43343
|
}
|
43330
43344
|
|
43345
|
+
.amis-scope .cxd-DateControl.is-date > .cxd-DatePicker {
|
43346
|
+
min-width: calc(calc(
|
43347
|
+
16px * 5 + 0.75rem * 2 +
|
43348
|
+
14px * 2
|
43349
|
+
) + 16px * 2);
|
43350
|
+
}
|
43351
|
+
|
43352
|
+
.amis-scope .cxd-DateControl.is-datetime > .cxd-DatePicker {
|
43353
|
+
min-width: calc(calc(
|
43354
|
+
16px * 5 + 0.75rem * 2 +
|
43355
|
+
14px * 2
|
43356
|
+
) + 16px * 6);
|
43357
|
+
}
|
43358
|
+
|
43331
43359
|
.amis-scope .cxd-DatePicker-shortcuts {
|
43332
43360
|
margin: 0;
|
43333
43361
|
padding-left: 0.625rem;
|
@@ -45569,7 +45597,7 @@ readers do not read off random characters that represent icons */
|
|
45569
45597
|
}
|
45570
45598
|
|
45571
45599
|
.amis-scope .cxd-TreeSelect-input input {
|
45572
|
-
flex-basis:
|
45600
|
+
flex-basis: 1.875rem;
|
45573
45601
|
flex-grow: 1;
|
45574
45602
|
outline: none;
|
45575
45603
|
background: transparent;
|
@@ -46205,7 +46233,7 @@ readers do not read off random characters that represent icons */
|
|
46205
46233
|
}
|
46206
46234
|
|
46207
46235
|
.amis-scope .cxd-Picker-input input {
|
46208
|
-
flex-basis:
|
46236
|
+
flex-basis: 1.875rem;
|
46209
46237
|
flex-grow: 1;
|
46210
46238
|
outline: none;
|
46211
46239
|
background: transparent;
|
@@ -46690,8 +46718,7 @@ readers do not read off random characters that represent icons */
|
|
46690
46718
|
.amis-scope .cxd-Transfer-select > .cxd-ChainedSelection .cxd-ChainedSelection-col {
|
46691
46719
|
height: 100%;
|
46692
46720
|
overflow: auto;
|
46693
|
-
min-width:
|
46694
|
-
flex: 1 1 0;
|
46721
|
+
min-width: 8.125rem;
|
46695
46722
|
}
|
46696
46723
|
|
46697
46724
|
.amis-scope .cxd-Transfer .cxd--ResultTreeList {
|
@@ -47193,7 +47220,7 @@ readers do not read off random characters that represent icons */
|
|
47193
47220
|
}
|
47194
47221
|
|
47195
47222
|
.amis-scope .cxd-IconPickerControl-input input {
|
47196
|
-
flex-basis:
|
47223
|
+
flex-basis: 1.875rem;
|
47197
47224
|
flex-grow: 1;
|
47198
47225
|
outline: none;
|
47199
47226
|
background: transparent;
|
@@ -52511,17 +52538,12 @@ readers do not read off random characters that represent icons */
|
|
52511
52538
|
}
|
52512
52539
|
|
52513
52540
|
.amis-scope .cxd-Transfer-title {
|
52514
|
-
|
52515
|
-
|
52541
|
+
flex: 0 0 2.375rem;
|
52542
|
+
height: 2.375rem;
|
52516
52543
|
padding-left: 0.75rem;
|
52517
52544
|
padding-right: 0.75rem;
|
52518
52545
|
}
|
52519
52546
|
|
52520
|
-
.amis-scope .cxd-Transfer-title--light {
|
52521
|
-
height: 2.5rem;
|
52522
|
-
flex: 0 0 2.5rem;
|
52523
|
-
}
|
52524
|
-
|
52525
52547
|
.amis-scope .cxd-Transfer-result > .cxd-Selections {
|
52526
52548
|
height: 100%;
|
52527
52549
|
}
|
package/sdk/cxd.css
CHANGED
@@ -40155,7 +40155,7 @@ readers do not read off random characters that represent icons */
|
|
40155
40155
|
}
|
40156
40156
|
|
40157
40157
|
.amis-scope .cxd-InputBox input {
|
40158
|
-
flex-basis:
|
40158
|
+
flex-basis: 1.875rem;
|
40159
40159
|
flex-grow: 1;
|
40160
40160
|
outline: none;
|
40161
40161
|
background: transparent;
|
@@ -40542,7 +40542,7 @@ readers do not read off random characters that represent icons */
|
|
40542
40542
|
}
|
40543
40543
|
|
40544
40544
|
.amis-scope .cxd-ResultBox input {
|
40545
|
-
flex-basis:
|
40545
|
+
flex-basis: 1.875rem;
|
40546
40546
|
flex-grow: 1;
|
40547
40547
|
outline: none;
|
40548
40548
|
background: transparent;
|
@@ -42241,7 +42241,7 @@ readers do not read off random characters that represent icons */
|
|
42241
42241
|
}
|
42242
42242
|
|
42243
42243
|
.amis-scope .cxd-TextControl-input input {
|
42244
|
-
flex-basis:
|
42244
|
+
flex-basis: 1.875rem;
|
42245
42245
|
flex-grow: 1;
|
42246
42246
|
outline: none;
|
42247
42247
|
background: transparent;
|
@@ -42623,7 +42623,7 @@ readers do not read off random characters that represent icons */
|
|
42623
42623
|
}
|
42624
42624
|
|
42625
42625
|
.amis-scope .cxd-TextareaControl-input input {
|
42626
|
-
flex-basis:
|
42626
|
+
flex-basis: 1.875rem;
|
42627
42627
|
flex-grow: 1;
|
42628
42628
|
outline: none;
|
42629
42629
|
background: transparent;
|
@@ -44128,6 +44128,10 @@ readers do not read off random characters that represent icons */
|
|
44128
44128
|
box-shadow: var(--Form-select-onFocus-boxShadow);
|
44129
44129
|
}
|
44130
44130
|
|
44131
|
+
.amis-scope .cxd-Select .cxd-PopOver.cxd-Select-popover .cxd-Select-menu {
|
44132
|
+
overflow-x: hidden;
|
44133
|
+
}
|
44134
|
+
|
44131
44135
|
.amis-scope .cxd-Select .cxd-PopOver.cxd-Select-popover .cxd-Select-menu .cxd-Select-option {
|
44132
44136
|
height: 2rem;
|
44133
44137
|
line-height: 1.375rem;
|
@@ -44389,6 +44393,16 @@ readers do not read off random characters that represent icons */
|
|
44389
44393
|
display: block;
|
44390
44394
|
}
|
44391
44395
|
|
44396
|
+
.amis-scope .cxd-Select-option .cxd-Select-option-content,
|
44397
|
+
.amis-scope .cxd-Select-option .cxd-Select-option-content > span > div {
|
44398
|
+
flex: auto;
|
44399
|
+
overflow: hidden;
|
44400
|
+
white-space: nowrap;
|
44401
|
+
text-overflow: ellipsis;
|
44402
|
+
display: inline-block;
|
44403
|
+
max-width: 100%;
|
44404
|
+
}
|
44405
|
+
|
44392
44406
|
.amis-scope .cxd-Select-noResult {
|
44393
44407
|
color: var(--Form-select-placeholderColor);
|
44394
44408
|
line-height: var(--Form-input-lineHeight);
|
@@ -45187,6 +45201,14 @@ readers do not read off random characters that represent icons */
|
|
45187
45201
|
display: flex;
|
45188
45202
|
}
|
45189
45203
|
|
45204
|
+
.amis-scope .cxd-DateControl.is-date > .cxd-DatePicker {
|
45205
|
+
min-width: calc(var(--DatePicker-minWidth) + var(--fontSizeLg) * 2);
|
45206
|
+
}
|
45207
|
+
|
45208
|
+
.amis-scope .cxd-DateControl.is-datetime > .cxd-DatePicker {
|
45209
|
+
min-width: calc(var(--DatePicker-minWidth) + var(--fontSizeLg) * 6);
|
45210
|
+
}
|
45211
|
+
|
45190
45212
|
.amis-scope .cxd-DatePicker-shortcuts {
|
45191
45213
|
margin: 0;
|
45192
45214
|
padding-left: 0.625rem;
|
@@ -47392,7 +47414,7 @@ readers do not read off random characters that represent icons */
|
|
47392
47414
|
}
|
47393
47415
|
|
47394
47416
|
.amis-scope .cxd-TreeSelect-input input {
|
47395
|
-
flex-basis:
|
47417
|
+
flex-basis: 1.875rem;
|
47396
47418
|
flex-grow: 1;
|
47397
47419
|
outline: none;
|
47398
47420
|
background: transparent;
|
@@ -48008,7 +48030,7 @@ readers do not read off random characters that represent icons */
|
|
48008
48030
|
}
|
48009
48031
|
|
48010
48032
|
.amis-scope .cxd-Picker-input input {
|
48011
|
-
flex-basis:
|
48033
|
+
flex-basis: 1.875rem;
|
48012
48034
|
flex-grow: 1;
|
48013
48035
|
outline: none;
|
48014
48036
|
background: transparent;
|
@@ -48487,8 +48509,7 @@ readers do not read off random characters that represent icons */
|
|
48487
48509
|
.amis-scope .cxd-Transfer-select > .cxd-ChainedSelection .cxd-ChainedSelection-col {
|
48488
48510
|
height: 100%;
|
48489
48511
|
overflow: auto;
|
48490
|
-
min-width:
|
48491
|
-
flex: 1 1 0;
|
48512
|
+
min-width: 8.125rem;
|
48492
48513
|
}
|
48493
48514
|
|
48494
48515
|
.amis-scope .cxd-Transfer .cxd--ResultTreeList {
|
@@ -48985,7 +49006,7 @@ readers do not read off random characters that represent icons */
|
|
48985
49006
|
}
|
48986
49007
|
|
48987
49008
|
.amis-scope .cxd-IconPickerControl-input input {
|
48988
|
-
flex-basis:
|
49009
|
+
flex-basis: 1.875rem;
|
48989
49010
|
flex-grow: 1;
|
48990
49011
|
outline: none;
|
48991
49012
|
background: transparent;
|
@@ -54242,15 +54263,10 @@ readers do not read off random characters that represent icons */
|
|
54242
54263
|
}
|
54243
54264
|
|
54244
54265
|
.amis-scope .cxd-Transfer-title {
|
54245
|
-
|
54246
|
-
|
54247
|
-
padding-left:
|
54248
|
-
padding-right:
|
54249
|
-
}
|
54250
|
-
|
54251
|
-
.amis-scope .cxd-Transfer-title--light {
|
54252
|
-
height: 2.5rem;
|
54253
|
-
flex: 0 0 2.5rem;
|
54266
|
+
flex: 0 0 2.375rem;
|
54267
|
+
height: 2.375rem;
|
54268
|
+
padding-left: var(--gap-base);
|
54269
|
+
padding-right: var(--gap-base);
|
54254
54270
|
}
|
54255
54271
|
|
54256
54272
|
.amis-scope .cxd-Transfer-result > .cxd-Selections {
|
package/sdk/dark-ie11.css
CHANGED
@@ -38230,7 +38230,7 @@ readers do not read off random characters that represent icons */
|
|
38230
38230
|
}
|
38231
38231
|
|
38232
38232
|
.amis-scope .dark-InputBox input {
|
38233
|
-
flex-basis:
|
38233
|
+
flex-basis: 1.875rem;
|
38234
38234
|
flex-grow: 1;
|
38235
38235
|
outline: none;
|
38236
38236
|
background: transparent;
|
@@ -38627,7 +38627,7 @@ readers do not read off random characters that represent icons */
|
|
38627
38627
|
}
|
38628
38628
|
|
38629
38629
|
.amis-scope .dark-ResultBox input {
|
38630
|
-
flex-basis:
|
38630
|
+
flex-basis: 1.875rem;
|
38631
38631
|
flex-grow: 1;
|
38632
38632
|
outline: none;
|
38633
38633
|
background: transparent;
|
@@ -40342,7 +40342,7 @@ readers do not read off random characters that represent icons */
|
|
40342
40342
|
}
|
40343
40343
|
|
40344
40344
|
.amis-scope .dark-TextControl-input input {
|
40345
|
-
flex-basis:
|
40345
|
+
flex-basis: 1.875rem;
|
40346
40346
|
flex-grow: 1;
|
40347
40347
|
outline: none;
|
40348
40348
|
background: transparent;
|
@@ -40739,7 +40739,7 @@ readers do not read off random characters that represent icons */
|
|
40739
40739
|
}
|
40740
40740
|
|
40741
40741
|
.amis-scope .dark-TextareaControl-input input {
|
40742
|
-
flex-basis:
|
40742
|
+
flex-basis: 1.875rem;
|
40743
40743
|
flex-grow: 1;
|
40744
40744
|
outline: none;
|
40745
40745
|
background: transparent;
|
@@ -42274,6 +42274,10 @@ readers do not read off random characters that represent icons */
|
|
42274
42274
|
box-shadow: none;
|
42275
42275
|
}
|
42276
42276
|
|
42277
|
+
.amis-scope .dark-Select .dark-PopOver.dark-Select-popover .dark-Select-menu {
|
42278
|
+
overflow-x: hidden;
|
42279
|
+
}
|
42280
|
+
|
42277
42281
|
.amis-scope .dark-Select .dark-PopOver.dark-Select-popover .dark-Select-menu .dark-Select-option {
|
42278
42282
|
height: 2rem;
|
42279
42283
|
line-height: 1.375rem;
|
@@ -42535,6 +42539,16 @@ readers do not read off random characters that represent icons */
|
|
42535
42539
|
display: block;
|
42536
42540
|
}
|
42537
42541
|
|
42542
|
+
.amis-scope .dark-Select-option .dark-Select-option-content,
|
42543
|
+
.amis-scope .dark-Select-option .dark-Select-option-content > span > div {
|
42544
|
+
flex: auto;
|
42545
|
+
overflow: hidden;
|
42546
|
+
white-space: nowrap;
|
42547
|
+
text-overflow: ellipsis;
|
42548
|
+
display: inline-block;
|
42549
|
+
max-width: 100%;
|
42550
|
+
}
|
42551
|
+
|
42538
42552
|
.amis-scope .dark-Select-noResult {
|
42539
42553
|
color: white;
|
42540
42554
|
line-height: 1.4285714286;
|
@@ -43351,6 +43365,20 @@ readers do not read off random characters that represent icons */
|
|
43351
43365
|
display: flex;
|
43352
43366
|
}
|
43353
43367
|
|
43368
|
+
.amis-scope .dark-DateControl.is-date > .dark-DatePicker {
|
43369
|
+
min-width: calc(calc(
|
43370
|
+
1rem * 5 + 0.75rem * 2 +
|
43371
|
+
0.875rem * 2
|
43372
|
+
) + 1rem * 2);
|
43373
|
+
}
|
43374
|
+
|
43375
|
+
.amis-scope .dark-DateControl.is-datetime > .dark-DatePicker {
|
43376
|
+
min-width: calc(calc(
|
43377
|
+
1rem * 5 + 0.75rem * 2 +
|
43378
|
+
0.875rem * 2
|
43379
|
+
) + 1rem * 6);
|
43380
|
+
}
|
43381
|
+
|
43354
43382
|
.amis-scope .dark-DatePicker-shortcuts {
|
43355
43383
|
margin: 0;
|
43356
43384
|
padding-left: 0.625rem;
|
@@ -45598,7 +45626,7 @@ readers do not read off random characters that represent icons */
|
|
45598
45626
|
}
|
45599
45627
|
|
45600
45628
|
.amis-scope .dark-TreeSelect-input input {
|
45601
|
-
flex-basis:
|
45629
|
+
flex-basis: 1.875rem;
|
45602
45630
|
flex-grow: 1;
|
45603
45631
|
outline: none;
|
45604
45632
|
background: transparent;
|
@@ -46246,7 +46274,7 @@ readers do not read off random characters that represent icons */
|
|
46246
46274
|
}
|
46247
46275
|
|
46248
46276
|
.amis-scope .dark-Picker-input input {
|
46249
|
-
flex-basis:
|
46277
|
+
flex-basis: 1.875rem;
|
46250
46278
|
flex-grow: 1;
|
46251
46279
|
outline: none;
|
46252
46280
|
background: transparent;
|
@@ -46733,8 +46761,7 @@ readers do not read off random characters that represent icons */
|
|
46733
46761
|
.amis-scope .dark-Transfer-select > .dark-ChainedSelection .dark-ChainedSelection-col {
|
46734
46762
|
height: 100%;
|
46735
46763
|
overflow: auto;
|
46736
|
-
min-width:
|
46737
|
-
flex: 1 1 0;
|
46764
|
+
min-width: 8.125rem;
|
46738
46765
|
}
|
46739
46766
|
|
46740
46767
|
.amis-scope .dark-Transfer .dark--ResultTreeList {
|
@@ -47236,7 +47263,7 @@ readers do not read off random characters that represent icons */
|
|
47236
47263
|
}
|
47237
47264
|
|
47238
47265
|
.amis-scope .dark-IconPickerControl-input input {
|
47239
|
-
flex-basis:
|
47266
|
+
flex-basis: 1.875rem;
|
47240
47267
|
flex-grow: 1;
|
47241
47268
|
outline: none;
|
47242
47269
|
background: transparent;
|
package/sdk/dark.css
CHANGED
@@ -39746,7 +39746,7 @@ readers do not read off random characters that represent icons */
|
|
39746
39746
|
}
|
39747
39747
|
|
39748
39748
|
.amis-scope .dark-InputBox input {
|
39749
|
-
flex-basis:
|
39749
|
+
flex-basis: 1.875rem;
|
39750
39750
|
flex-grow: 1;
|
39751
39751
|
outline: none;
|
39752
39752
|
background: transparent;
|
@@ -40133,7 +40133,7 @@ readers do not read off random characters that represent icons */
|
|
40133
40133
|
}
|
40134
40134
|
|
40135
40135
|
.amis-scope .dark-ResultBox input {
|
40136
|
-
flex-basis:
|
40136
|
+
flex-basis: 1.875rem;
|
40137
40137
|
flex-grow: 1;
|
40138
40138
|
outline: none;
|
40139
40139
|
background: transparent;
|
@@ -41832,7 +41832,7 @@ readers do not read off random characters that represent icons */
|
|
41832
41832
|
}
|
41833
41833
|
|
41834
41834
|
.amis-scope .dark-TextControl-input input {
|
41835
|
-
flex-basis:
|
41835
|
+
flex-basis: 1.875rem;
|
41836
41836
|
flex-grow: 1;
|
41837
41837
|
outline: none;
|
41838
41838
|
background: transparent;
|
@@ -42214,7 +42214,7 @@ readers do not read off random characters that represent icons */
|
|
42214
42214
|
}
|
42215
42215
|
|
42216
42216
|
.amis-scope .dark-TextareaControl-input input {
|
42217
|
-
flex-basis:
|
42217
|
+
flex-basis: 1.875rem;
|
42218
42218
|
flex-grow: 1;
|
42219
42219
|
outline: none;
|
42220
42220
|
background: transparent;
|
@@ -43719,6 +43719,10 @@ readers do not read off random characters that represent icons */
|
|
43719
43719
|
box-shadow: var(--Form-select-onFocus-boxShadow);
|
43720
43720
|
}
|
43721
43721
|
|
43722
|
+
.amis-scope .dark-Select .dark-PopOver.dark-Select-popover .dark-Select-menu {
|
43723
|
+
overflow-x: hidden;
|
43724
|
+
}
|
43725
|
+
|
43722
43726
|
.amis-scope .dark-Select .dark-PopOver.dark-Select-popover .dark-Select-menu .dark-Select-option {
|
43723
43727
|
height: 2rem;
|
43724
43728
|
line-height: 1.375rem;
|
@@ -43980,6 +43984,16 @@ readers do not read off random characters that represent icons */
|
|
43980
43984
|
display: block;
|
43981
43985
|
}
|
43982
43986
|
|
43987
|
+
.amis-scope .dark-Select-option .dark-Select-option-content,
|
43988
|
+
.amis-scope .dark-Select-option .dark-Select-option-content > span > div {
|
43989
|
+
flex: auto;
|
43990
|
+
overflow: hidden;
|
43991
|
+
white-space: nowrap;
|
43992
|
+
text-overflow: ellipsis;
|
43993
|
+
display: inline-block;
|
43994
|
+
max-width: 100%;
|
43995
|
+
}
|
43996
|
+
|
43983
43997
|
.amis-scope .dark-Select-noResult {
|
43984
43998
|
color: var(--Form-select-placeholderColor);
|
43985
43999
|
line-height: var(--Form-input-lineHeight);
|
@@ -44778,6 +44792,14 @@ readers do not read off random characters that represent icons */
|
|
44778
44792
|
display: flex;
|
44779
44793
|
}
|
44780
44794
|
|
44795
|
+
.amis-scope .dark-DateControl.is-date > .dark-DatePicker {
|
44796
|
+
min-width: calc(var(--DatePicker-minWidth) + var(--fontSizeLg) * 2);
|
44797
|
+
}
|
44798
|
+
|
44799
|
+
.amis-scope .dark-DateControl.is-datetime > .dark-DatePicker {
|
44800
|
+
min-width: calc(var(--DatePicker-minWidth) + var(--fontSizeLg) * 6);
|
44801
|
+
}
|
44802
|
+
|
44781
44803
|
.amis-scope .dark-DatePicker-shortcuts {
|
44782
44804
|
margin: 0;
|
44783
44805
|
padding-left: 0.625rem;
|
@@ -46983,7 +47005,7 @@ readers do not read off random characters that represent icons */
|
|
46983
47005
|
}
|
46984
47006
|
|
46985
47007
|
.amis-scope .dark-TreeSelect-input input {
|
46986
|
-
flex-basis:
|
47008
|
+
flex-basis: 1.875rem;
|
46987
47009
|
flex-grow: 1;
|
46988
47010
|
outline: none;
|
46989
47011
|
background: transparent;
|
@@ -47599,7 +47621,7 @@ readers do not read off random characters that represent icons */
|
|
47599
47621
|
}
|
47600
47622
|
|
47601
47623
|
.amis-scope .dark-Picker-input input {
|
47602
|
-
flex-basis:
|
47624
|
+
flex-basis: 1.875rem;
|
47603
47625
|
flex-grow: 1;
|
47604
47626
|
outline: none;
|
47605
47627
|
background: transparent;
|
@@ -48078,8 +48100,7 @@ readers do not read off random characters that represent icons */
|
|
48078
48100
|
.amis-scope .dark-Transfer-select > .dark-ChainedSelection .dark-ChainedSelection-col {
|
48079
48101
|
height: 100%;
|
48080
48102
|
overflow: auto;
|
48081
|
-
min-width:
|
48082
|
-
flex: 1 1 0;
|
48103
|
+
min-width: 8.125rem;
|
48083
48104
|
}
|
48084
48105
|
|
48085
48106
|
.amis-scope .dark-Transfer .dark--ResultTreeList {
|
@@ -48576,7 +48597,7 @@ readers do not read off random characters that represent icons */
|
|
48576
48597
|
}
|
48577
48598
|
|
48578
48599
|
.amis-scope .dark-IconPickerControl-input input {
|
48579
|
-
flex-basis:
|
48600
|
+
flex-basis: 1.875rem;
|
48580
48601
|
flex-grow: 1;
|
48581
48602
|
outline: none;
|
48582
48603
|
background: transparent;
|
package/sdk/exceljs.js
CHANGED