@geogirafe/lib-geoportal 1.0.2154016552 → 1.0.2161286834
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.
|
@@ -263,6 +263,9 @@ class GirafeHTMLElement extends HTMLElement {
|
|
|
263
263
|
}
|
|
264
264
|
parent = parent?.parentNode ?? null;
|
|
265
265
|
} while (parent && parent !== document);
|
|
266
|
+
if (parent === document) {
|
|
267
|
+
return parent.geogirafe.context;
|
|
268
|
+
}
|
|
266
269
|
throw new Error('No context was found !');
|
|
267
270
|
}
|
|
268
271
|
}
|
|
@@ -28,9 +28,7 @@ class TimeRestrictionComponent extends GirafeHTMLElement {
|
|
|
28
28
|
renderComponent() {
|
|
29
29
|
this.render();
|
|
30
30
|
super.girafeTranslate();
|
|
31
|
-
|
|
32
|
-
this.initTimeWidget();
|
|
33
|
-
}
|
|
31
|
+
this.initTimeWidget();
|
|
34
32
|
// Wait for the time widget to be rendered, then set the time
|
|
35
33
|
setTimeout(() => {
|
|
36
34
|
this.onOutsideTimeChange(this.layer.timeRestriction);
|
|
@@ -41,7 +39,7 @@ class TimeRestrictionComponent extends GirafeHTMLElement {
|
|
|
41
39
|
// The type of time widget component in the template is dependent on the timeOptions > widget value
|
|
42
40
|
this.timeWidget = this.getById('time-widget');
|
|
43
41
|
this.timeWidget.initialize(this.timeOptions);
|
|
44
|
-
this.render();
|
|
42
|
+
this.timeWidget.render();
|
|
45
43
|
// Connect change event of widget
|
|
46
44
|
this.timeWidget.addEventListener(TimeChangeEvent, ((evt) => this.onTimeChange(evt.detail)));
|
|
47
45
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.2161286834", "build":"2161286834", "date":"16/11/2025"}
|