@plaidev/karte-action-sdk 1.1.232-28654876.dc7c8de8 → 1.1.232-28663591.feead91d
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +262 -4
- package/dist/hydrate/index.es.js +718 -831
- package/dist/index.es.d.ts +262 -4
- package/dist/index.es.js +662 -747
- package/dist/templates.cjs.d.ts +1 -2
- package/dist/templates.cjs.js +1 -2
- package/dist/templates.d.ts +1 -2
- package/dist/templates.js +1 -2
- package/package.json +1 -1
@@ -5,6 +5,8 @@ import { onDestroy as onDestorySvelte } from "svelte";
|
|
5
5
|
import { beforeUpdate as beforeUpdateSvelte } from "svelte";
|
6
6
|
import { afterUpdate as afterUpdateSvelte } from "svelte";
|
7
7
|
import { tick as tickSvelte } from "svelte";
|
8
|
+
import { Properties } from "csstype";
|
9
|
+
import IconArrowDown from "./variants/IconArrowDown.svelte";
|
8
10
|
/** @internal */
|
9
11
|
declare const ACTION_HOOK_LABEL = "__ACTION_HOOK__";
|
10
12
|
// -------- The following codes are deprecated --------
|
@@ -2340,7 +2342,263 @@ declare const afterUpdate: typeof afterUpdateSvelte;
|
|
2340
2342
|
declare const tick: typeof tickSvelte;
|
2341
2343
|
// @internal
|
2342
2344
|
declare const LAYOUT_COMPONENT_NAMES: string[];
|
2343
|
-
|
2345
|
+
type ComponentBaseProps = {
|
2346
|
+
layerId: string;
|
2347
|
+
style: Properties;
|
2348
|
+
};
|
2349
|
+
declare const COMPONENT_PARAMETER_TYPES: {
|
2350
|
+
readonly TEXT: "text";
|
2351
|
+
readonly MULTILINE_TEXT: "multiline_text";
|
2352
|
+
readonly SELECT: "select";
|
2353
|
+
readonly RADIO: "radio";
|
2354
|
+
readonly CHECKBOX: "checkbox";
|
2355
|
+
readonly BOOLEAN: "boolean";
|
2356
|
+
readonly IMAGE: "image";
|
2357
|
+
readonly NUMBER: "number";
|
2358
|
+
readonly WIDTH: "width";
|
2359
|
+
readonly ASPECT: "aspect";
|
2360
|
+
readonly COLOR: "color";
|
2361
|
+
readonly ICON: "icon";
|
2362
|
+
};
|
2363
|
+
type ComponentParameterType = (typeof COMPONENT_PARAMETER_TYPES)[keyof typeof COMPONENT_PARAMETER_TYPES];
|
2364
|
+
type ComponentParameterOption = {
|
2365
|
+
label: string;
|
2366
|
+
value: string | number;
|
2367
|
+
};
|
2368
|
+
type ComponentParameter<P extends object = object> = {
|
2369
|
+
id: string;
|
2370
|
+
name: string;
|
2371
|
+
type: ComponentParameterType;
|
2372
|
+
options?: ComponentParameterOption[];
|
2373
|
+
isEnabled?: (p: P) => boolean;
|
2374
|
+
};
|
2375
|
+
type PositionPlaceProps = {
|
2376
|
+
top?: Properties["top"];
|
2377
|
+
left?: Properties["left"];
|
2378
|
+
right?: Properties["right"];
|
2379
|
+
bottom?: Properties["bottom"];
|
2380
|
+
};
|
2381
|
+
type PositionProps = PositionPlaceProps & {
|
2382
|
+
position?: Properties["position"];
|
2383
|
+
};
|
2384
|
+
type CommonProps = PositionProps;
|
2385
|
+
type BorderProps = {
|
2386
|
+
borderTopWidth?: Properties["borderTopWidth"];
|
2387
|
+
borderLeftWidth?: Properties["borderLeftWidth"];
|
2388
|
+
borderRightWidth?: Properties["borderRightWidth"];
|
2389
|
+
borderBottomWidth?: Properties["borderBottomWidth"];
|
2390
|
+
borderColor?: Properties["borderColor"];
|
2391
|
+
};
|
2392
|
+
type PaddingProps = {
|
2393
|
+
paddingTop?: Properties["paddingTop"];
|
2394
|
+
paddingLeft?: Properties["paddingLeft"];
|
2395
|
+
paddingBottom?: Properties["paddingBottom"];
|
2396
|
+
paddingRight?: Properties["paddingRight"];
|
2397
|
+
};
|
2398
|
+
type RadiusProps = {
|
2399
|
+
borderTopLeftRadius: Properties["borderTopLeftRadius"];
|
2400
|
+
borderTopRightRadius: Properties["borderTopRightRadius"];
|
2401
|
+
borderBottomLeftRadius: Properties["borderBottomLeftRadius"];
|
2402
|
+
borderBottomRightRadius: Properties["borderBottomRightRadius"];
|
2403
|
+
};
|
2404
|
+
type BackgroundColorProps = {
|
2405
|
+
backgroundColor: Properties["backgroundColor"];
|
2406
|
+
};
|
2407
|
+
type BackgroundImageProps = {
|
2408
|
+
backgroundImageUrl: string;
|
2409
|
+
};
|
2410
|
+
type ShadowProps = {
|
2411
|
+
shadow: Properties["boxShadow"];
|
2412
|
+
};
|
2413
|
+
declare const AVATAR_SIZE: {
|
2414
|
+
readonly extra_small: "XS\uFF0848 x 48\uFF09";
|
2415
|
+
readonly small: "S\uFF0864 x 64\uFF09";
|
2416
|
+
readonly medium: "M\uFF0888 x 88\uFF09";
|
2417
|
+
readonly large: "L\uFF08108 x 108\uFF09";
|
2418
|
+
readonly extra_large: "XL\uFF08128 x 128\uFF09";
|
2419
|
+
};
|
2420
|
+
declare const AVATAR_SHAPE: {
|
2421
|
+
readonly circle: "\u30B5\u30FC\u30AF\u30EB";
|
2422
|
+
readonly square: "\u30B9\u30AF\u30A8\u30A2";
|
2423
|
+
};
|
2424
|
+
type AvatarProps = CommonProps & {
|
2425
|
+
size?: number;
|
2426
|
+
shape?: keyof typeof AVATAR_SHAPE;
|
2427
|
+
image?: string;
|
2428
|
+
caption?: string;
|
2429
|
+
alt?: string;
|
2430
|
+
bordered?: boolean;
|
2431
|
+
};
|
2432
|
+
declare const BUTTON_SIZE: {
|
2433
|
+
readonly extra_small: "XSmall";
|
2434
|
+
readonly small: "Small";
|
2435
|
+
readonly medium: "Medium";
|
2436
|
+
readonly large: "Large";
|
2437
|
+
readonly extra_large: "XLarge";
|
2438
|
+
};
|
2439
|
+
declare const BUTTON_COLOR: {
|
2440
|
+
readonly default: "\u30C7\u30D5\u30A9\u30EB\u30C8";
|
2441
|
+
readonly theme: "\u30C6\u30FC\u30DE\u30AB\u30E9\u30FC";
|
2442
|
+
readonly alert: "\u30A2\u30E9\u30FC\u30C8";
|
2443
|
+
readonly transparent: "\u80CC\u666F\u306A\u3057";
|
2444
|
+
};
|
2445
|
+
declare const BUTTON_ROUND: {
|
2446
|
+
readonly default: "\u30C7\u30D5\u30A9\u30EB\u30C8";
|
2447
|
+
readonly none: "\u306A\u3057";
|
2448
|
+
readonly fulled: "\u5186\u5F62";
|
2449
|
+
};
|
2450
|
+
declare const BUTTON_LINK_TARGET: {
|
2451
|
+
readonly _self: "\u753B\u9762\u5185\u9077\u79FB";
|
2452
|
+
readonly _blank: "\u5225\u30BF\u30D6\u3067\u958B\u304F";
|
2453
|
+
};
|
2454
|
+
declare const BUTTON_ICON_ANGLE: {
|
2455
|
+
readonly row: "\u5DE6\u5074";
|
2456
|
+
readonly "row-reverse": "\u53F3\u5074";
|
2457
|
+
};
|
2458
|
+
type ButtonProps = CommonProps & {
|
2459
|
+
label?: string;
|
2460
|
+
size?: keyof typeof BUTTON_SIZE;
|
2461
|
+
color?: keyof typeof BUTTON_COLOR;
|
2462
|
+
round?: keyof typeof BUTTON_ROUND;
|
2463
|
+
isLink?: boolean;
|
2464
|
+
isIcon?: boolean;
|
2465
|
+
linkUrl?: string;
|
2466
|
+
linkTarget?: keyof typeof BUTTON_LINK_TARGET;
|
2467
|
+
iconVariant?: string;
|
2468
|
+
iconAngle?: keyof typeof BUTTON_ICON_ANGLE;
|
2469
|
+
width?: Properties["width"];
|
2470
|
+
wrap?: "wrap" | "nowrap";
|
2471
|
+
};
|
2472
|
+
type CloseButtonProps = CommonProps & {
|
2473
|
+
size?: number;
|
2474
|
+
bordered?: boolean;
|
2475
|
+
};
|
2476
|
+
declare const ICON_SIZE: {
|
2477
|
+
readonly x_small: {
|
2478
|
+
readonly label: "X Small";
|
2479
|
+
readonly value: "12px";
|
2480
|
+
};
|
2481
|
+
readonly small: {
|
2482
|
+
readonly label: "Small";
|
2483
|
+
readonly value: "16px";
|
2484
|
+
};
|
2485
|
+
readonly medium: {
|
2486
|
+
readonly label: "Medium";
|
2487
|
+
readonly value: "20px";
|
2488
|
+
};
|
2489
|
+
readonly large: {
|
2490
|
+
readonly label: "Large";
|
2491
|
+
readonly value: "24px";
|
2492
|
+
};
|
2493
|
+
readonly x_large: {
|
2494
|
+
readonly label: "X Large";
|
2495
|
+
readonly value: "32px";
|
2496
|
+
};
|
2497
|
+
readonly x2_large: {
|
2498
|
+
readonly label: "2X Large";
|
2499
|
+
readonly value: "40px";
|
2500
|
+
};
|
2501
|
+
readonly x3_large: {
|
2502
|
+
readonly label: "3X Large";
|
2503
|
+
readonly value: "48px";
|
2504
|
+
};
|
2505
|
+
};
|
2506
|
+
declare const ICON_VARIANTS: {
|
2507
|
+
readonly arrow_down: typeof IconArrowDown;
|
2508
|
+
readonly arrow_up: typeof IconArrowDown;
|
2509
|
+
readonly arrow_left: typeof IconArrowDown;
|
2510
|
+
readonly arrow_right: typeof IconArrowDown;
|
2511
|
+
readonly arrow_up_from_square: typeof IconArrowDown;
|
2512
|
+
readonly bell: typeof IconArrowDown;
|
2513
|
+
readonly cart_shopping: typeof IconArrowDown;
|
2514
|
+
readonly check: typeof IconArrowDown;
|
2515
|
+
readonly circle: typeof IconArrowDown;
|
2516
|
+
readonly circle_info: typeof IconArrowDown;
|
2517
|
+
readonly circle_question: typeof IconArrowDown;
|
2518
|
+
readonly circle_x_mark: typeof IconArrowDown;
|
2519
|
+
readonly copy: typeof IconArrowDown;
|
2520
|
+
readonly envelope: typeof IconArrowDown;
|
2521
|
+
readonly fire: typeof IconArrowDown;
|
2522
|
+
readonly gift: typeof IconArrowDown;
|
2523
|
+
readonly heart: typeof IconArrowDown;
|
2524
|
+
readonly link: typeof IconArrowDown;
|
2525
|
+
readonly magnifying_grass: typeof IconArrowDown;
|
2526
|
+
readonly paperclip: typeof IconArrowDown;
|
2527
|
+
readonly paper_plane: typeof IconArrowDown;
|
2528
|
+
readonly star: typeof IconArrowDown;
|
2529
|
+
readonly ticket: typeof IconArrowDown;
|
2530
|
+
readonly truck: typeof IconArrowDown;
|
2531
|
+
readonly users: typeof IconArrowDown;
|
2532
|
+
readonly x_mark: typeof IconArrowDown;
|
2533
|
+
};
|
2534
|
+
type IconVariant = (typeof ICON_VARIANTS)[keyof typeof ICON_VARIANTS];
|
2535
|
+
// @ts-ignore
|
2536
|
+
declare const ICON_PARAMS: ComponentParameter[];
|
2537
|
+
type IconProps = CommonProps & {
|
2538
|
+
variant: string;
|
2539
|
+
size: string;
|
2540
|
+
color: string;
|
2541
|
+
};
|
2542
|
+
type ImageProps = CommonProps & {
|
2543
|
+
image?: string;
|
2544
|
+
width?: Properties["width"];
|
2545
|
+
aspect?: string;
|
2546
|
+
alt?: string;
|
2547
|
+
};
|
2548
|
+
declare const LAYOUT_DISPLAY_TYPE: readonly [
|
2549
|
+
"inline-flex",
|
2550
|
+
"flex",
|
2551
|
+
"block"
|
2552
|
+
];
|
2553
|
+
type LayoutDisplayType = (typeof LAYOUT_DISPLAY_TYPE)[number];
|
2554
|
+
declare const LAYOUT_DIRECTION: readonly [
|
2555
|
+
"column",
|
2556
|
+
"column-reverse",
|
2557
|
+
"row",
|
2558
|
+
"row-reverse"
|
2559
|
+
];
|
2560
|
+
type LayoutFlexDirection = (typeof LAYOUT_DIRECTION)[number];
|
2561
|
+
declare const LAYOUT_ALIGN: readonly [
|
2562
|
+
"flex-start",
|
2563
|
+
"center",
|
2564
|
+
"flex-end"
|
2565
|
+
];
|
2566
|
+
type LayoutFlexAlign = (typeof LAYOUT_ALIGN)[number];
|
2567
|
+
declare const LAYOUT_JUSTIFY: readonly [
|
2568
|
+
"flex-start",
|
2569
|
+
"center",
|
2570
|
+
"flex-end",
|
2571
|
+
"space-between"
|
2572
|
+
];
|
2573
|
+
type LayoutFlexJustify = (typeof LAYOUT_JUSTIFY)[number];
|
2574
|
+
type LayerLayoutProps = CommonProps & BorderProps & RadiusProps & ShadowProps & BackgroundColorProps & BackgroundImageProps & PaddingProps & {
|
2575
|
+
display?: LayoutDisplayType;
|
2576
|
+
direction?: LayoutFlexDirection;
|
2577
|
+
align?: LayoutFlexAlign;
|
2578
|
+
justify?: LayoutFlexJustify;
|
2579
|
+
rowGap?: Properties["rowGap"];
|
2580
|
+
columnGap?: Properties["columnGap"];
|
2581
|
+
width?: Properties["width"];
|
2582
|
+
};
|
2583
|
+
declare const LAYER_TEXT_ALIGN_VALUES: readonly [
|
2584
|
+
"center",
|
2585
|
+
"left",
|
2586
|
+
"right"
|
2587
|
+
];
|
2588
|
+
declare const LAYER_TEXT_FONT_WEIGHT_VALUES: readonly [
|
2589
|
+
"bold",
|
2590
|
+
"normal"
|
2591
|
+
];
|
2592
|
+
type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & PaddingProps & {
|
2593
|
+
content: string;
|
2594
|
+
variant?: string;
|
2595
|
+
align?: Properties["textAlign"];
|
2596
|
+
fontSize?: Properties["fontSize"];
|
2597
|
+
fontWeight?: Properties["fontWeight"];
|
2598
|
+
color?: Properties["color"];
|
2599
|
+
width?: Properties["width"];
|
2600
|
+
};
|
2601
|
+
export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, ComponentBaseProps, COMPONENT_PARAMETER_TYPES, ComponentParameterType, ComponentParameterOption, ComponentParameter, PositionProps, CommonProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, BUTTON_SIZE, BUTTON_COLOR, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, 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, LayerTextProps };
|
2344
2602
|
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 };
|
2345
2603
|
export { default as State } from './components/State.svelte';
|
2346
2604
|
export { default as StateItem } from './components/StateItem.svelte';
|
@@ -2375,10 +2633,10 @@ export { default as GridModalState } from './components/GridModalState.svelte';
|
|
2375
2633
|
export { default as TextBlock } from './components/TextBlock.svelte';
|
2376
2634
|
export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
|
2377
2635
|
export { default as ImageBlock } from './components/ImageBlock.svelte';
|
2636
|
+
export { default as V2Avatar } from './components-v2/avatar/Avatar.svelte';
|
2378
2637
|
export { default as V2Button } from './components-v2/button/Button.svelte';
|
2638
|
+
export { default as V2CloseButton } from './components-v2/close-button/CloseButton.svelte';
|
2379
2639
|
export { default as V2Icon } from './components-v2/icon/Icon.svelte';
|
2640
|
+
export { default as V2Image } from './components-v2/image/Image.svelte';
|
2380
2641
|
export { default as V2Layout } from './components-v2/layout/Layout.svelte';
|
2381
2642
|
export { default as V2Text } from './components-v2/text/Text.svelte';
|
2382
|
-
export { default as V2Avatar } from './components-v2/avatar/Avatar.svelte';
|
2383
|
-
export { default as V2Image } from './components-v2/image/Image.svelte';
|
2384
|
-
export { default as V2CloseButton } from './components-v2/close-button/CloseButton.svelte';
|