amotify 0.1.12 → 0.1.14

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.11
3
+ * amotify 0.1.14
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -188,26 +188,21 @@
188
188
  }
189
189
 
190
190
  /* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/f_sheet.module.scss */
191
- html._FixHeight_1eh7v_1 ._FixScroll_1eh7v_1 {
191
+ ._FixScroll_14cjf_1 {
192
192
  overflow: hidden !important;
193
193
  min-height: 0 !important;
194
194
  height: calc(var(--viewHeight));
195
195
  width: 100vw;
196
196
  transition: var(--animation-time3);
197
197
  }
198
- @media (max-width: 834px) {
199
- html._FloatMainSheet_1eh7v_9._Type_bottom_1eh7v_9 {
200
- overflow: hidden;
201
- }
202
- }
203
- html._FloatMainSheet_1eh7v_9 ._FixScroll_1eh7v_1 {
198
+ ._FixScroll_14cjf_1._Float_14cjf_8 {
204
199
  opacity: 0.8 !important;
205
200
  pointer-events: none;
206
201
  transform-origin: center center;
207
202
  transform: scale(0.96);
208
203
  border-radius: calc((2vw + 2vh) / 2);
209
204
  }
210
- ._Wrapper_1eh7v_21 {
205
+ ._Wrapper_14cjf_16 {
211
206
  position: fixed;
212
207
  top: 0;
213
208
  left: 0;
@@ -216,11 +211,11 @@ html._FloatMainSheet_1eh7v_9 ._FixScroll_1eh7v_1 {
216
211
  pointer-events: none;
217
212
  z-index: 6;
218
213
  }
219
- ._Wrap_1eh7v_21 {
214
+ ._Wrap_14cjf_16 {
220
215
  pointer-events: none !important;
221
216
  height: 0;
222
217
  }
223
- ._Wrap_1eh7v_21 ._TapSensor_1eh7v_35 {
218
+ ._Wrap_14cjf_16 ._TapSensor_14cjf_30 {
224
219
  position: sticky;
225
220
  top: 0;
226
221
  height: 0;
@@ -229,158 +224,158 @@ html._FloatMainSheet_1eh7v_9 ._FixScroll_1eh7v_1 {
229
224
  -webkit-touch-callout: none;
230
225
  flex: none;
231
226
  }
232
- ._Wrap_1eh7v_21 ._TapSensor_1eh7v_35 ._TapContent_1eh7v_44 {
227
+ ._Wrap_14cjf_16 ._TapSensor_14cjf_30 ._TapContent_14cjf_39 {
233
228
  height: var(--viewHeight);
234
229
  width: 100vw;
235
230
  }
236
- ._Wrap_1eh7v_21._Hide_1eh7v_48 {
231
+ ._Wrap_14cjf_16._Hide_14cjf_43 {
237
232
  display: none !important;
238
233
  }
239
- ._Wrap_1eh7v_21._Open_1eh7v_51._isNewSheet_true_1eh7v_51 ._Content_1eh7v_51 {
234
+ ._Wrap_14cjf_16._Open_14cjf_46._isNewSheet_true_14cjf_46 ._Content_14cjf_46 {
240
235
  pointer-events: all !important;
241
236
  background-color: rgba(var(--color-dark-rgb), 0.25);
242
237
  }
243
- ._Wrap_1eh7v_21._Open_1eh7v_51._isNewSheet_false_1eh7v_55 ._BB_1eh7v_55 {
238
+ ._Wrap_14cjf_16._Open_14cjf_46._isNewSheet_false_14cjf_50 ._BB_14cjf_50 {
244
239
  pointer-events: all !important;
245
240
  }
246
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
241
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
247
242
  transform: scale(1.015);
248
243
  transition: var(--animation-time1);
249
244
  }
250
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 ._BaseBody_1eh7v_62 {
245
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 ._BaseBody_14cjf_57 {
251
246
  transition: var(--animation-time1);
252
247
  box-shadow: 0 0 0 transparent inset, var(--shadow_style_4) var(--shadow_color_remark);
253
248
  }
254
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._BB_1eh7v_55 {
249
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._BB_14cjf_50 {
255
250
  transform: scale(0.75);
256
251
  padding: var(--grid-unit);
257
252
  pointer-events: none !important;
258
253
  }
259
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._BB_1eh7v_55 > * {
254
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._BB_14cjf_50 > * {
260
255
  pointer-events: all;
261
256
  }
262
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58._Open_1eh7v_51 ._BB_1eh7v_55 {
257
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53._Open_14cjf_46 ._BB_14cjf_50 {
263
258
  transform: scale(1);
264
259
  opacity: 1;
265
260
  }
266
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78 ._Content_1eh7v_51 {
261
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73 ._Content_14cjf_46 {
267
262
  overflow: hidden auto;
268
263
  }
269
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
264
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
270
265
  transition: var(--animation-time1);
271
266
  left: calc(-1 * var(--grid-unit) * 2);
272
267
  }
273
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78 ._BB_1eh7v_55 {
268
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73 ._BB_14cjf_50 {
274
269
  max-width: 100vw;
275
270
  left: -10%;
276
271
  }
277
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78._Open_1eh7v_51 ._BB_1eh7v_55 {
272
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73._Open_14cjf_46 ._BB_14cjf_50 {
278
273
  left: 0;
279
274
  opacity: 1;
280
275
  }
281
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93 ._Content_1eh7v_51 {
276
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88 ._Content_14cjf_46 {
282
277
  overflow: hidden auto;
283
278
  }
284
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
279
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
285
280
  transition: var(--animation-time1);
286
281
  right: calc(-1 * var(--grid-unit) * 2);
287
282
  }
288
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93 ._BB_1eh7v_55 {
283
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88 ._BB_14cjf_50 {
289
284
  max-width: 100vw;
290
285
  right: -10%;
291
286
  }
292
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93._Open_1eh7v_51 ._BB_1eh7v_55 {
287
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88._Open_14cjf_46 ._BB_14cjf_50 {
293
288
  right: 0;
294
289
  opacity: 1;
295
290
  }
296
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
291
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
297
292
  padding-top: 2vh !important;
298
293
  transition: var(--animation-time1) !important;
299
294
  }
300
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108 ._BB_1eh7v_55 {
295
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103 ._BB_14cjf_50 {
301
296
  padding-top: 10vh;
302
297
  }
303
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108 ._BB_1eh7v_55 ._DragBar_1eh7v_115 {
298
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103 ._BB_14cjf_50 ._DragBar_14cjf_110 {
304
299
  position: relative;
305
300
  }
306
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108._Open_1eh7v_51 ._BB_1eh7v_55 {
301
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103._Open_14cjf_46 ._BB_14cjf_50 {
307
302
  padding-top: 0;
308
303
  opacity: 1 !important;
309
304
  transition: var(--animation-time3);
310
305
  }
311
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
306
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
312
307
  transform: scale(1.015);
313
308
  transition: var(--animation-time1);
314
309
  box-shadow: 0 0 0 transparent inset, var(--shadow_style_4) var(--shadow_color_remark);
315
310
  }
316
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._BB_1eh7v_55 {
311
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._BB_14cjf_50 {
317
312
  transform: scale(0.95);
318
313
  }
319
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._BB_1eh7v_55._CustomSheet_1eh7v_131 {
314
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._BB_14cjf_50._CustomSheet_14cjf_126 {
320
315
  position: relative;
321
316
  }
322
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_1_1eh7v_134,
323
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_4_1eh7v_134,
324
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_1_1eh7v_134,
325
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_4_1eh7v_134 {
317
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_1_14cjf_129,
318
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_4_14cjf_129,
319
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_1_14cjf_129,
320
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_4_14cjf_129 {
326
321
  transform-origin: bottom right;
327
322
  }
328
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_2_1eh7v_137,
329
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_5_1eh7v_137,
330
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_2_1eh7v_137,
331
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_5_1eh7v_137 {
323
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_2_14cjf_132,
324
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_5_14cjf_132,
325
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_2_14cjf_132,
326
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_5_14cjf_132 {
332
327
  transform-origin: top right;
333
328
  }
334
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_1_1eh7v_134,
335
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_4_1eh7v_134,
336
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_1_1eh7v_134,
337
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_4_1eh7v_134 {
329
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_1_14cjf_129,
330
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_4_14cjf_129,
331
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_1_14cjf_129,
332
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_4_14cjf_129 {
338
333
  transform-origin: bottom left;
339
334
  }
340
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_2_1eh7v_137,
341
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_5_1eh7v_137,
342
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_2_1eh7v_137,
343
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_5_1eh7v_137 {
335
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_2_14cjf_132,
336
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_5_14cjf_132,
337
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_2_14cjf_132,
338
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_5_14cjf_132 {
344
339
  transform-origin: top left;
345
340
  }
346
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_3_1eh7v_146,
347
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_18_1eh7v_146 {
341
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_3_14cjf_141,
342
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_18_14cjf_141 {
348
343
  transform-origin: bottom;
349
344
  }
350
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_8_1eh7v_149,
351
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_23_1eh7v_149 {
345
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_8_14cjf_144,
346
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_23_14cjf_144 {
352
347
  transform-origin: top;
353
348
  }
354
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_11_1eh7v_152,
355
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_14_1eh7v_152 {
349
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_11_14cjf_147,
350
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14_14cjf_147 {
356
351
  transform-origin: right;
357
352
  }
358
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_12_1eh7v_155,
359
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_15_1eh7v_155 {
353
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_12_14cjf_150,
354
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_15_14cjf_150 {
360
355
  transform-origin: left;
361
356
  }
362
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134,
363
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134 {
357
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129,
358
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129 {
364
359
  right: 0;
365
360
  justify-content: flex-end;
366
361
  }
367
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140,
368
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140 {
362
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135,
363
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135 {
369
364
  left: 0;
370
365
  }
371
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_3_1eh7v_165 {
366
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_3_14cjf_160 {
372
367
  align-items: center;
373
368
  justify-content: center;
374
369
  }
375
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_1_1eh7v_134,
376
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_4_1eh7v_134 {
370
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_1_14cjf_129,
371
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_4_14cjf_129 {
377
372
  bottom: 0;
378
373
  }
379
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_2_1eh7v_137,
380
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_5_1eh7v_137 {
374
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_2_14cjf_132,
375
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_5_14cjf_132 {
381
376
  top: 0;
382
377
  }
383
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123._Open_1eh7v_51 ._BB_1eh7v_55 {
378
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118._Open_14cjf_46 ._BB_14cjf_50 {
384
379
  transform: scale(1);
385
380
  opacity: 1;
386
381
  }
@@ -57,47 +57,45 @@ var f_snackbar_module_default = {
57
57
 
58
58
  // src/@styles/componentClasses/f_sheet.module.scss
59
59
  var f_sheet_module_default = {
60
- "FixHeight": "_FixHeight_1eh7v_1",
61
- "FixScroll": "_FixScroll_1eh7v_1",
62
- "FloatMainSheet": "_FloatMainSheet_1eh7v_9",
63
- "Type_bottom": "_Type_bottom_1eh7v_9",
64
- "Wrapper": "_Wrapper_1eh7v_21",
65
- "Wrap": "_Wrap_1eh7v_21",
66
- "TapSensor": "_TapSensor_1eh7v_35",
67
- "TapContent": "_TapContent_1eh7v_44",
68
- "Hide": "_Hide_1eh7v_48",
69
- "Open": "_Open_1eh7v_51",
70
- "isNewSheet_true": "_isNewSheet_true_1eh7v_51",
71
- "Content": "_Content_1eh7v_51",
72
- "isNewSheet_false": "_isNewSheet_false_1eh7v_55",
73
- "BB": "_BB_1eh7v_55",
74
- "Tcate_normal": "_Tcate_normal_1eh7v_58",
75
- "BaseBody": "_BaseBody_1eh7v_62",
76
- "Tcate_drawer": "_Tcate_drawer_1eh7v_78",
77
- "Tpos_left": "_Tpos_left_1eh7v_78",
78
- "Tpos_right": "_Tpos_right_1eh7v_93",
79
- "Tpos_bottom": "_Tpos_bottom_1eh7v_108",
80
- "DragBar": "_DragBar_1eh7v_115",
81
- "Tcate_custom": "_Tcate_custom_1eh7v_123",
82
- "CustomSheet": "_CustomSheet_1eh7v_131",
83
- "GPT": "_GPT_1eh7v_134",
84
- "Col_1": "_Col_1_1eh7v_134",
85
- "Row_1": "_Row_1_1eh7v_134",
86
- "Row_4": "_Row_4_1eh7v_134",
87
- "Col_4": "_Col_4_1eh7v_134",
88
- "Row_2": "_Row_2_1eh7v_137",
89
- "Row_5": "_Row_5_1eh7v_137",
90
- "Col_2": "_Col_2_1eh7v_140",
91
- "Col_5": "_Col_5_1eh7v_140",
92
- "GPT_3": "_GPT_3_1eh7v_146",
93
- "GPT_18": "_GPT_18_1eh7v_146",
94
- "GPT_8": "_GPT_8_1eh7v_149",
95
- "GPT_23": "_GPT_23_1eh7v_149",
96
- "GPT_11": "_GPT_11_1eh7v_152",
97
- "GPT_14": "_GPT_14_1eh7v_152",
98
- "GPT_12": "_GPT_12_1eh7v_155",
99
- "GPT_15": "_GPT_15_1eh7v_155",
100
- "Col_3": "_Col_3_1eh7v_165"
60
+ "FixScroll": "_FixScroll_14cjf_1",
61
+ "Float": "_Float_14cjf_8",
62
+ "Wrapper": "_Wrapper_14cjf_16",
63
+ "Wrap": "_Wrap_14cjf_16",
64
+ "TapSensor": "_TapSensor_14cjf_30",
65
+ "TapContent": "_TapContent_14cjf_39",
66
+ "Hide": "_Hide_14cjf_43",
67
+ "Open": "_Open_14cjf_46",
68
+ "isNewSheet_true": "_isNewSheet_true_14cjf_46",
69
+ "Content": "_Content_14cjf_46",
70
+ "isNewSheet_false": "_isNewSheet_false_14cjf_50",
71
+ "BB": "_BB_14cjf_50",
72
+ "Tcate_normal": "_Tcate_normal_14cjf_53",
73
+ "BaseBody": "_BaseBody_14cjf_57",
74
+ "Tcate_drawer": "_Tcate_drawer_14cjf_73",
75
+ "Tpos_left": "_Tpos_left_14cjf_73",
76
+ "Tpos_right": "_Tpos_right_14cjf_88",
77
+ "Tpos_bottom": "_Tpos_bottom_14cjf_103",
78
+ "DragBar": "_DragBar_14cjf_110",
79
+ "Tcate_custom": "_Tcate_custom_14cjf_118",
80
+ "CustomSheet": "_CustomSheet_14cjf_126",
81
+ "GPT": "_GPT_14cjf_129",
82
+ "Col_1": "_Col_1_14cjf_129",
83
+ "Row_1": "_Row_1_14cjf_129",
84
+ "Row_4": "_Row_4_14cjf_129",
85
+ "Col_4": "_Col_4_14cjf_129",
86
+ "Row_2": "_Row_2_14cjf_132",
87
+ "Row_5": "_Row_5_14cjf_132",
88
+ "Col_2": "_Col_2_14cjf_135",
89
+ "Col_5": "_Col_5_14cjf_135",
90
+ "GPT_3": "_GPT_3_14cjf_141",
91
+ "GPT_18": "_GPT_18_14cjf_141",
92
+ "GPT_8": "_GPT_8_14cjf_144",
93
+ "GPT_23": "_GPT_23_14cjf_144",
94
+ "GPT_11": "_GPT_11_14cjf_147",
95
+ "GPT_14": "_GPT_14_14cjf_147",
96
+ "GPT_12": "_GPT_12_14cjf_150",
97
+ "GPT_15": "_GPT_15_14cjf_150",
98
+ "Col_3": "_Col_3_14cjf_160"
101
99
  };
102
100
 
103
101
  // src/@styles/componentClasses/f_loader.module.scss
@@ -1 +1 @@
1
- import"../chunk-VY3566IV.js";import{Fragment as d,jsx as e,jsxs as R}from"react/jsx-runtime";import{$$ as r,Config as o}from"./_";import l from"react";import C from"react-dom/client";import*as M from"react-router-dom";import y from"./useRecycle";import A from"../atoms/Box";import E from"../fn/Sheet";import b from"../fn/Snackbar";import k from"../fn/Loader/_";const x=a=>{let t=y.set("RootViewController_"+o.get().sessionUID);return l.createElement("amotify-app",{id:"appRoot_"+o.get().sessionUID},R(d,{children:[e(k.Wrapper,{}),e(b.Wrapper,{}),e(E.Wrapper,{}),e(A,{className:"AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin",children:e(M.BrowserRouter,{children:a.children},t)})]}))},c=a=>{let{shadowRoot:t,baseElement:u,reactElement:n,inlineCSS:f,appearances:h}=a,p=r(u);if(!p[0]||!n)return;t&&o.update.appRoot(t);let{roundness:s,themeColor:i,darkMode:m}=h||{};r.is.exist(s)&&o.update.roundness(s),r.is.exist(i)&&o.update.themeColor(i),r.is.exist(m)&&o.update.darkMode(m),C.createRoot(p[0]).render(R(d,{children:[e("style",{children:f}),e(x,{children:n})]}))};export{c as LaunchReactApp,l as React,c as default};
1
+ import"../chunk-VY3566IV.js";import{Fragment as f,jsx as e,jsxs as R}from"react/jsx-runtime";import{$$ as r,Config as o}from"./_";import l from"react";import E from"react-dom/client";import*as M from"react-router-dom";import y from"./useRecycle";import A from"../atoms/Box";import b from"../fn/Sheet";import g from"../fn/Snackbar";import k from"../fn/Loader/_";import d from"../fn/Effect/_";const x=a=>{let t=y.set("RootViewController_"+o.get().sessionUID);return l.createElement("amotify-app",{id:"appRoot_"+o.get().sessionUID},R(f,{children:[e(d.Pudding.Wrapper,{}),e(d.Ripple.Wrapper,{}),e(k.Wrapper,{}),e(g.Wrapper,{}),e(b.Wrapper,{}),e(A,{className:"AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin",children:e(M.BrowserRouter,{children:a.children},t)})]}))},c=a=>{let{shadowRoot:t,baseElement:u,reactElement:p,inlineCSS:h,appearances:C}=a,n=r(u);if(!n[0]||!p)return;t&&o.update.appRoot(t);let{roundness:s,themeColor:i,darkMode:m}=C||{};r.is.exist(s)&&o.update.roundness(s),r.is.exist(i)&&o.update.themeColor(i),r.is.exist(m)&&o.update.darkMode(m),E.createRoot(n[0]).render(R(f,{children:[e("style",{children:h}),e(x,{children:p})]}))};export{c as LaunchReactApp,l as React,c as default};
@@ -1 +1 @@
1
- import{b as i,c as t}from"../chunk-VY3566IV.js";import{$$ as s}from"./_";import{useRecycle as c}from"./useRecycle";import{ColorObjects as h,SetThemeColorTag as u}from"./color";const f=s.uuid.gen(),n=window.navigator.userAgent.toLowerCase(),a=n.indexOf("windows nt")!==-1?"windows":n.indexOf("android")!==-1?"android":n.indexOf("iphone")!==-1?"iPhone":n.indexOf("ipad")>-1||n.indexOf("macintosh")>-1&&"ontouchend"in document?"iPad":n.indexOf("mac os x")!==-1?"macOSX":"undefined",p=n.indexOf("msie")!==-1||n.indexOf("trident")!==-1?"ie":n.indexOf("edge")!==-1?"edge":n.indexOf("chrome")!==-1?"chrome":n.indexOf("safari")!==-1?"safari":n.indexOf("firefox")!==-1?"firefox":n.indexOf("opera")!==-1||n.indexOf("opr")!==-1?"opera":"undefined";let m={sessionUID:f,appRoot:document.body,darkMode:"light",themeColor:"comun",roundness:2,isSystemDarkmode:()=>window.matchMedia("(prefers-color-scheme: dark)").matches==!0,deviceIs:a,browserIs:p,isPhone:["Android","iPhone"].includes(a),isTouchDevice:window.ontouchstart!==void 0&&0<navigator.maxTouchPoints,isIOS:["iPhone","iPad"].includes(a),screen:{breakpoint:834,phonepoint:690,viewHeight:window.innerHeight,viewWidth:window.innerWidth,isBreakpoint:(e=834)=>window.innerWidth<=e,isPhonepoint:(e=690)=>window.innerWidth<=e}};const o={get:()=>m,set:e=>{m=i(i({},m),e)},update:{appRoot:e=>{console.log(e),o.set(t(i({},o.get()),{appRoot:e}))},themeColor:e=>{if(h.find(d=>d.key==e)||(e="comun"),e==o.get().themeColor)return;o.set(t(i({},o.get()),{themeColor:e}));let r=s(document.body);r.removeClass(r.findClass(/^bdsTC/)).addClass("bdsTC_"+e).callback(()=>{u()}),o.restart()},darkMode:e=>{if(["light","dark","dim","auto"].includes(e)||(e="light"),e==o.get().darkMode)return;let r=e=="auto"?o.get().isSystemDarkmode()?"dark":"light":e;o.set(t(i({},o.get()),{darkMode:r}));let d=s(document.body);d.removeClass(d.findClass(/^bdsDM/)).addClass("bdsDM_"+r),o.restart()},roundness:e=>{e>=0&&e<=5||(e=2),e!=o.get().roundness&&(o.set(t(i({},o.get()),{roundness:e})),o.restart())},screen:e=>{o.get().screen=i(i({},o.get().screen),e)}},restart:()=>{c.do("RootViewController_"+o.get().sessionUID)}};export{o as Config,o as default};
1
+ import{b as i,c as t}from"../chunk-VY3566IV.js";import{$$ as s}from"./_";import{useRecycle as c}from"./useRecycle";import{ColorObjects as h,SetThemeColorTag as u}from"./color";const f=s.uuid.gen(),n=window.navigator.userAgent.toLowerCase(),a=n.indexOf("windows nt")!==-1?"windows":n.indexOf("android")!==-1?"android":n.indexOf("iphone")!==-1?"iPhone":n.indexOf("ipad")>-1||n.indexOf("macintosh")>-1&&"ontouchend"in document?"iPad":n.indexOf("mac os x")!==-1?"macOSX":"undefined",p=n.indexOf("msie")!==-1||n.indexOf("trident")!==-1?"ie":n.indexOf("edge")!==-1?"edge":n.indexOf("chrome")!==-1?"chrome":n.indexOf("safari")!==-1?"safari":n.indexOf("firefox")!==-1?"firefox":n.indexOf("opera")!==-1||n.indexOf("opr")!==-1?"opera":"undefined";let m={sessionUID:f,appRoot:document.body,darkMode:"light",themeColor:"comun",roundness:2,isSystemDarkmode:()=>window.matchMedia("(prefers-color-scheme: dark)").matches==!0,deviceIs:a,browserIs:p,isPhone:["Android","iPhone"].includes(a),isTouchDevice:window.ontouchstart!==void 0&&0<navigator.maxTouchPoints,isIOS:["iPhone","iPad"].includes(a),screen:{breakpoint:834,phonepoint:690,viewHeight:window.innerHeight,viewWidth:window.innerWidth,isBreakpoint:(e=834)=>window.innerWidth<=e,isPhonepoint:(e=690)=>window.innerWidth<=e}};const o={get:()=>m,set:e=>{m=i(i({},m),e)},update:{appRoot:e=>{o.set(t(i({},o.get()),{appRoot:e}))},themeColor:e=>{if(h.find(d=>d.key==e)||(e="comun"),e==o.get().themeColor)return;o.set(t(i({},o.get()),{themeColor:e}));let r=s(document.body);r.removeClass(r.findClass(/^bdsTC/)).addClass("bdsTC_"+e).callback(()=>{u()}),o.restart()},darkMode:e=>{if(["light","dark","dim","auto"].includes(e)||(e="light"),e==o.get().darkMode)return;let r=e=="auto"?o.get().isSystemDarkmode()?"dark":"light":e;o.set(t(i({},o.get()),{darkMode:r}));let d=s(document.body);d.removeClass(d.findClass(/^bdsDM/)).addClass("bdsDM_"+r),o.restart()},roundness:e=>{e>=0&&e<=5||(e=2),e!=o.get().roundness&&(o.set(t(i({},o.get()),{roundness:e})),o.restart())},screen:e=>{o.get().screen=i(i({},o.get().screen),e)}},restart:()=>{c.do("RootViewController_"+o.get().sessionUID)}};export{o as Config,o as default};
@@ -1 +1,8 @@
1
- export {};
1
+ import { ReactElement } from '../../@declaration/_';
2
+ declare namespace Pudding {
3
+ type Methods = {
4
+ Wrapper(): ReactElement;
5
+ };
6
+ }
7
+ declare const Pudding: Pudding.Methods;
8
+ export { Pudding, Pudding as default };
@@ -1 +1 @@
1
- import{$$ as t,Config as s}from"../../@utils/_";import{EffectClasses as e}from"../../@styles/componentClasses/_";new class{constructor(){this.UserEvent()}UserEvent(){t(s.get()).addEvent({eventType:"click",target:".eff_pudding",callback:function(a){t(a.target).removeClass(e("PuddingEffect")).await(1).addClass(e("PuddingEffect")).await(510).removeClass(e("PuddingEffect"))}})}};
1
+ import"../../chunk-VY3566IV.js";import{$$ as t,Config as n}from"../../@utils/_";import{EffectClasses as e}from"../../@styles/componentClasses/_";const a={Wrapper:()=>(t(n.get().appRoot).addEvent({eventType:"click",target:".eff_pudding",callback:function(d){t(d.target).removeClass(e("PuddingEffect")).await(1).addClass(e("PuddingEffect")).await(510).removeClass(e("PuddingEffect"))}}),null)};export{a as Pudding,a as default};
@@ -1 +1,8 @@
1
- export {};
1
+ import { ReactElement } from '../../@declaration/_';
2
+ declare namespace Ripple {
3
+ type Methods = {
4
+ Wrapper(): ReactElement;
5
+ };
6
+ }
7
+ declare const Ripple: Ripple.Methods;
8
+ export { Ripple, Ripple as default };
@@ -1,3 +1,3 @@
1
- import{$$ as e,Config as v}from"../../@utils/_";import{EffectClasses as i}from"../../@styles/componentClasses/_";new class{constructor(){this.UserEvent()}UserEvent(){let u="eff_ripple";const f=t=>{let l=e.Time().ms,p=t.target,s=e(p);if(!s[0])return;let o=s.findClass(/^eff_ripple-/)[0];if(!o)return;let r=o.split("-")[1],a="RippleWrap-"+e.uuid.gen(),{left:c,top:E,height:b,width:h}=s.position(),{pageXOffset:g,pageYOffset:R}=e.getScreenSize(),{x:T,y}=e.getCursor(t),d=Math.min(h*1.5,300),C=Math.max(T-(c+g),0),M=Math.max(y-(E+R),0),m={RippleElement:s,startedAt:l,size:d};e(document).addEvent({eventID:"RippleMouseUp",eventType:"mouseup",callback:()=>{n(m)}}).addEvent({eventID:"RippleTouchEnd",eventType:"touchend",callback:()=>{setTimeout(()=>{n(m)},20)}}),e(s).addClass([i("RippleElement"),i("Color_"+r)]).append(`<div class="${i("RippleWrap")}" id="${a}">
2
- <div class="${i("Wave")}" />
3
- </div>`).addEvent({eventID:"RippleMouseOut",eventType:"mouseout",callback:I=>{n(m)}}).find("#"+a).find("."+i("Wave")).css({left:C,top:M}).await(10).css({height:d,width:d,opacity:".3",transition:".25s"})},n=t=>{let{RippleElement:l,startedAt:p,size:s}=t,r=e.Time().ms-p<=400?".75s":".55s",a=s*2.5;e(document).removeEvent(["RippleMouseUp","RippleTouchMove","RippleTouchEnd","RippleMouseOut"]),l.removeEvent(["RippleMouseOut"]).find("."+i("Wave")).css({height:a,width:a,opacity:"0",transition:r}).await(750).parent().callback(c=>{c.remove()})};e(v.get()).addEvent({eventType:"touchstart",target:"."+u,callback:t=>{f(t)}}).addEvent({eventType:"mousedown",target:"."+u,callback:t=>{v.get().isTouchDevice||f(t)}})}};
1
+ import"../../chunk-VY3566IV.js";import{$$ as e,Config as u}from"../../@utils/_";import{EffectClasses as a}from"../../@styles/componentClasses/_";let f="eff_ripple";const n={Start:t=>{let l=e.Time().ms,s=t.target,p=e(s);if(!p[0])return;let o=p.findClass(/^eff_ripple-/)[0];if(!o)return;let r=o.split("-")[1],i="RippleWrap-"+e.uuid.gen(),{left:d,top:E,height:b,width:h}=p.position(),{pageXOffset:R,pageYOffset:g}=e.getScreenSize(),{x:T,y}=e.getCursor(t),c=Math.min(h*1.5,300),M=Math.max(T-(d+R),0),C=Math.max(y-(E+g),0),m={RippleElement:p,startedAt:l,size:c};e(document).addEvent({eventID:"RippleMouseUp",eventType:"mouseup",callback:()=>{n.End(m)}}).addEvent({eventID:"RippleTouchEnd",eventType:"touchend",callback:()=>{setTimeout(()=>{n.End(m)},20)}}),e(p).addClass([a("RippleElement"),a("Color_"+r)]).append(`<div class="${a("RippleWrap")}" id="${i}">
2
+ <div class="${a("Wave")}" />
3
+ </div>`).addEvent({eventID:"RippleMouseOut",eventType:"mouseout",callback:I=>{n.End(m)}}).find("#"+i).find("."+a("Wave")).css({left:M,top:C}).await(10).css({height:c,width:c,opacity:".3",transition:".25s"})},End:t=>{let{RippleElement:l,startedAt:s,size:p}=t,r=e.Time().ms-s<=400?".75s":".55s",i=p*2.5;e(document).removeEvent(["RippleMouseUp","RippleTouchMove","RippleTouchEnd","RippleMouseOut"]),l.removeEvent(["RippleMouseOut"]).find("."+a("Wave")).css({height:i,width:i,opacity:"0",transition:r}).await(750).parent().callback(d=>{d.remove()})}},v={Wrapper:()=>(e(u.get().appRoot).addEvent({eventType:"touchstart",target:"."+f,callback:t=>{n.Start(t)}}).addEvent({eventType:"mousedown",target:"."+f,callback:t=>{u.get().isTouchDevice||n.Start(t)}}),null)};export{v as Ripple,v as default};
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { FadeIn, FadeUp } from './Fade';
3
- import './Pudding';
4
- import './Ripple';
3
+ import Ripple from './Ripple';
4
+ import Pudding from './Pudding';
5
5
  declare const Effect: {
6
+ Ripple: Ripple.Methods;
7
+ Pudding: Pudding.Methods;
6
8
  FadeIn: import("react").FC<FadeIn.Input>;
7
9
  FadeUp: import("react").FC<FadeUp.Input>;
8
10
  };
@@ -1 +1 @@
1
- import"../../chunk-VY3566IV.js";import{FadeIn as o,FadeUp as e}from"./Fade";import"./Pudding";import"./Ripple";const t={FadeIn:o,FadeUp:e};export{t as Effect,t as default};
1
+ import"../../chunk-VY3566IV.js";import{FadeIn as p,FadeUp as r}from"./Fade";import t from"./Ripple";import e from"./Pudding";const o={Ripple:t,Pudding:e,FadeIn:p,FadeUp:r};export{o as Effect,o as default};
@@ -1 +1 @@
1
- import{b as t,c as a,d as O}from"../../chunk-VY3566IV.js";import{jsx as n}from"react/jsx-runtime";import{useState as R}from"react";import{$$ as s}from"../../@utils/_";import M from"../../atoms/Box";import P from"../../atoms/FAI";import $ from"../../mols/Column";import j from"../Button";import _ from"../Tooltips";import{Wrapper as K,BoxWrapper as z,CommonEffects as G,DefaultStyles as Q}from"./core";import X from"./Parts";import{InputRichSelectClasses as Y,InputClasses as Z}from"../../@styles/componentClasses/_";function w(e){let{value:l,params:r}=e,{required:o,options:i}=r,p=[];return o&&(!i.length||i.length&&s.is.nullish(JSON.parse(l)))&&p.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!p.filter(({type:d})=>d=="invalid").length,notice:p}}const ee=e=>{let E=e,{tone:l,required:r,form:o,className:i,enableFormSubmit:p,enableUnSelected:d,checkValidationAtFirst:b,onChange:I,onKeyDown:V,onValidate:C,onUpdateValue:f,onUpdateValidValue:h,value:y="",options:x,placeholder:k,leftIndicator:le,rightIndicator:ne,leftIcon:oe,rightIcon:ae,componentID:ie,status_id:ue,cellStyles:A,sheetStyles:m,gravityPoint:F}=E,L=O(E,["tone","required","form","className","enableFormSubmit","enableUnSelected","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","options","placeholder","leftIndicator","rightIndicator","leftIcon","rightIcon","componentID","status_id","cellStyles","sheetStyles","gravityPoint"]),H={componentID:e.componentID||"",dataValue:y,eventType:"init",eventID:s.uuid.gen()},[D]=R(s.uuid.gen()),[u,S]=R(H),[v,J]=R({ok:!1,notice:[]});G({type:"richSelect",params:e,val_status:u,set_status:S,ExtraOverrideParams:{dataValue:y,formatValue:y},val_validate:v,set_validate:J,DefaultValidation:w,onUpdateValue:f,onUpdateValidValue:h});let T=n(M,{fontColor:"4.thin",textAlign:"left",children:k||"\u9078\u629E"});if(u.dataValue){let c=x.find(g=>g.type=="button"&&g.value==u.dataValue);c&&(T=c.selectedLabel||c.label)}return n(z,{val_status:u,set_status:S,val_validate:v,params:e,children:n("button",a(t({},L),{"data-form":o,"data-validation":v.ok,"data-component-id":u.componentID,"data-value":u.dataValue,"data-input-type":"richSelect",className:[i,Y("SelectLegend"),Z("InputCover")].join(" "),onClick:c=>{_.open({tipsID:D,parent:c.currentTarget,gravityPoint:F||13,close_option:{elementBlur:""},content:()=>{let g=x.map(U=>{let{type:W,value:q,label:B}=U;return W=="button"?n(j.Button.Clear.R,a(t({color:"cloud",borderRadius:0,fontColor:"2.normal",textAlign:"left",padding:0,onClick:()=>{S(a(t({},u),{dataValue:q,eventType:"update",eventID:s.uuid.gen()})),_.close(D)}},A),{children:B})):B});return n($,a(t({ssCardBox:!0,padding:[1,0],gap:0,overflow:"auto"},m),{freeCSS:t({minWidth:12*20,maxHeight:"90vh"},m==null?void 0:m.freeCSS),children:g}))}})},children:T}))})},te=e=>{let{value:l=null,placeholder:r,options:o=[]}=e,i=0,p=JSON.stringify(l),d=o.map(I=>{let{type:V,value:C}=I,f=JSON.stringify(C),h=f==p;return i|=Number(h),a(t({},I),{type:V||"button",value:f})});i||(l=null);let b=JSON.stringify(l);return n(ee,a(t({},e),{value:b,options:d}))},N=e=>{var r,o;e=t({},e),s.is.nullish(e.rightIcon)&&(e.rightIcon=n(X.RightIcon,a(t({flexType:"col"},e.rightIconStyles),{children:n(P.AngleDown,{})}))),e.rightIcon&&(e.paddingRight=(r=e.paddingRight)!=null?r:3),e.leftIcon&&(e.paddingLeft=(o=e.paddingLeft)!=null?o:3);let l=Q.Boxish(e);return delete l.rightIconStyles,n(K,{componentID:e.componentID,children:te,params:l})};export{N as RichSelect,N as default};
1
+ import{b as t,c as a,d as O}from"../../chunk-VY3566IV.js";import{jsx as n}from"react/jsx-runtime";import{useState as R}from"react";import{$$ as s}from"../../@utils/_";import M from"../../atoms/Box";import P from"../../atoms/FAI";import $ from"../../mols/Column";import j from"../Button";import _ from"../Tooltips";import{Wrapper as K,BoxWrapper as z,CommonEffects as G,DefaultStyles as Q}from"./core";import X from"./Parts";import{InputRichSelectClasses as Y,InputClasses as Z}from"../../@styles/componentClasses/_";function w(e){let{value:l,params:r}=e,{required:o,options:i}=r,p=[];return o&&(!i.length||i.length&&s.is.nullish(JSON.parse(l)))&&p.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!p.filter(({type:d})=>d=="invalid").length,notice:p}}const ee=e=>{let E=e,{tone:l,required:r,form:o,className:i,enableFormSubmit:p,enableUnSelected:d,checkValidationAtFirst:b,onChange:I,onKeyDown:V,onValidate:C,onUpdateValue:f,onUpdateValidValue:h,value:y="",options:x,placeholder:k,leftIndicator:le,rightIndicator:ne,leftIcon:oe,rightIcon:ae,componentID:ie,status_id:ue,cellStyles:A,sheetStyles:m,gravityPoint:F}=E,L=O(E,["tone","required","form","className","enableFormSubmit","enableUnSelected","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","options","placeholder","leftIndicator","rightIndicator","leftIcon","rightIcon","componentID","status_id","cellStyles","sheetStyles","gravityPoint"]),H={componentID:e.componentID||"",dataValue:y,eventType:"init",eventID:s.uuid.gen()},[D]=R(s.uuid.gen()),[u,S]=R(H),[v,J]=R({ok:!1,notice:[]});G({type:"richSelect",params:e,val_status:u,set_status:S,ExtraOverrideParams:{dataValue:y,formatValue:y},val_validate:v,set_validate:J,DefaultValidation:w,onUpdateValue:f,onUpdateValidValue:h});let T=n(M,{fontColor:"4.thin",textAlign:"left",children:k||"\u9078\u629E"});if(u.dataValue){let c=x.find(g=>g.type=="button"&&g.value==u.dataValue);c&&(T=c.selectedLabel||c.label)}return n(z,{val_status:u,set_status:S,val_validate:v,params:e,children:n("button",a(t({},L),{"data-form":o,"data-validation":v.ok,"data-component-id":u.componentID,"data-value":u.dataValue,"data-input-type":"richSelect",className:[i,Y("SelectLegend"),Z("InputCover")].join(" "),onClick:c=>{_.open({tipsID:D,parent:c.currentTarget,gravityPoint:F||13,close_option:{parentBlur:!1},content:()=>{let g=x.map(U=>{let{type:W,value:q,label:B}=U;return W=="button"?n(j.Button.Clear.R,a(t({color:"cloud",borderRadius:0,fontColor:"2.normal",textAlign:"left",padding:0,onClick:()=>{S(a(t({},u),{dataValue:q,eventType:"update",eventID:s.uuid.gen()})),_.close(D)}},A),{children:B})):B});return n($,a(t({ssCardBox:!0,padding:[1,0],gap:0,overflow:"auto"},m),{freeCSS:t({minWidth:12*20,maxHeight:"90vh"},m==null?void 0:m.freeCSS),children:g}))}})},children:T}))})},te=e=>{let{value:l=null,placeholder:r,options:o=[]}=e,i=0,p=JSON.stringify(l),d=o.map(I=>{let{type:V,value:C}=I,f=JSON.stringify(C),h=f==p;return i|=Number(h),a(t({},I),{type:V||"button",value:f})});i||(l=null);let b=JSON.stringify(l);return n(ee,a(t({},e),{value:b,options:d}))},N=e=>{var r,o;e=t({},e),s.is.nullish(e.rightIcon)&&(e.rightIcon=n(X.RightIcon,a(t({flexType:"col"},e.rightIconStyles),{children:n(P.AngleDown,{})}))),e.rightIcon&&(e.paddingRight=(r=e.paddingRight)!=null?r:3),e.leftIcon&&(e.paddingLeft=(o=e.paddingLeft)!=null?o:3);let l=Q.Boxish(e);return delete l.rightIconStyles,n(K,{componentID:e.componentID,children:te,params:l})};export{N as RichSelect,N as default};
@@ -1 +1 @@
1
- import{a as Y,b as o,c as _,d as H}from"../../../chunk-VY3566IV.js";import{Fragment as ke,jsx as T,jsxs as Z}from"react/jsx-runtime";import{useState as W,useEffect as X,useRef as re}from"react";import{$$ as b,$$fromRoot as ie,Config as z,useStore as O}from"../../../@utils/_";import ae from"../../../atoms/Box";import ne from"../../../atoms/FAI";import q from"../../Button";import G from"../../Tooltips";import{faClock as le}from"@fortawesome/free-solid-svg-icons/faClock";import{faCalendarAlt as oe}from"@fortawesome/free-solid-svg-icons/faCalendarAlt";import{Wrapper as se,BoxWrapper as ue,SubmitForm as me,CommonEffects as pe,DefaultStyles as ce}from"../core";import de from"../Hidden";import fe from"../Select";import he from"../Parts";import ge from"./Picker";const A=" ~ ",ye={clock:{defaultValue:"--:--",format:/^\d{2}\D\d{2}$/,ranges:[{type:"hour",from:0,length:2},{type:"minute",from:3,length:2}],sets:1},date:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2}],sets:1},week:{defaultValue:"----\u5E74\u7B2C--\u9031",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4,region:6},{type:"week",from:6,length:2,region:3}],sets:1},month:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:3}],sets:1},year:{defaultValue:"----\u5E74",format:/^\d{4}$/,ranges:[{type:"year",from:0,length:4,region:5}],sets:1},dates:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2,region:5},{type:"year",from:10+A.length,length:4},{type:"month",from:15+A.length,length:2},{type:"date",from:18+A.length,length:2}],sets:2},months:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:6},{type:"year",from:8+A.length,length:4},{type:"month",from:13+A.length,length:2,region:3}],sets:2},dateWareki:{defaultValue:"----\u5E74--\u6708--\u65E5",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"dateWareki",from:0,length:4,region:5},{type:"month",from:5,length:2,region:3},{type:"date",from:8,length:2,region:3}],sets:1}},P=e=>{let{restrict:l,value:v,era:t}=e,D=b.flatArray(v||""),{defaultValue:h,format:d,ranges:p,sets:i}=ye[l],u=[],n=l=="clock"?":":"/";for(let a=0;a<D.length;a++)D[a]=String(D[a]).replace(/\D/ig,n);for(let a=0;a<i;a++){let c=D[a]||"";if(!c.match(d))D[a]="",u.push(h);else{let x=h;c.split(/\D/).forEach((S,R)=>{if(R==0&&l=="dateWareki"){let g=Number(S);t!="year"&&(g>=2019?t=="reiwa"?g-=2018:t=="heisei"&&(g=31):g>=1989?t=="heisei"?g-=1988:t=="shouwa"&&(g=64):g>=1926?t=="shouwa"?g-=1925:t=="taisho"&&(g=15):g>=1912?t=="taisho"?g-=1911:t=="meiji"&&(g=45):g>=1868&&(g-=1867)),S=g.zeroEmbed(4)}x=x.replace(new RegExp("------------------".slice(0,S.length)),S)}),u.push(x)}}return{formatValue:u.join(A),dataValue:["dates","months"].includes(l)?D:D[0],ranges:p}};function ve(e){let{params:l}=e,{restrict:v,min:t,max:D,required:h}=l,d=[],p=b.flatArray(e.value),i={empty:!1,escalated:1,filled:!0,correct:!0,prohibited:!1};(()=>{let u=v=="clock"?":":"/";for(let n=0;n<p.length;n++)p[n]=String(p[n]).replace(/\D/ig,u);for(let n=0;n<p.length;n++){let a=p[n],c=p[n-1];a.removeLetters()||(i.empty=!0),n>0&&(i.escalated&=+(a>=c))}i.escalated&&(i.empty||(v.match(/clock/)?p.forEach(n=>{let[a,c]=n.split(/\D+/);!a||!c?i.filled=!1:(Number(a)>23||Number(c)>59)&&(i.correct=!1)}):v.match(/date/)?p.forEach(n=>{let[a,c,x]=n.split(/\D+/);if(!a||!c||!x)i.filled=!1;else{let S=b.Time(n);(!S.validate||n!=S.toFormatYMD())&&(i.correct=!1)}}):v.match(/week/)?p.forEach(n=>{let[a,c]=n.split(/\D+/);if(!a||!c)i.filled=!1;else{let x=b.Time(a+"/01/01").weekday,R=b.Time(a+"/01/0"+(7-x+1)).addWeek(Number(c)-1);a!=String(R.year)&&(i.correct=!1)}}):v.match(/month/)?p.forEach(n=>{let[a,c]=n.split(/\D+/);!a||!c?i.filled=!1:b.Time([a,c,"01"].join("/")).validate||(i.correct=!1)}):v.match(/year/),i.filled&&i.correct&&p.forEach(n=>{{let a=Number(String(n).replace(/\D/ig,""));if(t&&Number(String(t).replace(/\D/ig,""))>a&&(i.prohibited=!0),D){let c=Number(String(D).replace(/\D/ig,""));a>c&&(i.prohibited=!0)}}})))})();{let{empty:u,escalated:n,filled:a,correct:c,prohibited:x}=i;u&&h&&(d=[{type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}]),n||d.push({type:"invalid",label:"\u6642\u7CFB\u5217\u3092\u6B63\u3057\u304F\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),c||d.push({type:"invalid",label:"\u7121\u52B9\u306A\u5024\u304C\u5165\u529B\u3055\u308C\u3066\u3044\u307E\u3059"}),a||d.push({type:"invalid",label:"\u6700\u5F8C\u307E\u3067\u5024\u3092\u57CB\u3081\u3066\u304F\u3060\u3055\u3044"}),x&&d.push({type:"invalid",label:Z(ke,{children:[T(ae,{children:"\u5165\u529B\u7BC4\u56F2\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u307E\u3059"}),"[",t||"\u4E0B\u9650\u7121\u3057","] ~ [",D||"\u4E0A\u9650\u7121\u3057","]"]})})}return{ok:!d.filter(({type:u})=>u=="invalid").length,notice:d}}const Q={picker:{launch:e=>{let l=e.tipsID||b.uuid.gen();G.open(_(o({gravityPoint:e.gravityPoint||24,padding:"1/2",tipsID:l},e),{close_option:o({aroundClick:!0,elementBlur:!1},e.close_option),content:T(ge,{restrict:e.restrict,min:e.min,max:e.max,era:e.era,defaultValue:e.defaultValue,tipsID:l,onValueUpdate:(v,t)=>{e.onValueUpdate(v,t)}})}))},remove:e=>{G.close(e)}}},De=e=>{let U=e,{tone:l,required:v,restrict:t="clock",componentID:D,era:h,form:d,name:p,min:i,max:u,className:n,enableFormSubmit:a,checkValidationAtFirst:c,onKeyDown:x,onValidate:S,onUpdateValue:R,onUpdateValidValue:g,value:$="",leftIndicator:J,rightIndicator:F}=U,f=H(U,["tone","required","restrict","componentID","era","form","name","min","max","className","enableFormSubmit","checkValidationAtFirst","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator"]),[r,C]=W(h),[s,V]=W(_(o({componentID:e.componentID||""},P({restrict:t,value:$,era:r})),{eventType:"init",eventID:b.uuid.gen()})),[y,M]=W({ok:!1,notice:[]}),[I,k]=W({active:!1,index:0,prevIndex:-1});pe({type:"time",params:e,val_status:s,set_status:V,val_validate:y,set_validate:M,DefaultValidation:ve,onUpdateValue:R,onUpdateValidValue:g,ExtraOverrideParams:o({},P({restrict:t,value:$,era:r}))});const E=re(!1);return X(()=>{if(E.current){V(o(o({},s),P({restrict:t,value:s.dataValue,era:r})));let m=O.get("refreshEra_"+s.componentID);m&&m.refreshEra(r)}else E.current=!0},[r]),O.update({key:s.componentID,value:{openPicker:()=>{e.disabled||Q.picker.launch({parent:"#Picker-"+s.componentID,tipsID:"PickerTips-"+s.componentID,restrict:t,min:i,max:u,defaultValue:s.dataValue,era:r,onValueUpdate:(m,w)=>{V(_(o(o({},s),P({restrict:t,value:m,era:w})),{eventType:"update",eventID:b.uuid.gen()})),C(w)}})},resetEra:m=>{C(m),V(_(o(o({},s),P({restrict:t,value:"",era:r})),{eventType:"update",eventID:b.uuid.gen()}))}}}),X(()=>{let{index:m,active:w}=I;if(w){m=Math.max(m,0),m=Math.min(m,s.ranges.length-1);let{from:B,length:L}=s.ranges[m],j=ie("#"+e.id)[0];j&&j.setSelectionRange(B,B+L)}},[I]),Z(ue,{val_status:s,set_status:V,val_validate:y,params:e,children:[T(de,{name:p,"data-input-type":"time","data-form":d,"data-validation":y.ok,componentID:s.componentID,"data-value":JSON.stringify(["dates","months"].includes(t)?!s.dataValue[0]||!s.dataValue[1]?null:s.dataValue:s.dataValue||null)}),z.get().isTouchDevice?T(q.Button.Plain,{className:n,freeCSS:{textAlign:"left"},children:s.formatValue,onClick:m=>{let w=O.get(s.componentID);w&&w.openPicker(),m.stopPropagation()}}):T("input",o({type:"text",inputMode:"numeric","data-input-type":"time","data-form-name":d,value:s.formatValue,className:n,tabIndex:z.get().isTouchDevice?-1:0,onKeyDown:m=>{Ie({restrict:t,event:m,val_era:r,val_status:s,set_status:V,val_focus:I,set_focus:k}),x&&x(m),a&&me(m)},onKeyUp:m=>{m.key=="Tab"&&k(_(o({},I),{active:!0}))},onClick:m=>{let w=m.target.selectionEnd,B=0;s.ranges.forEach((L,j)=>{let{from:K,length:ee,region:te}=L;K<=w&&w<=K+(te||ee)&&(B=j)}),k(_(o({},I),{active:!0,index:B})),m.preventDefault()},onChange:()=>{}},f))]})},Ie=e=>{let{val_era:l,restrict:v,event:t,val_status:D,set_status:h,val_focus:d,set_focus:p}=e,{key:i,shiftKey:u,ctrlKey:n,metaKey:a}=t,c=n||a,{selectionStart:x,selectionEnd:S}=t.target,{index:R,prevIndex:g}=d,{ranges:$,formatValue:J}=D,F=$.length-1;if(["Tab","ArrowLeft","ArrowRight"].includes(i)){let f=0;if(i=="Tab"){let r=+!u*2-1;if(f=d.index+r,f<0||f>F)return}else{let r=i=="ArrowLeft"?-1:i=="ArrowRight"?1:0;c||x==0&&S==String(D.formatValue).length?f=r==1?F:0:f=Math.max(0,Math.min(R+r,F))}p(_(o({},d),{index:f,prevIndex:R})),t.preventDefault()}if(["Backspace","ArrowUp","ArrowDown","0","1","2","3","4","5","6","7","8","9"].includes(i)){t.preventDefault();let f=R;f=Math.max(f,0),f=Math.min(f,F);let{type:r,from:C,length:s}=$[f],V=J.slice(C,C+s),y;if(i=="Backspace")y="------".slice(0,s);else if(["ArrowUp","ArrowDown"].includes(i)){let M=i=="ArrowUp"?1:-1;V=V|0,y=V+M;let[I,k,E]=r=="dateWareki"?l=="year"?[0,2999,4]:l=="reiwa"?[1,2999,4]:l=="heisei"?[1,31,4]:l=="shouwa"?[1,64,4]:l=="taisho"?[1,15,4]:l=="meiji"?[1,45,4]:[0,0,0]:r=="minute"?[0,59,2]:r=="hour"?[0,23,2]:r=="date"?[1,31,2]:r=="week"?[1,53,2]:r=="month"?[1,12,2]:r=="year"?[0,2999,4]:[0,0,0];y>k?y=I:y<I&&(y=k),y=Number(y).zeroEmbed(E)}else if(["0","1","2","3","4","5","6","7","8","9"].includes(i)){let M=V|0,I=i,k=`${M}${I}`;if(g!=R&&g>=0&&(M=0,k="0"+I),r=="year"||r=="dateWareki"&&l=="year")Number(k)>1e4?y=I:y=k,(y|0)>1e3&&f++;else if(["hour","minute","date","week","month"].includes(r)||r=="dateWareki"&&l!="year"){let E=r=="dateWareki"?l=="reiwa"?100:l=="heisei"?31:l=="shouwa"?64:l=="taisho"?15:l=="meiji"?45:0:r=="minute"?59:r=="hour"?23:r=="date"?31:r=="week"?53:r=="month"?12:0;y=(k|0)>E?I:k,(Number(I)>Number(String(E)[0])||V=="0000".slice(0,String(E).length)&&(k!="0000".slice(0,String(E).length)||["minute","hour"].includes(r)&&g==R)||(k|0)>=Y(10,String(E).length-1))&&f++}r=="year"||r=="dateWareki"?y=(y|0).zeroEmbed(4):y=(y|0).zeroEmbed(2)}{let M=String(J).partReplace(C,String(y)),I=M.split(A).map(k=>k.replace(/(^\D|\D$)/,"").split(/\D+/).join(v=="clock"?":":"/").replace(/(^\D|\D$)/,""));if(v=="dateWareki"){let k=I[0].split(/\D/),[E,U,m]=k;k.length==3&&E&&(I=[[Number(E)-1+Number({year:1,reiwa:2019,heisei:1989,shouwa:1926,taisho:1912,meiji:1868}[l]),U,m].join("/")])}f=Math.max(f,0),f=Math.min(f,F),h(_(o({},D),{dataValue:["dates","months"].includes(v)?I:I[0],formatValue:M,eventType:"update",eventID:b.uuid.gen()})),p(_(o({},d),{index:f,prevIndex:d.index}))}}},N={Origin:e=>{e=o({},e);let[l]=W(e.componentID||b.uuid.gen());if(e.componentID=l,b.is.nullish(e.rightIndicator)){let v=(e.restrict||"").match(/clock/)?le:oe;e.rightIndicator=T(he.RightIndicator,{padding:0,children:T(q.Button.Sub.R,{color:"cloud",border:"unset",padding:[0,1],fontColor:"theme",borderRadius:"inherit",backgroundColor:"inherit",flexCenter:!0,height:1,ssEffectsOnActive:["ripple.cloud"],tabIndex:-1,id:"Picker-"+e.componentID,onClick:()=>{let t=O.get(e.componentID);t&&t.openPicker()},children:T(ne,{icon:v})})})}return T(se,{componentID:e.componentID,children:De,params:ce.Boxish(e)})},Clock:e=>T(N.Origin,o({restrict:"clock",era:"clock"},e)),Date:e=>T(N.Origin,o({restrict:"date"},e)),Week:e=>T(N.Origin,o({restrict:"week"},e)),Month:e=>T(N.Origin,o({restrict:"month"},e)),Year:e=>T(N.Origin,o({restrict:"year"},e)),DateWareki:e=>{e=o({},e);let[l]=W(e.componentID||b.uuid.gen());e.componentID=l;let{defaultEra:v="wareki"}=e,[t,D]=W((()=>{let h="year";if(v=="wareki"&&(h="reiwa",e.value)){let[d,p,i]=e.value.split(/\D/);if(d&&p&&i){let u=Number(d);u>=2019?(u-=2019,h="reiwa"):u>=1989?(u-=1989,h="heisei"):u>=1926?(u-=1926,h="shouwa"):u>=1912?(u-=1912,h="taisho"):u>=1868&&(u-=1868,h="meiji"),u+=1}}return h})());return X(()=>{O.set({key:"refreshEra_"+l,value:{refreshEra:h=>{D(h)}}})},[]),T(N.Origin,_(o({restrict:"dateWareki",leftIndicator:T(fe,{enableUnSelected:!1,value:t,tone:e.tone,override:"force",flexCenter:!0,borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",height:1,freeCSS:{whiteSpace:"nowrap"},options:[{value:"year",label:"\u897F\u66A6"},{value:"reiwa",label:"\u4EE4\u548C"},{value:"heisei",label:"\u5E73\u6210"},{value:"shouwa",label:"\u662D\u548C"},{value:"taisho",label:"\u5927\u6B63"},{value:"meiji",label:"\u660E\u6CBB"}],onUpdateValidValue:({value:h,eventType:d})=>{D(h);let p=O.get(e.componentID);p&&p.resetEra&&p.resetEra(h)}})},e),{era:t}))},Periods:{Date:e=>T(N.Origin,o({restrict:"dates"},e)),Month:e=>T(N.Origin,o({restrict:"months"},e))},fn:Q};export{N as Time,N as default};
1
+ import{a as Y,b as o,c as _,d as H}from"../../../chunk-VY3566IV.js";import{Fragment as ke,jsx as T,jsxs as Z}from"react/jsx-runtime";import{useState as W,useEffect as X,useRef as re}from"react";import{$$ as b,$$fromRoot as ie,Config as z,useStore as O}from"../../../@utils/_";import ae from"../../../atoms/Box";import ne from"../../../atoms/FAI";import q from"../../Button";import G from"../../Tooltips";import{faClock as le}from"@fortawesome/free-solid-svg-icons/faClock";import{faCalendarAlt as oe}from"@fortawesome/free-solid-svg-icons/faCalendarAlt";import{Wrapper as se,BoxWrapper as ue,SubmitForm as pe,CommonEffects as me,DefaultStyles as ce}from"../core";import de from"../Hidden";import fe from"../Select";import he from"../Parts";import ge from"./Picker";const A=" ~ ",ye={clock:{defaultValue:"--:--",format:/^\d{2}\D\d{2}$/,ranges:[{type:"hour",from:0,length:2},{type:"minute",from:3,length:2}],sets:1},date:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2}],sets:1},week:{defaultValue:"----\u5E74\u7B2C--\u9031",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4,region:6},{type:"week",from:6,length:2,region:3}],sets:1},month:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:3}],sets:1},year:{defaultValue:"----\u5E74",format:/^\d{4}$/,ranges:[{type:"year",from:0,length:4,region:5}],sets:1},dates:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2,region:5},{type:"year",from:10+A.length,length:4},{type:"month",from:15+A.length,length:2},{type:"date",from:18+A.length,length:2}],sets:2},months:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:6},{type:"year",from:8+A.length,length:4},{type:"month",from:13+A.length,length:2,region:3}],sets:2},dateWareki:{defaultValue:"----\u5E74--\u6708--\u65E5",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"dateWareki",from:0,length:4,region:5},{type:"month",from:5,length:2,region:3},{type:"date",from:8,length:2,region:3}],sets:1}},P=e=>{let{restrict:l,value:v,era:t}=e,D=b.flatArray(v||""),{defaultValue:h,format:d,ranges:m,sets:i}=ye[l],u=[],n=l=="clock"?":":"/";for(let a=0;a<D.length;a++)D[a]=String(D[a]).replace(/\D/ig,n);for(let a=0;a<i;a++){let c=D[a]||"";if(!c.match(d))D[a]="",u.push(h);else{let x=h;c.split(/\D/).forEach((S,R)=>{if(R==0&&l=="dateWareki"){let g=Number(S);t!="year"&&(g>=2019?t=="reiwa"?g-=2018:t=="heisei"&&(g=31):g>=1989?t=="heisei"?g-=1988:t=="shouwa"&&(g=64):g>=1926?t=="shouwa"?g-=1925:t=="taisho"&&(g=15):g>=1912?t=="taisho"?g-=1911:t=="meiji"&&(g=45):g>=1868&&(g-=1867)),S=g.zeroEmbed(4)}x=x.replace(new RegExp("------------------".slice(0,S.length)),S)}),u.push(x)}}return{formatValue:u.join(A),dataValue:["dates","months"].includes(l)?D:D[0],ranges:m}};function ve(e){let{params:l}=e,{restrict:v,min:t,max:D,required:h}=l,d=[],m=b.flatArray(e.value),i={empty:!1,escalated:1,filled:!0,correct:!0,prohibited:!1};(()=>{let u=v=="clock"?":":"/";for(let n=0;n<m.length;n++)m[n]=String(m[n]).replace(/\D/ig,u);for(let n=0;n<m.length;n++){let a=m[n],c=m[n-1];a.removeLetters()||(i.empty=!0),n>0&&(i.escalated&=+(a>=c))}i.escalated&&(i.empty||(v.match(/clock/)?m.forEach(n=>{let[a,c]=n.split(/\D+/);!a||!c?i.filled=!1:(Number(a)>23||Number(c)>59)&&(i.correct=!1)}):v.match(/date/)?m.forEach(n=>{let[a,c,x]=n.split(/\D+/);if(!a||!c||!x)i.filled=!1;else{let S=b.Time(n);(!S.validate||n!=S.toFormatYMD())&&(i.correct=!1)}}):v.match(/week/)?m.forEach(n=>{let[a,c]=n.split(/\D+/);if(!a||!c)i.filled=!1;else{let x=b.Time(a+"/01/01").weekday,R=b.Time(a+"/01/0"+(7-x+1)).addWeek(Number(c)-1);a!=String(R.year)&&(i.correct=!1)}}):v.match(/month/)?m.forEach(n=>{let[a,c]=n.split(/\D+/);!a||!c?i.filled=!1:b.Time([a,c,"01"].join("/")).validate||(i.correct=!1)}):v.match(/year/),i.filled&&i.correct&&m.forEach(n=>{{let a=Number(String(n).replace(/\D/ig,""));if(t&&Number(String(t).replace(/\D/ig,""))>a&&(i.prohibited=!0),D){let c=Number(String(D).replace(/\D/ig,""));a>c&&(i.prohibited=!0)}}})))})();{let{empty:u,escalated:n,filled:a,correct:c,prohibited:x}=i;u&&h&&(d=[{type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}]),n||d.push({type:"invalid",label:"\u6642\u7CFB\u5217\u3092\u6B63\u3057\u304F\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),c||d.push({type:"invalid",label:"\u7121\u52B9\u306A\u5024\u304C\u5165\u529B\u3055\u308C\u3066\u3044\u307E\u3059"}),a||d.push({type:"invalid",label:"\u6700\u5F8C\u307E\u3067\u5024\u3092\u57CB\u3081\u3066\u304F\u3060\u3055\u3044"}),x&&d.push({type:"invalid",label:Z(ke,{children:[T(ae,{children:"\u5165\u529B\u7BC4\u56F2\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u307E\u3059"}),"[",t||"\u4E0B\u9650\u7121\u3057","] ~ [",D||"\u4E0A\u9650\u7121\u3057","]"]})})}return{ok:!d.filter(({type:u})=>u=="invalid").length,notice:d}}const Q={picker:{launch:e=>{let l=e.tipsID||b.uuid.gen();G.open(_(o({gravityPoint:e.gravityPoint||24,padding:"1/2",tipsID:l},e),{close_option:o({aroundClick:!0,parentBlur:!1},e.close_option),content:T(ge,{restrict:e.restrict,min:e.min,max:e.max,era:e.era,defaultValue:e.defaultValue,tipsID:l,onValueUpdate:(v,t)=>{e.onValueUpdate(v,t)}})}))},remove:e=>{G.close(e)}}},De=e=>{let U=e,{tone:l,required:v,restrict:t="clock",componentID:D,era:h,form:d,name:m,min:i,max:u,className:n,enableFormSubmit:a,checkValidationAtFirst:c,onKeyDown:x,onValidate:S,onUpdateValue:R,onUpdateValidValue:g,value:$="",leftIndicator:J,rightIndicator:F}=U,f=H(U,["tone","required","restrict","componentID","era","form","name","min","max","className","enableFormSubmit","checkValidationAtFirst","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator"]),[r,C]=W(h),[s,V]=W(_(o({componentID:e.componentID||""},P({restrict:t,value:$,era:r})),{eventType:"init",eventID:b.uuid.gen()})),[y,M]=W({ok:!1,notice:[]}),[I,k]=W({active:!1,index:0,prevIndex:-1});me({type:"time",params:e,val_status:s,set_status:V,val_validate:y,set_validate:M,DefaultValidation:ve,onUpdateValue:R,onUpdateValidValue:g,ExtraOverrideParams:o({},P({restrict:t,value:$,era:r}))});const E=re(!1);return X(()=>{if(E.current){V(o(o({},s),P({restrict:t,value:s.dataValue,era:r})));let p=O.get("refreshEra_"+s.componentID);p&&p.refreshEra(r)}else E.current=!0},[r]),O.update({key:s.componentID,value:{openPicker:()=>{e.disabled||Q.picker.launch({parent:"#Picker-"+s.componentID,tipsID:"PickerTips-"+s.componentID,restrict:t,min:i,max:u,defaultValue:s.dataValue,era:r,onValueUpdate:(p,w)=>{V(_(o(o({},s),P({restrict:t,value:p,era:w})),{eventType:"update",eventID:b.uuid.gen()})),C(w)}})},resetEra:p=>{C(p),V(_(o(o({},s),P({restrict:t,value:"",era:r})),{eventType:"update",eventID:b.uuid.gen()}))}}}),X(()=>{let{index:p,active:w}=I;if(w){p=Math.max(p,0),p=Math.min(p,s.ranges.length-1);let{from:B,length:L}=s.ranges[p],j=ie("#"+e.id)[0];j&&j.setSelectionRange(B,B+L)}},[I]),Z(ue,{val_status:s,set_status:V,val_validate:y,params:e,children:[T(de,{name:m,"data-input-type":"time","data-form":d,"data-validation":y.ok,componentID:s.componentID,"data-value":JSON.stringify(["dates","months"].includes(t)?!s.dataValue[0]||!s.dataValue[1]?null:s.dataValue:s.dataValue||null)}),z.get().isTouchDevice?T(q.Button.Plain,{className:n,freeCSS:{textAlign:"left"},children:s.formatValue,onClick:p=>{let w=O.get(s.componentID);w&&w.openPicker(),p.stopPropagation()}}):T("input",o({type:"text",inputMode:"numeric","data-input-type":"time","data-form-name":d,value:s.formatValue,className:n,tabIndex:z.get().isTouchDevice?-1:0,onKeyDown:p=>{Ie({restrict:t,event:p,val_era:r,val_status:s,set_status:V,val_focus:I,set_focus:k}),x&&x(p),a&&pe(p)},onKeyUp:p=>{p.key=="Tab"&&k(_(o({},I),{active:!0}))},onClick:p=>{let w=p.target.selectionEnd,B=0;s.ranges.forEach((L,j)=>{let{from:K,length:ee,region:te}=L;K<=w&&w<=K+(te||ee)&&(B=j)}),k(_(o({},I),{active:!0,index:B})),p.preventDefault()},onChange:()=>{}},f))]})},Ie=e=>{let{val_era:l,restrict:v,event:t,val_status:D,set_status:h,val_focus:d,set_focus:m}=e,{key:i,shiftKey:u,ctrlKey:n,metaKey:a}=t,c=n||a,{selectionStart:x,selectionEnd:S}=t.target,{index:R,prevIndex:g}=d,{ranges:$,formatValue:J}=D,F=$.length-1;if(["Tab","ArrowLeft","ArrowRight"].includes(i)){let f=0;if(i=="Tab"){let r=+!u*2-1;if(f=d.index+r,f<0||f>F)return}else{let r=i=="ArrowLeft"?-1:i=="ArrowRight"?1:0;c||x==0&&S==String(D.formatValue).length?f=r==1?F:0:f=Math.max(0,Math.min(R+r,F))}m(_(o({},d),{index:f,prevIndex:R})),t.preventDefault()}if(["Backspace","ArrowUp","ArrowDown","0","1","2","3","4","5","6","7","8","9"].includes(i)){t.preventDefault();let f=R;f=Math.max(f,0),f=Math.min(f,F);let{type:r,from:C,length:s}=$[f],V=J.slice(C,C+s),y;if(i=="Backspace")y="------".slice(0,s);else if(["ArrowUp","ArrowDown"].includes(i)){let M=i=="ArrowUp"?1:-1;V=V|0,y=V+M;let[I,k,E]=r=="dateWareki"?l=="year"?[0,2999,4]:l=="reiwa"?[1,2999,4]:l=="heisei"?[1,31,4]:l=="shouwa"?[1,64,4]:l=="taisho"?[1,15,4]:l=="meiji"?[1,45,4]:[0,0,0]:r=="minute"?[0,59,2]:r=="hour"?[0,23,2]:r=="date"?[1,31,2]:r=="week"?[1,53,2]:r=="month"?[1,12,2]:r=="year"?[0,2999,4]:[0,0,0];y>k?y=I:y<I&&(y=k),y=Number(y).zeroEmbed(E)}else if(["0","1","2","3","4","5","6","7","8","9"].includes(i)){let M=V|0,I=i,k=`${M}${I}`;if(g!=R&&g>=0&&(M=0,k="0"+I),r=="year"||r=="dateWareki"&&l=="year")Number(k)>1e4?y=I:y=k,(y|0)>1e3&&f++;else if(["hour","minute","date","week","month"].includes(r)||r=="dateWareki"&&l!="year"){let E=r=="dateWareki"?l=="reiwa"?100:l=="heisei"?31:l=="shouwa"?64:l=="taisho"?15:l=="meiji"?45:0:r=="minute"?59:r=="hour"?23:r=="date"?31:r=="week"?53:r=="month"?12:0;y=(k|0)>E?I:k,(Number(I)>Number(String(E)[0])||V=="0000".slice(0,String(E).length)&&(k!="0000".slice(0,String(E).length)||["minute","hour"].includes(r)&&g==R)||(k|0)>=Y(10,String(E).length-1))&&f++}r=="year"||r=="dateWareki"?y=(y|0).zeroEmbed(4):y=(y|0).zeroEmbed(2)}{let M=String(J).partReplace(C,String(y)),I=M.split(A).map(k=>k.replace(/(^\D|\D$)/,"").split(/\D+/).join(v=="clock"?":":"/").replace(/(^\D|\D$)/,""));if(v=="dateWareki"){let k=I[0].split(/\D/),[E,U,p]=k;k.length==3&&E&&(I=[[Number(E)-1+Number({year:1,reiwa:2019,heisei:1989,shouwa:1926,taisho:1912,meiji:1868}[l]),U,p].join("/")])}f=Math.max(f,0),f=Math.min(f,F),h(_(o({},D),{dataValue:["dates","months"].includes(v)?I:I[0],formatValue:M,eventType:"update",eventID:b.uuid.gen()})),m(_(o({},d),{index:f,prevIndex:d.index}))}}},N={Origin:e=>{e=o({},e);let[l]=W(e.componentID||b.uuid.gen());if(e.componentID=l,b.is.nullish(e.rightIndicator)){let v=(e.restrict||"").match(/clock/)?le:oe;e.rightIndicator=T(he.RightIndicator,{padding:0,children:T(q.Button.Sub.R,{color:"cloud",border:"unset",padding:[0,1],fontColor:"theme",borderRadius:"inherit",backgroundColor:"inherit",flexCenter:!0,height:1,ssEffectsOnActive:["ripple.cloud"],tabIndex:-1,id:"Picker-"+e.componentID,onClick:()=>{let t=O.get(e.componentID);t&&t.openPicker()},children:T(ne,{icon:v})})})}return T(se,{componentID:e.componentID,children:De,params:ce.Boxish(e)})},Clock:e=>T(N.Origin,o({restrict:"clock",era:"clock"},e)),Date:e=>T(N.Origin,o({restrict:"date"},e)),Week:e=>T(N.Origin,o({restrict:"week"},e)),Month:e=>T(N.Origin,o({restrict:"month"},e)),Year:e=>T(N.Origin,o({restrict:"year"},e)),DateWareki:e=>{e=o({},e);let[l]=W(e.componentID||b.uuid.gen());e.componentID=l;let{defaultEra:v="wareki"}=e,[t,D]=W((()=>{let h="year";if(v=="wareki"&&(h="reiwa",e.value)){let[d,m,i]=e.value.split(/\D/);if(d&&m&&i){let u=Number(d);u>=2019?(u-=2019,h="reiwa"):u>=1989?(u-=1989,h="heisei"):u>=1926?(u-=1926,h="shouwa"):u>=1912?(u-=1912,h="taisho"):u>=1868&&(u-=1868,h="meiji"),u+=1}}return h})());return X(()=>{O.set({key:"refreshEra_"+l,value:{refreshEra:h=>{D(h)}}})},[]),T(N.Origin,_(o({restrict:"dateWareki",leftIndicator:T(fe,{enableUnSelected:!1,value:t,tone:e.tone,override:"force",flexCenter:!0,borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",height:1,freeCSS:{whiteSpace:"nowrap"},options:[{value:"year",label:"\u897F\u66A6"},{value:"reiwa",label:"\u4EE4\u548C"},{value:"heisei",label:"\u5E73\u6210"},{value:"shouwa",label:"\u662D\u548C"},{value:"taisho",label:"\u5927\u6B63"},{value:"meiji",label:"\u660E\u6CBB"}],onUpdateValidValue:({value:h,eventType:d})=>{D(h);let m=O.get(e.componentID);m&&m.resetEra&&m.resetEra(h)}})},e),{era:t}))},Periods:{Date:e=>T(N.Origin,o({restrict:"dates"},e)),Month:e=>T(N.Origin,o({restrict:"months"},e))},fn:Q};export{N as Time,N as default};
@@ -38,7 +38,7 @@ declare namespace Sheet {
38
38
  pageTransit?: boolean;
39
39
  escapeKeyDown?: boolean;
40
40
  aroundClick?: boolean;
41
- elementBlur?: $$.Args;
41
+ parentBlur?: boolean;
42
42
  };
43
43
  type Sheet = 'normal.topLeft' | 'normal.topCenter' | 'normal.topRight' | 'normal.middleLeft' | 'normal.middleCenter' | 'normal.middleRight' | 'normal.bottomLeft' | 'normal.bottomCenter' | 'normal.bottomRight' | 'drawer.left' | 'drawer.right' | 'drawer.bottom' | 'custom' | 'image';
44
44
  type Normal = UniParams & {
package/dist/fn/Sheet.js CHANGED
@@ -1 +1 @@
1
- import{b as h,c as B,d as M}from"../chunk-VY3566IV.js";import{jsx as n,jsxs as j}from"react/jsx-runtime";import{useState as z,useEffect as H,useRef as Z}from"react";import{$$ as a,$$fromRoot as L,Config as F,useStore as T}from"../@utils/_";import R from"../atoms/Box";import V from"../atoms/Img";import X from"../atoms/FAI";import J from"../atoms/Flex";import G from"../mols/Column";import $ from"../mols/Row";import Y from"./Button";import Q from"./Layout/_";import q from"./Input/_";import{SheetClasses as l}from"../@styles/componentClasses/_";const d={mainSheetScrolls:0,subSheetLength:0,currentIndex:0,contents:{},Wrapper:()=>{let[e,t]=z(a.uuid.gen());H(()=>{T.set({key:"Sheet-"+F.get().sessionUID,value:{refresh:()=>{t(a.uuid.gen())}}}),a(document).addEvent({eventType:"keyup",callback:function(s){let{key:o,metaKey:f}=s;if(o=="Escape"||o==","&&f){let g=Object.values(d.contents).filter(S=>S.isOpen);if(!g.length)return;let r=g.reduce((S,w)=>S.created_at.value>w.created_at.value?S:w);x.close(r.params.sheetID,o)}}}).addEvent({eventType:"click",callback:function(s){var g;let o=Object.values(d.contents).filter(r=>r.params.type=="custom");!o.length||o.find(r=>{let{params:S}=r,w=S.parent,I=s.target;return!!(w==I||a(w).find(I).length)})||(g=s.target)!=null&&g.closest("."+l("CustomSheet"))||o.forEach(r=>{var S;(S=r.params.close_option)!=null&&S.aroundClick&&x.close(r.params.sheetID)})}})},[]);let m=Object.entries(d.contents).map(([s,o])=>n(R,{id:"Sheet-"+s,children:n(d.Core,h({isOpen:o.isOpen},o.params))}));return n(R,{className:["AMOTIFY_be",l("Wrapper")].join(" "),children:m})},addNewSheet:function(e){if(e=B(h({sheetGroups:e.sheetGroups||[],backgroundEffect:!0,overwrap:e.type=="custom",hold_state:!1},e),{sheetID:e.sheetID||a.uuid.gen(),close_option:h({pageTransit:!0,escapeKeyDown:!0,aroundClick:e.type=="custom"},e.close_option)}),this.contents[e.sheetID]){let m=T.get(e.sheetID);m&&m.refresh&&m.refresh(e,!0);return}this.contents[e.sheetID]={isOpen:!0,hold_state:!!e.hold_state,params:e,created_at:a.Time()};let t=T.get("Sheet-"+F.get().sessionUID);t&&t.refresh()},Core:e=>{var y;let[t]=z(a.uuid.gen()),[m,s]=z(e),[o,f]=z(e.isOpen),{type:g,sheetID:r,openAfter:S,closeAfter:w}=m,I=!e.overwrap,v=d.Types[{"normal.topLeft":"Normal","normal.topCenter":"Normal","normal.topRight":"Normal","normal.middleLeft":"Normal","normal.middleCenter":"Normal","normal.middleRight":"Normal","normal.bottomLeft":"Normal","normal.bottomCenter":"Normal","normal.bottomRight":"Normal",image:"Normal","drawer.left":"Edge","drawer.right":"Edge","drawer.bottom":"Bottom",custom:"Custom"}[g]];H(()=>{T.set({key:r,value:{refresh:(i,c)=>{s(i),f(c!=null?c:!1)},resize:i=>{if(g=="drawer.bottom"){let c=T.get(t);c&&c.resize&&c.resize(i)}else(m.type.includes("normal")||m.type.includes("drawer"))&&s(B(h({},m),{size:i}))},close:i=>{d.contents[r].isOpen=!1,f(!1)},open:()=>{d.contents[r].isOpen=!0,f(!0)}}})}),H(()=>{d.currentIndex++;let{close_option:i}=e;a.scope(()=>{if(!(i!=null&&i.elementBlur))return;let c=L(i.elementBlur);c[0]&&c.addEvent({eventID:"SheetClosation-"+r,eventType:"mouseout",callback:()=>{x.close(r),a().removeEvent("SheetClosation-"+r)}})})},[]),H(()=>{a.scope(()=>{if(I&&e.backgroundEffect)if(d.subSheetLength=d.subSheetLength+(o?1:-1),o){let i=a("html");if(d.subSheetLength==1){let c=i[0].scrollTop;d.mainSheetScrolls=c}F.get().isPhone||(i.abort().addClass(l("FixHeight")).callback(()=>{L(".AMOTIFY_be_root").addClass(l("FixScroll"))[0].scrollTop=d.mainSheetScrolls}).addClass([l("FloatMainSheet"),l("Type_"+g)])[0].scrollTop=0)}else{if(d.subSheetLength!=0||F.get().isPhone)return;a("html").abort().removeClass(l("FloatMainSheet")).await(251).removeClass(l("FixHeight")).callback(c=>{c[0].scrollTop=d.mainSheetScrolls|0,L(".AMOTIFY_be_root")[0].scrollTop=0})}}),a.scope(()=>{let i=L("#"+t);o?a(i).abort().await(10).removeClass(l("Hide")).await(10).addClass(l("Open")).callback(()=>{d.contents[r].isOpen=!0,S&&S()}):a(i).abort().await(10).removeClass(l("Open")).await(251).addClass(l("Hide")).callback(()=>{if(!w||w(),e.hold_state)return;delete d.contents[r];let c=T.get("Sheet-"+F.get().sessionUID);c&&c.refresh(),a().removeEvent("SheetClosation-"+r)})})},[o]);let[_,C]=g.split(".");return n(R,{className:[l("Wrap"),l("Tcate_"+_),l("Tpos_"+C),l("isNewSheet_"+I)].join(" "),width:1,height:0,ssAbsoluteCovered:!0,freeCSS:{zIndex:d.currentIndex+1},id:t,children:j(G,{className:l("Content"),gap:0,height:"viewHeight",overflow:"auto",transition:"middle",children:[I?n(d.TapSensor,{sheetID:r,delegateAroundClick:(y=e.close_option)==null?void 0:y.aroundClick}):null,n(v,h({componentID:t},m))]})})},Types:{Normal:e=>{let c=e,{sheetID:t,sheetGroups:m,content:s,className:o="",type:f,size:g="R",freeCSS:r,openAfter:S,hold_state:w,overwrap:I}=c,v=M(c,["sheetID","sheetGroups","content","className","type","size","freeCSS","openAfter","hold_state","overwrap"]),[_,C]=f.split("."),y={},i=[];return C.match(/top/)?(i.push("top"),y.marginBottom="auto"):C.match(/middle/)?(i.push("center"),y.marginTop="auto",y.marginBottom="auto"):C.match(/bottom/)&&(i.push("bottom"),y.marginTop="auto"),C.match(/left/i)?(i.push("left"),y.marginRight="auto"):C.match(/center/i)?(i.push("center"),y.marginLeft="auto",y.marginRight="auto"):C.match(/right/i)&&(i.push("right"),y.marginLeft="auto"),n(R,B(h(h({className:[l("BB"),o].join(" "),transition:"long",opacity:"trans"},y),v),{freeCSS:h({width:{S:"26rem",R:"36rem",L:"44rem","2L":"60rem","3L":"72rem",MAX:"95vw"}[g],maxWidth:"96vw",transformOrigin:i.join(" ")},r),children:a.is.function(s)?n(s,{}):s}))},Edge:e=>{let _=e,{sheetID:t,sheetGroups:m,type:s,content:o,className:f="",size:g="R",freeCSS:r,close_option:S,hold_state:w,overwrap:I}=_,v=M(_,["sheetID","sheetGroups","type","content","className","size","freeCSS","close_option","hold_state","overwrap"]);return n(R,B(h(h({opacity:"trans",transition:"long",position:"relative",backgroundColor:"1.layer.base",flexSizing:"none",minHeight:"viewHeight",boxShadow:"3.remark",className:[l("BB"),f].join(" ")},s=="drawer.right"?{marginLeft:"auto"}:s=="drawer.left"?{marginRight:"auto"}:{}),v),{freeCSS:h({width:{S:"20rem",R:"27rem",L:"32rem","2L":"40rem","3L":"58rem",MAX:"95vw"}[g]},r),children:a.is.function(o)?n(o,{}):o}))},Bottom:e=>{let W=e,{componentID:t,sheetID:m,sheetGroups:s,content:o,size:f="R",sizeChanged:g,baseStyles:r,close_option:{swipeDown:S=!0}={},hold_state:w,overwrap:I}=W,v=M(W,["componentID","sheetID","sheetGroups","content","size","sizeChanged","baseStyles","close_option","hold_state","overwrap"]),_=a.getScreenSize(),C=[0,.2,.6,.95],y={ZERO:0,S:1,R:2,L:3},[i,c]=z(f),[P,A]=z({process:!1,processStart:0,originY:0,originValue:0,viewHeight:0,value:C[y[f]]});T.update({key:t,value:{val_edit:P,resize:k=>{let p=C[y[k]];A(B(h({},P),{value:p})),c(k)}}});const D={Start:k=>{a(document).addEvent({eventID:"BottomSheetMouseMove",eventType:"mousemove",callback:D.Move}).addEvent({eventID:"BottomSheetTouchMove",eventType:"touchmove",callback:D.Move}).addEvent({eventID:"BottomSheetMouseUp",eventType:"mouseup",callback:D.End}).addEvent({eventID:"BottomSheetTouchEnd",eventType:"touchend",callback:D.End});let p=a.getCursor(k),u=B(h({},P),{process:!0,processStart:new Date().getTime(),originY:p.y,originValue:P.value,viewHeight:a.getScreenSize().height});T.update({key:t,value:{val_edit:u}}),A(u)},Move:k=>{var N;let p=(N=T.get(t))==null?void 0:N.val_edit;if(!p.process)return;let E=(a.getCursor(k).y-p.originY)/p.viewHeight,b=p.originValue-E;if(b>.95)b=.95+(b-.95)*.5;else if(b<.2){let O=.2-b;O-=.1,b=.1+(.1-O)*.5}A(B(h({},p),{value:b}))},End:k=>{var b;let p=(b=T.get(t))==null?void 0:b.val_edit;if(!p.process)return;a(document).removeEvent(["BottomSheetMouseMove","BottomSheetTouchMove","BottomSheetMouseUp","BottomSheetTouchEnd"]);let u=0;if(p.value<.1||(p.value<.5?u=1:p.value>.75?u=3:u=2),new Date().getTime()-p.processStart<300){let N=a.getCursor(k).y-p.originY;if(Math.abs(N)>=20){let O=+(N<0)*2-1;u+=O,u=Math.min(Math.max(u,0),C.length-1)}}u==0&&(S||(u=1)),c(["ZERO","S","R","L"][u]),A(B(h({},p),{value:C[u],process:!1}))}},U=Z(!1);return H(()=>{U.current?i=="ZERO"?S&&x.close(m):setTimeout(()=>{e.sizeChanged&&e.sizeChanged(i)},250):U.current=!0},[i]),n(R,{className:l("BB"),margin:[0,"auto"],marginTop:"auto",opacity:"trans",width:1,transition:"long",freeCSS:h({maxWidth:12*60,height:_.height*P.value},P.process?{transition:"0s"}:{}),children:j(G,B(h({gap:0,flexSizing:"none",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",border:!0,borderBottom:"unset",boxShadow:"3.remark",position:"relative",overflow:"hidden",height:1},r),{children:[j($.Separate,{padding:"1/2",backgroundColor:"1.layer.base",position:"relative",freeCSS:{userSelect:"none"},children:[n($.Center,{flexSizing:0,padding:"2/3",onMouseDown:D.Start,onTouchStart:D.Start,ssPushable:!0,isRounded:!0,freeCSS:{cursor:"grab",userSelect:"none"},children:n(R,{unitWidth:6,unitHeight:"1/2",backgroundColor:"5.layer.darker",isRounded:!0,className:l("DragBar")})}),n(Y.Button.Sub.R,{color:"cloud",ssSphere:2,onClick:()=>{x.close(m)},children:n(X.Times,{})})]}),n(R,B(h({backgroundColor:"1.layer.base",flexSizing:0,overflow:"auto"},v),{children:a.is.function(o)?n(o,{}):o}))]}))})},Custom:e=>{let k=e,{sheetID:t,sheetGroups:m,parent:s,gravityPoint:o=22,content:f,close_option:g,hold_state:r,overwrap:S,openAfter:w,closeAfter:I}=k,v=M(k,["sheetID","sheetGroups","parent","gravityPoint","content","close_option","hold_state","overwrap","openAfter","closeAfter"]),[_]=z(a.uuid.gen()),C=L(s),y=L('[data-sheet-id="'+_+'"]'),i=L('[data-sheet-content="'+_+'"]');o=o;let c=o%5||5,P=Math.ceil(o/5);const A=()=>{let p={},{top:u,right:E,bottom:b,left:N,height:O,width:K}=C.position();return[1,2].includes(c)?p.left=N:c==3?p.left=N+K/2:[4,5].includes(c)&&(p.left=E),o<=10?p.top=u:o<=15?p.top=u+O/2:o<=25&&(p.top=b),p};let[D,U]=z(A());const W=()=>{let p=y.position(),u=i.position(),E=a.getScreenSize(),b=h({},D);return u.top<0&&(b.top=p.top-u.top),u.left<0&&(b.left=p.left-u.left),u.right>E.width&&(b.left=p.left-(u.right-E.width)),u.bottom>E.height&&(b.top=p.top-(u.bottom-E.height)),b};return H(()=>{y.await(10).addClass(l("Open")).await(250).callback(()=>{U(W())}),T.update({key:"customSheet-"+e.sheetID,value:{reposition:()=>{setTimeout(()=>{U(W())},200)}}})},[]),C[0]?n(R,{className:[l("BB"),l("CustomSheet")].join(" "),"data-sheet-id":_,transition:"long",opacity:"trans",position:"absolute",width:0,height:0,flexCenter:!0,freeCSS:D,children:n(J,{className:[l("GPT"),l("GPT_"+o),l("Col_"+c),l("Row_"+P)].join(" "),position:"absolute",children:n(R,B(h({flexSizing:"none","data-sheet-content":_,maxHeight:"viewHeight",overflow:"auto",padding:1},v),{freeCSS:h({maxWidth:"98vw"},v.freeCSS),children:a.is.function(f)?n(f,{}):f}))})}):null}},TapSensor:e=>n(Y.Button.Plain,{className:l("TapSensor"),onClick:()=>{var t;(t=e.delegateAroundClick)!=null&&t&&x.close(e.sheetID)},freeCSS:{cursor:"default"},children:n(R,{className:l("TapContent")})})},x={Wrapper:()=>n(d.Wrapper,{}),open:e=>{if(e.sheetID=(e.sheetID||"").replace(/\./g,"-"),e.type=="image"){let t=e,{type:m,sheetID:s=a.uuid.gen(),src:o}=t,f=M(t,["type","sheetID","src"]);x.open(B(h({type:"normal.topCenter",sheetID:s,backgroundColor:"trans",boxShadow:"none"},f),{close_option:h({},e.close_option),freeCSS:{maxWidth:"96vw",transformOrigin:"top"},content:()=>{let[g]=z(a.flatArray(o)),[r,S]=z(0),w=[],I=[];return g.forEach((v,_)=>{w.push({value:_,label:n(V,{src:a.flatArray(v)[0],width:"auto",height:1,freeCSS:{maxHeight:12*3}})}),I.push(n(V,{width:1,height:"auto",src:a.flatArray(v)[0]}))}),j(G,{gap:0,children:[j($.Separate,{gap:2,padding:1,backgroundColor:"1.layer.base",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",children:[n(q.Radio,{tone:"border",icon:!1,value:r,override:"force",horizontalAlign:"center",onUpdateValidValue:({value:v})=>{S(v[0])},cellStyles:{borderWidth:2,padding:"1/3"},options:w}),n(Y.Button.Sub.R,{color:"cloud",ssSphere:3,fontSize:"4.thirdTitle",onClick:()=>{x.close(s)},children:n(X.Times,{})})]}),n(Q.SwipeView,{slideIndex:r,options:{loop:g.length>1,onSlideCallback:v=>{S(v)}},slides:I,wrapper:v=>n(R,{borderBottomLeftRadius:"1.tone.primary",borderBottomRightRadius:"1.tone.primary",children:v})})]})}}));return}d.addNewSheet(e)},refresh:(e,t)=>{e.sheetID=(e.sheetID||"").replace(/\./g,"-");let m=T.get(e.sheetID);m&&m.refresh&&m.refresh(e,t)},resize:e=>{e.sheetID=(e.sheetID||"").replace(/\./g,"-");let t=T.get(e.sheetID);t&&t.resize&&t.resize(e.size)},reposition:e=>{let t=T.get("customSheet-"+e);t&&t.reposition&&t.reposition()},close:function(e,t,m){var o;let s;if(e=e==null?void 0:e.replace(/\./g,"-"),s=d.contents[e],!!s&&!(t=="Escape"&&!((o=s.params.close_option)!=null&&o.escapeKeyDown))){let{params:f}=s,{sheetID:g}=f,r=T.get(g);r&&r.close&&r.close(m)}},closeGroup:e=>{var t;e=(e||"").replace(/\./g,"-");for(let[m,s]of Object.entries(d.contents))(t=s.params.sheetGroups)!=null&&t.includes(e)&&x.close(m)},closeAll:e=>{var t;for(let[m,s]of Object.entries(d.contents))e&&((t=s.params.close_option)==null?void 0:t.pageTransit)==!1||x.close(m,"pageTransit",!0)},Comps:{Body:e=>n(R,h({className:l("BaseBody"),backgroundColor:"1.layer.base",borderRadius:"1.tone.primary",position:"relative",boxShadow:"3.remark",transition:"long"},e))}};export{x as Sheet,x as default};
1
+ import{b as h,c as B,d as M}from"../chunk-VY3566IV.js";import{jsx as i,jsxs as F}from"react/jsx-runtime";import{useState as z,useEffect as W,useRef as Z}from"react";import{$$ as a,$$fromRoot as P,Config as U,useStore as T}from"../@utils/_";import R from"../atoms/Box";import $ from"../atoms/Img";import X from"../atoms/FAI";import J from"../atoms/Flex";import G from"../mols/Column";import Y from"../mols/Row";import V from"./Button";import Q from"./Layout/_";import q from"./Input/_";import{SheetClasses as c}from"../@styles/componentClasses/_";const d={mainSheetScrolls:0,subSheetLength:0,currentIndex:0,contents:{},addNewSheet:function(e){if(e=B(h({sheetGroups:e.sheetGroups||[],backgroundEffect:!0,overwrap:e.type=="custom",hold_state:!1},e),{sheetID:e.sheetID||a.uuid.gen(),close_option:h({pageTransit:!0,escapeKeyDown:!0,aroundClick:e.type=="custom"},e.close_option)}),this.contents[e.sheetID]){let n=T.get(e.sheetID);n&&n.refresh&&n.refresh(e,!0);return}this.contents[e.sheetID]={isOpen:!0,hold_state:!!e.hold_state,params:e,created_at:a.Time()};let t=T.get("Sheet-"+U.get().sessionUID);t&&t.refresh()},Wrapper:()=>{let[e,t]=z(a.uuid.gen());W(()=>{T.set({key:"Sheet-"+U.get().sessionUID,value:{refresh:()=>{t(a.uuid.gen())}}}),a(U.get().appRoot).addEvent({eventType:"keyup",callback:function(s){let{key:o,metaKey:f}=s;if(o=="Escape"||o==","&&f){let v=Object.values(d.contents).filter(S=>S.isOpen);if(!v.length)return;let r=v.reduce((S,w)=>S.created_at.value>w.created_at.value?S:w);x.close(r.params.sheetID,o)}}}).addEvent({eventType:"click",callback:function(s){var v;let o=Object.values(d.contents).filter(r=>r.params.type=="custom");!o.length||o.find(r=>{let{params:S}=r,w=S.parent,_=s.target,g=P(w)[0];return!!(w==_||g===_||a(g).find(_).length)})||(v=s.target)!=null&&v.closest("."+c("CustomSheet"))||o.forEach(r=>{var S;(S=r.params.close_option)!=null&&S.aroundClick&&x.close(r.params.sheetID)})}})},[]);let n=Object.entries(d.contents).map(([s,o])=>i(R,{id:"Sheet-"+s,children:i(d.Core,h({isOpen:o.isOpen},o.params),s)}));return i(R,{className:["AMOTIFY_be",c("Wrapper")].join(" "),children:n})},Core:e=>{var y;let[t]=z(a.uuid.gen()),[n,s]=z(e),[o,f]=z(!0),{type:v,sheetID:r,openAfter:S,closeAfter:w}=n,_=!e.overwrap,g=d.Types[{"normal.topLeft":"Normal","normal.topCenter":"Normal","normal.topRight":"Normal","normal.middleLeft":"Normal","normal.middleCenter":"Normal","normal.middleRight":"Normal","normal.bottomLeft":"Normal","normal.bottomCenter":"Normal","normal.bottomRight":"Normal",image:"Normal","drawer.left":"Edge","drawer.right":"Edge","drawer.bottom":"Bottom",custom:"Custom"}[v]];W(()=>{T.set({key:r,value:{refresh:(p,m)=>{s(p),f(m!=null?m:!1)},resize:p=>{if(v=="drawer.bottom"){let m=T.get(t);m&&m.resize&&m.resize(p)}else(n.type.includes("normal")||n.type.includes("drawer"))&&s(B(h({},n),{size:p}))},close:p=>{d.contents[r].isOpen=!1,f(!1)},open:()=>{d.contents[r].isOpen=!0,f(!0)}}})}),W(()=>{a.scope(()=>{if(_&&e.backgroundEffect){if(d.subSheetLength=d.subSheetLength+(o?1:-1),o){let p=a("html");if(d.subSheetLength==1){let m=p[0].scrollTop;d.mainSheetScrolls=m}U.get().isPhone||(p.callback(()=>{P(".AMOTIFY_be_root").addClass(c("FixScroll")).callback(m=>{m[0].scrollTop=d.mainSheetScrolls}).await(40).addClass(c("Float"))})[0].scrollTop=0);return}d.subSheetLength==0&&(U.get().isPhone||P(".AMOTIFY_be_root").removeClass(c("Float")).await(251).removeClass(c("FixScroll")).callback(()=>{a("html")[0].scrollTop=d.mainSheetScrolls|0,P(".AMOTIFY_be_root")[0].scrollTop=0}))}}),a.scope(()=>{let p=P("#"+t);if(o){p.await(10).removeClass(c("Hide")).await(10).addClass(c("Open")).callback(()=>{d.contents[r].isOpen=!0,S&&S()});return}p.await(10).removeClass(c("Open")).await(251).addClass(c("Hide")).callback(()=>{if(!w||w(),d.contents[r].isOpen=!1,e.hold_state)return;delete d.contents[r];let m=T.get("Sheet-"+U.get().sessionUID);m&&m.refresh()})})},[o]),W(()=>{d.currentIndex++;let{close_option:p}=e;a.scope(()=>{if(!(p!=null&&p.parentBlur))return;let m=a(n.parent);m[0]&&m.addEvent({eventID:"SheetClosation-"+r,eventType:"mouseout",callback:()=>{m.removeEvent("SheetClosation-"+r),f(!1)}})})},[]);let[I,C]=v.split(".");return i(R,{className:[c("Wrap"),c("Tcate_"+I),c("Tpos_"+C),c("isNewSheet_"+_)].join(" "),width:1,height:0,ssAbsoluteCovered:!0,freeCSS:{zIndex:d.currentIndex+1},id:t,children:F(G,{className:c("Content"),gap:0,height:"viewHeight",overflow:"auto",transition:"middle",children:[_?i(d.TapSensor,{sheetID:r,delegateAroundClick:(y=e.close_option)==null?void 0:y.aroundClick}):null,i(g,h({componentID:t},n))]})},t)},Types:{Normal:e=>{let m=e,{sheetID:t,sheetGroups:n,content:s,className:o="",type:f,size:v="R",freeCSS:r,openAfter:S,hold_state:w,overwrap:_}=m,g=M(m,["sheetID","sheetGroups","content","className","type","size","freeCSS","openAfter","hold_state","overwrap"]),[I,C]=f.split("."),y={},p=[];return C.match(/top/)?(p.push("top"),y.marginBottom="auto"):C.match(/middle/)?(p.push("center"),y.marginTop="auto",y.marginBottom="auto"):C.match(/bottom/)&&(p.push("bottom"),y.marginTop="auto"),C.match(/left/i)?(p.push("left"),y.marginRight="auto"):C.match(/center/i)?(p.push("center"),y.marginLeft="auto",y.marginRight="auto"):C.match(/right/i)&&(p.push("right"),y.marginLeft="auto"),i(R,B(h(h({className:[c("BB"),o].join(" "),transition:"long",opacity:"trans"},y),g),{freeCSS:h({width:{S:"26rem",R:"36rem",L:"44rem","2L":"60rem","3L":"72rem",MAX:"95vw"}[v],maxWidth:"96vw",transformOrigin:p.join(" ")},r),children:a.is.function(s)?i(s,{}):s}))},Edge:e=>{let I=e,{sheetID:t,sheetGroups:n,type:s,content:o,className:f="",size:v="R",freeCSS:r,close_option:S,hold_state:w,overwrap:_}=I,g=M(I,["sheetID","sheetGroups","type","content","className","size","freeCSS","close_option","hold_state","overwrap"]);return i(R,B(h(h({opacity:"trans",transition:"long",position:"relative",backgroundColor:"1.layer.base",flexSizing:"none",minHeight:"viewHeight",boxShadow:"3.remark",className:[c("BB"),f].join(" ")},s=="drawer.right"?{marginLeft:"auto"}:s=="drawer.left"?{marginRight:"auto"}:{}),g),{freeCSS:h({width:{S:"20rem",R:"27rem",L:"32rem","2L":"40rem","3L":"58rem",MAX:"95vw"}[v]},r),children:a.is.function(o)?i(o,{}):o}))},Bottom:e=>{let j=e,{componentID:t,sheetID:n,sheetGroups:s,content:o,size:f="R",sizeChanged:v,baseStyles:r,close_option:{swipeDown:S=!0}={},hold_state:w,overwrap:_}=j,g=M(j,["componentID","sheetID","sheetGroups","content","size","sizeChanged","baseStyles","close_option","hold_state","overwrap"]),I=a.getScreenSize(),C=[0,.2,.6,.95],y={ZERO:0,S:1,R:2,L:3},[p,m]=z(f),[N,A]=z({process:!1,processStart:0,originY:0,originValue:0,viewHeight:0,value:C[y[f]]});T.update({key:t,value:{val_edit:N,resize:k=>{let l=C[y[k]];A(B(h({},N),{value:l})),m(k)}}});const D={Start:k=>{a(document).addEvent({eventID:"BottomSheetMouseMove",eventType:"mousemove",callback:D.Move}).addEvent({eventID:"BottomSheetTouchMove",eventType:"touchmove",callback:D.Move}).addEvent({eventID:"BottomSheetMouseUp",eventType:"mouseup",callback:D.End}).addEvent({eventID:"BottomSheetTouchEnd",eventType:"touchend",callback:D.End});let l=a.getCursor(k),u=B(h({},N),{process:!0,processStart:new Date().getTime(),originY:l.y,originValue:N.value,viewHeight:a.getScreenSize().height});T.update({key:t,value:{val_edit:u}}),A(u)},Move:k=>{var O;let l=(O=T.get(t))==null?void 0:O.val_edit;if(!l.process)return;let E=(a.getCursor(k).y-l.originY)/l.viewHeight,b=l.originValue-E;if(b>.95)b=.95+(b-.95)*.5;else if(b<.2){let L=.2-b;L-=.1,b=.1+(.1-L)*.5}A(B(h({},l),{value:b}))},End:k=>{var b;let l=(b=T.get(t))==null?void 0:b.val_edit;if(!l.process)return;a(document).removeEvent(["BottomSheetMouseMove","BottomSheetTouchMove","BottomSheetMouseUp","BottomSheetTouchEnd"]);let u=0;if(l.value<.1||(l.value<.5?u=1:l.value>.75?u=3:u=2),new Date().getTime()-l.processStart<300){let O=a.getCursor(k).y-l.originY;if(Math.abs(O)>=20){let L=+(O<0)*2-1;u+=L,u=Math.min(Math.max(u,0),C.length-1)}}u==0&&(S||(u=1)),m(["ZERO","S","R","L"][u]),A(B(h({},l),{value:C[u],process:!1}))}},H=Z(!1);return W(()=>{H.current?p=="ZERO"?S&&x.close(n):setTimeout(()=>{e.sizeChanged&&e.sizeChanged(p)},250):H.current=!0},[p]),i(R,{className:c("BB"),margin:[0,"auto"],marginTop:"auto",opacity:"trans",width:1,transition:"long",freeCSS:h({maxWidth:12*60,height:I.height*N.value},N.process?{transition:"0s"}:{}),children:F(G,B(h({gap:0,flexSizing:"none",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",border:!0,borderBottom:"unset",boxShadow:"3.remark",position:"relative",overflow:"hidden",height:1},r),{children:[F(Y.Separate,{padding:"1/2",backgroundColor:"1.layer.base",position:"relative",freeCSS:{userSelect:"none"},children:[i(Y.Center,{flexSizing:0,padding:"2/3",onMouseDown:D.Start,onTouchStart:D.Start,ssPushable:!0,isRounded:!0,freeCSS:{cursor:"grab",userSelect:"none"},children:i(R,{unitWidth:6,unitHeight:"1/2",backgroundColor:"5.layer.darker",isRounded:!0,className:c("DragBar")})}),i(V.Button.Sub.R,{color:"cloud",ssSphere:2,onClick:()=>{x.close(n)},children:i(X.Times,{})})]}),i(R,B(h({backgroundColor:"1.layer.base",flexSizing:0,overflow:"auto"},g),{children:a.is.function(o)?i(o,{}):o}))]}))})},Custom:e=>{let k=e,{sheetID:t,sheetGroups:n,parent:s,gravityPoint:o=22,content:f,close_option:v,hold_state:r,overwrap:S,openAfter:w,closeAfter:_}=k,g=M(k,["sheetID","sheetGroups","parent","gravityPoint","content","close_option","hold_state","overwrap","openAfter","closeAfter"]),[I]=z(a.uuid.gen()),C=a.is.element(s)?a(s):P(s),y='[data-sheet-id="'+I+'"]',p='[data-sheet-content="'+I+'"]';o=o;let m=o%5||5,N=Math.ceil(o/5);const A=()=>{let l={},{top:u,right:E,bottom:b,left:O,height:L,width:K}=C.position();return[1,2].includes(m)?l.left=O:m==3?l.left=O+K/2:[4,5].includes(m)&&(l.left=E),o<=10?l.top=u:o<=15?l.top=u+L/2:o<=25&&(l.top=b),l};let[D,H]=z(A());const j=()=>{let l=P(y).position(),u=P(p).position(),E=a.getScreenSize(),b=h({},D);return u.top<0&&(b.top=l.top-u.top),u.left<0&&(b.left=l.left-u.left),u.right>E.width&&(b.left=l.left-(u.right-E.width)),u.bottom>E.height&&(b.top=l.top-(u.bottom-E.height)),b};return W(()=>{P(y).await(10).addClass(c("Open")).await(250).callback(()=>{H(j())}),T.update({key:"customSheet-"+e.sheetID,value:{reposition:()=>{setTimeout(()=>{H(j())},200)}}})},[]),C[0]?i(R,{className:[c("BB"),c("CustomSheet")].join(" "),"data-sheet-id":I,transition:"long",opacity:"trans",position:"absolute",width:0,height:0,flexCenter:!0,freeCSS:D,children:i(J,{className:[c("GPT"),c("GPT_"+o),c("Col_"+m),c("Row_"+N)].join(" "),position:"absolute",children:i(R,B(h({flexSizing:"none","data-sheet-content":I,maxHeight:"viewHeight",overflow:"auto",padding:1},g),{freeCSS:h({maxWidth:"98vw"},g.freeCSS),children:a.is.function(f)?i(f,{}):f}))})}):null}},TapSensor:e=>i(V.Button.Plain,{className:c("TapSensor"),onClick:()=>{var t;(t=e.delegateAroundClick)!=null&&t&&x.close(e.sheetID)},freeCSS:{cursor:"default"},children:i(R,{className:c("TapContent")})})},x={Wrapper:()=>i(d.Wrapper,{}),open:e=>{if(e.sheetID=(e.sheetID||"").replace(/\./g,"-"),e.type=="image"){let n=e.sheetID||a.uuid.gen(),t=e,{type:s,src:o}=t,f=M(t,["type","src"]);x.open(B(h({type:"normal.topCenter",backgroundColor:"trans"},f),{sheetID:n,freeCSS:{maxWidth:"96vw",transformOrigin:"top"},content:()=>{let[v]=z(a.flatArray(o)),[r,S]=z(0),w=[],_=[];return v.forEach((g,I)=>{w.push({value:I,label:i($,{src:a.flatArray(g)[0],width:"auto",height:1,freeCSS:{maxWidth:12*6,maxHeight:12*3}})}),_.push(i($,{width:1,height:"auto",src:a.flatArray(g)[0]}))}),F(G,{gap:0,children:[F(Y.Separate,{gap:2,padding:1,backgroundColor:"1.layer.base",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",children:[i(q.Radio,{tone:"border",icon:!1,value:r,override:"force",horizontalAlign:"center",onUpdateValidValue:({value:g})=>{S(g[0])},cellStyles:{borderWidth:2,padding:"1/3"},options:w}),F(V.Button.Border.R,{color:"cloud",isRounded:!0,onClick:()=>{x.close(n)},children:["\u9589\u3058\u308B ",i(X.Times,{})]})]}),i(Q.SwipeView,{slideIndex:r,options:{loop:v.length>1,onSlideCallback:g=>{S(g)}},slides:_,wrapper:g=>i(R,{borderBottomLeftRadius:"1.tone.primary",borderBottomRightRadius:"1.tone.primary",children:g})})]})}}));return}d.addNewSheet(e)},refresh:(e,t)=>{e.sheetID=(e.sheetID||"").replace(/\./g,"-");let n=T.get(e.sheetID);n&&n.refresh&&n.refresh(e,t)},resize:e=>{e.sheetID=(e.sheetID||"").replace(/\./g,"-");let t=T.get(e.sheetID);t&&t.resize&&t.resize(e.size)},reposition:e=>{let t=T.get("customSheet-"+e);t&&t.reposition&&t.reposition()},close:function(e,t,n){var o;e=e==null?void 0:e.replace(/\./g,"-");let s=d.contents[e];if(s&&!(t=="Escape"&&!((o=s.params.close_option)!=null&&o.escapeKeyDown))){let{params:f}=s,{sheetID:v}=f,r=T.get(v);r&&r.close&&r.close(n)}},closeGroup:e=>{var t;e=(e||"").replace(/\./g,"-");for(let[n,s]of Object.entries(d.contents))(t=s.params.sheetGroups)!=null&&t.includes(e)&&x.close(n)},closeAll:e=>{var t;for(let[n,s]of Object.entries(d.contents))e&&((t=s.params.close_option)==null?void 0:t.pageTransit)==!1||x.close(n,"pageTransit",!0)},Comps:{Body:e=>i(R,h({className:c("BaseBody"),backgroundColor:"1.layer.base",borderRadius:"1.tone.primary",position:"relative",boxShadow:"3.remark",transition:"long"},e))}};export{x as Sheet,x as default};
@@ -1 +1 @@
1
- import{b as m,c,d as C}from"../chunk-VY3566IV.js";import{Fragment as O,jsx as o,jsxs as P}from"react/jsx-runtime";import{createElement as _}from"react";import{$$ as s,Config as I,useStore as p,$$fromRoot as w}from"../@utils/_";import{useState as f,useEffect as D}from"react";import x from"../atoms/Box";import y from"../atoms/Flex";import E from"../atoms/FAI";import R from"../mols/Row";import A from"./Button";import{SnackbarClasses as k}from"../@styles/componentClasses/_";const u={add:function(l){return p.get("Snackbar-"+I.get().sessionUID).add(l),this},remove:function(l){return p.get("Snackbar-"+I.get().sessionUID).remove(l),this},Wrapper:()=>o(B.Wrapper,{})},B={Cell:l=>{let b=l,{snackID:i,secondsToClose:n=10,componentID:S=s.uuid.gen(),children:d,customChildren:e}=b,r=C(b,["snackID","secondsToClose","componentID","children","customChildren"]),[t]=f(S),[a,h]=f(!1);D(()=>{let v=w('[data-component-id="'+t+'"]');setTimeout(()=>{v.addClass(k("FadeIn"))},10),p.set({key:"Snackbar-"+i,value:{remove:()=>{v.addClass(k("FadeOut"))}}})},[]),D(()=>{s.interval.clear("Snackbar-"+t),a||setTimeout(()=>{s.interval.standBy("Snackbar-"+t,n*1e3,()=>{a||u.remove(i)})},100)},[a]);let g=o(O,{});return e?g=o(e,{close:()=>{u.remove(i)}}):g=P(R.Separate,{verticalAlign:"top",children:[o(x,{padding:["1/4",0],flexSizing:0,children:s.is.function(d)?o(d,{}):d}),o(A.Button.Clear.R,{color:"layer",backgroundColor:"lcOpLow",fontColor:"white",ssSphere:2.5,onClick:()=>{u.remove(i)},children:o(E.Times,{})})]}),o(x,c(m({className:k("Cell"),opacity:"trans",width:1,padding:"2/3",marginBottom:1,borderRadius:"1.tone.primary",fontColor:"white",boxShadow:"1.remark",backgroundColor:"dark",transition:"middle",componentID:t,onMouseOver:()=>{h(!0)},onMouseOut:()=>{h(!1)}},r),{children:g}))},Wrapper:()=>{let[l,i]=f(s.uuid.gen()),[n,S]=f([]);p.set({key:"Snackbar-"+I.get().sessionUID,value:{add:e=>{e.snackID=e.snackID||s.uuid.gen();let r=n.findIndex(t=>t.snackID==e.snackID);if(r==-1)n.unshift(c(m({},e),{snackID:e.snackID}));else{let t=[...n];t[r]=c(m({},e),{snackID:e.snackID}),n=t}i(s.uuid.gen())},remove:e=>{let r=p.get("Snackbar-"+e);r&&r.remove&&(r.remove(),setTimeout(()=>{let t=n.findIndex(a=>a.snackID==e);if(t!=-1){let a=[...n];a.splice(t,1),n=a,i(s.uuid.gen())}},210))}}});let d=n.map(e=>_(B.Cell,c(m({},e),{key:e.snackID})));return o(y,{className:["AMOTIFY_be",k("Wrapper")].join(" "),position:"fixed",right:0,bottom:0,paddingLeft:0,paddingRight:1,paddingBottom:"safeAreaBottom",verticalAlign:"bottom",children:d,overflow:"auto",UnderBreakPointStyles:{left:0,paddingLeft:1,width:"auto"}})}};export{u as Snackbar,u as default};
1
+ import{b as m,c,d as C}from"../chunk-VY3566IV.js";import{Fragment as O,jsx as o,jsxs as P}from"react/jsx-runtime";import{createElement as _}from"react";import{$$ as s,Config as S,useStore as p,$$fromRoot as w}from"../@utils/_";import{useState as f,useEffect as D}from"react";import x from"../atoms/Box";import y from"../atoms/Flex";import E from"../atoms/FAI";import R from"../mols/Row";import A from"./Button";import{SnackbarClasses as k}from"../@styles/componentClasses/_";const u={add:function(i){return p.get("Snackbar-"+S.get().sessionUID).add(i),this},remove:function(i){return p.get("Snackbar-"+S.get().sessionUID).remove(i),this},Wrapper:()=>o(B.Wrapper,{})},B={Cell:i=>{let b=i,{snackID:l,secondsToClose:n=10,componentID:g=s.uuid.gen(),children:d,customChildren:e}=b,r=C(b,["snackID","secondsToClose","componentID","children","customChildren"]),[t]=f(g),[a,h]=f(!1);D(()=>{let v=w('[data-component-id="'+t+'"]');setTimeout(()=>{v.addClass(k("FadeIn"))},10),p.set({key:"Snackbar-"+l,value:{remove:()=>{v.addClass(k("FadeOut"))}}})},[]),D(()=>{s.interval.clear("Snackbar-"+t),a||setTimeout(()=>{s.interval.standBy("Snackbar-"+t,n*1e3,()=>{a||u.remove(l)})},100)},[a]);let I=o(O,{});return e?I=o(e,{close:()=>{u.remove(l)}}):I=P(R.Separate,{verticalAlign:"top",children:[o(x,{padding:["1/4",0],flexSizing:0,children:s.is.function(d)?o(d,{}):d}),o(A.Button.Clear.R,{color:"layer",backgroundColor:"lcOpLow",fontColor:"white",ssSphere:2.5,onClick:()=>{u.remove(l)},children:o(E.Times,{})})]}),o(x,c(m({className:k("Cell"),opacity:"trans",width:1,padding:"2/3",marginBottom:1,borderRadius:"1.tone.primary",fontColor:"white",boxShadow:"1.remark",backgroundColor:"dark",transition:"middle",componentID:t,onMouseOver:()=>{h(!0)},onMouseOut:()=>{h(!1)}},r),{children:I}))},Wrapper:()=>{let[i,l]=f(s.uuid.gen()),[n,g]=f([]);p.set({key:"Snackbar-"+S.get().sessionUID,value:{add:e=>{e.snackID=e.snackID||s.uuid.gen();let r=n.findIndex(t=>t.snackID==e.snackID);if(r==-1)n.unshift(c(m({},e),{snackID:e.snackID}));else{let t=[...n];t[r]=c(m({},e),{snackID:e.snackID}),n=t}l(s.uuid.gen())},remove:e=>{let r=p.get("Snackbar-"+e);r&&r.remove&&(r.remove(),setTimeout(()=>{let t=n.findIndex(a=>a.snackID==e);if(t!=-1){let a=[...n];a.splice(t,1),g(a)}},210))}}});let d=n.map(e=>_(B.Cell,c(m({},e),{key:e.snackID})));return o(y,{className:["AMOTIFY_be",k("Wrapper")].join(" "),position:"fixed",right:0,bottom:0,paddingLeft:0,paddingRight:1,paddingBottom:"safeAreaBottom",verticalAlign:"bottom",children:d,overflow:"auto",UnderBreakPointStyles:{left:0,paddingLeft:1,width:"auto"}})}};export{u as Snackbar,u as default};
@@ -1 +1 @@
1
- import{b as e,d as r}from"../chunk-VY3566IV.js";import{jsx as d}from"react/jsx-runtime";import{$$ as p}from"../@utils/_";import m from"../atoms/Box";import t from"./Sheet";const n={__memoryID:p.uuid.gen(),open:o=>{let s=o,{tipsID:i=p.uuid.gen(),tipsGroups:l=[]}=s,a=r(s,["tipsID","tipsGroups"]);t.open(e({sheetID:i,sheetGroups:["tooltips",...l],close_option:e({aroundClick:!0,elementBlur:o.parent,escapeKeyDown:!0,pageTransit:!0},o.close_option),type:"custom"},a))},close:o=>{t.close(o)},closeALL:()=>{t.closeGroup("tooltips")},Comps:{Body:o=>d(m,e({padding:"1/2",backgroundColor:"dark",borderRadius:"2.tone.secondary",fontColor:"white",boxShadow:"0.normal"},o))}};export{n as Tooltips,n as default};
1
+ import{b as e,d as s}from"../chunk-VY3566IV.js";import{jsx as d}from"react/jsx-runtime";import{$$ as p}from"../@utils/_";import m from"../atoms/Box";import t from"./Sheet";const n={__memoryID:p.uuid.gen(),open:o=>{let r=o,{tipsID:i=p.uuid.gen(),tipsGroups:a=[]}=r,l=s(r,["tipsID","tipsGroups"]);t.open(e({sheetID:i,sheetGroups:["tooltips",...a],close_option:e({aroundClick:!0,parentBlur:!0,escapeKeyDown:!0,pageTransit:!0},o.close_option),type:"custom"},l))},close:o=>{o&&t.close(o)},closeALL:()=>{t.closeGroup("tooltips")},Comps:{Body:o=>d(m,e({padding:"1/2",backgroundColor:"dark",borderRadius:"2.tone.secondary",fontColor:"white",boxShadow:"0.normal"},o))}};export{n as Tooltips,n as default};
package/dist/style.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license amotify
3
- * amotify 0.1.11
3
+ * amotify 0.1.14
4
4
  * https://mingoo.co.jp/
5
5
 
6
6
  * Copyright (c) mingoo, LLC.
@@ -1535,26 +1535,21 @@ amotify-app {
1535
1535
  }
1536
1536
 
1537
1537
  /* esbuild-sass-plugin:css-chunk:src/@styles/componentClasses/f_sheet.module.scss */
1538
- html._FixHeight_1eh7v_1 ._FixScroll_1eh7v_1 {
1538
+ ._FixScroll_14cjf_1 {
1539
1539
  overflow: hidden !important;
1540
1540
  min-height: 0 !important;
1541
1541
  height: calc(var(--viewHeight));
1542
1542
  width: 100vw;
1543
1543
  transition: var(--animation-time3);
1544
1544
  }
1545
- @media (max-width: 834px) {
1546
- html._FloatMainSheet_1eh7v_9._Type_bottom_1eh7v_9 {
1547
- overflow: hidden;
1548
- }
1549
- }
1550
- html._FloatMainSheet_1eh7v_9 ._FixScroll_1eh7v_1 {
1545
+ ._FixScroll_14cjf_1._Float_14cjf_8 {
1551
1546
  opacity: 0.8 !important;
1552
1547
  pointer-events: none;
1553
1548
  transform-origin: center center;
1554
1549
  transform: scale(0.96);
1555
1550
  border-radius: calc((2vw + 2vh) / 2);
1556
1551
  }
1557
- ._Wrapper_1eh7v_21 {
1552
+ ._Wrapper_14cjf_16 {
1558
1553
  position: fixed;
1559
1554
  top: 0;
1560
1555
  left: 0;
@@ -1563,11 +1558,11 @@ html._FloatMainSheet_1eh7v_9 ._FixScroll_1eh7v_1 {
1563
1558
  pointer-events: none;
1564
1559
  z-index: 6;
1565
1560
  }
1566
- ._Wrap_1eh7v_21 {
1561
+ ._Wrap_14cjf_16 {
1567
1562
  pointer-events: none !important;
1568
1563
  height: 0;
1569
1564
  }
1570
- ._Wrap_1eh7v_21 ._TapSensor_1eh7v_35 {
1565
+ ._Wrap_14cjf_16 ._TapSensor_14cjf_30 {
1571
1566
  position: sticky;
1572
1567
  top: 0;
1573
1568
  height: 0;
@@ -1576,158 +1571,158 @@ html._FloatMainSheet_1eh7v_9 ._FixScroll_1eh7v_1 {
1576
1571
  -webkit-touch-callout: none;
1577
1572
  flex: none;
1578
1573
  }
1579
- ._Wrap_1eh7v_21 ._TapSensor_1eh7v_35 ._TapContent_1eh7v_44 {
1574
+ ._Wrap_14cjf_16 ._TapSensor_14cjf_30 ._TapContent_14cjf_39 {
1580
1575
  height: var(--viewHeight);
1581
1576
  width: 100vw;
1582
1577
  }
1583
- ._Wrap_1eh7v_21._Hide_1eh7v_48 {
1578
+ ._Wrap_14cjf_16._Hide_14cjf_43 {
1584
1579
  display: none !important;
1585
1580
  }
1586
- ._Wrap_1eh7v_21._Open_1eh7v_51._isNewSheet_true_1eh7v_51 ._Content_1eh7v_51 {
1581
+ ._Wrap_14cjf_16._Open_14cjf_46._isNewSheet_true_14cjf_46 ._Content_14cjf_46 {
1587
1582
  pointer-events: all !important;
1588
1583
  background-color: rgba(var(--color-dark-rgb), 0.25);
1589
1584
  }
1590
- ._Wrap_1eh7v_21._Open_1eh7v_51._isNewSheet_false_1eh7v_55 ._BB_1eh7v_55 {
1585
+ ._Wrap_14cjf_16._Open_14cjf_46._isNewSheet_false_14cjf_50 ._BB_14cjf_50 {
1591
1586
  pointer-events: all !important;
1592
1587
  }
1593
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
1588
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
1594
1589
  transform: scale(1.015);
1595
1590
  transition: var(--animation-time1);
1596
1591
  }
1597
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 ._BaseBody_1eh7v_62 {
1592
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 ._BaseBody_14cjf_57 {
1598
1593
  transition: var(--animation-time1);
1599
1594
  box-shadow: 0 0 0 transparent inset, var(--shadow_style_4) var(--shadow_color_remark);
1600
1595
  }
1601
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._BB_1eh7v_55 {
1596
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._BB_14cjf_50 {
1602
1597
  transform: scale(0.75);
1603
1598
  padding: var(--grid-unit);
1604
1599
  pointer-events: none !important;
1605
1600
  }
1606
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58 ._BB_1eh7v_55 > * {
1601
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53 ._BB_14cjf_50 > * {
1607
1602
  pointer-events: all;
1608
1603
  }
1609
- ._Wrap_1eh7v_21._Tcate_normal_1eh7v_58._Open_1eh7v_51 ._BB_1eh7v_55 {
1604
+ ._Wrap_14cjf_16._Tcate_normal_14cjf_53._Open_14cjf_46 ._BB_14cjf_50 {
1610
1605
  transform: scale(1);
1611
1606
  opacity: 1;
1612
1607
  }
1613
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78 ._Content_1eh7v_51 {
1608
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73 ._Content_14cjf_46 {
1614
1609
  overflow: hidden auto;
1615
1610
  }
1616
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
1611
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
1617
1612
  transition: var(--animation-time1);
1618
1613
  left: calc(-1 * var(--grid-unit) * 2);
1619
1614
  }
1620
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78 ._BB_1eh7v_55 {
1615
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73 ._BB_14cjf_50 {
1621
1616
  max-width: 100vw;
1622
1617
  left: -10%;
1623
1618
  }
1624
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_left_1eh7v_78._Open_1eh7v_51 ._BB_1eh7v_55 {
1619
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_left_14cjf_73._Open_14cjf_46 ._BB_14cjf_50 {
1625
1620
  left: 0;
1626
1621
  opacity: 1;
1627
1622
  }
1628
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93 ._Content_1eh7v_51 {
1623
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88 ._Content_14cjf_46 {
1629
1624
  overflow: hidden auto;
1630
1625
  }
1631
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
1626
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
1632
1627
  transition: var(--animation-time1);
1633
1628
  right: calc(-1 * var(--grid-unit) * 2);
1634
1629
  }
1635
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93 ._BB_1eh7v_55 {
1630
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88 ._BB_14cjf_50 {
1636
1631
  max-width: 100vw;
1637
1632
  right: -10%;
1638
1633
  }
1639
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_right_1eh7v_93._Open_1eh7v_51 ._BB_1eh7v_55 {
1634
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_right_14cjf_88._Open_14cjf_46 ._BB_14cjf_50 {
1640
1635
  right: 0;
1641
1636
  opacity: 1;
1642
1637
  }
1643
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
1638
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
1644
1639
  padding-top: 2vh !important;
1645
1640
  transition: var(--animation-time1) !important;
1646
1641
  }
1647
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108 ._BB_1eh7v_55 {
1642
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103 ._BB_14cjf_50 {
1648
1643
  padding-top: 10vh;
1649
1644
  }
1650
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108 ._BB_1eh7v_55 ._DragBar_1eh7v_115 {
1645
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103 ._BB_14cjf_50 ._DragBar_14cjf_110 {
1651
1646
  position: relative;
1652
1647
  }
1653
- ._Wrap_1eh7v_21._Tcate_drawer_1eh7v_78._Tpos_bottom_1eh7v_108._Open_1eh7v_51 ._BB_1eh7v_55 {
1648
+ ._Wrap_14cjf_16._Tcate_drawer_14cjf_73._Tpos_bottom_14cjf_103._Open_14cjf_46 ._BB_14cjf_50 {
1654
1649
  padding-top: 0;
1655
1650
  opacity: 1 !important;
1656
1651
  transition: var(--animation-time3);
1657
1652
  }
1658
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._TapSensor_1eh7v_35:active + ._BB_1eh7v_55 {
1653
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._TapSensor_14cjf_30:active + ._BB_14cjf_50 {
1659
1654
  transform: scale(1.015);
1660
1655
  transition: var(--animation-time1);
1661
1656
  box-shadow: 0 0 0 transparent inset, var(--shadow_style_4) var(--shadow_color_remark);
1662
1657
  }
1663
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._BB_1eh7v_55 {
1658
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._BB_14cjf_50 {
1664
1659
  transform: scale(0.95);
1665
1660
  }
1666
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._BB_1eh7v_55._CustomSheet_1eh7v_131 {
1661
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._BB_14cjf_50._CustomSheet_14cjf_126 {
1667
1662
  position: relative;
1668
1663
  }
1669
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_1_1eh7v_134,
1670
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_4_1eh7v_134,
1671
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_1_1eh7v_134,
1672
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_4_1eh7v_134 {
1664
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_1_14cjf_129,
1665
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_4_14cjf_129,
1666
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_1_14cjf_129,
1667
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_4_14cjf_129 {
1673
1668
  transform-origin: bottom right;
1674
1669
  }
1675
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_2_1eh7v_137,
1676
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134._Row_5_1eh7v_137,
1677
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_2_1eh7v_137,
1678
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134._Row_5_1eh7v_137 {
1670
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_2_14cjf_132,
1671
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129._Row_5_14cjf_132,
1672
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_2_14cjf_132,
1673
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129._Row_5_14cjf_132 {
1679
1674
  transform-origin: top right;
1680
1675
  }
1681
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_1_1eh7v_134,
1682
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_4_1eh7v_134,
1683
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_1_1eh7v_134,
1684
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_4_1eh7v_134 {
1676
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_1_14cjf_129,
1677
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_4_14cjf_129,
1678
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_1_14cjf_129,
1679
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_4_14cjf_129 {
1685
1680
  transform-origin: bottom left;
1686
1681
  }
1687
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_2_1eh7v_137,
1688
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140._Row_5_1eh7v_137,
1689
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_2_1eh7v_137,
1690
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140._Row_5_1eh7v_137 {
1682
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_2_14cjf_132,
1683
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135._Row_5_14cjf_132,
1684
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_2_14cjf_132,
1685
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135._Row_5_14cjf_132 {
1691
1686
  transform-origin: top left;
1692
1687
  }
1693
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_3_1eh7v_146,
1694
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_18_1eh7v_146 {
1688
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_3_14cjf_141,
1689
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_18_14cjf_141 {
1695
1690
  transform-origin: bottom;
1696
1691
  }
1697
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_8_1eh7v_149,
1698
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_23_1eh7v_149 {
1692
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_8_14cjf_144,
1693
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_23_14cjf_144 {
1699
1694
  transform-origin: top;
1700
1695
  }
1701
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_11_1eh7v_152,
1702
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_14_1eh7v_152 {
1696
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_11_14cjf_147,
1697
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14_14cjf_147 {
1703
1698
  transform-origin: right;
1704
1699
  }
1705
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_12_1eh7v_155,
1706
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_15_1eh7v_155 {
1700
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_12_14cjf_150,
1701
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_15_14cjf_150 {
1707
1702
  transform-origin: left;
1708
1703
  }
1709
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_1_1eh7v_134,
1710
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_4_1eh7v_134 {
1704
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_1_14cjf_129,
1705
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_4_14cjf_129 {
1711
1706
  right: 0;
1712
1707
  justify-content: flex-end;
1713
1708
  }
1714
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_2_1eh7v_140,
1715
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_5_1eh7v_140 {
1709
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_2_14cjf_135,
1710
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_5_14cjf_135 {
1716
1711
  left: 0;
1717
1712
  }
1718
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Col_3_1eh7v_165 {
1713
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Col_3_14cjf_160 {
1719
1714
  align-items: center;
1720
1715
  justify-content: center;
1721
1716
  }
1722
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_1_1eh7v_134,
1723
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_4_1eh7v_134 {
1717
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_1_14cjf_129,
1718
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_4_14cjf_129 {
1724
1719
  bottom: 0;
1725
1720
  }
1726
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_2_1eh7v_137,
1727
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123 ._GPT_1eh7v_134._Row_5_1eh7v_137 {
1721
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_2_14cjf_132,
1722
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118 ._GPT_14cjf_129._Row_5_14cjf_132 {
1728
1723
  top: 0;
1729
1724
  }
1730
- ._Wrap_1eh7v_21._Tcate_custom_1eh7v_123._Open_1eh7v_51 ._BB_1eh7v_55 {
1725
+ ._Wrap_14cjf_16._Tcate_custom_14cjf_118._Open_14cjf_46 ._BB_14cjf_50 {
1731
1726
  transform: scale(1);
1732
1727
  opacity: 1;
1733
1728
  }
package/dist/style.js CHANGED
@@ -57,47 +57,45 @@ var f_snackbar_module_default = {
57
57
 
58
58
  // src/@styles/componentClasses/f_sheet.module.scss
59
59
  var f_sheet_module_default = {
60
- "FixHeight": "_FixHeight_1eh7v_1",
61
- "FixScroll": "_FixScroll_1eh7v_1",
62
- "FloatMainSheet": "_FloatMainSheet_1eh7v_9",
63
- "Type_bottom": "_Type_bottom_1eh7v_9",
64
- "Wrapper": "_Wrapper_1eh7v_21",
65
- "Wrap": "_Wrap_1eh7v_21",
66
- "TapSensor": "_TapSensor_1eh7v_35",
67
- "TapContent": "_TapContent_1eh7v_44",
68
- "Hide": "_Hide_1eh7v_48",
69
- "Open": "_Open_1eh7v_51",
70
- "isNewSheet_true": "_isNewSheet_true_1eh7v_51",
71
- "Content": "_Content_1eh7v_51",
72
- "isNewSheet_false": "_isNewSheet_false_1eh7v_55",
73
- "BB": "_BB_1eh7v_55",
74
- "Tcate_normal": "_Tcate_normal_1eh7v_58",
75
- "BaseBody": "_BaseBody_1eh7v_62",
76
- "Tcate_drawer": "_Tcate_drawer_1eh7v_78",
77
- "Tpos_left": "_Tpos_left_1eh7v_78",
78
- "Tpos_right": "_Tpos_right_1eh7v_93",
79
- "Tpos_bottom": "_Tpos_bottom_1eh7v_108",
80
- "DragBar": "_DragBar_1eh7v_115",
81
- "Tcate_custom": "_Tcate_custom_1eh7v_123",
82
- "CustomSheet": "_CustomSheet_1eh7v_131",
83
- "GPT": "_GPT_1eh7v_134",
84
- "Col_1": "_Col_1_1eh7v_134",
85
- "Row_1": "_Row_1_1eh7v_134",
86
- "Row_4": "_Row_4_1eh7v_134",
87
- "Col_4": "_Col_4_1eh7v_134",
88
- "Row_2": "_Row_2_1eh7v_137",
89
- "Row_5": "_Row_5_1eh7v_137",
90
- "Col_2": "_Col_2_1eh7v_140",
91
- "Col_5": "_Col_5_1eh7v_140",
92
- "GPT_3": "_GPT_3_1eh7v_146",
93
- "GPT_18": "_GPT_18_1eh7v_146",
94
- "GPT_8": "_GPT_8_1eh7v_149",
95
- "GPT_23": "_GPT_23_1eh7v_149",
96
- "GPT_11": "_GPT_11_1eh7v_152",
97
- "GPT_14": "_GPT_14_1eh7v_152",
98
- "GPT_12": "_GPT_12_1eh7v_155",
99
- "GPT_15": "_GPT_15_1eh7v_155",
100
- "Col_3": "_Col_3_1eh7v_165"
60
+ "FixScroll": "_FixScroll_14cjf_1",
61
+ "Float": "_Float_14cjf_8",
62
+ "Wrapper": "_Wrapper_14cjf_16",
63
+ "Wrap": "_Wrap_14cjf_16",
64
+ "TapSensor": "_TapSensor_14cjf_30",
65
+ "TapContent": "_TapContent_14cjf_39",
66
+ "Hide": "_Hide_14cjf_43",
67
+ "Open": "_Open_14cjf_46",
68
+ "isNewSheet_true": "_isNewSheet_true_14cjf_46",
69
+ "Content": "_Content_14cjf_46",
70
+ "isNewSheet_false": "_isNewSheet_false_14cjf_50",
71
+ "BB": "_BB_14cjf_50",
72
+ "Tcate_normal": "_Tcate_normal_14cjf_53",
73
+ "BaseBody": "_BaseBody_14cjf_57",
74
+ "Tcate_drawer": "_Tcate_drawer_14cjf_73",
75
+ "Tpos_left": "_Tpos_left_14cjf_73",
76
+ "Tpos_right": "_Tpos_right_14cjf_88",
77
+ "Tpos_bottom": "_Tpos_bottom_14cjf_103",
78
+ "DragBar": "_DragBar_14cjf_110",
79
+ "Tcate_custom": "_Tcate_custom_14cjf_118",
80
+ "CustomSheet": "_CustomSheet_14cjf_126",
81
+ "GPT": "_GPT_14cjf_129",
82
+ "Col_1": "_Col_1_14cjf_129",
83
+ "Row_1": "_Row_1_14cjf_129",
84
+ "Row_4": "_Row_4_14cjf_129",
85
+ "Col_4": "_Col_4_14cjf_129",
86
+ "Row_2": "_Row_2_14cjf_132",
87
+ "Row_5": "_Row_5_14cjf_132",
88
+ "Col_2": "_Col_2_14cjf_135",
89
+ "Col_5": "_Col_5_14cjf_135",
90
+ "GPT_3": "_GPT_3_14cjf_141",
91
+ "GPT_18": "_GPT_18_14cjf_141",
92
+ "GPT_8": "_GPT_8_14cjf_144",
93
+ "GPT_23": "_GPT_23_14cjf_144",
94
+ "GPT_11": "_GPT_11_14cjf_147",
95
+ "GPT_14": "_GPT_14_14cjf_147",
96
+ "GPT_12": "_GPT_12_14cjf_150",
97
+ "GPT_15": "_GPT_15_14cjf_150",
98
+ "Col_3": "_Col_3_14cjf_160"
101
99
  };
102
100
 
103
101
  // src/@styles/componentClasses/f_loader.module.scss
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "UI FW for React",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",