@testgorilla/tgo-ui 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "lint-staged": {
5
5
  "src/**/*.ts": [
6
6
  "eslint --fix",
@@ -30,7 +30,7 @@
30
30
  "@ngneat/transloco": "^4.3.0",
31
31
  "@ngneat/transloco-messageformat": "^4.0.0",
32
32
  "@ngneat/until-destroy": "^10.0.0",
33
- "rxjs": "~7.5.5",
33
+ "rxjs": "~7.8.0",
34
34
  "zone.js": "^0.13.1"
35
35
  },
36
36
  "module": "fesm2022/testgorilla-tgo-ui.mjs",
package/public-api.d.ts CHANGED
@@ -85,3 +85,6 @@ export * from './components/toggle/toggle.component';
85
85
  export * from './components/toggle/toggle.component.module';
86
86
  export * from './components/avatar/avatar.component';
87
87
  export * from './components/avatar/avatar.component.module';
88
+ export * from './components/autocomplete/autocomplete.component';
89
+ export * from './components/autocomplete/autocomplete.component.module';
90
+ export * from './components/autocomplete/autocomplete.model';
@@ -2,6 +2,13 @@
2
2
  "SNACKBAR": {
3
3
  "DISMISS": "Dismiss"
4
4
  },
5
+ "AUTOCOMPLETE": {
6
+ "SELECTED_AMOUNT": "Selected ({{numberSelected}})",
7
+ "SELECTED": "Selected",
8
+ "SUGGESTED": "Suggested",
9
+ "ALL_ITEMS": "All items",
10
+ "NO_RESULTS_FOUND": "No results found."
11
+ },
5
12
  "PLURALS": {
6
13
  "EMAILS": "{numEmails, select, 1 {email} other {emails}}",
7
14
  "USERS": "{numUsers, select, 1 {User} other {Users}}",
@@ -61,7 +68,8 @@
61
68
  "SEARCH": "Search",
62
69
  "ROLE": "Role",
63
70
  "ALL": "All",
64
- "OR_DIVIDER": "or"
71
+ "OR_DIVIDER": "or",
72
+ "ADD": "Add"
65
73
  },
66
74
  "DATE_TIME": {
67
75
  "SECONDS": "{{seconds}} {{PLURALS.DATE_TIME.SECONDS}}",
@@ -0,0 +1,11 @@
1
+ export declare class AutocompleteUtils {
2
+ static transformDisplayValue(value: any, textField: string): any;
3
+ static filterItems(items: any, inputValue: string, textField?: string): any;
4
+ static isPrimitive(value: any): boolean;
5
+ static isArray(value: any): boolean;
6
+ static throwInvalidSetupError(): void;
7
+ static excludeSuggestions(items: any[], excludeItems: any[], valueField?: string): any[];
8
+ static shouldBeObject(value: any, textField: string, valueField: string): boolean;
9
+ static createValueItem(value: any, textField: string, valueField: string): any;
10
+ static findDuplicate(value: any, selectedValue: any, lookupKey?: string): any;
11
+ }