@erpsquad/common 1.8.86 → 1.8.89
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/_virtual/index/index.esm10.js +3 -3
- package/dist/_virtual/index/index.esm2.js +3 -3
- package/dist/_virtual/index/index.esm3.js +3 -3
- package/dist/_virtual/index/index.esm4.js +3 -3
- package/dist/_virtual/index/index.esm5.js +3 -3
- package/dist/_virtual/index/index.esm6.js +3 -3
- package/dist/_virtual/index/index.esm7.js +3 -3
- package/dist/_virtual/index/index.esm8.js +3 -3
- package/dist/_virtual/index/index.esm9.js +3 -3
- package/dist/_virtual/index/index10.js +1 -1
- package/dist/_virtual/index/index2.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/_virtual/index/index4.js +1 -1
- package/dist/_virtual/index/index5.js +1 -1
- package/dist/_virtual/index/index6.js +1 -1
- package/dist/_virtual/index/index7.js +1 -1
- package/dist/_virtual/index/index8.js +1 -1
- package/dist/_virtual/index/index9.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +31 -34
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js.map +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +16 -15
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js.map +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js.map +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
- package/dist/style.css +74 -74
- package/dist/utils/api-config/index.esm.js +3 -0
- package/dist/utils/api-config/index.esm.js.map +1 -1
- package/dist/utils/api-config/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
let apiConfig = null;
|
|
2
2
|
function initializeApiConfig(config) {
|
|
3
|
+
if (apiConfig) {
|
|
4
|
+
console.warn("API configuration is already initialized. Overwriting with new values.");
|
|
5
|
+
}
|
|
3
6
|
if (!config.backendBaseUrl) {
|
|
4
7
|
throw new Error("backendBaseUrl is required in API configuration");
|
|
5
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../src/utils/api-config.ts"],"sourcesContent":["\nexport interface ApiConfig {\n backendBaseUrl: string;\n s3BucketUrl: string;\n socketBaseUrl: string;\n}\n\nlet apiConfig: ApiConfig | null = null;\n\nexport function initializeApiConfig(config: ApiConfig): void {\n
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/utils/api-config.ts"],"sourcesContent":["\nexport interface ApiConfig {\n backendBaseUrl: string;\n s3BucketUrl: string;\n socketBaseUrl: string;\n}\n\nlet apiConfig: ApiConfig | null = null;\n\nexport function initializeApiConfig(config: ApiConfig): void {\n if (apiConfig) {\n console.warn('API configuration is already initialized. Overwriting with new values.');\n }\n\n // Validate required fields\n if (!config.backendBaseUrl) {\n throw new Error('backendBaseUrl is required in API configuration');\n }\n\n apiConfig = { ...config };\n\n console.log('API configuration initialized:', {\n backendBaseUrl: apiConfig.backendBaseUrl,\n s3BucketUrl: apiConfig.s3BucketUrl,\n socketBaseUrl: apiConfig.socketBaseUrl,\n });\n}\n\nexport function getApiConfig(): ApiConfig {\n if (!apiConfig) {\n throw new Error(\n 'API configuration not initialized. Please call initializeApiConfig() before using API features. ' +\n 'See documentation: https://github.com/erpforce/common#api-configuration'\n );\n }\n\n return apiConfig;\n}\n\n\nexport function isApiConfigInitialized(): boolean {\n return apiConfig !== null;\n}\n\n\nexport function resetApiConfig(): void {\n apiConfig = null;\n}\n"],"names":[],"mappings":"AAOA,IAAI,YAA8B;AAE3B,SAAS,oBAAoB,QAAyB;AACzD,MAAI,WAAW;AACX,YAAQ,KAAK,wEAAwE;AAAA,EACzF;AAGA,MAAI,CAAC,OAAO,gBAAgB;AACxB,UAAM,IAAI,MAAM,iDAAiD;AAAA,EACrE;AAEA,cAAY,EAAE,GAAG,OAAA;AAEjB,UAAQ,IAAI,kCAAkC;AAAA,IAC1C,gBAAgB,UAAU;AAAA,IAC1B,aAAa,UAAU;AAAA,IACvB,eAAe,UAAU;AAAA,EAAA,CAC5B;AACL;AAEO,SAAS,eAA0B;AACtC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI;AAAA,MACN;AAAA,IAAA;AAAA,EAGR;AAEA,SAAO;AACX;AAGO,SAAS,yBAAkC;AAC9C,SAAO,cAAc;AACzB;AAGO,SAAS,iBAAuB;AACnC,cAAY;AAChB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/utils/api-config.ts"],"sourcesContent":["\nexport interface ApiConfig {\n backendBaseUrl: string;\n s3BucketUrl: string;\n socketBaseUrl: string;\n}\n\nlet apiConfig: ApiConfig | null = null;\n\nexport function initializeApiConfig(config: ApiConfig): void {\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/api-config.ts"],"sourcesContent":["\nexport interface ApiConfig {\n backendBaseUrl: string;\n s3BucketUrl: string;\n socketBaseUrl: string;\n}\n\nlet apiConfig: ApiConfig | null = null;\n\nexport function initializeApiConfig(config: ApiConfig): void {\n if (apiConfig) {\n console.warn('API configuration is already initialized. Overwriting with new values.');\n }\n\n // Validate required fields\n if (!config.backendBaseUrl) {\n throw new Error('backendBaseUrl is required in API configuration');\n }\n\n apiConfig = { ...config };\n\n console.log('API configuration initialized:', {\n backendBaseUrl: apiConfig.backendBaseUrl,\n s3BucketUrl: apiConfig.s3BucketUrl,\n socketBaseUrl: apiConfig.socketBaseUrl,\n });\n}\n\nexport function getApiConfig(): ApiConfig {\n if (!apiConfig) {\n throw new Error(\n 'API configuration not initialized. Please call initializeApiConfig() before using API features. ' +\n 'See documentation: https://github.com/erpforce/common#api-configuration'\n );\n }\n\n return apiConfig;\n}\n\n\nexport function isApiConfigInitialized(): boolean {\n return apiConfig !== null;\n}\n\n\nexport function resetApiConfig(): void {\n apiConfig = null;\n}\n"],"names":["apiConfig","Error","config","backendBaseUrl"],"mappings":"oEAOA,IAAIA,EAA8B,0BAqB3B,WACH,IAAKA,EACD,MAAM,IAAIC,MACN,2KAKR,OAAOD,CACX,8BA5BO,SAA6BE,GAMhC,IAAKA,EAAOC,eACR,MAAM,IAAIF,MAAM,mDAGpBD,EAAY,IAAKE,EAOrB,iCAcO,WACH,OAAqB,OAAdF,CACX,yBAGO,WACHA,EAAY,IAChB"}
|