amotify 0.1.43 → 0.1.45
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/@styles/componentClasses/_.css +33 -36
- package/dist/@styles/componentClasses/_.js +6 -7
- package/dist/@styles/index.css +33 -36
- package/dist/@styles/index.js +6 -7
- package/dist/@styles/init.css +2 -2
- package/dist/@styles/style.css +33 -36
- package/dist/@styles/style.js +6 -7
- package/dist/@styles/var.css +2 -2
- package/dist/fn/Cropper.js +1 -1
- package/dist/fn/Input/Parts.js +1 -1
- package/dist/fn/Input/core.js +1 -1
- package/dist/temps/designBook.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license amotify
|
|
3
|
-
* amotify 0.1.
|
|
3
|
+
* amotify 0.1.44
|
|
4
4
|
* https://mingoo.co.jp/
|
|
5
5
|
|
|
6
6
|
* Copyright (c) mingoo, LLC.
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
|
|
9
|
-
* Latest updated at: 2024/6/
|
|
9
|
+
* Latest updated at: 2024/6/25
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/a_img.module.scss */
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
/* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/f_input.module.scss */
|
|
1026
|
-
.
|
|
1026
|
+
._Wrapper_m8cj1_1 textarea {
|
|
1027
1027
|
display: block;
|
|
1028
1028
|
width: 100%;
|
|
1029
1029
|
min-height: calc(var(--grid-unit) * 4);
|
|
@@ -1033,44 +1033,44 @@
|
|
|
1033
1033
|
box-shadow,
|
|
1034
1034
|
background-color !important;
|
|
1035
1035
|
}
|
|
1036
|
-
.
|
|
1037
|
-
.
|
|
1038
|
-
.
|
|
1036
|
+
._Wrapper_m8cj1_1 input,
|
|
1037
|
+
._Wrapper_m8cj1_1 select,
|
|
1038
|
+
._Wrapper_m8cj1_1 textarea {
|
|
1039
1039
|
display: inline-block;
|
|
1040
1040
|
}
|
|
1041
|
-
.
|
|
1042
|
-
.
|
|
1043
|
-
.
|
|
1041
|
+
._Wrapper_m8cj1_1 input[disabled],
|
|
1042
|
+
._Wrapper_m8cj1_1 select[disabled],
|
|
1043
|
+
._Wrapper_m8cj1_1 textarea[disabled] {
|
|
1044
1044
|
box-shadow: none !important;
|
|
1045
1045
|
background-color: hsl(var(--color-layer3-hsl)) !important;
|
|
1046
1046
|
color: rgb(var(--font-color5-rgb)) !important;
|
|
1047
1047
|
filter: grayscale(50%);
|
|
1048
1048
|
cursor: not-allowed !important;
|
|
1049
1049
|
}
|
|
1050
|
-
.
|
|
1051
|
-
.
|
|
1050
|
+
._Wrapper_m8cj1_1 input,
|
|
1051
|
+
._Wrapper_m8cj1_1 textarea {
|
|
1052
1052
|
cursor: text;
|
|
1053
1053
|
}
|
|
1054
|
-
.
|
|
1055
|
-
.
|
|
1054
|
+
._Wrapper_m8cj1_1 input::placeholder,
|
|
1055
|
+
._Wrapper_m8cj1_1 textarea::placeholder {
|
|
1056
1056
|
font-family: inherit;
|
|
1057
1057
|
color: rgb(var(--font-color4-rgb));
|
|
1058
1058
|
}
|
|
1059
|
-
.
|
|
1059
|
+
._Wrapper_m8cj1_1 input {
|
|
1060
1060
|
min-width: 0;
|
|
1061
1061
|
display: block;
|
|
1062
1062
|
}
|
|
1063
|
-
.
|
|
1064
|
-
.
|
|
1063
|
+
._Wrapper_m8cj1_1 input[type=text],
|
|
1064
|
+
._Wrapper_m8cj1_1 input[type=number] {
|
|
1065
1065
|
width: 100%;
|
|
1066
1066
|
}
|
|
1067
|
-
.
|
|
1068
|
-
.
|
|
1067
|
+
._Wrapper_m8cj1_1 input[type=number]::-webkit-inner-spin-button,
|
|
1068
|
+
._Wrapper_m8cj1_1 input[type=number]::-webkit-outer-spin-button {
|
|
1069
1069
|
-webkit-appearance: none;
|
|
1070
1070
|
}
|
|
1071
|
-
.
|
|
1072
|
-
.
|
|
1073
|
-
.
|
|
1071
|
+
._Wrapper_m8cj1_1 input[type=radio],
|
|
1072
|
+
._Wrapper_m8cj1_1 input[type=checkbox],
|
|
1073
|
+
._Wrapper_m8cj1_1 input[type=file] {
|
|
1074
1074
|
opacity: 0;
|
|
1075
1075
|
width: 0;
|
|
1076
1076
|
height: 0;
|
|
@@ -1078,51 +1078,48 @@
|
|
|
1078
1078
|
position: absolute;
|
|
1079
1079
|
appearance: none;
|
|
1080
1080
|
}
|
|
1081
|
-
.
|
|
1081
|
+
._Wrapper_m8cj1_1 input:-webkit-autofill {
|
|
1082
1082
|
box-shadow: 0 0 0 100rem hsl(var(--color-layer3-hsl)) inset !important;
|
|
1083
1083
|
-webkit-text-fill-color: rgb(var(--font-color3-rgb));
|
|
1084
1084
|
}
|
|
1085
|
-
.
|
|
1085
|
+
._Input_m8cj1_48 {
|
|
1086
1086
|
outline: none !important;
|
|
1087
1087
|
}
|
|
1088
|
-
.
|
|
1089
|
-
.
|
|
1088
|
+
._Input_m8cj1_48:focus,
|
|
1089
|
+
._Input_m8cj1_48:active {
|
|
1090
1090
|
z-index: 1;
|
|
1091
1091
|
background-color: hsl(var(--color-layer1-hsl));
|
|
1092
1092
|
}
|
|
1093
|
-
.
|
|
1093
|
+
._Input_m8cj1_48:focus {
|
|
1094
1094
|
border-color: hsl(var(--color-theme-hsl)) !important;
|
|
1095
1095
|
box-shadow: 0 0 0 transparent inset, 0 0 0 calc(var(--grid-unit) * 1 / 3) hsla(var(--color-theme-hsl), var(--color-theme-opacity-low));
|
|
1096
1096
|
}
|
|
1097
|
-
.
|
|
1097
|
+
._Input_m8cj1_48:active {
|
|
1098
1098
|
box-shadow: 0 0 0 transparent inset, 0 0 0 transparent;
|
|
1099
1099
|
transition: var(--animation-time3);
|
|
1100
1100
|
}
|
|
1101
|
-
.
|
|
1101
|
+
._Input_m8cj1_48._InputCover_m8cj1_63:focus-within {
|
|
1102
1102
|
z-index: 1;
|
|
1103
1103
|
background-color: hsl(var(--color-layer1-hsl));
|
|
1104
1104
|
}
|
|
1105
|
-
.
|
|
1105
|
+
._Input_m8cj1_48._InputCover_m8cj1_63:focus-within {
|
|
1106
1106
|
border-color: hsl(var(--color-theme-hsl)) !important;
|
|
1107
1107
|
box-shadow: 0 0 0 transparent inset, 0 0 0 calc(var(--grid-unit) * 1 / 3) hsla(var(--color-theme-hsl), var(--color-theme-opacity-low));
|
|
1108
1108
|
}
|
|
1109
|
-
@keyframes
|
|
1109
|
+
@keyframes _ShowCell_m8cj1_1 {
|
|
1110
1110
|
100% {
|
|
1111
1111
|
opacity: 1;
|
|
1112
1112
|
transform: scale(1);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
.
|
|
1116
|
-
transform: translateY(-50%);
|
|
1117
|
-
}
|
|
1118
|
-
._DigitCharacterCell_gmkyt_82._Combined_gmkyt_82:not(:first-child):not(:last-child) {
|
|
1115
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:not(:first-child):not(:last-child) {
|
|
1119
1116
|
border-radius: 0 !important;
|
|
1120
1117
|
}
|
|
1121
|
-
.
|
|
1118
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:first-child {
|
|
1122
1119
|
border-top-right-radius: 0 !important;
|
|
1123
1120
|
border-bottom-right-radius: 0 !important;
|
|
1124
1121
|
}
|
|
1125
|
-
.
|
|
1122
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:last-child {
|
|
1126
1123
|
border-top-left-radius: 0 !important;
|
|
1127
1124
|
border-bottom-left-radius: 0 !important;
|
|
1128
1125
|
}
|
|
@@ -240,13 +240,12 @@ var f_button_module_default = {
|
|
|
240
240
|
|
|
241
241
|
// src/@styles/componentClasses/f_input.module.scss
|
|
242
242
|
var f_input_module_default = {
|
|
243
|
-
"Wrapper": "
|
|
244
|
-
"Input": "
|
|
245
|
-
"InputCover": "
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"ShowCell": "_ShowCell_gmkyt_1"
|
|
243
|
+
"Wrapper": "_Wrapper_m8cj1_1",
|
|
244
|
+
"Input": "_Input_m8cj1_48",
|
|
245
|
+
"InputCover": "_InputCover_m8cj1_63",
|
|
246
|
+
"DigitCharacterCell": "_DigitCharacterCell_m8cj1_78",
|
|
247
|
+
"Combined": "_Combined_m8cj1_78",
|
|
248
|
+
"ShowCell": "_ShowCell_m8cj1_1"
|
|
250
249
|
};
|
|
251
250
|
|
|
252
251
|
// src/@styles/componentClasses/f_input_chips.module.scss
|
package/dist/@styles/index.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license amotify
|
|
3
|
-
* amotify 0.1.
|
|
3
|
+
* amotify 0.1.44
|
|
4
4
|
* https://mingoo.co.jp/
|
|
5
5
|
|
|
6
6
|
* Copyright (c) mingoo, LLC.
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
|
|
9
|
-
* Latest updated at: 2024/6/
|
|
9
|
+
* Latest updated at: 2024/6/25
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/a_img.module.scss */
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
/* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/f_input.module.scss */
|
|
1026
|
-
.
|
|
1026
|
+
._Wrapper_m8cj1_1 textarea {
|
|
1027
1027
|
display: block;
|
|
1028
1028
|
width: 100%;
|
|
1029
1029
|
min-height: calc(var(--grid-unit) * 4);
|
|
@@ -1033,44 +1033,44 @@
|
|
|
1033
1033
|
box-shadow,
|
|
1034
1034
|
background-color !important;
|
|
1035
1035
|
}
|
|
1036
|
-
.
|
|
1037
|
-
.
|
|
1038
|
-
.
|
|
1036
|
+
._Wrapper_m8cj1_1 input,
|
|
1037
|
+
._Wrapper_m8cj1_1 select,
|
|
1038
|
+
._Wrapper_m8cj1_1 textarea {
|
|
1039
1039
|
display: inline-block;
|
|
1040
1040
|
}
|
|
1041
|
-
.
|
|
1042
|
-
.
|
|
1043
|
-
.
|
|
1041
|
+
._Wrapper_m8cj1_1 input[disabled],
|
|
1042
|
+
._Wrapper_m8cj1_1 select[disabled],
|
|
1043
|
+
._Wrapper_m8cj1_1 textarea[disabled] {
|
|
1044
1044
|
box-shadow: none !important;
|
|
1045
1045
|
background-color: hsl(var(--color-layer3-hsl)) !important;
|
|
1046
1046
|
color: rgb(var(--font-color5-rgb)) !important;
|
|
1047
1047
|
filter: grayscale(50%);
|
|
1048
1048
|
cursor: not-allowed !important;
|
|
1049
1049
|
}
|
|
1050
|
-
.
|
|
1051
|
-
.
|
|
1050
|
+
._Wrapper_m8cj1_1 input,
|
|
1051
|
+
._Wrapper_m8cj1_1 textarea {
|
|
1052
1052
|
cursor: text;
|
|
1053
1053
|
}
|
|
1054
|
-
.
|
|
1055
|
-
.
|
|
1054
|
+
._Wrapper_m8cj1_1 input::placeholder,
|
|
1055
|
+
._Wrapper_m8cj1_1 textarea::placeholder {
|
|
1056
1056
|
font-family: inherit;
|
|
1057
1057
|
color: rgb(var(--font-color4-rgb));
|
|
1058
1058
|
}
|
|
1059
|
-
.
|
|
1059
|
+
._Wrapper_m8cj1_1 input {
|
|
1060
1060
|
min-width: 0;
|
|
1061
1061
|
display: block;
|
|
1062
1062
|
}
|
|
1063
|
-
.
|
|
1064
|
-
.
|
|
1063
|
+
._Wrapper_m8cj1_1 input[type=text],
|
|
1064
|
+
._Wrapper_m8cj1_1 input[type=number] {
|
|
1065
1065
|
width: 100%;
|
|
1066
1066
|
}
|
|
1067
|
-
.
|
|
1068
|
-
.
|
|
1067
|
+
._Wrapper_m8cj1_1 input[type=number]::-webkit-inner-spin-button,
|
|
1068
|
+
._Wrapper_m8cj1_1 input[type=number]::-webkit-outer-spin-button {
|
|
1069
1069
|
-webkit-appearance: none;
|
|
1070
1070
|
}
|
|
1071
|
-
.
|
|
1072
|
-
.
|
|
1073
|
-
.
|
|
1071
|
+
._Wrapper_m8cj1_1 input[type=radio],
|
|
1072
|
+
._Wrapper_m8cj1_1 input[type=checkbox],
|
|
1073
|
+
._Wrapper_m8cj1_1 input[type=file] {
|
|
1074
1074
|
opacity: 0;
|
|
1075
1075
|
width: 0;
|
|
1076
1076
|
height: 0;
|
|
@@ -1078,51 +1078,48 @@
|
|
|
1078
1078
|
position: absolute;
|
|
1079
1079
|
appearance: none;
|
|
1080
1080
|
}
|
|
1081
|
-
.
|
|
1081
|
+
._Wrapper_m8cj1_1 input:-webkit-autofill {
|
|
1082
1082
|
box-shadow: 0 0 0 100rem hsl(var(--color-layer3-hsl)) inset !important;
|
|
1083
1083
|
-webkit-text-fill-color: rgb(var(--font-color3-rgb));
|
|
1084
1084
|
}
|
|
1085
|
-
.
|
|
1085
|
+
._Input_m8cj1_48 {
|
|
1086
1086
|
outline: none !important;
|
|
1087
1087
|
}
|
|
1088
|
-
.
|
|
1089
|
-
.
|
|
1088
|
+
._Input_m8cj1_48:focus,
|
|
1089
|
+
._Input_m8cj1_48:active {
|
|
1090
1090
|
z-index: 1;
|
|
1091
1091
|
background-color: hsl(var(--color-layer1-hsl));
|
|
1092
1092
|
}
|
|
1093
|
-
.
|
|
1093
|
+
._Input_m8cj1_48:focus {
|
|
1094
1094
|
border-color: hsl(var(--color-theme-hsl)) !important;
|
|
1095
1095
|
box-shadow: 0 0 0 transparent inset, 0 0 0 calc(var(--grid-unit) * 1 / 3) hsla(var(--color-theme-hsl), var(--color-theme-opacity-low));
|
|
1096
1096
|
}
|
|
1097
|
-
.
|
|
1097
|
+
._Input_m8cj1_48:active {
|
|
1098
1098
|
box-shadow: 0 0 0 transparent inset, 0 0 0 transparent;
|
|
1099
1099
|
transition: var(--animation-time3);
|
|
1100
1100
|
}
|
|
1101
|
-
.
|
|
1101
|
+
._Input_m8cj1_48._InputCover_m8cj1_63:focus-within {
|
|
1102
1102
|
z-index: 1;
|
|
1103
1103
|
background-color: hsl(var(--color-layer1-hsl));
|
|
1104
1104
|
}
|
|
1105
|
-
.
|
|
1105
|
+
._Input_m8cj1_48._InputCover_m8cj1_63:focus-within {
|
|
1106
1106
|
border-color: hsl(var(--color-theme-hsl)) !important;
|
|
1107
1107
|
box-shadow: 0 0 0 transparent inset, 0 0 0 calc(var(--grid-unit) * 1 / 3) hsla(var(--color-theme-hsl), var(--color-theme-opacity-low));
|
|
1108
1108
|
}
|
|
1109
|
-
@keyframes
|
|
1109
|
+
@keyframes _ShowCell_m8cj1_1 {
|
|
1110
1110
|
100% {
|
|
1111
1111
|
opacity: 1;
|
|
1112
1112
|
transform: scale(1);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
.
|
|
1116
|
-
transform: translateY(-50%);
|
|
1117
|
-
}
|
|
1118
|
-
._DigitCharacterCell_gmkyt_82._Combined_gmkyt_82:not(:first-child):not(:last-child) {
|
|
1115
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:not(:first-child):not(:last-child) {
|
|
1119
1116
|
border-radius: 0 !important;
|
|
1120
1117
|
}
|
|
1121
|
-
.
|
|
1118
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:first-child {
|
|
1122
1119
|
border-top-right-radius: 0 !important;
|
|
1123
1120
|
border-bottom-right-radius: 0 !important;
|
|
1124
1121
|
}
|
|
1125
|
-
.
|
|
1122
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:last-child {
|
|
1126
1123
|
border-top-left-radius: 0 !important;
|
|
1127
1124
|
border-bottom-left-radius: 0 !important;
|
|
1128
1125
|
}
|
package/dist/@styles/index.js
CHANGED
|
@@ -240,13 +240,12 @@ var f_button_module_default = {
|
|
|
240
240
|
|
|
241
241
|
// src/@styles/componentClasses/f_input.module.scss
|
|
242
242
|
var f_input_module_default = {
|
|
243
|
-
"Wrapper": "
|
|
244
|
-
"Input": "
|
|
245
|
-
"InputCover": "
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"ShowCell": "_ShowCell_gmkyt_1"
|
|
243
|
+
"Wrapper": "_Wrapper_m8cj1_1",
|
|
244
|
+
"Input": "_Input_m8cj1_48",
|
|
245
|
+
"InputCover": "_InputCover_m8cj1_63",
|
|
246
|
+
"DigitCharacterCell": "_DigitCharacterCell_m8cj1_78",
|
|
247
|
+
"Combined": "_Combined_m8cj1_78",
|
|
248
|
+
"ShowCell": "_ShowCell_m8cj1_1"
|
|
250
249
|
};
|
|
251
250
|
|
|
252
251
|
// src/@styles/componentClasses/f_input_chips.module.scss
|
package/dist/@styles/init.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license amotify
|
|
3
|
-
* amotify 0.1.
|
|
3
|
+
* amotify 0.1.44
|
|
4
4
|
* https://mingoo.co.jp/
|
|
5
5
|
|
|
6
6
|
* Copyright (c) mingoo, LLC.
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
|
|
9
|
-
* Latest updated at: 2024/6/
|
|
9
|
+
* Latest updated at: 2024/6/25
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* src/@styles/init.scss */
|
package/dist/@styles/style.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license amotify
|
|
3
|
-
* amotify 0.1.
|
|
3
|
+
* amotify 0.1.44
|
|
4
4
|
* https://mingoo.co.jp/
|
|
5
5
|
|
|
6
6
|
* Copyright (c) mingoo, LLC.
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
|
|
9
|
-
* Latest updated at: 2024/6/
|
|
9
|
+
* Latest updated at: 2024/6/25
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* src/@styles/@app.scss */
|
|
@@ -2370,7 +2370,7 @@ amotify-app {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
|
|
2372
2372
|
/* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/f_input.module.scss */
|
|
2373
|
-
.
|
|
2373
|
+
._Wrapper_m8cj1_1 textarea {
|
|
2374
2374
|
display: block;
|
|
2375
2375
|
width: 100%;
|
|
2376
2376
|
min-height: calc(var(--grid-unit) * 4);
|
|
@@ -2380,44 +2380,44 @@ amotify-app {
|
|
|
2380
2380
|
box-shadow,
|
|
2381
2381
|
background-color !important;
|
|
2382
2382
|
}
|
|
2383
|
-
.
|
|
2384
|
-
.
|
|
2385
|
-
.
|
|
2383
|
+
._Wrapper_m8cj1_1 input,
|
|
2384
|
+
._Wrapper_m8cj1_1 select,
|
|
2385
|
+
._Wrapper_m8cj1_1 textarea {
|
|
2386
2386
|
display: inline-block;
|
|
2387
2387
|
}
|
|
2388
|
-
.
|
|
2389
|
-
.
|
|
2390
|
-
.
|
|
2388
|
+
._Wrapper_m8cj1_1 input[disabled],
|
|
2389
|
+
._Wrapper_m8cj1_1 select[disabled],
|
|
2390
|
+
._Wrapper_m8cj1_1 textarea[disabled] {
|
|
2391
2391
|
box-shadow: none !important;
|
|
2392
2392
|
background-color: hsl(var(--color-layer3-hsl)) !important;
|
|
2393
2393
|
color: rgb(var(--font-color5-rgb)) !important;
|
|
2394
2394
|
filter: grayscale(50%);
|
|
2395
2395
|
cursor: not-allowed !important;
|
|
2396
2396
|
}
|
|
2397
|
-
.
|
|
2398
|
-
.
|
|
2397
|
+
._Wrapper_m8cj1_1 input,
|
|
2398
|
+
._Wrapper_m8cj1_1 textarea {
|
|
2399
2399
|
cursor: text;
|
|
2400
2400
|
}
|
|
2401
|
-
.
|
|
2402
|
-
.
|
|
2401
|
+
._Wrapper_m8cj1_1 input::placeholder,
|
|
2402
|
+
._Wrapper_m8cj1_1 textarea::placeholder {
|
|
2403
2403
|
font-family: inherit;
|
|
2404
2404
|
color: rgb(var(--font-color4-rgb));
|
|
2405
2405
|
}
|
|
2406
|
-
.
|
|
2406
|
+
._Wrapper_m8cj1_1 input {
|
|
2407
2407
|
min-width: 0;
|
|
2408
2408
|
display: block;
|
|
2409
2409
|
}
|
|
2410
|
-
.
|
|
2411
|
-
.
|
|
2410
|
+
._Wrapper_m8cj1_1 input[type=text],
|
|
2411
|
+
._Wrapper_m8cj1_1 input[type=number] {
|
|
2412
2412
|
width: 100%;
|
|
2413
2413
|
}
|
|
2414
|
-
.
|
|
2415
|
-
.
|
|
2414
|
+
._Wrapper_m8cj1_1 input[type=number]::-webkit-inner-spin-button,
|
|
2415
|
+
._Wrapper_m8cj1_1 input[type=number]::-webkit-outer-spin-button {
|
|
2416
2416
|
-webkit-appearance: none;
|
|
2417
2417
|
}
|
|
2418
|
-
.
|
|
2419
|
-
.
|
|
2420
|
-
.
|
|
2418
|
+
._Wrapper_m8cj1_1 input[type=radio],
|
|
2419
|
+
._Wrapper_m8cj1_1 input[type=checkbox],
|
|
2420
|
+
._Wrapper_m8cj1_1 input[type=file] {
|
|
2421
2421
|
opacity: 0;
|
|
2422
2422
|
width: 0;
|
|
2423
2423
|
height: 0;
|
|
@@ -2425,51 +2425,48 @@ amotify-app {
|
|
|
2425
2425
|
position: absolute;
|
|
2426
2426
|
appearance: none;
|
|
2427
2427
|
}
|
|
2428
|
-
.
|
|
2428
|
+
._Wrapper_m8cj1_1 input:-webkit-autofill {
|
|
2429
2429
|
box-shadow: 0 0 0 100rem hsl(var(--color-layer3-hsl)) inset !important;
|
|
2430
2430
|
-webkit-text-fill-color: rgb(var(--font-color3-rgb));
|
|
2431
2431
|
}
|
|
2432
|
-
.
|
|
2432
|
+
._Input_m8cj1_48 {
|
|
2433
2433
|
outline: none !important;
|
|
2434
2434
|
}
|
|
2435
|
-
.
|
|
2436
|
-
.
|
|
2435
|
+
._Input_m8cj1_48:focus,
|
|
2436
|
+
._Input_m8cj1_48:active {
|
|
2437
2437
|
z-index: 1;
|
|
2438
2438
|
background-color: hsl(var(--color-layer1-hsl));
|
|
2439
2439
|
}
|
|
2440
|
-
.
|
|
2440
|
+
._Input_m8cj1_48:focus {
|
|
2441
2441
|
border-color: hsl(var(--color-theme-hsl)) !important;
|
|
2442
2442
|
box-shadow: 0 0 0 transparent inset, 0 0 0 calc(var(--grid-unit) * 1 / 3) hsla(var(--color-theme-hsl), var(--color-theme-opacity-low));
|
|
2443
2443
|
}
|
|
2444
|
-
.
|
|
2444
|
+
._Input_m8cj1_48:active {
|
|
2445
2445
|
box-shadow: 0 0 0 transparent inset, 0 0 0 transparent;
|
|
2446
2446
|
transition: var(--animation-time3);
|
|
2447
2447
|
}
|
|
2448
|
-
.
|
|
2448
|
+
._Input_m8cj1_48._InputCover_m8cj1_63:focus-within {
|
|
2449
2449
|
z-index: 1;
|
|
2450
2450
|
background-color: hsl(var(--color-layer1-hsl));
|
|
2451
2451
|
}
|
|
2452
|
-
.
|
|
2452
|
+
._Input_m8cj1_48._InputCover_m8cj1_63:focus-within {
|
|
2453
2453
|
border-color: hsl(var(--color-theme-hsl)) !important;
|
|
2454
2454
|
box-shadow: 0 0 0 transparent inset, 0 0 0 calc(var(--grid-unit) * 1 / 3) hsla(var(--color-theme-hsl), var(--color-theme-opacity-low));
|
|
2455
2455
|
}
|
|
2456
|
-
@keyframes
|
|
2456
|
+
@keyframes _ShowCell_m8cj1_1 {
|
|
2457
2457
|
100% {
|
|
2458
2458
|
opacity: 1;
|
|
2459
2459
|
transform: scale(1);
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
|
-
.
|
|
2463
|
-
transform: translateY(-50%);
|
|
2464
|
-
}
|
|
2465
|
-
._DigitCharacterCell_gmkyt_82._Combined_gmkyt_82:not(:first-child):not(:last-child) {
|
|
2462
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:not(:first-child):not(:last-child) {
|
|
2466
2463
|
border-radius: 0 !important;
|
|
2467
2464
|
}
|
|
2468
|
-
.
|
|
2465
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:first-child {
|
|
2469
2466
|
border-top-right-radius: 0 !important;
|
|
2470
2467
|
border-bottom-right-radius: 0 !important;
|
|
2471
2468
|
}
|
|
2472
|
-
.
|
|
2469
|
+
._DigitCharacterCell_m8cj1_78._Combined_m8cj1_78:last-child {
|
|
2473
2470
|
border-top-left-radius: 0 !important;
|
|
2474
2471
|
border-bottom-left-radius: 0 !important;
|
|
2475
2472
|
}
|
package/dist/@styles/style.js
CHANGED
|
@@ -240,13 +240,12 @@ var f_button_module_default = {
|
|
|
240
240
|
|
|
241
241
|
// src/@styles/componentClasses/f_input.module.scss
|
|
242
242
|
var f_input_module_default = {
|
|
243
|
-
"Wrapper": "
|
|
244
|
-
"Input": "
|
|
245
|
-
"InputCover": "
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"ShowCell": "_ShowCell_gmkyt_1"
|
|
243
|
+
"Wrapper": "_Wrapper_m8cj1_1",
|
|
244
|
+
"Input": "_Input_m8cj1_48",
|
|
245
|
+
"InputCover": "_InputCover_m8cj1_63",
|
|
246
|
+
"DigitCharacterCell": "_DigitCharacterCell_m8cj1_78",
|
|
247
|
+
"Combined": "_Combined_m8cj1_78",
|
|
248
|
+
"ShowCell": "_ShowCell_m8cj1_1"
|
|
250
249
|
};
|
|
251
250
|
|
|
252
251
|
// src/@styles/componentClasses/f_input_chips.module.scss
|
package/dist/@styles/var.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license amotify
|
|
3
|
-
* amotify 0.1.
|
|
3
|
+
* amotify 0.1.44
|
|
4
4
|
* https://mingoo.co.jp/
|
|
5
5
|
|
|
6
6
|
* Copyright (c) mingoo, LLC.
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
|
|
9
|
-
* Latest updated at: 2024/6/
|
|
9
|
+
* Latest updated at: 2024/6/25
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* src/@styles/var.scss */
|
package/dist/fn/Cropper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as X,c as O,e as P}from"../chunk-VY3566IV.js";import{Fragment as $,jsx as h,jsxs as y}from"react/jsx-runtime";import{$$ as b,$$fromRoot as j,useStore as M}from"../@utils/_";import{useState as z,useEffect as H}from"react";import V from"../atoms/Flex";import D from"../atoms/Box";import B from"../atoms/FAI";import T from"../mols/Column";import q from"../mols/Row";import Y from"./Button";import A from"./Sheet";import k from"./Loader/_";import W from"./Input/_";import{faPalette as K}from"@fortawesome/free-solid-svg-icons/faPalette";import{faBarsStaggered as Z}from"@fortawesome/free-solid-svg-icons/faBarsStaggered";import{faRotateLeft as J}from"@fortawesome/free-solid-svg-icons/faRotateLeft";import{faRotateRight as Q}from"@fortawesome/free-solid-svg-icons/faRotateRight";import{CropperClasses as U}from"../@styles/componentClasses/_";class ee{constructor(i){this.set_scale=i.set_scale,this.val_file=i.val_file,this.develops=i.develops,this.use=i.use,this.componentID=i.componentID,this.scale={current:i.scale.default,default:i.scale.default,min:i.scale.min,max:i.scale.max};let e=i.canvas,{width:l,height:t}=e,a=i.picture.image,{width:m,height:s}=a,c=m/s;this.Canvas={elm:e,ctx:e.getContext("2d")};let o=0,r=0;this.use=="square"?(o=e.width/3*2,r=e.height/3*2):this.use=="wallpaper.horizontal"?(o=e.width*(7/9),r=o/3):this.use=="wallpaper.vertical"&&(r=e.height*(7/9),o=r/2);let n=(e.width-o)/2,d=(e.height-r)/2,g=o/r;this.Picture={elm:a,originDataUrl:a.src,aspect:c,revisedAspect:g>c?o/m:r/s,rotate:i.picture.rotate,grayScale:i.picture.grayScale,tone:i.picture.tone},this.pst={frame:{x:n,y:d,w:o,h:r,aspect:g},outImage:{x:0,y:0,w:0,h:0},imageX:m/2,imageY:s/2,centerX:l/2,centerY:t/2},this.dragEffectInfo={origin:{x:0,y:0},frameExpandRate:{x:0,y:0}},this.pinchEffectInfo={origin:{x:0,y:0,scale:this.scale.current}},this.modifyImage()}dragEffect(i){let{eventType:e,x:l,y:t}=i;if(e=="start"){let a=this.Canvas.elm.position();this.dragEffectInfo={origin:{x:l,y:t},frameExpandRate:{x:this.Canvas.elm.width/a.width,y:this.Canvas.elm.height/a.height}}}else{let{origin:a,frameExpandRate:m}=this.dragEffectInfo,s=a.x-l,c=a.y-t,o=this.scale.current*this.Picture.revisedAspect/100,r=s/o*m.x,n=c/o*m.y;e=="move"?this.drawImage(this.pst.imageX+r,this.pst.imageY+n):e=="end"&&this.drawImage(this.pst.imageX+=r,this.pst.imageY+=n)}}pinchEffect(i){let{eventType:e,event:l}=i,{x:t,y:a}=b.getCursor(l.touches[0]),{x:m,y:s}=b.getCursor(l.touches[1]),c=m-t,o=s-a;if(e=="start")this.pinchEffectInfo.origin={x:c,y:o,scale:this.scale.current};else if(e=="move"){let{origin:r}=this.pinchEffectInfo,n=Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2)),g=Math.sqrt(Math.pow(c,2)+Math.pow(o,2))/n,C=Number(r.scale*g);this.set_scale(C)}}updateScale(i){let e=i;e=Math.max(e,this.scale.min),e=Math.min(e,this.scale.max),this.scale.current=e,this.drawImage()}updateFilter(i){this.Picture.grayScale=i.grayScale,this.Picture.tone=i.tone,this.Picture.rotate=i.rotate,this.modifyImage()}modifyImage(){return P(this,null,function*(){let{grayScale:i,tone:e,rotate:l}=this.Picture;const t=document.createElement("canvas");let a=t.getContext("2d"),m=new Image;m.src=this.Picture.originDataUrl;let s=m.width,c=m.height;(l==90||l==270)&&(s=m.height,c=m.width),t.width=s,t.height=c,i&&(a.filter="grayscale("+i+"%)"),l&&(a.translate(s/2,c/2),a.rotate(l*Math.PI/180),[90,270].includes(l)?a.translate(-c/2,-s/2):a.translate(-s/2,-c/2)),a.drawImage(m,0,0,m.width,m.height);let o=a.getImageData(0,0,t.width,t.height),r=o.data;{i/=100;let C=[[255,255,255],[255,200,100],[170,170,255],[240,200,145],[128,255,255],[255,128,255],[255,255,128],[128,158,169],[128,112,162],[50,192,87],[246,100,140]][e],x=C[0]/255,S=C[1]/255,p=C[2]/255;for(let u=0;u<c;u++)for(let v=0;v<s;v++){var n=(u*s+v)*4;if(i){let w=.3*r[n]+.59*r[n+1]+.11*r[n+2];for(var d=0;d<3;d++){let E=r[n+d];r[n+d]=E+(w-E)*i}}r[n]*=x,r[n+1]*=S,r[n+2]*=p}}a.putImageData(o,0,0);let g=t.toDataURL("image/jpeg");{let C=yield b.ImageLoader(g),{width:x,height:S}=C,p=x/S;this.Picture=O(X({},this.Picture),{elm:C,aspect:p,revisedAspect:this.pst.frame.aspect>p?this.pst.frame.w/x:this.pst.frame.h/S})}this.drawImage()})}drawImage(i,e){let{use:l,Canvas:{ctx:t},pst:{frame:a}}=this,m=i||this.pst.imageX,s=e||this.pst.imageY;{let c=this.scale.current/100,o=this.Picture.revisedAspect*c,r=this.pst.centerX-m*o,n=this.pst.centerY-s*o,d=this.Picture.elm.width*o,g=this.Picture.elm.height*o;{let C=this.pst.frame.x+this.pst.frame.w-d,x=this.pst.frame.x,S=this.pst.frame.y+this.pst.frame.h-g,p=this.pst.frame.y,u=0;r<C&&(u=r-C),r>x&&(u=r-x);let v=0;n<S&&(v=n-S),n>p&&(v=n-p),this.dragEffectInfo.origin.x+=u/2/this.dragEffectInfo.frameExpandRate.x,this.dragEffectInfo.origin.y+=v/2/this.dragEffectInfo.frameExpandRate.y,r=Math.min(Math.max(r,C),x),n=Math.min(Math.max(n,S),p)}this.pst.outImage={x:r,y:n,w:d,h:g},t.clearRect(0,0,this.Canvas.elm.width,this.Canvas.elm.height),t.drawImage(this.Picture.elm,0,0,this.Picture.elm.width,this.Picture.elm.height,r,n,d,g)}{l=="square"?(t.fillStyle="rgba( 20,24,20,.3 )",t.beginPath(),t.arc(this.Canvas.elm.width/2,this.Canvas.elm.height/2,this.Canvas.elm.width,0,Math.PI*2,!0),t.arc(this.Canvas.elm.width/2,this.Canvas.elm.height/2,this.Canvas.elm.width/3*2/2,0,Math.PI*2,!1),t.closePath(),t.fill()):(l=="wallpaper.horizontal"||l=="wallpaper.vertical")&&(t.fillStyle="rgba( 20,24,20,.3 )"),t.beginPath(),t.moveTo(0,0),t.lineTo(this.Canvas.elm.width,0),t.lineTo(this.Canvas.elm.width,this.Canvas.elm.height),t.lineTo(0,this.Canvas.elm.height),t.lineTo(0,0),t.closePath(),t.lineTo(a.x,a.y),t.lineTo(a.x,a.y+a.h),t.lineTo(a.x+a.w,a.y+a.h),t.lineTo(a.x+a.w,a.y),t.lineTo(a.x,a.y),t.fill();let o=b(document.body).getStyleProperty("--color-theme-hsl");t.lineWidth=this.Canvas.elm.width/200,t.strokeStyle=`hsla( ${o},1 )`,t.strokeRect(a.x,a.y,a.w,a.h)}}export(){return P(this,null,function*(){let{develops:i,Picture:e,pst:{outImage:l,frame:t}}=this,a=l.w/e.elm.width,m=l.h/e.elm.height,s=(t.x-l.x)/a,c=(t.x-l.x+t.w)/a,o=(t.y-l.y)/m,r=(t.y-l.y+t.h)/m,n=Array.from({length:i.length}),d="image/jpeg";for(let g=0;g<i.length;g++){let{size:C,maxSize:x}=i[g];x=x||{S:1024*20,R:1024*100,L:1024*350}[C];let S={S:144,R:576,L:1152}[C],p=S;this.use=="wallpaper.horizontal"?p=S/3*2:this.use=="wallpaper.vertical"&&(p=S*2);let u=document.createElement("canvas");u.width=S,u.height=p;let v=u.getContext("2d");if(!v)return;v.clearRect(0,0,S,p),v.drawImage(this.Picture.elm,s,o,c-s,r-o,0,0,S,p);let w=u.toDataURL(d),E=yield w.toBlob(d);if(!E)return;if(E.size>=x){let F=x/E.size;if(w=u.toDataURL(d,F*.92),E=yield w.toBlob(d),!E)return}let L=new File([E],this.val_file.name,{type:d});n[g]=L}return n})}}const G={Core:f=>{let{val_file:i,options:e,finishedCallback:l,abortCallback:t}=f,{use:a,develops:m=[]}=e,[s]=z(b.uuid.gen(32));const c={scale:{default:125,min:100,max:300},rotate:0,grayScale:0,tone:0};let[o,r]=z(c.scale.default),[n,d]=z(c.rotate),[g,C]=z(c.grayScale),[x,S]=z(c.tone);return H(()=>{M.set({key:s,value:{}}),P(void 0,null,function*(){k.fn.corner.active();let{target:p}=yield i.read();if(!p)return;let u=p.result,v=j("#Canvas-"+s)[0];if(!v)return;let w=new ee({set_scale:r,val_file:i,develops:m,use:a,scale:c.scale,componentID:s,canvas:v,picture:{image:yield b.ImageLoader(u),grayScale:c.grayScale,tone:c.tone,rotate:c.rotate}});M.set({key:s,value:{Instance:w}});const E=function(I){if(I.preventDefault(),I.touches&&I.touches.length>1)w.pinchEffect({eventType:"start",event:I}),b(document).addEvent({eventType:"touchmove",eventID:"CropperEffectMove",options:{passive:!1},callback:R=>{R.preventDefault(),w.pinchEffect({eventType:"move",event:R})}}).addEvent({eventType:"touchend",eventID:"CropperEffectEnd",options:{passive:!1},callback:F});else{w.dragEffect(X({eventType:"start"},b.getCursor(I)));let{type:R}=I;b(document).addEvent({eventType:R=="touchstart"?"touchmove":"mousemove",eventID:"CropperEffectMove",options:{passive:!1},callback:_=>{L("move",_)}}).addEvent({eventType:R=="touchstart"?"touchend":"mouseup",eventID:"CropperEffectEnd",options:{passive:!1},callback:_=>{L("end",_),F(_)}})}},L=function(I,R){R.preventDefault(),w.dragEffect(X({eventType:I},b.getCursor(R)))},F=function(I){I.preventDefault(),b(document).removeEvent(["CropperEffectMove","CropperEffectEnd"])};b(v).removeEvent(["CropperMouseWheel","CropperTouchStart","CropperMouseDown"]).addEvent({eventID:"CropperMouseWheel",eventType:"wheel",callback:I=>{I.preventDefault();let R=Number(I.wheelDelta*.04),_=w.scale.current+R;_=Math.max(_,w.scale.min),_=Math.min(_,w.scale.max),r(_)},options:{passive:!1}}).addEvent({eventType:"touchstart",eventID:"CropperTouchStart",callback:E,options:{passive:!1}}).addEvent({eventType:"mousedown",eventID:"CropperMouseDown",callback:E,options:{passive:!1}}),setTimeout(()=>{k.fn.corner.stop()},1e3)})},[i.id]),H(()=>{var u;let p=(u=M.get(s))==null?void 0:u.Instance;p&&p.updateScale(o)},[o]),H(()=>{var u;let p=(u=M.get(s))==null?void 0:u.Instance;p&&p.updateFilter({grayScale:g,tone:x,rotate:n})},[g,x,n]),h(A.Comps.Body,{children:y(V,{className:[U("Wrap"),U("Use_"+a)].join(" "),flexWrap:!1,position:"relative",overflow:"hidden",borderRadius:"inherit",boxShadow:"3.remark",UnderBreakPointStyles:{flexType:"col"},children:[h(D,{flexGrid:3,UnderBreakPointStyles:{width:1,padding:2},children:h(D,{overflow:"hidden",position:"relative",backgroundColor:"layer.4",freeCSS:{zIndex:1},UnderBreakPointStyles:{borderRadius:"1.tone.primary"},children:h("canvas",{width:"2400",height:a=="wallpaper.horizontal"?"1800":a=="wallpaper.vertical"?"3200":"2400",className:U("Canvas"),id:"Canvas-"+s})})}),y(T,{gap:0,flexGrid:2,boxShadow:"3.remark",UnderBreakPointStyles:{width:1,maxWidth:"unset"},freeCSS:{maxWidth:12*28},children:[y(T,{gap:1,flexSizing:0,overflow:"auto",padding:1.5,UnderBreakPointStyles:{flexSizing:"none"},children:[h(D,{flexSizing:"none",fontSize:"4.thirdTitle",isSemiBoldFont:!0,children:"\u30D5\u30A3\u30EB\u30BF\u30FC"}),h(G.SettingRegion,{DefaultOptions:c,val_scale:o,set_scale:r,val_tone:x,set_tone:S,val_grayScale:g,set_grayScale:C,val_rotate:n,set_rotate:d})]}),y(V,{padding:1.5,flexSizing:"none",gap:1,borderTop:!0,children:[h(Y.Button.Border.R,{onClick:()=>{t()},children:"\u30AD\u30E3\u30F3\u30BB\u30EB"}),h(Y.Button.Prime.R,{flexSizing:0,onClick:()=>P(void 0,null,function*(){var v;let p=(v=M.get(s))==null?void 0:v.Instance;if(!p)return;k.fn.mini.active("CropperExportation");let u=yield p.export();setTimeout(()=>{k.fn.mini.stop("CropperExportation"),l(u)},3e3)}),children:y(q.Center,{gap:"1/2",children:[h(k.White.R,{loaderID:"CropperExportation"}),"\u6C7A\u5B9A"]})})]})]})]})})},SettingRegion:f=>{let i=[];for(let e=1;e<=10;e++)i.push({value:e,label:y($,{children:[h(D,{className:[U("ToneBall"),U("ToneBall_"+e)].join(" ")}),h(D,{textAlign:"center",flexSizing:"auto",children:["","\u6696\u8272","\u5BD2\u8272","\u30BB\u30D4\u30A2","\u30B7\u30A2\u30F3","\u30DE\u30BC\u30F3\u30BF","\u30A4\u30A8\u30ED\u30FC","\u30AA\u30EA\u30B8\u30CA\u30EB1","\u30AA\u30EA\u30B8\u30CA\u30EB2","\u30AA\u30EA\u30B8\u30CA\u30EB3","\u30AA\u30EA\u30B8\u30CA\u30EB4"][e]})]})});return y($,{children:[y(T,{gap:"1/3",children:[y(D,{children:[h(B.Rotate,{fontSize:"3.paragraph",fontColor:"4.thin"})," Rotate"]}),y(q.Separate,{flexChilds:"even",paddingLeft:2,children:[y(Y.Button.Border.S,{onClick:()=>{let e=f.val_rotate-90;e<0&&(e+=360),f.set_rotate(e)},children:[h(B,{icon:J})," \u5DE6\u306B\u56DE\u8EE2"]}),y(Y.Button.Border.S,{onClick:()=>{f.set_rotate((f.val_rotate+90)%360)},children:["\u53F3\u306B\u56DE\u8EE2 ",h(B,{icon:Q})]})]})]}),y(T,{gap:"1/3",children:[y(D,{children:[h(B.Search,{fontSize:"3.paragraph",fontColor:"4.thin"})," Zoom"]}),h(D,{paddingLeft:2,children:h(W.Slider,{override:"force",value:f.val_scale-100,min:f.DefaultOptions.scale.min-100,max:f.DefaultOptions.scale.max-100,step:25,onUpdateValidValue:({eventType:e,value:l})=>{b.interval.clear("Cropper.UpdateScale"),b.interval.standBy("Cropper.UpdateScale",400,()=>{f.set_scale(l+100)})},legends:{enable:!0,custom:e=>"x"+Math.round(100+e)/100}})})]}),y(T,{gap:"1/3",children:[y(D,{children:[h(B,{icon:K,fontSize:"3.paragraph",fontColor:"4.thin"})," Gray Scale"]}),h(D,{paddingLeft:2,children:h(W.Slider,{value:f.val_grayScale,min:0,max:100,step:10,onUpdateValidValue:({value:e})=>{b.interval.clear("Cropper.GrayScale"),b.interval.standBy("Cropper.GrayScale",400,()=>{f.set_grayScale(e)})},legends:{enable:!0,custom:e=>e+"%"}})})]}),y(T,{gap:"1/3",children:[y(D,{children:[h(B,{icon:Z,fontSize:"3.paragraph",fontColor:"4.thin"})," Tone"]}),h(D,{paddingLeft:2,children:h(W.Radio,{value:f.val_tone,gap:"1/2",cellStyles:{isRounded:!0,borderWidth:2,borderColor:"1.thin",padding:"1/2",paddingRight:1,fontSize:"1.mini",gap:"1/3",flexSizing:"auto"},options:[{value:0,label:"\u306A\u3057",padding:["1/2",1],flexCenter:!0},...i],onUpdateValidValue:({value:e})=>{f.set_tone(e[0])}})})]})]})}},N={open:f=>P(void 0,null,function*(){let i=yield W.Filer.fn.openDialog({accept:"image",multiple:!1}),e="CropperImage";A.open({sheetID:e,type:"normal.middleCenter",size:"3L",freeCSS:{width:f.use=="wallpaper.horizontal"?12*100:12*80},content:h(G.Core,{val_file:i[0],options:f,finishedCallback:l=>{A.close(e),f.onProcessFinished(l)},abortCallback:()=>{A.close(e)}}),close_option:{escapeKeyDown:!1}})})};export{N as Cropper,N as default};
|
|
1
|
+
import{b as X,c as O,e as P}from"../chunk-VY3566IV.js";import{Fragment as $,jsx as m,jsxs as y}from"react/jsx-runtime";import{$$ as b,$$fromRoot as j,useStore as M}from"../@utils/_";import{useState as z,useEffect as H}from"react";import V from"../atoms/Flex";import D from"../atoms/Box";import B from"../atoms/FAI";import T from"../mols/Column";import q from"../mols/Row";import Y from"./Button";import A from"./Sheet";import k from"./Loader/_";import W from"./Input/_";import{faPalette as K}from"@fortawesome/free-solid-svg-icons/faPalette";import{faBarsStaggered as Z}from"@fortawesome/free-solid-svg-icons/faBarsStaggered";import{faRotateLeft as J}from"@fortawesome/free-solid-svg-icons/faRotateLeft";import{faRotateRight as Q}from"@fortawesome/free-solid-svg-icons/faRotateRight";import{CropperClasses as L}from"../@styles/componentClasses/_";class ee{constructor(i){this.set_scale=i.set_scale,this.val_file=i.val_file,this.develops=i.develops,this.use=i.use,this.componentID=i.componentID,this.scale={current:i.scale.default,default:i.scale.default,min:i.scale.min,max:i.scale.max};let e=i.canvas,{width:l,height:t}=e,a=i.picture.image,{width:h,height:s}=a,c=h/s;this.Canvas={elm:e,ctx:e.getContext("2d")};let o=0,r=0;this.use=="square"?(o=e.width/3*2,r=e.height/3*2):this.use=="wallpaper.horizontal"?(o=e.width*(7/9),r=o/3):this.use=="wallpaper.vertical"&&(r=e.height*(7/9),o=r/2);let n=(e.width-o)/2,d=(e.height-r)/2,g=o/r;this.Picture={elm:a,originDataUrl:a.src,aspect:c,revisedAspect:g>c?o/h:r/s,rotate:i.picture.rotate,grayScale:i.picture.grayScale,tone:i.picture.tone},this.pst={frame:{x:n,y:d,w:o,h:r,aspect:g},outImage:{x:0,y:0,w:0,h:0},imageX:h/2,imageY:s/2,centerX:l/2,centerY:t/2},this.dragEffectInfo={origin:{x:0,y:0},frameExpandRate:{x:0,y:0}},this.pinchEffectInfo={origin:{x:0,y:0,scale:this.scale.current}},this.modifyImage()}dragEffect(i){let{eventType:e,x:l,y:t}=i;if(e=="start"){let a=this.Canvas.elm.position();this.dragEffectInfo={origin:{x:l,y:t},frameExpandRate:{x:this.Canvas.elm.width/a.width,y:this.Canvas.elm.height/a.height}}}else{let{origin:a,frameExpandRate:h}=this.dragEffectInfo,s=a.x-l,c=a.y-t,o=this.scale.current*this.Picture.revisedAspect/100,r=s/o*h.x,n=c/o*h.y;e=="move"?this.drawImage(this.pst.imageX+r,this.pst.imageY+n):e=="end"&&this.drawImage(this.pst.imageX+=r,this.pst.imageY+=n)}}pinchEffect(i){let{eventType:e,event:l}=i,{x:t,y:a}=b.getCursor(l.touches[0]),{x:h,y:s}=b.getCursor(l.touches[1]),c=h-t,o=s-a;if(e=="start")this.pinchEffectInfo.origin={x:c,y:o,scale:this.scale.current};else if(e=="move"){let{origin:r}=this.pinchEffectInfo,n=Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2)),g=Math.sqrt(Math.pow(c,2)+Math.pow(o,2))/n,C=Number(r.scale*g);this.set_scale(C)}}updateScale(i){let e=i;e=Math.max(e,this.scale.min),e=Math.min(e,this.scale.max),this.scale.current=e,this.drawImage()}updateFilter(i){this.Picture.grayScale=i.grayScale,this.Picture.tone=i.tone,this.Picture.rotate=i.rotate,this.modifyImage()}modifyImage(){return P(this,null,function*(){let{grayScale:i,tone:e,rotate:l}=this.Picture;const t=document.createElement("canvas");let a=t.getContext("2d"),h=yield b.ImageLoader(this.Picture.originDataUrl),s=h.width,c=h.height;(l==90||l==270)&&(s=h.height,c=h.width),t.width=s,t.height=c,i&&(a.filter="grayscale("+i+"%)"),l&&(a.translate(s/2,c/2),a.rotate(l*Math.PI/180),[90,270].includes(l)?a.translate(-c/2,-s/2):a.translate(-s/2,-c/2)),a.drawImage(h,0,0,h.width,h.height);let o=a.getImageData(0,0,t.width,t.height),r=o.data;{i/=100;let C=[[255,255,255],[255,200,100],[170,170,255],[240,200,145],[128,255,255],[255,128,255],[255,255,128],[128,158,169],[128,112,162],[50,192,87],[246,100,140]][e],x=C[0]/255,S=C[1]/255,p=C[2]/255;for(let u=0;u<c;u++)for(let v=0;v<s;v++){var n=(u*s+v)*4;if(i){let w=.3*r[n]+.59*r[n+1]+.11*r[n+2];for(var d=0;d<3;d++){let E=r[n+d];r[n+d]=E+(w-E)*i}}r[n]*=x,r[n+1]*=S,r[n+2]*=p}}a.putImageData(o,0,0);let g=t.toDataURL("image/jpeg");{let C=yield b.ImageLoader(g),{width:x,height:S}=C,p=x/S;this.Picture=O(X({},this.Picture),{elm:C,aspect:p,revisedAspect:this.pst.frame.aspect>p?this.pst.frame.w/x:this.pst.frame.h/S})}this.drawImage()})}drawImage(i,e){let{use:l,Canvas:{ctx:t},pst:{frame:a}}=this,h=i||this.pst.imageX,s=e||this.pst.imageY;{let c=this.scale.current/100,o=this.Picture.revisedAspect*c,r=this.pst.centerX-h*o,n=this.pst.centerY-s*o,d=this.Picture.elm.width*o,g=this.Picture.elm.height*o;{let C=this.pst.frame.x+this.pst.frame.w-d,x=this.pst.frame.x,S=this.pst.frame.y+this.pst.frame.h-g,p=this.pst.frame.y,u=0;r<C&&(u=r-C),r>x&&(u=r-x);let v=0;n<S&&(v=n-S),n>p&&(v=n-p),this.dragEffectInfo.origin.x+=u/2/this.dragEffectInfo.frameExpandRate.x,this.dragEffectInfo.origin.y+=v/2/this.dragEffectInfo.frameExpandRate.y,r=Math.min(Math.max(r,C),x),n=Math.min(Math.max(n,S),p)}this.pst.outImage={x:r,y:n,w:d,h:g},t.clearRect(0,0,this.Canvas.elm.width,this.Canvas.elm.height),t.drawImage(this.Picture.elm,0,0,this.Picture.elm.width,this.Picture.elm.height,r,n,d,g)}{l=="square"?(t.fillStyle="rgba( 20,24,20,.3 )",t.beginPath(),t.arc(this.Canvas.elm.width/2,this.Canvas.elm.height/2,this.Canvas.elm.width,0,Math.PI*2,!0),t.arc(this.Canvas.elm.width/2,this.Canvas.elm.height/2,this.Canvas.elm.width/3*2/2,0,Math.PI*2,!1),t.closePath(),t.fill()):(l=="wallpaper.horizontal"||l=="wallpaper.vertical")&&(t.fillStyle="rgba( 20,24,20,.3 )"),t.beginPath(),t.moveTo(0,0),t.lineTo(this.Canvas.elm.width,0),t.lineTo(this.Canvas.elm.width,this.Canvas.elm.height),t.lineTo(0,this.Canvas.elm.height),t.lineTo(0,0),t.closePath(),t.lineTo(a.x,a.y),t.lineTo(a.x,a.y+a.h),t.lineTo(a.x+a.w,a.y+a.h),t.lineTo(a.x+a.w,a.y),t.lineTo(a.x,a.y),t.fill();let o=b(document.body).getStyleProperty("--color-theme-hsl");t.lineWidth=this.Canvas.elm.width/200,t.strokeStyle=`hsla( ${o},1 )`,t.strokeRect(a.x,a.y,a.w,a.h)}}export(){return P(this,null,function*(){let{develops:i,Picture:e,pst:{outImage:l,frame:t}}=this,a=l.w/e.elm.width,h=l.h/e.elm.height,s=(t.x-l.x)/a,c=(t.x-l.x+t.w)/a,o=(t.y-l.y)/h,r=(t.y-l.y+t.h)/h,n=Array.from({length:i.length}),d="image/jpeg";for(let g=0;g<i.length;g++){let{size:C,maxSize:x}=i[g];x=x||{S:1024*20,R:1024*100,L:1024*350}[C];let S={S:144,R:576,L:1152}[C],p=S;this.use=="wallpaper.horizontal"?p=S/3*2:this.use=="wallpaper.vertical"&&(p=S*2);let u=document.createElement("canvas");u.width=S,u.height=p;let v=u.getContext("2d");if(!v)return;v.clearRect(0,0,S,p),v.drawImage(this.Picture.elm,s,o,c-s,r-o,0,0,S,p);let w=u.toDataURL(d),E=yield w.toBlob(d);if(!E)return;if(E.size>=x){let F=x/E.size;if(w=u.toDataURL(d,F*.92),E=yield w.toBlob(d),!E)return}let U=new File([E],this.val_file.name,{type:d});n[g]=U}return n})}}const G={Core:f=>{let{val_file:i,options:e,finishedCallback:l,abortCallback:t}=f,{use:a,develops:h=[]}=e,[s]=z(b.uuid.gen(32));const c={scale:{default:125,min:100,max:300},rotate:0,grayScale:0,tone:0};let[o,r]=z(c.scale.default),[n,d]=z(c.rotate),[g,C]=z(c.grayScale),[x,S]=z(c.tone);return H(()=>{M.set({key:s,value:{}}),P(void 0,null,function*(){k.fn.corner.active();let{target:p}=yield i.read();if(!p)return;let u=p.result,v=j("#Canvas-"+s)[0];if(!v)return;let w=new ee({set_scale:r,val_file:i,develops:h,use:a,scale:c.scale,componentID:s,canvas:v,picture:{image:yield b.ImageLoader(u),grayScale:c.grayScale,tone:c.tone,rotate:c.rotate}});M.set({key:s,value:{Instance:w}});const E=function(I){if(I.preventDefault(),I.touches&&I.touches.length>1)w.pinchEffect({eventType:"start",event:I}),b(document).addEvent({eventType:"touchmove",eventID:"CropperEffectMove",options:{passive:!1},callback:R=>{R.preventDefault(),w.pinchEffect({eventType:"move",event:R})}}).addEvent({eventType:"touchend",eventID:"CropperEffectEnd",options:{passive:!1},callback:F});else{w.dragEffect(X({eventType:"start"},b.getCursor(I)));let{type:R}=I;b(document).addEvent({eventType:R=="touchstart"?"touchmove":"mousemove",eventID:"CropperEffectMove",options:{passive:!1},callback:_=>{U("move",_)}}).addEvent({eventType:R=="touchstart"?"touchend":"mouseup",eventID:"CropperEffectEnd",options:{passive:!1},callback:_=>{U("end",_),F(_)}})}},U=function(I,R){R.preventDefault(),w.dragEffect(X({eventType:I},b.getCursor(R)))},F=function(I){I.preventDefault(),b(document).removeEvent(["CropperEffectMove","CropperEffectEnd"])};b(v).removeEvent(["CropperMouseWheel","CropperTouchStart","CropperMouseDown"]).addEvent({eventID:"CropperMouseWheel",eventType:"wheel",callback:I=>{I.preventDefault();let R=Number(I.wheelDelta*.04),_=w.scale.current+R;_=Math.max(_,w.scale.min),_=Math.min(_,w.scale.max),r(_)},options:{passive:!1}}).addEvent({eventType:"touchstart",eventID:"CropperTouchStart",callback:E,options:{passive:!1}}).addEvent({eventType:"mousedown",eventID:"CropperMouseDown",callback:E,options:{passive:!1}}),setTimeout(()=>{k.fn.corner.stop()},1e3)})},[i.id]),H(()=>{var u;let p=(u=M.get(s))==null?void 0:u.Instance;p&&p.updateScale(o)},[o]),H(()=>{var u;let p=(u=M.get(s))==null?void 0:u.Instance;p&&p.updateFilter({grayScale:g,tone:x,rotate:n})},[g,x,n]),m(A.Comps.Body,{children:y(V,{className:[L("Wrap"),L("Use_"+a)].join(" "),flexWrap:!1,position:"relative",overflow:"hidden",borderRadius:"inherit",boxShadow:"3.remark",UnderBreakPointStyles:{flexType:"col"},children:[m(D,{flexGrid:3,UnderBreakPointStyles:{width:1,padding:2},children:m(D,{overflow:"hidden",position:"relative",backgroundColor:"layer.4",freeCSS:{zIndex:1},UnderBreakPointStyles:{borderRadius:"1.tone.primary"},children:m("canvas",{width:"2400",height:a=="wallpaper.horizontal"?"1800":a=="wallpaper.vertical"?"3200":"2400",className:L("Canvas"),id:"Canvas-"+s})})}),y(T,{gap:0,flexGrid:2,boxShadow:"3.remark",UnderBreakPointStyles:{width:1,maxWidth:"unset"},freeCSS:{maxWidth:12*28},children:[y(T,{gap:1,flexSizing:0,overflow:"auto",padding:1.5,UnderBreakPointStyles:{flexSizing:"none"},children:[m(D,{flexSizing:"none",fontSize:"4.thirdTitle",isSemiBoldFont:!0,children:"\u30D5\u30A3\u30EB\u30BF\u30FC"}),m(G.SettingRegion,{DefaultOptions:c,val_scale:o,set_scale:r,val_tone:x,set_tone:S,val_grayScale:g,set_grayScale:C,val_rotate:n,set_rotate:d})]}),y(V,{padding:1.5,flexSizing:"none",gap:1,borderTop:!0,children:[m(Y.Button.Border.R,{onClick:()=>{t()},children:"\u30AD\u30E3\u30F3\u30BB\u30EB"}),m(Y.Button.Prime.R,{flexSizing:0,onClick:()=>P(void 0,null,function*(){var v;let p=(v=M.get(s))==null?void 0:v.Instance;if(!p)return;k.fn.mini.active("CropperExportation");let u=yield p.export();setTimeout(()=>{k.fn.mini.stop("CropperExportation"),l(u)},3e3)}),children:y(q.Center,{gap:"1/2",children:[m(k.White.R,{loaderID:"CropperExportation"}),"\u6C7A\u5B9A"]})})]})]})]})})},SettingRegion:f=>{let i=[];for(let e=1;e<=10;e++)i.push({value:e,label:y($,{children:[m(D,{className:[L("ToneBall"),L("ToneBall_"+e)].join(" ")}),m(D,{textAlign:"center",flexSizing:"auto",children:["","\u6696\u8272","\u5BD2\u8272","\u30BB\u30D4\u30A2","\u30B7\u30A2\u30F3","\u30DE\u30BC\u30F3\u30BF","\u30A4\u30A8\u30ED\u30FC","\u30AA\u30EA\u30B8\u30CA\u30EB1","\u30AA\u30EA\u30B8\u30CA\u30EB2","\u30AA\u30EA\u30B8\u30CA\u30EB3","\u30AA\u30EA\u30B8\u30CA\u30EB4"][e]})]})});return y($,{children:[y(T,{gap:"1/3",children:[y(D,{children:[m(B.Rotate,{fontSize:"3.paragraph",fontColor:"4.thin"})," Rotate"]}),y(q.Separate,{flexChilds:"even",paddingLeft:2,children:[y(Y.Button.Border.S,{onClick:()=>{let e=f.val_rotate-90;e<0&&(e+=360),f.set_rotate(e)},children:[m(B,{icon:J})," \u5DE6\u306B\u56DE\u8EE2"]}),y(Y.Button.Border.S,{onClick:()=>{f.set_rotate((f.val_rotate+90)%360)},children:["\u53F3\u306B\u56DE\u8EE2 ",m(B,{icon:Q})]})]})]}),y(T,{gap:"1/3",children:[y(D,{children:[m(B.Search,{fontSize:"3.paragraph",fontColor:"4.thin"})," Zoom"]}),m(D,{paddingLeft:2,children:m(W.Slider,{override:"force",value:f.val_scale-100,min:f.DefaultOptions.scale.min-100,max:f.DefaultOptions.scale.max-100,step:25,onUpdateValidValue:({eventType:e,value:l})=>{b.interval.clear("Cropper.UpdateScale"),b.interval.standBy("Cropper.UpdateScale",400,()=>{f.set_scale(l+100)})},legends:{enable:!0,custom:e=>"x"+Math.round(100+e)/100}})})]}),y(T,{gap:"1/3",children:[y(D,{children:[m(B,{icon:K,fontSize:"3.paragraph",fontColor:"4.thin"})," Gray Scale"]}),m(D,{paddingLeft:2,children:m(W.Slider,{value:f.val_grayScale,min:0,max:100,step:10,onUpdateValidValue:({value:e})=>{b.interval.clear("Cropper.GrayScale"),b.interval.standBy("Cropper.GrayScale",400,()=>{f.set_grayScale(e)})},legends:{enable:!0,custom:e=>e+"%"}})})]}),y(T,{gap:"1/3",children:[y(D,{children:[m(B,{icon:Z,fontSize:"3.paragraph",fontColor:"4.thin"})," Tone"]}),m(D,{paddingLeft:2,children:m(W.Radio,{value:f.val_tone,gap:"1/2",cellStyles:{isRounded:!0,borderWidth:2,borderColor:"1.thin",padding:"1/2",paddingRight:1,fontSize:"1.mini",gap:"1/3",flexSizing:"auto"},options:[{value:0,label:"\u306A\u3057",padding:["1/2",1],flexCenter:!0},...i],onUpdateValidValue:({value:e})=>{f.set_tone(e[0])}})})]})]})}},N={open:f=>P(void 0,null,function*(){let i=yield W.Filer.fn.openDialog({accept:"image",multiple:!1}),e="CropperImage";A.open({sheetID:e,type:"normal.middleCenter",size:"3L",freeCSS:{width:f.use=="wallpaper.horizontal"?12*100:12*80},content:m(G.Core,{val_file:i[0],options:f,finishedCallback:l=>{A.close(e),f.onProcessFinished(l)},abortCallback:()=>{A.close(e)}}),close_option:{escapeKeyDown:!1}})})};export{N as Cropper,N as default};
|
package/dist/fn/Input/Parts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,c as n,d}from"../../chunk-VY3566IV.js";import{jsx as
|
|
1
|
+
import{b as t,c as n,d as p}from"../../chunk-VY3566IV.js";import{jsx as i}from"react/jsx-runtime";import c from"../../atoms/Box";import s from"../../atoms/Span";import{DefaultStyles as a}from"./core";const u={RequiredSign:e=>i(s,t({fontColor:"white",fontSize:"0.xs",padding:["1/4","1/3"],backgroundColor:"nega",borderRadius:"3.tone.tertiary",children:"\u5FC5\u9808"},e)),RequiredShortSign:e=>i(s,t({fontColor:"nega",padding:["1/4","1/3"],borderRadius:"3.tone.tertiary",children:"*"},e)),OmitSign:e=>i(s,t({fontColor:"white",fontSize:"0.xs",padding:["1/4","1/3"],borderRadius:"3.tone.tertiary",backgroundColor:"layer.6",children:"\u7701\u7565\u53EF"},e)),LeftIndicator:e=>{let r=e,{tone:d}=r,o=p(r,["tone"]);return i(c,t(n(t({},a.Indicator(d)),{borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3"}),o))},RightIndicator:e=>{let r=e,{tone:d}=r,o=p(r,["tone"]);return i(c,t(n(t({},a.Indicator(d)),{borderTopLeftRadius:"2/3",borderBottomLeftRadius:"2/3"}),o))},RightIcon:e=>{let r=e,{tone:d="border"}=r,o=p(r,["tone"]);return i(c,n(t(n(t({},a.IndicatorIcon),{right:"3/4"}),o),{freeCSS:t(t({zIndex:6,pointerEvents:"none"},a.IndicatorIcon.freeCSS),o.freeCSS)}))},LeftIcon:e=>{let r=e,{tone:d="border"}=r,o=p(r,["tone"]);return i(c,n(t(n(t({},a.IndicatorIcon),{left:"3/4"}),o),{freeCSS:t(t({zIndex:6,pointerEvents:"none"},a.IndicatorIcon.freeCSS),o.freeCSS)}))}};export{u as Parts,u as default};
|
package/dist/fn/Input/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,c as a,e as
|
|
1
|
+
import{b as o,c as a,e as D}from"../../chunk-VY3566IV.js";import{jsx as v,jsxs as V}from"react/jsx-runtime";import{useState as _,useEffect as R,useRef as O}from"react";import{$$ as i,$$fromRoot as z,Config as L,useStore as y,GenerateClassName as B}from"../../@utils/_";import{InputClasses as N}from"../../@styles/componentClasses/_";import P from"../../atoms/Box";import A from"../../atoms/Flex";import T from"../../atoms/FAI";import E from"../../mols/Row";import W from"../../mols/Column";import U from"../Button";import k from"../Tooltips";const se=e=>{let[t]=_(e.componentID||i.uuid.gen());e=o({},e),e.params=a(o({enableFormSubmit:!0,status_id:i.uuid.gen(),override:"never",name:i.uuid.gen(),id:i.uuid.gen(),"aria-label":"Input-"+t},e.params),{componentID:t});let{children:r}=e;return v(r,o({},e.params))},ue=e=>{let{children:t,val_status:r,set_status:n,val_validate:c,params:l}=e,{clearButton:s,rightIcon:u,leftIcon:p,wrapStyles:m}=l;return r.eventType=="init"&&!l.checkValidationAtFirst&&(c.notice=[]),V(E.Center,a(o({position:"relative",verticalAlign:"unset",gap:0},m),{className:N("Wrapper"),"data-notice-uid":r.componentID,children:[v($,{notice:c.notice,val_status:r}),l.leftIndicator,V(A,{position:"relative",flexSizing:"auto",children:[p,t,s&&r.dataValue?v(U.Button.Normal.R,{ssSphere:2,flexCenter:!0,fontColor:"5.translucent",ssEffectsOnActive:["ripple.theme"],position:"absolute",right:1,top:"50%",freeCSS:{zIndex:3,transform:"translateY(-50%)"},onClick:()=>{n(a(o({},r),{dataValue:"",formatValue:"",eventType:"update",eventID:i.uuid.gen()}))},children:v(T.Times,{})}):u]}),l.rightIndicator]}))},$=e=>{let{notice:t,val_status:r}=e,{componentID:n,eventType:c}=r,l="NoticeTimer-"+n,s="NoticeTimerClose-"+n,u="notice-tips-"+n;return i.interval.clear(l),i.interval.clear(s),t.length?(i.interval.standBy(l,350,()=>{k.open({tipsID:u,parent:`[data-notice-uid="${n}"]`,gravityPoint:22,padding:[1,0],close_option:{parentBlur:!1},content:V(k.Comps.Body,{padding:["1/2","2/3"],fontSize:"1.mini",position:"relative",children:[v(P,{position:"absolute",unitHeight:1,unitWidth:1,left:1,backgroundColor:"dark",freeCSS:{zIndex:1,transform:"rotate(45deg)",top:-6}}),v(W,{gap:"1/3",position:"relative",freeCSS:{zIndex:2},backgroundColor:"inherit",children:t.map(p=>{let{type:m,label:S}=p,b=m=="invalid"?T.Times:m=="warn"?T.Exclamation:T.Check;return V(E.Left,{gap:0,borderRadius:"2.tone.secondary",children:[v(b,{flexCenter:!0,fontSize:"3.paragraph",fontColor:{invalid:"nega",warn:"warn",valid:"posi"}[m]}),v(P,{fontColor:"white",children:S})]})})})]})})}),i.interval.standBy(s,6e3,()=>{k.close(u)}),null):(k.close(u),null)},de=e=>{let{type:t,params:r,val_status:n,set_status:c,ExtraOverrideParams:l,ExtraStoreParams:s,val_validate:u,set_validate:p,DefaultValidation:m,onUpdateValue:S,onUpdateValidValue:b}=e;r=o({},r);let{componentID:I}=n,[w,F]=_(i.uuid.gen());R(()=>(y.update({key:I,value:o({ResolveRefresh:null,Refresh:()=>new Promise((d,f)=>{y.get(I).ResolveRefresh=d,F(i.uuid.gen())}),GenNotice:d=>{let{ok:f,notice:g}=d;p({ok:f,notice:g})}},s)}),()=>{y.delete(I)}),[]);const x=O(!1);R(()=>{x.current?c(a(o({},n),{eventType:"refresh",eventID:i.uuid.gen()})):x.current=!0},[w]),R(()=>{r.value=n.dataValue,i.interval.clear("ValidationTimer-"+I),j({val_status:n,set_validate:p,DefaultValidation:m,params:r})},[n.eventID]),(()=>{let{override:d}=r;if(d=="never"||d=="beforeModified"&&!["init","override"].includes(n.eventType))return;let f=y.get(n.componentID);f&&(r.value!=n.dataValue&&r.status_id!=f.status_id&&c(a(o(a(o({},n),{dataValue:r.value}),l),{eventType:"override",eventID:i.uuid.gen()})),f.status_id=r.status_id)})(),R(()=>{let{componentID:d,eventType:f,dataValue:g}=n,h=g;if(t=="list"?h=g.map(C=>JSON.parse(C)):t=="select"||t=="richSelect"?h=JSON.parse(g):t=="file"&&y.update({key:d,value:{Files:n.dataValue}}),f=="refresh"){let C=y.get(d);C&&C.ResolveRefresh&&C.ResolveRefresh(null)}f=="update"&&(S&&S({componentID:d,value:h,storeData:y.get(d),eventType:f}),i.scope(()=>{u.ok&&b&&b({componentID:d,value:h,storeData:y.get(d),eventType:f})}))},[u])},j=e=>{let{val_status:t,params:r,set_validate:n,DefaultValidation:c}=e,l=c({value:t.dataValue,params:r});if(!l.ok){n(l);return}let s=l.notice;const u=()=>D(void 0,null,function*(){if(!r.onValidate)return;let p=yield r.onValidate({value:t.dataValue,eventType:t.eventType,props:e});if(!p.ok){n({ok:!1,notice:[...s,...p.notice]});return}n({ok:!0,notice:[...s,...p.notice]})});r.onValidate?t.eventType=="refresh"?u():i.interval.standBy("ValidationTimer-"+t.componentID,450,u):n({ok:!0,notice:s})},ce=e=>{let t=e.target,{form:r,formName:n}=t.dataset;r=n||r;let c=!1,l=z(`[data-form-submit-button="${r}"]`)[0];if(!l)return c;let s=l.dataset.sdfike||"",u=e.key,p=e.ctrlKey||e.metaKey;return i.scope(()=>{s.includes("enter")&&(u!="Enter"||e.nativeEvent.isComposing||L.get().browserIs=="safari"&&e.keyCode==229)||((u=="Enter"&&(s.includes("enter")||s.includes("auxEnter")&&p)||u==" "&&s.includes("space"))&&(l.click(),e.preventDefault()),c=!0)}),c},K={Input:e=>{if(e=="plain")return{};let t={padding:"3/4",transition:"middle",flexSizing:"auto",boxShadow:"0.thin"};return e=="border"?t=a(o({},t),{border:!0,borderRadius:"2.tone.secondary",backgroundColor:"layer.1"}):e=="cloud"?t=a(o({},t),{border:"1.thin",borderRadius:"2.tone.secondary",backgroundColor:"cloud"}):e=="bottomBorder"&&(t=a(o({},t),{borderRadius:0,border:"unset",borderBottom:!0,backgroundColor:"cloud"})),t},ListCell:e=>{e=o({},e),e.tone||(e.tone="border");let{tone:t}=e;return t=="plain"||(e=a(o({},e),{cellStyles:o({position:"relative",padding:["3/4",1],borderRadius:"2.tone.secondary",transition:"middle"},e.cellStyles)}),t=="normal"?e=a(o({gap:"1/2"},e),{cellStyles:o({isSemiBoldFont:!0},e.cellStyles),cellCheckedStyles:{backgroundColor:"cloud"}}):(e=a(o({gap:"3/4"},e),{cellStyles:o({boxShadow:"0.thin"},e.cellStyles)}),(t=="cloud"||t=="vivid")&&(e.cellStyles=o({border:"1.thin",backgroundColor:"layer.2"},e.cellStyles)),t=="border"?(e.cellStyles=o({border:!0,backgroundColor:"layer.1"},e.cellStyles),e.cellCheckedStyles=o({borderColor:"theme",fontColor:"theme"},e.cellCheckedStyles)):t=="cloud"?e.cellCheckedStyles=o({backgroundColor:"theme.opa.few",fontColor:"theme",borderColor:"theme"},e.cellCheckedStyles):t=="vivid"&&(e.cellCheckedStyles=o({backgroundColor:"theme",fontColor:"white",borderColor:"theme"},e.cellCheckedStyles)))),B(e)},Boxish:e=>{e=o({},e),e.tone||(e.tone="border");let t=a(o(o(o(a(o({},K.Input(e.tone)),{fontColor:"2.normal"}),e),!!e.leftIndicator&&{borderTopLeftRadius:"2/3",borderBottomLeftRadius:"2/3",marginLeft:"1/4"}),!!e.rightIndicator&&{borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",marginRight:"1/4"}),{className:[N("Input"),e.className].join(" ")});return B(t)},Indicator:e=>{if(e||(e="border"),e=="plain")return{};let t={flexSizing:"none",flexCenter:!0,padding:[0,1],borderRadius:"2.tone.secondary",backgroundColor:"cloud"};return e=="border"?t=a(o({},t),{border:!0}):e=="cloud"?t=a(o({},t),{border:"1.thin"}):e=="bottomBorder"&&(t=a(o({},t),{borderRadius:0,borderBottom:!0})),t},IndicatorIcon:{position:"absolute",ssSquare:2,top:"50%",flexCenter:!0,fontColor:"theme",fontSize:"1.mini",backgroundColor:"inherit",freeCSS:{transform:"translateY(-50%)"}}};export{ue as BoxWrapper,de as CommonEffects,K as DefaultStyles,ce as SubmitForm,j as ValidationCheck,se as Wrapper};
|
package/dist/temps/designBook.js
CHANGED
|
@@ -73,7 +73,7 @@ Some Text`})]}),t(B.Separate,{children:[e(r.Button.Sub.S,{color:"white",onClick:
|
|
|
73
73
|
text2
|
|
74
74
|
text3
|
|
75
75
|
text4
|
|
76
|
-
text5`,rows:5})]})]})]})]})}),Time:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Time Input"}),e(o,{padding:1,children:t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.Time.Clock",e(i.Time.Clock,{})]}),t(o,{children:["Input.Time.Date",e(i.Time.Date,{})]}),t(o,{children:["Input.Time.Week",e(i.Time.Week,{})]}),t(o,{children:["Input.Time.Month",e(i.Time.Month,{})]}),t(o,{children:["Input.Time.Year",e(i.Time.Year,{})]}),t(o,{children:["Input.Time.Periods.Date",e(i.Time.Periods.Date,{})]}),t(o,{children:["Input.Time.Periods.Month",e(i.Time.Periods.Month,{})]}),t(o,{children:["Input.Time.DateWareki",e(i.Time.DateWareki,{})]}),t(o,{children:["Input.Time.picker",e(i.Select,{id:"timePicker",options:[{value:"clock",label:"clock"},{value:"date",label:"date"},{value:"week",label:"week"},{value:"month",label:"month"},{value:"year",label:"year"},{value:"dates",label:"dates"},{value:"months",label:"months"},{value:"dateWareki",label:"dateWareki"}],onUpdateValidValue:({value:u})=>{i.Time.fn.picker.launch({parent:"#timePicker",restrict:u,defaultValue:"",onValueUpdate:s=>{console.log(s)}})}})]})]})})]})}),List:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Radio & Checkbox Input"}),e(o,{padding:1,children:t(h,{children:[t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.Radio",e(i.Radio,{value:[1],options:[{value:1,label:"option1"},{value:2,label:"option2"},{value:3,label:"option3"}]})]}),t(o,{children:["Input.Checkbox",e(i.Checkbox,{value:[2,"3"],options:[{value:"1",label:"option1"},{value:"2",label:"option2"},{value:"3",label:"option3"}]})]})]}),t(h,{children:[e(n.Paragraph,{children:"Tones"}),t(c,{gap:2,flexChilds:"auto",children:[e(i.Radio,{tone:"plain",value:[1],gap:1,options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"normal",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"cloud",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"border",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"vivid",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]})]})]})]})})]})}),Select:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Select,Search,Chips Input"}),e(o,{padding:1,children:e(h,{children:t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.Select",e(i.Select,{required:!0,value:3,options:[{value:1,label:"option1"},{value:2,label:"option2"},{value:3,label:"option3a"},{value:4,label:"option4"}]})]}),t(o,{children:["Input.Search",e(i.Search,{required:!0,defaultOptions:[{value:1,label:"1"},{value:{value1:2,value2:3},label:"Object"},{value:3,label:"3"},{value:101,label:"101"},{value:102,label:"102"}],onDynamicSearch:(...u)=>I(void 0,null,function*(){let s=[];for(let x=0;x<100;x++)s.push({value:x,label:String(x)});return{options:s}})})]}),t(o,{flexNewLine:!0,children:["Input.Chips",e(i.Chips,{limit:5,value:[{value:"option3",label:"option3"}],onUpdateValidValue:({value:u})=>{console.log(u)},defaultOptions:[{value:1,label:"option1"},{value:2,label:"option2"},{value:3,label:"option3"},{value:4,label:"option4"}]})]})]})})})]})}),Variables:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Variables"}),e(o,{padding:1,children:e(h,{children:t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.File",e(i.Filer,{limit:3})]}),t(o,{children:["Input.Switch",t(c,{gap:2,children:[e(i.Switch,{}),e(i.Switch,{appearance:"applely",color:"icicles",value:!0}),e(i.Switch,{appearance:"applely",icon:e(g.Check,{}),color:"warn",value:!0})]})]}),t(o,{flexNewLine:!0,children:["Input.Slider",e(i.Slider,{color:"battery",name:"sliderInput",value:40,step:10,min:0,max:100})]})]})})})]})})};return e(d,{children:e(k.Plate,{size:"L",children:t(p,{gap:2,gridCols:2,children:[e(a.Basic,{}),e(a.Select,{}),e(a.Time,{}),e(a.List,{}),e(a.Variables,{})]})})})},j=()=>{const a=u=>{let s="testModal2";O.open({type:u,sheetID:s,size:"S",padding:2,content:t(O.Comps.Body,{padding:1,children:[e(o,{padding:2,minHeight:"viewHeight",children:"Content"}),e(B.Right,{children:e(r.Button.Prime.R,{onClick:()=>{O.close(s)},children:"\u9589\u3058\u308B"})})]})})};return t(d,{children:[t(o,{ssCardBox:!0,children:[e(n.SubTitle,{padding:1,borderBottom:!0,children:"CardBox"}),e(o,{padding:1,overflow:"auto",children:e(n.Description,{children:`<Box ssCardBox>
|
|
76
|
+
text5`,rows:5})]})]})]})]})}),Time:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Time Input"}),e(o,{padding:1,children:t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.Time.Clock",e(i.Time.Clock,{})]}),t(o,{children:["Input.Time.Date",e(i.Time.Date,{})]}),t(o,{children:["Input.Time.Week",e(i.Time.Week,{})]}),t(o,{children:["Input.Time.Month",e(i.Time.Month,{})]}),t(o,{children:["Input.Time.Year",e(i.Time.Year,{})]}),t(o,{children:["Input.Time.Periods.Date",e(i.Time.Periods.Date,{})]}),t(o,{children:["Input.Time.Periods.Month",e(i.Time.Periods.Month,{})]}),t(o,{children:["Input.Time.DateWareki",e(i.Time.DateWareki,{})]}),t(o,{children:["Input.Time.picker",e(i.Select,{id:"timePicker",options:[{value:"clock",label:"clock"},{value:"date",label:"date"},{value:"week",label:"week"},{value:"month",label:"month"},{value:"year",label:"year"},{value:"dates",label:"dates"},{value:"months",label:"months"},{value:"dateWareki",label:"dateWareki"}],onUpdateValidValue:({value:u})=>{i.Time.fn.picker.launch({parent:"#timePicker",restrict:u,defaultValue:"",onValueUpdate:s=>{console.log(s)}})}})]})]})})]})}),List:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Radio & Checkbox Input"}),e(o,{padding:1,children:t(h,{children:[t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.Radio",e(i.Radio,{value:[1],options:[{value:1,label:"option1"},{value:2,label:"option2"},{value:3,label:"option3"},{value:4,label:"option4"},{value:5,label:"option5"}]})]}),t(o,{children:["Input.Checkbox",e(i.Checkbox,{value:[2,"3"],options:[{value:"1",label:"option1"},{value:"2",label:"option2"},{value:"3",label:"option3"}]})]})]}),t(h,{children:[e(n.Paragraph,{children:"Tones"}),t(c,{gap:2,flexChilds:"auto",children:[e(i.Radio,{tone:"plain",value:[1],gap:1,options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"normal",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"cloud",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"border",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]}),e(i.Radio,{tone:"vivid",value:[1],options:[{value:1,label:"Option1"},{value:2,label:"Option2"},{value:3,label:"Option3"}]})]})]})]})})]})}),Select:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Select,Search,Chips Input"}),e(o,{padding:1,children:e(h,{children:t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.Select",e(i.Select,{required:!0,value:3,options:[{value:1,label:"option1"},{value:2,label:"option2"},{value:3,label:"option3a"},{value:4,label:"option4"}]})]}),t(o,{children:["Input.Search",e(i.Search,{required:!0,defaultOptions:[{value:1,label:"1"},{value:{value1:2,value2:3},label:"Object"},{value:3,label:"3"},{value:101,label:"101"},{value:102,label:"102"}],onDynamicSearch:(...u)=>I(void 0,null,function*(){let s=[];for(let x=0;x<100;x++)s.push({value:x,label:String(x)});return{options:s}})})]}),t(o,{flexNewLine:!0,children:["Input.Chips",e(i.Chips,{limit:5,value:[{value:"option3",label:"option3"}],onUpdateValidValue:({value:u})=>{console.log(u)},defaultOptions:[{value:1,label:"option1"},{value:2,label:"option2"},{value:3,label:"option3"},{value:4,label:"option4"}]})]})]})})})]})}),Variables:()=>e(d,{children:t(o,{ssCardBox:!0,children:[e(n.Paragraph,{padding:1,borderBottom:!0,children:"Variables"}),e(o,{padding:1,children:e(h,{children:t(c,{gap:2,flexChilds:"auto",children:[t(o,{children:["Input.File",e(i.Filer,{limit:3})]}),t(o,{children:["Input.Switch",t(c,{gap:2,children:[e(i.Switch,{}),e(i.Switch,{appearance:"applely",color:"icicles",value:!0}),e(i.Switch,{appearance:"applely",icon:e(g.Check,{}),color:"warn",value:!0})]})]}),t(o,{flexNewLine:!0,children:["Input.Slider",e(i.Slider,{color:"battery",name:"sliderInput",value:40,step:10,min:0,max:100})]})]})})})]})})};return e(d,{children:e(k.Plate,{size:"L",children:t(p,{gap:2,gridCols:2,children:[e(a.Basic,{}),e(a.Select,{}),e(a.Time,{}),e(a.List,{}),e(a.Variables,{})]})})})},j=()=>{const a=u=>{let s="testModal2";O.open({type:u,sheetID:s,size:"S",padding:2,content:t(O.Comps.Body,{padding:1,children:[e(o,{padding:2,minHeight:"viewHeight",children:"Content"}),e(B.Right,{children:e(r.Button.Prime.R,{onClick:()=>{O.close(s)},children:"\u9589\u3058\u308B"})})]})})};return t(d,{children:[t(o,{ssCardBox:!0,children:[e(n.SubTitle,{padding:1,borderBottom:!0,children:"CardBox"}),e(o,{padding:1,overflow:"auto",children:e(n.Description,{children:`<Box ssCardBox>
|
|
77
77
|
<Box>
|
|
78
78
|
Header
|
|
79
79
|
</Box>
|