@plaidev/karte-action-sdk 1.1.247-28747129.737cb9c6 → 1.1.247-28748500.b7ad7286
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +7 -33
- package/dist/hydrate/index.es.js +103 -113
- package/dist/index.es.d.ts +7 -33
- package/dist/index.es.js +97 -98
- package/dist/templates.cjs.js +1 -1
- package/dist/templates.js +1 -1
- package/package.json +1 -1
@@ -2505,42 +2505,16 @@ declare const buttonOutlinedPropsDefault: ButtonOutlinedProps;
|
|
2505
2505
|
declare const BUTTON_OUTLINED_SIZE_STYLES: PropStyles<ButtonOutlinedProps, "size">;
|
2506
2506
|
declare const BUTTON_OUTLINED_ROUND_STYLES: PropStyles<ButtonOutlinedProps, "round">;
|
2507
2507
|
declare const BUTTON_OUTLINED_WRAP_STYLES: PropStyles<ButtonOutlinedProps, "wrap">;
|
2508
|
-
|
2509
|
-
readonly extra_small: "XSmall";
|
2510
|
-
readonly small: "Small";
|
2511
|
-
readonly medium: "Medium";
|
2512
|
-
readonly large: "Large";
|
2513
|
-
readonly extra_large: "XLarge";
|
2514
|
-
};
|
2515
|
-
declare const TEXT_BUTTON_COLOR: {
|
2516
|
-
readonly default: "\u30C7\u30D5\u30A9\u30EB\u30C8";
|
2517
|
-
readonly theme: "\u30C6\u30FC\u30DE\u30AB\u30E9\u30FC";
|
2518
|
-
readonly alert: "\u30A2\u30E9\u30FC\u30C8";
|
2519
|
-
};
|
2520
|
-
declare const TEXT_BUTTON_ROUND: {
|
2521
|
-
readonly default: "\u30C7\u30D5\u30A9\u30EB\u30C8";
|
2522
|
-
readonly none: "\u306A\u3057";
|
2523
|
-
readonly fulled: "\u5186\u5F62";
|
2524
|
-
};
|
2525
|
-
declare const TEXT_BUTTON_LINK_TARGET: {
|
2526
|
-
readonly _self: "\u753B\u9762\u5185\u9077\u79FB";
|
2527
|
-
readonly _blank: "\u5225\u30BF\u30D6\u3067\u958B\u304F";
|
2528
|
-
};
|
2529
|
-
declare const TEXT_BUTTON_ICON_ANGLE: {
|
2530
|
-
readonly row: "\u5DE6\u5074";
|
2531
|
-
readonly "row-reverse": "\u53F3\u5074";
|
2532
|
-
};
|
2533
|
-
type TextButtonProps = CommonProps & {
|
2508
|
+
type ButtonTextProps = CommonProps & ClickableProps & {
|
2534
2509
|
label?: string;
|
2535
|
-
size?: keyof typeof
|
2536
|
-
|
2537
|
-
round?: keyof typeof TEXT_BUTTON_ROUND;
|
2510
|
+
size?: keyof typeof BUTTON_SIZE;
|
2511
|
+
theme?: keyof typeof BUTTON_THEME;
|
2538
2512
|
isLink?: boolean;
|
2539
2513
|
isIcon?: boolean;
|
2540
2514
|
linkUrl?: string;
|
2541
|
-
linkTarget?: keyof typeof
|
2515
|
+
linkTarget?: keyof typeof BUTTON_LINK_TARGET;
|
2542
2516
|
iconVariant?: string;
|
2543
|
-
iconAngle?: keyof typeof
|
2517
|
+
iconAngle?: keyof typeof BUTTON_ICON_ANGLE;
|
2544
2518
|
width?: Properties["width"];
|
2545
2519
|
wrap?: "wrap" | "nowrap";
|
2546
2520
|
fontWeight?: Properties["fontWeight"];
|
@@ -2774,7 +2748,7 @@ declare const TEXT_VARIANTS: {
|
|
2774
2748
|
};
|
2775
2749
|
declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
|
2776
2750
|
declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
|
2777
|
-
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, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES,
|
2751
|
+
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, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, ButtonTextProps, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS, SHADOW_STYLES, ROUND_STYLES };
|
2778
2752
|
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 };
|
2779
2753
|
export { default as State } from './components/State.svelte';
|
2780
2754
|
export { default as StateItem } from './components/StateItem.svelte';
|
@@ -2812,7 +2786,7 @@ export { default as ImageBlock } from './components/ImageBlock.svelte';
|
|
2812
2786
|
export { default as FlexAvatar } from './components-flex/avatar/Avatar.svelte';
|
2813
2787
|
export { default as FlexButton } from './components-flex/button/Button.svelte';
|
2814
2788
|
export { default as FlexButtonOutlined } from './components-flex/button-outlined/ButtonOutlined.svelte';
|
2815
|
-
export { default as
|
2789
|
+
export { default as FlexButtonText } from './components-flex/button-text/ButtonText.svelte';
|
2816
2790
|
export { default as FlexCloseButton } from './components-flex/close-button/CloseButton.svelte';
|
2817
2791
|
export { default as FlexIcon } from './components-flex/icon/Icon.svelte';
|
2818
2792
|
export { default as FlexImage } from './components-flex/image/Image.svelte';
|
package/dist/hydrate/index.es.js
CHANGED
@@ -4132,7 +4132,7 @@ function create_if_block$d(ctx) {
|
|
4132
4132
|
onClick: /*onClick*/ ctx[0],
|
4133
4133
|
eventName: /*clickEventName*/ ctx[1],
|
4134
4134
|
eventValue: /*clickEventValue*/ ctx[2],
|
4135
|
-
$$slots: { default: [create_default_slot$
|
4135
|
+
$$slots: { default: [create_default_slot$d] },
|
4136
4136
|
$$scope: { ctx }
|
4137
4137
|
}
|
4138
4138
|
});
|
@@ -4344,7 +4344,7 @@ function create_default_slot_1$1(ctx) {
|
|
4344
4344
|
}
|
4345
4345
|
|
4346
4346
|
// (293:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
4347
|
-
function create_default_slot$
|
4347
|
+
function create_default_slot$d(ctx) {
|
4348
4348
|
let t;
|
4349
4349
|
let div;
|
4350
4350
|
let current;
|
@@ -5748,7 +5748,7 @@ function add_css$z(target) {
|
|
5748
5748
|
}
|
5749
5749
|
|
5750
5750
|
// (48:2) <Button {onClick} {style} {eventName}>
|
5751
|
-
function create_default_slot$
|
5751
|
+
function create_default_slot$c(ctx) {
|
5752
5752
|
let rendertext;
|
5753
5753
|
let current;
|
5754
5754
|
rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
|
@@ -5794,7 +5794,7 @@ function create_fragment$15(ctx) {
|
|
5794
5794
|
onClick: /*onClick*/ ctx[1],
|
5795
5795
|
style: /*style*/ ctx[3],
|
5796
5796
|
eventName: /*eventName*/ ctx[2],
|
5797
|
-
$$slots: { default: [create_default_slot$
|
5797
|
+
$$slots: { default: [create_default_slot$c] },
|
5798
5798
|
$$scope: { ctx }
|
5799
5799
|
}
|
5800
5800
|
});
|
@@ -5909,7 +5909,7 @@ function add_css$y(target) {
|
|
5909
5909
|
}
|
5910
5910
|
|
5911
5911
|
// (44:2) <Button {onClick} style={_style} {eventName}>
|
5912
|
-
function create_default_slot$
|
5912
|
+
function create_default_slot$b(ctx) {
|
5913
5913
|
let img;
|
5914
5914
|
let img_style_value;
|
5915
5915
|
let img_src_value;
|
@@ -5986,7 +5986,7 @@ function create_fragment$14(ctx) {
|
|
5986
5986
|
onClick: /*onClick*/ ctx[4],
|
5987
5987
|
style: /*_style*/ ctx[7],
|
5988
5988
|
eventName: /*eventName*/ ctx[5],
|
5989
|
-
$$slots: { default: [create_default_slot$
|
5989
|
+
$$slots: { default: [create_default_slot$b] },
|
5990
5990
|
$$scope: { ctx }
|
5991
5991
|
}
|
5992
5992
|
});
|
@@ -6257,7 +6257,7 @@ function add_css$w(target) {
|
|
6257
6257
|
}
|
6258
6258
|
|
6259
6259
|
// (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
|
6260
|
-
function create_default_slot$
|
6260
|
+
function create_default_slot$a(ctx) {
|
6261
6261
|
let current;
|
6262
6262
|
const default_slot_template = /*#slots*/ ctx[5].default;
|
6263
6263
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
|
@@ -6317,7 +6317,7 @@ function create_fragment$12(ctx) {
|
|
6317
6317
|
onClick: /*onClick*/ ctx[0],
|
6318
6318
|
style: /*_style*/ ctx[2],
|
6319
6319
|
eventName: /*clickEventName*/ ctx[1],
|
6320
|
-
$$slots: { default: [create_default_slot$
|
6320
|
+
$$slots: { default: [create_default_slot$a] },
|
6321
6321
|
$$scope: { ctx }
|
6322
6322
|
}
|
6323
6323
|
});
|
@@ -10474,7 +10474,7 @@ function add_css$h(target) {
|
|
10474
10474
|
}
|
10475
10475
|
|
10476
10476
|
// (24:2) <Button {onClick} style={_style} {eventName}>
|
10477
|
-
function create_default_slot$
|
10477
|
+
function create_default_slot$9(ctx) {
|
10478
10478
|
let current;
|
10479
10479
|
const default_slot_template = /*#slots*/ ctx[3].default;
|
10480
10480
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
|
@@ -10534,7 +10534,7 @@ function create_fragment$P(ctx) {
|
|
10534
10534
|
onClick: /*onClick*/ ctx[0],
|
10535
10535
|
style: /*_style*/ ctx[2],
|
10536
10536
|
eventName: /*eventName*/ ctx[1],
|
10537
|
-
$$slots: { default: [create_default_slot$
|
10537
|
+
$$slots: { default: [create_default_slot$9] },
|
10538
10538
|
$$scope: { ctx }
|
10539
10539
|
}
|
10540
10540
|
});
|
@@ -10651,7 +10651,7 @@ function create_if_block$8(ctx) {
|
|
10651
10651
|
}
|
10652
10652
|
|
10653
10653
|
// (55:2) <Button {onClick} {style} {eventName}>
|
10654
|
-
function create_default_slot$
|
10654
|
+
function create_default_slot$8(ctx) {
|
10655
10655
|
let if_block_anchor;
|
10656
10656
|
let if_block = /*svg*/ ctx[3] && create_if_block$8(ctx);
|
10657
10657
|
|
@@ -10699,7 +10699,7 @@ function create_fragment$O(ctx) {
|
|
10699
10699
|
onClick: /*onClick*/ ctx[0],
|
10700
10700
|
style: /*style*/ ctx[2],
|
10701
10701
|
eventName: /*eventName*/ ctx[1],
|
10702
|
-
$$slots: { default: [create_default_slot$
|
10702
|
+
$$slots: { default: [create_default_slot$8] },
|
10703
10703
|
$$scope: { ctx }
|
10704
10704
|
}
|
10705
10705
|
});
|
@@ -11303,7 +11303,7 @@ function create_default_slot_1(ctx) {
|
|
11303
11303
|
}
|
11304
11304
|
|
11305
11305
|
// (106:0) <StateItem {path}>
|
11306
|
-
function create_default_slot$
|
11306
|
+
function create_default_slot$7(ctx) {
|
11307
11307
|
let modal;
|
11308
11308
|
let current;
|
11309
11309
|
|
@@ -11378,7 +11378,7 @@ function create_fragment$K(ctx) {
|
|
11378
11378
|
stateitem = new StateItem({
|
11379
11379
|
props: {
|
11380
11380
|
path: /*path*/ ctx[0],
|
11381
|
-
$$slots: { default: [create_default_slot$
|
11381
|
+
$$slots: { default: [create_default_slot$7] },
|
11382
11382
|
$$scope: { ctx }
|
11383
11383
|
}
|
11384
11384
|
});
|
@@ -12476,7 +12476,7 @@ class Clickable extends SvelteComponent {
|
|
12476
12476
|
|
12477
12477
|
/* src/components-flex/avatar/Avatar.svelte generated by Svelte v3.53.1 */
|
12478
12478
|
|
12479
|
-
function create_default_slot$
|
12479
|
+
function create_default_slot$6(ctx) {
|
12480
12480
|
let img;
|
12481
12481
|
let img_src_value;
|
12482
12482
|
let img_alt_value;
|
@@ -12528,7 +12528,7 @@ function create_fragment$F(ctx) {
|
|
12528
12528
|
onClick: /*props*/ ctx[0].onClick,
|
12529
12529
|
eventName: /*props*/ ctx[0].eventName,
|
12530
12530
|
eventValue: /*props*/ ctx[0].eventValue,
|
12531
|
-
$$slots: { default: [create_default_slot$
|
12531
|
+
$$slots: { default: [create_default_slot$6] },
|
12532
12532
|
$$scope: { ctx }
|
12533
12533
|
}
|
12534
12534
|
});
|
@@ -14633,7 +14633,7 @@ function create_if_block$6(ctx) {
|
|
14633
14633
|
onClick: /*props*/ ctx[0].onClick,
|
14634
14634
|
eventName: /*props*/ ctx[0].eventName,
|
14635
14635
|
eventValue: /*props*/ ctx[0].eventValue,
|
14636
|
-
$$slots: { default: [create_default_slot$
|
14636
|
+
$$slots: { default: [create_default_slot$5] },
|
14637
14637
|
$$scope: { ctx }
|
14638
14638
|
}
|
14639
14639
|
});
|
@@ -14679,7 +14679,7 @@ function create_if_block$6(ctx) {
|
|
14679
14679
|
}
|
14680
14680
|
|
14681
14681
|
// (26:2) <CLICKABLE layerId={layerId} style={style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue}>
|
14682
|
-
function create_default_slot$
|
14682
|
+
function create_default_slot$5(ctx) {
|
14683
14683
|
let switch_instance;
|
14684
14684
|
let switch_instance_anchor;
|
14685
14685
|
let current;
|
@@ -15092,7 +15092,7 @@ function create_if_block$5(ctx) {
|
|
15092
15092
|
}
|
15093
15093
|
|
15094
15094
|
// (41:0) <Clickable className="button" layerId={layerId} style={style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue}>
|
15095
|
-
function create_default_slot$
|
15095
|
+
function create_default_slot$4(ctx) {
|
15096
15096
|
let t0;
|
15097
15097
|
let span;
|
15098
15098
|
let t1_value = (/*props*/ ctx[0].label ?? buttonPropsDefault.label) + "";
|
@@ -15177,7 +15177,7 @@ function create_fragment$9(ctx) {
|
|
15177
15177
|
onClick: /*props*/ ctx[0].onClick,
|
15178
15178
|
eventName: /*props*/ ctx[0].eventName,
|
15179
15179
|
eventValue: /*props*/ ctx[0].eventValue,
|
15180
|
-
$$slots: { default: [create_default_slot$
|
15180
|
+
$$slots: { default: [create_default_slot$4] },
|
15181
15181
|
$$scope: { ctx }
|
15182
15182
|
}
|
15183
15183
|
});
|
@@ -15420,7 +15420,7 @@ function create_if_block$4(ctx) {
|
|
15420
15420
|
}
|
15421
15421
|
|
15422
15422
|
// (38:0) <Clickable className="button-outlined" {layerId} {style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue} >
|
15423
|
-
function create_default_slot$
|
15423
|
+
function create_default_slot$3(ctx) {
|
15424
15424
|
let t0;
|
15425
15425
|
let span;
|
15426
15426
|
let t1_value = (/*props*/ ctx[0].label ?? buttonOutlinedPropsDefault.label) + "";
|
@@ -15505,7 +15505,7 @@ function create_fragment$8(ctx) {
|
|
15505
15505
|
onClick: /*props*/ ctx[0].onClick,
|
15506
15506
|
eventName: /*props*/ ctx[0].eventName,
|
15507
15507
|
eventValue: /*props*/ ctx[0].eventValue,
|
15508
|
-
$$slots: { default: [create_default_slot$
|
15508
|
+
$$slots: { default: [create_default_slot$3] },
|
15509
15509
|
$$scope: { ctx }
|
15510
15510
|
}
|
15511
15511
|
});
|
@@ -15599,13 +15599,13 @@ class ButtonOutlined extends SvelteComponent {
|
|
15599
15599
|
}
|
15600
15600
|
}
|
15601
15601
|
|
15602
|
-
/* src/components-flex/text
|
15602
|
+
/* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
|
15603
15603
|
|
15604
15604
|
function add_css$6(target) {
|
15605
|
-
append_styles(target, "svelte-
|
15605
|
+
append_styles(target, "svelte-z1kekb", ".flex-button-text-icon.svelte-z1kekb{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
|
15606
15606
|
}
|
15607
15607
|
|
15608
|
-
// (
|
15608
|
+
// (99:2) {#if props.isIcon && props.iconVariant}
|
15609
15609
|
function create_if_block$3(ctx) {
|
15610
15610
|
let div;
|
15611
15611
|
let icon;
|
@@ -15634,7 +15634,7 @@ function create_if_block$3(ctx) {
|
|
15634
15634
|
this.h();
|
15635
15635
|
},
|
15636
15636
|
h() {
|
15637
|
-
attr(div, "class", "flex-text-
|
15637
|
+
attr(div, "class", "flex-button-text-icon svelte-z1kekb");
|
15638
15638
|
},
|
15639
15639
|
m(target, anchor) {
|
15640
15640
|
insert_hydration(target, div, anchor);
|
@@ -15667,62 +15667,38 @@ function create_if_block$3(ctx) {
|
|
15667
15667
|
};
|
15668
15668
|
}
|
15669
15669
|
|
15670
|
-
|
15671
|
-
|
15670
|
+
// (91:0) <Clickable className="flext-button-text" {layerId} {style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue} >
|
15671
|
+
function create_default_slot$2(ctx) {
|
15672
15672
|
let t0;
|
15673
15673
|
let span;
|
15674
15674
|
let t1_value = /*props*/ ctx[0].label + "";
|
15675
15675
|
let t1;
|
15676
15676
|
let current;
|
15677
|
-
let mounted;
|
15678
|
-
let dispose;
|
15679
15677
|
let if_block = /*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant && create_if_block$3(ctx);
|
15680
15678
|
|
15681
15679
|
return {
|
15682
15680
|
c() {
|
15683
|
-
button = element("button");
|
15684
15681
|
if (if_block) if_block.c();
|
15685
15682
|
t0 = space();
|
15686
15683
|
span = element("span");
|
15687
15684
|
t1 = text(t1_value);
|
15688
|
-
this.h();
|
15689
15685
|
},
|
15690
15686
|
l(nodes) {
|
15691
|
-
|
15692
|
-
|
15693
|
-
|
15694
|
-
class: true
|
15695
|
-
});
|
15696
|
-
|
15697
|
-
var button_nodes = children(button);
|
15698
|
-
if (if_block) if_block.l(button_nodes);
|
15699
|
-
t0 = claim_space(button_nodes);
|
15700
|
-
span = claim_element(button_nodes, "SPAN", {});
|
15687
|
+
if (if_block) if_block.l(nodes);
|
15688
|
+
t0 = claim_space(nodes);
|
15689
|
+
span = claim_element(nodes, "SPAN", {});
|
15701
15690
|
var span_nodes = children(span);
|
15702
15691
|
t1 = claim_text(span_nodes, t1_value);
|
15703
15692
|
span_nodes.forEach(detach);
|
15704
|
-
button_nodes.forEach(detach);
|
15705
|
-
this.h();
|
15706
|
-
},
|
15707
|
-
h() {
|
15708
|
-
attr(button, "data-layer-id", /*layerId*/ ctx[1]);
|
15709
|
-
attr(button, "style", /*style*/ ctx[2]);
|
15710
|
-
attr(button, "class", "flex-text-button svelte-2imv7z");
|
15711
15693
|
},
|
15712
15694
|
m(target, anchor) {
|
15713
|
-
|
15714
|
-
|
15715
|
-
|
15716
|
-
append_hydration(button, span);
|
15695
|
+
if (if_block) if_block.m(target, anchor);
|
15696
|
+
insert_hydration(target, t0, anchor);
|
15697
|
+
insert_hydration(target, span, anchor);
|
15717
15698
|
append_hydration(span, t1);
|
15718
15699
|
current = true;
|
15719
|
-
|
15720
|
-
if (!mounted) {
|
15721
|
-
dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[4]));
|
15722
|
-
mounted = true;
|
15723
|
-
}
|
15724
15700
|
},
|
15725
|
-
p(ctx,
|
15701
|
+
p(ctx, dirty) {
|
15726
15702
|
if (/*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant) {
|
15727
15703
|
if (if_block) {
|
15728
15704
|
if_block.p(ctx, dirty);
|
@@ -15734,7 +15710,7 @@ function create_fragment$7(ctx) {
|
|
15734
15710
|
if_block = create_if_block$3(ctx);
|
15735
15711
|
if_block.c();
|
15736
15712
|
transition_in(if_block, 1);
|
15737
|
-
if_block.m(
|
15713
|
+
if_block.m(t0.parentNode, t0);
|
15738
15714
|
}
|
15739
15715
|
} else if (if_block) {
|
15740
15716
|
group_outros();
|
@@ -15747,29 +15723,77 @@ function create_fragment$7(ctx) {
|
|
15747
15723
|
}
|
15748
15724
|
|
15749
15725
|
if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = /*props*/ ctx[0].label + "")) set_data(t1, t1_value);
|
15726
|
+
},
|
15727
|
+
i(local) {
|
15728
|
+
if (current) return;
|
15729
|
+
transition_in(if_block);
|
15730
|
+
current = true;
|
15731
|
+
},
|
15732
|
+
o(local) {
|
15733
|
+
transition_out(if_block);
|
15734
|
+
current = false;
|
15735
|
+
},
|
15736
|
+
d(detaching) {
|
15737
|
+
if (if_block) if_block.d(detaching);
|
15738
|
+
if (detaching) detach(t0);
|
15739
|
+
if (detaching) detach(span);
|
15740
|
+
}
|
15741
|
+
};
|
15742
|
+
}
|
15743
|
+
|
15744
|
+
function create_fragment$7(ctx) {
|
15745
|
+
let clickable;
|
15746
|
+
let current;
|
15750
15747
|
|
15751
|
-
|
15752
|
-
|
15748
|
+
clickable = new Clickable({
|
15749
|
+
props: {
|
15750
|
+
className: "flext-button-text",
|
15751
|
+
layerId: /*layerId*/ ctx[1],
|
15752
|
+
style: /*style*/ ctx[2],
|
15753
|
+
onClick: /*props*/ ctx[0].onClick,
|
15754
|
+
eventName: /*props*/ ctx[0].eventName,
|
15755
|
+
eventValue: /*props*/ ctx[0].eventValue,
|
15756
|
+
$$slots: { default: [create_default_slot$2] },
|
15757
|
+
$$scope: { ctx }
|
15753
15758
|
}
|
15759
|
+
});
|
15754
15760
|
|
15755
|
-
|
15756
|
-
|
15761
|
+
return {
|
15762
|
+
c() {
|
15763
|
+
create_component(clickable.$$.fragment);
|
15764
|
+
},
|
15765
|
+
l(nodes) {
|
15766
|
+
claim_component(clickable.$$.fragment, nodes);
|
15767
|
+
},
|
15768
|
+
m(target, anchor) {
|
15769
|
+
mount_component(clickable, target, anchor);
|
15770
|
+
current = true;
|
15771
|
+
},
|
15772
|
+
p(ctx, [dirty]) {
|
15773
|
+
const clickable_changes = {};
|
15774
|
+
if (dirty & /*layerId*/ 2) clickable_changes.layerId = /*layerId*/ ctx[1];
|
15775
|
+
if (dirty & /*style*/ 4) clickable_changes.style = /*style*/ ctx[2];
|
15776
|
+
if (dirty & /*props*/ 1) clickable_changes.onClick = /*props*/ ctx[0].onClick;
|
15777
|
+
if (dirty & /*props*/ 1) clickable_changes.eventName = /*props*/ ctx[0].eventName;
|
15778
|
+
if (dirty & /*props*/ 1) clickable_changes.eventValue = /*props*/ ctx[0].eventValue;
|
15779
|
+
|
15780
|
+
if (dirty & /*$$scope, props*/ 257) {
|
15781
|
+
clickable_changes.$$scope = { dirty, ctx };
|
15757
15782
|
}
|
15783
|
+
|
15784
|
+
clickable.$set(clickable_changes);
|
15758
15785
|
},
|
15759
15786
|
i(local) {
|
15760
15787
|
if (current) return;
|
15761
|
-
transition_in(
|
15788
|
+
transition_in(clickable.$$.fragment, local);
|
15762
15789
|
current = true;
|
15763
15790
|
},
|
15764
15791
|
o(local) {
|
15765
|
-
transition_out(
|
15792
|
+
transition_out(clickable.$$.fragment, local);
|
15766
15793
|
current = false;
|
15767
15794
|
},
|
15768
15795
|
d(detaching) {
|
15769
|
-
|
15770
|
-
if (if_block) if_block.d();
|
15771
|
-
mounted = false;
|
15772
|
-
dispose();
|
15796
|
+
destroy_component(clickable, detaching);
|
15773
15797
|
}
|
15774
15798
|
};
|
15775
15799
|
}
|
@@ -15837,18 +15861,10 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
15837
15861
|
};
|
15838
15862
|
};
|
15839
15863
|
|
15840
|
-
function handleClick() {
|
15841
|
-
if (eventName) {
|
15842
|
-
send_event(eventName, eventValue);
|
15843
|
-
}
|
15844
|
-
|
15845
|
-
execOnClickOperation(onClick);
|
15846
|
-
}
|
15847
|
-
|
15848
15864
|
$$self.$$set = $$props => {
|
15849
|
-
if ('onClick' in $$props) $$invalidate(
|
15850
|
-
if ('eventName' in $$props) $$invalidate(
|
15851
|
-
if ('eventValue' in $$props) $$invalidate(
|
15865
|
+
if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
|
15866
|
+
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
15867
|
+
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
15852
15868
|
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
15853
15869
|
if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
|
15854
15870
|
};
|
@@ -15874,10 +15890,10 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
15874
15890
|
}
|
15875
15891
|
};
|
15876
15892
|
|
15877
|
-
return [props, layerId, style, VARIANTS,
|
15893
|
+
return [props, layerId, style, VARIANTS, onClick, eventName, eventValue];
|
15878
15894
|
}
|
15879
15895
|
|
15880
|
-
class
|
15896
|
+
class ButtonText extends SvelteComponent {
|
15881
15897
|
constructor(options) {
|
15882
15898
|
super();
|
15883
15899
|
|
@@ -15888,9 +15904,9 @@ class TextButton extends SvelteComponent {
|
|
15888
15904
|
create_fragment$7,
|
15889
15905
|
safe_not_equal,
|
15890
15906
|
{
|
15891
|
-
onClick:
|
15892
|
-
eventName:
|
15893
|
-
eventValue:
|
15907
|
+
onClick: 4,
|
15908
|
+
eventName: 5,
|
15909
|
+
eventValue: 6,
|
15894
15910
|
props: 0,
|
15895
15911
|
layerId: 1
|
15896
15912
|
},
|
@@ -15899,32 +15915,6 @@ class TextButton extends SvelteComponent {
|
|
15899
15915
|
}
|
15900
15916
|
}
|
15901
15917
|
|
15902
|
-
const TEXT_BUTTON_SIZE = {
|
15903
|
-
extra_small: 'XSmall',
|
15904
|
-
small: 'Small',
|
15905
|
-
medium: 'Medium',
|
15906
|
-
large: 'Large',
|
15907
|
-
extra_large: 'XLarge',
|
15908
|
-
};
|
15909
|
-
const TEXT_BUTTON_COLOR = {
|
15910
|
-
default: 'デフォルト',
|
15911
|
-
theme: 'テーマカラー',
|
15912
|
-
alert: 'アラート',
|
15913
|
-
};
|
15914
|
-
const TEXT_BUTTON_ROUND = {
|
15915
|
-
default: 'デフォルト',
|
15916
|
-
none: 'なし',
|
15917
|
-
fulled: '円形',
|
15918
|
-
};
|
15919
|
-
const TEXT_BUTTON_LINK_TARGET = {
|
15920
|
-
_self: '画面内遷移',
|
15921
|
-
_blank: '別タブで開く',
|
15922
|
-
};
|
15923
|
-
const TEXT_BUTTON_ICON_ANGLE = {
|
15924
|
-
row: '左側',
|
15925
|
-
'row-reverse': '右側',
|
15926
|
-
};
|
15927
|
-
|
15928
15918
|
const CLOSE_BUTTON_PLACEMENT = {
|
15929
15919
|
topRight: 'topRight',
|
15930
15920
|
topLeft: 'topLeft',
|
@@ -17971,4 +17961,4 @@ const ROUND_STYLES = {
|
|
17971
17961
|
},
|
17972
17962
|
};
|
17973
17963
|
|
17974
|
-
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_WRAP_STYLES, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, 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, ButtonOutlined as FlexButtonOutlined, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Slider as FlexSlider, Text as FlexText,
|
17964
|
+
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_WRAP_STYLES, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, 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, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Slider as FlexSlider, Text as FlexText, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, 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, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_STYLES, SHADOW_VARIANT, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, 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
@@ -2505,42 +2505,16 @@ declare const buttonOutlinedPropsDefault: ButtonOutlinedProps;
|
|
2505
2505
|
declare const BUTTON_OUTLINED_SIZE_STYLES: PropStyles<ButtonOutlinedProps, "size">;
|
2506
2506
|
declare const BUTTON_OUTLINED_ROUND_STYLES: PropStyles<ButtonOutlinedProps, "round">;
|
2507
2507
|
declare const BUTTON_OUTLINED_WRAP_STYLES: PropStyles<ButtonOutlinedProps, "wrap">;
|
2508
|
-
|
2509
|
-
readonly extra_small: "XSmall";
|
2510
|
-
readonly small: "Small";
|
2511
|
-
readonly medium: "Medium";
|
2512
|
-
readonly large: "Large";
|
2513
|
-
readonly extra_large: "XLarge";
|
2514
|
-
};
|
2515
|
-
declare const TEXT_BUTTON_COLOR: {
|
2516
|
-
readonly default: "\u30C7\u30D5\u30A9\u30EB\u30C8";
|
2517
|
-
readonly theme: "\u30C6\u30FC\u30DE\u30AB\u30E9\u30FC";
|
2518
|
-
readonly alert: "\u30A2\u30E9\u30FC\u30C8";
|
2519
|
-
};
|
2520
|
-
declare const TEXT_BUTTON_ROUND: {
|
2521
|
-
readonly default: "\u30C7\u30D5\u30A9\u30EB\u30C8";
|
2522
|
-
readonly none: "\u306A\u3057";
|
2523
|
-
readonly fulled: "\u5186\u5F62";
|
2524
|
-
};
|
2525
|
-
declare const TEXT_BUTTON_LINK_TARGET: {
|
2526
|
-
readonly _self: "\u753B\u9762\u5185\u9077\u79FB";
|
2527
|
-
readonly _blank: "\u5225\u30BF\u30D6\u3067\u958B\u304F";
|
2528
|
-
};
|
2529
|
-
declare const TEXT_BUTTON_ICON_ANGLE: {
|
2530
|
-
readonly row: "\u5DE6\u5074";
|
2531
|
-
readonly "row-reverse": "\u53F3\u5074";
|
2532
|
-
};
|
2533
|
-
type TextButtonProps = CommonProps & {
|
2508
|
+
type ButtonTextProps = CommonProps & ClickableProps & {
|
2534
2509
|
label?: string;
|
2535
|
-
size?: keyof typeof
|
2536
|
-
|
2537
|
-
round?: keyof typeof TEXT_BUTTON_ROUND;
|
2510
|
+
size?: keyof typeof BUTTON_SIZE;
|
2511
|
+
theme?: keyof typeof BUTTON_THEME;
|
2538
2512
|
isLink?: boolean;
|
2539
2513
|
isIcon?: boolean;
|
2540
2514
|
linkUrl?: string;
|
2541
|
-
linkTarget?: keyof typeof
|
2515
|
+
linkTarget?: keyof typeof BUTTON_LINK_TARGET;
|
2542
2516
|
iconVariant?: string;
|
2543
|
-
iconAngle?: keyof typeof
|
2517
|
+
iconAngle?: keyof typeof BUTTON_ICON_ANGLE;
|
2544
2518
|
width?: Properties["width"];
|
2545
2519
|
wrap?: "wrap" | "nowrap";
|
2546
2520
|
fontWeight?: Properties["fontWeight"];
|
@@ -2774,7 +2748,7 @@ declare const TEXT_VARIANTS: {
|
|
2774
2748
|
};
|
2775
2749
|
declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
|
2776
2750
|
declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
|
2777
|
-
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, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES,
|
2751
|
+
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, PropStyles, SHADOW_VARIANT, ROUND_VARIANT, PositionProps, MetaProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, BUTTON_SIZE_STYLES, BUTTON_THEME_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, ButtonTextProps, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS, SHADOW_STYLES, ROUND_STYLES };
|
2778
2752
|
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 };
|
2779
2753
|
export { default as State } from './components/State.svelte';
|
2780
2754
|
export { default as StateItem } from './components/StateItem.svelte';
|
@@ -2812,7 +2786,7 @@ export { default as ImageBlock } from './components/ImageBlock.svelte';
|
|
2812
2786
|
export { default as FlexAvatar } from './components-flex/avatar/Avatar.svelte';
|
2813
2787
|
export { default as FlexButton } from './components-flex/button/Button.svelte';
|
2814
2788
|
export { default as FlexButtonOutlined } from './components-flex/button-outlined/ButtonOutlined.svelte';
|
2815
|
-
export { default as
|
2789
|
+
export { default as FlexButtonText } from './components-flex/button-text/ButtonText.svelte';
|
2816
2790
|
export { default as FlexCloseButton } from './components-flex/close-button/CloseButton.svelte';
|
2817
2791
|
export { default as FlexIcon } from './components-flex/icon/Icon.svelte';
|
2818
2792
|
export { default as FlexImage } from './components-flex/image/Image.svelte';
|
package/dist/index.es.js
CHANGED
@@ -4149,7 +4149,7 @@ function create_if_block$d(ctx) {
|
|
4149
4149
|
onClick: /*onClick*/ ctx[0],
|
4150
4150
|
eventName: /*clickEventName*/ ctx[1],
|
4151
4151
|
eventValue: /*clickEventValue*/ ctx[2],
|
4152
|
-
$$slots: { default: [create_default_slot$
|
4152
|
+
$$slots: { default: [create_default_slot$d] },
|
4153
4153
|
$$scope: { ctx }
|
4154
4154
|
}
|
4155
4155
|
});
|
@@ -4311,7 +4311,7 @@ function create_default_slot_1$1(ctx) {
|
|
4311
4311
|
}
|
4312
4312
|
|
4313
4313
|
// (293:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
4314
|
-
function create_default_slot$
|
4314
|
+
function create_default_slot$d(ctx) {
|
4315
4315
|
let t;
|
4316
4316
|
let div;
|
4317
4317
|
let current;
|
@@ -5630,7 +5630,7 @@ function add_css$z(target) {
|
|
5630
5630
|
}
|
5631
5631
|
|
5632
5632
|
// (48:2) <Button {onClick} {style} {eventName}>
|
5633
|
-
function create_default_slot$
|
5633
|
+
function create_default_slot$c(ctx) {
|
5634
5634
|
let rendertext;
|
5635
5635
|
let current;
|
5636
5636
|
rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
|
@@ -5673,7 +5673,7 @@ function create_fragment$15(ctx) {
|
|
5673
5673
|
onClick: /*onClick*/ ctx[1],
|
5674
5674
|
style: /*style*/ ctx[3],
|
5675
5675
|
eventName: /*eventName*/ ctx[2],
|
5676
|
-
$$slots: { default: [create_default_slot$
|
5676
|
+
$$slots: { default: [create_default_slot$c] },
|
5677
5677
|
$$scope: { ctx }
|
5678
5678
|
}
|
5679
5679
|
});
|
@@ -5778,7 +5778,7 @@ function add_css$y(target) {
|
|
5778
5778
|
}
|
5779
5779
|
|
5780
5780
|
// (44:2) <Button {onClick} style={_style} {eventName}>
|
5781
|
-
function create_default_slot$
|
5781
|
+
function create_default_slot$b(ctx) {
|
5782
5782
|
let img;
|
5783
5783
|
let img_style_value;
|
5784
5784
|
let img_src_value;
|
@@ -5839,7 +5839,7 @@ function create_fragment$14(ctx) {
|
|
5839
5839
|
onClick: /*onClick*/ ctx[4],
|
5840
5840
|
style: /*_style*/ ctx[7],
|
5841
5841
|
eventName: /*eventName*/ ctx[5],
|
5842
|
-
$$slots: { default: [create_default_slot$
|
5842
|
+
$$slots: { default: [create_default_slot$b] },
|
5843
5843
|
$$scope: { ctx }
|
5844
5844
|
}
|
5845
5845
|
});
|
@@ -6090,7 +6090,7 @@ function add_css$w(target) {
|
|
6090
6090
|
}
|
6091
6091
|
|
6092
6092
|
// (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
|
6093
|
-
function create_default_slot$
|
6093
|
+
function create_default_slot$a(ctx) {
|
6094
6094
|
let current;
|
6095
6095
|
const default_slot_template = /*#slots*/ ctx[5].default;
|
6096
6096
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
|
@@ -6147,7 +6147,7 @@ function create_fragment$12(ctx) {
|
|
6147
6147
|
onClick: /*onClick*/ ctx[0],
|
6148
6148
|
style: /*_style*/ ctx[2],
|
6149
6149
|
eventName: /*clickEventName*/ ctx[1],
|
6150
|
-
$$slots: { default: [create_default_slot$
|
6150
|
+
$$slots: { default: [create_default_slot$a] },
|
6151
6151
|
$$scope: { ctx }
|
6152
6152
|
}
|
6153
6153
|
});
|
@@ -9943,7 +9943,7 @@ function add_css$h(target) {
|
|
9943
9943
|
}
|
9944
9944
|
|
9945
9945
|
// (24:2) <Button {onClick} style={_style} {eventName}>
|
9946
|
-
function create_default_slot$
|
9946
|
+
function create_default_slot$9(ctx) {
|
9947
9947
|
let current;
|
9948
9948
|
const default_slot_template = /*#slots*/ ctx[3].default;
|
9949
9949
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
|
@@ -10000,7 +10000,7 @@ function create_fragment$P(ctx) {
|
|
10000
10000
|
onClick: /*onClick*/ ctx[0],
|
10001
10001
|
style: /*_style*/ ctx[2],
|
10002
10002
|
eventName: /*eventName*/ ctx[1],
|
10003
|
-
$$slots: { default: [create_default_slot$
|
10003
|
+
$$slots: { default: [create_default_slot$9] },
|
10004
10004
|
$$scope: { ctx }
|
10005
10005
|
}
|
10006
10006
|
});
|
@@ -10099,7 +10099,7 @@ function create_if_block$8(ctx) {
|
|
10099
10099
|
}
|
10100
10100
|
|
10101
10101
|
// (55:2) <Button {onClick} {style} {eventName}>
|
10102
|
-
function create_default_slot$
|
10102
|
+
function create_default_slot$8(ctx) {
|
10103
10103
|
let if_block_anchor;
|
10104
10104
|
let if_block = /*svg*/ ctx[3] && create_if_block$8(ctx);
|
10105
10105
|
|
@@ -10143,7 +10143,7 @@ function create_fragment$O(ctx) {
|
|
10143
10143
|
onClick: /*onClick*/ ctx[0],
|
10144
10144
|
style: /*style*/ ctx[2],
|
10145
10145
|
eventName: /*eventName*/ ctx[1],
|
10146
|
-
$$slots: { default: [create_default_slot$
|
10146
|
+
$$slots: { default: [create_default_slot$8] },
|
10147
10147
|
$$scope: { ctx }
|
10148
10148
|
}
|
10149
10149
|
});
|
@@ -10701,7 +10701,7 @@ function create_default_slot_1(ctx) {
|
|
10701
10701
|
}
|
10702
10702
|
|
10703
10703
|
// (106:0) <StateItem {path}>
|
10704
|
-
function create_default_slot$
|
10704
|
+
function create_default_slot$7(ctx) {
|
10705
10705
|
let modal;
|
10706
10706
|
let current;
|
10707
10707
|
|
@@ -10773,7 +10773,7 @@ function create_fragment$K(ctx) {
|
|
10773
10773
|
stateitem = new StateItem({
|
10774
10774
|
props: {
|
10775
10775
|
path: /*path*/ ctx[0],
|
10776
|
-
$$slots: { default: [create_default_slot$
|
10776
|
+
$$slots: { default: [create_default_slot$7] },
|
10777
10777
|
$$scope: { ctx }
|
10778
10778
|
}
|
10779
10779
|
});
|
@@ -11771,7 +11771,7 @@ class Clickable extends SvelteComponent {
|
|
11771
11771
|
|
11772
11772
|
/* src/components-flex/avatar/Avatar.svelte generated by Svelte v3.53.1 */
|
11773
11773
|
|
11774
|
-
function create_default_slot$
|
11774
|
+
function create_default_slot$6(ctx) {
|
11775
11775
|
let img;
|
11776
11776
|
let img_src_value;
|
11777
11777
|
let img_alt_value;
|
@@ -11816,7 +11816,7 @@ function create_fragment$F(ctx) {
|
|
11816
11816
|
onClick: /*props*/ ctx[0].onClick,
|
11817
11817
|
eventName: /*props*/ ctx[0].eventName,
|
11818
11818
|
eventValue: /*props*/ ctx[0].eventValue,
|
11819
|
-
$$slots: { default: [create_default_slot$
|
11819
|
+
$$slots: { default: [create_default_slot$6] },
|
11820
11820
|
$$scope: { ctx }
|
11821
11821
|
}
|
11822
11822
|
});
|
@@ -13570,7 +13570,7 @@ function create_if_block$6(ctx) {
|
|
13570
13570
|
onClick: /*props*/ ctx[0].onClick,
|
13571
13571
|
eventName: /*props*/ ctx[0].eventName,
|
13572
13572
|
eventValue: /*props*/ ctx[0].eventValue,
|
13573
|
-
$$slots: { default: [create_default_slot$
|
13573
|
+
$$slots: { default: [create_default_slot$5] },
|
13574
13574
|
$$scope: { ctx }
|
13575
13575
|
}
|
13576
13576
|
});
|
@@ -13613,7 +13613,7 @@ function create_if_block$6(ctx) {
|
|
13613
13613
|
}
|
13614
13614
|
|
13615
13615
|
// (26:2) <CLICKABLE layerId={layerId} style={style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue}>
|
13616
|
-
function create_default_slot$
|
13616
|
+
function create_default_slot$5(ctx) {
|
13617
13617
|
let switch_instance;
|
13618
13618
|
let switch_instance_anchor;
|
13619
13619
|
let current;
|
@@ -14008,7 +14008,7 @@ function create_if_block$5(ctx) {
|
|
14008
14008
|
}
|
14009
14009
|
|
14010
14010
|
// (41:0) <Clickable className="button" layerId={layerId} style={style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue}>
|
14011
|
-
function create_default_slot$
|
14011
|
+
function create_default_slot$4(ctx) {
|
14012
14012
|
let t0;
|
14013
14013
|
let span;
|
14014
14014
|
let t1_value = (/*props*/ ctx[0].label ?? buttonPropsDefault.label) + "";
|
@@ -14085,7 +14085,7 @@ function create_fragment$9(ctx) {
|
|
14085
14085
|
onClick: /*props*/ ctx[0].onClick,
|
14086
14086
|
eventName: /*props*/ ctx[0].eventName,
|
14087
14087
|
eventValue: /*props*/ ctx[0].eventValue,
|
14088
|
-
$$slots: { default: [create_default_slot$
|
14088
|
+
$$slots: { default: [create_default_slot$4] },
|
14089
14089
|
$$scope: { ctx }
|
14090
14090
|
}
|
14091
14091
|
});
|
@@ -14315,7 +14315,7 @@ function create_if_block$4(ctx) {
|
|
14315
14315
|
}
|
14316
14316
|
|
14317
14317
|
// (38:0) <Clickable className="button-outlined" {layerId} {style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue} >
|
14318
|
-
function create_default_slot$
|
14318
|
+
function create_default_slot$3(ctx) {
|
14319
14319
|
let t0;
|
14320
14320
|
let span;
|
14321
14321
|
let t1_value = (/*props*/ ctx[0].label ?? buttonOutlinedPropsDefault.label) + "";
|
@@ -14392,7 +14392,7 @@ function create_fragment$8(ctx) {
|
|
14392
14392
|
onClick: /*props*/ ctx[0].onClick,
|
14393
14393
|
eventName: /*props*/ ctx[0].eventName,
|
14394
14394
|
eventValue: /*props*/ ctx[0].eventValue,
|
14395
|
-
$$slots: { default: [create_default_slot$
|
14395
|
+
$$slots: { default: [create_default_slot$3] },
|
14396
14396
|
$$scope: { ctx }
|
14397
14397
|
}
|
14398
14398
|
});
|
@@ -14483,13 +14483,13 @@ class ButtonOutlined extends SvelteComponent {
|
|
14483
14483
|
}
|
14484
14484
|
}
|
14485
14485
|
|
14486
|
-
/* src/components-flex/text
|
14486
|
+
/* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
|
14487
14487
|
|
14488
14488
|
function add_css$6(target) {
|
14489
|
-
append_styles(target, "svelte-
|
14489
|
+
append_styles(target, "svelte-z1kekb", ".flex-button-text-icon.svelte-z1kekb{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
|
14490
14490
|
}
|
14491
14491
|
|
14492
|
-
// (
|
14492
|
+
// (99:2) {#if props.isIcon && props.iconVariant}
|
14493
14493
|
function create_if_block$3(ctx) {
|
14494
14494
|
let div;
|
14495
14495
|
let icon;
|
@@ -14508,7 +14508,7 @@ function create_if_block$3(ctx) {
|
|
14508
14508
|
c() {
|
14509
14509
|
div = element("div");
|
14510
14510
|
create_component(icon.$$.fragment);
|
14511
|
-
attr(div, "class", "flex-text-
|
14511
|
+
attr(div, "class", "flex-button-text-icon svelte-z1kekb");
|
14512
14512
|
},
|
14513
14513
|
m(target, anchor) {
|
14514
14514
|
insert(target, div, anchor);
|
@@ -14541,42 +14541,30 @@ function create_if_block$3(ctx) {
|
|
14541
14541
|
};
|
14542
14542
|
}
|
14543
14543
|
|
14544
|
-
|
14545
|
-
|
14544
|
+
// (91:0) <Clickable className="flext-button-text" {layerId} {style} onClick={props.onClick} eventName={props.eventName} eventValue={props.eventValue} >
|
14545
|
+
function create_default_slot$2(ctx) {
|
14546
14546
|
let t0;
|
14547
14547
|
let span;
|
14548
14548
|
let t1_value = /*props*/ ctx[0].label + "";
|
14549
14549
|
let t1;
|
14550
14550
|
let current;
|
14551
|
-
let mounted;
|
14552
|
-
let dispose;
|
14553
14551
|
let if_block = /*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant && create_if_block$3(ctx);
|
14554
14552
|
|
14555
14553
|
return {
|
14556
14554
|
c() {
|
14557
|
-
button = element("button");
|
14558
14555
|
if (if_block) if_block.c();
|
14559
14556
|
t0 = space();
|
14560
14557
|
span = element("span");
|
14561
14558
|
t1 = text(t1_value);
|
14562
|
-
attr(button, "data-layer-id", /*layerId*/ ctx[1]);
|
14563
|
-
attr(button, "style", /*style*/ ctx[2]);
|
14564
|
-
attr(button, "class", "flex-text-button svelte-2imv7z");
|
14565
14559
|
},
|
14566
14560
|
m(target, anchor) {
|
14567
|
-
|
14568
|
-
|
14569
|
-
|
14570
|
-
append(button, span);
|
14561
|
+
if (if_block) if_block.m(target, anchor);
|
14562
|
+
insert(target, t0, anchor);
|
14563
|
+
insert(target, span, anchor);
|
14571
14564
|
append(span, t1);
|
14572
14565
|
current = true;
|
14573
|
-
|
14574
|
-
if (!mounted) {
|
14575
|
-
dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[4]));
|
14576
|
-
mounted = true;
|
14577
|
-
}
|
14578
14566
|
},
|
14579
|
-
p(ctx,
|
14567
|
+
p(ctx, dirty) {
|
14580
14568
|
if (/*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant) {
|
14581
14569
|
if (if_block) {
|
14582
14570
|
if_block.p(ctx, dirty);
|
@@ -14588,7 +14576,7 @@ function create_fragment$7(ctx) {
|
|
14588
14576
|
if_block = create_if_block$3(ctx);
|
14589
14577
|
if_block.c();
|
14590
14578
|
transition_in(if_block, 1);
|
14591
|
-
if_block.m(
|
14579
|
+
if_block.m(t0.parentNode, t0);
|
14592
14580
|
}
|
14593
14581
|
} else if (if_block) {
|
14594
14582
|
group_outros();
|
@@ -14601,29 +14589,74 @@ function create_fragment$7(ctx) {
|
|
14601
14589
|
}
|
14602
14590
|
|
14603
14591
|
if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = /*props*/ ctx[0].label + "")) set_data(t1, t1_value);
|
14592
|
+
},
|
14593
|
+
i(local) {
|
14594
|
+
if (current) return;
|
14595
|
+
transition_in(if_block);
|
14596
|
+
current = true;
|
14597
|
+
},
|
14598
|
+
o(local) {
|
14599
|
+
transition_out(if_block);
|
14600
|
+
current = false;
|
14601
|
+
},
|
14602
|
+
d(detaching) {
|
14603
|
+
if (if_block) if_block.d(detaching);
|
14604
|
+
if (detaching) detach(t0);
|
14605
|
+
if (detaching) detach(span);
|
14606
|
+
}
|
14607
|
+
};
|
14608
|
+
}
|
14609
|
+
|
14610
|
+
function create_fragment$7(ctx) {
|
14611
|
+
let clickable;
|
14612
|
+
let current;
|
14604
14613
|
|
14605
|
-
|
14606
|
-
|
14614
|
+
clickable = new Clickable({
|
14615
|
+
props: {
|
14616
|
+
className: "flext-button-text",
|
14617
|
+
layerId: /*layerId*/ ctx[1],
|
14618
|
+
style: /*style*/ ctx[2],
|
14619
|
+
onClick: /*props*/ ctx[0].onClick,
|
14620
|
+
eventName: /*props*/ ctx[0].eventName,
|
14621
|
+
eventValue: /*props*/ ctx[0].eventValue,
|
14622
|
+
$$slots: { default: [create_default_slot$2] },
|
14623
|
+
$$scope: { ctx }
|
14607
14624
|
}
|
14625
|
+
});
|
14608
14626
|
|
14609
|
-
|
14610
|
-
|
14627
|
+
return {
|
14628
|
+
c() {
|
14629
|
+
create_component(clickable.$$.fragment);
|
14630
|
+
},
|
14631
|
+
m(target, anchor) {
|
14632
|
+
mount_component(clickable, target, anchor);
|
14633
|
+
current = true;
|
14634
|
+
},
|
14635
|
+
p(ctx, [dirty]) {
|
14636
|
+
const clickable_changes = {};
|
14637
|
+
if (dirty & /*layerId*/ 2) clickable_changes.layerId = /*layerId*/ ctx[1];
|
14638
|
+
if (dirty & /*style*/ 4) clickable_changes.style = /*style*/ ctx[2];
|
14639
|
+
if (dirty & /*props*/ 1) clickable_changes.onClick = /*props*/ ctx[0].onClick;
|
14640
|
+
if (dirty & /*props*/ 1) clickable_changes.eventName = /*props*/ ctx[0].eventName;
|
14641
|
+
if (dirty & /*props*/ 1) clickable_changes.eventValue = /*props*/ ctx[0].eventValue;
|
14642
|
+
|
14643
|
+
if (dirty & /*$$scope, props*/ 257) {
|
14644
|
+
clickable_changes.$$scope = { dirty, ctx };
|
14611
14645
|
}
|
14646
|
+
|
14647
|
+
clickable.$set(clickable_changes);
|
14612
14648
|
},
|
14613
14649
|
i(local) {
|
14614
14650
|
if (current) return;
|
14615
|
-
transition_in(
|
14651
|
+
transition_in(clickable.$$.fragment, local);
|
14616
14652
|
current = true;
|
14617
14653
|
},
|
14618
14654
|
o(local) {
|
14619
|
-
transition_out(
|
14655
|
+
transition_out(clickable.$$.fragment, local);
|
14620
14656
|
current = false;
|
14621
14657
|
},
|
14622
14658
|
d(detaching) {
|
14623
|
-
|
14624
|
-
if (if_block) if_block.d();
|
14625
|
-
mounted = false;
|
14626
|
-
dispose();
|
14659
|
+
destroy_component(clickable, detaching);
|
14627
14660
|
}
|
14628
14661
|
};
|
14629
14662
|
}
|
@@ -14691,18 +14724,10 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
14691
14724
|
};
|
14692
14725
|
};
|
14693
14726
|
|
14694
|
-
function handleClick() {
|
14695
|
-
if (eventName) {
|
14696
|
-
send_event(eventName, eventValue);
|
14697
|
-
}
|
14698
|
-
|
14699
|
-
execOnClickOperation(onClick);
|
14700
|
-
}
|
14701
|
-
|
14702
14727
|
$$self.$$set = $$props => {
|
14703
|
-
if ('onClick' in $$props) $$invalidate(
|
14704
|
-
if ('eventName' in $$props) $$invalidate(
|
14705
|
-
if ('eventValue' in $$props) $$invalidate(
|
14728
|
+
if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
|
14729
|
+
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
14730
|
+
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
14706
14731
|
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
14707
14732
|
if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
|
14708
14733
|
};
|
@@ -14728,10 +14753,10 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
14728
14753
|
}
|
14729
14754
|
};
|
14730
14755
|
|
14731
|
-
return [props, layerId, style, VARIANTS,
|
14756
|
+
return [props, layerId, style, VARIANTS, onClick, eventName, eventValue];
|
14732
14757
|
}
|
14733
14758
|
|
14734
|
-
class
|
14759
|
+
class ButtonText extends SvelteComponent {
|
14735
14760
|
constructor(options) {
|
14736
14761
|
super();
|
14737
14762
|
|
@@ -14742,9 +14767,9 @@ class TextButton extends SvelteComponent {
|
|
14742
14767
|
create_fragment$7,
|
14743
14768
|
safe_not_equal,
|
14744
14769
|
{
|
14745
|
-
onClick:
|
14746
|
-
eventName:
|
14747
|
-
eventValue:
|
14770
|
+
onClick: 4,
|
14771
|
+
eventName: 5,
|
14772
|
+
eventValue: 6,
|
14748
14773
|
props: 0,
|
14749
14774
|
layerId: 1
|
14750
14775
|
},
|
@@ -14753,32 +14778,6 @@ class TextButton extends SvelteComponent {
|
|
14753
14778
|
}
|
14754
14779
|
}
|
14755
14780
|
|
14756
|
-
const TEXT_BUTTON_SIZE = {
|
14757
|
-
extra_small: 'XSmall',
|
14758
|
-
small: 'Small',
|
14759
|
-
medium: 'Medium',
|
14760
|
-
large: 'Large',
|
14761
|
-
extra_large: 'XLarge',
|
14762
|
-
};
|
14763
|
-
const TEXT_BUTTON_COLOR = {
|
14764
|
-
default: 'デフォルト',
|
14765
|
-
theme: 'テーマカラー',
|
14766
|
-
alert: 'アラート',
|
14767
|
-
};
|
14768
|
-
const TEXT_BUTTON_ROUND = {
|
14769
|
-
default: 'デフォルト',
|
14770
|
-
none: 'なし',
|
14771
|
-
fulled: '円形',
|
14772
|
-
};
|
14773
|
-
const TEXT_BUTTON_LINK_TARGET = {
|
14774
|
-
_self: '画面内遷移',
|
14775
|
-
_blank: '別タブで開く',
|
14776
|
-
};
|
14777
|
-
const TEXT_BUTTON_ICON_ANGLE = {
|
14778
|
-
row: '左側',
|
14779
|
-
'row-reverse': '右側',
|
14780
|
-
};
|
14781
|
-
|
14782
14781
|
const CLOSE_BUTTON_PLACEMENT = {
|
14783
14782
|
topRight: 'topRight',
|
14784
14783
|
topLeft: 'topLeft',
|
@@ -16704,4 +16703,4 @@ const ROUND_STYLES = {
|
|
16704
16703
|
},
|
16705
16704
|
};
|
16706
16705
|
|
16707
|
-
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_WRAP_STYLES, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, 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, ButtonOutlined as FlexButtonOutlined, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Slider as FlexSlider, Text as FlexText,
|
16706
|
+
export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_THEME, BUTTON_THEME_STYLES, BUTTON_WRAP_STYLES, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, 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, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Slider as FlexSlider, Text as FlexText, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, 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, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_STYLES, SHADOW_VARIANT, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, 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/templates.cjs.js
CHANGED
package/dist/templates.js
CHANGED