@ikas/core 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/rich-text-editor/image-modal/index.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +25 -24
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +275 -235
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +2 -83
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +28 -277
- package/dist/index120.js +2 -2
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +239 -30
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +83 -2
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +1 -1
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +77 -6
- package/dist/index154.cjs +1 -3
- package/dist/index154.js +6 -146
- package/dist/index155.cjs +3 -1
- package/dist/index155.js +144 -29
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +28 -141
- package/dist/index157.cjs +1 -15
- package/dist/index157.js +114 -107
- package/dist/index158.cjs +15 -1
- package/dist/index158.js +136 -86
- package/dist/index159.cjs +1 -11
- package/dist/index159.js +86 -147
- package/dist/index160.cjs +11 -1
- package/dist/index160.js +137 -72
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +79 -46
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +47 -21
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +24 -5
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +5 -6
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -44
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +42 -48
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +50 -9
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +9 -19
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +19 -58
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +52 -280
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +284 -17
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +10 -9
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +14 -60
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +53 -102
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +101 -30
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +37 -19
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +19 -162
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +163 -19
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +19 -53
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +51 -27
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +25 -43
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +35 -117
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +115 -63
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +73 -72
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +76 -15
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +14 -28
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +28 -26
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +13 -13
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +27 -171
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +174 -51
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +50 -75
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +26 -14
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +2 -2
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +27 -7
- package/dist/index198.cjs +1 -2
- package/dist/index198.js +29 -324
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +113 -47
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +56 -23
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +60 -2
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +14 -25
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +14 -31
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +2 -116
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +7 -59
- package/dist/index206.cjs +2 -1
- package/dist/index206.js +323 -56
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +48 -15
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +5 -17
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +8 -12
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -6
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +17 -8
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +11 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +9 -2
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +4 -40
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +5 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +39 -4
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -19
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +4 -82
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +19 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +83 -5
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +2 -2
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +9 -15
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +14 -5
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +3 -2
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +7 -28
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +3 -6
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +5 -4
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +15 -6
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +5 -10
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +3 -10
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +28 -14
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +6 -3
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +4 -7
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +7 -4
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +10 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +39 -3
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +2 -6
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +3 -7
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +6 -5
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +6 -38
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +5 -2
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +5 -17
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +4 -4
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +5 -4
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +12 -3
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +9 -3
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +4 -14
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +26 -9
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +9 -3
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +4 -9
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +5 -6
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +5 -5
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +5 -6
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +9 -6
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +5 -8
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +7 -5
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +6 -4
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +6 -9
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +17 -13
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +5 -5
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +4 -5
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +3 -17
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +3 -12
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +14 -12
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +10 -4
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +3 -5
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +10 -5
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +6 -12
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +5 -4
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +6 -26
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +6 -9
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +8 -6
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +5 -5
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +4 -6
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +13 -5
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +5 -10
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +5 -4
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +17 -7
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +12 -5
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +11 -5
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +4 -6
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +5 -4
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +2 -7
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +6 -7
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -3
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +3 -38
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +39 -2
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +2 -2
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +6 -5
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +29 -14
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +9 -3
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +2 -4
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +16 -6
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +5 -3
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +5 -9
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +5 -3
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +4 -9
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +9 -11
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +6 -9
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +4 -3
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +5 -9
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +4 -6
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +15 -2
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +9 -6
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +14 -4
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +12 -18
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +13 -5
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +5 -7
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +14 -13
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +3 -12
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +6 -13
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +3 -6
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +9 -29
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +5 -8
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +9 -4
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +10 -15
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +1 -1
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +12 -3
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +37 -5
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +42 -7
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +33 -6
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +26 -8
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +7 -10
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +7 -5
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +6 -4
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +10 -4
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +5 -5
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +4 -5
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +4 -11
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +5 -7
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +5 -37
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +3 -43
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +5 -33
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +8 -26
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +10 -13
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +5 -2
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +2 -16
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +6 -5
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +6 -2
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +6 -10
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +4 -7
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +4 -4
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +4 -7
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +4 -7
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +14 -6
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +3 -4
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +8 -4
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +5 -4
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +18 -4
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +5 -14
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +14 -8
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +3 -4
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +5 -7
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +8 -5
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +4 -4
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +3 -4
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +4 -10
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +4 -6
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +10 -6
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +6 -4
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +6 -3
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +8 -6
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +16 -8
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +4 -8
- package/dist/index388.cjs +1 -1
- package/dist/index388.js +8 -15
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +6 -3
- package/dist/index390.cjs +1 -1
- package/dist/index390.js +8 -3
- package/dist/index391.cjs +1 -1
- package/dist/index391.js +3 -5
- package/dist/index392.cjs +1 -1
- package/dist/index392.js +3 -8
- package/dist/index393.cjs +1 -1
- package/dist/index393.js +15 -3
- package/dist/index394.cjs +1 -1
- package/dist/index394.js +3 -16
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +2 -2
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +6 -6
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +11 -11
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +9 -9
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -14
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -12
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -8
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -9
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +10 -10
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +14 -14
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +10 -10
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +11 -11
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +10 -10
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +12 -12
- package/package.json +1 -1
package/dist/index108.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var d=(
|
|
1
|
+
"use strict";var u=Object.defineProperty;var d=(n,s,e)=>s in n?u(n,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[s]=e;var c=(n,s,e)=>d(n,typeof s!="symbol"?s+"":s,e);const p=require("react/jsx-runtime"),b=require("react"),C=require("mobx-react"),a=require("mobx"),I=require("@ikas/ui"),f=require("./index40.cjs"),g=require("./index5.cjs");var x=Object.defineProperty,v=Object.getOwnPropertyDescriptor,l=(n,s,e,t)=>{for(var o=t>1?void 0:t?v(s,e):s,m=n.length-1,r;m>=0;m--)(r=n[m])&&(o=(t?r(s,e,o):r(o))||o);return t&&o&&x(s,e,o),o};let i=class extends b.Component{constructor(e){super(e);c(this,"image",null);c(this,"isUploading",!1);a.makeObservable(this)}onClose(){this.image=null,this.props.onClose()}insertImage(){var t;const{summernoteObj:e}=this.props;try{e.summernote("editor.focus"),e.summernote("editor.saveRange"),e.summernote("editor.restoreRange"),e.summernote("editor.insertImage",(t=this.image)==null?void 0:t.src),this.onClose()}catch(o){e.summernote("editor.restoreRange"),console.log("image insert error",o)}}async onImageChange(e){const{onImageUpload:t}=this.props;if(this.isUploading=!0,e.length){const o=e[0];if(!!o.file||!!o.base64||!o.src){const r=await t(o);if(r){const h={src:r};this.image=h}else this.image=null}else this.image=null}else this.image=null;this.isUploading=!1}render(){var t,o;const{open:e}=this.props;return p.jsx(I.Modal,{open:e,onCancel:this.onClose,onOk:this.insertImage,okText:g.coreTranslations.richText.addImage,cancelText:g.coreTranslations.common.actions.cancel,title:g.coreTranslations.richText.image,okButtonProps:{disabled:!((o=(t=this.image)==null?void 0:t.src)!=null&&o.length)||this.isUploading},children:p.jsx(f.ImageSelect,{images:this.image?[this.image]:[],imageLimit:1,onChange:this.onImageChange})})}};l([a.observable],i.prototype,"image",2);l([a.observable],i.prototype,"isUploading",2);l([a.action.bound],i.prototype,"onClose",1);l([a.action.bound],i.prototype,"insertImage",1);l([a.action.bound],i.prototype,"onImageChange",1);i=l([C.observer],i);const U=i;module.exports=U;
|
package/dist/index108.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var u = (s, e, o) => e in s ? d(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
3
|
var l = (s, e, o) => u(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
5
5
|
import f from "react";
|
|
6
6
|
import { observer as b } from "mobx-react";
|
|
7
|
-
import { makeObservable as C, action as
|
|
7
|
+
import { makeObservable as C, action as g, observable as h } from "mobx";
|
|
8
8
|
import { Modal as I } from "@ikas/ui";
|
|
9
9
|
import { ImageSelect as v } from "./index40.js";
|
|
10
|
-
import { coreTranslations as
|
|
11
|
-
var U = Object.defineProperty, _ = Object.getOwnPropertyDescriptor,
|
|
12
|
-
for (var r = t > 1 ? void 0 : t ? _(e, o) : e,
|
|
13
|
-
(m = s[
|
|
10
|
+
import { coreTranslations as p } from "./index5.js";
|
|
11
|
+
var U = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (s, e, o, t) => {
|
|
12
|
+
for (var r = t > 1 ? void 0 : t ? _(e, o) : e, n = s.length - 1, m; n >= 0; n--)
|
|
13
|
+
(m = s[n]) && (r = (t ? m(e, o, r) : m(r)) || r);
|
|
14
14
|
return t && r && U(e, o, r), r;
|
|
15
15
|
};
|
|
16
16
|
let i = class extends f.Component {
|
|
@@ -37,10 +37,10 @@ let i = class extends f.Component {
|
|
|
37
37
|
if (this.isUploading = !0, e.length) {
|
|
38
38
|
const t = e[0];
|
|
39
39
|
if (!!t.file || !!t.base64 || !t.src) {
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
40
|
+
const n = await o(t);
|
|
41
|
+
if (n) {
|
|
42
42
|
const m = {
|
|
43
|
-
src:
|
|
43
|
+
src: n
|
|
44
44
|
};
|
|
45
45
|
this.image = m;
|
|
46
46
|
} else
|
|
@@ -54,18 +54,19 @@ let i = class extends f.Component {
|
|
|
54
54
|
render() {
|
|
55
55
|
var o, t;
|
|
56
56
|
const { open: e } = this.props;
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ c(
|
|
58
58
|
I,
|
|
59
59
|
{
|
|
60
60
|
open: e,
|
|
61
61
|
onCancel: this.onClose,
|
|
62
62
|
onOk: this.insertImage,
|
|
63
|
-
okText:
|
|
64
|
-
|
|
63
|
+
okText: p.richText.addImage,
|
|
64
|
+
cancelText: p.common.actions.cancel,
|
|
65
|
+
title: p.richText.image,
|
|
65
66
|
okButtonProps: {
|
|
66
67
|
disabled: !((t = (o = this.image) == null ? void 0 : o.src) != null && t.length) || this.isUploading
|
|
67
68
|
},
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ c(
|
|
69
70
|
v,
|
|
70
71
|
{
|
|
71
72
|
images: this.image ? [this.image] : [],
|
|
@@ -77,22 +78,22 @@ let i = class extends f.Component {
|
|
|
77
78
|
);
|
|
78
79
|
}
|
|
79
80
|
};
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
a([
|
|
82
|
+
h
|
|
82
83
|
], i.prototype, "image", 2);
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
a([
|
|
85
|
+
h
|
|
85
86
|
], i.prototype, "isUploading", 2);
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
a([
|
|
88
|
+
g.bound
|
|
88
89
|
], i.prototype, "onClose", 1);
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
a([
|
|
91
|
+
g.bound
|
|
91
92
|
], i.prototype, "insertImage", 1);
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
a([
|
|
94
|
+
g.bound
|
|
94
95
|
], i.prototype, "onImageChange", 1);
|
|
95
|
-
i =
|
|
96
|
+
i = a([
|
|
96
97
|
b
|
|
97
98
|
], i);
|
|
98
99
|
const M = i;
|
package/dist/index117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index118.cjs");var G=C.__module.exports,V;function K(){return V||(V=1,(function(P,X){(function(A,k){P.exports=k()})(G,(function(){var A=1e3,k=6e4,U=36e5,I="millisecond",p="second",_="minute",w="hour",M="day",H="week",m="month",F="quarter",y="year",O="date",J="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var n=["th","st","nd","rd"],t=i%100;return"["+i+(n[(t-20)%10]||n[t]||n[0])+"]"}},q=function(i,n,t){var r=String(i);return!r||r.length>=n?i:""+Array(n+1-r.length).join(t)+i},R={s:q,z:function(i){var n=-i.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+q(r,2,"0")+":"+q(e,2,"0")},m:function i(n,t){if(n.date()<t.date())return-i(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),s=t-e<0,u=n.clone().add(r+(s?-1:1),m);return+(-(r+(t-e)/(s?e-u:u-e))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:m,y,w:H,d:M,D:O,h:w,m:_,s:p,ms:I,Q:F}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},x="en",D={};D[x]=Q;var Z="$isDayjsObject",N=function(i){return i instanceof L||!(!i||!i[Z])},j=function i(n,t,r){var e;if(!n)return x;if(typeof n=="string"){var s=n.toLowerCase();D[s]&&(e=s),t&&(D[s]=t,e=s);var u=n.split("-");if(!e&&u.length>1)return i(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(i,n){if(N(i))return i.clone();var t=typeof n=="object"?n:{};return t.date=i,t.args=arguments,new L(t)},a=R;a.l=j,a.i=N,a.w=function(i,n){return f(i,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=(function(){function i(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=i.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,s=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return s?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,s=!!a.u(r)||r,u=a.p(t),o=function(S,$){var v=a.w(e.$u?Date.UTC(e.$y,$,S):new Date(e.$y,$,S),e);return s?v:v.endOf(M)},c=function(S,$){return a.w(e.toDate()[S].apply(e.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,l=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case y:return s?o(1,0):o(31,11);case m:return s?o(1,d):o(0,d+1);case H:var g=this.$locale().weekStart||0,T=(h<g?h+7:h)-g;return o(s?l-T:l+(6-T),d);case M:case O:return c(b+"Hours",0);case w:return c(b+"Minutes",1);case _:return c(b+"Seconds",2);case p:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,s=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[y]=u+"FullYear",e[w]=u+"Hours",e[_]=u+"Minutes",e[p]=u+"Seconds",e[I]=u+"Milliseconds",e)[s],c=s===M?this.$D+(r-this.$W):r;if(s===m||s===y){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,s=this;t=Number(t);var u=a.p(r),o=function(d){var l=f(s);return a.w(l.date(l.date()+Math.round(d*t)),s)};if(u===m)return this.set(m,this.$M+t);if(u===y)return this.set(y,this.$y+t);if(u===M)return o(1);if(u===H)return o(7);var c=(e={},e[_]=k,e[w]=U,e[p]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var s=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,l=e.months,b=e.meridiem,g=function($,v,Y,W){return $&&($[v]||$(r,s))||Y[v].slice(0,W)},T=function($){return a.s(o%12||12,$,"0")},S=b||function($,v,Y){var W=$<12?"AM":"PM";return Y?W.toLowerCase():W};return s.replace(E,(function($,v){return v||(function(Y){switch(Y){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,l,3);case"MMMM":return g(l,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return S(o,c,!0);case"A":return S(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null})($)||u.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var s,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*k,d=this-c,l=function(){return a.m(u,c)};switch(o){case y:s=l()/12;break;case m:s=l();break;case F:s=l()/3;break;case H:s=(d-h)/6048e5;break;case M:s=(d-h)/864e5;break;case w:s=d/U;break;case _:s=d/k;break;case p:s=d/A;break;default:s=d}return e?s:a.a(s)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),s=j(t,r,!0);return s&&(e.$L=s),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},i})(),z=L.prototype;return f.prototype=z,[["$ms",I],["$s",p],["$m",_],["$H",w],["$W",M],["$M",m],["$y",y],["$D",O]].forEach((function(i){z[i[1]]=function(n){return this.$g(n,i[0],i[1])}})),f.extend=function(i,n){return i.$i||(i(n,L,f),i.$i=!0),f},f.locale=j,f.isDayjs=N,f.unix=function(i){return f(1e3*i)},f.en=D[x],f.Ls=D,f.p={},f}))})(C.__module)),C.__module.exports}exports.__require=K;
|