@ecodev/natural 63.2.0 → 63.2.1
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.
|
@@ -8950,7 +8950,7 @@ class NaturalAbstractFile {
|
|
|
8950
8950
|
*/
|
|
8951
8951
|
multiple = false;
|
|
8952
8952
|
/**
|
|
8953
|
-
* Comma-separated list of unique file type specifiers. Like the native element
|
|
8953
|
+
* Comma-separated list of unique file type specifiers. Like the native element,
|
|
8954
8954
|
* it can be a mix of mime-type and file extensions.
|
|
8955
8955
|
*
|
|
8956
8956
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
@@ -8974,7 +8974,7 @@ class NaturalAbstractFile {
|
|
|
8974
8974
|
/**
|
|
8975
8975
|
* If true, the file selection will be broadcast through `NaturalFileService.filesChanged`.
|
|
8976
8976
|
*
|
|
8977
|
-
* It is useful to set this to false if there
|
|
8977
|
+
* It is useful to set this to false if there are two uploads on a page with different purposes,
|
|
8978
8978
|
* and the second upload should not be confused with the first one.
|
|
8979
8979
|
*/
|
|
8980
8980
|
broadcast = true;
|
|
@@ -9752,6 +9752,11 @@ class NaturalPanelsService {
|
|
|
9752
9752
|
this.updateComponentsPosition();
|
|
9753
9753
|
});
|
|
9754
9754
|
}
|
|
9755
|
+
/**
|
|
9756
|
+
* Notify the service to start listening to route changes to open panels
|
|
9757
|
+
*
|
|
9758
|
+
* @internal
|
|
9759
|
+
*/
|
|
9755
9760
|
start(route) {
|
|
9756
9761
|
NaturalPanelsService._opened = true;
|
|
9757
9762
|
this.routeSub = route.url.subscribe(segments => {
|
|
@@ -9796,6 +9801,11 @@ class NaturalPanelsService {
|
|
|
9796
9801
|
const newUrl = config.map(conf => segmentsToString(conf.route.segments)).join('/');
|
|
9797
9802
|
this.router.navigateByUrl(this.router.url + '/' + newUrl);
|
|
9798
9803
|
}
|
|
9804
|
+
/**
|
|
9805
|
+
* Notify the service that all panels were closed
|
|
9806
|
+
*
|
|
9807
|
+
* @internal
|
|
9808
|
+
*/
|
|
9799
9809
|
stop() {
|
|
9800
9810
|
NaturalPanelsService._opened = false;
|
|
9801
9811
|
this.routeSub?.unsubscribe();
|
|
@@ -9806,6 +9816,8 @@ class NaturalPanelsService {
|
|
|
9806
9816
|
}
|
|
9807
9817
|
/**
|
|
9808
9818
|
* Go to panel matching given component. Causes an url change.
|
|
9819
|
+
*
|
|
9820
|
+
* @internal
|
|
9809
9821
|
*/
|
|
9810
9822
|
goToPanelByComponent(component) {
|
|
9811
9823
|
this.goToPanelByIndex(this.getPanelIndex(component));
|
|
@@ -9949,6 +9961,13 @@ class NaturalPanelsService {
|
|
|
9949
9961
|
}
|
|
9950
9962
|
return this.dialog.openDialogs.findIndex(dialog => dialog.componentInstance === component);
|
|
9951
9963
|
}
|
|
9964
|
+
/**
|
|
9965
|
+
* Whether the given panel is currently the top, visible, panel. If there are no panels opened at all, then any panel given is considered top, visible, panel.
|
|
9966
|
+
*/
|
|
9967
|
+
isTopPanel(component) {
|
|
9968
|
+
const length = this.dialog.openDialogs.length;
|
|
9969
|
+
return !length || this.dialog.openDialogs[length - 1]?.componentInstance === component;
|
|
9970
|
+
}
|
|
9952
9971
|
/**
|
|
9953
9972
|
* Repositions panels from start until given index
|
|
9954
9973
|
*/
|