amotify 0.0.26 → 0.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "UI Component for React",
5
5
  "main": "dist/launch.js",
6
6
  "types": "dist/@types.d.ts",
@@ -66,4 +66,4 @@
66
66
  "webpack-cli": "^5.1.4",
67
67
  "webpack-remove-empty-scripts": "^1.0.4"
68
68
  }
69
- }
69
+ }
@@ -277,7 +277,6 @@ const SeedWrapper = ( params: SeedWrapperInput ) => {
277
277
  } = Params as amotify.fn.Buttons.AnchorInput;
278
278
 
279
279
  return <button
280
- { ...Props as any }
281
280
  onClick={ ( event ) => {
282
281
  let aux = event.ctrlKey || event.metaKey;
283
282
 
@@ -292,6 +291,7 @@ const SeedWrapper = ( params: SeedWrapperInput ) => {
292
291
  pageTransit.push( URL,!!openNew );
293
292
  }
294
293
  } }
294
+ { ...Props as any }
295
295
  />;
296
296
  }
297
297
  return null;
@@ -186,13 +186,11 @@ const Core: React.FC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
186
186
 
187
187
  const Options: React.FC<{ params: amotify.fn.Input.Select.PlainParams }> = ( props ) => {
188
188
  let {
189
- value,
190
189
  options = [],
191
190
  placeholder = '選択してください',
192
191
  enableUnSelected = true
193
192
  } = props.params;
194
193
 
195
- let SelectedValue = String( value );
196
194
  let Options = options.map( ( option: amotify.fn.Input.Select.OptionProps ) => {
197
195
  let {
198
196
  value,
@@ -202,7 +200,6 @@ const Options: React.FC<{ params: amotify.fn.Input.Select.PlainParams }> = ( pro
202
200
  return <option
203
201
  value={ Value }
204
202
  key={ Value }
205
- // selected={ Value == SelectedValue }
206
203
  children={ label }
207
204
  />;
208
205
  } );
@@ -211,7 +208,6 @@ const Options: React.FC<{ params: amotify.fn.Input.Select.PlainParams }> = ( pro
211
208
  Options.unshift( <option
212
209
  key={ 0 }
213
210
  value={ JSON.stringify( null ) }
214
- // selected={ SelectedValue == 'null' }
215
211
  children={ placeholder }
216
212
  /> );
217
213
  }
@@ -338,14 +338,17 @@ export const CommonEffects: {
338
338
  eventType: eventType
339
339
  } );
340
340
 
341
- if ( val_validate.ok && $.is.exist( Value ) ) {
342
- if ( onUpdateValidValue ) onUpdateValidValue( {
341
+ $.fnScope( () => {
342
+ if ( !val_validate.ok ) return;
343
+ // if ( $.is.nullish( Value ) ) return;
344
+ if ( !onUpdateValidValue ) return;
345
+ onUpdateValidValue( {
343
346
  componentID,
344
347
  value: Value,
345
348
  storeData: useStore.get( componentID ),
346
349
  eventType: eventType
347
350
  } );
348
- }
351
+ } );
349
352
  }
350
353
  },[ val_validate ] );
351
354
  }
@@ -792,7 +792,7 @@ $( document )
792
792
  let latestSheet = OpenSheets.reduce( ( a,b ) => {
793
793
  return a.created_at.value > b.created_at.value ? a : b;
794
794
  } );
795
- Sheet.close( latestSheet.params.sheetID! );
795
+ Sheet.close( latestSheet.params.sheetID!,key );
796
796
  }
797
797
  }
798
798
  } )
@@ -946,7 +946,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
946
946
  Content = Comps.contents[ sheetID ];
947
947
 
948
948
  if ( !Content ) return;
949
- if ( et == 'escape' && !Content.params.close_option?.escapeKeyDown ) return;
949
+ if ( et == 'Escape' && !Content.params.close_option?.escapeKeyDown ) return;
950
950
 
951
951
  {
952
952
  let { params } = Content;