@inceptionbg/main 4.0.12 → 4.0.14

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/dist/main.css CHANGED
@@ -1 +1 @@
1
- .article-body{line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-align:justify}.article-tag{gap:4px;padding-right:4px}.article-tag,.article-tag-remove{align-items:center;display:inline-flex}.article-tag-remove{background:transparent;border:0;border-radius:50%;color:inherit;cursor:pointer;font-size:13px;height:14px;justify-content:center;line-height:1;margin:0;padding:0;width:14px}.article-tag-remove:hover:not(:disabled){background:var(--neutral-200);color:var(--danger-600)}.article-tag-remove:disabled{cursor:default;opacity:.5}.article-footer{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-top:auto}@media screen and (max-width:700px){.article-footer{align-items:flex-start;flex-direction:column-reverse}}.fiscal-year-container{padding:16px}.fiscal-year-yearInfo{margin-bottom:16px}.fiscal-year-statusBadge{border-radius:4px;margin-top:8px;padding:8px}.fiscal-year-statusBadge.locked{background-color:#fee;color:#c33}.fiscal-year-statusBadge.open{background-color:#efe;color:#3c3}.fiscal-year-helpText{color:#666;font-size:14px;margin-top:8px}.business-year-sidebar{align-items:center;background-color:var(--neutral-100,#f5f5f5);border:1px solid var(--neutral-200,#e5e5e5);border-radius:var(--radius-control,8px);color:var(--neutral-800,#333);display:flex;gap:10px;padding:10px 12px;text-decoration:none}.business-year-sidebar.locked{background-color:#fee;border-color:#fcc;color:#933}.business-year-sidebar.locked .business-year-sidebar-icon{color:#c33}.business-year-sidebar .business-year-sidebar-icon{color:var(--primary-500,#2563eb);flex:none;font-size:14px}.business-year-sidebar .business-year-sidebar-label{font-size:13px;font-weight:600;line-height:1.3;margin:0}.select-org-page{padding:32px 48px}.select-org-page h1{font-size:40px;font-weight:900;margin-bottom:12px}.select-org-page h2{color:#333;font-size:16px;line-height:1.6}.select-org-page .org-page-content{display:grid;gap:32px;grid-template-columns:1fr 1fr;padding:24px 48px}.select-org{display:flex;flex-direction:column;gap:16px;max-width:600px}.select-org .iui-list{max-height:50vh}
1
+ .article-body{line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-align:justify}.article-tag{gap:4px;padding-right:4px}.article-tag,.article-tag-remove{align-items:center;display:inline-flex}.article-tag-remove{background:transparent;border:0;border-radius:50%;color:inherit;cursor:pointer;font-size:13px;height:14px;justify-content:center;line-height:1;margin:0;padding:0;width:14px}.article-tag-remove:hover:not(:disabled){background:var(--neutral-200);color:var(--danger-600)}.article-tag-remove:disabled{cursor:default;opacity:.5}.article-footer{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-top:auto}@media screen and (max-width:700px){.article-footer{align-items:flex-start;flex-direction:column-reverse}}.fiscal-year-container{padding:16px}.fiscal-year-yearInfo{margin-bottom:16px}.fiscal-year-statusBadge{border-radius:4px;margin-top:8px;padding:8px}.fiscal-year-statusBadge.locked{background-color:var(--color-status-danger-bg);color:var(--color-status-danger-text)}.fiscal-year-statusBadge.open{background-color:var(--color-status-success-bg);color:var(--color-status-success-text)}.fiscal-year-helpText{color:var(--color-text-secondary);font-size:14px;margin-top:8px}.business-year-sidebar{align-items:center;background-color:var(--color-sidebar-year-bg);border:1px solid var(--color-sidebar-border);border-radius:var(--radius-control,8px);color:var(--color-sidebar-text-strong);display:flex;gap:10px;padding:10px 12px;text-decoration:none;transition:background-color .15s}.business-year-sidebar:hover{background-color:color-mix(in srgb,var(--color-sidebar-year-bg),var(--color-sidebar-text-strong) 8%)}.business-year-sidebar.locked{background-color:var(--color-status-danger-bg);border-color:var(--color-status-danger-border)}.business-year-sidebar.locked,.business-year-sidebar.locked .business-year-sidebar-icon{color:var(--color-status-danger-text)}.business-year-sidebar .business-year-sidebar-icon{color:var(--color-sidebar-text);flex:none;font-size:14px}.business-year-sidebar .business-year-sidebar-label{font-size:13px;font-weight:600;line-height:1.3;margin:0}.select-org-page{padding:32px 48px}.select-org-page h1{font-size:40px;font-weight:900;margin-bottom:12px}.select-org-page h2{color:var(--color-text);font-size:16px;line-height:1.6}.select-org-page .org-page-content{display:grid;gap:32px;grid-template-columns:1fr 1fr;padding:24px 48px}.select-org{display:flex;flex-direction:column;gap:16px;max-width:600px}.select-org .iui-list{max-height:50vh}
@@ -1,143 +1,144 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
 
3
- declare const moduleIds = [
4
- 'DASHBOARD',
5
- 'ADMIN',
6
- 'EARCHIVE',
7
- 'ERDS',
8
- 'EINVOICE',
9
- 'EFORMS',
10
- 'EDMS',
11
- 'ESIGN',
12
- 'EVALIDATION',
13
- 'EPROCUREMENT',
14
- 'EREGISTER',
15
- 'PAM',
16
- 'DISPATCH_ADVICE',
17
- 'TELEGRAM_MNGMNT',
18
- 'VAT_EVIDENCE',
19
- 'VEOSP',
20
- // ERP
21
- 'ERP_CASH_REGISTER',
22
- 'ERP_FIXED_ASSETS',
23
- 'ERP_RIF',
24
- 'ERP_MAT_ACC',
25
- 'ERP_SMALL_INVENTORY',
26
- 'ERP_WMS',
27
- 'ERP_HR',
28
- // PRIVATE
29
- 'JISUSZ_BACKOFFICE',
30
- 'MONITORING',
31
-
32
- // 'ERP',
33
- // 'FINANCES',
34
- // 'CONTRACTS',
35
- // 'IDM',
36
- // 'REGISTRATION',
37
- // 'QC_REGISTRATION',
38
- // 'SETTINGS',
3
+ declare const moduleIds = [
4
+ 'DASHBOARD',
5
+ 'ADMIN',
6
+ 'EARCHIVE',
7
+ 'ERDS',
8
+ 'EINVOICE',
9
+ 'EFORMS',
10
+ 'EDMS',
11
+ 'ESIGN',
12
+ 'EVALIDATION',
13
+ 'EPROCUREMENT',
14
+ 'EREGISTER',
15
+ 'PAM',
16
+ 'DISPATCH_ADVICE',
17
+ 'TELEGRAM_MNGMNT',
18
+ 'VAT_EVIDENCE',
19
+ 'VEOSP',
20
+ // ERP
21
+ 'ERP_CASH_REGISTER',
22
+ 'ERP_FIXED_ASSETS',
23
+ 'ERP_RIF',
24
+ 'ERP_MAT_ACC',
25
+ 'ERP_SMALL_INVENTORY',
26
+ 'ERP_WMS',
27
+ 'ERP_HR',
28
+ // PRIVATE
29
+ 'JISUSZ_BACKOFFICE',
30
+ 'MONITORING',
31
+
32
+ // 'ERP',
33
+ // 'FINANCES',
34
+ // 'CONTRACTS',
35
+ // 'IDM',
36
+ // 'REGISTRATION',
37
+ // 'QC_REGISTRATION',
38
+ // 'SETTINGS',
39
39
  ] as const;
40
40
 
41
41
  type IModuleId = (typeof moduleIds)[number];
42
42
 
43
- type IEnv =
44
- | 'DEV'
45
- | 'TEST'
46
- | 'PROD'
47
- | 'LOCAL'
48
- | 'UAT'
49
- | 'TEST_PPLCG'
50
- | 'PROD_PPLCG'
51
- | 'TEST_MSP'
52
- | 'PROD_MSP'
53
- | 'TEST_LOCAL_MSP'
54
- | 'TEST_PTT'
55
- | 'PROD_PTT';
56
-
57
- type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
58
-
59
- type IOptionalServiceApi =
60
- | 'codebook'
61
- | 'auditLog'
62
- | 'notifications'
63
- | 'indexData'
64
- | 'reportTemplates'
65
- | 'approvalProcess'
66
- | 'procurement'
67
- | 'archive'
68
- | 'invoice'
69
- | 'delivery'
70
- | 'edms'
71
- | 'rif'
72
- | 'cashRegister'
73
- | 'jisuszProxy'
74
- | 'fosterCare'
75
- | 'article'
76
- | 'approval'
77
- | 'messenger'
78
- | 'veosp'
79
- | 'fixedAssets'
80
- | 'dispatchAdvice'
81
- | 'tasks'
82
- | 'nbs'
83
- | 'organization';
84
-
85
- type IServiceApi$1 = IRequiredServiceApi | IOptionalServiceApi;
43
+ type IEnv =
44
+ | 'DEV'
45
+ | 'TEST'
46
+ | 'PROD'
47
+ | 'LOCAL'
48
+ | 'UAT'
49
+ | 'TEST_PPLCG'
50
+ | 'PROD_PPLCG'
51
+ | 'TEST_MSP'
52
+ | 'PROD_MSP'
53
+ | 'TEST_LOCAL_MSP'
54
+ | 'TEST_PTT'
55
+ | 'PROD_PTT';
56
+
57
+ type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
58
+
59
+ type IOptionalServiceApi =
60
+ | 'codebook'
61
+ | 'auditLog'
62
+ | 'notifications'
63
+ | 'indexData'
64
+ | 'reportTemplates'
65
+ | 'approvalProcess'
66
+ | 'procurement'
67
+ | 'archive'
68
+ | 'invoice'
69
+ | 'delivery'
70
+ | 'edms'
71
+ | 'rif'
72
+ | 'cashRegister'
73
+ | 'jisuszProxy'
74
+ | 'fosterCare'
75
+ | 'article'
76
+ | 'approval'
77
+ | 'messenger'
78
+ | 'veosp'
79
+ | 'fixedAssets'
80
+ | 'dispatchAdvice'
81
+ | 'tasks'
82
+ | 'nbs'
83
+ | 'organization'
84
+ | 'widgets';
85
+
86
+ type IServiceApi = IRequiredServiceApi | IOptionalServiceApi;
87
+
88
+ declare module 'axios' {
89
+ interface AxiosRequestConfig {
90
+ public?: boolean;
91
+ service?: IServiceApi;
92
+ token?: string;
93
+ noToast?: boolean;
94
+ noErrors?: boolean;
95
+ }
96
+ }
97
+
98
+ declare module '*.scss' {
99
+ const classes: { readonly [key: string]: string };
100
+ export { classes };
101
+ }
102
+ declare module '*.png' {
103
+ const src: string;
104
+ export { src };
105
+ }
106
+
107
+ declare module '*.svg' {
108
+ const src: string;
109
+ export { src };
110
+ }
86
111
 
87
- declare module 'axios' {
88
- interface AxiosRequestConfig {
89
- public?: boolean;
90
- service?: IServiceApi$1;
91
- token?: string;
92
- noToast?: boolean;
93
- noErrors?: boolean;
94
- }
112
+ declare module '*.json' {
113
+ const data: any;
114
+ export { data };
95
115
  }
96
116
 
97
- declare module '*.scss' {
98
- const classes: { readonly [key: string]: string };
99
- export { classes };
100
- }
101
- declare module '*.png' {
102
- const src: string;
103
- export { src };
104
- }
105
-
106
- declare module '*.svg' {
107
- const src: string;
108
- export { src };
109
- }
110
-
111
- declare module '*.json' {
112
- const data: any;
113
- export { data };
114
- }
115
-
116
- declare module '*.mp3' {
117
- const src: string;
118
- export { src };
117
+ declare module '*.mp3' {
118
+ const src: string;
119
+ export { src };
119
120
  }
120
121
 
121
- declare global {
122
- var environment: IEnv;
123
- var moduleId: IModuleId | null;
124
- var moduleUrls: {
125
- [id in IModuleId]?: string;
126
- };
127
- var axiosInstance: AxiosInstance;
128
- var appVersion: string | undefined;
129
- var api: {
130
- apiUrl: string;
131
- clientId: string;
132
- authScope?: string;
133
- additionalScopes?: string[];
134
- redirectUrl?: string;
135
- };
136
- var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
137
- var zE: {
138
- show: () => void;
139
- hide: () => void;
140
- activate: () => void;
141
- setLocale: (locale: string) => void;
142
- };
122
+ declare global {
123
+ var environment: IEnv;
124
+ var moduleId: IModuleId | null;
125
+ var moduleUrls: {
126
+ [id in IModuleId]?: string;
127
+ };
128
+ var axiosInstance: AxiosInstance;
129
+ var appVersion: string | undefined;
130
+ var api: {
131
+ apiUrl: string;
132
+ clientId: string;
133
+ authScope?: string;
134
+ additionalScopes?: string[];
135
+ redirectUrl?: string;
136
+ };
137
+ var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
138
+ var zE: {
139
+ show: () => void;
140
+ hide: () => void;
141
+ activate: () => void;
142
+ setLocale: (locale: string) => void;
143
+ };
143
144
  }
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@inceptionbg/main",
3
- "version": "4.0.12",
4
- "description": "Main app wrapper for Inception ecosystem",
5
- "type": "module",
6
- "files": [
7
- "dist"
8
- ],
9
- "main": "dist/index.js",
10
- "types": "dist/index.d.ts",
11
- "scripts": {
12
- "build": "rollup -c",
13
- "tsc": "tsc --noEmit",
14
- "lint": "eslint --max-warnings=0 src",
15
- "link-i": "npm link @inceptionbg/iui",
16
- "update-i": "npm i @inceptionbg/iui@next",
17
- "update-ic": "npm i @inceptionbg/icons@next",
18
- "release": "npm version patch && npm run build && npm publish --tag next"
19
- },
20
- "author": "Aleksandar Sadzak",
21
- "license": "ISC",
22
- "dependencies": {
23
- "axios": "^1.13.5",
24
- "crypto-js": "^4.2.0",
25
- "jwt-decode": "^4.0.0"
26
- },
27
- "devDependencies": {
28
- "@rollup/plugin-commonjs": "^29.0.0",
29
- "@rollup/plugin-image": "^3.0.3",
30
- "@rollup/plugin-terser": "^1.0.0",
31
- "@rollup/plugin-typescript": "^12.3.0",
32
- "@rollup/plugin-url": "^8.0.2",
33
- "@types/crypto-js": "^4.2.2",
34
- "@types/react": "^19.2.14",
35
- "@types/react-dom": "^19.2.3",
36
- "rollup": "^4.57.1",
37
- "rollup-plugin-delete": "^3.0.2",
38
- "rollup-plugin-dts": "^6.3.0",
39
- "rollup-plugin-postcss": "^4.0.2",
40
- "tslib": "^2.8.1"
41
- },
42
- "peerDependencies": {
43
- "@fortawesome/fontawesome-svg-core": ">=7.2.0",
44
- "@inceptionbg/icons": "^1.0.8",
45
- "@inceptionbg/iui": "^3.0.1",
46
- "@tanstack/react-query": ">=5.90.21",
47
- "i18next": ">=26.3.0",
48
- "react": ">=19.2.4 <20",
49
- "react-dom": ">=19.2.4 <20",
50
- "react-i18next": ">=17.0.8",
51
- "react-router": ">=7.17.0",
52
- "sass": ">=1.97.3",
53
- "zustand": ">=5.0.12"
54
- }
55
- }
1
+ {
2
+ "name": "@inceptionbg/main",
3
+ "version": "4.0.14",
4
+ "description": "Main app wrapper for Inception ecosystem",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "build": "rollup -c",
13
+ "tsc": "tsc --noEmit",
14
+ "lint": "eslint --max-warnings=0 src",
15
+ "link-i": "npm link @inceptionbg/iui",
16
+ "update-i": "npm i @inceptionbg/iui@next",
17
+ "update-ic": "npm i @inceptionbg/icons@next",
18
+ "release": "npm version patch && npm run build && npm publish --tag next"
19
+ },
20
+ "author": "Aleksandar Sadzak",
21
+ "license": "ISC",
22
+ "dependencies": {
23
+ "axios": "^1.13.5",
24
+ "crypto-js": "^4.2.0",
25
+ "jwt-decode": "^4.0.0"
26
+ },
27
+ "devDependencies": {
28
+ "@rollup/plugin-commonjs": "^29.0.0",
29
+ "@rollup/plugin-image": "^3.0.3",
30
+ "@rollup/plugin-terser": "^1.0.0",
31
+ "@rollup/plugin-typescript": "^12.3.0",
32
+ "@rollup/plugin-url": "^8.0.2",
33
+ "@types/crypto-js": "^4.2.2",
34
+ "@types/react": "^19.2.14",
35
+ "@types/react-dom": "^19.2.3",
36
+ "rollup": "^4.57.1",
37
+ "rollup-plugin-delete": "^3.0.2",
38
+ "rollup-plugin-dts": "^6.3.0",
39
+ "rollup-plugin-postcss": "^4.0.2",
40
+ "tslib": "^2.8.1"
41
+ },
42
+ "peerDependencies": {
43
+ "@fortawesome/fontawesome-svg-core": ">=7.2.0",
44
+ "@inceptionbg/icons": "^1.0.10",
45
+ "@inceptionbg/iui": "^3.0.8",
46
+ "@tanstack/react-query": ">=5.90.21",
47
+ "i18next": ">=26.3.0",
48
+ "react": ">=19.2.4 <20",
49
+ "react-dom": ">=19.2.4 <20",
50
+ "react-i18next": ">=17.0.8",
51
+ "react-router": ">=7.17.0",
52
+ "sass": ">=1.97.3",
53
+ "zustand": ">=5.0.12"
54
+ }
55
+ }