@sheetxl/sdk 0.8.0-beta.7 → 0.8.0-beta.9
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/BAtZ8a7H7zsRvWqe.cjs +90 -0
- package/browser/cjs/CQPMWBxBUmkORmxV.cjs +1 -0
- package/browser/cjs/{E08wpSuqr-UadjSZ.cjs → CvQ1tIq7wZ7HIGPq.cjs} +1 -1
- package/browser/cjs/CwvGOe42j8KpAF0v.cjs +1 -0
- package/browser/cjs/{O6F5xVsoF2hTiprv.cjs → DCOqoH-T4Ux_1dQj.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{tBEZ_r7Bkp7CrFLF.mjs → BdHD3v-u8irI1XhZ.mjs} +2 -2
- package/browser/esm/{bSQdR4WlmM40WWFR.mjs → C8btlUQcQwNyzHY3.mjs} +2 -2
- package/browser/esm/{B7v0PdbyuBlceMLG.mjs → CF3VfWX7bJu8kO_Z.mjs} +2 -2
- package/browser/esm/{BADV_AABAw-3U9iO.mjs → D3ll0ybMQOP4uPyW.mjs} +1 -1
- package/browser/esm/{DRpWwH6CWI0QaNlp.mjs → DXmFrSnh3xSBfoD7.mjs} +8146 -7694
- package/browser/esm/{CFDfAmU2o5HFRTu4.mjs → DzgIc4oyekwA-fkl.mjs} +96 -96
- package/browser/esm/{DkHfJEJlvjDJnXEU.mjs → Iw280tlGmTHKDqzd.mjs} +2 -2
- package/browser/esm/index.mjs +919 -593
- package/node/esm/{CWJELJxqO-1z0tJU.mjs → B_FOXd5PSfVcg0ED.mjs} +1 -1
- package/node/esm/{HMR0po5avaUU1XUZ.mjs → BzgnLKSVfN-mrMSW.mjs} +1 -1
- package/node/esm/{BShIHUY7pxerJVT8.mjs → D4PsEIRHxAahp5kn.mjs} +1 -1
- package/node/esm/{DbAKZ-Ythj1VwgyS.mjs → dinqlP3jU8gDOjso.mjs} +1 -1
- package/node/esm/index.mjs +11373 -10575
- package/package.json +7 -6
- package/resources/locales/de/model.msg.json +19 -0
- package/resources/locales/en/model.msg.json +25 -0
- package/types/scripting-api.json +6847 -6401
- package/types/scripting-enums.json +101 -21
- package/types/scripting.d.ts +1949 -457
- package/types/src/calculation/Calculation.d.ts +37 -45
- package/types/src/calculation/grid/CalcGrid.d.ts +12 -4
- package/types/src/calculation/grid/CalcGridBackend.d.ts +0 -6
- package/types/src/calculation/grid/CalcGridProxy.d.ts +1 -6
- package/types/src/calculation/grid/ICalcGrid.d.ts +12 -4
- package/types/src/calculation/grid/_CalcRequest.d.ts +4 -9
- package/types/src/cell/ICell.d.ts +3 -3
- package/types/src/cell/ICellHeader.d.ts +24 -2
- package/types/src/cellRange/ICellRange.d.ts +67 -3
- package/types/src/cellRange/ICellRanges.d.ts +12 -12
- package/types/src/chart/Chart.d.ts +2 -13
- package/types/src/condition/AnchoredConditional.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
- package/types/src/condition/ICondition.d.ts +36 -28
- package/types/src/condition/_ConditionUtils.d.ts +32 -8
- package/types/src/fill/IFill.d.ts +46 -11
- package/types/src/fill/IStroke.d.ts +34 -42
- package/types/src/filter/IFilter.d.ts +51 -6
- package/types/src/hyperlink/IHyperlink.d.ts +8 -0
- package/types/src/index.d.ts +1 -0
- package/types/src/movable/AbstractMovableContent.d.ts +6 -0
- package/types/src/movable/FormControl.d.ts +206 -0
- package/types/src/movable/IFormControl.d.ts +424 -0
- package/types/src/movable/IMovable.d.ts +37 -8
- package/types/src/movable/IMovableCollection.d.ts +19 -1
- package/types/src/movable/Movable.d.ts +20 -0
- package/types/src/movable/MovableContentRegistry.d.ts +64 -0
- package/types/src/movable/_BuiltInContents.d.ts +2 -0
- package/types/src/movable/_DrawnBounds.d.ts +33 -0
- package/types/src/movable/_RotatedFrame.d.ts +20 -0
- package/types/src/movable/index.d.ts +6 -4
- package/types/src/numFmt/BuiltInFormats.d.ts +5 -0
- package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
- package/types/src/outline/IOutline.d.ts +186 -0
- package/types/src/outline/Outline.d.ts +157 -0
- package/types/src/outline/index.d.ts +2 -0
- package/types/src/shape/GeometryPreset.d.ts +197 -0
- package/types/src/shape/IGeometry.d.ts +398 -0
- package/types/src/shape/IShape.d.ts +177 -204
- package/types/src/shape/Shape.d.ts +39 -13
- package/types/src/shape/ShapeStyleUtils.d.ts +48 -0
- package/types/src/shape/_Geometry.d.ts +14 -0
- package/types/src/shape/_GeometryLoader.d.ts +21 -0
- package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
- package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
- package/types/src/shape/_builtIn/arrows.d.ts +6 -0
- package/types/src/shape/_builtIn/basic.d.ts +6 -0
- package/types/src/shape/_builtIn/callouts.d.ts +6 -0
- package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
- package/types/src/shape/_builtIn/lines.d.ts +6 -0
- package/types/src/shape/_builtIn/math.d.ts +6 -0
- package/types/src/shape/_builtIn/other.d.ts +6 -0
- package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
- package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
- package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
- package/types/src/shape/geometry/format.d.ts +3 -0
- package/types/src/shape/geometry/geometry.d.ts +84 -0
- package/types/src/shape/geometry/guides.d.ts +54 -0
- package/types/src/shape/geometry/handles.d.ts +14 -0
- package/types/src/shape/geometry/index.d.ts +7 -0
- package/types/src/shape/geometry/lineEnds.d.ts +53 -0
- package/types/src/shape/geometry/paths.d.ts +35 -0
- package/types/src/shape/geometry/segments.d.ts +114 -0
- package/types/src/shape/index.d.ts +2 -0
- package/types/src/sheet/ISheet.d.ts +10 -45
- package/types/src/sheet/Sheet.d.ts +19 -5
- package/types/src/sheet/SheetRange.d.ts +16 -1
- package/types/src/sheet/_SheetUtils.d.ts +10 -2
- package/types/src/sheetHeader/ISheetHeader.d.ts +4 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts +4 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +10 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +3 -1
- package/types/src/sheetView/ISheetView.d.ts +17 -0
- package/types/src/sheetView/SheetView.d.ts +4 -0
- package/types/src/table/AnchoredTable.d.ts +7 -2
- package/types/src/text/IText.d.ts +182 -0
- package/types/src/text/ITextFrame.d.ts +85 -0
- package/types/src/text/TextRotation.d.ts +3 -3
- package/types/src/text/TextStacked.d.ts +2 -2
- package/types/src/theme/ITheme.d.ts +24 -0
- package/types/src/workbook/Workbook.d.ts +16 -5
- package/browser/cjs/CrcmEew-dr51xpf9.cjs +0 -1
- package/browser/cjs/CwzIjMpnMKeypivl.cjs +0 -1
- package/browser/cjs/D3Vlh9UOBKtvlXBL.cjs +0 -93
- package/types/src/movable/Control.d.ts +0 -55
- package/types/src/movable/IControl.d.ts +0 -86
- package/types/src/movable/IGroup.d.ts +0 -30
- package/types/src/shape/_ShapeXml.d.ts +0 -28
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { IResource, IResourceCollection } from '../resource';
|
|
2
|
-
import { IEmbeddedPart } from '../io';
|
|
3
|
-
import { IControl } from './IControl';
|
|
4
|
-
import { AbstractMovableContent } from './AbstractMovableContent';
|
|
5
|
-
interface State extends AbstractMovableContent.State {
|
|
6
|
-
data?: IControl.JSON;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Implementation for {@link IControl}.
|
|
10
|
-
*/
|
|
11
|
-
export declare class Control extends AbstractMovableContent<State, IControl.JSON> implements IControl {
|
|
12
|
-
/**
|
|
13
|
-
* The part describing the control. Held beside {@link State.data} rather than in it because the
|
|
14
|
-
* resources it may carry are model references, not JSON, and have to be re-persisted per save.
|
|
15
|
-
*/
|
|
16
|
-
protected _part: IEmbeddedPart | null;
|
|
17
|
-
constructor(options: Control.ConstructorOptions);
|
|
18
|
-
/** {@inheritDoc IModel.getType} */
|
|
19
|
-
getType(): string;
|
|
20
|
-
/** {@inheritDoc IControl.getShapeId} */
|
|
21
|
-
getShapeId(): number | null;
|
|
22
|
-
/** {@inheritDoc IControl.getXML} */
|
|
23
|
-
getXML(): string | null;
|
|
24
|
-
/** {@inheritDoc Movable.Content.toJSON} */
|
|
25
|
-
toJSON(toResourceId?: (resource: IResource) => number | null): IControl.JSON | null;
|
|
26
|
-
/** {@inheritDoc IMovable.IContent.getTypeDescription} */
|
|
27
|
-
getTypeDescription(): string;
|
|
28
|
-
/** {@inheritDoc IControl.isIControl} */
|
|
29
|
-
get isIControl(): true;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Interfaces for creating `Control` items.
|
|
33
|
-
*
|
|
34
|
-
* @see
|
|
35
|
-
* ### **Interface**
|
|
36
|
-
*
|
|
37
|
-
* {@link Control}
|
|
38
|
-
*/
|
|
39
|
-
export declare namespace Control {
|
|
40
|
-
/**
|
|
41
|
-
* Options for creating a Control.
|
|
42
|
-
*/
|
|
43
|
-
interface ConstructorOptions extends AbstractMovableContent.ConstructorOptions<IControl.JSON> {
|
|
44
|
-
/**
|
|
45
|
-
* Returns an IResource from the resourceId or null if not found.
|
|
46
|
-
*/
|
|
47
|
-
fromResourceId?: (resourceId: number) => IResource;
|
|
48
|
-
/**
|
|
49
|
-
* Useful for load/save/copying.
|
|
50
|
-
*/
|
|
51
|
-
beginPersistResource: () => IResourceCollection.IPersistScope<IResource.JSON>;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
55
|
-
//# sourceMappingURL=Control.d.ts.map
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { IListener } from '../listener';
|
|
2
|
-
import { ITransaction } from '../transaction';
|
|
3
|
-
import { IResource } from '../resource';
|
|
4
|
-
import { IModel } from '../model';
|
|
5
|
-
import { IEmbeddedPart } from '../io';
|
|
6
|
-
import { IMovable } from './IMovable';
|
|
7
|
-
/**
|
|
8
|
-
* Interface for working with form controls — a button, a checkbox, a scrollbar placed on a sheet.
|
|
9
|
-
*
|
|
10
|
-
* **PLACEHOLDER** - This is under development and not made public yet.
|
|
11
|
-
*/
|
|
12
|
-
export interface IControl extends IModel, IMovable.IContent {
|
|
13
|
-
/**
|
|
14
|
-
* Returns the id of the shape that draws this control, or `null` if it has none.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* The shape lives in the sheet's legacy drawing, which is still opaque markup — this is the only
|
|
18
|
-
* link between the two, and it is what lets the shape be kept over the same cells as the control
|
|
19
|
-
* when rows and columns move.
|
|
20
|
-
*/
|
|
21
|
-
getShapeId(): number | null;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the markup of the part describing the control, or `null` if none was captured.
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Read-only, and the one escape hatch for what the control does not model yet: it is the
|
|
27
|
-
* `<formControlPr>` the control was read from — its kind, its linked cell, its macro. It will be
|
|
28
|
-
* removed when the control is modeled.
|
|
29
|
-
*/
|
|
30
|
-
getXML(): string | null;
|
|
31
|
-
toJSON(toResourceId?: (resource: IResource) => number | null): IControl.JSON | null;
|
|
32
|
-
/**
|
|
33
|
-
* Deletes the control, and with it the movable that places it.
|
|
34
|
-
*/
|
|
35
|
-
delete(options?: ITransaction.OperationOptions): void;
|
|
36
|
-
/** For runtime type checking. */
|
|
37
|
-
readonly isIControl: true;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* {@inheritDoc IControl}
|
|
41
|
-
* @see
|
|
42
|
-
* ### **Interface**
|
|
43
|
-
*
|
|
44
|
-
* {@link IControl}
|
|
45
|
-
*/
|
|
46
|
-
export declare namespace IControl {
|
|
47
|
-
interface JSON {
|
|
48
|
-
/**
|
|
49
|
-
* The id of the shape that draws this control.
|
|
50
|
-
*
|
|
51
|
-
* @see {@link IControl.getShapeId}
|
|
52
|
-
*/
|
|
53
|
-
shapeId?: number;
|
|
54
|
-
/**
|
|
55
|
-
* The control's own properties, as they were read.
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* Opaque. What they describe — a button's macro, a checkbox's linked cell — has no model yet,
|
|
59
|
-
* so they are held as they were read and written back unchanged. The position is *not* among
|
|
60
|
-
* them: it is the movable's own anchor, and is written from that.
|
|
61
|
-
*/
|
|
62
|
-
props?: Record<string, string>;
|
|
63
|
-
/**
|
|
64
|
-
* Anything else the properties contained, as markup.
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* Empty for every control this version has seen — a control's properties are attributes and an
|
|
68
|
-
* anchor, and the anchor is the movable's. Kept so a producer that writes more than that does
|
|
69
|
-
* not lose it.
|
|
70
|
-
*/
|
|
71
|
-
xml?: string;
|
|
72
|
-
/**
|
|
73
|
-
* The part describing what kind of control this is and how it behaves.
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* A control is drawn by a shape in the sheet's legacy drawing ({@link ISheet.LegacyDrawingJSON})
|
|
77
|
-
* and described by a part of its own; this is that part.
|
|
78
|
-
*/
|
|
79
|
-
part?: IEmbeddedPart.JSON;
|
|
80
|
-
}
|
|
81
|
-
interface Events extends IModel.Events {
|
|
82
|
-
}
|
|
83
|
-
interface IListeners extends IListener.Callbacks<IControl, IControl.Events> {
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=IControl.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IListener } from '../listener';
|
|
2
|
-
import { IResource } from '../resource';
|
|
3
|
-
import { IModel } from '../model';
|
|
4
|
-
/**
|
|
5
|
-
* Interface for working with Groups.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* **PLACEHOLDER**
|
|
9
|
-
*/
|
|
10
|
-
export interface IGroup extends IModel {
|
|
11
|
-
toJSON(toResourceId?: (resource: IResource) => number): IGroup.JSON;
|
|
12
|
-
getDescription(): string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* {@inheritDoc IGroup}
|
|
16
|
-
* @see
|
|
17
|
-
* ### **Interface**
|
|
18
|
-
*
|
|
19
|
-
* {@link IGroup}
|
|
20
|
-
*/
|
|
21
|
-
export declare namespace IGroup {
|
|
22
|
-
interface JSON {
|
|
23
|
-
grpSp?: any;
|
|
24
|
-
}
|
|
25
|
-
interface Events extends IModel.Events {
|
|
26
|
-
}
|
|
27
|
-
interface IListeners extends IListener.Callbacks<IGroup, IGroup.Events> {
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=IGroup.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reads the two facts a shape's captured DrawingML fragment can answer without a model behind
|
|
3
|
-
* it: the text written on the shape, and its preset geometry.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* An imported shape is kept as the source's markup ({@link IShape.JSON.xml}) and replayed on
|
|
7
|
-
* save, so this is a reader over a small fragment, not an XML library: elements, attributes and
|
|
8
|
-
* character data, matched by LOCAL name — prefixes are the producer's choice (`xdr:sp` and `a:t`
|
|
9
|
-
* are only Excel's). The fragment is a few kilobytes and was already parsed once, as part of a
|
|
10
|
-
* whole document, by the reader that captured it.
|
|
11
|
-
*/
|
|
12
|
-
/** What {@link readShapeXml} answers with. */
|
|
13
|
-
export interface ShapeXmlFacts {
|
|
14
|
-
/** The root element's local name: `sp`, `cxnSp` or `grpSp`. */
|
|
15
|
-
element: string;
|
|
16
|
-
/** `prstGeom/@prst`, `'custom'` for a `custGeom`, or `null` when the fragment states neither. */
|
|
17
|
-
geometry: string | null;
|
|
18
|
-
/** The plain text, or `null` when the fragment has no text body at all. */
|
|
19
|
-
text: string | null;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Reads a captured shape fragment.
|
|
23
|
-
*
|
|
24
|
-
* @param xml The fragment as captured on import.
|
|
25
|
-
* @returns `null` when `xml` holds no element.
|
|
26
|
-
*/
|
|
27
|
-
export declare const readShapeXml: (xml: string) => ShapeXmlFacts | null;
|
|
28
|
-
//# sourceMappingURL=_ShapeXml.d.ts.map
|