@plaidev/karte-action-sdk 1.1.242-28708542.18985484 → 1.1.242
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +43 -23
- package/dist/hydrate/index.es.js +241 -371
- package/dist/index.es.d.ts +43 -23
- package/dist/index.es.js +241 -371
- package/meta/karte-action-sdk.api.json +8155 -0
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
@@ -2343,20 +2343,35 @@ 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
|
2346
|
+
type ComponentBaseProps = {
|
2347
|
+
layerId: string;
|
2348
|
+
style: Properties;
|
2349
|
+
};
|
2350
|
+
declare const COMPONENT_PARAMETER_TYPES: {
|
2351
|
+
readonly TEXT: "text";
|
2352
|
+
readonly MULTILINE_TEXT: "multiline_text";
|
2353
|
+
readonly SELECT: "select";
|
2354
|
+
readonly RADIO: "radio";
|
2355
|
+
readonly CHECKBOX: "checkbox";
|
2356
|
+
readonly BOOLEAN: "boolean";
|
2357
|
+
readonly IMAGE: "image";
|
2358
|
+
readonly NUMBER: "number";
|
2359
|
+
readonly WIDTH: "width";
|
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;
|
2360
2375
|
};
|
2361
2376
|
type PositionPlaceProps = {
|
2362
2377
|
top?: Properties["top"];
|
@@ -2441,7 +2456,7 @@ declare const BUTTON_ICON_ANGLE: {
|
|
2441
2456
|
readonly row: "\u5DE6\u5074";
|
2442
2457
|
readonly "row-reverse": "\u53F3\u5074";
|
2443
2458
|
};
|
2444
|
-
type ButtonProps = CommonProps &
|
2459
|
+
type ButtonProps = CommonProps & {
|
2445
2460
|
label?: string;
|
2446
2461
|
size?: keyof typeof BUTTON_SIZE;
|
2447
2462
|
theme?: keyof typeof BUTTON_THEME;
|
@@ -2458,11 +2473,6 @@ type ButtonProps = CommonProps & BorderProps & {
|
|
2458
2473
|
color?: Properties["color"];
|
2459
2474
|
backgroundColor?: Properties["backgroundColor"];
|
2460
2475
|
};
|
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">;
|
2466
2476
|
declare const BUTTON_VARIANTS: {
|
2467
2477
|
size: {
|
2468
2478
|
extra_small: Properties<0 | (string & {}), string & {}>;
|
@@ -2617,6 +2627,9 @@ declare const ICON_VARIANTS: {
|
|
2617
2627
|
readonly users: typeof IconArrowDown;
|
2618
2628
|
readonly x_mark: typeof IconArrowDown;
|
2619
2629
|
};
|
2630
|
+
type IconVariant = (typeof ICON_VARIANTS)[keyof typeof ICON_VARIANTS];
|
2631
|
+
// @ts-ignore
|
2632
|
+
declare const ICON_PARAMS: ComponentParameter[];
|
2620
2633
|
type IconProps = CommonProps & {
|
2621
2634
|
variant: string;
|
2622
2635
|
size?: keyof typeof ICON_SIZE;
|
@@ -2666,6 +2679,15 @@ type LayerLayoutProps = CommonProps & BorderProps & RadiusProps & ShadowProps &
|
|
2666
2679
|
columnGap?: Properties["columnGap"];
|
2667
2680
|
width?: Properties["width"];
|
2668
2681
|
};
|
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
|
+
];
|
2669
2691
|
declare const LAYER_TEXT_SIZE: {
|
2670
2692
|
readonly extra_small: "ExtraSmall";
|
2671
2693
|
readonly small: "Small";
|
@@ -2743,9 +2765,7 @@ declare const TEXT_VARIANTS: {
|
|
2743
2765
|
};
|
2744
2766
|
};
|
2745
2767
|
};
|
2746
|
-
|
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 };
|
2768
|
+
export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, ComponentBaseProps, COMPONENT_PARAMETER_TYPES, ComponentParameterType, ComponentParameterOption, ComponentParameter, PositionProps, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_THEME, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, 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, IconVariant, ICON_PARAMS, IconProps, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LayerTextProps, TEXT_VARIANTS };
|
2749
2769
|
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 };
|
2750
2770
|
export { default as State } from './components/State.svelte';
|
2751
2771
|
export { default as StateItem } from './components/StateItem.svelte';
|