@plaidev/karte-action-sdk 1.1.238-28698230.d57d5808 → 1.1.238-28698315.8b497e86
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +58 -3
- package/dist/hydrate/index.es.js +62 -19
- package/dist/index.es.d.ts +58 -3
- package/dist/index.es.js +62 -19
- package/package.json +1 -1
@@ -2639,10 +2639,16 @@ declare const LAYER_TEXT_FONT_WEIGHT_VALUES: readonly [
|
|
2639
2639
|
"normal"
|
2640
2640
|
];
|
2641
2641
|
declare const LAYER_TEXT_SIZE: {
|
2642
|
+
readonly extra_small: "ExtraSmall";
|
2642
2643
|
readonly small: "Small";
|
2643
2644
|
readonly medium: "Medium";
|
2644
2645
|
readonly large: "Large";
|
2645
|
-
readonly extra_large: "
|
2646
|
+
readonly extra_large: "ExtraLarge";
|
2647
|
+
readonly heading_extra_small: "HeadingExtraSmall";
|
2648
|
+
readonly heading_small: "HeadingSmall";
|
2649
|
+
readonly heading_medium: "HeadingMedium";
|
2650
|
+
readonly heading_large: "HeadingLarge";
|
2651
|
+
readonly heading_extra_large: "HeadingExtraLarge";
|
2646
2652
|
};
|
2647
2653
|
type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & PaddingProps & {
|
2648
2654
|
content: string;
|
@@ -2651,11 +2657,60 @@ type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorP
|
|
2651
2657
|
align?: Properties["textAlign"];
|
2652
2658
|
fontSize?: Properties["fontSize"];
|
2653
2659
|
fontWeight?: Properties["fontWeight"];
|
2654
|
-
lineHeight?:
|
2660
|
+
lineHeight?: number;
|
2655
2661
|
color?: Properties["color"];
|
2656
2662
|
width?: Properties["width"];
|
2657
2663
|
};
|
2658
|
-
|
2664
|
+
declare const TEXT_VARIANTS: {
|
2665
|
+
size: {
|
2666
|
+
extra_small: {
|
2667
|
+
fontSize: string;
|
2668
|
+
lineHeight: number;
|
2669
|
+
};
|
2670
|
+
small: {
|
2671
|
+
fontSize: string;
|
2672
|
+
lineHeight: number;
|
2673
|
+
};
|
2674
|
+
medium: {
|
2675
|
+
fontSize: string;
|
2676
|
+
lineHeight: number;
|
2677
|
+
};
|
2678
|
+
large: {
|
2679
|
+
fontSize: string;
|
2680
|
+
lineHeight: number;
|
2681
|
+
};
|
2682
|
+
extra_large: {
|
2683
|
+
fontSize: string;
|
2684
|
+
lineHeight: number;
|
2685
|
+
};
|
2686
|
+
heading_extra_small: {
|
2687
|
+
fontSize: string;
|
2688
|
+
lineHeight: number;
|
2689
|
+
fontWeight: string;
|
2690
|
+
};
|
2691
|
+
heading_small: {
|
2692
|
+
fontSize: string;
|
2693
|
+
lineHeight: number;
|
2694
|
+
fontWeight: string;
|
2695
|
+
};
|
2696
|
+
heading_medium: {
|
2697
|
+
fontSize: string;
|
2698
|
+
lineHeight: number;
|
2699
|
+
fontWeight: string;
|
2700
|
+
};
|
2701
|
+
heading_large: {
|
2702
|
+
fontSize: string;
|
2703
|
+
lineHeight: number;
|
2704
|
+
fontWeight: string;
|
2705
|
+
};
|
2706
|
+
heading_extra_large: {
|
2707
|
+
fontSize: string;
|
2708
|
+
lineHeight: number;
|
2709
|
+
fontWeight: string;
|
2710
|
+
};
|
2711
|
+
};
|
2712
|
+
};
|
2713
|
+
export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, ComponentBaseProps, COMPONENT_PARAMETER_TYPES, ComponentParameterType, ComponentParameterOption, ComponentParameter, PositionProps, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_COLOR, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconVariant, ICON_PARAMS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS };
|
2659
2714
|
export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionCloseHook, ShowTrigger, CloseTrigger, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
|
2660
2715
|
export { default as State } from './components/State.svelte';
|
2661
2716
|
export { default as StateItem } from './components/StateItem.svelte';
|
package/dist/hydrate/index.es.js
CHANGED
@@ -15273,6 +15273,56 @@ const LAYOUT_DIRECTION = ['column', 'column-reverse', 'row', 'row-reverse'];
|
|
15273
15273
|
const LAYOUT_ALIGN = ['flex-start', 'center', 'flex-end', 'stretch'];
|
15274
15274
|
const LAYOUT_JUSTIFY = ['flex-start', 'center', 'flex-end', 'space-between'];
|
15275
15275
|
|
15276
|
+
const TEXT_VARIANTS = {
|
15277
|
+
size: {
|
15278
|
+
extra_small: {
|
15279
|
+
fontSize: '10px',
|
15280
|
+
lineHeight: 1.7,
|
15281
|
+
},
|
15282
|
+
small: {
|
15283
|
+
fontSize: '12px',
|
15284
|
+
lineHeight: 1.7,
|
15285
|
+
},
|
15286
|
+
medium: {
|
15287
|
+
fontSize: '14px',
|
15288
|
+
lineHeight: 1.7,
|
15289
|
+
},
|
15290
|
+
large: {
|
15291
|
+
fontSize: '16px',
|
15292
|
+
lineHeight: 1.7,
|
15293
|
+
},
|
15294
|
+
extra_large: {
|
15295
|
+
fontSize: '18px',
|
15296
|
+
lineHeight: 1.7,
|
15297
|
+
},
|
15298
|
+
heading_extra_small: {
|
15299
|
+
fontSize: '14px',
|
15300
|
+
lineHeight: 1.5,
|
15301
|
+
fontWeight: 'bold',
|
15302
|
+
},
|
15303
|
+
heading_small: {
|
15304
|
+
fontSize: '16px',
|
15305
|
+
lineHeight: 1.5,
|
15306
|
+
fontWeight: 'bold',
|
15307
|
+
},
|
15308
|
+
heading_medium: {
|
15309
|
+
fontSize: '18px',
|
15310
|
+
lineHeight: 1.5,
|
15311
|
+
fontWeight: 'bold',
|
15312
|
+
},
|
15313
|
+
heading_large: {
|
15314
|
+
fontSize: '20px',
|
15315
|
+
lineHeight: 1.5,
|
15316
|
+
fontWeight: 'bold',
|
15317
|
+
},
|
15318
|
+
heading_extra_large: {
|
15319
|
+
fontSize: '22px',
|
15320
|
+
lineHeight: 1.5,
|
15321
|
+
fontWeight: 'bold',
|
15322
|
+
},
|
15323
|
+
},
|
15324
|
+
};
|
15325
|
+
|
15276
15326
|
/* src/components-flex/text/Text.svelte generated by Svelte v3.53.1 */
|
15277
15327
|
|
15278
15328
|
function add_css$2(target) {
|
@@ -15331,23 +15381,12 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
15331
15381
|
let { props = { content: '' } } = $$props;
|
15332
15382
|
let { layerId = '' } = $$props;
|
15333
15383
|
|
15334
|
-
const VARIANTS = {
|
15335
|
-
size: {
|
15336
|
-
small: { fontSize: '10px', lineHeight: 1.5 },
|
15337
|
-
medium: { fontSize: '12px', lineHeight: 2.0 },
|
15338
|
-
large: { fontSize: '14px', lineHeight: 2.0 },
|
15339
|
-
extra_large: { fontSize: '16px', lineHeight: 2.0 }
|
15340
|
-
}
|
15341
|
-
};
|
15342
|
-
|
15343
15384
|
const getCssSize = () => {
|
15344
15385
|
return {
|
15345
|
-
fontSize: props.fontSize
|
15346
|
-
|
15347
|
-
|
15348
|
-
|
15349
|
-
? props.lineHeight
|
15350
|
-
: VARIANTS.size[props.size ?? 'medium'].lineHeight
|
15386
|
+
fontSize: props.fontSize ?? TEXT_VARIANTS.size[props.size ?? 'medium'].fontSize,
|
15387
|
+
lineHeight: props.lineHeight ?? TEXT_VARIANTS.size[props.size ?? 'medium'].lineHeight,
|
15388
|
+
// @ts-ignore
|
15389
|
+
fontWeight: props.fontWeight ?? (TEXT_VARIANTS.size[props.size ?? 'medium'].fontWeight ?? 'normal')
|
15351
15390
|
};
|
15352
15391
|
};
|
15353
15392
|
|
@@ -15364,8 +15403,6 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
15364
15403
|
if ($$self.$$.dirty & /*props*/ 8) {
|
15365
15404
|
$$invalidate(1, style = objToStyle({
|
15366
15405
|
position: props?.position ?? 'static',
|
15367
|
-
fontWeight: props.fontWeight,
|
15368
|
-
fontSize: props.fontSize,
|
15369
15406
|
color: props.color,
|
15370
15407
|
textAlign: props.align,
|
15371
15408
|
width: props.width,
|
@@ -15392,10 +15429,16 @@ class Text extends SvelteComponent {
|
|
15392
15429
|
const LAYER_TEXT_ALIGN_VALUES = ['center', 'left', 'right'];
|
15393
15430
|
const LAYER_TEXT_FONT_WEIGHT_VALUES = ['bold', 'normal'];
|
15394
15431
|
const LAYER_TEXT_SIZE = {
|
15432
|
+
extra_small: 'ExtraSmall',
|
15395
15433
|
small: 'Small',
|
15396
15434
|
medium: 'Medium',
|
15397
15435
|
large: 'Large',
|
15398
|
-
extra_large: '
|
15436
|
+
extra_large: 'ExtraLarge',
|
15437
|
+
heading_extra_small: 'HeadingExtraSmall',
|
15438
|
+
heading_small: 'HeadingSmall',
|
15439
|
+
heading_medium: 'HeadingMedium',
|
15440
|
+
heading_large: 'HeadingLarge',
|
15441
|
+
heading_extra_large: 'HeadingExtraLarge',
|
15399
15442
|
};
|
15400
15443
|
|
15401
15444
|
/* src/components-flex/background-overlay/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
|
@@ -16263,4 +16306,4 @@ class Modal extends SvelteComponent {
|
|
16263
16306
|
}
|
16264
16307
|
}
|
16265
16308
|
|
16266
|
-
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_COLOR, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BackgroundSizes, Box, COMPONENT_PARAMETER_TYPES, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|
16309
|
+
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_COLOR, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BackgroundSizes, Box, COMPONENT_PARAMETER_TYPES, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|
package/dist/index.es.d.ts
CHANGED
@@ -2639,10 +2639,16 @@ declare const LAYER_TEXT_FONT_WEIGHT_VALUES: readonly [
|
|
2639
2639
|
"normal"
|
2640
2640
|
];
|
2641
2641
|
declare const LAYER_TEXT_SIZE: {
|
2642
|
+
readonly extra_small: "ExtraSmall";
|
2642
2643
|
readonly small: "Small";
|
2643
2644
|
readonly medium: "Medium";
|
2644
2645
|
readonly large: "Large";
|
2645
|
-
readonly extra_large: "
|
2646
|
+
readonly extra_large: "ExtraLarge";
|
2647
|
+
readonly heading_extra_small: "HeadingExtraSmall";
|
2648
|
+
readonly heading_small: "HeadingSmall";
|
2649
|
+
readonly heading_medium: "HeadingMedium";
|
2650
|
+
readonly heading_large: "HeadingLarge";
|
2651
|
+
readonly heading_extra_large: "HeadingExtraLarge";
|
2646
2652
|
};
|
2647
2653
|
type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & PaddingProps & {
|
2648
2654
|
content: string;
|
@@ -2651,11 +2657,60 @@ type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorP
|
|
2651
2657
|
align?: Properties["textAlign"];
|
2652
2658
|
fontSize?: Properties["fontSize"];
|
2653
2659
|
fontWeight?: Properties["fontWeight"];
|
2654
|
-
lineHeight?:
|
2660
|
+
lineHeight?: number;
|
2655
2661
|
color?: Properties["color"];
|
2656
2662
|
width?: Properties["width"];
|
2657
2663
|
};
|
2658
|
-
|
2664
|
+
declare const TEXT_VARIANTS: {
|
2665
|
+
size: {
|
2666
|
+
extra_small: {
|
2667
|
+
fontSize: string;
|
2668
|
+
lineHeight: number;
|
2669
|
+
};
|
2670
|
+
small: {
|
2671
|
+
fontSize: string;
|
2672
|
+
lineHeight: number;
|
2673
|
+
};
|
2674
|
+
medium: {
|
2675
|
+
fontSize: string;
|
2676
|
+
lineHeight: number;
|
2677
|
+
};
|
2678
|
+
large: {
|
2679
|
+
fontSize: string;
|
2680
|
+
lineHeight: number;
|
2681
|
+
};
|
2682
|
+
extra_large: {
|
2683
|
+
fontSize: string;
|
2684
|
+
lineHeight: number;
|
2685
|
+
};
|
2686
|
+
heading_extra_small: {
|
2687
|
+
fontSize: string;
|
2688
|
+
lineHeight: number;
|
2689
|
+
fontWeight: string;
|
2690
|
+
};
|
2691
|
+
heading_small: {
|
2692
|
+
fontSize: string;
|
2693
|
+
lineHeight: number;
|
2694
|
+
fontWeight: string;
|
2695
|
+
};
|
2696
|
+
heading_medium: {
|
2697
|
+
fontSize: string;
|
2698
|
+
lineHeight: number;
|
2699
|
+
fontWeight: string;
|
2700
|
+
};
|
2701
|
+
heading_large: {
|
2702
|
+
fontSize: string;
|
2703
|
+
lineHeight: number;
|
2704
|
+
fontWeight: string;
|
2705
|
+
};
|
2706
|
+
heading_extra_large: {
|
2707
|
+
fontSize: string;
|
2708
|
+
lineHeight: number;
|
2709
|
+
fontWeight: string;
|
2710
|
+
};
|
2711
|
+
};
|
2712
|
+
};
|
2713
|
+
export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, ComponentBaseProps, COMPONENT_PARAMETER_TYPES, ComponentParameterType, ComponentParameterOption, ComponentParameter, PositionProps, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_COLOR, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconVariant, ICON_PARAMS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS };
|
2659
2714
|
export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionCloseHook, ShowTrigger, CloseTrigger, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
|
2660
2715
|
export { default as State } from './components/State.svelte';
|
2661
2716
|
export { default as StateItem } from './components/StateItem.svelte';
|
package/dist/index.es.js
CHANGED
@@ -14140,6 +14140,56 @@ const LAYOUT_DIRECTION = ['column', 'column-reverse', 'row', 'row-reverse'];
|
|
14140
14140
|
const LAYOUT_ALIGN = ['flex-start', 'center', 'flex-end', 'stretch'];
|
14141
14141
|
const LAYOUT_JUSTIFY = ['flex-start', 'center', 'flex-end', 'space-between'];
|
14142
14142
|
|
14143
|
+
const TEXT_VARIANTS = {
|
14144
|
+
size: {
|
14145
|
+
extra_small: {
|
14146
|
+
fontSize: '10px',
|
14147
|
+
lineHeight: 1.7,
|
14148
|
+
},
|
14149
|
+
small: {
|
14150
|
+
fontSize: '12px',
|
14151
|
+
lineHeight: 1.7,
|
14152
|
+
},
|
14153
|
+
medium: {
|
14154
|
+
fontSize: '14px',
|
14155
|
+
lineHeight: 1.7,
|
14156
|
+
},
|
14157
|
+
large: {
|
14158
|
+
fontSize: '16px',
|
14159
|
+
lineHeight: 1.7,
|
14160
|
+
},
|
14161
|
+
extra_large: {
|
14162
|
+
fontSize: '18px',
|
14163
|
+
lineHeight: 1.7,
|
14164
|
+
},
|
14165
|
+
heading_extra_small: {
|
14166
|
+
fontSize: '14px',
|
14167
|
+
lineHeight: 1.5,
|
14168
|
+
fontWeight: 'bold',
|
14169
|
+
},
|
14170
|
+
heading_small: {
|
14171
|
+
fontSize: '16px',
|
14172
|
+
lineHeight: 1.5,
|
14173
|
+
fontWeight: 'bold',
|
14174
|
+
},
|
14175
|
+
heading_medium: {
|
14176
|
+
fontSize: '18px',
|
14177
|
+
lineHeight: 1.5,
|
14178
|
+
fontWeight: 'bold',
|
14179
|
+
},
|
14180
|
+
heading_large: {
|
14181
|
+
fontSize: '20px',
|
14182
|
+
lineHeight: 1.5,
|
14183
|
+
fontWeight: 'bold',
|
14184
|
+
},
|
14185
|
+
heading_extra_large: {
|
14186
|
+
fontSize: '22px',
|
14187
|
+
lineHeight: 1.5,
|
14188
|
+
fontWeight: 'bold',
|
14189
|
+
},
|
14190
|
+
},
|
14191
|
+
};
|
14192
|
+
|
14143
14193
|
/* src/components-flex/text/Text.svelte generated by Svelte v3.53.1 */
|
14144
14194
|
|
14145
14195
|
function add_css$2(target) {
|
@@ -14184,23 +14234,12 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
14184
14234
|
let { props = { content: '' } } = $$props;
|
14185
14235
|
let { layerId = '' } = $$props;
|
14186
14236
|
|
14187
|
-
const VARIANTS = {
|
14188
|
-
size: {
|
14189
|
-
small: { fontSize: '10px', lineHeight: 1.5 },
|
14190
|
-
medium: { fontSize: '12px', lineHeight: 2.0 },
|
14191
|
-
large: { fontSize: '14px', lineHeight: 2.0 },
|
14192
|
-
extra_large: { fontSize: '16px', lineHeight: 2.0 }
|
14193
|
-
}
|
14194
|
-
};
|
14195
|
-
|
14196
14237
|
const getCssSize = () => {
|
14197
14238
|
return {
|
14198
|
-
fontSize: props.fontSize
|
14199
|
-
|
14200
|
-
|
14201
|
-
|
14202
|
-
? props.lineHeight
|
14203
|
-
: VARIANTS.size[props.size ?? 'medium'].lineHeight
|
14239
|
+
fontSize: props.fontSize ?? TEXT_VARIANTS.size[props.size ?? 'medium'].fontSize,
|
14240
|
+
lineHeight: props.lineHeight ?? TEXT_VARIANTS.size[props.size ?? 'medium'].lineHeight,
|
14241
|
+
// @ts-ignore
|
14242
|
+
fontWeight: props.fontWeight ?? (TEXT_VARIANTS.size[props.size ?? 'medium'].fontWeight ?? 'normal')
|
14204
14243
|
};
|
14205
14244
|
};
|
14206
14245
|
|
@@ -14217,8 +14256,6 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
14217
14256
|
if ($$self.$$.dirty & /*props*/ 8) {
|
14218
14257
|
$$invalidate(1, style = objToStyle({
|
14219
14258
|
position: props?.position ?? 'static',
|
14220
|
-
fontWeight: props.fontWeight,
|
14221
|
-
fontSize: props.fontSize,
|
14222
14259
|
color: props.color,
|
14223
14260
|
textAlign: props.align,
|
14224
14261
|
width: props.width,
|
@@ -14245,10 +14282,16 @@ class Text extends SvelteComponent {
|
|
14245
14282
|
const LAYER_TEXT_ALIGN_VALUES = ['center', 'left', 'right'];
|
14246
14283
|
const LAYER_TEXT_FONT_WEIGHT_VALUES = ['bold', 'normal'];
|
14247
14284
|
const LAYER_TEXT_SIZE = {
|
14285
|
+
extra_small: 'ExtraSmall',
|
14248
14286
|
small: 'Small',
|
14249
14287
|
medium: 'Medium',
|
14250
14288
|
large: 'Large',
|
14251
|
-
extra_large: '
|
14289
|
+
extra_large: 'ExtraLarge',
|
14290
|
+
heading_extra_small: 'HeadingExtraSmall',
|
14291
|
+
heading_small: 'HeadingSmall',
|
14292
|
+
heading_medium: 'HeadingMedium',
|
14293
|
+
heading_large: 'HeadingLarge',
|
14294
|
+
heading_extra_large: 'HeadingExtraLarge',
|
14252
14295
|
};
|
14253
14296
|
|
14254
14297
|
/* src/components-flex/background-overlay/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
|
@@ -15090,4 +15133,4 @@ class Modal extends SvelteComponent {
|
|
15090
15133
|
}
|
15091
15134
|
}
|
15092
15135
|
|
15093
|
-
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_COLOR, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BackgroundSizes, Box, COMPONENT_PARAMETER_TYPES, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|
15136
|
+
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_COLOR, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BackgroundSizes, Box, COMPONENT_PARAMETER_TYPES, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
|