document-schema 7.15.3 → 7.16.1
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/bijection-constructs-3By08A5K.cjs +14695 -0
- package/dist/bijection-constructs-DlP29TpB.js +14624 -0
- package/dist/bijection-constructs.cjs +4 -0
- package/dist/bijection-constructs.d.cts +6 -0
- package/dist/bijection-constructs.d.ts +6 -0
- package/dist/bijection-constructs.js +2 -0
- package/dist/bijection-corpus.cjs +12 -0
- package/dist/bijection-corpus.d.cts +46 -0
- package/dist/bijection-corpus.d.ts +46 -0
- package/dist/bijection-corpus.js +2 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{content-CSf8z9NW.d.cts → content-Bm02PmEB.d.cts} +7908 -9498
- package/dist/{content-1yGdeaVT.d.ts → content-C6lWHtDr.d.ts} +7908 -9498
- package/dist/content-drawing-DkgiEpfT.d.ts +1606 -0
- package/dist/content-drawing-akFpwGlo.d.cts +1606 -0
- package/dist/content-drawing.cjs +186 -0
- package/dist/content-drawing.d.cts +2 -0
- package/dist/content-drawing.d.ts +2 -0
- package/dist/content-drawing.js +171 -0
- package/dist/content-json-schema-defs.cjs +27 -3033
- package/dist/content-json-schema-defs.d.cts +2 -6
- package/dist/content-json-schema-defs.d.ts +2 -6
- package/dist/content-json-schema-defs.js +28 -3031
- package/dist/content-sheet.cjs +408 -0
- package/dist/content-sheet.d.cts +2 -0
- package/dist/content-sheet.d.ts +2 -0
- package/dist/content-sheet.js +385 -0
- package/dist/content-vocabulary.cjs +190 -0
- package/dist/content-vocabulary.d.cts +2 -0
- package/dist/content-vocabulary.d.ts +2 -0
- package/dist/content-vocabulary.js +168 -0
- package/dist/content.cjs +29 -781
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +6 -701
- package/dist/decompose.d.cts +3 -2
- package/dist/decompose.d.ts +3 -2
- package/dist/definitions.cjs +2 -1
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/definitions.js +2 -1
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.cjs +69 -63
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +10 -6
- package/dist/json-schema-defs-blocks.cjs +1036 -0
- package/dist/json-schema-defs-blocks.d.cts +5 -0
- package/dist/json-schema-defs-blocks.d.ts +5 -0
- package/dist/json-schema-defs-blocks.js +1035 -0
- package/dist/json-schema-defs-math.cjs +291 -0
- package/dist/json-schema-defs-math.d.cts +5 -0
- package/dist/json-schema-defs-math.d.ts +5 -0
- package/dist/json-schema-defs-math.js +290 -0
- package/dist/json-schema-defs-shared.cjs +42 -0
- package/dist/json-schema-defs-shared.d.cts +9 -0
- package/dist/json-schema-defs-shared.d.ts +9 -0
- package/dist/json-schema-defs-shared.js +38 -0
- package/dist/json-schema-defs-sheet.cjs +944 -0
- package/dist/json-schema-defs-sheet.d.cts +5 -0
- package/dist/json-schema-defs-sheet.d.ts +5 -0
- package/dist/json-schema-defs-sheet.js +943 -0
- package/dist/json-schema-defs-tree.cjs +237 -0
- package/dist/json-schema-defs-tree.d.cts +5 -0
- package/dist/json-schema-defs-tree.d.ts +5 -0
- package/dist/json-schema-defs-tree.js +237 -0
- package/dist/json-schema-defs-vector.cjs +513 -0
- package/dist/json-schema-defs-vector.d.cts +5 -0
- package/dist/json-schema-defs-vector.d.ts +5 -0
- package/dist/json-schema-defs-vector.js +512 -0
- package/dist/magic-string.es-CB2hOw9v.js +1012 -0
- package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
- package/dist/{math-BScHxedi.d.cts → math-DdIQCljT.d.cts} +9 -9
- package/dist/{math-BScHxedi.d.ts → math-DdIQCljT.d.ts} +9 -9
- package/dist/math.d.cts +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/{package-node-CpE1BAqK.d.ts → package-node-B8YDhUTf.d.ts} +39 -38
- package/dist/{package-node-ng7Yimj9.d.cts → package-node-BMWuIKAC.d.cts} +39 -38
- package/dist/package-node.cjs +12 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +4 -1
- package/dist/package.d.cts +12 -12
- package/dist/package.d.ts +12 -12
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
- package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/table-grid.d.cts +2 -2
- package/dist/table-grid.d.ts +2 -2
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_source = require("./source.cjs");
|
|
3
|
+
const require_geometry = require("./geometry.cjs");
|
|
4
|
+
const require_style = require("./style.cjs");
|
|
5
|
+
const require_color = require("./color.cjs");
|
|
6
|
+
const require_content_vocabulary = require("./content-vocabulary.cjs");
|
|
7
|
+
let zod = require("zod");
|
|
8
|
+
//#region src/content-sheet.ts
|
|
9
|
+
const ContentCellBordersSchema = zod.z.object({
|
|
10
|
+
left: require_content_vocabulary.ContentBorderSchema.optional(),
|
|
11
|
+
right: require_content_vocabulary.ContentBorderSchema.optional(),
|
|
12
|
+
top: require_content_vocabulary.ContentBorderSchema.optional(),
|
|
13
|
+
bottom: require_content_vocabulary.ContentBorderSchema.optional(),
|
|
14
|
+
diagonalUp: require_content_vocabulary.ContentBorderSchema.optional(),
|
|
15
|
+
diagonalDown: require_content_vocabulary.ContentBorderSchema.optional()
|
|
16
|
+
});
|
|
17
|
+
const ContentCellPatternTypeSchema = zod.z.enum([
|
|
18
|
+
"percent5",
|
|
19
|
+
"percent10",
|
|
20
|
+
"percent12",
|
|
21
|
+
"percent15",
|
|
22
|
+
"percent20",
|
|
23
|
+
"percent25",
|
|
24
|
+
"percent30",
|
|
25
|
+
"percent35",
|
|
26
|
+
"percent37",
|
|
27
|
+
"percent40",
|
|
28
|
+
"percent45",
|
|
29
|
+
"percent50",
|
|
30
|
+
"percent55",
|
|
31
|
+
"percent60",
|
|
32
|
+
"percent62",
|
|
33
|
+
"percent65",
|
|
34
|
+
"percent70",
|
|
35
|
+
"percent75",
|
|
36
|
+
"percent80",
|
|
37
|
+
"percent85",
|
|
38
|
+
"percent87",
|
|
39
|
+
"percent90",
|
|
40
|
+
"percent95",
|
|
41
|
+
"horizontalStripe",
|
|
42
|
+
"verticalStripe",
|
|
43
|
+
"diagonalStripe",
|
|
44
|
+
"reverseDiagonalStripe",
|
|
45
|
+
"horizontalCross",
|
|
46
|
+
"diagonalCross",
|
|
47
|
+
"thinHorizontalStripe",
|
|
48
|
+
"thinVerticalStripe",
|
|
49
|
+
"thinDiagonalStripe",
|
|
50
|
+
"thinReverseDiagonalStripe",
|
|
51
|
+
"thinHorizontalCross",
|
|
52
|
+
"thinDiagonalCross",
|
|
53
|
+
"mediumGray",
|
|
54
|
+
"darkGray",
|
|
55
|
+
"lightGray",
|
|
56
|
+
"darkHorizontal",
|
|
57
|
+
"darkVertical",
|
|
58
|
+
"darkDown",
|
|
59
|
+
"darkUp",
|
|
60
|
+
"darkGrid",
|
|
61
|
+
"darkTrellis",
|
|
62
|
+
"lightHorizontal",
|
|
63
|
+
"lightVertical",
|
|
64
|
+
"lightDown",
|
|
65
|
+
"lightUp",
|
|
66
|
+
"lightGrid",
|
|
67
|
+
"lightTrellis",
|
|
68
|
+
"gray125",
|
|
69
|
+
"gray0625"
|
|
70
|
+
]);
|
|
71
|
+
const ContentCellFillSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
72
|
+
kind: zod.z.literal("solid"),
|
|
73
|
+
color: require_color.ColorSchema
|
|
74
|
+
}), zod.z.object({
|
|
75
|
+
kind: zod.z.literal("pattern"),
|
|
76
|
+
patternType: ContentCellPatternTypeSchema,
|
|
77
|
+
foregroundColor: require_color.ColorSchema.optional(),
|
|
78
|
+
backgroundColor: require_color.ColorSchema.optional()
|
|
79
|
+
})]);
|
|
80
|
+
function resolveCellFillColor(fill) {
|
|
81
|
+
return fill.kind === "solid" ? fill.color : fill.foregroundColor ?? fill.backgroundColor;
|
|
82
|
+
}
|
|
83
|
+
function unrecognizedFillKind(fill) {
|
|
84
|
+
return String(fill.kind);
|
|
85
|
+
}
|
|
86
|
+
const DecimalStringSchema = zod.z.string().regex(/^-?(0|[1-9]\d*)(\.\d+)?$/);
|
|
87
|
+
const ContentCellValueSchema = zod.z.discriminatedUnion("kind", [
|
|
88
|
+
zod.z.object({
|
|
89
|
+
kind: zod.z.literal("number"),
|
|
90
|
+
value: zod.z.number(),
|
|
91
|
+
exactValue: DecimalStringSchema.optional()
|
|
92
|
+
}),
|
|
93
|
+
zod.z.object({
|
|
94
|
+
kind: zod.z.literal("percentage"),
|
|
95
|
+
value: zod.z.number(),
|
|
96
|
+
exactValue: DecimalStringSchema.optional()
|
|
97
|
+
}),
|
|
98
|
+
zod.z.object({
|
|
99
|
+
kind: zod.z.literal("currency"),
|
|
100
|
+
value: zod.z.number(),
|
|
101
|
+
currency: zod.z.string().optional(),
|
|
102
|
+
exactValue: DecimalStringSchema.optional()
|
|
103
|
+
}),
|
|
104
|
+
zod.z.object({
|
|
105
|
+
kind: zod.z.literal("boolean"),
|
|
106
|
+
value: zod.z.boolean()
|
|
107
|
+
}),
|
|
108
|
+
zod.z.object({
|
|
109
|
+
kind: zod.z.literal("date"),
|
|
110
|
+
value: zod.z.string()
|
|
111
|
+
}),
|
|
112
|
+
zod.z.object({
|
|
113
|
+
kind: zod.z.literal("time"),
|
|
114
|
+
value: zod.z.string()
|
|
115
|
+
}),
|
|
116
|
+
zod.z.object({
|
|
117
|
+
kind: zod.z.literal("dateTime"),
|
|
118
|
+
value: zod.z.string()
|
|
119
|
+
}),
|
|
120
|
+
zod.z.object({
|
|
121
|
+
kind: zod.z.literal("string"),
|
|
122
|
+
value: zod.z.string()
|
|
123
|
+
}),
|
|
124
|
+
zod.z.object({
|
|
125
|
+
kind: zod.z.literal("error"),
|
|
126
|
+
value: zod.z.string()
|
|
127
|
+
}),
|
|
128
|
+
zod.z.object({ kind: zod.z.literal("empty") })
|
|
129
|
+
]);
|
|
130
|
+
const ContentSheetCellCommentSchema = zod.z.object({
|
|
131
|
+
text: zod.z.string(),
|
|
132
|
+
author: zod.z.string().optional(),
|
|
133
|
+
createdAt: zod.z.string().optional(),
|
|
134
|
+
replies: zod.z.array(zod.z.object({
|
|
135
|
+
text: zod.z.string(),
|
|
136
|
+
author: zod.z.string().optional()
|
|
137
|
+
})).optional()
|
|
138
|
+
});
|
|
139
|
+
const ContentSheetCellSchema = zod.z.object({
|
|
140
|
+
row: zod.z.number().int().nonnegative(),
|
|
141
|
+
column: zod.z.number().int().nonnegative(),
|
|
142
|
+
value: ContentCellValueSchema,
|
|
143
|
+
formula: zod.z.string().optional(),
|
|
144
|
+
displayText: zod.z.string(),
|
|
145
|
+
numberFormatCode: zod.z.string().optional(),
|
|
146
|
+
font: require_content_vocabulary.ContentFontSchema.optional(),
|
|
147
|
+
runs: zod.z.array(require_content_vocabulary.ContentRunSchema).optional(),
|
|
148
|
+
colSpan: zod.z.number().int().positive().optional(),
|
|
149
|
+
rowSpan: zod.z.number().int().positive().optional(),
|
|
150
|
+
background: ContentCellFillSchema.optional(),
|
|
151
|
+
borders: ContentCellBordersSchema.optional(),
|
|
152
|
+
alignment: require_style.AlignmentSchema.optional(),
|
|
153
|
+
verticalAlignment: zod.z.enum([
|
|
154
|
+
"top",
|
|
155
|
+
"middle",
|
|
156
|
+
"bottom"
|
|
157
|
+
]).optional(),
|
|
158
|
+
comment: ContentSheetCellCommentSchema.optional(),
|
|
159
|
+
sourcePath: zod.z.string().optional(),
|
|
160
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
161
|
+
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
162
|
+
...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
|
|
163
|
+
});
|
|
164
|
+
const ContentSheetColumnSchema = zod.z.object({
|
|
165
|
+
index: zod.z.number().int().nonnegative(),
|
|
166
|
+
widthPt: zod.z.number().positive().optional(),
|
|
167
|
+
hidden: zod.z.boolean().optional()
|
|
168
|
+
});
|
|
169
|
+
const ContentSheetRowSchema = zod.z.object({
|
|
170
|
+
index: zod.z.number().int().nonnegative(),
|
|
171
|
+
heightPt: zod.z.number().positive().optional(),
|
|
172
|
+
hidden: zod.z.boolean().optional()
|
|
173
|
+
});
|
|
174
|
+
const ContentSheetPrintRangeSchema = zod.z.object({
|
|
175
|
+
startRow: zod.z.number().int().nonnegative(),
|
|
176
|
+
startColumn: zod.z.number().int().nonnegative(),
|
|
177
|
+
endRow: zod.z.number().int().nonnegative(),
|
|
178
|
+
endColumn: zod.z.number().int().nonnegative()
|
|
179
|
+
});
|
|
180
|
+
const ContentSheetRepeatRangeSchema = zod.z.object({
|
|
181
|
+
start: zod.z.number().int().nonnegative(),
|
|
182
|
+
end: zod.z.number().int().nonnegative()
|
|
183
|
+
});
|
|
184
|
+
const ContentSheetPrintSettingsSchema = zod.z.object({
|
|
185
|
+
pageSize: require_geometry.PageSizeSchema,
|
|
186
|
+
margins: require_geometry.MarginsSchema,
|
|
187
|
+
printRange: ContentSheetPrintRangeSchema.optional(),
|
|
188
|
+
scalePercent: zod.z.number().positive().optional(),
|
|
189
|
+
fitToPages: zod.z.object({
|
|
190
|
+
width: zod.z.number().int().positive(),
|
|
191
|
+
height: zod.z.number().int().positive()
|
|
192
|
+
}).optional(),
|
|
193
|
+
repeatRows: ContentSheetRepeatRangeSchema.optional(),
|
|
194
|
+
repeatColumns: ContentSheetRepeatRangeSchema.optional(),
|
|
195
|
+
gridlines: zod.z.boolean(),
|
|
196
|
+
headers: zod.z.boolean(),
|
|
197
|
+
pageOrder: zod.z.enum(["downThenOver", "overThenDown"]),
|
|
198
|
+
manualBreaks: zod.z.object({
|
|
199
|
+
rows: zod.z.array(zod.z.number().int().nonnegative()),
|
|
200
|
+
columns: zod.z.array(zod.z.number().int().nonnegative())
|
|
201
|
+
}).optional()
|
|
202
|
+
});
|
|
203
|
+
const ContentSheetRangeSchema = zod.z.object({
|
|
204
|
+
startRow: zod.z.number().int().nonnegative(),
|
|
205
|
+
startColumn: zod.z.number().int().nonnegative(),
|
|
206
|
+
endRow: zod.z.number().int().nonnegative(),
|
|
207
|
+
endColumn: zod.z.number().int().nonnegative()
|
|
208
|
+
});
|
|
209
|
+
const SheetRuleOperatorSchema = zod.z.enum([
|
|
210
|
+
"between",
|
|
211
|
+
"notBetween",
|
|
212
|
+
"equal",
|
|
213
|
+
"notEqual",
|
|
214
|
+
"greaterThan",
|
|
215
|
+
"greaterThanOrEqual",
|
|
216
|
+
"lessThan",
|
|
217
|
+
"lessThanOrEqual"
|
|
218
|
+
]);
|
|
219
|
+
const ContentSheetDataValidationTypeSchema = zod.z.enum([
|
|
220
|
+
"whole",
|
|
221
|
+
"decimal",
|
|
222
|
+
"list",
|
|
223
|
+
"date",
|
|
224
|
+
"time",
|
|
225
|
+
"textLength",
|
|
226
|
+
"custom"
|
|
227
|
+
]);
|
|
228
|
+
const ContentSheetDataValidationSchema = zod.z.object({
|
|
229
|
+
ranges: zod.z.array(ContentSheetRangeSchema),
|
|
230
|
+
type: ContentSheetDataValidationTypeSchema,
|
|
231
|
+
operator: SheetRuleOperatorSchema.optional(),
|
|
232
|
+
formula1: zod.z.string().optional(),
|
|
233
|
+
formula2: zod.z.string().optional(),
|
|
234
|
+
allowBlank: zod.z.boolean().optional(),
|
|
235
|
+
showInputMessage: zod.z.boolean().optional(),
|
|
236
|
+
promptTitle: zod.z.string().optional(),
|
|
237
|
+
prompt: zod.z.string().optional(),
|
|
238
|
+
showErrorMessage: zod.z.boolean().optional(),
|
|
239
|
+
errorStyle: zod.z.enum([
|
|
240
|
+
"stop",
|
|
241
|
+
"warning",
|
|
242
|
+
"information"
|
|
243
|
+
]).optional(),
|
|
244
|
+
errorTitle: zod.z.string().optional(),
|
|
245
|
+
error: zod.z.string().optional(),
|
|
246
|
+
source: require_source.SourceResidueSchema.optional()
|
|
247
|
+
});
|
|
248
|
+
const ContentSheetConditionalFormatStyleSchema = zod.z.object({
|
|
249
|
+
textColor: require_color.ColorSchema.optional(),
|
|
250
|
+
background: require_color.ColorSchema.optional(),
|
|
251
|
+
source: require_source.SourceResidueSchema.optional()
|
|
252
|
+
});
|
|
253
|
+
const cfvoTypeSchema = zod.z.enum([
|
|
254
|
+
"num",
|
|
255
|
+
"percent",
|
|
256
|
+
"max",
|
|
257
|
+
"min",
|
|
258
|
+
"formula",
|
|
259
|
+
"percentile"
|
|
260
|
+
]);
|
|
261
|
+
const ContentSheetConditionalFormatValueSchema = zod.z.object({
|
|
262
|
+
type: cfvoTypeSchema,
|
|
263
|
+
value: zod.z.string().optional()
|
|
264
|
+
});
|
|
265
|
+
const MIN_COLOR_SCALE_STOPS = 2;
|
|
266
|
+
const MAX_COLOR_SCALE_STOPS = 3;
|
|
267
|
+
const conditionalFormatCommonFields = {
|
|
268
|
+
ranges: zod.z.array(ContentSheetRangeSchema),
|
|
269
|
+
priority: zod.z.number().int().optional(),
|
|
270
|
+
stopIfTrue: zod.z.boolean().optional(),
|
|
271
|
+
source: require_source.SourceResidueSchema.optional()
|
|
272
|
+
};
|
|
273
|
+
const ContentSheetConditionalFormatSchema = zod.z.discriminatedUnion("type", [
|
|
274
|
+
zod.z.object({
|
|
275
|
+
type: zod.z.literal("cellIs"),
|
|
276
|
+
...conditionalFormatCommonFields,
|
|
277
|
+
operator: SheetRuleOperatorSchema,
|
|
278
|
+
formula1: zod.z.string(),
|
|
279
|
+
formula2: zod.z.string().optional(),
|
|
280
|
+
style: ContentSheetConditionalFormatStyleSchema.optional()
|
|
281
|
+
}),
|
|
282
|
+
zod.z.object({
|
|
283
|
+
type: zod.z.enum([
|
|
284
|
+
"containsText",
|
|
285
|
+
"notContainsText",
|
|
286
|
+
"beginsWith",
|
|
287
|
+
"endsWith"
|
|
288
|
+
]),
|
|
289
|
+
...conditionalFormatCommonFields,
|
|
290
|
+
text: zod.z.string(),
|
|
291
|
+
style: ContentSheetConditionalFormatStyleSchema.optional()
|
|
292
|
+
}),
|
|
293
|
+
zod.z.object({
|
|
294
|
+
type: zod.z.enum([
|
|
295
|
+
"containsBlanks",
|
|
296
|
+
"notContainsBlanks",
|
|
297
|
+
"containsErrors",
|
|
298
|
+
"notContainsErrors",
|
|
299
|
+
"uniqueValues",
|
|
300
|
+
"duplicateValues"
|
|
301
|
+
]),
|
|
302
|
+
...conditionalFormatCommonFields,
|
|
303
|
+
style: ContentSheetConditionalFormatStyleSchema.optional()
|
|
304
|
+
}),
|
|
305
|
+
zod.z.object({
|
|
306
|
+
type: zod.z.literal("top10"),
|
|
307
|
+
...conditionalFormatCommonFields,
|
|
308
|
+
rank: zod.z.number().positive(),
|
|
309
|
+
percent: zod.z.boolean().optional(),
|
|
310
|
+
bottom: zod.z.boolean().optional(),
|
|
311
|
+
style: ContentSheetConditionalFormatStyleSchema.optional()
|
|
312
|
+
}),
|
|
313
|
+
zod.z.object({
|
|
314
|
+
type: zod.z.literal("aboveAverage"),
|
|
315
|
+
...conditionalFormatCommonFields,
|
|
316
|
+
aboveAverage: zod.z.boolean().optional(),
|
|
317
|
+
equalAverage: zod.z.boolean().optional(),
|
|
318
|
+
stdDev: zod.z.number().int().positive().optional(),
|
|
319
|
+
style: ContentSheetConditionalFormatStyleSchema.optional()
|
|
320
|
+
}),
|
|
321
|
+
zod.z.object({
|
|
322
|
+
type: zod.z.literal("timePeriod"),
|
|
323
|
+
...conditionalFormatCommonFields,
|
|
324
|
+
timePeriod: zod.z.enum([
|
|
325
|
+
"yesterday",
|
|
326
|
+
"today",
|
|
327
|
+
"tomorrow",
|
|
328
|
+
"last7Days",
|
|
329
|
+
"thisMonth",
|
|
330
|
+
"lastMonth",
|
|
331
|
+
"nextMonth",
|
|
332
|
+
"thisWeek",
|
|
333
|
+
"lastWeek",
|
|
334
|
+
"nextWeek",
|
|
335
|
+
"thisYear",
|
|
336
|
+
"lastYear",
|
|
337
|
+
"nextYear"
|
|
338
|
+
]),
|
|
339
|
+
style: ContentSheetConditionalFormatStyleSchema.optional()
|
|
340
|
+
}),
|
|
341
|
+
zod.z.object({
|
|
342
|
+
type: zod.z.literal("colorScale"),
|
|
343
|
+
...conditionalFormatCommonFields,
|
|
344
|
+
stops: zod.z.array(zod.z.object({
|
|
345
|
+
value: ContentSheetConditionalFormatValueSchema,
|
|
346
|
+
color: require_color.ColorSchema
|
|
347
|
+
})).min(MIN_COLOR_SCALE_STOPS).max(MAX_COLOR_SCALE_STOPS)
|
|
348
|
+
}),
|
|
349
|
+
zod.z.object({
|
|
350
|
+
type: zod.z.literal("dataBar"),
|
|
351
|
+
...conditionalFormatCommonFields,
|
|
352
|
+
min: ContentSheetConditionalFormatValueSchema,
|
|
353
|
+
max: ContentSheetConditionalFormatValueSchema,
|
|
354
|
+
color: require_color.ColorSchema,
|
|
355
|
+
showValue: zod.z.boolean().optional()
|
|
356
|
+
}),
|
|
357
|
+
zod.z.object({
|
|
358
|
+
type: zod.z.literal("iconSet"),
|
|
359
|
+
...conditionalFormatCommonFields,
|
|
360
|
+
iconSetType: zod.z.string(),
|
|
361
|
+
thresholds: zod.z.array(ContentSheetConditionalFormatValueSchema),
|
|
362
|
+
reverse: zod.z.boolean().optional(),
|
|
363
|
+
showValue: zod.z.boolean().optional()
|
|
364
|
+
})
|
|
365
|
+
]);
|
|
366
|
+
const ContentSheetImageSchema = require_content_vocabulary.ContentImageBlockSchema.extend({
|
|
367
|
+
anchorRow: zod.z.number().int().nonnegative(),
|
|
368
|
+
anchorColumn: zod.z.number().int().nonnegative(),
|
|
369
|
+
offsetXPt: zod.z.number(),
|
|
370
|
+
offsetYPt: zod.z.number()
|
|
371
|
+
});
|
|
372
|
+
const ContentSheetSchema = zod.z.object({
|
|
373
|
+
name: zod.z.string(),
|
|
374
|
+
cells: zod.z.array(ContentSheetCellSchema),
|
|
375
|
+
columns: zod.z.array(ContentSheetColumnSchema),
|
|
376
|
+
rows: zod.z.array(ContentSheetRowSchema),
|
|
377
|
+
images: zod.z.array(ContentSheetImageSchema),
|
|
378
|
+
printSettings: ContentSheetPrintSettingsSchema,
|
|
379
|
+
embeddedObjects: zod.z.array(require_content_vocabulary.ContentEmbeddedObjectSchema).optional(),
|
|
380
|
+
dataValidations: zod.z.array(ContentSheetDataValidationSchema).optional(),
|
|
381
|
+
conditionalFormats: zod.z.array(ContentSheetConditionalFormatSchema).optional(),
|
|
382
|
+
source: require_source.SourceResidueSchema.optional(),
|
|
383
|
+
...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
|
|
384
|
+
});
|
|
385
|
+
//#endregion
|
|
386
|
+
exports.ContentCellBordersSchema = ContentCellBordersSchema;
|
|
387
|
+
exports.ContentCellFillSchema = ContentCellFillSchema;
|
|
388
|
+
exports.ContentCellPatternTypeSchema = ContentCellPatternTypeSchema;
|
|
389
|
+
exports.ContentCellValueSchema = ContentCellValueSchema;
|
|
390
|
+
exports.ContentSheetCellCommentSchema = ContentSheetCellCommentSchema;
|
|
391
|
+
exports.ContentSheetCellSchema = ContentSheetCellSchema;
|
|
392
|
+
exports.ContentSheetColumnSchema = ContentSheetColumnSchema;
|
|
393
|
+
exports.ContentSheetConditionalFormatSchema = ContentSheetConditionalFormatSchema;
|
|
394
|
+
exports.ContentSheetConditionalFormatStyleSchema = ContentSheetConditionalFormatStyleSchema;
|
|
395
|
+
exports.ContentSheetConditionalFormatValueSchema = ContentSheetConditionalFormatValueSchema;
|
|
396
|
+
exports.ContentSheetDataValidationSchema = ContentSheetDataValidationSchema;
|
|
397
|
+
exports.ContentSheetDataValidationTypeSchema = ContentSheetDataValidationTypeSchema;
|
|
398
|
+
exports.ContentSheetImageSchema = ContentSheetImageSchema;
|
|
399
|
+
exports.ContentSheetPrintRangeSchema = ContentSheetPrintRangeSchema;
|
|
400
|
+
exports.ContentSheetPrintSettingsSchema = ContentSheetPrintSettingsSchema;
|
|
401
|
+
exports.ContentSheetRangeSchema = ContentSheetRangeSchema;
|
|
402
|
+
exports.ContentSheetRepeatRangeSchema = ContentSheetRepeatRangeSchema;
|
|
403
|
+
exports.ContentSheetRowSchema = ContentSheetRowSchema;
|
|
404
|
+
exports.ContentSheetSchema = ContentSheetSchema;
|
|
405
|
+
exports.DecimalStringSchema = DecimalStringSchema;
|
|
406
|
+
exports.SheetRuleOperatorSchema = SheetRuleOperatorSchema;
|
|
407
|
+
exports.resolveCellFillColor = resolveCellFillColor;
|
|
408
|
+
exports.unrecognizedFillKind = unrecognizedFillKind;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as ContentCellValue, At as ContentSheetSchema, Ct as ContentSheetPrintSettingsSchema, Dt as ContentSheetRepeatRangeSchema, Et as ContentSheetRepeatRange, Ft as resolveCellFillColor, It as unrecognizedFillKind, J as ContentCellBordersSchema, Mt as DecimalStringSchema, Nt as SheetRuleOperator, Ot as ContentSheetRow, Pt as SheetRuleOperatorSchema, Q as ContentCellPatternTypeSchema, St as ContentSheetPrintSettings, Tt as ContentSheetRangeSchema, X as ContentCellFillSchema, Y as ContentCellFill, Z as ContentCellPatternType, _t as ContentSheetDataValidationTypeSchema, at as ContentSheetCellSchema, bt as ContentSheetPrintRange, ct as ContentSheetConditionalFormat, dt as ContentSheetConditionalFormatStyleSchema, et as ContentCellValueSchema, ft as ContentSheetConditionalFormatValue, gt as ContentSheetDataValidationType, ht as ContentSheetDataValidationSchema, it as ContentSheetCellCommentSchema, jt as DecimalString, kt as ContentSheetRowSchema, lt as ContentSheetConditionalFormatSchema, mt as ContentSheetDataValidation, nt as ContentSheetCell, ot as ContentSheetColumn, pt as ContentSheetConditionalFormatValueSchema, q as ContentCellBorders, rt as ContentSheetCellComment, st as ContentSheetColumnSchema, tt as ContentSheet, ut as ContentSheetConditionalFormatStyle, vt as ContentSheetImage, wt as ContentSheetRange, xt as ContentSheetPrintRangeSchema, yt as ContentSheetImageSchema } from "./content-Bm02PmEB.cjs";
|
|
2
|
+
export { ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, DecimalString, DecimalStringSchema, SheetRuleOperator, SheetRuleOperatorSchema, resolveCellFillColor, unrecognizedFillKind };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as ContentCellValue, At as ContentSheetSchema, Ct as ContentSheetPrintSettingsSchema, Dt as ContentSheetRepeatRangeSchema, Et as ContentSheetRepeatRange, Ft as resolveCellFillColor, It as unrecognizedFillKind, J as ContentCellBordersSchema, Mt as DecimalStringSchema, Nt as SheetRuleOperator, Ot as ContentSheetRow, Pt as SheetRuleOperatorSchema, Q as ContentCellPatternTypeSchema, St as ContentSheetPrintSettings, Tt as ContentSheetRangeSchema, X as ContentCellFillSchema, Y as ContentCellFill, Z as ContentCellPatternType, _t as ContentSheetDataValidationTypeSchema, at as ContentSheetCellSchema, bt as ContentSheetPrintRange, ct as ContentSheetConditionalFormat, dt as ContentSheetConditionalFormatStyleSchema, et as ContentCellValueSchema, ft as ContentSheetConditionalFormatValue, gt as ContentSheetDataValidationType, ht as ContentSheetDataValidationSchema, it as ContentSheetCellCommentSchema, jt as DecimalString, kt as ContentSheetRowSchema, lt as ContentSheetConditionalFormatSchema, mt as ContentSheetDataValidation, nt as ContentSheetCell, ot as ContentSheetColumn, pt as ContentSheetConditionalFormatValueSchema, q as ContentCellBorders, rt as ContentSheetCellComment, st as ContentSheetColumnSchema, tt as ContentSheet, ut as ContentSheetConditionalFormatStyle, vt as ContentSheetImage, wt as ContentSheetRange, xt as ContentSheetPrintRangeSchema, yt as ContentSheetImageSchema } from "./content-C6lWHtDr.js";
|
|
2
|
+
export { ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, DecimalString, DecimalStringSchema, SheetRuleOperator, SheetRuleOperatorSchema, resolveCellFillColor, unrecognizedFillKind };
|