@pepperi-addons/ngx-lib-react 0.5.1 → 0.5.2
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/README.md +6 -19
- package/package.json +1 -1
- package/services.d.ts +15 -13
- package/services.js +15 -24
package/README.md
CHANGED
|
@@ -126,27 +126,14 @@ Notes:
|
|
|
126
126
|
- Events are bridged from the custom element `CustomEvent` to React callbacks.
|
|
127
127
|
- Ensure `.pepperi-theme` is applied at app level so Angular Material overlays are themed.
|
|
128
128
|
|
|
129
|
-
##
|
|
129
|
+
## ⚠️ Angular Services NOT Available
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
**No Angular services are exported** because they all require Angular's dependency injection, which would bundle the entire Angular runtime into your React app.
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
PepFileService,
|
|
138
|
-
PepValidatorService,
|
|
139
|
-
PepDataConvertorService
|
|
140
|
-
} from '@pepperi-addons/ngx-lib-react';
|
|
141
|
-
|
|
142
|
-
// Example: Generate UUID
|
|
143
|
-
const utilitiesService = new PepUtilitiesService();
|
|
144
|
-
const uuid = utilitiesService.generateUUID();
|
|
145
|
-
|
|
146
|
-
// Example: Validate email
|
|
147
|
-
const validatorService = new PepValidatorService();
|
|
148
|
-
const isValid = validatorService.isValidEmail('test@example.com');
|
|
149
|
-
```
|
|
133
|
+
**Alternatives:**
|
|
134
|
+
- **For HTTP**: Use the HTTP helper functions below
|
|
135
|
+
- **For UI**: Use the custom element components (PepDialog, PepSnackBar, etc.)
|
|
136
|
+
- **For utilities**: Use standard JavaScript libraries (uuid, validator, js-cookie, etc.)
|
|
150
137
|
|
|
151
138
|
## HTTP Helper Functions
|
|
152
139
|
|
package/package.json
CHANGED
package/services.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Services Export - IMPORTANT NOTICE
|
|
3
|
+
*
|
|
4
|
+
* All Angular services from @pepperi-addons/ngx-lib require Angular's dependency injection
|
|
5
|
+
* and cannot be used in React-only environments without bundling the entire Angular runtime.
|
|
6
|
+
*
|
|
7
|
+
* This would cause significant bundling issues and bloat your React application.
|
|
8
|
+
*
|
|
9
|
+
* ALTERNATIVES:
|
|
10
|
+
* - For HTTP requests: Use the HTTP helper functions (pepHttpGet, pepHttpPost, etc.)
|
|
11
|
+
* - For UI components: Use the custom element components (PepDialog, PepSnackBar, etc.)
|
|
12
|
+
* - For utilities: Implement lightweight alternatives or use standard JavaScript libraries
|
|
13
|
+
*
|
|
14
|
+
* If you absolutely need Angular service functionality, you must use the Angular library
|
|
15
|
+
* directly in an Angular application, not in a React application.
|
|
4
16
|
*/
|
|
5
|
-
export {
|
|
6
|
-
export { PepCustomizationService } from '@pepperi-addons/ngx-lib';
|
|
7
|
-
export { PepHttpService, PepLoaderService } from '@pepperi-addons/ngx-lib';
|
|
8
|
-
export { PepLayoutService } from '@pepperi-addons/ngx-lib';
|
|
9
|
-
export { PepPortalService } from '@pepperi-addons/ngx-lib';
|
|
10
|
-
export { PepScrollToService } from '@pepperi-addons/ngx-lib';
|
|
11
|
-
export { PepClipboardService } from '@pepperi-addons/ngx-lib';
|
|
12
|
-
export { PepDialogService } from '@pepperi-addons/ngx-lib/dialog';
|
|
13
|
-
export { PepSnackBarService } from '@pepperi-addons/ngx-lib/snack-bar';
|
|
14
|
-
export { PepIconRegistry, PepIconService } from '@pepperi-addons/ngx-lib/icon';
|
|
15
|
-
export { PepImageService } from '@pepperi-addons/ngx-lib/image';
|
|
17
|
+
export {};
|
package/services.js
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Services Export - IMPORTANT NOTICE
|
|
3
|
+
*
|
|
4
|
+
* All Angular services from @pepperi-addons/ngx-lib require Angular's dependency injection
|
|
5
|
+
* and cannot be used in React-only environments without bundling the entire Angular runtime.
|
|
6
|
+
*
|
|
7
|
+
* This would cause significant bundling issues and bloat your React application.
|
|
8
|
+
*
|
|
9
|
+
* ALTERNATIVES:
|
|
10
|
+
* - For HTTP requests: Use the HTTP helper functions (pepHttpGet, pepHttpPost, etc.)
|
|
11
|
+
* - For UI components: Use the custom element components (PepDialog, PepSnackBar, etc.)
|
|
12
|
+
* - For utilities: Implement lightweight alternatives or use standard JavaScript libraries
|
|
13
|
+
*
|
|
14
|
+
* If you absolutely need Angular service functionality, you must use the Angular library
|
|
15
|
+
* directly in an Angular application, not in a React application.
|
|
4
16
|
*/
|
|
5
|
-
|
|
6
|
-
export { PepAddonService, PepColorService, PepCookieService, PepDataConvertorService, PepFileService, PepJwtHelperService, PepSessionService, PepTranslateService, PepUtilitiesService, PepValidatorService, PepWindowScrollingService } from '@pepperi-addons/ngx-lib';
|
|
7
|
-
// Customization Service
|
|
8
|
-
export { PepCustomizationService } from '@pepperi-addons/ngx-lib';
|
|
9
|
-
// HTTP Services
|
|
10
|
-
export { PepHttpService, PepLoaderService } from '@pepperi-addons/ngx-lib';
|
|
11
|
-
// Layout Service
|
|
12
|
-
export { PepLayoutService } from '@pepperi-addons/ngx-lib';
|
|
13
|
-
// Portal Service
|
|
14
|
-
export { PepPortalService } from '@pepperi-addons/ngx-lib';
|
|
15
|
-
// Scroll To Service
|
|
16
|
-
export { PepScrollToService } from '@pepperi-addons/ngx-lib';
|
|
17
|
-
// Clipboard Service
|
|
18
|
-
export { PepClipboardService } from '@pepperi-addons/ngx-lib';
|
|
19
|
-
// Component-specific Services
|
|
20
|
-
export { PepDialogService } from '@pepperi-addons/ngx-lib/dialog';
|
|
21
|
-
export { PepSnackBarService } from '@pepperi-addons/ngx-lib/snack-bar';
|
|
22
|
-
export { PepIconRegistry, PepIconService } from '@pepperi-addons/ngx-lib/icon';
|
|
23
|
-
export { PepImageService } from '@pepperi-addons/ngx-lib/image';
|
|
24
|
-
// Note: Some services like RemoteLoaderService, QueryBuilderService, etc.
|
|
25
|
-
// are specialized and may require additional Angular dependencies.
|
|
26
|
-
// Add them as needed based on your project requirements.
|
|
17
|
+
export {};
|
|
27
18
|
//# sourceMappingURL=services.js.map
|