@divkitframework/jsonbuilder 27.4.0 → 28.1.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/es/jsonbuilder.js +105 -2
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +187 -10
- package/dist/jsonbuilder.js +115 -1
- package/dist/jsonbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/jsonbuilder.d.ts
CHANGED
|
@@ -91,6 +91,16 @@ declare type IntBoolean = 1 | 0 | true | false;
|
|
|
91
91
|
declare function treeWalkDFS(tree: unknown, nodeAction: (x: unknown, path: string[]) => void): void;
|
|
92
92
|
declare function copyTemplates<T extends ITemplates>(templates: T): T;
|
|
93
93
|
|
|
94
|
+
declare class ArrayValue<T extends ArrayValueProps = ArrayValueProps> {
|
|
95
|
+
readonly _props?: Exact<ArrayValueProps, T>;
|
|
96
|
+
readonly type = "array";
|
|
97
|
+
value: Type<unknown[]>;
|
|
98
|
+
constructor(props: Exact<ArrayValueProps, T>);
|
|
99
|
+
}
|
|
100
|
+
interface ArrayValueProps {
|
|
101
|
+
value: Type<unknown[]>;
|
|
102
|
+
}
|
|
103
|
+
|
|
94
104
|
/**
|
|
95
105
|
* An arbitrary array in JSON format.
|
|
96
106
|
*/
|
|
@@ -118,6 +128,16 @@ interface ArrayVariableProps {
|
|
|
118
128
|
value: Type<unknown[]>;
|
|
119
129
|
}
|
|
120
130
|
|
|
131
|
+
declare class BooleanValue<T extends BooleanValueProps = BooleanValueProps> {
|
|
132
|
+
readonly _props?: Exact<BooleanValueProps, T>;
|
|
133
|
+
readonly type = "boolean";
|
|
134
|
+
value: Type<boolean | DivExpression>;
|
|
135
|
+
constructor(props: Exact<BooleanValueProps, T>);
|
|
136
|
+
}
|
|
137
|
+
interface BooleanValueProps {
|
|
138
|
+
value: Type<boolean | DivExpression>;
|
|
139
|
+
}
|
|
140
|
+
|
|
121
141
|
/**
|
|
122
142
|
* A Boolean variable in binary format.
|
|
123
143
|
*/
|
|
@@ -145,6 +165,16 @@ interface BooleanVariableProps {
|
|
|
145
165
|
value: Type<IntBoolean>;
|
|
146
166
|
}
|
|
147
167
|
|
|
168
|
+
declare class ColorValue<T extends ColorValueProps = ColorValueProps> {
|
|
169
|
+
readonly _props?: Exact<ColorValueProps, T>;
|
|
170
|
+
readonly type = "color";
|
|
171
|
+
value: Type<string | DivExpression>;
|
|
172
|
+
constructor(props: Exact<ColorValueProps, T>);
|
|
173
|
+
}
|
|
174
|
+
interface ColorValueProps {
|
|
175
|
+
value: Type<string | DivExpression>;
|
|
176
|
+
}
|
|
177
|
+
|
|
148
178
|
/**
|
|
149
179
|
* Variable — HEX color as a string.
|
|
150
180
|
*/
|
|
@@ -172,6 +202,16 @@ interface ColorVariableProps {
|
|
|
172
202
|
value: Type<string>;
|
|
173
203
|
}
|
|
174
204
|
|
|
205
|
+
declare class DictValue<T extends DictValueProps = DictValueProps> {
|
|
206
|
+
readonly _props?: Exact<DictValueProps, T>;
|
|
207
|
+
readonly type = "dict";
|
|
208
|
+
value: Type<{}>;
|
|
209
|
+
constructor(props: Exact<DictValueProps, T>);
|
|
210
|
+
}
|
|
211
|
+
interface DictValueProps {
|
|
212
|
+
value: Type<{}>;
|
|
213
|
+
}
|
|
214
|
+
|
|
175
215
|
/**
|
|
176
216
|
* An arbitrary object in JSON format.
|
|
177
217
|
*/
|
|
@@ -290,6 +330,7 @@ interface IDivAction {
|
|
|
290
330
|
* The tab in which the URL must be opened.
|
|
291
331
|
*/
|
|
292
332
|
target?: Type<DivActionTarget | DivExpression>;
|
|
333
|
+
typed?: Type<DivActionTyped>;
|
|
293
334
|
/**
|
|
294
335
|
* URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
|
|
295
336
|
* elements](../../interaction.dita).
|
|
@@ -312,6 +353,55 @@ interface IDivActionMenuItem {
|
|
|
312
353
|
text: Type<string | DivExpression>;
|
|
313
354
|
}
|
|
314
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Insert value to array
|
|
358
|
+
*/
|
|
359
|
+
declare class DivActionArrayInsertValue<T extends DivActionArrayInsertValueProps = DivActionArrayInsertValueProps> {
|
|
360
|
+
readonly _props?: Exact<DivActionArrayInsertValueProps, T>;
|
|
361
|
+
readonly type = "array_insert_value";
|
|
362
|
+
index?: Type<number | DivExpression>;
|
|
363
|
+
value: Type<DivTypedValue>;
|
|
364
|
+
variable_name: Type<string | DivExpression>;
|
|
365
|
+
constructor(props: Exact<DivActionArrayInsertValueProps, T>);
|
|
366
|
+
}
|
|
367
|
+
interface DivActionArrayInsertValueProps {
|
|
368
|
+
index?: Type<number | DivExpression>;
|
|
369
|
+
value: Type<DivTypedValue>;
|
|
370
|
+
variable_name: Type<string | DivExpression>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Remove value from array
|
|
375
|
+
*/
|
|
376
|
+
declare class DivActionArrayRemoveValue<T extends DivActionArrayRemoveValueProps = DivActionArrayRemoveValueProps> {
|
|
377
|
+
readonly _props?: Exact<DivActionArrayRemoveValueProps, T>;
|
|
378
|
+
readonly type = "array_remove_value";
|
|
379
|
+
index: Type<number | DivExpression>;
|
|
380
|
+
variable_name: Type<string | DivExpression>;
|
|
381
|
+
constructor(props: Exact<DivActionArrayRemoveValueProps, T>);
|
|
382
|
+
}
|
|
383
|
+
interface DivActionArrayRemoveValueProps {
|
|
384
|
+
index: Type<number | DivExpression>;
|
|
385
|
+
variable_name: Type<string | DivExpression>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Sets variable value
|
|
390
|
+
*/
|
|
391
|
+
declare class DivActionSetVariable<T extends DivActionSetVariableProps = DivActionSetVariableProps> {
|
|
392
|
+
readonly _props?: Exact<DivActionSetVariableProps, T>;
|
|
393
|
+
readonly type = "set_variable";
|
|
394
|
+
value: Type<DivTypedValue>;
|
|
395
|
+
variable_name: Type<string | DivExpression>;
|
|
396
|
+
constructor(props: Exact<DivActionSetVariableProps, T>);
|
|
397
|
+
}
|
|
398
|
+
interface DivActionSetVariableProps {
|
|
399
|
+
value: Type<DivTypedValue>;
|
|
400
|
+
variable_name: Type<string | DivExpression>;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare type DivActionTyped = DivActionArrayInsertValue | DivActionArrayRemoveValue | DivActionSetVariable;
|
|
404
|
+
|
|
315
405
|
declare type DivAlignmentHorizontal = 'left' | 'center' | 'right' | 'start' | 'end';
|
|
316
406
|
|
|
317
407
|
declare type DivAlignmentVertical = 'top' | 'center' | 'bottom' | 'baseline';
|
|
@@ -551,7 +641,7 @@ interface IDivBorder {
|
|
|
551
641
|
*/
|
|
552
642
|
has_shadow?: Type<IntBoolean | DivExpression>;
|
|
553
643
|
/**
|
|
554
|
-
* Shadow parameters.
|
|
644
|
+
* Shadow parameters applied to the stroke of the element.
|
|
555
645
|
*/
|
|
556
646
|
shadow?: Type<IDivShadow>;
|
|
557
647
|
/**
|
|
@@ -1440,6 +1530,7 @@ interface IDivDisappearAction {
|
|
|
1440
1530
|
* Referer URL for logging.
|
|
1441
1531
|
*/
|
|
1442
1532
|
referer?: Type<string | DivExpression>;
|
|
1533
|
+
typed?: Type<DivActionTyped>;
|
|
1443
1534
|
/**
|
|
1444
1535
|
* URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
|
|
1445
1536
|
* elements](../../interaction.dita).
|
|
@@ -4582,7 +4673,7 @@ interface DivPercentageSizeProps {
|
|
|
4582
4673
|
}
|
|
4583
4674
|
|
|
4584
4675
|
/**
|
|
4585
|
-
* Mask for entering
|
|
4676
|
+
* Mask for entering phone numbers with dynamic regional format identification.
|
|
4586
4677
|
*/
|
|
4587
4678
|
declare class DivPhoneInputMask<T extends DivPhoneInputMaskProps = DivPhoneInputMaskProps> {
|
|
4588
4679
|
readonly _props?: Exact<DivPhoneInputMaskProps, T>;
|
|
@@ -4600,7 +4691,7 @@ interface DivPhoneInputMaskProps {
|
|
|
4600
4691
|
raw_text_variable: Type<string>;
|
|
4601
4692
|
}
|
|
4602
4693
|
|
|
4603
|
-
declare type DivPivot = DivPivotFixed | DivPivotPercentage;
|
|
4694
|
+
declare type DivPivot = DivPivotFixed | DivPivotPercentage | DivPivotFixedProps;
|
|
4604
4695
|
|
|
4605
4696
|
/**
|
|
4606
4697
|
* Fixed coordinates of the rotation axis.
|
|
@@ -5629,6 +5720,7 @@ interface IDivSightAction {
|
|
|
5629
5720
|
* Referer URL for logging.
|
|
5630
5721
|
*/
|
|
5631
5722
|
referer?: Type<string | DivExpression>;
|
|
5723
|
+
typed?: Type<DivActionTyped>;
|
|
5632
5724
|
/**
|
|
5633
5725
|
* URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
|
|
5634
5726
|
* elements](../../interaction.dita).
|
|
@@ -5772,6 +5864,10 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
|
|
|
5772
5864
|
* Internal margins from the element stroke.
|
|
5773
5865
|
*/
|
|
5774
5866
|
paddings?: Type<IDivEdgeInsets>;
|
|
5867
|
+
/**
|
|
5868
|
+
* Style of sections of a scale.
|
|
5869
|
+
*/
|
|
5870
|
+
ranges?: Type<NonEmptyArray<IDivSliderRange>>;
|
|
5775
5871
|
/**
|
|
5776
5872
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5777
5873
|
*/
|
|
@@ -5942,6 +6038,10 @@ interface DivSliderProps {
|
|
|
5942
6038
|
* Internal margins from the element stroke.
|
|
5943
6039
|
*/
|
|
5944
6040
|
paddings?: Type<IDivEdgeInsets>;
|
|
6041
|
+
/**
|
|
6042
|
+
* Style of sections of a scale.
|
|
6043
|
+
*/
|
|
6044
|
+
ranges?: Type<NonEmptyArray<IDivSliderRange>>;
|
|
5945
6045
|
/**
|
|
5946
6046
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5947
6047
|
*/
|
|
@@ -6042,6 +6142,28 @@ interface DivSliderProps {
|
|
|
6042
6142
|
*/
|
|
6043
6143
|
width?: Type<DivSize>;
|
|
6044
6144
|
}
|
|
6145
|
+
interface IDivSliderRange {
|
|
6146
|
+
/**
|
|
6147
|
+
* End of section.
|
|
6148
|
+
*/
|
|
6149
|
+
end?: Type<number | DivExpression>;
|
|
6150
|
+
/**
|
|
6151
|
+
* Margins of section. Used only horizontal margins.
|
|
6152
|
+
*/
|
|
6153
|
+
margins?: Type<IDivEdgeInsets>;
|
|
6154
|
+
/**
|
|
6155
|
+
* Start of section.
|
|
6156
|
+
*/
|
|
6157
|
+
start?: Type<number | DivExpression>;
|
|
6158
|
+
/**
|
|
6159
|
+
* Style of the active part of a scale.
|
|
6160
|
+
*/
|
|
6161
|
+
track_active_style?: Type<DivDrawable>;
|
|
6162
|
+
/**
|
|
6163
|
+
* Style of the inactive part of a scale.
|
|
6164
|
+
*/
|
|
6165
|
+
track_inactive_style?: Type<DivDrawable>;
|
|
6166
|
+
}
|
|
6045
6167
|
interface IDivSliderTextStyle {
|
|
6046
6168
|
/**
|
|
6047
6169
|
* Font size.
|
|
@@ -6168,9 +6290,9 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
|
|
|
6168
6290
|
*/
|
|
6169
6291
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6170
6292
|
/**
|
|
6171
|
-
*
|
|
6172
|
-
*
|
|
6173
|
-
*
|
|
6293
|
+
* The name of the variable that stores the ID for the current state. If the variable changes,
|
|
6294
|
+
* the active state will also change. The variable is prioritized over the default_state_id
|
|
6295
|
+
* parameter.
|
|
6174
6296
|
*/
|
|
6175
6297
|
state_id_variable?: Type<string>;
|
|
6176
6298
|
/**
|
|
@@ -6315,9 +6437,9 @@ interface DivStateProps {
|
|
|
6315
6437
|
*/
|
|
6316
6438
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6317
6439
|
/**
|
|
6318
|
-
*
|
|
6319
|
-
*
|
|
6320
|
-
*
|
|
6440
|
+
* The name of the variable that stores the ID for the current state. If the variable changes,
|
|
6441
|
+
* the active state will also change. The variable is prioritized over the default_state_id
|
|
6442
|
+
* parameter.
|
|
6321
6443
|
*/
|
|
6322
6444
|
state_id_variable?: Type<string>;
|
|
6323
6445
|
/**
|
|
@@ -7063,6 +7185,10 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
7063
7185
|
* Gradient text color.
|
|
7064
7186
|
*/
|
|
7065
7187
|
text_gradient?: Type<DivTextGradient>;
|
|
7188
|
+
/**
|
|
7189
|
+
* Shadow parameters applied to the text.
|
|
7190
|
+
*/
|
|
7191
|
+
text_shadow?: Type<IDivShadow>;
|
|
7066
7192
|
/**
|
|
7067
7193
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
7068
7194
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -7292,6 +7418,10 @@ interface DivTextProps {
|
|
|
7292
7418
|
* Gradient text color.
|
|
7293
7419
|
*/
|
|
7294
7420
|
text_gradient?: Type<DivTextGradient>;
|
|
7421
|
+
/**
|
|
7422
|
+
* Shadow parameters applied to the text.
|
|
7423
|
+
*/
|
|
7424
|
+
text_shadow?: Type<IDivShadow>;
|
|
7295
7425
|
/**
|
|
7296
7426
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
7297
7427
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -7461,6 +7591,10 @@ interface IDivTextRange {
|
|
|
7461
7591
|
* Text color.
|
|
7462
7592
|
*/
|
|
7463
7593
|
text_color?: Type<string | DivExpression>;
|
|
7594
|
+
/**
|
|
7595
|
+
* Shadow parameters applied to a range of characters.
|
|
7596
|
+
*/
|
|
7597
|
+
text_shadow?: Type<IDivShadow>;
|
|
7464
7598
|
/**
|
|
7465
7599
|
* Top margin of the character range. Units specified in `font_size_unit`.
|
|
7466
7600
|
*/
|
|
@@ -7621,6 +7755,8 @@ interface IDivTrigger {
|
|
|
7621
7755
|
}
|
|
7622
7756
|
declare type DivTriggerMode = 'on_condition' | 'on_variable';
|
|
7623
7757
|
|
|
7758
|
+
declare type DivTypedValue = StringValue | IntegerValue | NumberValue | ColorValue | BooleanValue | UrlValue | DictValue | ArrayValue;
|
|
7759
|
+
|
|
7624
7760
|
declare type DivVariable = StringVariable | NumberVariable | IntegerVariable | BooleanVariable | ColorVariable | UrlVariable | DictVariable | ArrayVariable;
|
|
7625
7761
|
|
|
7626
7762
|
/**
|
|
@@ -8064,6 +8200,7 @@ interface IDivVisibilityAction {
|
|
|
8064
8200
|
* Referer URL for logging.
|
|
8065
8201
|
*/
|
|
8066
8202
|
referer?: Type<string | DivExpression>;
|
|
8203
|
+
typed?: Type<DivActionTyped>;
|
|
8067
8204
|
/**
|
|
8068
8205
|
* URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
|
|
8069
8206
|
* elements](../../interaction.dita).
|
|
@@ -8125,6 +8262,16 @@ interface IDivWrapContentSizeConstraintSize {
|
|
|
8125
8262
|
value: Type<number | DivExpression>;
|
|
8126
8263
|
}
|
|
8127
8264
|
|
|
8265
|
+
declare class IntegerValue<T extends IntegerValueProps = IntegerValueProps> {
|
|
8266
|
+
readonly _props?: Exact<IntegerValueProps, T>;
|
|
8267
|
+
readonly type = "integer";
|
|
8268
|
+
value: Type<number | DivExpression>;
|
|
8269
|
+
constructor(props: Exact<IntegerValueProps, T>);
|
|
8270
|
+
}
|
|
8271
|
+
interface IntegerValueProps {
|
|
8272
|
+
value: Type<number | DivExpression>;
|
|
8273
|
+
}
|
|
8274
|
+
|
|
8128
8275
|
/**
|
|
8129
8276
|
* An integer variable.
|
|
8130
8277
|
*/
|
|
@@ -8152,6 +8299,16 @@ interface IntegerVariableProps {
|
|
|
8152
8299
|
value: Type<number>;
|
|
8153
8300
|
}
|
|
8154
8301
|
|
|
8302
|
+
declare class NumberValue<T extends NumberValueProps = NumberValueProps> {
|
|
8303
|
+
readonly _props?: Exact<NumberValueProps, T>;
|
|
8304
|
+
readonly type = "number";
|
|
8305
|
+
value: Type<number | DivExpression>;
|
|
8306
|
+
constructor(props: Exact<NumberValueProps, T>);
|
|
8307
|
+
}
|
|
8308
|
+
interface NumberValueProps {
|
|
8309
|
+
value: Type<number | DivExpression>;
|
|
8310
|
+
}
|
|
8311
|
+
|
|
8155
8312
|
/**
|
|
8156
8313
|
* A floating-point variable.
|
|
8157
8314
|
*/
|
|
@@ -8179,6 +8336,16 @@ interface NumberVariableProps {
|
|
|
8179
8336
|
value: Type<number>;
|
|
8180
8337
|
}
|
|
8181
8338
|
|
|
8339
|
+
declare class StringValue<T extends StringValueProps = StringValueProps> {
|
|
8340
|
+
readonly _props?: Exact<StringValueProps, T>;
|
|
8341
|
+
readonly type = "string";
|
|
8342
|
+
value: Type<string | DivExpression>;
|
|
8343
|
+
constructor(props: Exact<StringValueProps, T>);
|
|
8344
|
+
}
|
|
8345
|
+
interface StringValueProps {
|
|
8346
|
+
value: Type<string | DivExpression>;
|
|
8347
|
+
}
|
|
8348
|
+
|
|
8182
8349
|
/**
|
|
8183
8350
|
* A string variable.
|
|
8184
8351
|
*/
|
|
@@ -8206,6 +8373,16 @@ interface StringVariableProps {
|
|
|
8206
8373
|
value: Type<string>;
|
|
8207
8374
|
}
|
|
8208
8375
|
|
|
8376
|
+
declare class UrlValue<T extends UrlValueProps = UrlValueProps> {
|
|
8377
|
+
readonly _props?: Exact<UrlValueProps, T>;
|
|
8378
|
+
readonly type = "url";
|
|
8379
|
+
value: Type<string | DivExpression>;
|
|
8380
|
+
constructor(props: Exact<UrlValueProps, T>);
|
|
8381
|
+
}
|
|
8382
|
+
interface UrlValueProps {
|
|
8383
|
+
value: Type<string | DivExpression>;
|
|
8384
|
+
}
|
|
8385
|
+
|
|
8209
8386
|
/**
|
|
8210
8387
|
* Variable — URL as a string.
|
|
8211
8388
|
*/
|
|
@@ -8388,4 +8565,4 @@ declare function rewriteTemplateVersions<T extends ITemplates>(templates: T, res
|
|
|
8388
8565
|
};
|
|
8389
8566
|
};
|
|
8390
8567
|
|
|
8391
|
-
export { ArrayVariable, ArrayVariableProps, BooleanVariable, BooleanVariableProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, DictVariable, DictVariableProps, Div, DivAccessibilityMode, DivAccessibilityType, DivActionTarget, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivBlendMode, DivBlur, DivBlurProps, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivCircleShape, DivCircleShapeProps, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivContentAlignmentHorizontal, DivContentAlignmentVertical, DivCount, DivCurrencyInputMask, DivCurrencyInputMaskProps, DivCustom, DivCustomProps, DivDefaultIndicatorItemPlacement, DivDefaultIndicatorItemPlacementProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFilter, DivFixedCount, DivFixedCountProps, DivFixedLengthInputMask, DivFixedLengthInputMaskProps, DivFixedSize, DivFixedSizeProps, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorItemPlacement, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputMask, DivInputProps, DivInputValidator, DivInputValidatorExpression, DivInputValidatorExpressionProps, DivInputValidatorRegex, DivInputValidatorRegexProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivNinePatchBackground, DivNinePatchBackgroundProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPhoneInputMask, DivPhoneInputMaskProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSelect, DivSelectProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivStretchIndicatorItemPlacement, DivStretchIndicatorItemPlacementProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextRangeBackground, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivVariable, DivVideo, DivVideoProps, DivVideoSource, DivVideoSourceProps, DivVideoSourceResolution, DivVideoSourceResolutionProps, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAbsoluteEdgeInsets, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivContainerSeparator, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDisappearAction, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFixedLengthInputMaskPatternElement, IDivFocus, IDivFocusNextFocusIds, IDivInputMaskBase, IDivInputNativeInterface, IDivInputValidatorBase, IDivPatch, IDivPatchChange, IDivPoint, IDivSelectOption, IDivSeparatorDelimiterStyle, IDivShadow, IDivSightAction, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTextRangeBorder, IDivTimer, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, IDivWrapContentSizeConstraintSize, ITemplates, IntBoolean, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberVariable, NumberVariableProps, SafeDivExpression, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
|
|
8568
|
+
export { ArrayValue, ArrayValueProps, ArrayVariable, ArrayVariableProps, BooleanValue, BooleanValueProps, BooleanVariable, BooleanVariableProps, ColorValue, ColorValueProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, DictValue, DictValueProps, DictVariable, DictVariableProps, Div, DivAccessibilityMode, DivAccessibilityType, DivActionArrayInsertValue, DivActionArrayInsertValueProps, DivActionArrayRemoveValue, DivActionArrayRemoveValueProps, DivActionSetVariable, DivActionSetVariableProps, DivActionTarget, DivActionTyped, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivBlendMode, DivBlur, DivBlurProps, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivCircleShape, DivCircleShapeProps, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivContentAlignmentHorizontal, DivContentAlignmentVertical, DivCount, DivCurrencyInputMask, DivCurrencyInputMaskProps, DivCustom, DivCustomProps, DivDefaultIndicatorItemPlacement, DivDefaultIndicatorItemPlacementProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFilter, DivFixedCount, DivFixedCountProps, DivFixedLengthInputMask, DivFixedLengthInputMaskProps, DivFixedSize, DivFixedSizeProps, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorItemPlacement, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputMask, DivInputProps, DivInputValidator, DivInputValidatorExpression, DivInputValidatorExpressionProps, DivInputValidatorRegex, DivInputValidatorRegexProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivNinePatchBackground, DivNinePatchBackgroundProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPhoneInputMask, DivPhoneInputMaskProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSelect, DivSelectProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivStretchIndicatorItemPlacement, DivStretchIndicatorItemPlacementProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextRangeBackground, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivTypedValue, DivVariable, DivVideo, DivVideoProps, DivVideoSource, DivVideoSourceProps, DivVideoSourceResolution, DivVideoSourceResolutionProps, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAbsoluteEdgeInsets, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivContainerSeparator, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDisappearAction, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFixedLengthInputMaskPatternElement, IDivFocus, IDivFocusNextFocusIds, IDivInputMaskBase, IDivInputNativeInterface, IDivInputValidatorBase, IDivPatch, IDivPatchChange, IDivPoint, IDivSelectOption, IDivSeparatorDelimiterStyle, IDivShadow, IDivSightAction, IDivSliderRange, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTextRangeBorder, IDivTimer, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, IDivWrapContentSizeConstraintSize, ITemplates, IntBoolean, IntegerValue, IntegerValueProps, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberValue, NumberValueProps, NumberVariable, NumberVariableProps, SafeDivExpression, StringValue, StringValueProps, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlValue, UrlValueProps, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
|
package/dist/jsonbuilder.js
CHANGED
|
@@ -4,6 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
|
|
7
|
+
// Generated code. Do not modify.
|
|
8
|
+
class ArrayValue {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
this.type = 'array';
|
|
11
|
+
this.value = props.value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
// Generated code. Do not modify.
|
|
8
16
|
/**
|
|
9
17
|
* An arbitrary array in JSON format.
|
|
@@ -16,6 +24,14 @@ class ArrayVariable {
|
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
|
|
27
|
+
// Generated code. Do not modify.
|
|
28
|
+
class BooleanValue {
|
|
29
|
+
constructor(props) {
|
|
30
|
+
this.type = 'boolean';
|
|
31
|
+
this.value = props.value;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
19
35
|
// Generated code. Do not modify.
|
|
20
36
|
/**
|
|
21
37
|
* A Boolean variable in binary format.
|
|
@@ -28,6 +44,14 @@ class BooleanVariable {
|
|
|
28
44
|
}
|
|
29
45
|
}
|
|
30
46
|
|
|
47
|
+
// Generated code. Do not modify.
|
|
48
|
+
class ColorValue {
|
|
49
|
+
constructor(props) {
|
|
50
|
+
this.type = 'color';
|
|
51
|
+
this.value = props.value;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
31
55
|
// Generated code. Do not modify.
|
|
32
56
|
/**
|
|
33
57
|
* Variable — HEX color as a string.
|
|
@@ -40,6 +64,14 @@ class ColorVariable {
|
|
|
40
64
|
}
|
|
41
65
|
}
|
|
42
66
|
|
|
67
|
+
// Generated code. Do not modify.
|
|
68
|
+
class DictValue {
|
|
69
|
+
constructor(props) {
|
|
70
|
+
this.type = 'dict';
|
|
71
|
+
this.value = props.value;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
43
75
|
// Generated code. Do not modify.
|
|
44
76
|
/**
|
|
45
77
|
* An arbitrary object in JSON format.
|
|
@@ -52,6 +84,43 @@ class DictVariable {
|
|
|
52
84
|
}
|
|
53
85
|
}
|
|
54
86
|
|
|
87
|
+
// Generated code. Do not modify.
|
|
88
|
+
/**
|
|
89
|
+
* Insert value to array
|
|
90
|
+
*/
|
|
91
|
+
class DivActionArrayInsertValue {
|
|
92
|
+
constructor(props) {
|
|
93
|
+
this.type = 'array_insert_value';
|
|
94
|
+
this.index = props.index;
|
|
95
|
+
this.value = props.value;
|
|
96
|
+
this.variable_name = props.variable_name;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Generated code. Do not modify.
|
|
101
|
+
/**
|
|
102
|
+
* Remove value from array
|
|
103
|
+
*/
|
|
104
|
+
class DivActionArrayRemoveValue {
|
|
105
|
+
constructor(props) {
|
|
106
|
+
this.type = 'array_remove_value';
|
|
107
|
+
this.index = props.index;
|
|
108
|
+
this.variable_name = props.variable_name;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Generated code. Do not modify.
|
|
113
|
+
/**
|
|
114
|
+
* Sets variable value
|
|
115
|
+
*/
|
|
116
|
+
class DivActionSetVariable {
|
|
117
|
+
constructor(props) {
|
|
118
|
+
this.type = 'set_variable';
|
|
119
|
+
this.value = props.value;
|
|
120
|
+
this.variable_name = props.variable_name;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
55
124
|
// Generated code. Do not modify.
|
|
56
125
|
/**
|
|
57
126
|
* A set of animations to be applied simultaneously.
|
|
@@ -740,7 +809,7 @@ class DivPercentageSize {
|
|
|
740
809
|
|
|
741
810
|
// Generated code. Do not modify.
|
|
742
811
|
/**
|
|
743
|
-
* Mask for entering
|
|
812
|
+
* Mask for entering phone numbers with dynamic regional format identification.
|
|
744
813
|
*/
|
|
745
814
|
class DivPhoneInputMask {
|
|
746
815
|
constructor(props) {
|
|
@@ -991,6 +1060,7 @@ class DivSlider {
|
|
|
991
1060
|
this.max_value = props.max_value;
|
|
992
1061
|
this.min_value = props.min_value;
|
|
993
1062
|
this.paddings = props.paddings;
|
|
1063
|
+
this.ranges = props.ranges;
|
|
994
1064
|
this.row_span = props.row_span;
|
|
995
1065
|
this.secondary_value_accessibility = props.secondary_value_accessibility;
|
|
996
1066
|
this.selected_actions = props.selected_actions;
|
|
@@ -1176,6 +1246,7 @@ class DivText {
|
|
|
1176
1246
|
this.text_alignment_vertical = props.text_alignment_vertical;
|
|
1177
1247
|
this.text_color = props.text_color;
|
|
1178
1248
|
this.text_gradient = props.text_gradient;
|
|
1249
|
+
this.text_shadow = props.text_shadow;
|
|
1179
1250
|
this.tooltips = props.tooltips;
|
|
1180
1251
|
this.transform = props.transform;
|
|
1181
1252
|
this.transition_change = props.transition_change;
|
|
@@ -1274,6 +1345,14 @@ class DivWrapContentSize {
|
|
|
1274
1345
|
}
|
|
1275
1346
|
}
|
|
1276
1347
|
|
|
1348
|
+
// Generated code. Do not modify.
|
|
1349
|
+
class IntegerValue {
|
|
1350
|
+
constructor(props) {
|
|
1351
|
+
this.type = 'integer';
|
|
1352
|
+
this.value = props.value;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1277
1356
|
// Generated code. Do not modify.
|
|
1278
1357
|
/**
|
|
1279
1358
|
* An integer variable.
|
|
@@ -1286,6 +1365,14 @@ class IntegerVariable {
|
|
|
1286
1365
|
}
|
|
1287
1366
|
}
|
|
1288
1367
|
|
|
1368
|
+
// Generated code. Do not modify.
|
|
1369
|
+
class NumberValue {
|
|
1370
|
+
constructor(props) {
|
|
1371
|
+
this.type = 'number';
|
|
1372
|
+
this.value = props.value;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1289
1376
|
// Generated code. Do not modify.
|
|
1290
1377
|
/**
|
|
1291
1378
|
* A floating-point variable.
|
|
@@ -1298,6 +1385,14 @@ class NumberVariable {
|
|
|
1298
1385
|
}
|
|
1299
1386
|
}
|
|
1300
1387
|
|
|
1388
|
+
// Generated code. Do not modify.
|
|
1389
|
+
class StringValue {
|
|
1390
|
+
constructor(props) {
|
|
1391
|
+
this.type = 'string';
|
|
1392
|
+
this.value = props.value;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1301
1396
|
// Generated code. Do not modify.
|
|
1302
1397
|
/**
|
|
1303
1398
|
* A string variable.
|
|
@@ -1310,6 +1405,14 @@ class StringVariable {
|
|
|
1310
1405
|
}
|
|
1311
1406
|
}
|
|
1312
1407
|
|
|
1408
|
+
// Generated code. Do not modify.
|
|
1409
|
+
class UrlValue {
|
|
1410
|
+
constructor(props) {
|
|
1411
|
+
this.type = 'url';
|
|
1412
|
+
this.value = props.value;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1313
1416
|
// Generated code. Do not modify.
|
|
1314
1417
|
/**
|
|
1315
1418
|
* Variable — URL as a string.
|
|
@@ -1698,10 +1801,17 @@ function rewriteTemplateVersions(templates, resolvedNames) {
|
|
|
1698
1801
|
return rewriteNames(templates, rename, resolvedNames);
|
|
1699
1802
|
}
|
|
1700
1803
|
|
|
1804
|
+
exports.ArrayValue = ArrayValue;
|
|
1701
1805
|
exports.ArrayVariable = ArrayVariable;
|
|
1806
|
+
exports.BooleanValue = BooleanValue;
|
|
1702
1807
|
exports.BooleanVariable = BooleanVariable;
|
|
1808
|
+
exports.ColorValue = ColorValue;
|
|
1703
1809
|
exports.ColorVariable = ColorVariable;
|
|
1810
|
+
exports.DictValue = DictValue;
|
|
1704
1811
|
exports.DictVariable = DictVariable;
|
|
1812
|
+
exports.DivActionArrayInsertValue = DivActionArrayInsertValue;
|
|
1813
|
+
exports.DivActionArrayRemoveValue = DivActionArrayRemoveValue;
|
|
1814
|
+
exports.DivActionSetVariable = DivActionSetVariable;
|
|
1705
1815
|
exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
|
|
1706
1816
|
exports.DivBlur = DivBlur;
|
|
1707
1817
|
exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
|
|
@@ -1756,12 +1866,16 @@ exports.DivVideo = DivVideo;
|
|
|
1756
1866
|
exports.DivVideoSource = DivVideoSource;
|
|
1757
1867
|
exports.DivVideoSourceResolution = DivVideoSourceResolution;
|
|
1758
1868
|
exports.DivWrapContentSize = DivWrapContentSize;
|
|
1869
|
+
exports.IntegerValue = IntegerValue;
|
|
1759
1870
|
exports.IntegerVariable = IntegerVariable;
|
|
1871
|
+
exports.NumberValue = NumberValue;
|
|
1760
1872
|
exports.NumberVariable = NumberVariable;
|
|
1761
1873
|
exports.SafeDivExpression = SafeDivExpression;
|
|
1874
|
+
exports.StringValue = StringValue;
|
|
1762
1875
|
exports.StringVariable = StringVariable;
|
|
1763
1876
|
exports.TemplateBlock = TemplateBlock;
|
|
1764
1877
|
exports.TemplatePropertyReference = TemplatePropertyReference;
|
|
1878
|
+
exports.UrlValue = UrlValue;
|
|
1765
1879
|
exports.UrlVariable = UrlVariable;
|
|
1766
1880
|
exports.copyTemplates = copyTemplates;
|
|
1767
1881
|
exports.divCard = divCard;
|