@plaidev/karte-action-sdk 1.1.264-29046374.a006e69f → 1.1.264-29051600.c90abff9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hydrate/index.es.d.ts +8 -2
- package/dist/hydrate/index.es.js +105 -83
- package/dist/index.es.d.ts +8 -2
- package/dist/index.es.js +105 -83
- package/dist/svelte5/hydrate/index.es.d.ts +8 -2
- package/dist/svelte5/hydrate/index.es.js +118 -97
- package/dist/svelte5/index.es.d.ts +8 -2
- package/dist/svelte5/index.es.js +118 -97
- package/dist/svelte5/index.front2.es.js +118 -97
- package/package.json +1 -1
@@ -2460,6 +2460,9 @@ type CustomizeCssProps = {
|
|
2460
2460
|
type BrandStyleProps = {
|
2461
2461
|
customBrandKit?: Partial<BrandKit>;
|
2462
2462
|
};
|
2463
|
+
type ActionTableProps = {
|
2464
|
+
actionTableKey?: string;
|
2465
|
+
};
|
2463
2466
|
type CommonProps = MetaProps & PositionProps & CustomizeCssProps & BrandStyleProps;
|
2464
2467
|
type ClickableProps = {
|
2465
2468
|
onClick?: OnClickOperation;
|
@@ -2797,7 +2800,10 @@ type TextLinkProps = CommonProps & ClickableProps & LinkProps & FontFamilyProps
|
|
2797
2800
|
};
|
2798
2801
|
declare const TEXT_LINK_SIZE_STYLES: PropStyles<TextLinkProps, "size">;
|
2799
2802
|
declare const getTextLinkThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextLinkProps>;
|
2800
|
-
type
|
2803
|
+
type FrameModalProps = CommonProps & OverflowProps & BorderProps & RadiusProps & ShadowProps & BackgroundColorProps & BackgroundImageProps & {
|
2804
|
+
width?: Properties["width"];
|
2805
|
+
};
|
2806
|
+
type ListProps = CommonProps & ActionTableProps & {
|
2801
2807
|
gap?: Properties["gap"];
|
2802
2808
|
borderWidth?: Properties["borderTopWidth"];
|
2803
2809
|
borderStyle?: Properties["borderTopStyle"];
|
@@ -2893,7 +2899,7 @@ type CodeProps = CommonProps & {
|
|
2893
2899
|
rawScript?: string;
|
2894
2900
|
};
|
2895
2901
|
declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
|
2896
|
-
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, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, BrandStyleProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AspectProps, FontFamilyProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, avatarPropsDefault, AVATAR_SIZE_STYLES, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANT, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, getButtonThemeStyles, BUTTON_SIZE_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, getButtonOutlinedThemeStyles, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, getButtonTextThemeStyles, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, IMAGE_ROUND_SHAPE, IMAGE_ASPECT_VARIANTS, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, SliderItemProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, getTextThemeStyles, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, getTextLinkThemeStyles, ListProps, ListItemProps, LIST_ITEM_CONTEXT_KEY, ListItemContext, MultiColumnProps, MultiColumnItemProps, MULTI_COLUMN_ITEM_CONTEXT_KEY, MultiColumnItemContext, YoutubeProps, CountDownProps, CountDownValueType, CountDownValueProps, CountDownValues, ClipboardProps, CodeProps, BrandKit, getBrandKit, useBrandKit, ROUND_STYLES, VariantStyles, VariantDefinition, VariantDefinitionGroup, ASPECT_VARIANT, AspectVariantCode, ASPECT_VARIANTS, FontVariantMeta, FONT_FAMILY_VARIANT, FontFamilyVariantCode, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, SHADOW_VARIANT, ShadowVariantCode, SHADOW_VARIANTS };
|
2902
|
+
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, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, BrandStyleProps, ActionTableProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AspectProps, FontFamilyProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, avatarPropsDefault, AVATAR_SIZE_STYLES, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANT, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, getButtonThemeStyles, BUTTON_SIZE_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, getButtonOutlinedThemeStyles, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, getButtonTextThemeStyles, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, IMAGE_ROUND_SHAPE, IMAGE_ASPECT_VARIANTS, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, SliderItemProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, getTextThemeStyles, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, getTextLinkThemeStyles, FrameModalProps, ListProps, ListItemProps, LIST_ITEM_CONTEXT_KEY, ListItemContext, MultiColumnProps, MultiColumnItemProps, MULTI_COLUMN_ITEM_CONTEXT_KEY, MultiColumnItemContext, YoutubeProps, CountDownProps, CountDownValueType, CountDownValueProps, CountDownValues, ClipboardProps, CodeProps, BrandKit, getBrandKit, useBrandKit, ROUND_STYLES, VariantStyles, VariantDefinition, VariantDefinitionGroup, ASPECT_VARIANT, AspectVariantCode, ASPECT_VARIANTS, FontVariantMeta, FONT_FAMILY_VARIANT, FontFamilyVariantCode, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, SHADOW_VARIANT, ShadowVariantCode, SHADOW_VARIANTS };
|
2897
2903
|
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 };
|
2898
2904
|
export { default as State } from './components-flex/state/State.svelte';
|
2899
2905
|
export { default as StateItem } from './components-flex/state/StateItem.svelte';
|
@@ -5326,8 +5326,6 @@ function Slider($$anchor, $$props) {
|
|
5326
5326
|
};
|
5327
5327
|
|
5328
5328
|
const handleClick = (e) => {
|
5329
|
-
console.log('handleClick', isDragging);
|
5330
|
-
|
5331
5329
|
if (isDragging) {
|
5332
5330
|
e.preventDefault();
|
5333
5331
|
e.stopPropagation();
|
@@ -5352,6 +5350,7 @@ function Slider($$anchor, $$props) {
|
|
5352
5350
|
$.set(movedX, null);
|
5353
5351
|
document.removeEventListener('touchmove', handleTouchmove);
|
5354
5352
|
document.removeEventListener('touchend', handleTouchend);
|
5353
|
+
document.removeEventListener('click', handleClick);
|
5355
5354
|
};
|
5356
5355
|
|
5357
5356
|
const handleTouchstart = (e) => {
|
@@ -5371,8 +5370,6 @@ function Slider($$anchor, $$props) {
|
|
5371
5370
|
};
|
5372
5371
|
|
5373
5372
|
const handleMouseup = (e) => {
|
5374
|
-
console.log('handleMouseup');
|
5375
|
-
|
5376
5373
|
if ($.get(movedX) >= 32) {
|
5377
5374
|
toNext();
|
5378
5375
|
} else if ($.get(movedX) <= -32) {
|
@@ -6125,11 +6122,13 @@ function Modal($$anchor, $$props) {
|
|
6125
6122
|
const backgroundClickSP = $.mutable_state();
|
6126
6123
|
const handle_keydown = $.mutable_state();
|
6127
6124
|
const visible = $.mutable_state();
|
6125
|
+
const style = $.mutable_state();
|
6128
6126
|
let useBreakPoint = $.prop($$props, 'useBreakPoint', 8, false);
|
6129
6127
|
let placement = $.prop($$props, 'placement', 8);
|
6130
6128
|
let breakPoint = $.prop($$props, 'breakPoint', 8);
|
6131
6129
|
let elasticity = $.prop($$props, 'elasticity', 8);
|
6132
6130
|
let animation = $.prop($$props, 'animation', 8, 'none');
|
6131
|
+
let props = $.prop($$props, 'props', 24, () => ({}));
|
6133
6132
|
let closeEventName = $.prop($$props, 'closeEventName', 8, '');
|
6134
6133
|
let closeEventValue = $.prop($$props, 'closeEventValue', 8, null);
|
6135
6134
|
let layerId = $.prop($$props, 'layerId', 8, '');
|
@@ -6378,6 +6377,24 @@ function Modal($$anchor, $$props) {
|
|
6378
6377
|
$.set(visible, false);
|
6379
6378
|
});
|
6380
6379
|
|
6380
|
+
$.legacy_pre_effect(
|
6381
|
+
() => (
|
6382
|
+
$.deep_read_state(props()),
|
6383
|
+
toCssBorder
|
6384
|
+
),
|
6385
|
+
() => {
|
6386
|
+
$.set(style, objToStyle({
|
6387
|
+
width: props().width,
|
6388
|
+
...toCssOverflow(props()),
|
6389
|
+
...toCssShadow(props()),
|
6390
|
+
...toCssRadius(props()),
|
6391
|
+
...toCssBackgroundImage(props()),
|
6392
|
+
...toCssBackgroundColor(props()),
|
6393
|
+
...toCssBorder(props())
|
6394
|
+
}));
|
6395
|
+
}
|
6396
|
+
);
|
6397
|
+
|
6381
6398
|
$.legacy_pre_effect_reset();
|
6382
6399
|
$.init();
|
6383
6400
|
|
@@ -6419,7 +6436,10 @@ function Modal($$anchor, $$props) {
|
|
6419
6436
|
'modal',
|
6420
6437
|
useBreakPoint() ? 'modal-bp' : ''
|
6421
6438
|
].join(' ')),
|
6422
|
-
() =>
|
6439
|
+
() => [
|
6440
|
+
Array.from(modalStyles).join(';'),
|
6441
|
+
$.get(style)
|
6442
|
+
].join(' ')
|
6423
6443
|
],
|
6424
6444
|
$.derived_safe_equal
|
6425
6445
|
);
|
@@ -6508,95 +6528,23 @@ function Code($$anchor, $$props) {
|
|
6508
6528
|
|
6509
6529
|
const LIST_ITEM_CONTEXT_KEY = 'ListItemContext';
|
6510
6530
|
|
6511
|
-
var root$7 = $.template(`<
|
6531
|
+
var root$7 = $.template(`<li class="list-item svelte-1223veg"><!></li>`);
|
6512
6532
|
|
6513
6533
|
const $$css$6 = {
|
6514
|
-
hash: 'svelte-v2vy6p',
|
6515
|
-
code: '.list.svelte-v2vy6p {padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width: 0;--border-style: solit;--border-color: rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color);}'
|
6516
|
-
};
|
6517
|
-
|
6518
|
-
function List($$anchor, $$props) {
|
6519
|
-
$.push($$props, false);
|
6520
|
-
$.append_styles($$anchor, $$css$6);
|
6521
|
-
|
6522
|
-
const variables = $.mutable_state();
|
6523
|
-
const style = $.mutable_state();
|
6524
|
-
let layerId = $.prop($$props, 'layerId', 8);
|
6525
|
-
let props = $.prop($$props, 'props', 8);
|
6526
|
-
|
6527
|
-
useInjectCustomizeCss(props());
|
6528
|
-
|
6529
|
-
setContext(LIST_ITEM_CONTEXT_KEY, {
|
6530
|
-
paddingTop: props().itemPaddingTop,
|
6531
|
-
paddingLeft: props().itemPaddingLeft,
|
6532
|
-
paddingRight: props().itemPaddingRight,
|
6533
|
-
paddingBottom: props().itemPaddingBottom,
|
6534
|
-
height: props().itemHeight,
|
6535
|
-
borderTopWidth: props().borderWidth,
|
6536
|
-
borderTopColor: props().borderColor,
|
6537
|
-
borderTopStyle: props().borderStyle,
|
6538
|
-
gap: props().itemGap
|
6539
|
-
});
|
6540
|
-
|
6541
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props())), () => {
|
6542
|
-
$.set(variables, {
|
6543
|
-
...props().borderWidth
|
6544
|
-
? {
|
6545
|
-
'--border-width': props().borderWidth,
|
6546
|
-
'--border-color': props().borderColor,
|
6547
|
-
'--border-style': props().borderStyle ?? 'solid'
|
6548
|
-
}
|
6549
|
-
: {}
|
6550
|
-
});
|
6551
|
-
});
|
6552
|
-
|
6553
|
-
$.legacy_pre_effect(
|
6554
|
-
() => (
|
6555
|
-
$.deep_read_state(props()),
|
6556
|
-
$.get(variables)
|
6557
|
-
),
|
6558
|
-
() => {
|
6559
|
-
$.set(style, objToStyle({
|
6560
|
-
width: props().width ?? '100%',
|
6561
|
-
...$.get(variables)
|
6562
|
-
}));
|
6563
|
-
}
|
6564
|
-
);
|
6565
|
-
|
6566
|
-
$.legacy_pre_effect_reset();
|
6567
|
-
$.init();
|
6568
|
-
|
6569
|
-
var ul = root$7();
|
6570
|
-
var node = $.child(ul);
|
6571
|
-
|
6572
|
-
$.slot(node, $$props, 'default', {}, null);
|
6573
|
-
$.reset(ul);
|
6574
|
-
|
6575
|
-
$.template_effect(() => {
|
6576
|
-
$.set_attribute(ul, 'data-layer-id', layerId());
|
6577
|
-
$.set_style(ul, $.get(style));
|
6578
|
-
});
|
6579
|
-
|
6580
|
-
$.append($$anchor, ul);
|
6581
|
-
$.pop();
|
6582
|
-
}
|
6583
|
-
|
6584
|
-
var root$6 = $.template(`<li class="list-item svelte-1223veg"><!></li>`);
|
6585
|
-
|
6586
|
-
const $$css$5 = {
|
6587
6534
|
hash: 'svelte-1223veg',
|
6588
6535
|
code: '.list-item.svelte-1223veg {margin:0;padding:0;}.list-item-inner.svelte-1223veg {display:flex;align-items:center;width:100%;text-decoration:none;color:inherit;}.list-item-inner.svelte-1223veg:hover {opacity:0.8;}.list-item.svelte-1223veg:not(:first-child) {border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color);}'
|
6589
6536
|
};
|
6590
6537
|
|
6591
6538
|
function ListItem($$anchor, $$props) {
|
6592
6539
|
$.push($$props, false);
|
6593
|
-
$.append_styles($$anchor, $$css$
|
6540
|
+
$.append_styles($$anchor, $$css$6);
|
6594
6541
|
|
6595
6542
|
const variables = $.mutable_state();
|
6596
6543
|
const style = $.mutable_state();
|
6597
6544
|
const innerStyle = $.mutable_state();
|
6598
6545
|
let layerId = $.prop($$props, 'layerId', 8);
|
6599
6546
|
let props = $.prop($$props, 'props', 8);
|
6547
|
+
$.prop($$props, 'item', 8);
|
6600
6548
|
|
6601
6549
|
useInjectCustomizeCss(props());
|
6602
6550
|
|
@@ -6632,7 +6580,7 @@ function ListItem($$anchor, $$props) {
|
|
6632
6580
|
$.legacy_pre_effect_reset();
|
6633
6581
|
$.init();
|
6634
6582
|
|
6635
|
-
var li = root$
|
6583
|
+
var li = root$7();
|
6636
6584
|
var node = $.child(li);
|
6637
6585
|
|
6638
6586
|
$.element(node, () => element, false, ($$element, $$anchor) => {
|
@@ -6669,6 +6617,95 @@ function ListItem($$anchor, $$props) {
|
|
6669
6617
|
$.pop();
|
6670
6618
|
}
|
6671
6619
|
|
6620
|
+
var root$6 = $.template(`<ul class="list svelte-v2vy6p"><!></ul>`);
|
6621
|
+
|
6622
|
+
const $$css$5 = {
|
6623
|
+
hash: 'svelte-v2vy6p',
|
6624
|
+
code: '.list.svelte-v2vy6p {padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width: 0;--border-style: solit;--border-color: rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color);}'
|
6625
|
+
};
|
6626
|
+
|
6627
|
+
function List($$anchor, $$props) {
|
6628
|
+
$.push($$props, false);
|
6629
|
+
$.append_styles($$anchor, $$css$5);
|
6630
|
+
|
6631
|
+
const variables = $.mutable_state();
|
6632
|
+
const actionTableData = $.mutable_state();
|
6633
|
+
const items = $.mutable_state();
|
6634
|
+
const style = $.mutable_state();
|
6635
|
+
let layerId = $.prop($$props, 'layerId', 8);
|
6636
|
+
let props = $.prop($$props, 'props', 8);
|
6637
|
+
|
6638
|
+
useInjectCustomizeCss(props());
|
6639
|
+
|
6640
|
+
const vars = getVariables();
|
6641
|
+
|
6642
|
+
console.log(vars);
|
6643
|
+
console.log(props().actionTableKey);
|
6644
|
+
console.log(vars[props().actionTableKey]);
|
6645
|
+
|
6646
|
+
setContext(LIST_ITEM_CONTEXT_KEY, {
|
6647
|
+
paddingTop: props().itemPaddingTop,
|
6648
|
+
paddingLeft: props().itemPaddingLeft,
|
6649
|
+
paddingRight: props().itemPaddingRight,
|
6650
|
+
paddingBottom: props().itemPaddingBottom,
|
6651
|
+
height: props().itemHeight,
|
6652
|
+
borderTopWidth: props().borderWidth,
|
6653
|
+
borderTopColor: props().borderColor,
|
6654
|
+
borderTopStyle: props().borderStyle,
|
6655
|
+
gap: props().itemGap
|
6656
|
+
});
|
6657
|
+
|
6658
|
+
$.legacy_pre_effect(() => ($.deep_read_state(props())), () => {
|
6659
|
+
$.set(variables, {
|
6660
|
+
...props().borderWidth
|
6661
|
+
? {
|
6662
|
+
'--border-width': props().borderWidth,
|
6663
|
+
'--border-color': props().borderColor,
|
6664
|
+
'--border-style': props().borderStyle ?? 'solid'
|
6665
|
+
}
|
6666
|
+
: {}
|
6667
|
+
});
|
6668
|
+
});
|
6669
|
+
|
6670
|
+
$.legacy_pre_effect(() => ($.deep_read_state(props())), () => {
|
6671
|
+
$.set(actionTableData, vars[props().actionTableKey]);
|
6672
|
+
});
|
6673
|
+
|
6674
|
+
$.legacy_pre_effect(() => ($.get(actionTableData)), () => {
|
6675
|
+
$.set(items, Array.isArray($.get(actionTableData)) ? $.get(actionTableData) : null);
|
6676
|
+
});
|
6677
|
+
|
6678
|
+
$.legacy_pre_effect(
|
6679
|
+
() => (
|
6680
|
+
$.deep_read_state(props()),
|
6681
|
+
$.get(variables)
|
6682
|
+
),
|
6683
|
+
() => {
|
6684
|
+
$.set(style, objToStyle({
|
6685
|
+
width: props().width ?? '100%',
|
6686
|
+
...$.get(variables)
|
6687
|
+
}));
|
6688
|
+
}
|
6689
|
+
);
|
6690
|
+
|
6691
|
+
$.legacy_pre_effect_reset();
|
6692
|
+
$.init();
|
6693
|
+
|
6694
|
+
var ul = root$6();
|
6695
|
+
var node = $.child(ul);
|
6696
|
+
|
6697
|
+
$.slot(node, $$props, 'default', {}, null);
|
6698
|
+
$.reset(ul);
|
6699
|
+
|
6700
|
+
$.template_effect(() => {
|
6701
|
+
$.set_attribute(ul, 'data-layer-id', layerId());
|
6702
|
+
$.set_style(ul, $.get(style));
|
6703
|
+
});
|
6704
|
+
|
6705
|
+
$.append($$anchor, ul);
|
6706
|
+
$.pop();
|
6707
|
+
}
|
6708
|
+
|
6672
6709
|
const MULTI_COLUMN_ITEM_CONTEXT_KEY = 'MultiColumnItemContext';
|
6673
6710
|
|
6674
6711
|
function splitNumberAndUnit(value) {
|
@@ -6790,8 +6827,6 @@ function MultiColumnItem($$anchor, $$props) {
|
|
6790
6827
|
const { attributes, element, handleClick } = useClickable(props());
|
6791
6828
|
const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
|
6792
6829
|
|
6793
|
-
console.log(context);
|
6794
|
-
|
6795
6830
|
$.legacy_pre_effect(() => {}, () => {
|
6796
6831
|
$.set(variables, {
|
6797
6832
|
'--multi-column-item-padding-top': context.paddingTop ?? '0',
|
@@ -7025,12 +7060,6 @@ function CountDown($$anchor, $$props) {
|
|
7025
7060
|
}
|
7026
7061
|
|
7027
7062
|
function onEachSecond() {
|
7028
|
-
console.log({
|
7029
|
-
timeLimit: timeLimit.getTime(),
|
7030
|
-
now: new Date().getTime(),
|
7031
|
-
calced: calcRemainingTime(timeLimit.getTime())
|
7032
|
-
});
|
7033
|
-
|
7034
7063
|
const _remainingTime = calcRemainingTime(timeLimit.getTime());
|
7035
7064
|
|
7036
7065
|
if (_remainingTime > 0) {
|
@@ -7042,8 +7071,6 @@ function CountDown($$anchor, $$props) {
|
|
7042
7071
|
execOnClickOperation(props().onEnd);
|
7043
7072
|
}
|
7044
7073
|
}
|
7045
|
-
|
7046
|
-
console.log($.get(remainingTime));
|
7047
7074
|
}
|
7048
7075
|
|
7049
7076
|
onMount$1(() => {
|
@@ -7194,13 +7221,8 @@ function CountDownValue($$anchor, $$props) {
|
|
7194
7221
|
let props = $.prop($$props, 'props', 24, () => ({}));
|
7195
7222
|
let layerId = $.prop($$props, 'layerId', 8, '');
|
7196
7223
|
let countdownStore = getContext('countdownStore');
|
7197
|
-
|
7198
|
-
console.log(countdownStore);
|
7199
|
-
|
7200
7224
|
let { style } = useText(props());
|
7201
7225
|
|
7202
|
-
console.log($.get(value));
|
7203
|
-
|
7204
7226
|
$.legacy_pre_effect(
|
7205
7227
|
() => (
|
7206
7228
|
$countdownStore(),
|
@@ -7275,7 +7297,6 @@ function ClipCopy($$anchor, $$props) {
|
|
7275
7297
|
|
7276
7298
|
const targetText = props().content ?? $.get(buttonElement)?.innerText ?? '';
|
7277
7299
|
|
7278
|
-
console.log(targetText);
|
7279
7300
|
navigator.clipboard.writeText(targetText);
|
7280
7301
|
send_event('_click_copy', { text: targetText });
|
7281
7302
|
|
@@ -2460,6 +2460,9 @@ type CustomizeCssProps = {
|
|
2460
2460
|
type BrandStyleProps = {
|
2461
2461
|
customBrandKit?: Partial<BrandKit>;
|
2462
2462
|
};
|
2463
|
+
type ActionTableProps = {
|
2464
|
+
actionTableKey?: string;
|
2465
|
+
};
|
2463
2466
|
type CommonProps = MetaProps & PositionProps & CustomizeCssProps & BrandStyleProps;
|
2464
2467
|
type ClickableProps = {
|
2465
2468
|
onClick?: OnClickOperation;
|
@@ -2797,7 +2800,10 @@ type TextLinkProps = CommonProps & ClickableProps & LinkProps & FontFamilyProps
|
|
2797
2800
|
};
|
2798
2801
|
declare const TEXT_LINK_SIZE_STYLES: PropStyles<TextLinkProps, "size">;
|
2799
2802
|
declare const getTextLinkThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextLinkProps>;
|
2800
|
-
type
|
2803
|
+
type FrameModalProps = CommonProps & OverflowProps & BorderProps & RadiusProps & ShadowProps & BackgroundColorProps & BackgroundImageProps & {
|
2804
|
+
width?: Properties["width"];
|
2805
|
+
};
|
2806
|
+
type ListProps = CommonProps & ActionTableProps & {
|
2801
2807
|
gap?: Properties["gap"];
|
2802
2808
|
borderWidth?: Properties["borderTopWidth"];
|
2803
2809
|
borderStyle?: Properties["borderTopStyle"];
|
@@ -2893,7 +2899,7 @@ type CodeProps = CommonProps & {
|
|
2893
2899
|
rawScript?: string;
|
2894
2900
|
};
|
2895
2901
|
declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
|
2896
|
-
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, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, BrandStyleProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AspectProps, FontFamilyProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, avatarPropsDefault, AVATAR_SIZE_STYLES, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANT, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, getButtonThemeStyles, BUTTON_SIZE_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, getButtonOutlinedThemeStyles, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, getButtonTextThemeStyles, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, IMAGE_ROUND_SHAPE, IMAGE_ASPECT_VARIANTS, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, SliderItemProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, getTextThemeStyles, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, getTextLinkThemeStyles, ListProps, ListItemProps, LIST_ITEM_CONTEXT_KEY, ListItemContext, MultiColumnProps, MultiColumnItemProps, MULTI_COLUMN_ITEM_CONTEXT_KEY, MultiColumnItemContext, YoutubeProps, CountDownProps, CountDownValueType, CountDownValueProps, CountDownValues, ClipboardProps, CodeProps, BrandKit, getBrandKit, useBrandKit, ROUND_STYLES, VariantStyles, VariantDefinition, VariantDefinitionGroup, ASPECT_VARIANT, AspectVariantCode, ASPECT_VARIANTS, FontVariantMeta, FONT_FAMILY_VARIANT, FontFamilyVariantCode, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, SHADOW_VARIANT, ShadowVariantCode, SHADOW_VARIANTS };
|
2902
|
+
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, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, BrandStyleProps, ActionTableProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AspectProps, FontFamilyProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, avatarPropsDefault, AVATAR_SIZE_STYLES, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANT, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, getButtonThemeStyles, BUTTON_SIZE_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, getButtonOutlinedThemeStyles, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, getButtonTextThemeStyles, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, IMAGE_ROUND_SHAPE, IMAGE_ASPECT_VARIANTS, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, SliderItemProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, getTextThemeStyles, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, getTextLinkThemeStyles, FrameModalProps, ListProps, ListItemProps, LIST_ITEM_CONTEXT_KEY, ListItemContext, MultiColumnProps, MultiColumnItemProps, MULTI_COLUMN_ITEM_CONTEXT_KEY, MultiColumnItemContext, YoutubeProps, CountDownProps, CountDownValueType, CountDownValueProps, CountDownValues, ClipboardProps, CodeProps, BrandKit, getBrandKit, useBrandKit, ROUND_STYLES, VariantStyles, VariantDefinition, VariantDefinitionGroup, ASPECT_VARIANT, AspectVariantCode, ASPECT_VARIANTS, FontVariantMeta, FONT_FAMILY_VARIANT, FontFamilyVariantCode, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, SHADOW_VARIANT, ShadowVariantCode, SHADOW_VARIANTS };
|
2897
2903
|
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 };
|
2898
2904
|
export { default as State } from './components-flex/state/State.svelte';
|
2899
2905
|
export { default as StateItem } from './components-flex/state/StateItem.svelte';
|