@pepperi-addons/ngx-lib-react 0.5.0 → 0.5.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 (56) hide show
  1. package/README.md +48 -0
  2. package/elements/3rdpartylicenses.txt +28 -0
  3. package/elements/main.js +1 -1
  4. package/http-helpers.d.ts +49 -0
  5. package/http-helpers.js +164 -0
  6. package/index.d.ts +15 -0
  7. package/index.js +17 -0
  8. package/package.json +1 -1
  9. package/pep-address.d.ts +38 -0
  10. package/pep-address.js +71 -0
  11. package/pep-attachment.d.ts +24 -0
  12. package/pep-attachment.js +76 -0
  13. package/pep-bread-crumbs.d.ts +16 -0
  14. package/pep-bread-crumbs.js +35 -0
  15. package/pep-carousel.d.ts +28 -0
  16. package/pep-carousel.js +80 -0
  17. package/pep-checkbox.d.ts +5 -0
  18. package/pep-checkbox.js +16 -1
  19. package/pep-chips.d.ts +6 -0
  20. package/pep-chips.js +13 -3
  21. package/pep-color-picker.d.ts +9 -0
  22. package/pep-color-picker.js +27 -0
  23. package/pep-color.d.ts +6 -0
  24. package/pep-color.js +14 -2
  25. package/pep-date.d.ts +25 -0
  26. package/pep-date.js +84 -7
  27. package/pep-dialog.d.ts +9 -0
  28. package/pep-dialog.js +34 -0
  29. package/pep-icon.d.ts +8 -0
  30. package/pep-icon.js +18 -0
  31. package/pep-image.d.ts +32 -0
  32. package/pep-image.js +89 -0
  33. package/pep-images-filmstrip.d.ts +16 -0
  34. package/pep-images-filmstrip.js +40 -0
  35. package/pep-link.d.ts +9 -0
  36. package/pep-link.js +21 -3
  37. package/pep-page-layout.d.ts +11 -0
  38. package/pep-page-layout.js +19 -0
  39. package/pep-search.d.ts +27 -0
  40. package/pep-search.js +59 -0
  41. package/pep-select.d.ts +14 -0
  42. package/pep-select.js +55 -7
  43. package/pep-separator.d.ts +2 -0
  44. package/pep-separator.js +6 -2
  45. package/pep-skeleton-loader.d.ts +8 -0
  46. package/pep-skeleton-loader.js +30 -0
  47. package/pep-snack-bar.d.ts +7 -0
  48. package/pep-snack-bar.js +33 -0
  49. package/pep-textarea.d.ts +14 -0
  50. package/pep-textarea.js +36 -8
  51. package/pep-textbox.d.ts +15 -0
  52. package/pep-textbox.js +46 -1
  53. package/services.d.ts +15 -0
  54. package/services.js +27 -0
  55. package/types.d.ts +9 -0
  56. package/types.js +9 -0
package/README.md CHANGED
@@ -125,3 +125,51 @@ Notes:
125
125
  - For arrays/objects, the wrappers set element properties (not attributes) under the hood.
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
+
129
+ ## Using Services
130
+
131
+ The package also exports all Angular services for utility functions:
132
+
133
+ ```tsx
134
+ import {
135
+ PepUtilitiesService,
136
+ PepColorService,
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
+ ```
150
+
151
+ ## HTTP Helper Functions
152
+
153
+ For making HTTP requests without Angular dependencies:
154
+
155
+ ```tsx
156
+ import {
157
+ pepHttpGet,
158
+ pepHttpPost,
159
+ addBearerToken
160
+ } from '@pepperi-addons/ngx-lib-react';
161
+
162
+ // Simple GET request
163
+ const data = await pepHttpGet('https://api.example.com/data');
164
+
165
+ // POST with body
166
+ const result = await pepHttpPost('https://api.example.com/users', {
167
+ name: 'John Doe'
168
+ });
169
+
170
+ // With authentication
171
+ const options = addBearerToken('your-token');
172
+ const secureData = await pepHttpGet('https://api.example.com/secure', options);
173
+ ```
174
+
175
+ See [SERVICES.md](./SERVICES.md) for complete documentation on available services and usage examples.
@@ -134,6 +134,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
134
134
  THE SOFTWARE.
135
135
 
136
136
 
137
+ hammerjs
138
+ MIT
139
+ The MIT License (MIT)
140
+
141
+ Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media)
142
+
143
+ Permission is hereby granted, free of charge, to any person obtaining a copy
144
+ of this software and associated documentation files (the "Software"), to deal
145
+ in the Software without restriction, including without limitation the rights
146
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
147
+ copies of the Software, and to permit persons to whom the Software is
148
+ furnished to do so, subject to the following conditions:
149
+
150
+ The above copyright notice and this permission notice shall be included in
151
+ all copies or substantial portions of the Software.
152
+
153
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
154
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
155
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
156
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
157
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
158
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
159
+ THE SOFTWARE.
160
+
161
+
137
162
  moment
138
163
  MIT
139
164
  Copyright (c) JS Foundation and other contributors
@@ -160,6 +185,9 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
160
185
  OTHER DEALINGS IN THE SOFTWARE.
161
186
 
162
187
 
188
+ ng-gallery
189
+ MIT
190
+
163
191
  ng2-file-upload
164
192
 
165
193
  ngx-translate-multi-http-loader