amotify 0.0.52 → 0.0.54
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/@types/fn.tsx +1 -1
- package/dist/amotify.js +3 -3
- package/dist/amotify.min.css +11 -11
- package/dist/coreVender.js +2 -2
- package/package.json +1 -1
- package/src/@styles/props.scss +5 -5
- package/src/functions/Input/Chips/_.tsx +2 -1
- package/src/functions/Input/Time/_.tsx +5 -1
- package/src/functions/Layout/RootViewController/parts.tsx +1 -1
- package/src/functions/Sheet/parts.tsx +16 -11
- package/src/functions/Sheet/style.module.scss +2 -2
- package/webpack.config.js +1 -1
package/package.json
CHANGED
package/src/@styles/props.scss
CHANGED
|
@@ -67,11 +67,11 @@ $font-size7 : var(--font-size7);
|
|
|
67
67
|
$font-size8 : var(--font-size8);
|
|
68
68
|
//
|
|
69
69
|
$shadow-color : var(--sc);
|
|
70
|
-
$shadow0 : 0 0 0 transparent inset,(--shadow_style_0) var(--shadow_color_thin);
|
|
71
|
-
$shadow1 : 0 0 0 transparent inset,(--shadow_style_0) var(--shadow_color_normal);
|
|
72
|
-
$shadow2 : 0 0 0 transparent inset,(--shadow_style_1) var(--shadow_color_remark);
|
|
73
|
-
$shadow3 : 0 0 0 transparent inset,(--shadow_style_3) var(--shadow_color_remark);
|
|
74
|
-
$shadow4 : 0 0 0 transparent inset,(--shadow_style_4) var(--shadow_color_remark);
|
|
70
|
+
$shadow0 : 0 0 0 transparent inset,var(--shadow_style_0) var(--shadow_color_thin);
|
|
71
|
+
$shadow1 : 0 0 0 transparent inset,var(--shadow_style_0) var(--shadow_color_normal);
|
|
72
|
+
$shadow2 : 0 0 0 transparent inset,var(--shadow_style_1) var(--shadow_color_remark);
|
|
73
|
+
$shadow3 : 0 0 0 transparent inset,var(--shadow_style_3) var(--shadow_color_remark);
|
|
74
|
+
$shadow4 : 0 0 0 transparent inset,var(--shadow_style_4) var(--shadow_color_remark);
|
|
75
75
|
|
|
76
76
|
$animation-time-short : var(--animation-time1);
|
|
77
77
|
$animation-time-middle : var(--animation-time2);
|
|
@@ -213,6 +213,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
213
213
|
label={ label }
|
|
214
214
|
removeCallback={ removeCallback }
|
|
215
215
|
defaultRemoveButton={ <Buttons.Button.Sub.S
|
|
216
|
+
padding={ '2/3' }
|
|
216
217
|
flexSizing={ 'none' }
|
|
217
218
|
color='cloud'
|
|
218
219
|
backgroundColor='cloud'
|
|
@@ -269,7 +270,7 @@ const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
269
270
|
} }
|
|
270
271
|
onClick={ () => {
|
|
271
272
|
if ( isFully ) return;
|
|
272
|
-
if ( val_selected.length ) return;
|
|
273
|
+
// if ( val_selected.length ) return;
|
|
273
274
|
OpenSelector();
|
|
274
275
|
} }
|
|
275
276
|
{ ...others }
|
|
@@ -675,7 +675,11 @@ const KeyDownEvent = ( props: {
|
|
|
675
675
|
{
|
|
676
676
|
let nextFormatValue = String( formatValue ).partReplace( from,String( partsValue ) );
|
|
677
677
|
let nextDataValue = nextFormatValue.split( PeriodMargin ).map( ( value ) => {
|
|
678
|
-
return value
|
|
678
|
+
return value
|
|
679
|
+
.replace( /(^\D|\D$)/,'' )
|
|
680
|
+
.split( /\D+/ )
|
|
681
|
+
.join( restrict == 'clock' ? ':' : '/' )
|
|
682
|
+
.replace( /(^\D|\D$)/,'' );
|
|
679
683
|
} );
|
|
680
684
|
if ( restrict == 'dateWareki' ) {
|
|
681
685
|
let v = nextDataValue[ 0 ].split( /\D/ );
|
|
@@ -80,6 +80,7 @@ const Comps = {
|
|
|
80
80
|
},
|
|
81
81
|
mainSheetScrolls: 0,
|
|
82
82
|
subSheetLength: 0,
|
|
83
|
+
currentIndex: 0,
|
|
83
84
|
Core: ( params: Params ) => {
|
|
84
85
|
let [ val_componentID ] = React.useState( $.uuidGen() );
|
|
85
86
|
let [ val_params,set_params ] = React.useState( params );
|
|
@@ -89,7 +90,7 @@ const Comps = {
|
|
|
89
90
|
type,
|
|
90
91
|
sheetID,
|
|
91
92
|
openAfter,
|
|
92
|
-
closeAfter
|
|
93
|
+
closeAfter,
|
|
93
94
|
} = val_params;
|
|
94
95
|
|
|
95
96
|
let isNewSheet = !params.overwrap;
|
|
@@ -135,7 +136,7 @@ const Comps = {
|
|
|
135
136
|
} as any );
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
|
-
close: () => {
|
|
139
|
+
close: ( force: boolean ) => {
|
|
139
140
|
Comps.contents[ sheetID! ].open = false;
|
|
140
141
|
|
|
141
142
|
set_open( false );
|
|
@@ -149,6 +150,8 @@ const Comps = {
|
|
|
149
150
|
} );
|
|
150
151
|
} );
|
|
151
152
|
React.useEffect( () => {
|
|
153
|
+
Comps.currentIndex++;
|
|
154
|
+
|
|
152
155
|
let {
|
|
153
156
|
close_option
|
|
154
157
|
} = params;
|
|
@@ -231,11 +234,13 @@ const Comps = {
|
|
|
231
234
|
.addClass( style.Hide )
|
|
232
235
|
.callback( () => {
|
|
233
236
|
!closeAfter || closeAfter();
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
|
|
238
|
+
if ( params.hold_state ) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
delete Comps.contents[ sheetID! ];
|
|
242
|
+
$( '#Sheet-' + sheetID ).remove();
|
|
243
|
+
$().removeEvent( 'SheetClosation-' + sheetID! );
|
|
239
244
|
} );
|
|
240
245
|
}
|
|
241
246
|
} );
|
|
@@ -254,7 +259,7 @@ const Comps = {
|
|
|
254
259
|
height={ 0 }
|
|
255
260
|
ssAbsoluteCovered
|
|
256
261
|
freeCSS={ {
|
|
257
|
-
zIndex:
|
|
262
|
+
zIndex: Comps.currentIndex + 1
|
|
258
263
|
} }
|
|
259
264
|
id={ val_componentID }
|
|
260
265
|
>
|
|
@@ -942,7 +947,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
|
|
|
942
947
|
let Comps = useStore.get( 'customSheet-' + sheetID );
|
|
943
948
|
if ( Comps && Comps.reposition ) Comps.reposition();
|
|
944
949
|
},
|
|
945
|
-
close: function ( sheetID,et ) {
|
|
950
|
+
close: function ( sheetID,et,force ) {
|
|
946
951
|
let Content;
|
|
947
952
|
sheetID = sheetID?.replace( /\./g,'-' );
|
|
948
953
|
Content = Comps.contents[ sheetID ];
|
|
@@ -955,7 +960,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
|
|
|
955
960
|
let { sheetID } = params;
|
|
956
961
|
|
|
957
962
|
let component = useStore.get( sheetID! );
|
|
958
|
-
|
|
963
|
+
component && component.close && component.close( force );
|
|
959
964
|
}
|
|
960
965
|
},
|
|
961
966
|
closeGroup: ( sheetGroup ) => {
|
|
@@ -970,7 +975,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
|
|
|
970
975
|
if ( pageTransit ) {
|
|
971
976
|
if ( value.params.close_option?.pageTransit == false ) continue;
|
|
972
977
|
}
|
|
973
|
-
Sheet.close( key,'pageTransit' );
|
|
978
|
+
Sheet.close( key,'pageTransit',true );
|
|
974
979
|
}
|
|
975
980
|
},
|
|
976
981
|
Comps: {
|
|
@@ -77,7 +77,7 @@ html {
|
|
|
77
77
|
transition: $animation-time-short;
|
|
78
78
|
.BaseBody {
|
|
79
79
|
transition: $animation-time-short;
|
|
80
|
-
box-shadow:
|
|
80
|
+
box-shadow: $shadow4;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
.BB {
|
|
@@ -153,7 +153,7 @@ html {
|
|
|
153
153
|
.TapSensor:active + .BB {
|
|
154
154
|
transform: scale(1.015);
|
|
155
155
|
transition: $animation-time-short;
|
|
156
|
-
box-shadow:
|
|
156
|
+
box-shadow: $shadow4;
|
|
157
157
|
}
|
|
158
158
|
.BB {
|
|
159
159
|
transform: scale(.95);
|