tor-univer-sheet 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -629,7 +629,8 @@ function be(e, r) {
629
629
  custom: {
630
630
  ...a.custom,
631
631
  ...v.custom
632
- }
632
+ },
633
+ v: v.v || ""
633
634
  } : o[t][n] = v;
634
635
  }
635
636
  }
@@ -1 +1 @@
1
- (function(t,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("@univerjs/presets"),require("@univerjs/core"),require("@univerjs/sheets"),require("@univerjs/ui"),require("@univerjs/ui-adapter-vue3"),require("@univerjs/preset-sheets-advanced"),require("@univerjs/presets/preset-sheets-conditional-formatting"),require("@univerjs/presets/preset-sheets-core"),require("@univerjs/presets/preset-sheets-data-validation"),require("@univerjs/presets/preset-sheets-drawing"),require("@univerjs/presets/preset-sheets-filter"),require("@univerjs/presets/preset-sheets-hyper-link"),require("@univerjs/preset-sheets-note"),require("@univerjs/preset-sheets-core/locales/zh-CN"),require("@univerjs/preset-sheets-advanced/locales/zh-CN"),require("@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN"),require("@univerjs/presets/preset-sheets-core/locales/zh-CN"),require("@univerjs/presets/preset-sheets-data-validation/locales/zh-CN"),require("@univerjs/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/presets/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/presets/preset-sheets-filter/locales/zh-CN"),require("@univerjs/presets/preset-sheets-hyper-link/locales/zh-CN"),require("@univerjs/preset-sheets-note/locales/zh-CN"),require("dayjs"),require("decimal.js")):typeof define=="function"&&define.amd?define(["exports","@univerjs/presets","@univerjs/core","@univerjs/sheets","@univerjs/ui","@univerjs/ui-adapter-vue3","@univerjs/preset-sheets-advanced","@univerjs/presets/preset-sheets-conditional-formatting","@univerjs/presets/preset-sheets-core","@univerjs/presets/preset-sheets-data-validation","@univerjs/presets/preset-sheets-drawing","@univerjs/presets/preset-sheets-filter","@univerjs/presets/preset-sheets-hyper-link","@univerjs/preset-sheets-note","@univerjs/preset-sheets-core/locales/zh-CN","@univerjs/preset-sheets-advanced/locales/zh-CN","@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN","@univerjs/presets/preset-sheets-core/locales/zh-CN","@univerjs/presets/preset-sheets-data-validation/locales/zh-CN","@univerjs/preset-sheets-drawing/locales/zh-CN","@univerjs/presets/preset-sheets-drawing/locales/zh-CN","@univerjs/presets/preset-sheets-filter/locales/zh-CN","@univerjs/presets/preset-sheets-hyper-link/locales/zh-CN","@univerjs/preset-sheets-note/locales/zh-CN","dayjs","decimal.js"],h):(t=typeof globalThis<"u"?globalThis:t||self,h(t.TorUniverSheet={},t.presets,t.core,t.sheets,t.ui,t.uiAdapterVue3,t.presetSheetsAdvanced,t.presetSheetsConditionalFormatting,t.presetSheetsCore,t.presetSheetsDataValidation,t.presetSheetsDrawing,t.presetSheetsFilter,t.presetSheetsHyperLink,t.presetSheetsNote,t.zhCN$9,t.zhCN,t.zhCN$3,t.zhCN$4,t.zhCN$5,t.zhCN$1,t.zhCN$6,t.zhCN$7,t.zhCN$8,t.zhCN$2,t.dayjs,t.Decimal))})(this,(function(t,h,X,ne,L,se,oe,ie,ae,ue,ce,le,fe,me,de,he,ye,ge,be,ve,pe,Ye,De,Ce,y,_){"use strict";const Pe=(e,n)=>{for(const s of n)e[s]=null},x=()=>{if(typeof crypto=="object"){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto.getRandomValues=="function"&&typeof Uint8Array=="function"){const s=r=>{const c=Number(r);return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)};return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s)}}let e=new Date().getTime(),n=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),(s==="x"?r:r&3|8).toString(16)})};function Me(e){return{...e?.workbookData,id:e?.id||x(),name:e?.name||"未命名",appVersion:e?.appVersion||"1.0.0"}}const Ne=Object.prototype.toString,ee=(e,n)=>Ne.call(e)===`[object ${n}]`,je=e=>typeof e<"u",we=e=>!je(e),Se=e=>e!==null&&ee(e,"Object"),F=e=>e==null||typeof e>"u"?!0:W(e)||ke(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:Se(e)?Object.keys(e).length===0:!1,Te=e=>e===null,Oe=e=>we(e)||Te(e),ke=e=>ee(e,"String"),W=e=>e&&Array.isArray(e);class Ie{value;constructor(n){this.value=new _(n)}add(n){return this.value=this.value.add(n||0),this}subtract(n){return this.value=this.value.sub(n||0),this}multiply(n){return this.value=this.value.mul(n||0),this}divide(n){const s=new _(n);if(s.isZero())throw new Error("除数是0");return this.value=this.value.div(s),this}toFixed(n,s){return this.value=new _(this.value.toFixed(n,s)),this}valueOf(){return this.value}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}}function U(e=0){return new Ie(e)}var te=(e=>(e.无="no",e.年="year",e.月="month",e.周="week",e.天="day",e.班组="shift",e.小时="hour",e.半小时="half_hour",e))(te||{}),re=(e=>(e.view="view",e.edit="edit",e))(re||{});async function Ue(e,n){if(!n)return Promise.reject("日期不能为空");switch(e){case"year":if(W(n))return Promise.resolve(n);const s=y(n);if(!s.isValid())return Promise.reject("无效的日期格式");const r=s.year(),c=`${r}-01`,o=`${r}-12`;return Promise.resolve([c,o]);case"month":if(W(n))return Promise.resolve(n);const g=y(n);if(!g.isValid())return Promise.reject("无效的日期格式");const j=g.startOf("month").format("YYYY-MM-DD"),a=g.endOf("month").format("YYYY-MM-DD");return Promise.resolve([j,a]);case"day":if(W(n))return Promise.resolve(n);const b=y(n);if(!b.isValid())return Promise.reject("无效的日期格式");const v=b.startOf("day").format("YYYY-MM-DD HH:mm:ss"),f=b.endOf("day").format("YYYY-MM-DD HH:mm:ss");return Promise.resolve([v,f]);default:return Promise.reject("不支持的周期类型")}}function H(e,n,s){return s?y(n).diff(y(e),s):0}function J(e,n,s){if(!s)throw new Error("日期类型不能为空");const r={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"HH:mm:ss"}[s];return y(e).subtract(n,s).format(r)}function k(e,n,s,r){const c="YYYY-MM-DD HH:mm:ss",o=E(e,n,s,r),g=y(o);if(n==="month"){const a=g.month();return a===0?[g.startOf("month").format(c),g.date(25).endOf("day").format(c)]:a===11?[g.subtract(1,"month").date(26).startOf("day").format(c),g.endOf("month").format(c)]:[g.subtract(1,"month").date(26).startOf("day").format(c),g.date(25).endOf("day").format(c)]}const j={year:"year",day:"day",hour:"hour"};return[g.startOf(j[n]).format(c),g.endOf(j[n]).format(c)]}function E(e,n,s,r){const c={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"YYYY-MM-DD HH:mm:ss"}[n];return y(e,c).add(s*r,n).format(c)}function P(e,n,s){return e[n]||(e[n]={}),e[n][s]||(e[n][s]={}),e[n][s]}async function ze(e){if(!e)throw new Error("cellData is required");const n=Object.entries(e).reduce((s,r)=>{const[c,o]=r;for(const[g,j]of Object.entries(o)){const{custom:a,v:b,t:v,s:f}=j;if(!a)continue;const{cellType:G}=a,l=!a.hasOwnProperty("writeBack")||F(a?.writeBack)?!0:a.writeBack;if(G==="indicator"){const z=P(s,c,g);z.custom={...a,required:F(a?.required)?!1:a?.required,defaultShift:F(a?.defaultShift)?!1:a?.defaultShift,forwardPush:F(a?.forwardPush)?!1:a?.forwardPush,forwardPushTimes:F(a?.useDefaultEndDate)?0:a?.forwardPushTimes,useDefaultEndDate:F(a?.useDefaultEndDate)?!1:a?.useDefaultEndDate,copyType:F(a?.copyType)?"":a?.copyType,writeBack:l},z.s=f,z.t=v,z.v=b||""}}return s},{});return!n||F(n)?Promise.reject(new Error("No data found")):Promise.resolve(n)}function Z(e,n){return e.replace(/\$\{([^}]+)\}/g,(s,r)=>{try{const c=Object.keys(n),o=Object.values(n);return new Function(...c,`return ${r};`)(...o)}catch(c){return console.error(`表达式执行失败: ${r}`,c),s}})}function qe({acc:e,params:n,initRowNum:s,initColNum:r,cellData:c}){const{rangeData:o,currentDay:g,extraArgs:j}=n,a=j?.teamData||{},{cycleType:b,timeIncrement:v,forwardPush:f,forwardPushTimes:G,copyType:l,copyInterval:z,defaultShift:Y,templateStr:I,useDefaultEndDate:Q}=c.custom;let M=0;switch(b){case"day":{let i="";if(f&&(i=J(o[0],G,"day")),!l){let m="";f?m=i:m=o[0];const u=P(e,s,r);u.v=I?Z(I,{businessDate:m,dayjs:y}):y(m).format("YYYY-MM-DD"),u.t=h.CellValueType.STRING,u.s="tor-time-cell-style";break}f?M=H(i,o[0],"day"):(M=H(o[0],o[1],"day"),console.log("copyNum",M));for(let m=0;m<=Math.abs(M===0?1:M);m++){const u=m*(z+1);let w="";f?w=E(i,"day",m,v):w=E(o[0],"day",m,v);const D=l==="right"?s:s+u,R=l==="right"?r+u:r,B=P(e,D,R);B.v=I?Z(I,{businessDate:w,dayjs:y}):y(w).format("YYYY-MM-DD"),B.t=h.CellValueType.STRING,B.s="tor-time-cell-style"}break}case"month":{if(!l){const[i,m]=k(o[1],"month",0,1),u=P(e,s,r);u.v=y(m).format("YYYY-MM"),u.t=h.CellValueType.STRING,u.s="tor-time-cell-style";break}M=H(o[0],o[1],"month");for(let i=0;i<=Math.abs(M===0?1:M);i++){const m=i*(z+1),u=l==="right"?s:s+m,w=l==="right"?r+m:r,D=P(e,u,w);D.v=E(o[0],"month",i,v),D.t=h.CellValueType.STRING,D.s="tor-time-cell-style"}break}case"year":{let i="";if(f&&(i=J(o[0],G||0,"year")),!l){const m=f?i:o[0],[u,w]=k(m,"year",0,1),D=P(e,s,r),[,R]=k(o[1],"month",0,1);D.v=I?Z(I,{startTime:u,endTime:w,rangeData:o,dayjs:y}):m,D.t=h.CellValueType.STRING,D.s="tor-time-cell-style";break}f?M=H(i,o[0],"year"):M=H(o[0],o[1],"year");for(let m=0;m<=Math.abs(M===0?1:M);m++){const u=m*(z+1),w=l==="right"?s:s+u,D=l==="right"?r+u:r,[R,B]=k(o[0],"year",m,v),S=P(e,w,D),O=E(o[0],"year",m,v);S.v=I?Z(I,{startTime:R,endTime:B,rangeData:o,dayjs:y}):O,S.t=h.CellValueType.STRING,S.s="tor-time-cell-style"}break}case"hour":{if(!l){const i=P(e,s,r);if(i.t=h.CellValueType.STRING,i.s="tor-time-cell-style",Y){i.v=y(o[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}i.v=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}M=H(o[0],o[1],"hour");for(let i=0;i<=Math.abs(M===0?1:M);i++){const m=i*(z+1),u=l==="right"?s:s+m,w=l==="right"?r+m:r,D=P(e,u,w);if(D.t=h.CellValueType.STRING,D.s="tor-time-cell-style",Y){const R=y(o[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");D.v=E(R,"hour",i,v);continue}D.v=E(y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),"hour",i,v)}break}case"shift":{if(!l){const i=P(e,s,r);i.t=h.CellValueType.STRING,i.s="tor-time-cell-style",i.v=I?Z(I,{rangeData:o,dayjs:y}):o[0];break}if(!a.length)throw new Error("没有获取到当班数据");for(let i=0;i<a.length;i++){const m=a[i],{startDatetime:u,endDatetime:w}=m,D=i*(z+1),R=l==="right"?s:U(s).add(D).toNumber(),B=l==="right"?U(r).add(D).toNumber():r,S=P(e,R,B);S.s="tor-time-cell-style",S.v=I?Z(I,{team:m}):u}break}}}async function He(e,n){if(!e)return Promise.reject("没有可用的单元格数据");const{extraArgs:s,rangeData:r}=n;if(!r.length)return Promise.reject("处理时间范围失败, rangeData不能为空");const c=s?.teamData||[],{periodicityTime:o}=n,g=n?.currentDay||y().format("YYYY-MM-DD"),j=(b,v,f)=>o?f!=="MACH_CYCLE"?[b,v]:parseInt(o.split(":")[0],10)<12?[y(b).format("YYYY-MM-DD")+" "+o,y(v).add(1,"day").format("YYYY-MM-DD")+" "+o]:[y(b).subtract(1,"day").format("YYYY-MM-DD")+" "+o,y(v).format("YYYY-MM-DD")+" "+o]:[b,v],a=Object.entries(e).reduce((b,v)=>{const[f,G]=v;for(const[l,z]of Object.entries(G)){const{custom:Y}=z;if(!Y)continue;const{cellType:I,cycleType:Q,timeIncrement:M,forwardPush:i,forwardPushTimes:m,copyType:u,copyInterval:w,defaultShift:D,useDefaultStartDate:R,useDefaultEndDate:B}=Y;if(I==="time"){qe({acc:b,params:n,initRowNum:Number(f),initColNum:Number(l),cellData:z});continue}const S={cycleType:Q,indicatorName:Y.indicatorName,indicatorCode:Y.indicatorCode,indicatorId:Y.indicatorId,indicatorDimensionName:Y.indicatorDimensionName,indicatorDimensionConfig:Y.indicatorDimensionConfig,required:Oe(Y?.required)??!1,cellType:Y.cellType,defaultShift:Y?.defaultShift||!1,writeBack:F(Y?.writeBack)?!0:Y.writeBack,dimensionJson:Y?.dimensionJson||"",unit:Y?.unit||"",innerSyncWay:Y?.innerSyncWay||"",outSyncConfigId:Y?.outSyncConfigId||"",innerSyncStatus:Y?.innerSyncStatus||""};let O=0;switch(Q){case"day":{let d="";if(i&&(d=J(r[0],m||0,"day")),!u){const p=i?d:r[0],[N,C]=j(...k(p,"day",0,1),Y?.innerSyncWay),T=P(b,f,l);T.s="tor-indicator-cell-style",T.custom={...S,startTime:N,endTime:C};break}i?O=H(d,r[0],"day"):O=H(r[0],r[1],"day");for(let p=0;p<=Math.abs(O===0?1:O);p++){const N=p*(w+1),C=i?d:r[0],[T,V]=j(...k(C,"day",p,M),Y?.innerSyncWay),q=u==="right"?f:U(f).add(N).toNumber(),$=u==="right"?U(l).add(N).toNumber():l,A=P(b,q,$);A.s="tor-indicator-cell-style",A.custom={...S,startTime:T,endTime:V}}break}case"month":{if(!u){const[d,p]=k(r[1],"month",0,1),N=P(b,f,l);N.s="tor-indicator-cell-style",N.custom={...S,startTime:d,endTime:p};break}O=H(r[0],r[1],"month");for(let d=0;d<=Math.abs(O===0?1:O);d++){const p=d*(w+1),N=u==="right"?f:U(f).add(p).toNumber(),C=u==="right"?U(l).add(p).toNumber():l,[T,V]=k(r[0],"month",d,M),q=P(b,N,C);q.s="tor-indicator-cell-style",q.custom={...S,startTime:T,endTime:V}}break}case"year":{let d="",p="",N="";if(i){d=J(r[0],m||0,"year");const C=y(r[1]).format("MM");p=y(`${d}-${C+1}`).format("YYYY-MM"),N=y(`${d}-${C+2}`).format("YYYY-MM")}if(!u){const C=i?d:r[0],[T,V]=k(C,"year",0,1),q=P(b,f,l);q.s="tor-indicator-cell-style";const[,$]=k(p,"month",0,1),[A]=k(N,"month",0,1);q.custom={...S,startTime:R?A:T,endTime:B?$:V};break}i?O=H(d,r[0],"year"):O=H(r[0],r[1],"year");for(let C=0;C<=Math.abs(O===0?1:O);C++){const T=C*(w+1),V=u==="right"?f:U(f).add(T).toNumber(),q=u==="right"?U(l).add(T).toNumber():l,[$,A]=k(r[0],"year",C,M),K=P(b,V,q);K.s="tor-indicator-cell-style",K.custom={...S,startTime:$,endTime:A}}break}case"hour":{if(!u){const d=D?r[0]:r[0]??g,[p,N]=k(d,"hour",1,1),C=P(b,f,l);C.s="tor-indicator-cell-style",C.custom={...S,startTime:p,endTime:N};break}O=H(r[0],r[1],"hour");for(let d=0;d<=Math.abs(O===0?1:O);d++){const p=d*(w+1),N=u==="right"?f:U(f).add(p).toNumber(),C=u==="right"?U(l).add(p).toNumber():l,T=P(b,N,C);if(T.s="tor-indicator-cell-style",D){const A=y(r[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[K,Be]=k(A,"hour",d,M);T.custom={...S,startTime:K,endTime:Be};continue}const V=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[q,$]=k(V,"hour",d,M);T.custom={...S,startTime:q,endTime:$}}break}case"shift":{if(!u){const[d,p]=r,N=P(b,f,l);N.s="tor-indicator-cell-style",N.custom={...S,startTime:d,endTime:p};break}if(!c.length)throw new Error("没有获取到当班数据");for(let d=0;d<c.length;d++){const p=c[d],{startDatetime:N,endDatetime:C}=p,T=d*(w+1),V=u==="right"?f:U(f).add(T).toNumber(),q=u==="right"?U(l).add(T).toNumber():l,$=P(b,V,q);$.s="tor-indicator-cell-style",$.custom={...S,startTime:N,endTime:C}}break}}}return b},{});return Promise.resolve(a)}function Ve(e){return Object.entries(e).reduce((s,[r,c])=>{const o=Math.max(...Object.keys(c).map(Number));return o>s?s=Number(o):s=Number(s)||0,s},0)}function Re(e,n){const s=JSON.parse(JSON.stringify(e||{}));for(const[r,c]of Object.entries(n)){s[r]||(s[r]={});for(const[o,g]of Object.entries(c)){const j=g,a=s[r]?.[o];a?s[r][o]={...a,...j,custom:{...a.custom,...j.custom}}:s[r][o]=j}}return s}function $e(e,n){if(!n?.length||!e)return e;const s={};for(const r in e){const c=e[r];for(const o in c){const g=c[o];if(g?.custom?.cellType==="indicator"){const j=Number(r),a=Number(o);if(n.some(v=>j>=v.startRow&&j<=v.endRow&&a>=v.startColumn&&a<=v.endColumn)&&!n.some(f=>j===f.startRow&&a===f.startColumn))continue}s[r]||(s[r]={}),s[r][o]=g}}return s}const Fe="./style.css";Object.defineProperty(t,"CommandType",{enumerable:!0,get:()=>h.CommandType}),Object.defineProperty(t,"FEventName",{enumerable:!0,get:()=>h.FEventName}),Object.defineProperty(t,"FUniver",{enumerable:!0,get:()=>h.FUniver}),Object.defineProperty(t,"ICommandService",{enumerable:!0,get:()=>h.ICommandService}),Object.defineProperty(t,"IUniverInstanceService",{enumerable:!0,get:()=>h.IUniverInstanceService}),Object.defineProperty(t,"Inject",{enumerable:!0,get:()=>h.Inject}),Object.defineProperty(t,"Injector",{enumerable:!0,get:()=>h.Injector}),Object.defineProperty(t,"LocaleType",{enumerable:!0,get:()=>h.LocaleType}),Object.defineProperty(t,"Plugin",{enumerable:!0,get:()=>h.Plugin}),Object.defineProperty(t,"Univer",{enumerable:!0,get:()=>h.Univer}),Object.defineProperty(t,"UniverInstanceType",{enumerable:!0,get:()=>h.UniverInstanceType}),Object.defineProperty(t,"Workbook",{enumerable:!0,get:()=>h.Workbook}),Object.defineProperty(t,"createUniver",{enumerable:!0,get:()=>h.createUniver}),Object.defineProperty(t,"defaultTheme",{enumerable:!0,get:()=>h.defaultTheme}),Object.defineProperty(t,"greenTheme",{enumerable:!0,get:()=>h.greenTheme}),Object.defineProperty(t,"merge",{enumerable:!0,get:()=>h.merge}),Object.defineProperty(t,"mergeLocales",{enumerable:!0,get:()=>h.mergeLocales}),Object.defineProperty(t,"touchDependencies",{enumerable:!0,get:()=>h.touchDependencies}),Object.defineProperty(t,"BaselineOffset",{enumerable:!0,get:()=>X.BaselineOffset}),Object.defineProperty(t,"CommandService",{enumerable:!0,get:()=>X.CommandService}),Object.defineProperty(t,"SetRangeValuesCommand",{enumerable:!0,get:()=>ne.SetRangeValuesCommand}),Object.defineProperty(t,"ComponentManager",{enumerable:!0,get:()=>L.ComponentManager}),Object.defineProperty(t,"ContextMenuGroup",{enumerable:!0,get:()=>L.ContextMenuGroup}),Object.defineProperty(t,"ContextMenuPosition",{enumerable:!0,get:()=>L.ContextMenuPosition}),Object.defineProperty(t,"IMenuManagerService",{enumerable:!0,get:()=>L.IMenuManagerService}),Object.defineProperty(t,"MenuItemType",{enumerable:!0,get:()=>L.MenuItemType}),Object.defineProperty(t,"RibbonStartGroup",{enumerable:!0,get:()=>L.RibbonStartGroup}),Object.defineProperty(t,"UniverVue3AdapterPlugin",{enumerable:!0,get:()=>se.UniverVue3AdapterPlugin}),Object.defineProperty(t,"UniverSheetsAdvancedPreset",{enumerable:!0,get:()=>oe.UniverSheetsAdvancedPreset}),Object.defineProperty(t,"UniverSheetsConditionalFormattingPreset",{enumerable:!0,get:()=>ie.UniverSheetsConditionalFormattingPreset}),Object.defineProperty(t,"UniverSheetsCorePreset",{enumerable:!0,get:()=>ae.UniverSheetsCorePreset}),Object.defineProperty(t,"UniverSheetsDataValidationPreset",{enumerable:!0,get:()=>ue.UniverSheetsDataValidationPreset}),Object.defineProperty(t,"UniverSheetsDrawingPreset",{enumerable:!0,get:()=>ce.UniverSheetsDrawingPreset}),Object.defineProperty(t,"UniverSheetsFilterPreset",{enumerable:!0,get:()=>le.UniverSheetsFilterPreset}),Object.defineProperty(t,"UniverSheetsHyperLinkPreset",{enumerable:!0,get:()=>fe.UniverSheetsHyperLinkPreset}),Object.defineProperty(t,"UniverSheetsNotePreset",{enumerable:!0,get:()=>me.UniverSheetsNotePreset}),t.zhCN=de,t.UniverPresetSheetsAdvancedZhCN=he,t.sheetsConditionalFormattingZhCN=ye,t.sheetsCoreZhCN=ge,t.sheetsDataValidationZhCN=be,t.UniverPresetSheetsDrawingZhCN=ve,t.sheetsDrawingZhCN=pe,t.sheetsFilterZhCN=Ye,t.sheetsHyperLinkZhCN=De,t.UniverPresetSheetsNoteZhCN=Ce,t.CycleTypeEnum=te,t.ModeEnum=re,t.decimal=U,t.filterIndicatorsCell=ze,t.filterMergedIndicatorCells=$e,t.generateIndicatorsCells=He,t.generateUUID=x,t.getNumColumns=Ve,t.handleClearInput=Pe,t.initDateRange=Ue,t.mergeCellData=Re,t.stylePath=Fe,t.useData=Me,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(t,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("@univerjs/presets"),require("@univerjs/core"),require("@univerjs/sheets"),require("@univerjs/ui"),require("@univerjs/ui-adapter-vue3"),require("@univerjs/preset-sheets-advanced"),require("@univerjs/presets/preset-sheets-conditional-formatting"),require("@univerjs/presets/preset-sheets-core"),require("@univerjs/presets/preset-sheets-data-validation"),require("@univerjs/presets/preset-sheets-drawing"),require("@univerjs/presets/preset-sheets-filter"),require("@univerjs/presets/preset-sheets-hyper-link"),require("@univerjs/preset-sheets-note"),require("@univerjs/preset-sheets-core/locales/zh-CN"),require("@univerjs/preset-sheets-advanced/locales/zh-CN"),require("@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN"),require("@univerjs/presets/preset-sheets-core/locales/zh-CN"),require("@univerjs/presets/preset-sheets-data-validation/locales/zh-CN"),require("@univerjs/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/presets/preset-sheets-drawing/locales/zh-CN"),require("@univerjs/presets/preset-sheets-filter/locales/zh-CN"),require("@univerjs/presets/preset-sheets-hyper-link/locales/zh-CN"),require("@univerjs/preset-sheets-note/locales/zh-CN"),require("dayjs"),require("decimal.js")):typeof define=="function"&&define.amd?define(["exports","@univerjs/presets","@univerjs/core","@univerjs/sheets","@univerjs/ui","@univerjs/ui-adapter-vue3","@univerjs/preset-sheets-advanced","@univerjs/presets/preset-sheets-conditional-formatting","@univerjs/presets/preset-sheets-core","@univerjs/presets/preset-sheets-data-validation","@univerjs/presets/preset-sheets-drawing","@univerjs/presets/preset-sheets-filter","@univerjs/presets/preset-sheets-hyper-link","@univerjs/preset-sheets-note","@univerjs/preset-sheets-core/locales/zh-CN","@univerjs/preset-sheets-advanced/locales/zh-CN","@univerjs/presets/preset-sheets-conditional-formatting/locales/zh-CN","@univerjs/presets/preset-sheets-core/locales/zh-CN","@univerjs/presets/preset-sheets-data-validation/locales/zh-CN","@univerjs/preset-sheets-drawing/locales/zh-CN","@univerjs/presets/preset-sheets-drawing/locales/zh-CN","@univerjs/presets/preset-sheets-filter/locales/zh-CN","@univerjs/presets/preset-sheets-hyper-link/locales/zh-CN","@univerjs/preset-sheets-note/locales/zh-CN","dayjs","decimal.js"],h):(t=typeof globalThis<"u"?globalThis:t||self,h(t.TorUniverSheet={},t.presets,t.core,t.sheets,t.ui,t.uiAdapterVue3,t.presetSheetsAdvanced,t.presetSheetsConditionalFormatting,t.presetSheetsCore,t.presetSheetsDataValidation,t.presetSheetsDrawing,t.presetSheetsFilter,t.presetSheetsHyperLink,t.presetSheetsNote,t.zhCN$9,t.zhCN,t.zhCN$3,t.zhCN$4,t.zhCN$5,t.zhCN$1,t.zhCN$6,t.zhCN$7,t.zhCN$8,t.zhCN$2,t.dayjs,t.Decimal))})(this,(function(t,h,X,ne,L,se,oe,ie,ae,ue,ce,le,fe,me,de,he,ye,ge,ve,be,pe,Ye,De,Ce,y,_){"use strict";const Pe=(e,n)=>{for(const s of n)e[s]=null},x=()=>{if(typeof crypto=="object"){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();if(typeof crypto.getRandomValues=="function"&&typeof Uint8Array=="function"){const s=r=>{const c=Number(r);return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)};return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s)}}let e=new Date().getTime(),n=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),(s==="x"?r:r&3|8).toString(16)})};function Me(e){return{...e?.workbookData,id:e?.id||x(),name:e?.name||"未命名",appVersion:e?.appVersion||"1.0.0"}}const Ne=Object.prototype.toString,ee=(e,n)=>Ne.call(e)===`[object ${n}]`,je=e=>typeof e<"u",we=e=>!je(e),Se=e=>e!==null&&ee(e,"Object"),F=e=>e==null||typeof e>"u"?!0:W(e)||ke(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:Se(e)?Object.keys(e).length===0:!1,Te=e=>e===null,Oe=e=>we(e)||Te(e),ke=e=>ee(e,"String"),W=e=>e&&Array.isArray(e);class Ie{value;constructor(n){this.value=new _(n)}add(n){return this.value=this.value.add(n||0),this}subtract(n){return this.value=this.value.sub(n||0),this}multiply(n){return this.value=this.value.mul(n||0),this}divide(n){const s=new _(n);if(s.isZero())throw new Error("除数是0");return this.value=this.value.div(s),this}toFixed(n,s){return this.value=new _(this.value.toFixed(n,s)),this}valueOf(){return this.value}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}}function U(e=0){return new Ie(e)}var te=(e=>(e.无="no",e.年="year",e.月="month",e.周="week",e.天="day",e.班组="shift",e.小时="hour",e.半小时="half_hour",e))(te||{}),re=(e=>(e.view="view",e.edit="edit",e))(re||{});async function Ue(e,n){if(!n)return Promise.reject("日期不能为空");switch(e){case"year":if(W(n))return Promise.resolve(n);const s=y(n);if(!s.isValid())return Promise.reject("无效的日期格式");const r=s.year(),c=`${r}-01`,o=`${r}-12`;return Promise.resolve([c,o]);case"month":if(W(n))return Promise.resolve(n);const g=y(n);if(!g.isValid())return Promise.reject("无效的日期格式");const j=g.startOf("month").format("YYYY-MM-DD"),a=g.endOf("month").format("YYYY-MM-DD");return Promise.resolve([j,a]);case"day":if(W(n))return Promise.resolve(n);const v=y(n);if(!v.isValid())return Promise.reject("无效的日期格式");const b=v.startOf("day").format("YYYY-MM-DD HH:mm:ss"),f=v.endOf("day").format("YYYY-MM-DD HH:mm:ss");return Promise.resolve([b,f]);default:return Promise.reject("不支持的周期类型")}}function H(e,n,s){return s?y(n).diff(y(e),s):0}function J(e,n,s){if(!s)throw new Error("日期类型不能为空");const r={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"HH:mm:ss"}[s];return y(e).subtract(n,s).format(r)}function k(e,n,s,r){const c="YYYY-MM-DD HH:mm:ss",o=E(e,n,s,r),g=y(o);if(n==="month"){const a=g.month();return a===0?[g.startOf("month").format(c),g.date(25).endOf("day").format(c)]:a===11?[g.subtract(1,"month").date(26).startOf("day").format(c),g.endOf("month").format(c)]:[g.subtract(1,"month").date(26).startOf("day").format(c),g.date(25).endOf("day").format(c)]}const j={year:"year",day:"day",hour:"hour"};return[g.startOf(j[n]).format(c),g.endOf(j[n]).format(c)]}function E(e,n,s,r){const c={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD",hour:"YYYY-MM-DD HH:mm:ss"}[n];return y(e,c).add(s*r,n).format(c)}function P(e,n,s){return e[n]||(e[n]={}),e[n][s]||(e[n][s]={}),e[n][s]}async function ze(e){if(!e)throw new Error("cellData is required");const n=Object.entries(e).reduce((s,r)=>{const[c,o]=r;for(const[g,j]of Object.entries(o)){const{custom:a,v,t:b,s:f}=j;if(!a)continue;const{cellType:G}=a,l=!a.hasOwnProperty("writeBack")||F(a?.writeBack)?!0:a.writeBack;if(G==="indicator"){const z=P(s,c,g);z.custom={...a,required:F(a?.required)?!1:a?.required,defaultShift:F(a?.defaultShift)?!1:a?.defaultShift,forwardPush:F(a?.forwardPush)?!1:a?.forwardPush,forwardPushTimes:F(a?.useDefaultEndDate)?0:a?.forwardPushTimes,useDefaultEndDate:F(a?.useDefaultEndDate)?!1:a?.useDefaultEndDate,copyType:F(a?.copyType)?"":a?.copyType,writeBack:l},z.s=f,z.t=b,z.v=v||""}}return s},{});return!n||F(n)?Promise.reject(new Error("No data found")):Promise.resolve(n)}function Z(e,n){return e.replace(/\$\{([^}]+)\}/g,(s,r)=>{try{const c=Object.keys(n),o=Object.values(n);return new Function(...c,`return ${r};`)(...o)}catch(c){return console.error(`表达式执行失败: ${r}`,c),s}})}function qe({acc:e,params:n,initRowNum:s,initColNum:r,cellData:c}){const{rangeData:o,currentDay:g,extraArgs:j}=n,a=j?.teamData||{},{cycleType:v,timeIncrement:b,forwardPush:f,forwardPushTimes:G,copyType:l,copyInterval:z,defaultShift:Y,templateStr:I,useDefaultEndDate:Q}=c.custom;let M=0;switch(v){case"day":{let i="";if(f&&(i=J(o[0],G,"day")),!l){let m="";f?m=i:m=o[0];const u=P(e,s,r);u.v=I?Z(I,{businessDate:m,dayjs:y}):y(m).format("YYYY-MM-DD"),u.t=h.CellValueType.STRING,u.s="tor-time-cell-style";break}f?M=H(i,o[0],"day"):(M=H(o[0],o[1],"day"),console.log("copyNum",M));for(let m=0;m<=Math.abs(M===0?1:M);m++){const u=m*(z+1);let w="";f?w=E(i,"day",m,b):w=E(o[0],"day",m,b);const D=l==="right"?s:s+u,R=l==="right"?r+u:r,B=P(e,D,R);B.v=I?Z(I,{businessDate:w,dayjs:y}):y(w).format("YYYY-MM-DD"),B.t=h.CellValueType.STRING,B.s="tor-time-cell-style"}break}case"month":{if(!l){const[i,m]=k(o[1],"month",0,1),u=P(e,s,r);u.v=y(m).format("YYYY-MM"),u.t=h.CellValueType.STRING,u.s="tor-time-cell-style";break}M=H(o[0],o[1],"month");for(let i=0;i<=Math.abs(M===0?1:M);i++){const m=i*(z+1),u=l==="right"?s:s+m,w=l==="right"?r+m:r,D=P(e,u,w);D.v=E(o[0],"month",i,b),D.t=h.CellValueType.STRING,D.s="tor-time-cell-style"}break}case"year":{let i="";if(f&&(i=J(o[0],G||0,"year")),!l){const m=f?i:o[0],[u,w]=k(m,"year",0,1),D=P(e,s,r),[,R]=k(o[1],"month",0,1);D.v=I?Z(I,{startTime:u,endTime:w,rangeData:o,dayjs:y}):m,D.t=h.CellValueType.STRING,D.s="tor-time-cell-style";break}f?M=H(i,o[0],"year"):M=H(o[0],o[1],"year");for(let m=0;m<=Math.abs(M===0?1:M);m++){const u=m*(z+1),w=l==="right"?s:s+u,D=l==="right"?r+u:r,[R,B]=k(o[0],"year",m,b),S=P(e,w,D),O=E(o[0],"year",m,b);S.v=I?Z(I,{startTime:R,endTime:B,rangeData:o,dayjs:y}):O,S.t=h.CellValueType.STRING,S.s="tor-time-cell-style"}break}case"hour":{if(!l){const i=P(e,s,r);if(i.t=h.CellValueType.STRING,i.s="tor-time-cell-style",Y){i.v=y(o[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}i.v=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");break}M=H(o[0],o[1],"hour");for(let i=0;i<=Math.abs(M===0?1:M);i++){const m=i*(z+1),u=l==="right"?s:s+m,w=l==="right"?r+m:r,D=P(e,u,w);if(D.t=h.CellValueType.STRING,D.s="tor-time-cell-style",Y){const R=y(o[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss");D.v=E(R,"hour",i,b);continue}D.v=E(y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),"hour",i,b)}break}case"shift":{if(!l){const i=P(e,s,r);i.t=h.CellValueType.STRING,i.s="tor-time-cell-style",i.v=I?Z(I,{rangeData:o,dayjs:y}):o[0];break}if(!a.length)throw new Error("没有获取到当班数据");for(let i=0;i<a.length;i++){const m=a[i],{startDatetime:u,endDatetime:w}=m,D=i*(z+1),R=l==="right"?s:U(s).add(D).toNumber(),B=l==="right"?U(r).add(D).toNumber():r,S=P(e,R,B);S.s="tor-time-cell-style",S.v=I?Z(I,{team:m}):u}break}}}async function He(e,n){if(!e)return Promise.reject("没有可用的单元格数据");const{extraArgs:s,rangeData:r}=n;if(!r.length)return Promise.reject("处理时间范围失败, rangeData不能为空");const c=s?.teamData||[],{periodicityTime:o}=n,g=n?.currentDay||y().format("YYYY-MM-DD"),j=(v,b,f)=>o?f!=="MACH_CYCLE"?[v,b]:parseInt(o.split(":")[0],10)<12?[y(v).format("YYYY-MM-DD")+" "+o,y(b).add(1,"day").format("YYYY-MM-DD")+" "+o]:[y(v).subtract(1,"day").format("YYYY-MM-DD")+" "+o,y(b).format("YYYY-MM-DD")+" "+o]:[v,b],a=Object.entries(e).reduce((v,b)=>{const[f,G]=b;for(const[l,z]of Object.entries(G)){const{custom:Y}=z;if(!Y)continue;const{cellType:I,cycleType:Q,timeIncrement:M,forwardPush:i,forwardPushTimes:m,copyType:u,copyInterval:w,defaultShift:D,useDefaultStartDate:R,useDefaultEndDate:B}=Y;if(I==="time"){qe({acc:v,params:n,initRowNum:Number(f),initColNum:Number(l),cellData:z});continue}const S={cycleType:Q,indicatorName:Y.indicatorName,indicatorCode:Y.indicatorCode,indicatorId:Y.indicatorId,indicatorDimensionName:Y.indicatorDimensionName,indicatorDimensionConfig:Y.indicatorDimensionConfig,required:Oe(Y?.required)??!1,cellType:Y.cellType,defaultShift:Y?.defaultShift||!1,writeBack:F(Y?.writeBack)?!0:Y.writeBack,dimensionJson:Y?.dimensionJson||"",unit:Y?.unit||"",innerSyncWay:Y?.innerSyncWay||"",outSyncConfigId:Y?.outSyncConfigId||"",innerSyncStatus:Y?.innerSyncStatus||""};let O=0;switch(Q){case"day":{let d="";if(i&&(d=J(r[0],m||0,"day")),!u){const p=i?d:r[0],[N,C]=j(...k(p,"day",0,1),Y?.innerSyncWay),T=P(v,f,l);T.s="tor-indicator-cell-style",T.custom={...S,startTime:N,endTime:C};break}i?O=H(d,r[0],"day"):O=H(r[0],r[1],"day");for(let p=0;p<=Math.abs(O===0?1:O);p++){const N=p*(w+1),C=i?d:r[0],[T,V]=j(...k(C,"day",p,M),Y?.innerSyncWay),q=u==="right"?f:U(f).add(N).toNumber(),$=u==="right"?U(l).add(N).toNumber():l,A=P(v,q,$);A.s="tor-indicator-cell-style",A.custom={...S,startTime:T,endTime:V}}break}case"month":{if(!u){const[d,p]=k(r[1],"month",0,1),N=P(v,f,l);N.s="tor-indicator-cell-style",N.custom={...S,startTime:d,endTime:p};break}O=H(r[0],r[1],"month");for(let d=0;d<=Math.abs(O===0?1:O);d++){const p=d*(w+1),N=u==="right"?f:U(f).add(p).toNumber(),C=u==="right"?U(l).add(p).toNumber():l,[T,V]=k(r[0],"month",d,M),q=P(v,N,C);q.s="tor-indicator-cell-style",q.custom={...S,startTime:T,endTime:V}}break}case"year":{let d="",p="",N="";if(i){d=J(r[0],m||0,"year");const C=y(r[1]).format("MM");p=y(`${d}-${C+1}`).format("YYYY-MM"),N=y(`${d}-${C+2}`).format("YYYY-MM")}if(!u){const C=i?d:r[0],[T,V]=k(C,"year",0,1),q=P(v,f,l);q.s="tor-indicator-cell-style";const[,$]=k(p,"month",0,1),[A]=k(N,"month",0,1);q.custom={...S,startTime:R?A:T,endTime:B?$:V};break}i?O=H(d,r[0],"year"):O=H(r[0],r[1],"year");for(let C=0;C<=Math.abs(O===0?1:O);C++){const T=C*(w+1),V=u==="right"?f:U(f).add(T).toNumber(),q=u==="right"?U(l).add(T).toNumber():l,[$,A]=k(r[0],"year",C,M),K=P(v,V,q);K.s="tor-indicator-cell-style",K.custom={...S,startTime:$,endTime:A}}break}case"hour":{if(!u){const d=D?r[0]:r[0]??g,[p,N]=k(d,"hour",1,1),C=P(v,f,l);C.s="tor-indicator-cell-style",C.custom={...S,startTime:p,endTime:N};break}O=H(r[0],r[1],"hour");for(let d=0;d<=Math.abs(O===0?1:O);d++){const p=d*(w+1),N=u==="right"?f:U(f).add(p).toNumber(),C=u==="right"?U(l).add(p).toNumber():l,T=P(v,N,C);if(T.s="tor-indicator-cell-style",D){const A=y(r[0]).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[K,Be]=k(A,"hour",d,M);T.custom={...S,startTime:K,endTime:Be};continue}const V=y(g).add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),[q,$]=k(V,"hour",d,M);T.custom={...S,startTime:q,endTime:$}}break}case"shift":{if(!u){const[d,p]=r,N=P(v,f,l);N.s="tor-indicator-cell-style",N.custom={...S,startTime:d,endTime:p};break}if(!c.length)throw new Error("没有获取到当班数据");for(let d=0;d<c.length;d++){const p=c[d],{startDatetime:N,endDatetime:C}=p,T=d*(w+1),V=u==="right"?f:U(f).add(T).toNumber(),q=u==="right"?U(l).add(T).toNumber():l,$=P(v,V,q);$.s="tor-indicator-cell-style",$.custom={...S,startTime:N,endTime:C}}break}}}return v},{});return Promise.resolve(a)}function Ve(e){return Object.entries(e).reduce((s,[r,c])=>{const o=Math.max(...Object.keys(c).map(Number));return o>s?s=Number(o):s=Number(s)||0,s},0)}function Re(e,n){const s=JSON.parse(JSON.stringify(e||{}));for(const[r,c]of Object.entries(n)){s[r]||(s[r]={});for(const[o,g]of Object.entries(c)){const j=g,a=s[r]?.[o];a?s[r][o]={...a,...j,custom:{...a.custom,...j.custom},v:j.v||""}:s[r][o]=j}}return s}function $e(e,n){if(!n?.length||!e)return e;const s={};for(const r in e){const c=e[r];for(const o in c){const g=c[o];if(g?.custom?.cellType==="indicator"){const j=Number(r),a=Number(o);if(n.some(b=>j>=b.startRow&&j<=b.endRow&&a>=b.startColumn&&a<=b.endColumn)&&!n.some(f=>j===f.startRow&&a===f.startColumn))continue}s[r]||(s[r]={}),s[r][o]=g}}return s}const Fe="./style.css";Object.defineProperty(t,"CommandType",{enumerable:!0,get:()=>h.CommandType}),Object.defineProperty(t,"FEventName",{enumerable:!0,get:()=>h.FEventName}),Object.defineProperty(t,"FUniver",{enumerable:!0,get:()=>h.FUniver}),Object.defineProperty(t,"ICommandService",{enumerable:!0,get:()=>h.ICommandService}),Object.defineProperty(t,"IUniverInstanceService",{enumerable:!0,get:()=>h.IUniverInstanceService}),Object.defineProperty(t,"Inject",{enumerable:!0,get:()=>h.Inject}),Object.defineProperty(t,"Injector",{enumerable:!0,get:()=>h.Injector}),Object.defineProperty(t,"LocaleType",{enumerable:!0,get:()=>h.LocaleType}),Object.defineProperty(t,"Plugin",{enumerable:!0,get:()=>h.Plugin}),Object.defineProperty(t,"Univer",{enumerable:!0,get:()=>h.Univer}),Object.defineProperty(t,"UniverInstanceType",{enumerable:!0,get:()=>h.UniverInstanceType}),Object.defineProperty(t,"Workbook",{enumerable:!0,get:()=>h.Workbook}),Object.defineProperty(t,"createUniver",{enumerable:!0,get:()=>h.createUniver}),Object.defineProperty(t,"defaultTheme",{enumerable:!0,get:()=>h.defaultTheme}),Object.defineProperty(t,"greenTheme",{enumerable:!0,get:()=>h.greenTheme}),Object.defineProperty(t,"merge",{enumerable:!0,get:()=>h.merge}),Object.defineProperty(t,"mergeLocales",{enumerable:!0,get:()=>h.mergeLocales}),Object.defineProperty(t,"touchDependencies",{enumerable:!0,get:()=>h.touchDependencies}),Object.defineProperty(t,"BaselineOffset",{enumerable:!0,get:()=>X.BaselineOffset}),Object.defineProperty(t,"CommandService",{enumerable:!0,get:()=>X.CommandService}),Object.defineProperty(t,"SetRangeValuesCommand",{enumerable:!0,get:()=>ne.SetRangeValuesCommand}),Object.defineProperty(t,"ComponentManager",{enumerable:!0,get:()=>L.ComponentManager}),Object.defineProperty(t,"ContextMenuGroup",{enumerable:!0,get:()=>L.ContextMenuGroup}),Object.defineProperty(t,"ContextMenuPosition",{enumerable:!0,get:()=>L.ContextMenuPosition}),Object.defineProperty(t,"IMenuManagerService",{enumerable:!0,get:()=>L.IMenuManagerService}),Object.defineProperty(t,"MenuItemType",{enumerable:!0,get:()=>L.MenuItemType}),Object.defineProperty(t,"RibbonStartGroup",{enumerable:!0,get:()=>L.RibbonStartGroup}),Object.defineProperty(t,"UniverVue3AdapterPlugin",{enumerable:!0,get:()=>se.UniverVue3AdapterPlugin}),Object.defineProperty(t,"UniverSheetsAdvancedPreset",{enumerable:!0,get:()=>oe.UniverSheetsAdvancedPreset}),Object.defineProperty(t,"UniverSheetsConditionalFormattingPreset",{enumerable:!0,get:()=>ie.UniverSheetsConditionalFormattingPreset}),Object.defineProperty(t,"UniverSheetsCorePreset",{enumerable:!0,get:()=>ae.UniverSheetsCorePreset}),Object.defineProperty(t,"UniverSheetsDataValidationPreset",{enumerable:!0,get:()=>ue.UniverSheetsDataValidationPreset}),Object.defineProperty(t,"UniverSheetsDrawingPreset",{enumerable:!0,get:()=>ce.UniverSheetsDrawingPreset}),Object.defineProperty(t,"UniverSheetsFilterPreset",{enumerable:!0,get:()=>le.UniverSheetsFilterPreset}),Object.defineProperty(t,"UniverSheetsHyperLinkPreset",{enumerable:!0,get:()=>fe.UniverSheetsHyperLinkPreset}),Object.defineProperty(t,"UniverSheetsNotePreset",{enumerable:!0,get:()=>me.UniverSheetsNotePreset}),t.zhCN=de,t.UniverPresetSheetsAdvancedZhCN=he,t.sheetsConditionalFormattingZhCN=ye,t.sheetsCoreZhCN=ge,t.sheetsDataValidationZhCN=ve,t.UniverPresetSheetsDrawingZhCN=be,t.sheetsDrawingZhCN=pe,t.sheetsFilterZhCN=Ye,t.sheetsHyperLinkZhCN=De,t.UniverPresetSheetsNoteZhCN=Ce,t.CycleTypeEnum=te,t.ModeEnum=re,t.decimal=U,t.filterIndicatorsCell=ze,t.filterMergedIndicatorCells=$e,t.generateIndicatorsCells=He,t.generateUUID=x,t.getNumColumns=Ve,t.handleClearInput=Pe,t.initDateRange=Ue,t.mergeCellData=Re,t.stylePath=Fe,t.useData=Me,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tor-univer-sheet",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "style": "./dist/style.css",
5
5
  "description": "基于 Univer 的 Vue3 电子表格组件",
6
6
  "author": "tortormore",