oip-common 0.3.3 → 0.5.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.
Files changed (38) hide show
  1. package/README.md +68 -68
  2. package/assets/demo/code.scss +17 -17
  3. package/assets/demo/demo.scss +2 -2
  4. package/assets/demo/flags/flags.scss +984 -984
  5. package/assets/i18n/app-modules.en.json +8 -1
  6. package/assets/i18n/app-modules.ru.json +8 -1
  7. package/assets/i18n/applications.en.json +46 -0
  8. package/assets/i18n/applications.ru.json +46 -0
  9. package/assets/i18n/config.en.json +18 -17
  10. package/assets/i18n/config.ru.json +18 -17
  11. package/assets/i18n/db-migration.en.json +19 -19
  12. package/assets/i18n/db-migration.ru.json +19 -19
  13. package/assets/i18n/en.json +4 -2
  14. package/assets/i18n/extensions.en.json +1 -0
  15. package/assets/i18n/extensions.ru.json +1 -0
  16. package/assets/i18n/notfound.en.json +8 -8
  17. package/assets/i18n/notfound.ru.json +8 -8
  18. package/assets/i18n/ru.json +4 -2
  19. package/assets/layout/_core.scss +30 -30
  20. package/assets/layout/_footer.scss +8 -8
  21. package/assets/layout/_main.scss +12 -12
  22. package/assets/layout/_mixins.scss +15 -15
  23. package/assets/layout/_preloading.scss +49 -49
  24. package/assets/layout/_responsive.scss +108 -108
  25. package/assets/layout/_topbar.scss +168 -168
  26. package/assets/layout/_typography.scss +68 -68
  27. package/assets/layout/_utils.scss +25 -25
  28. package/assets/layout/layout.scss +13 -13
  29. package/assets/layout/variables/_common.scss +20 -20
  30. package/assets/layout/variables/_dark.scss +5 -5
  31. package/assets/layout/variables/_light.scss +5 -5
  32. package/assets/tailwind.css +3 -3
  33. package/fesm2022/oip-common.mjs +2445 -1047
  34. package/fesm2022/oip-common.mjs.map +1 -1
  35. package/index.d.ts +355 -172
  36. package/package.json +2 -2
  37. package/scripts/generate-api.mjs +4 -4
  38. package/templates/http-client.ejs +14 -1
package/README.md CHANGED
@@ -1,68 +1,68 @@
1
- # OipCommon
2
-
3
- Add assets in angular.json
4
-
5
- ```json
6
- {
7
- "glob": "**/*",
8
- "input": "node_modules/oip-common/assets",
9
- "output": "/assets"
10
- }
11
- ```
12
-
13
- Add tailwind config
14
-
15
- ```js
16
- const primeui = require("tailwindcss-primeui");
17
- module.exports = {
18
- /* Your config */
19
- content: [, /* Your config */ "./node_modules/oip-common/**/*.{html,ts,scss,css,js,mjs}"]
20
- /* Your config */
21
- };
22
- ```
23
-
24
- Add scss
25
-
26
- ```sass
27
- @use "../../../node_modules/oip-common/assets/oip-common";
28
- ```
29
-
30
- Init L10nService to AppComponent
31
-
32
- ```ts
33
- import { Component, inject, OnInit } from "@angular/core";
34
- import { SecurityService } from "oip-common";
35
- import { RouterOutlet } from "@angular/router";
36
- import { ToastModule } from "primeng/toast";
37
- import { L10nService } from "../../../oip-common/src/services/l10n.service";
38
-
39
- @Component({
40
- selector: "app-root",
41
- template: `
42
- <p-toast />
43
- <router-outlet></router-outlet>
44
- `,
45
- standalone: true,
46
- imports: [ToastModule, RouterOutlet]
47
- })
48
- export class AppComponent implements OnInit {
49
- private readonly securityService = inject(SecurityService);
50
- private readonly translateService = inject(L10nService);
51
-
52
- ngOnInit() {
53
- this.securityService.auth();
54
- this.translateService.init([
55
- {
56
- code: "en",
57
- name: "English",
58
- icon: "flag flag-gb"
59
- },
60
- {
61
- code: "ru",
62
- name: "Русский",
63
- icon: "flag flag-ru"
64
- }
65
- ]);
66
- }
67
- }
68
- ```
1
+ # OipCommon
2
+
3
+ Add assets in angular.json
4
+
5
+ ```json
6
+ {
7
+ "glob": "**/*",
8
+ "input": "node_modules/oip-common/assets",
9
+ "output": "/assets"
10
+ }
11
+ ```
12
+
13
+ Add tailwind config
14
+
15
+ ```js
16
+ const primeui = require("tailwindcss-primeui");
17
+ module.exports = {
18
+ /* Your config */
19
+ content: [, /* Your config */ "./node_modules/oip-common/**/*.{html,ts,scss,css,js,mjs}"]
20
+ /* Your config */
21
+ };
22
+ ```
23
+
24
+ Add scss
25
+
26
+ ```sass
27
+ @use "../../../node_modules/oip-common/assets/oip-common";
28
+ ```
29
+
30
+ Init L10nService to AppComponent
31
+
32
+ ```ts
33
+ import { Component, inject, OnInit } from "@angular/core";
34
+ import { SecurityService } from "oip-common";
35
+ import { RouterOutlet } from "@angular/router";
36
+ import { ToastModule } from "primeng/toast";
37
+ import { L10nService } from "../../../oip-common/src/services/l10n.service";
38
+
39
+ @Component({
40
+ selector: "app-root",
41
+ template: `
42
+ <p-toast />
43
+ <router-outlet></router-outlet>
44
+ `,
45
+ standalone: true,
46
+ imports: [ToastModule, RouterOutlet]
47
+ })
48
+ export class AppComponent implements OnInit {
49
+ private readonly securityService = inject(SecurityService);
50
+ private readonly translateService = inject(L10nService);
51
+
52
+ ngOnInit() {
53
+ this.securityService.auth();
54
+ this.translateService.init([
55
+ {
56
+ code: "en",
57
+ name: "English",
58
+ icon: "flag flag-gb"
59
+ },
60
+ {
61
+ code: "ru",
62
+ name: "Русский",
63
+ icon: "flag flag-ru"
64
+ }
65
+ ]);
66
+ }
67
+ }
68
+ ```
@@ -1,17 +1,17 @@
1
- pre.app-code {
2
- background-color: var(--code-background);
3
- margin: 0 0 1rem 0;
4
- padding: 0;
5
- border-radius: var(--content-border-radius);
6
- overflow: auto;
7
-
8
- code {
9
- color: var(--code-color);
10
- padding: 1rem;
11
- margin: 0;
12
- line-height: 1.5;
13
- display: block;
14
- font-weight: semibold;
15
- font-family: monaco, Consolas, monospace;
16
- }
17
- }
1
+ pre.app-code {
2
+ background-color: var(--code-background);
3
+ margin: 0 0 1rem 0;
4
+ padding: 0;
5
+ border-radius: var(--content-border-radius);
6
+ overflow: auto;
7
+
8
+ code {
9
+ color: var(--code-color);
10
+ padding: 1rem;
11
+ margin: 0;
12
+ line-height: 1.5;
13
+ display: block;
14
+ font-weight: semibold;
15
+ font-family: monaco, Consolas, monospace;
16
+ }
17
+ }
@@ -1,2 +1,2 @@
1
- @use "./code.scss";
2
- @use "./flags/flags";
1
+ @use "./code.scss";
2
+ @use "./flags/flags";