@basthon/gui-base 0.40.2 → 0.40.6
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/lib/main.d.ts +4 -0
- package/lib/main.js +5 -1
- package/package.json +5 -5
package/lib/main.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ export declare class GUIBase {
|
|
|
42
42
|
* Check if GUI is loaded.
|
|
43
43
|
*/
|
|
44
44
|
loaded(): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Wait for par load (document.body available).
|
|
47
|
+
*/
|
|
48
|
+
pageLoad(): Promise<void>;
|
|
45
49
|
/**
|
|
46
50
|
* Set the checkpoints manager
|
|
47
51
|
* (typically use with GUIOptions.noCheckpointsInit set to true).
|
package/lib/main.js
CHANGED
|
@@ -38,6 +38,10 @@ export class GUIBase {
|
|
|
38
38
|
* Check if GUI is loaded.
|
|
39
39
|
*/
|
|
40
40
|
async loaded() { await this._loaded.promise; }
|
|
41
|
+
/**
|
|
42
|
+
* Wait for par load (document.body available).
|
|
43
|
+
*/
|
|
44
|
+
async pageLoad() { await this._loader.pageLoad(); }
|
|
41
45
|
/**
|
|
42
46
|
* Set the checkpoints manager
|
|
43
47
|
* (typically use with GUIOptions.noCheckpointsInit set to true).
|
|
@@ -405,7 +409,7 @@ export class GUIBase {
|
|
|
405
409
|
const message = `
|
|
406
410
|
Un lien permanant vers le contenu actuel a été créé.
|
|
407
411
|
<br>
|
|
408
|
-
<i class="
|
|
412
|
+
<i class="fa fa-exclamation-circle"></i> Attention, partager un document trop long peut ne pas fonctionner avec certains navigateurs.`;
|
|
409
413
|
this.confirm("Partager ce document", message, "Copier dans le presse-papier", () => GUIBase.copyToClipboard(url), "Tester le lien", () => GUIBase.openURL(url));
|
|
410
414
|
}
|
|
411
415
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/gui-base",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.6",
|
|
4
4
|
"description": "Basthon - Base GUI",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"clean": "rm -rf lib/"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@basthon/checkpoints": "^0.40.
|
|
29
|
-
"@basthon/kernel-base": "^0.40.
|
|
30
|
-
"@basthon/kernel-loader": "^0.40.
|
|
28
|
+
"@basthon/checkpoints": "^0.40.6",
|
|
29
|
+
"@basthon/kernel-base": "^0.40.6",
|
|
30
|
+
"@basthon/kernel-loader": "^0.40.6",
|
|
31
31
|
"js-base64": "^3.7.2",
|
|
32
32
|
"pako": "^2.0.4",
|
|
33
33
|
"promise-delegate": "^1.0.1"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b808aca161a9e22e3bef70ee45fe6aa262cc95a3"
|
|
45
45
|
}
|