@plaidev/karte-action-sdk 1.1.156-28011287.2697070d → 1.1.156-28011566.cc9ca327
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +14 -34
- package/dist/index.es.js +14 -34
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1074,26 +1074,6 @@ async function loadGlobalStyle(href) {
|
|
1074
1074
|
link.addEventListener('error', () => reject(link));
|
1075
1075
|
});
|
1076
1076
|
}
|
1077
|
-
/**
|
1078
|
-
* {@link hashCode} generate hash with FNV-1a hash
|
1079
|
-
*
|
1080
|
-
* @param s - Inputed string
|
1081
|
-
*
|
1082
|
-
* @returns Hashed string
|
1083
|
-
*
|
1084
|
-
* @see https://stackoverflow.com/a/22429679
|
1085
|
-
*
|
1086
|
-
* @internal
|
1087
|
-
*/
|
1088
|
-
function hashCode(s) {
|
1089
|
-
const SEED = 0x41653150;
|
1090
|
-
let hash = SEED;
|
1091
|
-
Array.from(s).forEach((c, index) => {
|
1092
|
-
hash ^= c.charCodeAt(index);
|
1093
|
-
hash += (hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);
|
1094
|
-
});
|
1095
|
-
return ('0000000' + (hash >>> 0).toString(16)).substr(-8);
|
1096
|
-
}
|
1097
1077
|
|
1098
1078
|
/**
|
1099
1079
|
* アクションのログの記録の管理
|
@@ -3910,8 +3890,8 @@ function create_fragment$q(ctx) {
|
|
3910
3890
|
h() {
|
3911
3891
|
attr(div0, "class", "grid-item-inner svelte-n7kdl3");
|
3912
3892
|
attr(div1, "class", "grid-item svelte-n7kdl3");
|
3913
|
-
attr(div1, "data-grid-item-id", /*
|
3914
|
-
attr(div1, "style", /*_style*/ ctx[
|
3893
|
+
attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
|
3894
|
+
attr(div1, "style", /*_style*/ ctx[1]);
|
3915
3895
|
},
|
3916
3896
|
m(target, anchor) {
|
3917
3897
|
insert_hydration(target, div1, anchor);
|
@@ -3939,8 +3919,12 @@ function create_fragment$q(ctx) {
|
|
3939
3919
|
}
|
3940
3920
|
}
|
3941
3921
|
|
3942
|
-
if (!current || dirty & /*
|
3943
|
-
attr(div1, "
|
3922
|
+
if (!current || dirty & /*id*/ 1) {
|
3923
|
+
attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
|
3924
|
+
}
|
3925
|
+
|
3926
|
+
if (!current || dirty & /*_style*/ 2) {
|
3927
|
+
attr(div1, "style", /*_style*/ ctx[1]);
|
3944
3928
|
}
|
3945
3929
|
},
|
3946
3930
|
i(local) {
|
@@ -3968,13 +3952,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
3968
3952
|
let { y2 } = $$props;
|
3969
3953
|
let { z } = $$props;
|
3970
3954
|
let { background = 'transparent' } = $$props;
|
3971
|
-
let
|
3972
|
-
|
3973
|
-
if (z) {
|
3974
|
-
gridItemIdRaw += `-${z}`;
|
3975
|
-
}
|
3976
|
-
|
3977
|
-
const gridItemId = hashCode(gridItemIdRaw);
|
3955
|
+
let { id } = $$props;
|
3978
3956
|
|
3979
3957
|
onMount(() => {
|
3980
3958
|
setMaximumZindex(z);
|
@@ -3987,12 +3965,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
3987
3965
|
if ('y2' in $$props) $$invalidate(5, y2 = $$props.y2);
|
3988
3966
|
if ('z' in $$props) $$invalidate(6, z = $$props.z);
|
3989
3967
|
if ('background' in $$props) $$invalidate(7, background = $$props.background);
|
3968
|
+
if ('id' in $$props) $$invalidate(0, id = $$props.id);
|
3990
3969
|
if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
|
3991
3970
|
};
|
3992
3971
|
|
3993
3972
|
$$self.$$.update = () => {
|
3994
3973
|
if ($$self.$$.dirty & /*y1, x1, y2, x2, z, background*/ 252) {
|
3995
|
-
$$invalidate(
|
3974
|
+
$$invalidate(1, _style = [
|
3996
3975
|
`grid-area: ${y1 + 1} / ${x1 + 1} / ${y2 + 2} / ${x2 + 2}`,
|
3997
3976
|
`z-index: ${z}`,
|
3998
3977
|
`background: ${background}`,
|
@@ -4002,7 +3981,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
4002
3981
|
}
|
4003
3982
|
};
|
4004
3983
|
|
4005
|
-
return [
|
3984
|
+
return [id, _style, x1, x2, y1, y2, z, background, $$scope, slots];
|
4006
3985
|
}
|
4007
3986
|
|
4008
3987
|
class GridItem extends SvelteComponent {
|
@@ -4021,7 +4000,8 @@ class GridItem extends SvelteComponent {
|
|
4021
4000
|
y1: 4,
|
4022
4001
|
y2: 5,
|
4023
4002
|
z: 6,
|
4024
|
-
background: 7
|
4003
|
+
background: 7,
|
4004
|
+
id: 0
|
4025
4005
|
},
|
4026
4006
|
add_css$o
|
4027
4007
|
);
|
package/dist/index.es.js
CHANGED
@@ -1124,26 +1124,6 @@ async function loadGlobalStyle(href) {
|
|
1124
1124
|
link.addEventListener('error', () => reject(link));
|
1125
1125
|
});
|
1126
1126
|
}
|
1127
|
-
/**
|
1128
|
-
* {@link hashCode} generate hash with FNV-1a hash
|
1129
|
-
*
|
1130
|
-
* @param s - Inputed string
|
1131
|
-
*
|
1132
|
-
* @returns Hashed string
|
1133
|
-
*
|
1134
|
-
* @see https://stackoverflow.com/a/22429679
|
1135
|
-
*
|
1136
|
-
* @internal
|
1137
|
-
*/
|
1138
|
-
function hashCode(s) {
|
1139
|
-
const SEED = 0x41653150;
|
1140
|
-
let hash = SEED;
|
1141
|
-
Array.from(s).forEach((c, index) => {
|
1142
|
-
hash ^= c.charCodeAt(index);
|
1143
|
-
hash += (hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);
|
1144
|
-
});
|
1145
|
-
return ('0000000' + (hash >>> 0).toString(16)).substr(-8);
|
1146
|
-
}
|
1147
1127
|
|
1148
1128
|
/**
|
1149
1129
|
* アクションのログの記録の管理
|
@@ -3837,8 +3817,8 @@ function create_fragment$q(ctx) {
|
|
3837
3817
|
if (default_slot) default_slot.c();
|
3838
3818
|
attr(div0, "class", "grid-item-inner svelte-n7kdl3");
|
3839
3819
|
attr(div1, "class", "grid-item svelte-n7kdl3");
|
3840
|
-
attr(div1, "data-grid-item-id", /*
|
3841
|
-
attr(div1, "style", /*_style*/ ctx[
|
3820
|
+
attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
|
3821
|
+
attr(div1, "style", /*_style*/ ctx[1]);
|
3842
3822
|
},
|
3843
3823
|
m(target, anchor) {
|
3844
3824
|
insert(target, div1, anchor);
|
@@ -3866,8 +3846,12 @@ function create_fragment$q(ctx) {
|
|
3866
3846
|
}
|
3867
3847
|
}
|
3868
3848
|
|
3869
|
-
if (!current || dirty & /*
|
3870
|
-
attr(div1, "
|
3849
|
+
if (!current || dirty & /*id*/ 1) {
|
3850
|
+
attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
|
3851
|
+
}
|
3852
|
+
|
3853
|
+
if (!current || dirty & /*_style*/ 2) {
|
3854
|
+
attr(div1, "style", /*_style*/ ctx[1]);
|
3871
3855
|
}
|
3872
3856
|
},
|
3873
3857
|
i(local) {
|
@@ -3895,13 +3879,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
3895
3879
|
let { y2 } = $$props;
|
3896
3880
|
let { z } = $$props;
|
3897
3881
|
let { background = 'transparent' } = $$props;
|
3898
|
-
let
|
3899
|
-
|
3900
|
-
if (z) {
|
3901
|
-
gridItemIdRaw += `-${z}`;
|
3902
|
-
}
|
3903
|
-
|
3904
|
-
const gridItemId = hashCode(gridItemIdRaw);
|
3882
|
+
let { id } = $$props;
|
3905
3883
|
|
3906
3884
|
onMount(() => {
|
3907
3885
|
setMaximumZindex(z);
|
@@ -3914,12 +3892,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
3914
3892
|
if ('y2' in $$props) $$invalidate(5, y2 = $$props.y2);
|
3915
3893
|
if ('z' in $$props) $$invalidate(6, z = $$props.z);
|
3916
3894
|
if ('background' in $$props) $$invalidate(7, background = $$props.background);
|
3895
|
+
if ('id' in $$props) $$invalidate(0, id = $$props.id);
|
3917
3896
|
if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
|
3918
3897
|
};
|
3919
3898
|
|
3920
3899
|
$$self.$$.update = () => {
|
3921
3900
|
if ($$self.$$.dirty & /*y1, x1, y2, x2, z, background*/ 252) {
|
3922
|
-
$$invalidate(
|
3901
|
+
$$invalidate(1, _style = [
|
3923
3902
|
`grid-area: ${y1 + 1} / ${x1 + 1} / ${y2 + 2} / ${x2 + 2}`,
|
3924
3903
|
`z-index: ${z}`,
|
3925
3904
|
`background: ${background}`,
|
@@ -3929,7 +3908,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
3929
3908
|
}
|
3930
3909
|
};
|
3931
3910
|
|
3932
|
-
return [
|
3911
|
+
return [id, _style, x1, x2, y1, y2, z, background, $$scope, slots];
|
3933
3912
|
}
|
3934
3913
|
|
3935
3914
|
class GridItem extends SvelteComponent {
|
@@ -3948,7 +3927,8 @@ class GridItem extends SvelteComponent {
|
|
3948
3927
|
y1: 4,
|
3949
3928
|
y2: 5,
|
3950
3929
|
z: 6,
|
3951
|
-
background: 7
|
3930
|
+
background: 7,
|
3931
|
+
id: 0
|
3952
3932
|
},
|
3953
3933
|
add_css$o
|
3954
3934
|
);
|