@plaidev/karte-action-sdk 1.1.269-29152886.93a696e2 → 1.1.269-29161921.5f4ecb39
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/action.d.ts +1 -0
- package/dist/actionEvent.d.ts +1 -0
- package/dist/collection.d.ts +39 -39
- package/dist/components/index.d.ts +1 -0
- package/dist/components-flex/avatar/types.d.ts +16 -15
- package/dist/components-flex/brand-kit.d.ts +11 -11
- package/dist/components-flex/button/types.d.ts +43 -40
- package/dist/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/components-flex/button-text/types.d.ts +27 -24
- package/dist/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/components-flex/close-button/types.d.ts +21 -21
- package/dist/components-flex/code/types.d.ts +3 -3
- package/dist/components-flex/count-down/types.d.ts +7 -7
- package/dist/components-flex/icon/types.d.ts +9 -9
- package/dist/components-flex/image/types.d.ts +18 -18
- package/dist/components-flex/layout/types.d.ts +9 -9
- package/dist/components-flex/list/types.d.ts +18 -18
- package/dist/components-flex/modal/types.d.ts +1 -1
- package/dist/components-flex/multi-column/types.d.ts +19 -19
- package/dist/components-flex/props.d.ts +56 -56
- package/dist/components-flex/schemas.d.ts +17 -17
- package/dist/components-flex/shared/types.d.ts +6 -6
- package/dist/components-flex/slider/types.d.ts +6 -6
- package/dist/components-flex/styles.d.ts +1 -1
- package/dist/components-flex/text/constants.d.ts +1 -1
- package/dist/components-flex/text/styles.d.ts +1 -1
- package/dist/components-flex/text/types.d.ts +32 -29
- package/dist/components-flex/text-link/types.d.ts +24 -21
- package/dist/components-flex/utils/color.d.ts +3 -3
- package/dist/components-flex/utils/parser.d.ts +2 -2
- package/dist/components-flex/variants.d.ts +26 -11
- package/dist/components-flex/youtube/types.d.ts +12 -11
- package/dist/constants.d.ts +3 -2
- package/dist/enhancedStopPropagation.d.ts +1 -1
- package/dist/form.d.ts +15 -15
- package/dist/functions.d.ts +11 -11
- package/dist/hooks/useClickable.d.ts +3 -3
- package/dist/hooks/useText.d.ts +2 -2
- package/dist/hydrate/action.d.ts +1 -0
- package/dist/hydrate/actionEvent.d.ts +1 -0
- package/dist/hydrate/collection.d.ts +39 -39
- package/dist/hydrate/components/index.d.ts +1 -0
- package/dist/hydrate/components-flex/avatar/types.d.ts +16 -15
- package/dist/hydrate/components-flex/brand-kit.d.ts +11 -11
- package/dist/hydrate/components-flex/button/types.d.ts +43 -40
- package/dist/hydrate/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/hydrate/components-flex/button-text/types.d.ts +27 -24
- package/dist/hydrate/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/hydrate/components-flex/close-button/types.d.ts +21 -21
- package/dist/hydrate/components-flex/code/types.d.ts +3 -3
- package/dist/hydrate/components-flex/count-down/types.d.ts +7 -7
- package/dist/hydrate/components-flex/icon/types.d.ts +9 -9
- package/dist/hydrate/components-flex/image/types.d.ts +18 -18
- package/dist/hydrate/components-flex/layout/types.d.ts +9 -9
- package/dist/hydrate/components-flex/list/types.d.ts +18 -18
- package/dist/hydrate/components-flex/modal/types.d.ts +1 -1
- package/dist/hydrate/components-flex/multi-column/types.d.ts +19 -19
- package/dist/hydrate/components-flex/props.d.ts +56 -56
- package/dist/hydrate/components-flex/schemas.d.ts +17 -17
- package/dist/hydrate/components-flex/shared/types.d.ts +6 -6
- package/dist/hydrate/components-flex/slider/types.d.ts +6 -6
- package/dist/hydrate/components-flex/styles.d.ts +1 -1
- package/dist/hydrate/components-flex/text/constants.d.ts +1 -1
- package/dist/hydrate/components-flex/text/styles.d.ts +1 -1
- package/dist/hydrate/components-flex/text/types.d.ts +32 -29
- package/dist/hydrate/components-flex/text-link/types.d.ts +24 -21
- package/dist/hydrate/components-flex/utils/color.d.ts +3 -3
- package/dist/hydrate/components-flex/utils/parser.d.ts +2 -2
- package/dist/hydrate/components-flex/variants.d.ts +26 -11
- package/dist/hydrate/components-flex/youtube/types.d.ts +12 -11
- package/dist/hydrate/constants.d.ts +3 -2
- package/dist/hydrate/enhancedStopPropagation.d.ts +1 -1
- package/dist/hydrate/form.d.ts +15 -15
- package/dist/hydrate/functions.d.ts +11 -11
- package/dist/hydrate/hooks/useClickable.d.ts +3 -3
- package/dist/hydrate/hooks/useText.d.ts +2 -2
- package/dist/hydrate/index.d.ts +7 -5
- package/dist/hydrate/index.es.js +416 -2692
- package/dist/hydrate/index.svelte5.d.ts +6 -5
- package/dist/hydrate/logger.d.ts +14 -14
- package/dist/hydrate/modal.d.ts +9 -7
- package/dist/hydrate/modal.svelte5.d.ts +9 -7
- package/dist/hydrate/prop.d.ts +127 -127
- package/dist/hydrate/stores.d.ts +16 -16
- package/dist/hydrate/types.d.ts +15 -14
- package/dist/hydrate/utils.d.ts +36 -36
- package/dist/hydrate/widget.d.ts +10 -10
- package/dist/icons.d.ts +7 -4
- package/dist/index.es.d.ts +7 -5
- package/dist/index.es.js +413 -2677
- package/dist/logger.d.ts +14 -14
- package/dist/modal.d.ts +9 -7
- package/dist/modal.svelte5.d.ts +9 -7
- package/dist/prop.d.ts +127 -127
- package/dist/stores.d.ts +16 -16
- package/dist/svelte5/action.d.ts +1 -0
- package/dist/svelte5/actionEvent.d.ts +1 -0
- package/dist/svelte5/collection.d.ts +39 -39
- package/dist/svelte5/components/index.d.ts +1 -0
- package/dist/svelte5/components-flex/avatar/types.d.ts +16 -15
- package/dist/svelte5/components-flex/brand-kit.d.ts +11 -11
- package/dist/svelte5/components-flex/button/types.d.ts +43 -40
- package/dist/svelte5/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/svelte5/components-flex/button-text/types.d.ts +27 -24
- package/dist/svelte5/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/svelte5/components-flex/close-button/types.d.ts +21 -21
- package/dist/svelte5/components-flex/code/types.d.ts +3 -3
- package/dist/svelte5/components-flex/count-down/types.d.ts +7 -7
- package/dist/svelte5/components-flex/icon/types.d.ts +9 -9
- package/dist/svelte5/components-flex/image/types.d.ts +18 -18
- package/dist/svelte5/components-flex/layout/types.d.ts +9 -9
- package/dist/svelte5/components-flex/list/types.d.ts +18 -18
- package/dist/svelte5/components-flex/modal/types.d.ts +1 -1
- package/dist/svelte5/components-flex/multi-column/types.d.ts +19 -19
- package/dist/svelte5/components-flex/props.d.ts +56 -56
- package/dist/svelte5/components-flex/schemas.d.ts +17 -17
- package/dist/svelte5/components-flex/shared/types.d.ts +6 -6
- package/dist/svelte5/components-flex/slider/types.d.ts +6 -6
- package/dist/svelte5/components-flex/styles.d.ts +1 -1
- package/dist/svelte5/components-flex/text/constants.d.ts +1 -1
- package/dist/svelte5/components-flex/text/styles.d.ts +1 -1
- package/dist/svelte5/components-flex/text/types.d.ts +32 -29
- package/dist/svelte5/components-flex/text-link/types.d.ts +24 -21
- package/dist/svelte5/components-flex/utils/color.d.ts +3 -3
- package/dist/svelte5/components-flex/utils/parser.d.ts +2 -2
- package/dist/svelte5/components-flex/variants.d.ts +26 -11
- package/dist/svelte5/components-flex/youtube/types.d.ts +12 -11
- package/dist/svelte5/constants.d.ts +3 -2
- package/dist/svelte5/form.d.ts +15 -15
- package/dist/svelte5/functions.d.ts +11 -11
- package/dist/svelte5/hooks/useClickable.d.ts +3 -3
- package/dist/svelte5/hooks/useText.d.ts +2 -2
- package/dist/svelte5/hydrate/action.d.ts +1 -0
- package/dist/svelte5/hydrate/actionEvent.d.ts +1 -0
- package/dist/svelte5/hydrate/collection.d.ts +39 -39
- package/dist/svelte5/hydrate/components/index.d.ts +1 -0
- package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +16 -15
- package/dist/svelte5/hydrate/components-flex/brand-kit.d.ts +11 -11
- package/dist/svelte5/hydrate/components-flex/button/types.d.ts +43 -40
- package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +27 -24
- package/dist/svelte5/hydrate/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/close-button/types.d.ts +21 -21
- package/dist/svelte5/hydrate/components-flex/code/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/count-down/types.d.ts +7 -7
- package/dist/svelte5/hydrate/components-flex/icon/types.d.ts +9 -9
- package/dist/svelte5/hydrate/components-flex/image/types.d.ts +18 -18
- package/dist/svelte5/hydrate/components-flex/layout/types.d.ts +9 -9
- package/dist/svelte5/hydrate/components-flex/list/types.d.ts +18 -18
- package/dist/svelte5/hydrate/components-flex/modal/types.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/multi-column/types.d.ts +19 -19
- package/dist/svelte5/hydrate/components-flex/props.d.ts +56 -56
- package/dist/svelte5/hydrate/components-flex/schemas.d.ts +17 -17
- package/dist/svelte5/hydrate/components-flex/shared/types.d.ts +6 -6
- package/dist/svelte5/hydrate/components-flex/slider/types.d.ts +6 -6
- package/dist/svelte5/hydrate/components-flex/styles.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/text/constants.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/text/styles.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/text/types.d.ts +32 -29
- package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +24 -21
- package/dist/svelte5/hydrate/components-flex/utils/color.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/utils/parser.d.ts +2 -2
- package/dist/svelte5/hydrate/components-flex/variants.d.ts +26 -11
- package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +12 -11
- package/dist/svelte5/hydrate/constants.d.ts +3 -2
- package/dist/svelte5/hydrate/form.d.ts +15 -15
- package/dist/svelte5/hydrate/functions.d.ts +11 -11
- package/dist/svelte5/hydrate/hooks/useClickable.d.ts +3 -3
- package/dist/svelte5/hydrate/hooks/useText.d.ts +2 -2
- package/dist/svelte5/hydrate/index.es.d.ts +6 -5
- package/dist/svelte5/hydrate/index.es.js +16 -20
- package/dist/svelte5/hydrate/logger.d.ts +14 -14
- package/dist/svelte5/hydrate/modal.d.ts +9 -7
- package/dist/svelte5/hydrate/modal.svelte5.d.ts +9 -7
- package/dist/svelte5/hydrate/prop.d.ts +127 -127
- package/dist/svelte5/hydrate/stores.d.ts +16 -16
- package/dist/svelte5/hydrate/types.d.ts +15 -14
- package/dist/svelte5/hydrate/utils.d.ts +36 -36
- package/dist/svelte5/hydrate/widget.d.ts +10 -10
- package/dist/svelte5/index.es.d.ts +6 -5
- package/dist/svelte5/index.es.js +16 -20
- package/dist/svelte5/index.front2.es.js +42 -46
- package/dist/svelte5/index.svelte5.d.ts +6 -5
- package/dist/svelte5/logger.d.ts +14 -14
- package/dist/svelte5/modal.d.ts +9 -7
- package/dist/svelte5/modal.svelte5.d.ts +9 -7
- package/dist/svelte5/prop.d.ts +127 -127
- package/dist/svelte5/stores.d.ts +16 -16
- package/dist/svelte5/types.d.ts +15 -14
- package/dist/svelte5/utils.d.ts +36 -36
- package/dist/svelte5/widget.d.ts +10 -10
- package/dist/templates.cjs.js +0 -1
- package/dist/templates.d.ts +5 -3
- package/dist/types.d.ts +15 -14
- package/dist/utils.d.ts +36 -36
- package/dist/widget.d.ts +10 -10
- package/package.json +3 -3
@@ -1,47 +1,62 @@
|
|
1
1
|
import type { BrandKit } from "./brand-kit.js";
|
2
2
|
import type { ShadowProps, FontFamilyProps, AspectProps, BackgroundColorProps, BorderColorProps } from "./props.js";
|
3
3
|
export type VariantStyles<Props extends object = object> = Props & {
|
4
|
-
hover?: Props
|
5
|
-
active?: Props
|
4
|
+
hover?: Props;
|
5
|
+
active?: Props;
|
6
6
|
};
|
7
7
|
export type VariantDefinition<
|
8
8
|
Props extends object = object,
|
9
9
|
Meta extends object = object
|
10
10
|
> = {
|
11
|
-
name: string
|
12
|
-
description?: string
|
13
|
-
getProps: (brandKit?: Partial<BrandKit>) => VariantStyles<Props
|
14
|
-
meta?: Meta
|
11
|
+
name: string;
|
12
|
+
description?: string;
|
13
|
+
getProps: (brandKit?: Partial<BrandKit>) => VariantStyles<Props>;
|
14
|
+
meta?: Meta;
|
15
15
|
};
|
16
16
|
export type VariantDefinitionGroup<
|
17
17
|
Props extends object = object,
|
18
18
|
Meta extends object = object
|
19
19
|
> = Record<string, VariantDefinition<Props, Meta>>;
|
20
20
|
type ToVariantArrayReturn<T> = T[keyof T] & {
|
21
|
-
code: keyof T
|
21
|
+
code: keyof T;
|
22
22
|
};
|
23
23
|
declare const toVariantArray: <T extends VariantDefinitionGroup>(group: T) => ToVariantArrayReturn<T>[];
|
24
|
+
// ================================
|
25
|
+
// Aspect
|
26
|
+
// ================================
|
24
27
|
export declare const ASPECT_VARIANT: VariantDefinitionGroup<Omit<AspectProps, "aspectVariant">>;
|
25
28
|
export type AspectVariantCode = keyof typeof ASPECT_VARIANT;
|
26
29
|
export declare const ASPECT_VARIANTS: ReturnType<typeof toVariantArray>;
|
30
|
+
// ================================
|
31
|
+
// FontFamily
|
32
|
+
// ================================
|
27
33
|
export type FontVariantMeta = {
|
28
|
-
lang: "ja" | "en"
|
29
|
-
type: "kaku" | "maru" | "min"
|
34
|
+
lang: "ja" | "en";
|
35
|
+
type: "kaku" | "maru" | "min";
|
30
36
|
};
|
31
37
|
export declare const FONT_FAMILY_VARIANT: VariantDefinitionGroup<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta>;
|
32
38
|
export type FontFamilyVariantCode = keyof typeof FONT_FAMILY_VARIANT;
|
33
39
|
export declare const FONT_FAMILY_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta>>[];
|
34
40
|
type FontFamilyVariantGroup = {
|
35
|
-
label: string
|
36
|
-
variants: ReturnType<typeof toVariantArray
|
41
|
+
label: string;
|
42
|
+
variants: ReturnType<typeof toVariantArray>;
|
37
43
|
};
|
38
44
|
export declare const FONT_FAMILY_VARIANT_GROUPS: FontFamilyVariantGroup[];
|
45
|
+
// ================================
|
46
|
+
// Shadow
|
47
|
+
// ================================
|
39
48
|
export declare const SHADOW_VARIANT: VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">>;
|
40
49
|
export type ShadowVariantCode = keyof typeof SHADOW_VARIANT;
|
41
50
|
export declare const SHADOW_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">, object>>[];
|
51
|
+
// ================================
|
52
|
+
// Background
|
53
|
+
// ================================
|
42
54
|
export declare const BACKGROUND_COLOR_VARIANT: VariantDefinitionGroup<Omit<BackgroundColorProps, "backgroundColorVariant">>;
|
43
55
|
export type BackgroundColorVariantCode = keyof typeof BACKGROUND_COLOR_VARIANT;
|
44
56
|
export declare const BACKGROUND_COLOR_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<BackgroundColorProps, "backgroundColorVariant">, object>>[];
|
57
|
+
// ================================
|
58
|
+
// Border
|
59
|
+
// ================================
|
45
60
|
export declare const BORDER_COLOR_VARIANT: VariantDefinitionGroup<Omit<BorderColorProps, "borderColorVariant">>;
|
46
61
|
export type BorderColorVariantCode = keyof typeof BORDER_COLOR_VARIANT;
|
47
62
|
export declare const BORDER_COLOR_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<BorderColorProps, "borderColorVariant">, object>>[];
|
@@ -2,15 +2,16 @@ import type { CommonProps, BorderProps } from "../props.js";
|
|
2
2
|
import type { IMAGE_ROUND_SHAPE } from "../image/types.js";
|
3
3
|
import type { Properties } from "csstype";
|
4
4
|
export type YoutubeProps = CommonProps & BorderProps & {
|
5
|
-
videoId?: string
|
6
|
-
loop?: boolean
|
7
|
-
autoplay?: boolean
|
8
|
-
mute?: boolean
|
9
|
-
controls?: boolean
|
10
|
-
showInfo?: boolean
|
11
|
-
showSubtitle?: boolean
|
12
|
-
showFullScreen?: boolean
|
13
|
-
showRelatedMovies?: boolean
|
14
|
-
|
15
|
-
|
5
|
+
videoId?: string;
|
6
|
+
loop?: boolean;
|
7
|
+
autoplay?: boolean;
|
8
|
+
mute?: boolean;
|
9
|
+
controls?: boolean;
|
10
|
+
showInfo?: boolean;
|
11
|
+
showSubtitle?: boolean;
|
12
|
+
showFullScreen?: boolean;
|
13
|
+
showRelatedMovies?: boolean;
|
14
|
+
// styles
|
15
|
+
shape?: keyof typeof IMAGE_ROUND_SHAPE;
|
16
|
+
width?: Properties["width"];
|
16
17
|
};
|
@@ -14,9 +14,10 @@ export declare const ALL_ACTION_SHORTEN_ID = "KARTE_ALL_ACTION_SHORTEN_ID";
|
|
14
14
|
export declare const DEVICE_IDS: string[];
|
15
15
|
/** @internal */
|
16
16
|
export declare const DEVICE_QUERIES: {
|
17
|
-
readonly PC: "screen and (min-width: 641px)"
|
18
|
-
readonly SP: "screen and (max-width: 640px)"
|
17
|
+
readonly PC: "screen and (min-width: 641px)";
|
18
|
+
readonly SP: "screen and (max-width: 640px)";
|
19
19
|
};
|
20
|
+
// -------- The following codes are deprecated --------
|
20
21
|
/**
|
21
22
|
* 非推奨
|
22
23
|
*
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import type { FormData } from "./stores.js";
|
2
2
|
import type { Readable, Writable } from "svelte/store";
|
3
3
|
type AnswerValue = {
|
4
|
-
choices: string[]
|
4
|
+
choices: string[];
|
5
5
|
} | {
|
6
|
-
free_answer: string
|
6
|
+
free_answer: string;
|
7
7
|
};
|
8
8
|
type InputValue = any;
|
9
9
|
type RegisterInputFuncArg<T extends InputValue> = {
|
10
|
-
name: string
|
11
|
-
statePath: string
|
12
|
-
validator?: (value: T) => boolean
|
13
|
-
initialValue: T
|
10
|
+
name: string;
|
11
|
+
statePath: string;
|
12
|
+
validator?: (value: T) => boolean;
|
13
|
+
initialValue: T;
|
14
14
|
};
|
15
15
|
type RegisterInputFunc = {
|
16
16
|
<T extends InputValue>(arg: RegisterInputFuncArg<T>): {
|
17
|
-
value: Writable<T
|
18
|
-
isValid: Readable<boolean
|
19
|
-
}
|
17
|
+
value: Writable<T>;
|
18
|
+
isValid: Readable<boolean>;
|
19
|
+
};
|
20
20
|
};
|
21
21
|
/** @internal */
|
22
22
|
export declare function createInputRegisterer(formData: Writable<FormData>): RegisterInputFunc;
|
@@ -30,8 +30,8 @@ export declare function deleteValues(statePath: string): void;
|
|
30
30
|
export declare const getValuesAreValidReadable: (statePath: string) => Readable<boolean>;
|
31
31
|
/** @internal */
|
32
32
|
export declare function submit(): {
|
33
|
-
values?: any
|
34
|
-
identifyValues?: any
|
33
|
+
values?: any;
|
34
|
+
identifyValues?: any;
|
35
35
|
};
|
36
36
|
/**
|
37
37
|
* 選択式のアンケート回答を追加する
|
@@ -42,8 +42,8 @@ export declare function submit(): {
|
|
42
42
|
* @public
|
43
43
|
*/
|
44
44
|
export declare function addChoiceAnswer(questionId: string, choices: string[], validation?: {
|
45
|
-
isValid: boolean
|
46
|
-
statePath: string
|
45
|
+
isValid: boolean;
|
46
|
+
statePath: string;
|
47
47
|
}): void;
|
48
48
|
/**
|
49
49
|
* 自由記述式のアンケート回答を追加する
|
@@ -54,8 +54,8 @@ export declare function addChoiceAnswer(questionId: string, choices: string[], v
|
|
54
54
|
* @public
|
55
55
|
*/
|
56
56
|
export declare function addFreeAnswer(questionId: string, freeAnswer: string, validation?: {
|
57
|
-
isValid: boolean
|
58
|
-
statePath: string
|
57
|
+
isValid: boolean;
|
58
|
+
statePath: string;
|
59
59
|
}): void;
|
60
60
|
/**
|
61
61
|
* 回答済の回答を削除
|
@@ -26,9 +26,9 @@ interface CustomAnimationOptions {
|
|
26
26
|
* A Transform value in percent of target element
|
27
27
|
*/
|
28
28
|
transforms: Array<{
|
29
|
-
query: string | null
|
30
|
-
x: number
|
31
|
-
y: number
|
29
|
+
query: string | null;
|
30
|
+
x: number;
|
31
|
+
y: number;
|
32
32
|
}>;
|
33
33
|
/**
|
34
34
|
* A style of animation(e.g. fade, slide-in)
|
@@ -58,14 +58,14 @@ interface CustomAnimationOptions {
|
|
58
58
|
* @internal
|
59
59
|
*/
|
60
60
|
export declare function customAnimation(node: Element, { transforms, animationStyle, delay, duration }: CustomAnimationOptions): {
|
61
|
-
delay?: undefined
|
62
|
-
duration?: undefined
|
63
|
-
easing?: undefined
|
64
|
-
css?: undefined
|
61
|
+
delay?: undefined;
|
62
|
+
duration?: undefined;
|
63
|
+
easing?: undefined;
|
64
|
+
css?: undefined;
|
65
65
|
} | {
|
66
|
-
delay: number
|
67
|
-
duration: number
|
68
|
-
easing: (t: any) => any
|
69
|
-
css: (progress: number) => string
|
66
|
+
delay: number;
|
67
|
+
duration: number;
|
68
|
+
easing: (t: any) => any;
|
69
|
+
css: (progress: number) => string;
|
70
70
|
};
|
71
71
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { ClickableProps } from "../components-flex/props.js";
|
2
2
|
declare const useClickable: ({ eventValue, eventName, onClick, element }: ClickableProps) => {
|
3
|
-
element: string
|
4
|
-
attributes: Record<string, any
|
5
|
-
handleClick: (e: MouseEvent) => void
|
3
|
+
element: string;
|
4
|
+
attributes: Record<string, any>;
|
5
|
+
handleClick: (e: MouseEvent) => void;
|
6
6
|
};
|
7
7
|
export default useClickable;
|
@@ -3,17 +3,18 @@ export { create, destroyAction, onCreate, onDestroy, showModal, destroy } from "
|
|
3
3
|
export { initialize, finalize } from "./actionEvent.js";
|
4
4
|
export { loadGlobalScript, loadGlobalStyle, applyGlobalCss } from "./script.js";
|
5
5
|
export { getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state } from "./stores.js";
|
6
|
-
export { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction } from "./types.js";
|
6
|
+
export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction } from "./types.js";
|
7
7
|
export { onScroll, onTime } from "./utils.js";
|
8
|
-
export { OnScrollContext, OnScrollFunction, ScrollDirection } from "./utils.js";
|
8
|
+
export type { OnScrollContext, OnScrollFunction, ScrollDirection } from "./utils.js";
|
9
9
|
export { getLogs, getEvents, logger, listenLogger } from "./logger.js";
|
10
|
-
export { LogLevel, Log, Event } from "./logger.js";
|
10
|
+
export type { LogLevel, Log, Event } from "./logger.js";
|
11
|
+
// 以下は互換性のため
|
11
12
|
export { hideOnScroll, hideOnTime, showOnScroll, showOnTime } from "./display-logic.js";
|
12
13
|
export * from "./prop.js";
|
13
14
|
export { showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog } from "./modal.svelte5.js";
|
14
|
-
export { ActionCloseHook, ShowTrigger, CloseTrigger } from "./modal.svelte5.js";
|
15
|
+
export type { ActionCloseHook, ShowTrigger, CloseTrigger } from "./modal.svelte5.js";
|
15
16
|
export { collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable } from "./collection.js";
|
16
|
-
export { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig } from "./collection.js";
|
17
|
+
export type { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig } from "./collection.js";
|
17
18
|
export { addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers } from "./form.js";
|
18
19
|
export * as widget from "./widget.js";
|
19
20
|
export { onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES } from "./components/index.js";
|
@@ -220,7 +220,7 @@ function onScroll(rate, fn) {
|
|
220
220
|
const rates = Array.isArray(rate) ? rate : [rate];
|
221
221
|
const body = window.document.body;
|
222
222
|
const html = window.document.documentElement;
|
223
|
-
const contexts = new Map();
|
223
|
+
const contexts = /* @__PURE__ */ new Map();
|
224
224
|
rates.forEach((rate$1) => {
|
225
225
|
contexts.set(rate$1, {
|
226
226
|
rate: rate$1,
|
@@ -1171,7 +1171,7 @@ const logger = {
|
|
1171
1171
|
const log$1 = cloneToJson({
|
1172
1172
|
level: "info",
|
1173
1173
|
messages,
|
1174
|
-
date: new Date()
|
1174
|
+
date: /* @__PURE__ */ new Date()
|
1175
1175
|
});
|
1176
1176
|
w(window).postMessage({
|
1177
1177
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1185,7 +1185,7 @@ const logger = {
|
|
1185
1185
|
const log$1 = cloneToJson({
|
1186
1186
|
level: "info",
|
1187
1187
|
messages,
|
1188
|
-
date: new Date()
|
1188
|
+
date: /* @__PURE__ */ new Date()
|
1189
1189
|
});
|
1190
1190
|
w(window).postMessage({
|
1191
1191
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1199,7 +1199,7 @@ const logger = {
|
|
1199
1199
|
const log$1 = cloneToJson({
|
1200
1200
|
level: "error",
|
1201
1201
|
messages,
|
1202
|
-
date: new Date()
|
1202
|
+
date: /* @__PURE__ */ new Date()
|
1203
1203
|
});
|
1204
1204
|
w(window).postMessage({
|
1205
1205
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1213,7 +1213,7 @@ const logger = {
|
|
1213
1213
|
const log$1 = cloneToJson({
|
1214
1214
|
level: "warn",
|
1215
1215
|
messages,
|
1216
|
-
date: new Date()
|
1216
|
+
date: /* @__PURE__ */ new Date()
|
1217
1217
|
});
|
1218
1218
|
w(window).postMessage({
|
1219
1219
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1227,7 +1227,7 @@ const logger = {
|
|
1227
1227
|
const log$1 = cloneToJson({
|
1228
1228
|
level: "system",
|
1229
1229
|
messages,
|
1230
|
-
date: new Date()
|
1230
|
+
date: /* @__PURE__ */ new Date()
|
1231
1231
|
});
|
1232
1232
|
w(window).postMessage({
|
1233
1233
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1241,10 +1241,10 @@ const logger = {
|
|
1241
1241
|
const event = values ? {
|
1242
1242
|
name,
|
1243
1243
|
values,
|
1244
|
-
date: new Date()
|
1244
|
+
date: /* @__PURE__ */ new Date()
|
1245
1245
|
} : {
|
1246
1246
|
name,
|
1247
|
-
date: new Date()
|
1247
|
+
date: /* @__PURE__ */ new Date()
|
1248
1248
|
};
|
1249
1249
|
w(window).postMessage({
|
1250
1250
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1286,7 +1286,7 @@ function listenLogger() {
|
|
1286
1286
|
const log$1 = {
|
1287
1287
|
level,
|
1288
1288
|
messages,
|
1289
|
-
date: new Date()
|
1289
|
+
date: /* @__PURE__ */ new Date()
|
1290
1290
|
};
|
1291
1291
|
logs.push(log$1);
|
1292
1292
|
} else if (detail.method === "event") {
|
@@ -1295,10 +1295,10 @@ function listenLogger() {
|
|
1295
1295
|
const karteEvent = values ? {
|
1296
1296
|
name,
|
1297
1297
|
values,
|
1298
|
-
date: new Date()
|
1298
|
+
date: /* @__PURE__ */ new Date()
|
1299
1299
|
} : {
|
1300
1300
|
name,
|
1301
|
-
date: new Date()
|
1301
|
+
date: /* @__PURE__ */ new Date()
|
1302
1302
|
};
|
1303
1303
|
events.push(karteEvent);
|
1304
1304
|
}
|
@@ -1843,11 +1843,7 @@ async function fixFontFaceIssue(href, cssRules) {
|
|
1843
1843
|
const split = href.split("/");
|
1844
1844
|
const stylePath = split.slice(0, split.length - 1).join("/");
|
1845
1845
|
const cssText = cssRule.cssText;
|
1846
|
-
const newCssText = cssText.replace(
|
1847
|
-
// relative paths
|
1848
|
-
/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,
|
1849
|
-
`url("${stylePath}/$4")`
|
1850
|
-
);
|
1846
|
+
const newCssText = cssText.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
|
1851
1847
|
if (cssText === newCssText) return;
|
1852
1848
|
fixedRules.push(newCssText);
|
1853
1849
|
});
|
@@ -2817,7 +2813,7 @@ function getMemoryStore(key) {
|
|
2817
2813
|
function setLocalStore(key, value, options = { expire: false }) {
|
2818
2814
|
const item = {
|
2819
2815
|
val: value,
|
2820
|
-
last: new Date().getTime()
|
2816
|
+
last: (/* @__PURE__ */ new Date()).getTime()
|
2821
2817
|
};
|
2822
2818
|
if (options.expire) item.expire = options.expire;
|
2823
2819
|
localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
|
@@ -2842,7 +2838,7 @@ function getLocalStore(key) {
|
|
2842
2838
|
return;
|
2843
2839
|
}
|
2844
2840
|
if (item.val === void 0) return;
|
2845
|
-
const now = new Date().getTime();
|
2841
|
+
const now = (/* @__PURE__ */ new Date()).getTime();
|
2846
2842
|
if (now - item.last > item.expire) {
|
2847
2843
|
localStorage.removeItem(lsKey);
|
2848
2844
|
return;
|
@@ -6610,9 +6606,9 @@ function CountDown($$anchor, $$props) {
|
|
6610
6606
|
let layerId = $$2.prop($$props, "layerId", 8, "");
|
6611
6607
|
useInjectCustomizeCss(props());
|
6612
6608
|
let remainingTime = $$2.mutable_state();
|
6613
|
-
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : new Date();
|
6609
|
+
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
|
6614
6610
|
function calcRemainingTime(limit) {
|
6615
|
-
return limit - new Date().getTime();
|
6611
|
+
return limit - (/* @__PURE__ */ new Date()).getTime();
|
6616
6612
|
}
|
6617
6613
|
function formatTimeDiff(ms) {
|
6618
6614
|
const diffDay = Math.floor(ms / 1e3 / 60 / 60 / 24);
|
@@ -5,15 +5,15 @@
|
|
5
5
|
export type LogLevel = "info" | "error" | "warn" | "system";
|
6
6
|
/** @internal */
|
7
7
|
export type Log = {
|
8
|
-
level: LogLevel
|
9
|
-
messages: any
|
10
|
-
date?: Date
|
8
|
+
level: LogLevel;
|
9
|
+
messages: any;
|
10
|
+
date?: Date;
|
11
11
|
};
|
12
12
|
/** @internal */
|
13
13
|
export type Event = {
|
14
|
-
name: string
|
15
|
-
values?: any
|
16
|
-
date?: Date
|
14
|
+
name: string;
|
15
|
+
values?: any;
|
16
|
+
date?: Date;
|
17
17
|
};
|
18
18
|
/** @internal */
|
19
19
|
export declare function getLogs(): Log[];
|
@@ -25,14 +25,14 @@ export declare function getEvents(): Event[];
|
|
25
25
|
* @internal
|
26
26
|
*/
|
27
27
|
export declare const logger: {
|
28
|
-
info: (...messages: any[]) => void
|
29
|
-
log: (...messages: any[]) => void
|
30
|
-
error: (...messages: any[]) => void
|
31
|
-
warn: (...messages: any[]) => void
|
32
|
-
system: (...messages: any[]) => void
|
33
|
-
event: (name: string, values?: any) => void
|
34
|
-
clear: () => void
|
35
|
-
clearEvents: () => void
|
28
|
+
info: (...messages: any[]) => void;
|
29
|
+
log: (...messages: any[]) => void;
|
30
|
+
error: (...messages: any[]) => void;
|
31
|
+
warn: (...messages: any[]) => void;
|
32
|
+
system: (...messages: any[]) => void;
|
33
|
+
event: (name: string, values?: any) => void;
|
34
|
+
clear: () => void;
|
35
|
+
clearEvents: () => void;
|
36
36
|
};
|
37
37
|
/**
|
38
38
|
* メッセージを実行ログに表示する
|
@@ -92,8 +92,9 @@ export declare function applyCss(css: string): Promise<HTMLStyleElement>;
|
|
92
92
|
* @public
|
93
93
|
*/
|
94
94
|
export declare function loadStyle(href: string): Promise<void>;
|
95
|
+
// @internal
|
95
96
|
export declare function getCssVariables(data: {
|
96
|
-
[key: string]: string | number
|
97
|
+
[key: string]: string | number;
|
97
98
|
}): string;
|
98
99
|
/**
|
99
100
|
* アクションのルートの DOM 要素を取得する
|
@@ -111,6 +112,7 @@ export declare function createModal<
|
|
111
112
|
>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
|
112
113
|
/** @internal */
|
113
114
|
export declare function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement;
|
115
|
+
// -------- The following codes are deprecated --------
|
114
116
|
/**
|
115
117
|
* 非推奨
|
116
118
|
*
|
@@ -204,11 +206,11 @@ export declare function createApp<
|
|
204
206
|
* @internal
|
205
207
|
*/
|
206
208
|
export declare function createFog({ color, opacity, zIndex, onclick }: {
|
207
|
-
color?: string
|
208
|
-
opacity?: string
|
209
|
-
zIndex?: number
|
210
|
-
onclick: () => void
|
209
|
+
color?: string;
|
210
|
+
opacity?: string;
|
211
|
+
zIndex?: number;
|
212
|
+
onclick: () => void;
|
211
213
|
}): {
|
212
|
-
fog: HTMLElement | null
|
213
|
-
close: () => void
|
214
|
+
fog: HTMLElement | null;
|
215
|
+
close: () => void;
|
214
216
|
};
|
@@ -92,8 +92,9 @@ export declare function applyCss(css: string): Promise<HTMLStyleElement>;
|
|
92
92
|
* @public
|
93
93
|
*/
|
94
94
|
export declare function loadStyle(href: string): Promise<void>;
|
95
|
+
// @internal
|
95
96
|
export declare function getCssVariables(data: {
|
96
|
-
[key: string]: string | number
|
97
|
+
[key: string]: string | number;
|
97
98
|
}): string;
|
98
99
|
/**
|
99
100
|
* アクションのルートの DOM 要素を取得する
|
@@ -111,6 +112,7 @@ export declare function createModal<
|
|
111
112
|
>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
|
112
113
|
/** @internal */
|
113
114
|
export declare function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement;
|
115
|
+
// -------- The following codes are deprecated --------
|
114
116
|
/**
|
115
117
|
* 非推奨
|
116
118
|
*
|
@@ -204,11 +206,11 @@ export declare function createApp<
|
|
204
206
|
* @internal
|
205
207
|
*/
|
206
208
|
export declare function createFog({ color, opacity, zIndex, onclick }: {
|
207
|
-
color?: string
|
208
|
-
opacity?: string
|
209
|
-
zIndex?: number
|
210
|
-
onclick: () => void
|
209
|
+
color?: string;
|
210
|
+
opacity?: string;
|
211
|
+
zIndex?: number;
|
212
|
+
onclick: () => void;
|
211
213
|
}): {
|
212
|
-
fog: HTMLElement | null
|
213
|
-
close: () => void
|
214
|
+
fog: HTMLElement | null;
|
215
|
+
close: () => void;
|
214
216
|
};
|