oip-common 0.5.0 → 0.6.1

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 (40) 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/extensions.en.json +1 -1
  6. package/assets/layout/_core.scss +30 -30
  7. package/assets/layout/_footer.scss +8 -8
  8. package/assets/layout/_main.scss +12 -12
  9. package/assets/layout/_menu.scss +148 -148
  10. package/assets/layout/_mixins.scss +15 -15
  11. package/assets/layout/_preloading.scss +49 -49
  12. package/assets/layout/_responsive.scss +108 -108
  13. package/assets/layout/_topbar.scss +168 -168
  14. package/assets/layout/_typography.scss +68 -68
  15. package/assets/layout/_utils.scss +25 -25
  16. package/assets/layout/layout.scss +13 -13
  17. package/assets/layout/variables/_common.scss +20 -20
  18. package/assets/layout/variables/_dark.scss +5 -5
  19. package/assets/layout/variables/_light.scss +5 -5
  20. package/assets/oip-common.scss +6 -6
  21. package/assets/tailwind.css +3 -3
  22. package/fesm2022/oip-common.mjs +1877 -669
  23. package/fesm2022/oip-common.mjs.map +1 -1
  24. package/index.d.ts +177 -18
  25. package/package.json +1 -1
  26. package/templates/http-client.ejs +34 -8
  27. package/assets/i18n/app-modules.en.json +0 -30
  28. package/assets/i18n/app-modules.ru.json +0 -30
  29. package/assets/i18n/applications.en.json +0 -46
  30. package/assets/i18n/applications.ru.json +0 -46
  31. package/assets/i18n/config.en.json +0 -18
  32. package/assets/i18n/config.ru.json +0 -18
  33. package/assets/i18n/db-migration.en.json +0 -19
  34. package/assets/i18n/db-migration.ru.json +0 -19
  35. package/assets/i18n/en.json +0 -138
  36. package/assets/i18n/iframe-module.en.json +0 -10
  37. package/assets/i18n/iframe-module.ru.json +0 -10
  38. package/assets/i18n/notfound.en.json +0 -8
  39. package/assets/i18n/notfound.ru.json +0 -8
  40. package/assets/i18n/ru.json +0 -282
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";