@gjsify/adwaita-web 0.26.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Adwaita/Libadwaita web components for browser targets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"style.css.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"clear": "
|
|
32
|
+
"clear": "gjsify clear lib dist tsconfig.tsbuildinfo scss/_icons.generated.scss src/styles.generated.ts",
|
|
33
33
|
"check": "gjsify run build:scss && gjsify tsc --noEmit",
|
|
34
34
|
"build": "gjsify run build:scss && gjsify run build:types",
|
|
35
35
|
"build:scss": "node scripts/build-scss.mjs",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@codemirror/language": "^6.12.4",
|
|
42
42
|
"@codemirror/state": "^6.7.0",
|
|
43
43
|
"@codemirror/view": "^6.43.4",
|
|
44
|
-
"@gjsify/adwaita-core": "^0.
|
|
45
|
-
"@gjsify/adwaita-fonts": "^0.
|
|
46
|
-
"@gjsify/adwaita-icons": "^0.
|
|
44
|
+
"@gjsify/adwaita-core": "^0.27.0",
|
|
45
|
+
"@gjsify/adwaita-fonts": "^0.27.0",
|
|
46
|
+
"@gjsify/adwaita-icons": "^0.27.0",
|
|
47
47
|
"@lezer/highlight": "^1.2.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@gjsify/cli": "^0.
|
|
51
|
-
"@gjsify/unit": "^0.
|
|
50
|
+
"@gjsify/cli": "^0.27.0",
|
|
51
|
+
"@gjsify/unit": "^0.27.0",
|
|
52
52
|
"sass": "^1.101.0",
|
|
53
53
|
"typescript": "^6.0.3"
|
|
54
54
|
},
|
|
@@ -330,7 +330,11 @@ export class AdwAboutDialog extends HTMLElement {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
/** A navigation page wrapping a header bar (with the close button) + content. */
|
|
333
|
-
private _buildPage(
|
|
333
|
+
private _buildPage(
|
|
334
|
+
tag: string,
|
|
335
|
+
title: string,
|
|
336
|
+
showClose: boolean,
|
|
337
|
+
): {
|
|
334
338
|
page: HTMLElement;
|
|
335
339
|
body: HTMLDivElement;
|
|
336
340
|
header: HTMLElement;
|
|
@@ -222,7 +222,9 @@ export class AdwAlertDialog extends HTMLElement {
|
|
|
222
222
|
// Keep the headless model a complete description of the dialog; the
|
|
223
223
|
// attribute stays the source of truth for the rendered heading.
|
|
224
224
|
this._model.heading = this.heading;
|
|
225
|
-
this.dispatchEvent(
|
|
225
|
+
this.dispatchEvent(
|
|
226
|
+
new CustomEvent('notify::heading', { bubbles: true, detail: { heading: this.heading } }),
|
|
227
|
+
);
|
|
226
228
|
} else if (name === 'body') {
|
|
227
229
|
this._model.body = this.body;
|
|
228
230
|
this.dispatchEvent(new CustomEvent('notify::body', { bubbles: true, detail: { body: this.body } }));
|
|
@@ -180,7 +180,9 @@ export class AdwCarousel extends HTMLElement implements CarouselHost {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
private _emitPosition(): void {
|
|
183
|
-
this.dispatchEvent(
|
|
183
|
+
this.dispatchEvent(
|
|
184
|
+
new CustomEvent('notify::position', { bubbles: true, detail: { position: this._position } }),
|
|
185
|
+
);
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
|
|
@@ -223,7 +223,9 @@ export class AdwNavigationView extends HTMLElement {
|
|
|
223
223
|
this._render();
|
|
224
224
|
this.dispatchEvent(new CustomEvent('popped', { bubbles: true, detail: { tag: popped.tag } }));
|
|
225
225
|
const next = this.visiblePage;
|
|
226
|
-
this.dispatchEvent(
|
|
226
|
+
this.dispatchEvent(
|
|
227
|
+
new CustomEvent('notify::visible-page', { bubbles: true, detail: { tag: next?.tag ?? null } }),
|
|
228
|
+
);
|
|
227
229
|
return true;
|
|
228
230
|
}
|
|
229
231
|
|