geonetwork-ui 2.6.0-dev.582b4530a → 2.6.0-dev.9df114cd4
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/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +7 -6
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
- package/esm2022/translations/de.json +2 -1
- package/esm2022/translations/en.json +2 -1
- package/esm2022/translations/es.json +2 -1
- package/esm2022/translations/fr.json +4 -3
- package/esm2022/translations/it.json +2 -1
- package/esm2022/translations/nl.json +2 -1
- package/esm2022/translations/pt.json +2 -1
- package/fesm2022/geonetwork-ui.mjs +68 -33
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +0 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +0 -6
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +14 -6
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
- package/src/libs/ui/inputs/src/index.ts +0 -1
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +5 -5
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
- package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
- package/tailwind.base.css +16 -11
- package/translations/de.json +2 -1
- package/translations/en.json +2 -1
- package/translations/es.json +2 -1
- package/translations/fr.json +4 -3
- package/translations/it.json +2 -1
- package/translations/nl.json +2 -1
- package/translations/pt.json +2 -1
- package/translations/sk.json +2 -1
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAStB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;;AAGrH,qBAQa,qBAAsB,YAAW,aAAa,EAAE,SAAS;IAsClE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,gBAAgB;IAzCjB,YAAY,CAAC,UAAO;IAC7B,IAAa,MAAM,CAAC,KAAK,wBAAA,EAMxB;IACD,IAAI,MAAM,2BAET;IACD,WAAW,sBAEV;IACD,YAAY,sBAAqC;IACjD,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,OAAO,UAAQ;IACf,QAAQ,SAA4B;IACpC,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,CAOhC;IAED,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;IAE/B,IAAI,gBAAgB,YAEnB;gBAGS,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,cAAc,EAAE,iBAAiB,EACjC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB;IAG5C,eAAe,IAAI,IAAI;IAoCvB,WAAW,IAAI,IAAI;IAKnB,cAAc,CAAC,UAAU,KAAA;yCAtFd,qBAAqB;2CAArB,qBAAqB;CAwGjC"}
|
|
@@ -15,7 +15,6 @@ export * from './lib/dropdown-selector/dropdown-selector.model';
|
|
|
15
15
|
export * from './lib/editable-label/editable-label.directive';
|
|
16
16
|
export * from './lib/file-input/file-input.component';
|
|
17
17
|
export * from './lib/files-drop/files-drop.directive';
|
|
18
|
-
export * from './lib/navigation-button/navigation-button.component';
|
|
19
18
|
export * from './lib/search-input/search-input.component';
|
|
20
19
|
export * from './lib/star-toggle/star-toggle.component';
|
|
21
20
|
export * from './lib/switch-toggle/switch-toggle.component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/inputs/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2CAA2C,CAAA;AACzD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mDAAmD,CAAA;AACjE,cAAc,yCAAyC,CAAA;AACvD,cAAc,yDAAyD,CAAA;AACvE,cAAc,qDAAqD,CAAA;AACnE,cAAc,mEAAmE,CAAA;AACjF,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qDAAqD,CAAA;AACnE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/inputs/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAA;AACzD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2CAA2C,CAAA;AACzD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mDAAmD,CAAA;AACjE,cAAc,yCAAyC,CAAA;AACvD,cAAc,yDAAyD,CAAA;AACvE,cAAc,qDAAqD,CAAA;AACnE,cAAc,mEAAmE,CAAA;AACjF,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qDAAqD,CAAA;AACnE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,wBAAwB,CAAA;AACtC,cAAc,qCAAqC,CAAA;AACnD,cAAc,2DAA2D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"star-toggle.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,YAAY,EAIb,MAAM,eAAe,CAAA;;
|
|
1
|
+
{"version":3,"file":"star-toggle.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,YAAY,EAIb,MAAM,eAAe,CAAA;;AAOtB,qBASa,mBAAmB;IACrB,OAAO,EAAG,OAAO,CAAA;IACjB,QAAQ,UAAQ;IACf,QAAQ,wBAA8B;IACtB,OAAO,EAAE,UAAU,CAAA;IAE7C,MAAM,CAAC,KAAK,EAAE,KAAK;yCANR,mBAAmB;2CAAnB,mBAAmB;CAmB/B"}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AnchorLinkDirective implements OnInit, OnDestroy {
|
|
3
|
+
export declare class AnchorLinkDirective implements OnInit, AfterViewChecked, OnDestroy {
|
|
4
4
|
private changeDetector;
|
|
5
5
|
targetId: string;
|
|
6
6
|
disabledClass: string;
|
|
7
7
|
enabledClass: string;
|
|
8
|
+
inViewClass: string;
|
|
9
|
+
outOfViewClass: string;
|
|
8
10
|
get elementClass(): string;
|
|
9
11
|
disabled: boolean;
|
|
10
12
|
observer: MutationObserver;
|
|
13
|
+
inView: boolean;
|
|
14
|
+
intersectionObserver: IntersectionObserver;
|
|
15
|
+
initialized: boolean;
|
|
11
16
|
constructor(changeDetector: ChangeDetectorRef);
|
|
12
17
|
ngOnInit(): void;
|
|
18
|
+
ngAfterViewChecked(): void;
|
|
19
|
+
initializeIntersectionObserver(target: HTMLElement): void;
|
|
13
20
|
ngOnDestroy(): void;
|
|
14
21
|
refreshDisabledState(): void;
|
|
15
22
|
scrollToTarget(): void;
|
|
16
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnchorLinkDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AnchorLinkDirective, "[gnUiAnchorLink]", never, { "targetId": { "alias": "gnUiAnchorLink"; "required": false; }; "disabledClass": { "alias": "gnUiAnchorLinkDisabledClass"; "required": false; }; "enabledClass": { "alias": "gnUiAnchorLinkEnabledClass"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AnchorLinkDirective, "[gnUiAnchorLink]", never, { "targetId": { "alias": "gnUiAnchorLink"; "required": false; }; "disabledClass": { "alias": "gnUiAnchorLinkDisabledClass"; "required": false; }; "enabledClass": { "alias": "gnUiAnchorLinkEnabledClass"; "required": false; }; "inViewClass": { "alias": "gnUiAnchorLinkInViewClass"; "required": false; }; "outOfViewClass": { "alias": "gnUiAnchorLinkOutOfViewClass"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
25
|
}
|
|
19
26
|
//# sourceMappingURL=anchor-link.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchor-link.directive.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKjB,SAAS,EACT,MAAM,EACP,MAAM,eAAe,CAAA;;AAEtB,qBAGa,
|
|
1
|
+
{"version":3,"file":"anchor-link.directive.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EAKjB,SAAS,EACT,MAAM,EACP,MAAM,eAAe,CAAA;;AAEtB,qBAGa,mBACX,YAAW,MAAM,EAAE,gBAAgB,EAAE,SAAS;IA4BlC,OAAO,CAAC,cAAc;IA1BT,QAAQ,EAAE,MAAM,CAAA;IACH,aAAa,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IAE7D,IACI,YAAY,IAAI,MAAM,CASzB;IAED,QAAQ,UAAQ;IAChB,QAAQ,mBAEN;IACF,MAAM,UAAQ;IACd,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,WAAW,UAAQ;gBAEC,cAAc,EAAE,iBAAiB;IAErD,QAAQ;IAQR,kBAAkB;IAUlB,8BAA8B,CAAC,MAAM,EAAE,WAAW;IAgBlD,WAAW;IAOX,oBAAoB;IAQG,cAAc;yCAhF1B,mBAAmB;2CAAnB,mBAAmB;CAwF/B"}
|
package/package.json
CHANGED
package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html
CHANGED
|
@@ -10,10 +10,4 @@
|
|
|
10
10
|
(newValue)="toggleFavorite($event)"
|
|
11
11
|
[disabled]="loading || (isAnonymous$ | async)"
|
|
12
12
|
></gn-ui-star-toggle>
|
|
13
|
-
<span
|
|
14
|
-
class="align-text-top ml-1.5"
|
|
15
|
-
data-test="favorite-count"
|
|
16
|
-
*ngIf="!displayCount"
|
|
17
|
-
translate="datahub.record.addToFavorites"
|
|
18
|
-
></span>
|
|
19
13
|
</div>
|
|
@@ -8,7 +8,13 @@ import {
|
|
|
8
8
|
OnDestroy,
|
|
9
9
|
ViewChild,
|
|
10
10
|
} from '@angular/core'
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
map,
|
|
13
|
+
pairwise,
|
|
14
|
+
startWith,
|
|
15
|
+
switchMap,
|
|
16
|
+
withLatestFrom,
|
|
17
|
+
} from 'rxjs/operators'
|
|
12
18
|
import tippy from 'tippy.js'
|
|
13
19
|
import { TranslateService } from '@ngx-translate/core'
|
|
14
20
|
import { StarToggleComponent } from '../../../../../../../libs/ui/inputs/src'
|
|
@@ -46,11 +52,13 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
46
52
|
favoriteCount: number | null
|
|
47
53
|
loading = false
|
|
48
54
|
loginUrl = this.authService.loginUrl
|
|
49
|
-
loginMessage$: Observable<string> = this.translateService.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
loginMessage$: Observable<string> = this.translateService.onLangChange.pipe(
|
|
56
|
+
startWith(null), // make sure to wait for translations to be loaded with and without language change
|
|
57
|
+
switchMap(() =>
|
|
58
|
+
this.translateService.get('favorite.not.authenticated.tooltip', {
|
|
59
|
+
link: this.loginUrl,
|
|
60
|
+
})
|
|
61
|
+
)
|
|
54
62
|
)
|
|
55
63
|
@ViewChild(StarToggleComponent, { read: ElementRef })
|
|
56
64
|
starToggleRef: ElementRef
|
|
@@ -15,7 +15,6 @@ export * from './lib/dropdown-selector/dropdown-selector.model'
|
|
|
15
15
|
export * from './lib/editable-label/editable-label.directive'
|
|
16
16
|
export * from './lib/file-input/file-input.component'
|
|
17
17
|
export * from './lib/files-drop/files-drop.directive'
|
|
18
|
-
export * from './lib/navigation-button/navigation-button.component'
|
|
19
18
|
export * from './lib/search-input/search-input.component'
|
|
20
19
|
export * from './lib/star-toggle/star-toggle.component'
|
|
21
20
|
export * from './lib/switch-toggle/switch-toggle.component'
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<div class="inline-block relative align-middle" style="line-height: 0.7em">
|
|
2
|
-
<button
|
|
3
|
-
type="
|
|
2
|
+
<gn-ui-button
|
|
3
|
+
[type]="'outline'"
|
|
4
4
|
class="-m-[8px] p-[8px]"
|
|
5
|
-
(
|
|
5
|
+
(buttonClick)="toggle($event)"
|
|
6
6
|
[ngClass]="{
|
|
7
7
|
enabled: toggled,
|
|
8
|
-
|
|
8
|
+
disabled: !toggled,
|
|
9
9
|
'transition hover:scale-125 will-change-transform': !disabled,
|
|
10
10
|
'cursor-default': disabled,
|
|
11
11
|
}"
|
|
12
12
|
>
|
|
13
13
|
<ng-icon [name]="toggled ? 'matStar' : 'matStarBorder'"></ng-icon>
|
|
14
|
-
</button>
|
|
14
|
+
</gn-ui-button>
|
|
15
15
|
<svg
|
|
16
16
|
#starOverlay
|
|
17
17
|
class="star-toggle-overlay"
|
|
@@ -11,6 +11,7 @@ import { propagateToDocumentOnly } from '../../../../../../libs/util/shared/src'
|
|
|
11
11
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
12
12
|
import { CommonModule } from '@angular/common'
|
|
13
13
|
import { matStar, matStarBorder } from '@ng-icons/material-icons/baseline'
|
|
14
|
+
import { ButtonComponent } from '../button/button.component'
|
|
14
15
|
|
|
15
16
|
@Component({
|
|
16
17
|
selector: 'gn-ui-star-toggle',
|
|
@@ -18,7 +19,7 @@ import { matStar, matStarBorder } from '@ng-icons/material-icons/baseline'
|
|
|
18
19
|
styleUrls: ['./star-toggle.component.css'],
|
|
19
20
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
21
|
standalone: true,
|
|
21
|
-
imports: [CommonModule, NgIcon],
|
|
22
|
+
imports: [CommonModule, NgIcon, ButtonComponent],
|
|
22
23
|
viewProviders: [provideIcons({ matStar, matStarBorder })],
|
|
23
24
|
})
|
|
24
25
|
export class StarToggleComponent {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AfterViewChecked,
|
|
2
3
|
ChangeDetectorRef,
|
|
3
4
|
Directive,
|
|
4
5
|
HostBinding,
|
|
@@ -11,20 +12,34 @@ import {
|
|
|
11
12
|
@Directive({
|
|
12
13
|
selector: '[gnUiAnchorLink]',
|
|
13
14
|
})
|
|
14
|
-
export class AnchorLinkDirective
|
|
15
|
+
export class AnchorLinkDirective
|
|
16
|
+
implements OnInit, AfterViewChecked, OnDestroy
|
|
17
|
+
{
|
|
15
18
|
@Input('gnUiAnchorLink') targetId: string
|
|
16
19
|
@Input('gnUiAnchorLinkDisabledClass') disabledClass: string
|
|
17
20
|
@Input('gnUiAnchorLinkEnabledClass') enabledClass: string
|
|
21
|
+
@Input('gnUiAnchorLinkInViewClass') inViewClass: string
|
|
22
|
+
@Input('gnUiAnchorLinkOutOfViewClass') outOfViewClass: string
|
|
18
23
|
|
|
19
24
|
@HostBinding('class')
|
|
20
25
|
get elementClass(): string {
|
|
21
|
-
|
|
26
|
+
if (this.disabled) {
|
|
27
|
+
return this.disabledClass
|
|
28
|
+
}
|
|
29
|
+
if (this.inView) {
|
|
30
|
+
return `${this.inViewClass} ${this.enabledClass}`
|
|
31
|
+
} else {
|
|
32
|
+
return `${this.outOfViewClass} ${this.enabledClass}`
|
|
33
|
+
}
|
|
22
34
|
}
|
|
23
35
|
|
|
24
36
|
disabled = false
|
|
25
37
|
observer = new MutationObserver(() => {
|
|
26
38
|
this.refreshDisabledState()
|
|
27
39
|
})
|
|
40
|
+
inView = false
|
|
41
|
+
intersectionObserver: IntersectionObserver
|
|
42
|
+
initialized = false
|
|
28
43
|
|
|
29
44
|
constructor(private changeDetector: ChangeDetectorRef) {}
|
|
30
45
|
|
|
@@ -36,8 +51,37 @@ export class AnchorLinkDirective implements OnInit, OnDestroy {
|
|
|
36
51
|
this.refreshDisabledState()
|
|
37
52
|
}
|
|
38
53
|
|
|
54
|
+
ngAfterViewChecked() {
|
|
55
|
+
if (!this.initialized && !this.disabled) {
|
|
56
|
+
const target = document.getElementById(this.targetId)
|
|
57
|
+
if (target) {
|
|
58
|
+
this.initializeIntersectionObserver(target)
|
|
59
|
+
this.initialized = true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
initializeIntersectionObserver(target: HTMLElement) {
|
|
65
|
+
this.intersectionObserver = new IntersectionObserver(
|
|
66
|
+
(entries) => {
|
|
67
|
+
entries.forEach((entry) => {
|
|
68
|
+
this.inView = entry.isIntersecting
|
|
69
|
+
this.changeDetector.detectChanges()
|
|
70
|
+
})
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
root: null,
|
|
74
|
+
rootMargin: '-30% 0% -60% 0%',
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
this.intersectionObserver.observe(target)
|
|
78
|
+
}
|
|
79
|
+
|
|
39
80
|
ngOnDestroy() {
|
|
40
81
|
this.observer.disconnect()
|
|
82
|
+
if (this.intersectionObserver) {
|
|
83
|
+
this.intersectionObserver.disconnect()
|
|
84
|
+
}
|
|
41
85
|
}
|
|
42
86
|
|
|
43
87
|
refreshDisabledState() {
|
package/tailwind.base.css
CHANGED
|
@@ -66,15 +66,20 @@
|
|
|
66
66
|
/* this is a base class, do not use it directly */
|
|
67
67
|
.gn-ui-btn {
|
|
68
68
|
--rounded: var(--gn-ui-button-rounded, 0.25em);
|
|
69
|
+
--border-width: var(--gn-ui-button-border-width, 1px);
|
|
69
70
|
--padding: var(--gn-ui-button-padding, 1em);
|
|
70
71
|
--width: var(--gn-ui-button-width, auto);
|
|
71
72
|
--height: var(--gn-ui-button-height, auto);
|
|
72
|
-
--background: var(--gn-ui-button-background, --color-background);
|
|
73
|
+
--background: var(--gn-ui-button-background, var(--color-background));
|
|
74
|
+
--bg-hover: var(--gn-ui-button-bg-hover, var(--color-background));
|
|
73
75
|
--font-size: var(--gn-ui-button-font-size, 1em);
|
|
76
|
+
--color: var(--gn-ui-button-color, var(--color-main));
|
|
74
77
|
@apply flex flex-row items-center justify-center
|
|
75
78
|
text-[length:--font-size] leading-none
|
|
79
|
+
text-[color:--color]
|
|
76
80
|
p-[--padding] rounded-[--rounded] w-[--width] h-[--height] overflow-hidden
|
|
77
|
-
bg-[--background] transition-all duration-100
|
|
81
|
+
border-[length:--border-width] bg-[--background] transition-all duration-100
|
|
82
|
+
hover:bg-[--bg-hover] focus:bg-[--bg-hover] active:bg-[--background]
|
|
78
83
|
outline-none
|
|
79
84
|
relative
|
|
80
85
|
disabled:opacity-50 disabled:pointer-events-none
|
|
@@ -90,43 +95,43 @@
|
|
|
90
95
|
.gn-ui-btn-default {
|
|
91
96
|
@apply gn-ui-btn text-white
|
|
92
97
|
bg-gray-700 hover:bg-gray-800 active:bg-gray-900
|
|
93
|
-
border
|
|
98
|
+
border-gray-700 focus:ring-4 focus:ring-gray-200;
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
.gn-ui-btn-primary {
|
|
97
102
|
@apply gn-ui-btn text-white
|
|
98
103
|
bg-primary hover:bg-primary-darker focus:bg-primary-darker active:bg-primary-darkest
|
|
99
|
-
border
|
|
104
|
+
border-primary focus:ring-4 focus:ring-primary-lightest;
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
.gn-ui-btn-secondary {
|
|
103
108
|
@apply gn-ui-btn text-white
|
|
104
109
|
bg-secondary hover:bg-secondary-darker focus:bg-secondary-darker active:bg-secondary-darkest
|
|
105
|
-
border
|
|
110
|
+
border-secondary focus:ring-4 focus:ring-secondary-lightest;
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
.gn-ui-btn-gray {
|
|
109
114
|
@apply gn-ui-btn text-black
|
|
110
115
|
bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 active:bg-gray-300
|
|
111
|
-
border
|
|
116
|
+
border-gray-100 focus:ring-4 focus:ring-gray-50;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
.gn-ui-btn-black {
|
|
115
120
|
@apply gn-ui-btn text-white
|
|
116
121
|
bg-black hover:bg-gray-950 focus:bg-gray-950 active:bg-gray-900
|
|
117
|
-
border
|
|
122
|
+
border-black focus:ring-4 focus:ring-gray-300;
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
.gn-ui-btn-outline {
|
|
121
|
-
@apply gn-ui-btn
|
|
126
|
+
@apply gn-ui-btn
|
|
122
127
|
hover:text-primary-darker focus:text-primary-darker active:text-primary-black
|
|
123
|
-
border
|
|
128
|
+
border-gray-300 hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker;
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
.gn-ui-btn-light {
|
|
127
|
-
@apply gn-ui-btn
|
|
132
|
+
@apply gn-ui-btn
|
|
128
133
|
hover:bg-gray-50 focus:bg-gray-50 active:bg-gray-100
|
|
129
|
-
border
|
|
134
|
+
border-white focus:ring-4 focus:ring-gray-300;
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
.gn-ui-card-xs {
|
package/translations/de.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "Ein spezielles Bedürfnis?",
|
|
64
64
|
"datahub.news.feed": "Nachrichtenfeed",
|
|
65
65
|
"datahub.news.figures": "Indikatoren",
|
|
66
|
-
"datahub.record.addToFavorites": "Zu Favoriten hinzufügen",
|
|
67
66
|
"datahub.search.back": "Zurück",
|
|
68
67
|
"datahub.search.filter.all": "Alle",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "Generiert durch eine API",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "Geben Sie die WMS URL ein",
|
|
334
333
|
"multiselect.filter.placeholder": "Suche",
|
|
335
334
|
"nav.back": "Zurück",
|
|
335
|
+
"navbar.mobile.menuTitle": "Schnellzugriff",
|
|
336
336
|
"next": "weiter",
|
|
337
337
|
"ogc.unreachable.unknown": "Der Dienst konnte nicht erreicht werden",
|
|
338
338
|
"organisation.filter.placeholder": "Ergebnisse filtern",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "",
|
|
397
397
|
"record.metadata.api.gpfdl": "",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "Katalog",
|
|
399
400
|
"record.metadata.contact": "Kontakt",
|
|
400
401
|
"record.metadata.creation": "Erstellungsdatum",
|
package/translations/en.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "A specific need?",
|
|
64
64
|
"datahub.news.feed": "News feed",
|
|
65
65
|
"datahub.news.figures": "Indicators",
|
|
66
|
-
"datahub.record.addToFavorites": "Add to favorites",
|
|
67
66
|
"datahub.search.back": "Back",
|
|
68
67
|
"datahub.search.filter.all": "All",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "Generated by an API",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "Enter WMS service URL",
|
|
334
333
|
"multiselect.filter.placeholder": "Search",
|
|
335
334
|
"nav.back": "Back",
|
|
335
|
+
"navbar.mobile.menuTitle": "Quick access",
|
|
336
336
|
"next": "Next",
|
|
337
337
|
"ogc.unreachable.unknown": "The service could not be reached",
|
|
338
338
|
"organisation.filter.placeholder": "Filter results",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "Zone",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "Dropdown for selecting a geographic zone",
|
|
397
397
|
"record.metadata.api.gpfdl": "Data download",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "Catalog",
|
|
399
400
|
"record.metadata.contact": "Contact",
|
|
400
401
|
"record.metadata.creation": "Date of creation",
|
package/translations/es.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "",
|
|
64
64
|
"datahub.news.feed": "",
|
|
65
65
|
"datahub.news.figures": "",
|
|
66
|
-
"datahub.record.addToFavorites": "",
|
|
67
66
|
"datahub.search.back": "",
|
|
68
67
|
"datahub.search.filter.all": "",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "",
|
|
334
333
|
"multiselect.filter.placeholder": "",
|
|
335
334
|
"nav.back": "",
|
|
335
|
+
"navbar.mobile.menuTitle": "Acceso rápido",
|
|
336
336
|
"next": "",
|
|
337
337
|
"ogc.unreachable.unknown": "",
|
|
338
338
|
"organisation.filter.placeholder": "",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "",
|
|
397
397
|
"record.metadata.api.gpfdl": "",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "",
|
|
399
400
|
"record.metadata.contact": "",
|
|
400
401
|
"record.metadata.creation": "",
|
package/translations/fr.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "Un besoin spécifique ?",
|
|
64
64
|
"datahub.news.feed": "Fil d'activité",
|
|
65
65
|
"datahub.news.figures": "Quelques chiffres",
|
|
66
|
-
"datahub.record.addToFavorites": "Ajouter aux favoris",
|
|
67
66
|
"datahub.search.back": "Retour",
|
|
68
67
|
"datahub.search.filter.all": "Tous",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "généré par une API",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "Entrez l'URL du service WMS",
|
|
334
333
|
"multiselect.filter.placeholder": "Rechercher",
|
|
335
334
|
"nav.back": "Retour",
|
|
335
|
+
"navbar.mobile.menuTitle": "Navigation rapide",
|
|
336
336
|
"next": "Suivant",
|
|
337
337
|
"ogc.unreachable.unknown": "Le service n'est pas accessible",
|
|
338
338
|
"organisation.filter.placeholder": "Filtrer les résultats",
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"record.kind.dataset": "Donnée",
|
|
363
363
|
"record.kind.reuse": "Réutilisation",
|
|
364
364
|
"record.kind.service": "Service",
|
|
365
|
-
"record.metadata.about": "
|
|
365
|
+
"record.metadata.about": "A propos",
|
|
366
366
|
"record.metadata.api": "API",
|
|
367
367
|
"record.metadata.api.form.closeButton": "Fermer",
|
|
368
368
|
"record.metadata.api.form.closeForm": "Fermer le panneau de personnalisation",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "Zone",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "Menu déroulant pour sélectionner une zone géographique",
|
|
397
397
|
"record.metadata.api.gpfdl": "Téléchargement",
|
|
398
|
+
"record.metadata.capabilities": "Capacités du service",
|
|
398
399
|
"record.metadata.catalog": "Catalogue",
|
|
399
400
|
"record.metadata.contact": "Contact",
|
|
400
401
|
"record.metadata.creation": "Date de création",
|
|
@@ -404,7 +405,7 @@
|
|
|
404
405
|
"record.metadata.keywords": "Mots-clés",
|
|
405
406
|
"record.metadata.languages": "Langues",
|
|
406
407
|
"record.metadata.lastUpdate": "Mis à jour le {date}",
|
|
407
|
-
"record.metadata.links": "
|
|
408
|
+
"record.metadata.links": "Ressources & liens",
|
|
408
409
|
"record.metadata.noUsage": "Aucune condition d'utilisation spécifiée pour ces données",
|
|
409
410
|
"record.metadata.otherConstraints": "Limitations d'usage",
|
|
410
411
|
"record.metadata.owner": "Catalogue d'origine",
|
package/translations/it.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "Ha un bisogno specifico?",
|
|
64
64
|
"datahub.news.feed": "Feed di attività",
|
|
65
65
|
"datahub.news.figures": "Alcune figure",
|
|
66
|
-
"datahub.record.addToFavorites": "Aggiungere a miei preferiti",
|
|
67
66
|
"datahub.search.back": "Ritorna",
|
|
68
67
|
"datahub.search.filter.all": "Tutti",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "generato da un'API",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "Inserisci URL del servizio WMS",
|
|
334
333
|
"multiselect.filter.placeholder": "Cerca",
|
|
335
334
|
"nav.back": "Indietro",
|
|
335
|
+
"navbar.mobile.menuTitle": "",
|
|
336
336
|
"next": "successivo",
|
|
337
337
|
"ogc.unreachable.unknown": "Il servizio non è accessibile",
|
|
338
338
|
"organisation.filter.placeholder": "Filtra i risultati",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "Zona",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "Menu a discesa per selezionare una zona geografica",
|
|
397
397
|
"record.metadata.api.gpfdl": "Scarica",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "Catalogo",
|
|
399
400
|
"record.metadata.contact": "Contatto",
|
|
400
401
|
"record.metadata.creation": "Data di creazione",
|
package/translations/nl.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "",
|
|
64
64
|
"datahub.news.feed": "",
|
|
65
65
|
"datahub.news.figures": "",
|
|
66
|
-
"datahub.record.addToFavorites": "",
|
|
67
66
|
"datahub.search.back": "",
|
|
68
67
|
"datahub.search.filter.all": "",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "",
|
|
334
333
|
"multiselect.filter.placeholder": "",
|
|
335
334
|
"nav.back": "",
|
|
335
|
+
"navbar.mobile.menuTitle": "",
|
|
336
336
|
"next": "",
|
|
337
337
|
"ogc.unreachable.unknown": "",
|
|
338
338
|
"organisation.filter.placeholder": "",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "",
|
|
397
397
|
"record.metadata.api.gpfdl": "",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "",
|
|
399
400
|
"record.metadata.contact": "",
|
|
400
401
|
"record.metadata.creation": "",
|
package/translations/pt.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "",
|
|
64
64
|
"datahub.news.feed": "",
|
|
65
65
|
"datahub.news.figures": "",
|
|
66
|
-
"datahub.record.addToFavorites": "",
|
|
67
66
|
"datahub.search.back": "",
|
|
68
67
|
"datahub.search.filter.all": "",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "",
|
|
334
333
|
"multiselect.filter.placeholder": "",
|
|
335
334
|
"nav.back": "",
|
|
335
|
+
"navbar.mobile.menuTitle": "",
|
|
336
336
|
"next": "",
|
|
337
337
|
"ogc.unreachable.unknown": "",
|
|
338
338
|
"organisation.filter.placeholder": "",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "",
|
|
397
397
|
"record.metadata.api.gpfdl": "",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "",
|
|
399
400
|
"record.metadata.contact": "",
|
|
400
401
|
"record.metadata.creation": "",
|
package/translations/sk.json
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"datahub.news.contact.title": "Špecifická potreba?",
|
|
64
64
|
"datahub.news.feed": "Spravodajský kanál",
|
|
65
65
|
"datahub.news.figures": "Ukazovatele",
|
|
66
|
-
"datahub.record.addToFavorites": "Pridať do obľúbených",
|
|
67
66
|
"datahub.search.back": "Späť na výsledky",
|
|
68
67
|
"datahub.search.filter.all": "Všetky",
|
|
69
68
|
"datahub.search.filter.generatedByAPI": "vygenerované cez API",
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
"map.wms.urlInput.hint": "Zadajte URL adresu služby WMS",
|
|
334
333
|
"multiselect.filter.placeholder": "Hľadať",
|
|
335
334
|
"nav.back": "Späť",
|
|
335
|
+
"navbar.mobile.menuTitle": "",
|
|
336
336
|
"next": "Ďalej",
|
|
337
337
|
"ogc.unreachable.unknown": "So službou sa nedalo spojiť",
|
|
338
338
|
"organisation.filter.placeholder": "Filtrovať výsledky",
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
"record.metadata.api.form.zoneTitle": "",
|
|
396
396
|
"record.metadata.api.form.zoneTooltip": "",
|
|
397
397
|
"record.metadata.api.gpfdl": "",
|
|
398
|
+
"record.metadata.capabilities": "",
|
|
398
399
|
"record.metadata.catalog": "Katalóg",
|
|
399
400
|
"record.metadata.contact": "Kontakt",
|
|
400
401
|
"record.metadata.creation": "",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { NgIcon } from '@ng-icons/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class NavigationButtonComponent {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavigationButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NavigationButtonComponent, isStandalone: true, selector: "gn-ui-navigation-button", inputs: { label: "label", icon: "icon" }, ngImport: i0, template: "<button\n class=\"group flex items-center justify-center gap-1 backdrop-blur p-1 bg-primary-opacity-30 rounded content-center\"\n>\n <ng-icon [name]=\"icon\" class=\"align-middle w-[18px]\"></ng-icon>\n <span\n class=\"mx-2 mt-0.5 text-[16px] tracking-widest content-center opacity-75\"\n >{{ label.toUpperCase() }}</span\n >\n</button>\n", styles: ["button{color:var(--navigation-button-color, --color-background)}\n"], dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7
|
-
}
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavigationButtonComponent, decorators: [{
|
|
9
|
-
type: Component,
|
|
10
|
-
args: [{ selector: 'gn-ui-navigation-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIcon], standalone: true, template: "<button\n class=\"group flex items-center justify-center gap-1 backdrop-blur p-1 bg-primary-opacity-30 rounded content-center\"\n>\n <ng-icon [name]=\"icon\" class=\"align-middle w-[18px]\"></ng-icon>\n <span\n class=\"mx-2 mt-0.5 text-[16px] tracking-widest content-center opacity-75\"\n >{{ label.toUpperCase() }}</span\n >\n</button>\n", styles: ["button{color:var(--navigation-button-color, --color-background)}\n"] }]
|
|
11
|
-
}], propDecorators: { label: [{
|
|
12
|
-
type: Input
|
|
13
|
-
}], icon: [{
|
|
14
|
-
type: Input
|
|
15
|
-
}] } });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGlvbi1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS9pbnB1dHMvc3JjL2xpYi9uYXZpZ2F0aW9uLWJ1dHRvbi9uYXZpZ2F0aW9uLWJ1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpL2lucHV0cy9zcmMvbGliL25hdmlnYXRpb24tYnV0dG9uL25hdmlnYXRpb24tYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFBO0FBQ3pFLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTs7QUFVdkMsTUFBTSxPQUFPLHlCQUF5QjsrR0FBekIseUJBQXlCO21HQUF6Qix5QkFBeUIsNkhDWHRDLDhWQVNBLDRIRERZLE1BQU07OzRGQUdMLHlCQUF5QjtrQkFSckMsU0FBUzsrQkFDRSx5QkFBeUIsbUJBR2xCLHVCQUF1QixDQUFDLE1BQU0sV0FDdEMsQ0FBQyxNQUFNLENBQUMsY0FDTCxJQUFJOzhCQUdQLEtBQUs7c0JBQWIsS0FBSztnQkFDRyxJQUFJO3NCQUFaLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSwgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnXG5pbXBvcnQgeyBOZ0ljb24gfSBmcm9tICdAbmctaWNvbnMvY29yZSdcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZ24tdWktbmF2aWdhdGlvbi1idXR0b24nLFxuICB0ZW1wbGF0ZVVybDogJy4vbmF2aWdhdGlvbi1idXR0b24uY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9uYXZpZ2F0aW9uLWJ1dHRvbi5jb21wb25lbnQuY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBpbXBvcnRzOiBbTmdJY29uXSxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbn0pXG5leHBvcnQgY2xhc3MgTmF2aWdhdGlvbkJ1dHRvbkNvbXBvbmVudCB7XG4gIEBJbnB1dCgpIGxhYmVsOiBzdHJpbmdcbiAgQElucHV0KCkgaWNvbjogc3RyaW5nXG59XG4iLCI8YnV0dG9uXG4gIGNsYXNzPVwiZ3JvdXAgZmxleCBpdGVtcy1jZW50ZXIganVzdGlmeS1jZW50ZXIgZ2FwLTEgYmFja2Ryb3AtYmx1ciBwLTEgYmctcHJpbWFyeS1vcGFjaXR5LTMwIHJvdW5kZWQgY29udGVudC1jZW50ZXJcIlxuPlxuICA8bmctaWNvbiBbbmFtZV09XCJpY29uXCIgY2xhc3M9XCJhbGlnbi1taWRkbGUgdy1bMThweF1cIj48L25nLWljb24+XG4gIDxzcGFuXG4gICAgY2xhc3M9XCJteC0yIG10LTAuNSB0ZXh0LVsxNnB4XSB0cmFja2luZy13aWRlc3QgY29udGVudC1jZW50ZXIgb3BhY2l0eS03NVwiXG4gICAgPnt7IGxhYmVsLnRvVXBwZXJDYXNlKCkgfX08L3NwYW5cbiAgPlxuPC9idXR0b24+XG4iXX0=
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class NavigationButtonComponent {
|
|
3
|
-
label: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationButtonComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationButtonComponent, "gn-ui-navigation-button", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=navigation-button.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts"],"names":[],"mappings":";AAGA,qBAQa,yBAAyB;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;yCAFV,yBAAyB;2CAAzB,yBAAyB;CAGrC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<button
|
|
2
|
-
class="group flex items-center justify-center gap-1 backdrop-blur p-1 bg-primary-opacity-30 rounded content-center"
|
|
3
|
-
>
|
|
4
|
-
<ng-icon [name]="icon" class="align-middle w-[18px]"></ng-icon>
|
|
5
|
-
<span
|
|
6
|
-
class="mx-2 mt-0.5 text-[16px] tracking-widest content-center opacity-75"
|
|
7
|
-
>{{ label.toUpperCase() }}</span
|
|
8
|
-
>
|
|
9
|
-
</button>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
2
|
-
import { NgIcon } from '@ng-icons/core'
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'gn-ui-navigation-button',
|
|
6
|
-
templateUrl: './navigation-button.component.html',
|
|
7
|
-
styleUrls: ['./navigation-button.component.css'],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
imports: [NgIcon],
|
|
10
|
-
standalone: true,
|
|
11
|
-
})
|
|
12
|
-
export class NavigationButtonComponent {
|
|
13
|
-
@Input() label: string
|
|
14
|
-
@Input() icon: string
|
|
15
|
-
}
|