common-header-lib 0.0.15 → 0.0.16

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.
Files changed (45) hide show
  1. package/README.md +24 -24
  2. package/assets/i18n/ar.json +2 -1
  3. package/assets/i18n/de.json +2 -1
  4. package/assets/i18n/en.json +2 -2
  5. package/assets/i18n/es.json +2 -1
  6. package/assets/i18n/fr.json +2 -1
  7. package/assets/i18n/hi.json +2 -1
  8. package/assets/i18n/ja.json +2 -1
  9. package/assets/i18n/ko.json +2 -1
  10. package/assets/i18n/languages.json +1 -0
  11. package/assets/images/toast-alert.svg +3 -3
  12. package/assets/images/toast-error.svg +3 -3
  13. package/assets/images/toast-info.svg +3 -3
  14. package/assets/images/toast-success.svg +10 -10
  15. package/assets/scss/styles.scss +577 -577
  16. package/esm2020/lib/common-header-lib.component.mjs +1 -1
  17. package/esm2020/lib/common-header-lib.module.mjs +39 -15
  18. package/esm2020/lib/common-header-lib.service.mjs +1 -1
  19. package/esm2020/lib/components/confirm-dialog/confirm-dialog.component.mjs +3 -3
  20. package/esm2020/lib/components/ng-translation/ng-translation.component.mjs +33 -27
  21. package/esm2020/lib/model/data_model.mjs +17 -5
  22. package/esm2020/lib/services/http/http-common.service.mjs +1 -1
  23. package/esm2020/public-api.mjs +1 -1
  24. package/fesm2015/common-header-lib.mjs +87 -47
  25. package/fesm2015/common-header-lib.mjs.map +1 -1
  26. package/fesm2020/common-header-lib.mjs +85 -45
  27. package/fesm2020/common-header-lib.mjs.map +1 -1
  28. package/lib/common-header-lib.module.d.ts +2 -1
  29. package/lib/components/ng-translation/ng-translation.component.d.ts +6 -8
  30. package/lib/model/data_model.d.ts +1 -0
  31. package/package.json +1 -1
  32. package/src/assets/i18n/ar.json +2 -1
  33. package/src/assets/i18n/de.json +2 -1
  34. package/src/assets/i18n/en.json +2 -2
  35. package/src/assets/i18n/es.json +2 -1
  36. package/src/assets/i18n/fr.json +2 -1
  37. package/src/assets/i18n/hi.json +2 -1
  38. package/src/assets/i18n/ja.json +2 -1
  39. package/src/assets/i18n/ko.json +2 -1
  40. package/src/assets/i18n/languages.json +1 -0
  41. package/src/assets/images/toast-alert.svg +3 -3
  42. package/src/assets/images/toast-error.svg +3 -3
  43. package/src/assets/images/toast-info.svg +3 -3
  44. package/src/assets/images/toast-success.svg +10 -10
  45. package/src/assets/scss/styles.scss +577 -577
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # CommonHeaderLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project common-header-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project common-header-lib`.
8
- > Note: Don't forget to add `--project common-header-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build common-header-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build common-header-lib`, go to the dist folder `cd dist/common-header-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test common-header-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # CommonHeaderLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project common-header-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project common-header-lib`.
8
+ > Note: Don't forget to add `--project common-header-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build common-header-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build common-header-lib`, go to the dist folder `cd dist/common-header-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test common-header-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -84,6 +84,7 @@
84
84
  "Successful": "ناجح",
85
85
  "Error": "خطأ",
86
86
  "Warning": "تحذير",
87
- "Information": "معلومات"
87
+ "Information": "معلومات",
88
+ "FailedToLoadLanguageFile": "فشل في تحميل ملف اللغة."
88
89
  }
89
90
  }
@@ -84,6 +84,7 @@
84
84
  "Successful": "Erfolgreich",
85
85
  "Error": "Fehler",
86
86
  "Warning": "Warnung",
87
- "Information": "Information"
87
+ "Information": "Information",
88
+ "FailedToLoadLanguageFile": "Fehler beim Laden der Sprachdatei."
88
89
  }
89
90
  }
@@ -80,11 +80,11 @@
80
80
  "YouHaveNNotifications": "You have {{count}} notifications",
81
81
  "Refresh": "Refresh",
82
82
  "LandingPageValidation": "Please Select Application Name",
83
-
84
83
  "SettingInvalidLobIdMsg": "The LOB you are trying to set is not available.",
85
84
  "Successful": "Successful",
86
85
  "Error": "Error",
87
86
  "Warning": "Warning",
88
- "Information": "Information"
87
+ "Information": "Information",
88
+ "FailedToLoadLanguageFile": "Failed to load language file."
89
89
  }
90
90
  }
@@ -84,6 +84,7 @@
84
84
  "Successful": "Exitoso",
85
85
  "Error": "Error",
86
86
  "Warning": "Advertencia",
87
- "Information": "Información"
87
+ "Information": "Información",
88
+ "FailedToLoadLanguageFile": "Error al cargar el archivo de idioma."
88
89
  }
89
90
  }
@@ -84,6 +84,7 @@
84
84
  "Successful": "Réussi",
85
85
  "Error": "Erreur",
86
86
  "Warning": "Avertissement",
87
- "Information": "Information"
87
+ "Information": "Information",
88
+ "FailedToLoadLanguageFile": "Échec du chargement du fichier de langue."
88
89
  }
89
90
  }
@@ -84,6 +84,7 @@
84
84
  "Successful": "सफल",
85
85
  "Error": "त्रुटि",
86
86
  "Warning": "चेतावनी",
87
- "Information": "जानकारी"
87
+ "Information": "जानकारी",
88
+ "FailedToLoadLanguageFile": "भाषा फ़ाइल लोड करने में विफल।"
88
89
  }
89
90
  }
@@ -84,6 +84,7 @@
84
84
  "Successful": "成功",
85
85
  "Error": "エラー",
86
86
  "Warning": "警告",
87
- "Information": "情報"
87
+ "Information": "情報",
88
+ "FailedToLoadLanguageFile": "言語ファイルの読み込みに失敗しました。"
88
89
  }
89
90
  }
@@ -84,6 +84,7 @@
84
84
  "Successful": "성공",
85
85
  "Error": "오류",
86
86
  "Warning": "경고",
87
- "Information": "정보"
87
+ "Information": "정보",
88
+ "FailedToLoadLanguageFile": "언어 파일을 불러오지 못했습니다."
88
89
  }
89
90
  }
@@ -0,0 +1 @@
1
+ ["en", "ar"]
@@ -1,3 +1,3 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M9.99967 7.50019V10.8335M9.99967 14.1669H10.008M8.84576 3.24329L1.99166 15.0821C1.61149 15.7388 1.42141 16.0671 1.4495 16.3366C1.47401 16.5716 1.59715 16.7852 1.78828 16.9242C2.00741 17.0835 2.3868 17.0835 3.14556 17.0835H16.8537C17.6125 17.0835 17.9918 17.0835 18.211 16.9242C18.4021 16.7852 18.5253 16.5716 18.5498 16.3366C18.5778 16.0671 18.3878 15.7388 18.0076 15.0821L11.1535 3.24329C10.7748 2.58898 10.5853 2.26183 10.3383 2.15196C10.1227 2.05612 9.87659 2.05612 9.66109 2.15196C9.41392 2.26183 9.22451 2.58899 8.84576 3.24329Z" stroke="#EAAA15" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.99967 7.50019V10.8335M9.99967 14.1669H10.008M8.84576 3.24329L1.99166 15.0821C1.61149 15.7388 1.42141 16.0671 1.4495 16.3366C1.47401 16.5716 1.59715 16.7852 1.78828 16.9242C2.00741 17.0835 2.3868 17.0835 3.14556 17.0835H16.8537C17.6125 17.0835 17.9918 17.0835 18.211 16.9242C18.4021 16.7852 18.5253 16.5716 18.5498 16.3366C18.5778 16.0671 18.3878 15.7388 18.0076 15.0821L11.1535 3.24329C10.7748 2.58898 10.5853 2.26183 10.3383 2.15196C10.1227 2.05612 9.87659 2.05612 9.66109 2.15196C9.41392 2.26183 9.22451 2.58899 8.84576 3.24329Z" stroke="#EAAA15" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -1,3 +1,3 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="#D83A52"/>
3
- </svg>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="#D83A52"/>
3
+ </svg>
@@ -1,3 +1,3 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M11 17H13V11H11V17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="#0073EA"/>
3
- </svg>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11 17H13V11H11V17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="#0073EA"/>
3
+ </svg>
@@ -1,10 +1,10 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_489_23587)">
3
- <path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z" fill="#258750"/>
4
- </g>
5
- <defs>
6
- <clipPath id="clip0_489_23587">
7
- <rect width="24" height="24" fill="white"/>
8
- </clipPath>
9
- </defs>
10
- </svg>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_489_23587)">
3
+ <path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z" fill="#258750"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_489_23587">
7
+ <rect width="24" height="24" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>