@gravitee/ui-particles-angular 7.18.0 → 7.19.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/esm2020/lib/gio-form-json-schema/gio-form-json-schema.component.mjs +4 -4
- package/esm2020/lib/gio-loader/gio-loader.component.mjs +2 -2
- package/esm2020/lib/gio-menu/gio-menu-item/gio-menu-item.component.mjs +4 -4
- package/esm2020/lib/gio-submenu/gio-submenu.component.mjs +6 -6
- package/fesm2015/gravitee-ui-particles-angular.mjs +13 -13
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +13 -13
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2044,12 +2044,12 @@ class GioMenuItemComponent {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
onClick($event) {
|
|
2046
2046
|
of(true)
|
|
2047
|
-
.pipe(
|
|
2047
|
+
.pipe(delay(0), tap(() => this.onMouseEnter($event)), takeUntil(this.unsubscribe$))
|
|
2048
2048
|
.subscribe();
|
|
2049
2049
|
}
|
|
2050
2050
|
onKeydownHandler($event) {
|
|
2051
2051
|
of($event.key === 'Enter' && $event.target)
|
|
2052
|
-
.pipe(
|
|
2052
|
+
.pipe(filter(enterKey => !!enterKey), switchMap(() => of($event.target)), tap(menuItem => {
|
|
2053
2053
|
this.gioMenuService.overlay({ open: false });
|
|
2054
2054
|
if (this.active) {
|
|
2055
2055
|
this.gioMenuService.overlay({ open: true, top: menuItem.getBoundingClientRect().top, parent: menuItem, focus: true });
|
|
@@ -2057,7 +2057,7 @@ class GioMenuItemComponent {
|
|
|
2057
2057
|
else {
|
|
2058
2058
|
menuItem.click();
|
|
2059
2059
|
}
|
|
2060
|
-
}))
|
|
2060
|
+
}), takeUntil(this.unsubscribe$))
|
|
2061
2061
|
.subscribe();
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
@@ -2392,7 +2392,7 @@ class GioSubmenuComponent {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
ngAfterViewInit() {
|
|
2394
2394
|
this.gioMenuService.reduce
|
|
2395
|
-
.pipe(
|
|
2395
|
+
.pipe(filter(reduced => reduced), tap(() => {
|
|
2396
2396
|
this.reduced = true;
|
|
2397
2397
|
this.loaded = true;
|
|
2398
2398
|
}), switchMap(() => this.gioMenuService.overlayObservable), tap(overlayOptions => {
|
|
@@ -2403,17 +2403,17 @@ class GioSubmenuComponent {
|
|
|
2403
2403
|
this.gioSubmenu.nativeElement.style.height = 'auto';
|
|
2404
2404
|
this.gioSubmenu.nativeElement.style.maxHeight = `calc(100vh - ${top + 8}px)`;
|
|
2405
2405
|
}
|
|
2406
|
-
}), filter(overlayOptions => !!overlayOptions.focus), delay(200), switchMap(() => of(this.gioSubmenu.nativeElement.querySelectorAll('gio-submenu-item'))), filter(submenuItems => submenuItems.length > 0), tap(submenuItems => submenuItems[0].focus()))
|
|
2406
|
+
}), filter(overlayOptions => !!overlayOptions.focus), delay(200), switchMap(() => of(this.gioSubmenu.nativeElement.querySelectorAll('gio-submenu-item'))), filter(submenuItems => submenuItems.length > 0), tap(submenuItems => submenuItems[0].focus()), takeUntil(this.unsubscribe$))
|
|
2407
2407
|
.subscribe(() => {
|
|
2408
2408
|
this.changeDetectorRef.detectChanges();
|
|
2409
2409
|
});
|
|
2410
2410
|
this.gioMenuService.reduce
|
|
2411
|
-
.pipe(
|
|
2411
|
+
.pipe(filter(reduced => !reduced), tap(() => {
|
|
2412
2412
|
this.reduced = false;
|
|
2413
2413
|
this.loaded = true;
|
|
2414
2414
|
this.gioSubmenu.nativeElement.style.height = '100%';
|
|
2415
2415
|
this.gioSubmenu.nativeElement.style.maxHeight = 'none';
|
|
2416
|
-
}))
|
|
2416
|
+
}), takeUntil(this.unsubscribe$))
|
|
2417
2417
|
.subscribe(() => {
|
|
2418
2418
|
this.changeDetectorRef.detectChanges();
|
|
2419
2419
|
});
|
|
@@ -2432,7 +2432,7 @@ class GioSubmenuComponent {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
onKeydownHandler(event) {
|
|
2434
2434
|
of(this.reduced && event.key === 'Escape')
|
|
2435
|
-
.pipe(filter(reducedAndEscape => reducedAndEscape), tap(() => this.gioMenuService.overlay({ open: false })), delay(100), tap(() => this.overlayOptions.parent?.focus()))
|
|
2435
|
+
.pipe(filter(reducedAndEscape => reducedAndEscape), tap(() => this.gioMenuService.overlay({ open: false })), delay(100), tap(() => this.overlayOptions.parent?.focus()), takeUntil(this.unsubscribe$))
|
|
2436
2436
|
.subscribe();
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
@@ -3227,7 +3227,7 @@ class GioFormJsonSchemaComponent {
|
|
|
3227
3227
|
// When the parent form is touched, mark all the sub formGroup as touched if not already touched
|
|
3228
3228
|
const parentControl = this.ngControl?.control?.parent;
|
|
3229
3229
|
parentControl?.statusChanges
|
|
3230
|
-
?.pipe(
|
|
3230
|
+
?.pipe(map(() => parentControl?.touched), filter(touched => touched === true), distinctUntilChanged(), takeUntil(this.unsubscribe$))
|
|
3231
3231
|
.subscribe(() => {
|
|
3232
3232
|
if (this.isDisabled) {
|
|
3233
3233
|
return;
|
|
@@ -3237,7 +3237,7 @@ class GioFormJsonSchemaComponent {
|
|
|
3237
3237
|
});
|
|
3238
3238
|
// Add async validator to the parent
|
|
3239
3239
|
this.ngControl?.control?.addAsyncValidators(() => {
|
|
3240
|
-
return this.isValid$.pipe(
|
|
3240
|
+
return this.isValid$.pipe(take(1), map(isValid => (isValid ? null : { invalid: true })), takeUntil(this.unsubscribe$));
|
|
3241
3241
|
});
|
|
3242
3242
|
// Subscribe to state changes to manage touches, status and value
|
|
3243
3243
|
this.stateChanges$
|
|
@@ -3271,7 +3271,7 @@ class GioFormJsonSchemaComponent {
|
|
|
3271
3271
|
ngAfterViewInit() {
|
|
3272
3272
|
// Group all valueChanges events emit by formly in a single one
|
|
3273
3273
|
merge(this.formGroup.statusChanges, this.formGroup.valueChanges)
|
|
3274
|
-
.pipe(takeUntil(this.unsubscribe$)
|
|
3274
|
+
.pipe(debounceTime(100), takeUntil(this.unsubscribe$))
|
|
3275
3275
|
.subscribe(() => {
|
|
3276
3276
|
this.stateChanges$.next();
|
|
3277
3277
|
});
|
|
@@ -4934,10 +4934,10 @@ GioMonacoEditorHarness.hostSelector = 'gio-monaco-editor';
|
|
|
4934
4934
|
class GioLoaderComponent {
|
|
4935
4935
|
}
|
|
4936
4936
|
GioLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4937
|
-
GioLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioLoaderComponent, selector: "gio-loader", ngImport: i0, template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"loader\">\n <mat-icon svgIcon=\"gio:loader\"></mat-icon>\n</div>\n", styles: [":host{position:relative;display:flex}.loader{display:flex;align-items:center;justify-content:center;animation:rotation 2s infinite linear}.loader mat-icon{width:100%;height:100%}@keyframes rotation{to{transform:rotate(360deg)}}\n"], components: [{ type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
4937
|
+
GioLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioLoaderComponent, selector: "gio-loader", ngImport: i0, template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"loader\">\n <mat-icon svgIcon=\"gio:loader\"></mat-icon>\n</div>\n", styles: [":host{position:relative;display:flex;width:48px;height:48px;align-self:center;margin:auto}.loader{display:flex;align-items:center;justify-content:center;animation:rotation 2s infinite linear}.loader mat-icon{width:100%;height:100%}@keyframes rotation{to{transform:rotate(360deg)}}\n"], components: [{ type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
4938
4938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioLoaderComponent, decorators: [{
|
|
4939
4939
|
type: Component,
|
|
4940
|
-
args: [{ selector: 'gio-loader', template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"loader\">\n <mat-icon svgIcon=\"gio:loader\"></mat-icon>\n</div>\n", styles: [":host{position:relative;display:flex}.loader{display:flex;align-items:center;justify-content:center;animation:rotation 2s infinite linear}.loader mat-icon{width:100%;height:100%}@keyframes rotation{to{transform:rotate(360deg)}}\n"] }]
|
|
4940
|
+
args: [{ selector: 'gio-loader', template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"loader\">\n <mat-icon svgIcon=\"gio:loader\"></mat-icon>\n</div>\n", styles: [":host{position:relative;display:flex;width:48px;height:48px;align-self:center;margin:auto}.loader{display:flex;align-items:center;justify-content:center;animation:rotation 2s infinite linear}.loader mat-icon{width:100%;height:100%}@keyframes rotation{to{transform:rotate(360deg)}}\n"] }]
|
|
4941
4941
|
}] });
|
|
4942
4942
|
|
|
4943
4943
|
/*
|