@sheetxl/sdk 0.6.14 → 0.6.16
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/browser/cjs/{DBfWRgHutIY9Sq8n.cjs → BmCsHRYZD4YndYs4.cjs} +1 -1
- package/browser/cjs/{CgcJnLXv6G0DXZgX.cjs → BoWPwuGQGZ9LeAwf.cjs} +1 -1
- package/browser/cjs/{C3NbuWlwNH9zafeB.cjs → C0A1ZSbqhJpcZBXL.cjs} +1 -1
- package/browser/cjs/{zvUJZO_ZiK6vYwur.cjs → C2INdehyVPgz1Jzb.cjs} +3 -3
- package/browser/cjs/{D1267MbujS_AycGh.cjs → C8JMdl2QLUqigZSp.cjs} +1 -1
- package/browser/cjs/{DIUZi-C_4XyTFJVO.cjs → CDTddlrrNAPAzT-b.cjs} +1 -1
- package/browser/cjs/{DGATUw2NU6Zk94Df.cjs → Chn_rXue5ZRT7QzO.cjs} +1 -1
- package/browser/cjs/{DjkbhKal3FbG1k-5.cjs → Cr8vGsKEARWkuGbH.cjs} +1 -1
- package/browser/cjs/CtMEtiTTRRZpP_y5.cjs +54 -0
- package/browser/cjs/{BZoJWDhZE0dmT2Hr.cjs → Cv6raToEFuWdFg1l.cjs} +1 -1
- package/browser/cjs/{CsVdrRbuvhM5QBRI.cjs → Cz3DPikv1uHxmHQO.cjs} +1 -1
- package/browser/cjs/{h3AnrXs1yGFRfhXn.cjs → D3PLUvJebJwixno3.cjs} +1 -1
- package/browser/cjs/{Dev2f5p24znnfBw5.cjs → DQ_XM6muCimf60e7.cjs} +1 -1
- package/browser/cjs/{D_5lNxYXtg8pTBl4.cjs → DWgPdK1bXl_mpisL.cjs} +1 -1
- package/browser/cjs/{D_y2_v6BxBvein0F.cjs → DjmtCi-hr6IRzsjv.cjs} +1 -1
- package/browser/cjs/{2_0ljEmd3MqrQ5qe.cjs → DtX35zG23d6nmxHr.cjs} +1 -1
- package/browser/cjs/{zNL-k-477FDHDMNB.cjs → DwQjplri0TLmw6Dr.cjs} +1 -1
- package/browser/cjs/{DVKdHM5HtVpKbIsi.cjs → GFeCgzGuw5cNzIuz.cjs} +1 -1
- package/browser/cjs/{wvL0ZKtQC1IqdzGf.cjs → Pld4bpB-RO-4zCrM.cjs} +2 -2
- package/browser/cjs/{DgzoBVFFLC3Zv3ZF.cjs → PxEF95ZwIuQT4wGv.cjs} +1 -1
- package/browser/cjs/{lOdJR1MygGekWVIY.cjs → U1dm1Xm2kdqUeD6H.cjs} +1 -1
- package/browser/cjs/{DTqdtm4RRC6H7GuB.cjs → XwMJLG3fnrWb7Kry.cjs} +1 -1
- package/browser/cjs/{Dsi_3py7w3x0FOZh.cjs → _lYekKV2drbqLkab.cjs} +1 -1
- package/browser/cjs/{BXMdSgOOMcSA1CFe.cjs → eN9d-xodim4o2fVd.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{KPg1p4gr1jYrRFOQ.cjs → k-_Yko2e0fYeYSMz.cjs} +2 -2
- package/browser/cjs/{CMpaOlZJ_Eknu4Ta.cjs → kFY5EKAHOvJcdTHU.cjs} +1 -1
- package/browser/cjs/{Cdw22URvA8dpCqXh.cjs → pIJzNhe-hEXBTLKA.cjs} +1 -1
- package/{node/esm/ByWhojoBVky0DgYf.mjs → browser/esm/B29IdOudbMkKhUWx.mjs} +1 -1
- package/browser/esm/{Vs22R2GDO7gQjz-p.mjs → BXhWgBqyW7vVSwCE.mjs} +1 -1
- package/browser/esm/BadKxl9yXM8LRAt0.mjs +23197 -0
- package/browser/esm/{BloJXjRn8hP4d255.mjs → BhlYeywnKEKSsVBp.mjs} +1 -1
- package/{node/esm/ybzO-nqWcHgDPHnZ.mjs → browser/esm/CEMahAUp4yeaRZyO.mjs} +1 -1
- package/browser/esm/{DJ5DeRigx-CqQNIB.mjs → CMtecoWQQB5QJglr.mjs} +2 -2
- package/{node/esm/BfzoFiKoeuTwS5JP.mjs → browser/esm/COVt6Go-h1KJ_SYL.mjs} +1 -1
- package/{node/esm/CypD31G2r5yIOxN7.mjs → browser/esm/CaJltcT8q2Qt4tOb.mjs} +1 -1
- package/{node/esm/D9oJ-zu3Mbebhpsv.mjs → browser/esm/Ce3zqAUmE9OyqGvt.mjs} +1 -1
- package/browser/esm/{CkO-OoQd3FNIbl1s.mjs → CoqdATBvO4OVNwUE.mjs} +1 -1
- package/{node/esm/BFfcsadzoh0o3F-F.mjs → browser/esm/Cu9gRGU_8MCajq2K.mjs} +1 -1
- package/browser/esm/{Bsng578a29DvDn9e.mjs → CvL_oKmyxaK1QYqk.mjs} +1 -1
- package/browser/esm/{BmedVxLh7gfhTflw.mjs → CwlYf8-SIFOPR2bo.mjs} +1 -1
- package/browser/esm/{CeFW6L84_M2ZP5-n.mjs → D6BieKg9I2zdEnme.mjs} +1 -1
- package/{node/esm/DV2J_aPtnq-cSv8P.mjs → browser/esm/DL8H1TIz4eYTJlVj.mjs} +1 -1
- package/browser/esm/{BEAtN_zsPK5rbDUV.mjs → DMcVQ-BL4bA_OnOG.mjs} +1 -1
- package/browser/esm/{nZ8XDZY4vqrIcI2J.mjs → DXM-_v3PvFbM2njM.mjs} +1 -1
- package/{node/esm/Dgl6EgVklVhNQN-j.mjs → browser/esm/DXsvBOTVsF5m0ROF.mjs} +1 -1
- package/browser/esm/{BEnTsF_20TsBA9zO.mjs → DdQcQ9S4ZGjE5io0.mjs} +1 -1
- package/browser/esm/{C4I-V6FehP7m3xY6.mjs → DpNBrNeVIhiQtG7J.mjs} +1 -1
- package/browser/esm/{CQE_Gj9MzWo7RvCR.mjs → DssDWFBai4LRnGyo.mjs} +1 -1
- package/browser/esm/{BAe-5TDZS7vibtSd.mjs → DxkU0bhpXyM3VNYS.mjs} +1 -1
- package/browser/esm/{B1B2OGAH7tl-RQZ6.mjs → NussRz_Lfu19nTDO.mjs} +1 -1
- package/browser/esm/{bF3CzNsuK2gxZG0s.mjs → iMtWYxITH-mK8yV4.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/DN_xnwatUgZObGQv.mjs → browser/esm/ktpMAehXfPbHpZxp.mjs} +1 -1
- package/browser/esm/{DTVsA9-oun-mxpJ-.mjs → qYVVqNYgMTjgxSFA.mjs} +2 -2
- package/browser/esm/{CSMZhlPFyiHkra-E.mjs → rG8mrr2nckUu5hbw.mjs} +3 -3
- package/node/esm/{DuU3u_ZVH0O6oV7O.mjs → 0VNBUAjGhg3IHPRC.mjs} +1 -1
- package/{browser/esm/ByWhojoBVky0DgYf.mjs → node/esm/B29IdOudbMkKhUWx.mjs} +1 -1
- package/node/esm/{DraNJl7CH4TpHhmP.mjs → Bj_liro3wEoofx_s.mjs} +1 -1
- package/node/esm/{s5bkiuBWGhbcEhvU.mjs → BoURPosx6Uvnr7bI.mjs} +1 -1
- package/node/esm/{CEF3Koz-ZYmoM15c.mjs → BqqNCz_koCAYJ3Kx.mjs} +1 -1
- package/node/esm/{B0Q6s5oeTuDpEK0u.mjs → C61hKIygirc2mSxV.mjs} +1 -1
- package/{browser/esm/ybzO-nqWcHgDPHnZ.mjs → node/esm/CEMahAUp4yeaRZyO.mjs} +1 -1
- package/node/esm/{CRsWrA5m6zxghBfc.mjs → CLXpyIa1G-kRzIzH.mjs} +1 -1
- package/{browser/esm/BfzoFiKoeuTwS5JP.mjs → node/esm/COVt6Go-h1KJ_SYL.mjs} +1 -1
- package/{browser/esm/CypD31G2r5yIOxN7.mjs → node/esm/CaJltcT8q2Qt4tOb.mjs} +1 -1
- package/{browser/esm/D9oJ-zu3Mbebhpsv.mjs → node/esm/Ce3zqAUmE9OyqGvt.mjs} +1 -1
- package/{browser/esm/BFfcsadzoh0o3F-F.mjs → node/esm/Cu9gRGU_8MCajq2K.mjs} +1 -1
- package/node/esm/{Bsng578a29DvDn9e.mjs → CvL_oKmyxaK1QYqk.mjs} +1 -1
- package/{browser/esm/DV2J_aPtnq-cSv8P.mjs → node/esm/DL8H1TIz4eYTJlVj.mjs} +1 -1
- package/node/esm/{BEAtN_zsPK5rbDUV.mjs → DMcVQ-BL4bA_OnOG.mjs} +1 -1
- package/node/esm/{nZ8XDZY4vqrIcI2J.mjs → DXM-_v3PvFbM2njM.mjs} +1 -1
- package/{browser/esm/Dgl6EgVklVhNQN-j.mjs → node/esm/DXsvBOTVsF5m0ROF.mjs} +1 -1
- package/node/esm/{BEnTsF_20TsBA9zO.mjs → DdQcQ9S4ZGjE5io0.mjs} +1 -1
- package/node/esm/{DOvw6Rpvhw8Q12Fc.mjs → DjzRVBemDPA3DN_8.mjs} +1 -1
- package/node/esm/{C4I-V6FehP7m3xY6.mjs → DpNBrNeVIhiQtG7J.mjs} +1 -1
- package/node/esm/{Bq2byK_rc9xYtXP5.mjs → Dxs2OFUMD57Oo_AB.mjs} +1 -1
- package/node/esm/{B1B2OGAH7tl-RQZ6.mjs → NussRz_Lfu19nTDO.mjs} +1 -1
- package/node/esm/{Cu8ghfxjmgu90YcD.mjs → PWC-IfMc5cNOks4D.mjs} +2 -2
- package/node/esm/{bF3CzNsuK2gxZG0s.mjs → iMtWYxITH-mK8yV4.mjs} +1 -1
- package/node/esm/index.mjs +2004 -1911
- package/{browser/esm/DN_xnwatUgZObGQv.mjs → node/esm/ktpMAehXfPbHpZxp.mjs} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +112 -132
- package/types/scripting.d.ts +205 -151
- package/browser/cjs/-GbzD2TqGpqnE2Wr.cjs +0 -54
- package/browser/esm/D0oDESXG-L_eJjP6.mjs +0 -23128
package/types/scripting.d.ts
CHANGED
|
@@ -2918,7 +2918,14 @@ declare module "fill/IFill" {
|
|
|
2918
2918
|
* (for example color, backgroundColor)
|
|
2919
2919
|
*/
|
|
2920
2920
|
toCSS(darkMode?: boolean, bounds?: Bounds): CSSProperties;
|
|
2921
|
+
/**
|
|
2922
|
+
* Returns the fill as a JSON object.
|
|
2923
|
+
*/
|
|
2921
2924
|
toJSON(): IFill.JSON;
|
|
2925
|
+
/**
|
|
2926
|
+
* For type checking.
|
|
2927
|
+
*/
|
|
2928
|
+
readonly isIFill: true;
|
|
2922
2929
|
}
|
|
2923
2930
|
/**
|
|
2924
2931
|
* {@inheritDoc IFill}
|
|
@@ -3263,7 +3270,7 @@ declare module "fill/IFill" {
|
|
|
3263
3270
|
* @see
|
|
3264
3271
|
* {@link IFill.IGradient.getStops}
|
|
3265
3272
|
*/
|
|
3266
|
-
stops?: GradientStopProperties<C>[];
|
|
3273
|
+
stops?: (GradientStopProperties<C> | C)[];
|
|
3267
3274
|
/**
|
|
3268
3275
|
* @see
|
|
3269
3276
|
* {@link IFill.IGradient.getGradientType}
|
|
@@ -4821,7 +4828,9 @@ declare module "text/index" {
|
|
|
4821
4828
|
export * as TextUtils from "text/TextUtils";
|
|
4822
4829
|
}
|
|
4823
4830
|
declare module "border/IBorder" {
|
|
4831
|
+
import { IProperties } from "type/index";
|
|
4824
4832
|
import type { IColor } from "color/index";
|
|
4833
|
+
import { IStyle } from "style/index";
|
|
4825
4834
|
export namespace IBorder {
|
|
4826
4835
|
/**
|
|
4827
4836
|
* @remarks
|
|
@@ -4928,26 +4937,62 @@ declare module "border/IBorder" {
|
|
|
4928
4937
|
* @returns The left border.
|
|
4929
4938
|
*/
|
|
4930
4939
|
getLeft(): IBorder.IStroke;
|
|
4940
|
+
/**
|
|
4941
|
+
* Sets the left border.
|
|
4942
|
+
*
|
|
4943
|
+
* @param edge The border edge.
|
|
4944
|
+
*/
|
|
4945
|
+
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
4931
4946
|
/**
|
|
4932
4947
|
* @returns The top border.
|
|
4933
4948
|
*/
|
|
4934
4949
|
getTop(): IBorder.IStroke;
|
|
4950
|
+
/**
|
|
4951
|
+
* Sets the top border.
|
|
4952
|
+
*
|
|
4953
|
+
* @param edge The border edge.
|
|
4954
|
+
*/
|
|
4955
|
+
setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
4935
4956
|
/**
|
|
4936
4957
|
* @returns The right border.
|
|
4937
4958
|
*/
|
|
4938
4959
|
getRight(): IBorder.IStroke;
|
|
4939
4960
|
/**
|
|
4940
|
-
|
|
4941
|
-
|
|
4961
|
+
* Sets the left border.
|
|
4962
|
+
*
|
|
4963
|
+
* @param edge The border edge.
|
|
4964
|
+
*/
|
|
4965
|
+
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
4966
|
+
/**
|
|
4967
|
+
* @returns The bottom border.
|
|
4968
|
+
*/
|
|
4942
4969
|
getBottom(): IBorder.IStroke;
|
|
4970
|
+
/**
|
|
4971
|
+
* Sets the bottom border.
|
|
4972
|
+
*
|
|
4973
|
+
* @param edge The border edge.
|
|
4974
|
+
*/
|
|
4975
|
+
setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
4943
4976
|
/**
|
|
4944
4977
|
* @returns The diagonalUp border.
|
|
4945
4978
|
*/
|
|
4946
4979
|
getDiagonalUp(): IBorder.IStroke;
|
|
4980
|
+
/**
|
|
4981
|
+
* Sets the diagonalUp border.
|
|
4982
|
+
*
|
|
4983
|
+
* @param edge The border edge.
|
|
4984
|
+
*/
|
|
4985
|
+
setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
4947
4986
|
/**
|
|
4948
4987
|
* @returns The diagonalDown border.
|
|
4949
4988
|
*/
|
|
4950
4989
|
getDiagonalDown(): IBorder.IStroke;
|
|
4990
|
+
/**
|
|
4991
|
+
* Sets the diagonalDown border.
|
|
4992
|
+
*
|
|
4993
|
+
* @param edge The border edge.
|
|
4994
|
+
*/
|
|
4995
|
+
setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
4951
4996
|
/**
|
|
4952
4997
|
* If there are any borders that are not none.
|
|
4953
4998
|
*/
|
|
@@ -7015,27 +7060,75 @@ declare module "style/IStyle" {
|
|
|
7015
7060
|
* - {@link NumberFormat.Type}
|
|
7016
7061
|
*/
|
|
7017
7062
|
getNumberFormat(): string;
|
|
7063
|
+
/**
|
|
7064
|
+
* @see {@link IStyle.getNumberFormat}
|
|
7065
|
+
*/
|
|
7066
|
+
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
|
|
7018
7067
|
/**
|
|
7019
7068
|
* A boolean value indicating whether the text string in a cell should be prefixed by a single quote mark (e.g., 'text).
|
|
7020
7069
|
* In these cases, the quote is not stored in the Shared Strings Part.
|
|
7021
7070
|
*/
|
|
7022
7071
|
getQuotePrefix(): boolean;
|
|
7023
7072
|
/**
|
|
7024
|
-
*
|
|
7073
|
+
* @see {@link IStyle.getQuotePrefix}
|
|
7025
7074
|
*/
|
|
7026
|
-
|
|
7075
|
+
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): this;
|
|
7027
7076
|
/**
|
|
7028
7077
|
* Returns the border style.
|
|
7029
7078
|
*/
|
|
7030
7079
|
getBorder(): IBorder;
|
|
7080
|
+
/**
|
|
7081
|
+
* Sets the border style.
|
|
7082
|
+
*
|
|
7083
|
+
* This method allows updating borders using an {@link IBorder} or a shorthand property object.
|
|
7084
|
+
*
|
|
7085
|
+
* @param border The border object or a shorthand property object to apply. Pass `null` to clear.
|
|
7086
|
+
* @param options Optional configuration for the update.
|
|
7087
|
+
* @returns The `IBorder` object for further modifications.
|
|
7088
|
+
*/
|
|
7089
|
+
setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
7031
7090
|
/**
|
|
7032
7091
|
* Fill properties for the background.
|
|
7033
7092
|
*/
|
|
7034
7093
|
getFill(): IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone;
|
|
7094
|
+
/**
|
|
7095
|
+
* Sets the fill style.
|
|
7096
|
+
*
|
|
7097
|
+
* This method allows updating fill using an {@link IFill} or a shorthand property object.
|
|
7098
|
+
*
|
|
7099
|
+
* @param fill The fill object or a shorthand property object to apply. Pass `null` to clear.
|
|
7100
|
+
* @param options Optional configuration for the update.
|
|
7101
|
+
* @returns The `IFill` object for further modifications.
|
|
7102
|
+
*/
|
|
7103
|
+
setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
|
|
7104
|
+
/**
|
|
7105
|
+
* Returns the alignment for the style.
|
|
7106
|
+
*/
|
|
7107
|
+
getAlignment(): ITextFrame.IAlignment;
|
|
7108
|
+
/**
|
|
7109
|
+
* Sets the alignment style.
|
|
7110
|
+
*
|
|
7111
|
+
* This method allows updating alignments using an {@link ITextFrame.IAlignment} or a shorthand property object.
|
|
7112
|
+
*
|
|
7113
|
+
* @param alignment The alignment object or a shorthand property object to apply. Pass `null` to clear.
|
|
7114
|
+
* @param options Optional configuration for the update.
|
|
7115
|
+
* @returns The `ITextFrame.IAlignment` object for further modifications.
|
|
7116
|
+
*/
|
|
7117
|
+
setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
7035
7118
|
/**
|
|
7036
7119
|
* Returns the font for the style.
|
|
7037
7120
|
*/
|
|
7038
7121
|
getFont(): IStyledFont;
|
|
7122
|
+
/**
|
|
7123
|
+
* Sets the font style.
|
|
7124
|
+
*
|
|
7125
|
+
* This method allows updating fill using an {@link IStyledFont} or a shorthand property object.
|
|
7126
|
+
*
|
|
7127
|
+
* @param font The font object or a shorthand property object to apply. Pass `null` to clear.
|
|
7128
|
+
* @param options Optional configuration for the update.
|
|
7129
|
+
* @returns The `IStyledFont` object for further modifications.
|
|
7130
|
+
*/
|
|
7131
|
+
setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
7039
7132
|
/**
|
|
7040
7133
|
* Measure the text using the styling properties
|
|
7041
7134
|
*
|
|
@@ -7080,6 +7173,10 @@ declare module "style/IStyle" {
|
|
|
7080
7173
|
* Returns `true` if the CellStyle is the normal style
|
|
7081
7174
|
*/
|
|
7082
7175
|
isNormal(): boolean;
|
|
7176
|
+
/**
|
|
7177
|
+
* Returns a JSON representation of the style.
|
|
7178
|
+
*/
|
|
7179
|
+
toJSON(): IStyle.JSON | null;
|
|
7083
7180
|
/**
|
|
7084
7181
|
* For runtime type checking.
|
|
7085
7182
|
*/
|
|
@@ -7182,106 +7279,6 @@ declare module "style/IStyle" {
|
|
|
7182
7279
|
*/
|
|
7183
7280
|
autoFit?: boolean | ICellRange.AutoFitOptions;
|
|
7184
7281
|
}
|
|
7185
|
-
/**
|
|
7186
|
-
* Provides an API for updating styles.
|
|
7187
|
-
*/
|
|
7188
|
-
interface Updater {
|
|
7189
|
-
/**
|
|
7190
|
-
* @see {@link IStyle.getNumberFormat}
|
|
7191
|
-
*/
|
|
7192
|
-
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
|
|
7193
|
-
/**
|
|
7194
|
-
* Sets or removes the quote prefix for the range.
|
|
7195
|
-
*
|
|
7196
|
-
* The quote prefix ensures that values in cells are treated as text.
|
|
7197
|
-
*
|
|
7198
|
-
* @see {@link IStyle.getQuotePrefix}
|
|
7199
|
-
*/
|
|
7200
|
-
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): this;
|
|
7201
|
-
/**
|
|
7202
|
-
* Sets the alignment style.
|
|
7203
|
-
*
|
|
7204
|
-
* This method allows updating alignments using an {@link ITextFrame.IAlignment} or a shorthand property object.
|
|
7205
|
-
*
|
|
7206
|
-
* @param alignment The alignment object or a shorthand property object to apply. Pass `null` to clear.
|
|
7207
|
-
* @param options Optional configuration for the update.
|
|
7208
|
-
* @returns The `ITextFrame.IAlignment.Updater` object for further modifications.
|
|
7209
|
-
*/
|
|
7210
|
-
setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
7211
|
-
/**
|
|
7212
|
-
* Retrieves the alignment updater.
|
|
7213
|
-
*
|
|
7214
|
-
* @returns An `ITextFrame.IAlignment.Updater` object.
|
|
7215
|
-
*/
|
|
7216
|
-
getAlignment(): ITextFrame.IAlignment;
|
|
7217
|
-
/**
|
|
7218
|
-
* Sets the border style.
|
|
7219
|
-
*
|
|
7220
|
-
* This method allows updating borders using an {@link IBorder} or a shorthand property object.
|
|
7221
|
-
*
|
|
7222
|
-
* @param border The border object or a shorthand property object to apply. Pass `null` to clear.
|
|
7223
|
-
* @param options Optional configuration for the update.
|
|
7224
|
-
* @returns The `IBorder.Updater` object for further modifications.
|
|
7225
|
-
*/
|
|
7226
|
-
setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
7227
|
-
/**
|
|
7228
|
-
* Retrieves the border updater.
|
|
7229
|
-
*
|
|
7230
|
-
* @returns An `IBorder.Updater` object.
|
|
7231
|
-
*/
|
|
7232
|
-
getBorder(): IBorder;
|
|
7233
|
-
/**
|
|
7234
|
-
* Sets the fill style.
|
|
7235
|
-
*
|
|
7236
|
-
* This method allows updating fill using an {@link IFill} or a shorthand property object.
|
|
7237
|
-
*
|
|
7238
|
-
* @param fill The fill object or a shorthand property object to apply. Pass `null` to clear.
|
|
7239
|
-
* @param options Optional configuration for the update.
|
|
7240
|
-
* @returns The `IFill.Updater` object for further modifications.
|
|
7241
|
-
*/
|
|
7242
|
-
setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
|
|
7243
|
-
/**
|
|
7244
|
-
* Retrieves the fill updater.
|
|
7245
|
-
*
|
|
7246
|
-
* @returns An `IFIll.Updater` object.
|
|
7247
|
-
*/
|
|
7248
|
-
getFill(): IFill;
|
|
7249
|
-
/**
|
|
7250
|
-
* Sets the font style.
|
|
7251
|
-
*
|
|
7252
|
-
* This method allows updating fill using an {@link IStyledFont} or a shorthand property object.
|
|
7253
|
-
*
|
|
7254
|
-
* @param font The font object or a shorthand property object to apply. Pass `null` to clear.
|
|
7255
|
-
* @param options Optional configuration for the update.
|
|
7256
|
-
* @returns The `IStyledFont.Updater` object for further modifications.
|
|
7257
|
-
*/
|
|
7258
|
-
setFont(font: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
|
|
7259
|
-
/**
|
|
7260
|
-
* Retrieves the IStyledFont updater.
|
|
7261
|
-
*
|
|
7262
|
-
* @returns An `IStyledFont.Updater` object.
|
|
7263
|
-
*/
|
|
7264
|
-
getFont(): IStyledFont;
|
|
7265
|
-
/**
|
|
7266
|
-
* Updates multiple style properties at once.
|
|
7267
|
-
*
|
|
7268
|
-
* This method is the most versatile way to update styles, allowing bulk updates with nested properties,
|
|
7269
|
-
* shorthand strings, or function callbacks.
|
|
7270
|
-
*
|
|
7271
|
-
* @example
|
|
7272
|
-
* ```typescript
|
|
7273
|
-
* updater.update({
|
|
7274
|
-
* font: { bold: true, color: "blue" },
|
|
7275
|
-
* fill: { pattern: "solid", color: "yellow" }
|
|
7276
|
-
* });
|
|
7277
|
-
* ```
|
|
7278
|
-
*
|
|
7279
|
-
* @param style An object describing the style updates.
|
|
7280
|
-
* @param options Optional configuration for the update.
|
|
7281
|
-
* @returns The current `Updater` instance for chaining.
|
|
7282
|
-
*/
|
|
7283
|
-
update(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
|
|
7284
|
-
}
|
|
7285
7282
|
interface JSON extends Properties<string> {
|
|
7286
7283
|
}
|
|
7287
7284
|
/**
|
|
@@ -19418,7 +19415,7 @@ declare module "utils/CSSUtils" {
|
|
|
19418
19415
|
export const toCSSGradient: (gradientFill: IFill.IGradient, darkMode?: boolean, _bounds?: Bounds) => string;
|
|
19419
19416
|
export const toCSSPattern: (patternType: IFill.BuiltInSheetPattern) => string;
|
|
19420
19417
|
export const toCSSBorderStroke: (stroke: IBorder.IStroke) => string;
|
|
19421
|
-
export const parseBorderStroke: (value: string) => IBorder.StrokeProperties;
|
|
19418
|
+
export const parseBorderStroke: (value: string, parseColor?: (str: string) => string) => IBorder.StrokeProperties;
|
|
19422
19419
|
/**
|
|
19423
19420
|
* @see
|
|
19424
19421
|
* {@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-align}
|
|
@@ -19924,7 +19921,7 @@ declare module "sheet/style/_Resolvers" {
|
|
|
19924
19921
|
export const FILL_NONE: TypedObject<IFill.NoneProperties, IFill.INone, IStyleCollection>;
|
|
19925
19922
|
export const FILL_SOLID: TypedObject<IFill.SolidProperties, IFill.ISolid, IStyleCollection>;
|
|
19926
19923
|
export const GRADIENT_STOP: TypedObject<IFill.GradientStopProperties, IFill.IGradientStop, IStyleCollection>;
|
|
19927
|
-
export const GRADIENT_STOPS: TypedObject<IFill.GradientStopProperties[], IFill.IGradientStop[], IStyleCollection>;
|
|
19924
|
+
export const GRADIENT_STOPS: TypedObject<(IFill.GradientStopProperties | IColor.Serializable)[], (IFill.IGradientStop | IColor.Serializable)[], IStyleCollection>;
|
|
19928
19925
|
export const FILL_GRADIENT: TypedObject<IFill.GradientProperties, IFill.IGradient, IStyleCollection>;
|
|
19929
19926
|
export const FILL_PATTERN: TypedObject<IFill.PatternProperties, IFill.IPattern, IStyleCollection>;
|
|
19930
19927
|
export const FILL: TypedObject<IFill.Properties | IFill.SolidProperties | IFill.GradientProperties | IFill.PatternProperties | IFill.NoneProperties, IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone, IStyleCollection>;
|
|
@@ -20043,15 +20040,21 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20043
20040
|
* A cell style is a specific coords
|
|
20044
20041
|
*/
|
|
20045
20042
|
range: IRange.Coords;
|
|
20043
|
+
/**
|
|
20044
|
+
* For updating styles from accessors
|
|
20045
|
+
*/
|
|
20046
|
+
updater: CellStyleUpdater;
|
|
20047
|
+
}
|
|
20048
|
+
export interface CellStyleUpdater {
|
|
20049
|
+
(update: IStyle.Update, options?: IStyle.UpdateOptions, range?: IRange.Coords): IStyle;
|
|
20046
20050
|
}
|
|
20047
20051
|
/**
|
|
20048
20052
|
* This is for cell styles that don't have specific properties per row,column
|
|
20049
20053
|
*/
|
|
20050
20054
|
export const resolveStyleUpdate: (styles: IStyleCollection, update: IStyle.Update, prev: (() => IStyle) | IStyle) => IStyle.Modifiers;
|
|
20051
20055
|
class InheritableProperties<P, J> {
|
|
20052
|
-
protected _c: IStyleCollection;
|
|
20053
20056
|
protected _p: readonly Readonly<P>[];
|
|
20054
|
-
constructor(
|
|
20057
|
+
constructor(properties: Readonly<P> | readonly Readonly<P>[]);
|
|
20055
20058
|
/**
|
|
20056
20059
|
* Use when returning a left value
|
|
20057
20060
|
* @param key
|
|
@@ -20072,9 +20075,11 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20072
20075
|
* Subclassed by items that have properties that can be inherited.
|
|
20073
20076
|
*/
|
|
20074
20077
|
class Inheritable<P, J> {
|
|
20075
|
-
protected
|
|
20078
|
+
protected _o: CreateCellStyleOptions;
|
|
20076
20079
|
protected _p: readonly P[];
|
|
20077
|
-
|
|
20080
|
+
protected _c: IStyleCollection;
|
|
20081
|
+
constructor(options: CreateCellStyleOptions, properties: P[]);
|
|
20082
|
+
protected _setValue(key: keyof P, value: any): any;
|
|
20078
20083
|
/**
|
|
20079
20084
|
* Use when returning a left value
|
|
20080
20085
|
* @param key
|
|
@@ -20090,7 +20095,7 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20090
20095
|
}
|
|
20091
20096
|
export class CellBorderStroke extends Inheritable<IBorder.StrokeProperties, IBorder.StrokeJSON> implements IBorder.IStroke {
|
|
20092
20097
|
protected _edge: IBorder.Edge;
|
|
20093
|
-
constructor(edge: IBorder.Edge,
|
|
20098
|
+
constructor(edge: IBorder.Edge, options: CreateCellStyleOptions, properties: IBorder.StrokeProperties[]);
|
|
20094
20099
|
/** {@inheritDoc IBorder.IStroke.getStyle} */
|
|
20095
20100
|
getStyle(): IBorder.StrokeStyle;
|
|
20096
20101
|
/** {@inheritDoc IBorder.IStroke.getColor} */
|
|
@@ -20103,33 +20108,55 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20103
20108
|
get isIStroke(): true;
|
|
20104
20109
|
}
|
|
20105
20110
|
export class CellBorder extends Inheritable<IBorder.Properties, IBorder.JSON> implements IBorder {
|
|
20106
|
-
/** {@inheritDoc IBorder.
|
|
20111
|
+
/** {@inheritDoc IBorder.getLeft} */
|
|
20107
20112
|
getLeft(): IBorder.IStroke;
|
|
20108
|
-
/** {@inheritDoc IBorder.
|
|
20113
|
+
/** {@inheritDoc IBorder.setLeft} */
|
|
20114
|
+
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
20115
|
+
/** {@inheritDoc IBorder.getRight} */
|
|
20109
20116
|
getRight(): IBorder.IStroke;
|
|
20110
|
-
/** {@inheritDoc IBorder.
|
|
20117
|
+
/** {@inheritDoc IBorder.setLeft} */
|
|
20118
|
+
setRight(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
20119
|
+
/** {@inheritDoc IBorder.getTop} */
|
|
20111
20120
|
getTop(): IBorder.IStroke;
|
|
20121
|
+
/** {@inheritDoc IBorder.setTop} */
|
|
20122
|
+
setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
20112
20123
|
/** {@inheritDoc IBorder.IStroke.getBottom} */
|
|
20113
20124
|
getBottom(): IBorder.IStroke;
|
|
20125
|
+
/** {@inheritDoc IBorder.setBottom} */
|
|
20126
|
+
setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
20114
20127
|
/** {@inheritDoc IBorder.IStroke.getDiagonalUp} */
|
|
20115
20128
|
getDiagonalUp(): IBorder.IStroke;
|
|
20129
|
+
/** {@inheritDoc IBorder.setDiagonalUp} */
|
|
20130
|
+
setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
20116
20131
|
/** {@inheritDoc IBorder.IStroke.getDiagonalDown} */
|
|
20117
20132
|
getDiagonalDown(): IBorder.IStroke;
|
|
20133
|
+
/** {@inheritDoc IBorder.setDiagonalDown} */
|
|
20134
|
+
setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
20118
20135
|
/** {@inheritDoc IBorder.IStroke.isEmpty} */
|
|
20119
20136
|
isEmpty(): boolean;
|
|
20120
20137
|
/** {@inheritDoc IBorder.IStroke.isIBorder} */
|
|
20121
20138
|
get isIBorder(): true;
|
|
20122
20139
|
}
|
|
20123
20140
|
export class CellAlignment extends Inheritable<ITextFrame.IAlignment.Properties, ITextFrame.IAlignment.JSON> implements ITextFrame.IAlignment {
|
|
20141
|
+
/** {@inheritDoc ITextBoxAlignment.isITextBoxAlignment} */
|
|
20124
20142
|
get isITextBoxAlignment(): true;
|
|
20143
|
+
/** {@inheritDoc ITextBoxAlignment.getHorizontal} */
|
|
20125
20144
|
getHorizontal(): ITextFrame.HorizontalAlignment;
|
|
20145
|
+
/** {@inheritDoc ITextBoxAlignment.getVertical} */
|
|
20126
20146
|
getVertical(): ITextFrame.VerticalAlignment;
|
|
20147
|
+
/** {@inheritDoc ITextBoxAlignment.getIndent} */
|
|
20127
20148
|
getIndent(): number;
|
|
20149
|
+
/** {@inheritDoc ITextBoxAlignment.getRelativeIndent} */
|
|
20128
20150
|
getRelativeIndent(): number;
|
|
20151
|
+
/** {@inheritDoc ITextBoxAlignment.getOverflow} */
|
|
20129
20152
|
getOverflow(): ITextFrame.Overflow;
|
|
20153
|
+
/** {@inheritDoc ITextBoxAlignment.getRotation} */
|
|
20130
20154
|
getRotation(): number;
|
|
20155
|
+
/** {@inheritDoc ITextBoxAlignment.getStacked} */
|
|
20131
20156
|
getStacked(): boolean;
|
|
20157
|
+
/** {@inheritDoc ITextBoxAlignment.getJustifyLastLine} */
|
|
20132
20158
|
getJustifyLastLine(): boolean;
|
|
20159
|
+
/** {@inheritDoc ITextBoxAlignment.getReadingDirection} */
|
|
20133
20160
|
getReadingDirection(): ITextFrame.ReadingDirection;
|
|
20134
20161
|
}
|
|
20135
20162
|
export class CellFont extends Inheritable<IStyledFont.Properties, IStyledFont.JSON> implements IStyledFont {
|
|
@@ -20176,45 +20203,79 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20176
20203
|
get isIStyledFont(): true;
|
|
20177
20204
|
}
|
|
20178
20205
|
export class NoneFill extends Inheritable<IFill.NoneProperties, IFill.NoneJSON> implements IFill.INone {
|
|
20206
|
+
/** {@inheritDoc IFill.INone.getType} */
|
|
20179
20207
|
getType(): typeof IFill.Type.None;
|
|
20208
|
+
/** {@inheritDoc IFill.INone.toCSS} */
|
|
20180
20209
|
toCSS(_darkMode?: boolean): CSSProperties;
|
|
20210
|
+
/** {@inheritDoc IFill.INone.toJSON} */
|
|
20181
20211
|
toJSON(): IFill.NoneJSON;
|
|
20212
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
20213
|
+
get isIFill(): true;
|
|
20182
20214
|
}
|
|
20183
20215
|
export class SolidFill extends Inheritable<IFill.SolidProperties, IFill.SolidJSON> implements IFill.ISolid {
|
|
20216
|
+
/** {@inheritDoc IFill.ISolid.getType} */
|
|
20184
20217
|
getType(): typeof IFill.Type.Solid;
|
|
20218
|
+
/** {@inheritDoc IFill.ISolid.getColor} */
|
|
20185
20219
|
getColor(): IColor;
|
|
20220
|
+
/** {@inheritDoc IFill.ISolid.toCSS} */
|
|
20186
20221
|
toCSS(darkMode?: boolean): CSSProperties;
|
|
20222
|
+
/** {@inheritDoc IFill.ISolid.toJSON} */
|
|
20187
20223
|
toJSON(): IFill.SolidJSON;
|
|
20224
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
20225
|
+
get isIFill(): true;
|
|
20188
20226
|
}
|
|
20189
20227
|
export class GradientStop extends Inheritable<IFill.GradientStopProperties, any> implements IFill.IGradientStop {
|
|
20228
|
+
protected _i: number;
|
|
20229
|
+
protected _l: number;
|
|
20230
|
+
constructor(index: number, length: number, options: CreateCellStyleOptions, properties: IFill.GradientStopProperties[]);
|
|
20231
|
+
/** {@inheritDoc IFill.IGradientStop.getOffset} */
|
|
20190
20232
|
getOffset(): number;
|
|
20233
|
+
/** {@inheritDoc IFill.IGradientStop.getColor} */
|
|
20191
20234
|
getColor(): IColor;
|
|
20192
20235
|
}
|
|
20193
20236
|
export class GradientFill extends Inheritable<IFill.GradientProperties, IFill.GradientJSON> implements IFill.IGradient {
|
|
20237
|
+
/** {@inheritDoc IFill.IGradient.getType} */
|
|
20194
20238
|
getType(): typeof IFill.Type.Gradient;
|
|
20239
|
+
/** {@inheritDoc IFill.IGradient.getStops} */
|
|
20195
20240
|
getStops(): IFill.IGradientStop[];
|
|
20241
|
+
/** {@inheritDoc IFill.IGradient.getGradientType} */
|
|
20196
20242
|
getGradientType(): IFill.GradientType;
|
|
20243
|
+
/** {@inheritDoc IFill.IGradient.getAngle} */
|
|
20197
20244
|
getAngle(): number;
|
|
20245
|
+
/** {@inheritDoc IFill.IGradient.getFillTo} */
|
|
20198
20246
|
getFillTo(): Rectangle;
|
|
20247
|
+
/** {@inheritDoc IFill.IGradient.toCSS} */
|
|
20199
20248
|
toCSS(darkMode?: boolean, bounds?: Bounds): CSSProperties;
|
|
20249
|
+
/** {@inheritDoc IFill.IGradient.toJSON} */
|
|
20200
20250
|
toJSON(): IFill.GradientJSON;
|
|
20251
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
20252
|
+
get isIFill(): true;
|
|
20201
20253
|
}
|
|
20202
20254
|
export class PatternFill extends Inheritable<IFill.PatternProperties, IFill.PatternJSON> implements IFill.IPattern {
|
|
20255
|
+
/** {@inheritDoc IFill.IPattern.getType} */
|
|
20203
20256
|
getType(): typeof IFill.Type.Pattern;
|
|
20257
|
+
/** {@inheritDoc IFill.IPattern.getBackground} */
|
|
20204
20258
|
getBackground(): IColor;
|
|
20259
|
+
/** {@inheritDoc IFill.IPattern.getForeground} */
|
|
20205
20260
|
getForeground(): IColor;
|
|
20261
|
+
/** {@inheritDoc IFill.IPattern.getPatternType} */
|
|
20206
20262
|
getPatternType(): IFill.BuiltInSheetPattern;
|
|
20263
|
+
/** {@inheritDoc IFill.IPattern.toCSS} */
|
|
20207
20264
|
toCSS(darkMode?: boolean): CSSProperties;
|
|
20265
|
+
/** {@inheritDoc IFill.IPattern.toJSON} */
|
|
20208
20266
|
toJSON(): IFill.PatternJSON;
|
|
20267
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
20268
|
+
get isIFill(): true;
|
|
20209
20269
|
}
|
|
20210
20270
|
export class SheetCellStyle implements IStyle {
|
|
20211
|
-
protected
|
|
20271
|
+
protected _o: CreateCellStyleOptions;
|
|
20212
20272
|
protected _p: InheritableProperties<IStyle.Properties, IStyle.JSON>;
|
|
20213
|
-
protected _c: IStyleCollection;
|
|
20214
20273
|
protected _bestFit: Partial<Dimensions>;
|
|
20215
20274
|
protected _insets: Rectangle;
|
|
20216
20275
|
protected _hasVisibleStyling: boolean;
|
|
20217
20276
|
constructor(options: CreateCellStyleOptions);
|
|
20277
|
+
/** {@inheritDoc IStyle.toJSON} */
|
|
20278
|
+
toJSON(): IStyle.JSON;
|
|
20218
20279
|
/** {@inheritDoc IStyle.hasVisibleStyling} */
|
|
20219
20280
|
hasVisibleStyling(): boolean;
|
|
20220
20281
|
/** {@inheritDoc IStyle.isNormal} */
|
|
@@ -20233,16 +20294,28 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20233
20294
|
getInsets(): Rectangle;
|
|
20234
20295
|
/** {@inheritDoc IStyle.getBorder} */
|
|
20235
20296
|
getBorder(): IBorder;
|
|
20297
|
+
/** {@inheritDoc IStyle.setBorder} */
|
|
20298
|
+
setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
20236
20299
|
/** {@inheritDoc IStyle.getFont} */
|
|
20237
20300
|
getFont(): IStyledFont;
|
|
20301
|
+
/** {@inheritDoc IStyle.setFont} */
|
|
20302
|
+
setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
20238
20303
|
/** {@inheritDoc IStyle.getFill} */
|
|
20239
20304
|
getFill(): IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone;
|
|
20305
|
+
/** {@inheritDoc IStyle.setFill} */
|
|
20306
|
+
setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
|
|
20240
20307
|
/** {@inheritDoc IStyle.getAlignment} */
|
|
20241
20308
|
getAlignment(): ITextFrame.IAlignment;
|
|
20309
|
+
/** {@inheritDoc IStyle.setAlignment} */
|
|
20310
|
+
setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
20242
20311
|
/** {@inheritDoc IStyle.getNumberFormat} */
|
|
20243
20312
|
getNumberFormat(): string;
|
|
20313
|
+
/** {@inheritDoc IStyle.setNumberFormat} */
|
|
20314
|
+
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
|
|
20244
20315
|
/** {@inheritDoc IStyle.getQuotePrefix} */
|
|
20245
20316
|
getQuotePrefix(): boolean;
|
|
20317
|
+
/** {@inheritDoc IStyle.setQuotePrefix} */
|
|
20318
|
+
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): this;
|
|
20246
20319
|
/** {@inheritDoc IStyle.isIStyle} */
|
|
20247
20320
|
get isIStyle(): true;
|
|
20248
20321
|
}
|
|
@@ -20252,7 +20325,7 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20252
20325
|
* @remarks
|
|
20253
20326
|
* Not part of the public interface.
|
|
20254
20327
|
*/
|
|
20255
|
-
export const createCellStyle: (styles: IStyleCollection, layer: IProperties.ICellRanged<IStyle.Properties>, range?: Readonly<IRange.Coords
|
|
20328
|
+
export const createCellStyle: (styles: IStyleCollection, layer: IProperties.ICellRanged<IStyle.Properties>, range?: Readonly<IRange.Coords>, updater?: CellStyleUpdater) => IStyle;
|
|
20256
20329
|
export class EmptyStyle extends SheetCellStyle {
|
|
20257
20330
|
/** {@inheritDoc IStyle.hasVisibleStyling} */
|
|
20258
20331
|
hasVisibleStyling(): boolean;
|
|
@@ -20261,6 +20334,7 @@ declare module "sheet/style/SheetCellStyle" {
|
|
|
20261
20334
|
/** {@inheritDoc IStyle.isNormal} */
|
|
20262
20335
|
isNormal(): boolean;
|
|
20263
20336
|
}
|
|
20337
|
+
export const ReadOnlyUpdater: (update: IStyle.Update) => IStyle;
|
|
20264
20338
|
}
|
|
20265
20339
|
declare module "sheet/spatial/MergeEntry" {
|
|
20266
20340
|
import { Scalar, IRange } from '@sheetxl/primitives';
|
|
@@ -21057,6 +21131,7 @@ declare module "sheet/SheetCell" {
|
|
|
21057
21131
|
import { ISheet } from "sheet/ISheet";
|
|
21058
21132
|
import { RangeState } from "sheet/_SheetTypes";
|
|
21059
21133
|
import { FormulaEntry } from "sheet/spatial/index";
|
|
21134
|
+
import { CellStyleUpdater } from "sheet/style/SheetCellStyle";
|
|
21060
21135
|
import { ICalcGraph } from "calculation/graph/index";
|
|
21061
21136
|
/**
|
|
21062
21137
|
* CellModifiers with all functions removed and all properties set and a type.
|
|
@@ -21112,6 +21187,7 @@ declare module "sheet/SheetCell" {
|
|
|
21112
21187
|
calcGraph(): ICalcGraph;
|
|
21113
21188
|
colHeaders: ISheetHeader;
|
|
21114
21189
|
getRange(coords: IRange.Coords): ICellRange;
|
|
21190
|
+
styleUpdater: CellStyleUpdater;
|
|
21115
21191
|
opener(url: string, options: ICellRange.SelectOptions, target?: string, features?: string): Promise<boolean>;
|
|
21116
21192
|
}
|
|
21117
21193
|
export class SheetCell implements ICell {
|
|
@@ -21299,8 +21375,6 @@ declare module "sheet/SheetRanges" {
|
|
|
21299
21375
|
clear(applyTo?: ICell.Content, options?: ITransaction.OperationOptions): this;
|
|
21300
21376
|
/** {@inheritDoc ICellRanges.updateStyle} */
|
|
21301
21377
|
updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
|
|
21302
|
-
/** {@inheritDoc ICellRange.getStyleUpdater} */
|
|
21303
|
-
getStyleUpdater(): IStyle.Updater;
|
|
21304
21378
|
/** {@inheritDoc ICellRanges.merge} */
|
|
21305
21379
|
merge(options?: ICellRange.MergeOptions | IRange.Orientations): this;
|
|
21306
21380
|
/** {@inheritDoc ICellRanges.unmerge} */
|
|
@@ -22029,7 +22103,7 @@ declare module "sheet/Sheet" {
|
|
|
22029
22103
|
/** @internal */
|
|
22030
22104
|
protected _getScalar(rowIndex: number, columnIndex: number, asJSDate?: boolean): Scalar | JSScalar;
|
|
22031
22105
|
/** @internal */
|
|
22032
|
-
protected
|
|
22106
|
+
protected _getStyle(range: IRange.Coords, anchor?: IRange.CellCoords): IStyle;
|
|
22033
22107
|
/** @internal */
|
|
22034
22108
|
protected _initState(): void;
|
|
22035
22109
|
/** @internal */
|
|
@@ -22240,8 +22314,8 @@ declare module "sheet/SheetRange" {
|
|
|
22240
22314
|
setComments(comments: IComment.Properties, options?: ITransaction.OperationOptions): this;
|
|
22241
22315
|
/** {@inheritDoc ICellRange.updateStyle} */
|
|
22242
22316
|
updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
|
|
22243
|
-
/** {@inheritDoc ICellRange.
|
|
22244
|
-
|
|
22317
|
+
/** {@inheritDoc ICellRange.getStyle} */
|
|
22318
|
+
getStyle(): IStyle;
|
|
22245
22319
|
/** {@inheritDoc ICellRange.merge} */
|
|
22246
22320
|
merge(options?: IRange.Orientations | ICellRange.MergeOptions): this;
|
|
22247
22321
|
/** {@inheritDoc ICellRange.unmerge} */
|
|
@@ -31197,10 +31271,6 @@ declare module "cellRange/ICellRanges" {
|
|
|
31197
31271
|
* {@inheritDoc ICellRange.getSheet}
|
|
31198
31272
|
*/
|
|
31199
31273
|
getSheet(): ISheet;
|
|
31200
|
-
/**
|
|
31201
|
-
* {@inheritDoc ICellRange.getStyleUpdater}
|
|
31202
|
-
*/
|
|
31203
|
-
getStyleUpdater(): IStyle.Updater;
|
|
31204
31274
|
/**
|
|
31205
31275
|
* {@inheritDoc ICellRange.updateStyle}
|
|
31206
31276
|
*/
|
|
@@ -31791,30 +31861,6 @@ declare module "cellRange/ICellRange" {
|
|
|
31791
31861
|
* - Methods that transform the range's data into a different type use a `to` prefix (e.g., `toArray()`).
|
|
31792
31862
|
*/
|
|
31793
31863
|
export interface ICellRange {
|
|
31794
|
-
/**
|
|
31795
|
-
* Retrieves an {@link IStyle.Updater} object for updating the styles of the range.
|
|
31796
|
-
*
|
|
31797
|
-
* Unlike {@link ICell.getStyle}, which provides a read-only view of a cell's style,
|
|
31798
|
-
* this method returns an updater object that allows modifications to the styles
|
|
31799
|
-
* of all cells in the range.
|
|
31800
|
-
*
|
|
31801
|
-
* @example
|
|
31802
|
-
* ```typescript
|
|
31803
|
-
* const updater = range.getStyleUpdater();
|
|
31804
|
-
* updater.setColor("blue").setFont("Arial");
|
|
31805
|
-
* ```
|
|
31806
|
-
* @returns {IStyle.Updater} A style updater for the range.
|
|
31807
|
-
*
|
|
31808
|
-
* @remarks
|
|
31809
|
-
* - **Deterministic Behavior**: All updates via the `IStyle.Updater` are applied
|
|
31810
|
-
* to the entire range, overriding any mixed styles with the specified values.
|
|
31811
|
-
* - **Read-Only Alternatives**: To inspect styles across all cells in the range
|
|
31812
|
-
* without modifying them, use {@link ICellRange.entries} or {@link ICellRange.forEach} to iterate over immutable
|
|
31813
|
-
* {@link ICell}s.
|
|
31814
|
-
* - **Immutable Philosophy**: This API aligns with the principle that `ICell`
|
|
31815
|
-
* objects are immutable, while `ICellRange` is the interface for mutable operations.
|
|
31816
|
-
*/
|
|
31817
|
-
getStyleUpdater(): IStyle.Updater;
|
|
31818
31864
|
/**
|
|
31819
31865
|
* Return an array of coords for all merges.
|
|
31820
31866
|
*
|
|
@@ -31851,6 +31897,14 @@ declare module "cellRange/ICellRange" {
|
|
|
31851
31897
|
* {@link ICellRange.getValues}
|
|
31852
31898
|
*/
|
|
31853
31899
|
getValue(options?: ICellRange.GetValuesOptions): Scalar | JSScalar;
|
|
31900
|
+
/**
|
|
31901
|
+
* Returns the style for the range.
|
|
31902
|
+
*
|
|
31903
|
+
* @remarks
|
|
31904
|
+
* When querying the style the values will always be for the top left. However the
|
|
31905
|
+
* set values work for the entire range.
|
|
31906
|
+
*/
|
|
31907
|
+
getStyle(): IStyle;
|
|
31854
31908
|
/**
|
|
31855
31909
|
* Returns the intersection of the current range and the specified range.
|
|
31856
31910
|
*
|