@jsfkit/types 2.0.0-rc1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +49 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2789,17 +2789,27 @@ type PivotFieldAxis = 'row' | 'col' | 'page';
|
|
|
2789
2789
|
*/
|
|
2790
2790
|
type PivotAreaAxis = PivotFieldAxis | 'values';
|
|
2791
2791
|
|
|
2792
|
+
/**
|
|
2793
|
+
* A field index in a pivot table context. Either a non-negative index into the
|
|
2794
|
+
* pivot table's {@link PivotField} array (or the cache's field array when
|
|
2795
|
+
* `cacheIndex` is true), or one of the following sentinel values:
|
|
2796
|
+
*
|
|
2797
|
+
* - **`-2`** — the "Values" virtual field, representing the data area when a
|
|
2798
|
+
* pivot table has multiple data fields.
|
|
2799
|
+
* - **`-1`** — no field (references nothing).
|
|
2800
|
+
*
|
|
2801
|
+
* @group PivotTables
|
|
2802
|
+
*/
|
|
2803
|
+
type PivotFieldIndex = integer;
|
|
2804
|
+
|
|
2792
2805
|
/**
|
|
2793
2806
|
* A reference within a pivot area, identifying specific field items that define the area's scope.
|
|
2794
2807
|
*
|
|
2795
2808
|
* @group PivotTables
|
|
2796
2809
|
*/
|
|
2797
2810
|
type PivotAreaReference = {
|
|
2798
|
-
/**
|
|
2799
|
-
|
|
2800
|
-
* The special value `4294967294` (0xFFFFFFFE) refers to the data (values) field.
|
|
2801
|
-
*/
|
|
2802
|
-
field?: integer;
|
|
2811
|
+
/** The field this reference applies to. See {@link PivotFieldIndex} for valid values. */
|
|
2812
|
+
field?: PivotFieldIndex;
|
|
2803
2813
|
/**
|
|
2804
2814
|
* Whether this reference participates in the selection. When false, the reference
|
|
2805
2815
|
* constrains the area without being selected itself.
|
|
@@ -2916,8 +2926,8 @@ type PivotArea = {
|
|
|
2916
2926
|
* @default 'normal'
|
|
2917
2927
|
*/
|
|
2918
2928
|
type?: PivotAreaType;
|
|
2919
|
-
/** The field
|
|
2920
|
-
field?:
|
|
2929
|
+
/** The field this area applies to. See {@link PivotFieldIndex} for valid values. */
|
|
2930
|
+
field?: PivotFieldIndex;
|
|
2921
2931
|
/**
|
|
2922
2932
|
* Whether the area applies only to data cells (excluding labels).
|
|
2923
2933
|
*
|
|
@@ -3077,6 +3087,8 @@ type PivotCacheRangePr = {
|
|
|
3077
3087
|
* A shared item value in a pivot cache field. Each item represents a unique value found in the
|
|
3078
3088
|
* source data for that field.
|
|
3079
3089
|
*
|
|
3090
|
+
* A cache may contain items which longer appear in the source data, marked with `u: true`.
|
|
3091
|
+
*
|
|
3080
3092
|
* @group PivotTables
|
|
3081
3093
|
*/
|
|
3082
3094
|
type PivotCacheSharedItem = PivotCacheSharedItemStr | PivotCacheSharedItemNum | PivotCacheSharedItemBool | PivotCacheSharedItemDate | PivotCacheSharedItemErr | PivotCacheSharedItemNil;
|
|
@@ -3084,30 +3096,36 @@ type PivotCacheSharedItem = PivotCacheSharedItemStr | PivotCacheSharedItemNum |
|
|
|
3084
3096
|
type PivotCacheSharedItemStr = {
|
|
3085
3097
|
t: 's';
|
|
3086
3098
|
v: string;
|
|
3099
|
+
u?: boolean;
|
|
3087
3100
|
};
|
|
3088
3101
|
/** A numeric shared item. @group PivotTables */
|
|
3089
3102
|
type PivotCacheSharedItemNum = {
|
|
3090
3103
|
t: 'n';
|
|
3091
3104
|
v: number;
|
|
3105
|
+
u?: boolean;
|
|
3092
3106
|
};
|
|
3093
3107
|
/** A boolean shared item. @group PivotTables */
|
|
3094
3108
|
type PivotCacheSharedItemBool = {
|
|
3095
3109
|
t: 'b';
|
|
3096
3110
|
v: boolean;
|
|
3111
|
+
u?: boolean;
|
|
3097
3112
|
};
|
|
3098
3113
|
/** A date shared item (ISO 8601 string). @group PivotTables */
|
|
3099
3114
|
type PivotCacheSharedItemDate = {
|
|
3100
3115
|
t: 'd';
|
|
3101
3116
|
v: string;
|
|
3117
|
+
u?: boolean;
|
|
3102
3118
|
};
|
|
3103
3119
|
/** An error shared item (e.g. `"#REF!"`). @group PivotTables */
|
|
3104
3120
|
type PivotCacheSharedItemErr = {
|
|
3105
3121
|
t: 'e';
|
|
3106
3122
|
v: string;
|
|
3123
|
+
u?: boolean;
|
|
3107
3124
|
};
|
|
3108
3125
|
/** An empty/missing shared item. @group PivotTables */
|
|
3109
3126
|
type PivotCacheSharedItemNil = {
|
|
3110
3127
|
t: 'z';
|
|
3128
|
+
u?: boolean;
|
|
3111
3129
|
};
|
|
3112
3130
|
|
|
3113
3131
|
/**
|
|
@@ -3299,6 +3317,13 @@ type PivotCacheBase = {
|
|
|
3299
3317
|
* `"{93AACE53-8F3A-A04A-893A-A439866B3165}"` assigned by Excel 2014+ for revision tracking.
|
|
3300
3318
|
*/
|
|
3301
3319
|
uid?: string;
|
|
3320
|
+
/**
|
|
3321
|
+
* Whether the cache needs to be refreshed. When true, the pivot table's cached data
|
|
3322
|
+
* is out of date with respect to its source.
|
|
3323
|
+
*
|
|
3324
|
+
* @default false
|
|
3325
|
+
*/
|
|
3326
|
+
invalid?: boolean;
|
|
3302
3327
|
};
|
|
3303
3328
|
|
|
3304
3329
|
/**
|
|
@@ -3493,7 +3518,7 @@ type PivotDataField = {
|
|
|
3493
3518
|
* The index of the base item used for "show data as" calculations. Only meaningful when
|
|
3494
3519
|
* {@link showDataAs} is set to a relative calculation mode.
|
|
3495
3520
|
*
|
|
3496
|
-
* @default 1048832
|
|
3521
|
+
* @default 1048832 (0x100100, sentinel meaning "use the previous item")
|
|
3497
3522
|
*/
|
|
3498
3523
|
baseItem?: integer;
|
|
3499
3524
|
/** The number format code for this data field's values (e.g. `"General"`, `"#,##0"`). */
|
|
@@ -3724,6 +3749,14 @@ type PivotField = {
|
|
|
3724
3749
|
* @default 10
|
|
3725
3750
|
*/
|
|
3726
3751
|
itemPageCount?: integer;
|
|
3752
|
+
/**
|
|
3753
|
+
* Pivot area defining the sort key when `sortType` is `'ascending'` or
|
|
3754
|
+
* `'descending'`. Specifies which data field's values to sort by (via a
|
|
3755
|
+
* reference with `field: -2`), and may include additional references to
|
|
3756
|
+
* constrain the scope. Absent when sorting is alphabetical (by the field's
|
|
3757
|
+
* own labels).
|
|
3758
|
+
*/
|
|
3759
|
+
autoSortScope?: PivotArea;
|
|
3727
3760
|
/** Whether sorting is deferred to the data source. */
|
|
3728
3761
|
dataSourceSort?: boolean;
|
|
3729
3762
|
/**
|
|
@@ -3831,7 +3864,7 @@ type PivotFilter = {
|
|
|
3831
3864
|
/** Auto-filter criteria that implement this pivot filter. */
|
|
3832
3865
|
autoFilter?: {
|
|
3833
3866
|
/** The reference range for the auto-filter. */
|
|
3834
|
-
ref?:
|
|
3867
|
+
ref?: CellRange;
|
|
3835
3868
|
/** Filter columns with their criteria. */
|
|
3836
3869
|
filterColumns?: PivotAutoFilterColumn[];
|
|
3837
3870
|
};
|
|
@@ -4068,17 +4101,15 @@ type PivotTable = {
|
|
|
4068
4101
|
*/
|
|
4069
4102
|
fields: PivotField[];
|
|
4070
4103
|
/**
|
|
4071
|
-
*
|
|
4072
|
-
*
|
|
4073
|
-
* used when there are multiple data fields) and do not index into {@link fields}.
|
|
4104
|
+
* Fields on the row axis, in display order. Each entry is a {@link PivotFieldIndex}: either
|
|
4105
|
+
* an index into {@link fields}, or `-2` for the "Values" virtual field.
|
|
4074
4106
|
*/
|
|
4075
|
-
rowFieldIndices?:
|
|
4107
|
+
rowFieldIndices?: PivotFieldIndex[];
|
|
4076
4108
|
/**
|
|
4077
|
-
*
|
|
4078
|
-
*
|
|
4079
|
-
* field) and do not index into {@link fields}.
|
|
4109
|
+
* Fields on the column axis, in display order. Each entry is a {@link PivotFieldIndex}: either
|
|
4110
|
+
* an index into {@link fields}, or `-2` for the "Values" virtual field.
|
|
4080
4111
|
*/
|
|
4081
|
-
colFieldIndices?:
|
|
4112
|
+
colFieldIndices?: PivotFieldIndex[];
|
|
4082
4113
|
/** The data fields, defining the aggregated values displayed in the pivot table's data area. */
|
|
4083
4114
|
dataFields?: PivotDataField[];
|
|
4084
4115
|
/** The page (filter) fields, allowing the pivot table to be filtered by specific field values. */
|
|
@@ -4657,4 +4688,4 @@ type Workbook = {
|
|
|
4657
4688
|
};
|
|
4658
4689
|
};
|
|
4659
4690
|
|
|
4660
|
-
export type { AdjustCoordinate, AdjustPoint, AdjustValueHandlePolar, AdjustValueHandleXY, ArcToCommand, AutoColor, BlackWhiteMode, BlipFill, BorderStyle, CalcProps, Cell, CellId, CellOffset, CellRange, CellValueType, CloseCommand, Color, ColorTransform, Comment, ConnectionPoint, CubicBezierToCommand, DashStop, DataTable, DefinedName, DmlAngle, Drawing, EmuValue, Extent, External, ExternalDefinedName, ExternalWorksheet, Fill, FillPatternStyle, FlipAxis, FontStyleIndex, GeomGuideName, GradientColorStop, GradientLinearFill, GradientPathFill, Graphic, GraphicAnchor, GraphicAnchorAbsolute, GraphicAnchorOneCell, GraphicAnchorTwoCell, GraphicBitmap, GraphicChart, GraphicConnectionShape, GraphicGroup, GraphicShape, GridSize, GroupFill, GuidePoint, HAlign, HslColor, HyperlinkTextRun, IndexedColor, InsetRect, Line, LineAlignment, LineCapType, LineCompoundType, LineEnd, LineEndSize, LineEndType, LineJoinType, LineStyle, LineToCommand, MentionTextRun, MoveToCommand, NoFill, Note, Paragraph, Path, PathCommand, PathFillMode, PathFillType, PatternFill, PatternStyle, Percentage, Person, PivotArea, PivotAreaAxis, PivotAreaReference, PivotAreaType, PivotAutoFilterColumn, PivotCache, PivotCacheBase, PivotCacheConsolidation, PivotCacheConsolidationRangeSet, PivotCacheConsolidationSource, PivotCacheExternal, PivotCacheField, PivotCacheFieldGroup, PivotCacheRangePr, PivotCacheRecord, PivotCacheRecordValue, PivotCacheScenario, PivotCacheSharedItem, PivotCacheSharedItemBool, PivotCacheSharedItemDate, PivotCacheSharedItemErr, PivotCacheSharedItemNil, PivotCacheSharedItemNum, PivotCacheSharedItemStr, PivotCacheSharedItemsMeta, PivotCacheWorksheet, PivotCacheWorksheetSource, PivotCacheWorksheetSourceName, PivotCacheWorksheetSourceRange, PivotCalculatedField, PivotCustomFilterCriterion, PivotCustomFilterOperator, PivotDataField, PivotDataFieldAggregation, PivotField, PivotFieldAxis, PivotFieldItem, PivotFilter, PivotFilterType, PivotGroupBy, PivotItemType, PivotPageField, PivotRowColItem, PivotShowDataAs, PivotSubtotalFunction, PivotTable, PivotTableLocation, PivotTableStyle, PivotTableStyleName, PixelValue, Point, PositiveCoordinate, PresetColor, QuadraticBezierToCommand, RectAlignment, RelativeRect, ScRgbColor, SchemeColor, Shape, ShapeRect, ShapeStyle, SolidFill, SrgbColor, Style, SystemColor, Table, TableColumn, TableColumnDataType, TableStyle, TableStyleName, TextAnchoring, TextBody, TextHorzOverflow, TextRun, TextVertOverflow, TextVerticalType, TextWrapping, Theme, ThemeColorScheme, ThemeCustomColor, ThemeFontCollection, ThemeFontScheme, ThemeSupplementalFont, ThemeTextFont, ThreadedComment, Tile, Underline, VAlign, Workbook, WorkbookView, Worksheet, WorksheetDefaults, WorksheetLayoutScales, WorksheetView, Xfrm, XfrmGroup, integer };
|
|
4691
|
+
export type { AdjustCoordinate, AdjustPoint, AdjustValueHandlePolar, AdjustValueHandleXY, ArcToCommand, AutoColor, BlackWhiteMode, BlipFill, BorderStyle, CalcProps, Cell, CellId, CellOffset, CellRange, CellValueType, CloseCommand, Color, ColorTransform, Comment, ConnectionPoint, CubicBezierToCommand, DashStop, DataTable, DefinedName, DmlAngle, Drawing, EmuValue, Extent, External, ExternalDefinedName, ExternalWorksheet, Fill, FillPatternStyle, FlipAxis, FontStyleIndex, GeomGuideName, GradientColorStop, GradientLinearFill, GradientPathFill, Graphic, GraphicAnchor, GraphicAnchorAbsolute, GraphicAnchorOneCell, GraphicAnchorTwoCell, GraphicBitmap, GraphicChart, GraphicConnectionShape, GraphicGroup, GraphicShape, GridSize, GroupFill, GuidePoint, HAlign, HslColor, HyperlinkTextRun, IndexedColor, InsetRect, Line, LineAlignment, LineCapType, LineCompoundType, LineEnd, LineEndSize, LineEndType, LineJoinType, LineStyle, LineToCommand, MentionTextRun, MoveToCommand, NoFill, Note, Paragraph, Path, PathCommand, PathFillMode, PathFillType, PatternFill, PatternStyle, Percentage, Person, PivotArea, PivotAreaAxis, PivotAreaReference, PivotAreaType, PivotAutoFilterColumn, PivotCache, PivotCacheBase, PivotCacheConsolidation, PivotCacheConsolidationRangeSet, PivotCacheConsolidationSource, PivotCacheExternal, PivotCacheField, PivotCacheFieldGroup, PivotCacheRangePr, PivotCacheRecord, PivotCacheRecordValue, PivotCacheScenario, PivotCacheSharedItem, PivotCacheSharedItemBool, PivotCacheSharedItemDate, PivotCacheSharedItemErr, PivotCacheSharedItemNil, PivotCacheSharedItemNum, PivotCacheSharedItemStr, PivotCacheSharedItemsMeta, PivotCacheWorksheet, PivotCacheWorksheetSource, PivotCacheWorksheetSourceName, PivotCacheWorksheetSourceRange, PivotCalculatedField, PivotCustomFilterCriterion, PivotCustomFilterOperator, PivotDataField, PivotDataFieldAggregation, PivotField, PivotFieldAxis, PivotFieldIndex, PivotFieldItem, PivotFilter, PivotFilterType, PivotGroupBy, PivotItemType, PivotPageField, PivotRowColItem, PivotShowDataAs, PivotSubtotalFunction, PivotTable, PivotTableLocation, PivotTableStyle, PivotTableStyleName, PixelValue, Point, PositiveCoordinate, PresetColor, QuadraticBezierToCommand, RectAlignment, RelativeRect, ScRgbColor, SchemeColor, Shape, ShapeRect, ShapeStyle, SolidFill, SrgbColor, Style, SystemColor, Table, TableColumn, TableColumnDataType, TableStyle, TableStyleName, TextAnchoring, TextBody, TextHorzOverflow, TextRun, TextVertOverflow, TextVerticalType, TextWrapping, Theme, ThemeColorScheme, ThemeCustomColor, ThemeFontCollection, ThemeFontScheme, ThemeSupplementalFont, ThemeTextFont, ThreadedComment, Tile, Underline, VAlign, Workbook, WorkbookView, Worksheet, WorksheetDefaults, WorksheetLayoutScales, WorksheetView, Xfrm, XfrmGroup, integer };
|