@plaidev/karte-action-sdk 1.1.241 → 1.1.242-28709353.8f816485
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +29 -44
- package/dist/hydrate/index.es.js +387 -254
- package/dist/index.es.d.ts +29 -44
- package/dist/index.es.js +387 -254
- package/package.json +1 -1
- package/meta/karte-action-sdk.api.json +0 -8155
@@ -2343,35 +2343,20 @@ declare const afterUpdate: typeof afterUpdateSvelte;
|
|
2343
2343
|
declare const tick: typeof tickSvelte;
|
2344
2344
|
// @internal
|
2345
2345
|
declare const LAYOUT_COMPONENT_NAMES: string[];
|
2346
|
-
type
|
2347
|
-
|
2348
|
-
|
2349
|
-
|
2350
|
-
|
2351
|
-
readonly
|
2352
|
-
|
2353
|
-
|
2354
|
-
readonly
|
2355
|
-
readonly
|
2356
|
-
readonly
|
2357
|
-
readonly
|
2358
|
-
readonly
|
2359
|
-
readonly
|
2360
|
-
readonly ASPECT: "aspect";
|
2361
|
-
readonly COLOR: "color";
|
2362
|
-
readonly ICON: "icon";
|
2363
|
-
};
|
2364
|
-
type ComponentParameterType = (typeof COMPONENT_PARAMETER_TYPES)[keyof typeof COMPONENT_PARAMETER_TYPES];
|
2365
|
-
type ComponentParameterOption = {
|
2366
|
-
label: string;
|
2367
|
-
value: string | number;
|
2368
|
-
};
|
2369
|
-
type ComponentParameter<P extends object = object> = {
|
2370
|
-
id: string;
|
2371
|
-
name: string;
|
2372
|
-
type: ComponentParameterType;
|
2373
|
-
options?: ComponentParameterOption[];
|
2374
|
-
isEnabled?: (p: P) => boolean;
|
2346
|
+
type PropStyles<Props extends Record<string, any>, K extends keyof Props> = Record<NonNullable<Props[K]>, Properties>;
|
2347
|
+
declare const SHADOW_VARIANT: {
|
2348
|
+
readonly extra_small: "XSmall";
|
2349
|
+
readonly small: "Small";
|
2350
|
+
readonly medium: "Medium";
|
2351
|
+
readonly large: "Large";
|
2352
|
+
};
|
2353
|
+
declare const ROUND_VARIANT: {
|
2354
|
+
readonly extra_small: "XSmall (2px)";
|
2355
|
+
readonly small: "Small (4px)";
|
2356
|
+
readonly medium: "Medium (8px)";
|
2357
|
+
readonly large: "Large (16px)";
|
2358
|
+
readonly extra_large: "Large (24px)";
|
2359
|
+
readonly fulled: "Full (100%)";
|
2375
2360
|
};
|
2376
2361
|
type PositionPlaceProps = {
|
2377
2362
|
top?: Properties["top"];
|
@@ -2456,7 +2441,7 @@ declare const BUTTON_ICON_ANGLE: {
|
|
2456
2441
|
readonly row: "\u5DE6\u5074";
|
2457
2442
|
readonly "row-reverse": "\u53F3\u5074";
|
2458
2443
|
};
|
2459
|
-
type ButtonProps = CommonProps & {
|
2444
|
+
type ButtonProps = CommonProps & BorderProps & {
|
2460
2445
|
label?: string;
|
2461
2446
|
size?: keyof typeof BUTTON_SIZE;
|
2462
2447
|
theme?: keyof typeof BUTTON_THEME;
|
@@ -2473,6 +2458,11 @@ type ButtonProps = CommonProps & {
|
|
2473
2458
|
color?: Properties["color"];
|
2474
2459
|
backgroundColor?: Properties["backgroundColor"];
|
2475
2460
|
};
|
2461
|
+
declare const buttonPropsDefault: ButtonProps;
|
2462
|
+
declare const BUTTON_SIZE_STYLES: PropStyles<ButtonProps, "size">;
|
2463
|
+
declare const BUTTON_THEME_STYLES: PropStyles<ButtonProps, "theme">;
|
2464
|
+
declare const BUTTON_ROUND_STYLES: PropStyles<ButtonProps, "round">;
|
2465
|
+
declare const BUTTON_WRAP_STYLES: PropStyles<ButtonProps, "wrap">;
|
2476
2466
|
declare const BUTTON_VARIANTS: {
|
2477
2467
|
size: {
|
2478
2468
|
extra_small: Properties<0 | (string & {}), string & {}>;
|
@@ -2552,7 +2542,7 @@ declare const CLOSE_BUTTON_LABEL_PLACEMENT: {
|
|
2552
2542
|
right: string;
|
2553
2543
|
left: string;
|
2554
2544
|
};
|
2555
|
-
type CloseButtonProps = CommonProps & {
|
2545
|
+
type CloseButtonProps = CommonProps & BorderProps & {
|
2556
2546
|
size?: number;
|
2557
2547
|
placement?: keyof typeof CLOSE_BUTTON_PLACEMENT;
|
2558
2548
|
round?: keyof typeof CLOSE_BUTTON_ROUND;
|
@@ -2627,9 +2617,6 @@ declare const ICON_VARIANTS: {
|
|
2627
2617
|
readonly users: typeof IconArrowDown;
|
2628
2618
|
readonly x_mark: typeof IconArrowDown;
|
2629
2619
|
};
|
2630
|
-
type IconVariant = (typeof ICON_VARIANTS)[keyof typeof ICON_VARIANTS];
|
2631
|
-
// @ts-ignore
|
2632
|
-
declare const ICON_PARAMS: ComponentParameter[];
|
2633
2620
|
type IconProps = CommonProps & {
|
2634
2621
|
variant: string;
|
2635
2622
|
size?: keyof typeof ICON_SIZE;
|
@@ -2679,15 +2666,6 @@ type LayerLayoutProps = CommonProps & BorderProps & RadiusProps & ShadowProps &
|
|
2679
2666
|
columnGap?: Properties["columnGap"];
|
2680
2667
|
width?: Properties["width"];
|
2681
2668
|
};
|
2682
|
-
declare const LAYER_TEXT_ALIGN_VALUES: readonly [
|
2683
|
-
"center",
|
2684
|
-
"left",
|
2685
|
-
"right"
|
2686
|
-
];
|
2687
|
-
declare const LAYER_TEXT_FONT_WEIGHT_VALUES: readonly [
|
2688
|
-
"bold",
|
2689
|
-
"normal"
|
2690
|
-
];
|
2691
2669
|
declare const LAYER_TEXT_SIZE: {
|
2692
2670
|
readonly extra_small: "ExtraSmall";
|
2693
2671
|
readonly small: "Small";
|
@@ -2716,22 +2694,27 @@ declare const TEXT_VARIANTS: {
|
|
2716
2694
|
extra_small: {
|
2717
2695
|
fontSize: string;
|
2718
2696
|
lineHeight: number;
|
2697
|
+
fontWeight: string;
|
2719
2698
|
};
|
2720
2699
|
small: {
|
2721
2700
|
fontSize: string;
|
2722
2701
|
lineHeight: number;
|
2702
|
+
fontWeight: string;
|
2723
2703
|
};
|
2724
2704
|
medium: {
|
2725
2705
|
fontSize: string;
|
2726
2706
|
lineHeight: number;
|
2707
|
+
fontWeight: string;
|
2727
2708
|
};
|
2728
2709
|
large: {
|
2729
2710
|
fontSize: string;
|
2730
2711
|
lineHeight: number;
|
2712
|
+
fontWeight: string;
|
2731
2713
|
};
|
2732
2714
|
extra_large: {
|
2733
2715
|
fontSize: string;
|
2734
2716
|
lineHeight: number;
|
2717
|
+
fontWeight: string;
|
2735
2718
|
};
|
2736
2719
|
heading_extra_small: {
|
2737
2720
|
fontSize: string;
|
@@ -2760,7 +2743,9 @@ declare const TEXT_VARIANTS: {
|
|
2760
2743
|
};
|
2761
2744
|
};
|
2762
2745
|
};
|
2763
|
-
|
2746
|
+
declare const SHADOW_STYLES: Record<keyof typeof SHADOW_VARIANT, Properties>;
|
2747
|
+
declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
|
2748
|
+
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, CommonProps, 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, BUTTON_VARIANTS, TEXT_BUTTON_SIZE, TEXT_BUTTON_COLOR, TEXT_BUTTON_ROUND, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ICON_ANGLE, TextButtonProps, 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, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS, SHADOW_STYLES, ROUND_STYLES };
|
2764
2749
|
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 };
|
2765
2750
|
export { default as State } from './components/State.svelte';
|
2766
2751
|
export { default as StateItem } from './components/StateItem.svelte';
|