@tilde-nlp/ngx-common 6.1.62 → 6.1.64

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.
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DomainTranslatePipe implements PipeTransform {
5
+ readonly translate: TranslateService;
6
+ constructor(translate: TranslateService);
7
+ transform(value: string, isDomain: boolean): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DomainTranslatePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<DomainTranslatePipe, "domainTranslate", true>;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './domain-translate.pipe';
@@ -8,3 +8,5 @@ export * from './sort-by-number';
8
8
  export * from './sort-alphabetically';
9
9
  export * from './sort-language-list';
10
10
  export * from './file-size-label';
11
+ export * from './domain-translate';
12
+ export * from './sort-domains';
@@ -0,0 +1 @@
1
+ export * from './sort-domains.pipe';
@@ -0,0 +1,15 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * This is a custom pipe for sorting domains.
6
+ * It prioritizes the most important entries using a specific order:
7
+ * "General" first, followed by LLM-related domains, and then the rest in alphabetical order.
8
+ */
9
+ export declare class SortDomainsPipe implements PipeTransform {
10
+ readonly translate: TranslateService;
11
+ constructor(translate: TranslateService);
12
+ transform(value: any[], isDomainList: boolean, key: string): any[];
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortDomainsPipe, never>;
14
+ static ɵpipe: i0.ɵɵPipeDeclaration<SortDomainsPipe, "sortDomains", true>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "6.1.62",
3
+ "version": "6.1.64",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",
@@ -11,6 +11,7 @@ dynamic-zone,
11
11
  a {
12
12
  @extend .semi-bold;
13
13
  $primary-accent: var(--primary-accent) !important;
14
+ $base-100: var(--base-100) !important;
14
15
 
15
16
  text-decoration: none;
16
17
  color: $primary-accent;
@@ -19,13 +20,22 @@ dynamic-zone,
19
20
  color: $primary-accent;
20
21
  }
21
22
 
22
- &:not(.base-color-link, .mdc-button--outlined, .footer-links a) {
23
+ &:not(.base-color-link, .mdc-button--outlined, .footer-links a, .mdc-button--raised) {
23
24
  color: $primary-accent;
24
25
 
25
26
  &:hover {
26
27
  text-decoration: underline;
27
28
  }
28
29
  }
30
+
31
+ .mdc-button--raised {
32
+ color: $base-100;
33
+ background-color: $primary-accent;
34
+
35
+ &:hover {
36
+ color: $base-100;
37
+ }
38
+ }
29
39
  }
30
40
 
31
41
  h1,