@divkitframework/jsonbuilder 28.0.0 → 28.2.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.
@@ -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,68 @@ 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
+ * Requests focus for element. On the web may work unstable.
390
+ */
391
+ declare class DivActionFocusElement<T extends DivActionFocusElementProps = DivActionFocusElementProps> {
392
+ readonly _props?: Exact<DivActionFocusElementProps, T>;
393
+ readonly type = "focus_element";
394
+ element_id: Type<string | DivExpression>;
395
+ constructor(props: Exact<DivActionFocusElementProps, T>);
396
+ }
397
+ interface DivActionFocusElementProps {
398
+ element_id: Type<string | DivExpression>;
399
+ }
400
+
401
+ /**
402
+ * Sets variable value
403
+ */
404
+ declare class DivActionSetVariable<T extends DivActionSetVariableProps = DivActionSetVariableProps> {
405
+ readonly _props?: Exact<DivActionSetVariableProps, T>;
406
+ readonly type = "set_variable";
407
+ value: Type<DivTypedValue>;
408
+ variable_name: Type<string | DivExpression>;
409
+ constructor(props: Exact<DivActionSetVariableProps, T>);
410
+ }
411
+ interface DivActionSetVariableProps {
412
+ value: Type<DivTypedValue>;
413
+ variable_name: Type<string | DivExpression>;
414
+ }
415
+
416
+ declare type DivActionTyped = DivActionArrayInsertValue | DivActionArrayRemoveValue | DivActionSetVariable | DivActionFocusElement;
417
+
315
418
  declare type DivAlignmentHorizontal = 'left' | 'center' | 'right' | 'start' | 'end';
316
419
 
317
420
  declare type DivAlignmentVertical = 'top' | 'center' | 'bottom' | 'baseline';
@@ -551,7 +654,7 @@ interface IDivBorder {
551
654
  */
552
655
  has_shadow?: Type<IntBoolean | DivExpression>;
553
656
  /**
554
- * Shadow parameters.
657
+ * Shadow parameters applied to the stroke of the element.
555
658
  */
556
659
  shadow?: Type<IDivShadow>;
557
660
  /**
@@ -1440,6 +1543,7 @@ interface IDivDisappearAction {
1440
1543
  * Referer URL for logging.
1441
1544
  */
1442
1545
  referer?: Type<string | DivExpression>;
1546
+ typed?: Type<DivActionTyped>;
1443
1547
  /**
1444
1548
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
1445
1549
  * elements](../../interaction.dita).
@@ -4582,7 +4686,7 @@ interface DivPercentageSizeProps {
4582
4686
  }
4583
4687
 
4584
4688
  /**
4585
- * Mask for entering a phone with a dynamic definition of the regional format.
4689
+ * Mask for entering phone numbers with dynamic regional format identification.
4586
4690
  */
4587
4691
  declare class DivPhoneInputMask<T extends DivPhoneInputMaskProps = DivPhoneInputMaskProps> {
4588
4692
  readonly _props?: Exact<DivPhoneInputMaskProps, T>;
@@ -5629,6 +5733,7 @@ interface IDivSightAction {
5629
5733
  * Referer URL for logging.
5630
5734
  */
5631
5735
  referer?: Type<string | DivExpression>;
5736
+ typed?: Type<DivActionTyped>;
5632
5737
  /**
5633
5738
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
5634
5739
  * elements](../../interaction.dita).
@@ -6198,9 +6303,9 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
6198
6303
  */
6199
6304
  selected_actions?: Type<NonEmptyArray<IDivAction>>;
6200
6305
  /**
6201
- * Name of the variable where the current state ID value is stored. If the value of a variable
6202
- * changes, then the active state will also be changed. The variable takes precedence over the
6203
- * `default_state_id` field.
6306
+ * The name of the variable that stores the ID for the current state. If the variable changes,
6307
+ * the active state will also change. The variable is prioritized over the default_state_id
6308
+ * parameter.
6204
6309
  */
6205
6310
  state_id_variable?: Type<string>;
6206
6311
  /**
@@ -6345,9 +6450,9 @@ interface DivStateProps {
6345
6450
  */
6346
6451
  selected_actions?: Type<NonEmptyArray<IDivAction>>;
6347
6452
  /**
6348
- * Name of the variable where the current state ID value is stored. If the value of a variable
6349
- * changes, then the active state will also be changed. The variable takes precedence over the
6350
- * `default_state_id` field.
6453
+ * The name of the variable that stores the ID for the current state. If the variable changes,
6454
+ * the active state will also change. The variable is prioritized over the default_state_id
6455
+ * parameter.
6351
6456
  */
6352
6457
  state_id_variable?: Type<string>;
6353
6458
  /**
@@ -7663,6 +7768,8 @@ interface IDivTrigger {
7663
7768
  }
7664
7769
  declare type DivTriggerMode = 'on_condition' | 'on_variable';
7665
7770
 
7771
+ declare type DivTypedValue = StringValue | IntegerValue | NumberValue | ColorValue | BooleanValue | UrlValue | DictValue | ArrayValue;
7772
+
7666
7773
  declare type DivVariable = StringVariable | NumberVariable | IntegerVariable | BooleanVariable | ColorVariable | UrlVariable | DictVariable | ArrayVariable;
7667
7774
 
7668
7775
  /**
@@ -8106,6 +8213,7 @@ interface IDivVisibilityAction {
8106
8213
  * Referer URL for logging.
8107
8214
  */
8108
8215
  referer?: Type<string | DivExpression>;
8216
+ typed?: Type<DivActionTyped>;
8109
8217
  /**
8110
8218
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
8111
8219
  * elements](../../interaction.dita).
@@ -8167,6 +8275,16 @@ interface IDivWrapContentSizeConstraintSize {
8167
8275
  value: Type<number | DivExpression>;
8168
8276
  }
8169
8277
 
8278
+ declare class IntegerValue<T extends IntegerValueProps = IntegerValueProps> {
8279
+ readonly _props?: Exact<IntegerValueProps, T>;
8280
+ readonly type = "integer";
8281
+ value: Type<number | DivExpression>;
8282
+ constructor(props: Exact<IntegerValueProps, T>);
8283
+ }
8284
+ interface IntegerValueProps {
8285
+ value: Type<number | DivExpression>;
8286
+ }
8287
+
8170
8288
  /**
8171
8289
  * An integer variable.
8172
8290
  */
@@ -8194,6 +8312,16 @@ interface IntegerVariableProps {
8194
8312
  value: Type<number>;
8195
8313
  }
8196
8314
 
8315
+ declare class NumberValue<T extends NumberValueProps = NumberValueProps> {
8316
+ readonly _props?: Exact<NumberValueProps, T>;
8317
+ readonly type = "number";
8318
+ value: Type<number | DivExpression>;
8319
+ constructor(props: Exact<NumberValueProps, T>);
8320
+ }
8321
+ interface NumberValueProps {
8322
+ value: Type<number | DivExpression>;
8323
+ }
8324
+
8197
8325
  /**
8198
8326
  * A floating-point variable.
8199
8327
  */
@@ -8221,6 +8349,16 @@ interface NumberVariableProps {
8221
8349
  value: Type<number>;
8222
8350
  }
8223
8351
 
8352
+ declare class StringValue<T extends StringValueProps = StringValueProps> {
8353
+ readonly _props?: Exact<StringValueProps, T>;
8354
+ readonly type = "string";
8355
+ value: Type<string | DivExpression>;
8356
+ constructor(props: Exact<StringValueProps, T>);
8357
+ }
8358
+ interface StringValueProps {
8359
+ value: Type<string | DivExpression>;
8360
+ }
8361
+
8224
8362
  /**
8225
8363
  * A string variable.
8226
8364
  */
@@ -8248,6 +8386,16 @@ interface StringVariableProps {
8248
8386
  value: Type<string>;
8249
8387
  }
8250
8388
 
8389
+ declare class UrlValue<T extends UrlValueProps = UrlValueProps> {
8390
+ readonly _props?: Exact<UrlValueProps, T>;
8391
+ readonly type = "url";
8392
+ value: Type<string | DivExpression>;
8393
+ constructor(props: Exact<UrlValueProps, T>);
8394
+ }
8395
+ interface UrlValueProps {
8396
+ value: Type<string | DivExpression>;
8397
+ }
8398
+
8251
8399
  /**
8252
8400
  * Variable — URL as a string.
8253
8401
  */
@@ -8430,4 +8578,4 @@ declare function rewriteTemplateVersions<T extends ITemplates>(templates: T, res
8430
8578
  };
8431
8579
  };
8432
8580
 
8433
- 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, IDivSliderRange, 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 };
8581
+ 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, DivActionFocusElement, DivActionFocusElementProps, 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 };
@@ -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,54 @@ 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
+ * Requests focus for element. On the web may work unstable.
115
+ */
116
+ class DivActionFocusElement {
117
+ constructor(props) {
118
+ this.type = 'focus_element';
119
+ this.element_id = props.element_id;
120
+ }
121
+ }
122
+
123
+ // Generated code. Do not modify.
124
+ /**
125
+ * Sets variable value
126
+ */
127
+ class DivActionSetVariable {
128
+ constructor(props) {
129
+ this.type = 'set_variable';
130
+ this.value = props.value;
131
+ this.variable_name = props.variable_name;
132
+ }
133
+ }
134
+
55
135
  // Generated code. Do not modify.
56
136
  /**
57
137
  * A set of animations to be applied simultaneously.
@@ -740,7 +820,7 @@ class DivPercentageSize {
740
820
 
741
821
  // Generated code. Do not modify.
742
822
  /**
743
- * Mask for entering a phone with a dynamic definition of the regional format.
823
+ * Mask for entering phone numbers with dynamic regional format identification.
744
824
  */
745
825
  class DivPhoneInputMask {
746
826
  constructor(props) {
@@ -1276,6 +1356,14 @@ class DivWrapContentSize {
1276
1356
  }
1277
1357
  }
1278
1358
 
1359
+ // Generated code. Do not modify.
1360
+ class IntegerValue {
1361
+ constructor(props) {
1362
+ this.type = 'integer';
1363
+ this.value = props.value;
1364
+ }
1365
+ }
1366
+
1279
1367
  // Generated code. Do not modify.
1280
1368
  /**
1281
1369
  * An integer variable.
@@ -1288,6 +1376,14 @@ class IntegerVariable {
1288
1376
  }
1289
1377
  }
1290
1378
 
1379
+ // Generated code. Do not modify.
1380
+ class NumberValue {
1381
+ constructor(props) {
1382
+ this.type = 'number';
1383
+ this.value = props.value;
1384
+ }
1385
+ }
1386
+
1291
1387
  // Generated code. Do not modify.
1292
1388
  /**
1293
1389
  * A floating-point variable.
@@ -1300,6 +1396,14 @@ class NumberVariable {
1300
1396
  }
1301
1397
  }
1302
1398
 
1399
+ // Generated code. Do not modify.
1400
+ class StringValue {
1401
+ constructor(props) {
1402
+ this.type = 'string';
1403
+ this.value = props.value;
1404
+ }
1405
+ }
1406
+
1303
1407
  // Generated code. Do not modify.
1304
1408
  /**
1305
1409
  * A string variable.
@@ -1312,6 +1416,14 @@ class StringVariable {
1312
1416
  }
1313
1417
  }
1314
1418
 
1419
+ // Generated code. Do not modify.
1420
+ class UrlValue {
1421
+ constructor(props) {
1422
+ this.type = 'url';
1423
+ this.value = props.value;
1424
+ }
1425
+ }
1426
+
1315
1427
  // Generated code. Do not modify.
1316
1428
  /**
1317
1429
  * Variable — URL as a string.
@@ -1700,10 +1812,18 @@ function rewriteTemplateVersions(templates, resolvedNames) {
1700
1812
  return rewriteNames(templates, rename, resolvedNames);
1701
1813
  }
1702
1814
 
1815
+ exports.ArrayValue = ArrayValue;
1703
1816
  exports.ArrayVariable = ArrayVariable;
1817
+ exports.BooleanValue = BooleanValue;
1704
1818
  exports.BooleanVariable = BooleanVariable;
1819
+ exports.ColorValue = ColorValue;
1705
1820
  exports.ColorVariable = ColorVariable;
1821
+ exports.DictValue = DictValue;
1706
1822
  exports.DictVariable = DictVariable;
1823
+ exports.DivActionArrayInsertValue = DivActionArrayInsertValue;
1824
+ exports.DivActionArrayRemoveValue = DivActionArrayRemoveValue;
1825
+ exports.DivActionFocusElement = DivActionFocusElement;
1826
+ exports.DivActionSetVariable = DivActionSetVariable;
1707
1827
  exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
1708
1828
  exports.DivBlur = DivBlur;
1709
1829
  exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
@@ -1758,12 +1878,16 @@ exports.DivVideo = DivVideo;
1758
1878
  exports.DivVideoSource = DivVideoSource;
1759
1879
  exports.DivVideoSourceResolution = DivVideoSourceResolution;
1760
1880
  exports.DivWrapContentSize = DivWrapContentSize;
1881
+ exports.IntegerValue = IntegerValue;
1761
1882
  exports.IntegerVariable = IntegerVariable;
1883
+ exports.NumberValue = NumberValue;
1762
1884
  exports.NumberVariable = NumberVariable;
1763
1885
  exports.SafeDivExpression = SafeDivExpression;
1886
+ exports.StringValue = StringValue;
1764
1887
  exports.StringVariable = StringVariable;
1765
1888
  exports.TemplateBlock = TemplateBlock;
1766
1889
  exports.TemplatePropertyReference = TemplatePropertyReference;
1890
+ exports.UrlValue = UrlValue;
1767
1891
  exports.UrlVariable = UrlVariable;
1768
1892
  exports.copyTemplates = copyTemplates;
1769
1893
  exports.divCard = divCard;