clickgo 3.2.3 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/app/demo/config.json +7 -1
- package/dist/app/demo/form/control/iconview/iconview.js +167 -0
- package/dist/app/demo/form/control/iconview/iconview.xml +39 -0
- package/dist/app/demo/form/control/list/list.js +7 -12
- package/dist/app/demo/form/control/page/page.js +36 -0
- package/dist/app/demo/form/control/page/page.xml +9 -0
- package/dist/app/demo/form/main.js +10 -0
- package/dist/app/demo/form/main.xml +2 -0
- package/dist/app/demo/form/method/dom/dom.js +10 -4
- package/dist/app/demo/form/method/dom/dom.xml +1 -1
- package/dist/app/demo/form/method/fs/fs.js +3 -3
- package/dist/app/demo/form/method/fs/fs.xml +1 -1
- package/dist/app/demo/form/method/task/task.xml +1 -1
- package/dist/app/demo/form/method/zip/zip.js +3 -3
- package/dist/app/demo/form/method/zip/zip.xml +1 -1
- package/dist/app/demo/res/icon.svg +5 -1
- package/dist/app/demo/res/r-1.svg +32 -1
- package/dist/app/demo/res/r-2.svg +38 -1
- package/dist/app/demo/res/sql.svg +25 -1
- package/dist/app/demo/res/txt.svg +21 -1
- package/dist/app/demo/res/zip.svg +21 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/html.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/lib/dom.js +85 -14
- package/dist/lib/dom.ts +115 -18
- package/dist/lib/form.js +63 -7
- package/dist/lib/form.ts +63 -7
- package/dist/lib/fs.js +26 -2
- package/dist/lib/fs.ts +26 -2
- package/dist/lib/task.js +121 -11
- package/dist/lib/task.ts +137 -14
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/familiar.cgt +0 -0
- package/package.json +1 -1
package/dist/lib/task.ts
CHANGED
|
@@ -61,6 +61,30 @@ const localeData: Record<string, {
|
|
|
61
61
|
},
|
|
62
62
|
'ja': {
|
|
63
63
|
'loading': '読み込み中...'
|
|
64
|
+
},
|
|
65
|
+
'ko': {
|
|
66
|
+
'loading': '로딩 중...'
|
|
67
|
+
},
|
|
68
|
+
'th': {
|
|
69
|
+
'loading': 'กำลังโหลด...'
|
|
70
|
+
},
|
|
71
|
+
'es': {
|
|
72
|
+
'loading': 'Cargando...'
|
|
73
|
+
},
|
|
74
|
+
'de': {
|
|
75
|
+
'loading': 'Laden...'
|
|
76
|
+
},
|
|
77
|
+
'fr': {
|
|
78
|
+
'loading': 'Chargement en cours...'
|
|
79
|
+
},
|
|
80
|
+
'pt': {
|
|
81
|
+
'loading': 'Carregando...'
|
|
82
|
+
},
|
|
83
|
+
'ru': {
|
|
84
|
+
'loading': 'Загрузка...'
|
|
85
|
+
},
|
|
86
|
+
'vi': {
|
|
87
|
+
'loading': 'Đang tải...'
|
|
64
88
|
}
|
|
65
89
|
};
|
|
66
90
|
|
|
@@ -556,13 +580,22 @@ export async function run(url: string | types.IApp, opt: types.ITaskRunOptions =
|
|
|
556
580
|
getWatchInfo: function(): types.IGetWatchInfoResult {
|
|
557
581
|
return dom.getWatchInfo();
|
|
558
582
|
},
|
|
559
|
-
bindClick: function(
|
|
583
|
+
bindClick: function(
|
|
584
|
+
e: MouseEvent | TouchEvent,
|
|
585
|
+
handler: (e: MouseEvent | TouchEvent, x: number, y: number) => void
|
|
586
|
+
): void {
|
|
560
587
|
dom.bindClick(e, handler);
|
|
561
588
|
},
|
|
589
|
+
bindDblClick: function(
|
|
590
|
+
e: MouseEvent | TouchEvent,
|
|
591
|
+
handler: (e: MouseEvent | TouchEvent) => void | Promise<void>
|
|
592
|
+
): void {
|
|
593
|
+
dom.bindDblClick(e, handler);
|
|
594
|
+
},
|
|
562
595
|
bindDown: function(oe: MouseEvent | TouchEvent, opt: types.IBindDownOptions) {
|
|
563
596
|
dom.bindDown(oe, opt);
|
|
564
597
|
},
|
|
565
|
-
bindGesture: function(oe: MouseEvent | TouchEvent | WheelEvent, before: (e: MouseEvent | TouchEvent | WheelEvent, dir: 'top' | 'right' | 'bottom' | 'left') =>
|
|
598
|
+
bindGesture: function(oe: MouseEvent | TouchEvent | WheelEvent, before: (e: MouseEvent | TouchEvent | WheelEvent, dir: 'top' | 'right' | 'bottom' | 'left') => number, handler: (dir: 'top' | 'right' | 'bottom' | 'left') => void): void {
|
|
566
599
|
dom.bindGesture(oe, before, handler);
|
|
567
600
|
},
|
|
568
601
|
bindLong: function(
|
|
@@ -571,7 +604,17 @@ export async function run(url: string | types.IApp, opt: types.ITaskRunOptions =
|
|
|
571
604
|
): void {
|
|
572
605
|
dom.bindLong(e, long);
|
|
573
606
|
},
|
|
574
|
-
|
|
607
|
+
setDragData(data?: string | number | boolean | Record<string, any>): void {
|
|
608
|
+
dom.setDragData(data);
|
|
609
|
+
},
|
|
610
|
+
bindDrag: function(e: MouseEvent | TouchEvent, opt: {
|
|
611
|
+
'el': HTMLElement;
|
|
612
|
+
'data'?: any;
|
|
613
|
+
|
|
614
|
+
'start'?: (x: number, y: number) => any;
|
|
615
|
+
'move'?: (e: MouseEvent | TouchEvent, opt: types.IBindMoveMoveOptions) => void;
|
|
616
|
+
'end'?: (moveTimes: Array<{ 'time': number; 'ox': number; 'oy': number; }>, e: MouseEvent | TouchEvent) => void;
|
|
617
|
+
}): void {
|
|
575
618
|
dom.bindDrag(e, opt);
|
|
576
619
|
},
|
|
577
620
|
'is': dom.is,
|
|
@@ -1269,23 +1312,103 @@ const locale: Record<string, {
|
|
|
1269
1312
|
},
|
|
1270
1313
|
'en': {
|
|
1271
1314
|
'unknown': 'Unknown',
|
|
1272
|
-
'root': '<b>Danger!</b> Highest
|
|
1273
|
-
'apply-permission': '
|
|
1315
|
+
'root': '<b>Danger!</b> Highest permission! Please confirm if you want to allow!',
|
|
1316
|
+
'apply-permission': 'Applying permission, please confirm carefully',
|
|
1274
1317
|
'native.form': 'Native window control',
|
|
1275
|
-
'hash': 'Can modify
|
|
1318
|
+
'hash': 'Can modify address bar "hash"',
|
|
1276
1319
|
'fs': 'File system',
|
|
1277
|
-
'readonly': 'Read
|
|
1320
|
+
'readonly': 'Read-only',
|
|
1278
1321
|
'read-write': 'Read and write'
|
|
1279
1322
|
},
|
|
1280
1323
|
'ja': {
|
|
1281
|
-
'unknown': '
|
|
1282
|
-
'root': '<b>危険!</b
|
|
1283
|
-
'apply-permission': '
|
|
1284
|
-
'native.form': '
|
|
1285
|
-
'hash': '
|
|
1286
|
-
'fs': '
|
|
1324
|
+
'unknown': '不明な権限',
|
|
1325
|
+
'root': '<b>危険!</b>最高権限です!許可するかどうか必ず確認してください!',
|
|
1326
|
+
'apply-permission': '権限を申請中です。よくご確認ください',
|
|
1327
|
+
'native.form': 'ネイティブフォームコントロール',
|
|
1328
|
+
'hash': 'アドレスバーの "hash" を変更できます',
|
|
1329
|
+
'fs': 'ファイルシステム',
|
|
1287
1330
|
'readonly': '読み取り専用',
|
|
1288
|
-
'read-write': '
|
|
1331
|
+
'read-write': '読み書き可能'
|
|
1332
|
+
},
|
|
1333
|
+
'ko': {
|
|
1334
|
+
'unknown': '알 수 없는 권한',
|
|
1335
|
+
'root': '<b>위험!</b> 최고 권한입니다! 반드시 허용할 것인지 확인하십시오!',
|
|
1336
|
+
'apply-permission': '권한을 신청 중입니다. 주의 깊게 확인하십시오',
|
|
1337
|
+
'native.form': '네이티브 폼 제어',
|
|
1338
|
+
'hash': '주소 표시 줄 "hash" 를 수정할 수 있습니다',
|
|
1339
|
+
'fs': '파일 시스템',
|
|
1340
|
+
'readonly': '읽기 전용',
|
|
1341
|
+
'read-write': '읽기 및 쓰기',
|
|
1342
|
+
},
|
|
1343
|
+
'th': {
|
|
1344
|
+
'unknown': 'สิทธิ์ที่ไม่รู้จัก',
|
|
1345
|
+
'root': '<b>อันตราย!</b> สิทธิ์สูงสุด! โปรดตรวจสอบว่าต้องการอนุญาตหรือไม่!',
|
|
1346
|
+
'apply-permission': 'กำลังขอสิทธิ์ โปรดตรวจสอบอย่างรอบคอบ',
|
|
1347
|
+
'native.form': 'การควบคุมแบบฟอร์มแบบ Native',
|
|
1348
|
+
'hash': 'สามารถแก้ไขแถบที่อยู่ "hash"',
|
|
1349
|
+
'fs': 'ระบบไฟล์',
|
|
1350
|
+
'readonly': 'อ่านได้อย่างเดียว',
|
|
1351
|
+
'read-write': 'อ่านและเขียนได้'
|
|
1352
|
+
},
|
|
1353
|
+
'es': {
|
|
1354
|
+
'unknown': 'Permiso desconocido',
|
|
1355
|
+
'root': '<b>¡Peligro!</b> ¡Permiso máximo! ¡Asegúrese de permitirlo!',
|
|
1356
|
+
'apply-permission': 'Solicitando permiso. Por favor, compruebe cuidadosamente',
|
|
1357
|
+
'native.form': 'Control de formulario nativo',
|
|
1358
|
+
'hash': 'Puede modificar el "hash" de la barra de direcciones',
|
|
1359
|
+
'fs': 'Sistema de archivos',
|
|
1360
|
+
'readonly': 'Solo lectura',
|
|
1361
|
+
'read-write': 'Lectura y escritura',
|
|
1362
|
+
},
|
|
1363
|
+
'de': {
|
|
1364
|
+
'unknown': 'Unbekannte Berechtigung',
|
|
1365
|
+
'root': '<b>Gefahr!</b> Höchste Berechtigung! Bitte stellen Sie unbedingt sicher, ob dies erlaubt ist!',
|
|
1366
|
+
'apply-permission': 'Bitte bestätigen Sie die Berechtigungsanfrage sorgfältig',
|
|
1367
|
+
'native.form': 'Natives Formularsteuerelement',
|
|
1368
|
+
'hash': 'Adressleisten "hash" bearbeiten',
|
|
1369
|
+
'fs': 'Dateisystem',
|
|
1370
|
+
'readonly': 'Schreibgeschützt',
|
|
1371
|
+
'read-write': 'Lesen/Schreiben'
|
|
1372
|
+
},
|
|
1373
|
+
'fr': {
|
|
1374
|
+
'unknown': 'Autorisation inconnue',
|
|
1375
|
+
'root': '<b>Danger !</b> Autorisation maximale ! Veuillez vous assurer que vous êtes autorisé à le faire !',
|
|
1376
|
+
'apply-permission': 'Demande d\'autorisation en cours, veuillez vérifier attentivement',
|
|
1377
|
+
'native.form': 'Contrôle de formulaire natif',
|
|
1378
|
+
'hash': 'Modifier le "hash" de la barre d\'adresse',
|
|
1379
|
+
'fs': 'Système de fichiers',
|
|
1380
|
+
'readonly': 'Lecture seule',
|
|
1381
|
+
'read-write': 'Lecture/écriture'
|
|
1382
|
+
},
|
|
1383
|
+
'pt': {
|
|
1384
|
+
'unknown': 'Permissão desconhecida',
|
|
1385
|
+
'root': '<b>Perigo!</b> Permissão máxima! Certifique-se de ter permissão para fazê-lo!',
|
|
1386
|
+
'apply-permission': 'Solicitando permissão, por favor confirme cuidadosamente',
|
|
1387
|
+
'native.form': 'Controle de formulário nativo',
|
|
1388
|
+
'hash': 'Editar "hash" da barra de endereço',
|
|
1389
|
+
'fs': 'Sistema de arquivos',
|
|
1390
|
+
'readonly': 'Somente leitura',
|
|
1391
|
+
'read-write': 'Leitura/escrita'
|
|
1392
|
+
},
|
|
1393
|
+
'ru': {
|
|
1394
|
+
'unknown': 'Неизвестное разрешение',
|
|
1395
|
+
'root': '<b>Опасность!</b> Максимальное разрешение! Пожалуйста, обязательно убедитесь, что это разрешено!',
|
|
1396
|
+
'apply-permission': 'Выполняется запрос на разрешение, пожалуйста, внимательно подтвердите',
|
|
1397
|
+
'native.form': 'Нативный элемент формы',
|
|
1398
|
+
'hash': 'Изменить "hash" адресной строки',
|
|
1399
|
+
'fs': 'Файловая система',
|
|
1400
|
+
'readonly': 'Только для чтения',
|
|
1401
|
+
'read-write': 'Чтение/запись'
|
|
1402
|
+
},
|
|
1403
|
+
'vi': {
|
|
1404
|
+
'unknown': 'Quyền không xác định',
|
|
1405
|
+
'root': '<b>Nguy hiểm!</b> Quyền hạn cao nhất! Hãy đảm bảo rằng bạn được phép làm điều này!',
|
|
1406
|
+
'apply-permission': 'Đang yêu cầu quyền truy cập, vui lòng xác nhận cẩn thận',
|
|
1407
|
+
'native.form': 'Thiết bị kiểm soát biểu mẫu gốc',
|
|
1408
|
+
'hash': 'Chỉnh sửa "hash" thanh địa chỉ',
|
|
1409
|
+
'fs': 'Hệ thống tập tin',
|
|
1410
|
+
'readonly': 'Chỉ đọc',
|
|
1411
|
+
'read-write': 'Đọc/ghi'
|
|
1289
1412
|
}
|
|
1290
1413
|
};
|
|
1291
1414
|
|
package/dist/theme/byterun.cgt
CHANGED
|
Binary file
|
package/dist/theme/familiar.cgt
CHANGED
|
Binary file
|