@pepperi-addons/ngx-composite-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.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @pepperi-addons/ngx-composite-lib-react
2
2
 
3
- Thin React wrappers for Pepperi ngx-composite-lib Angular Elements.
3
+ React wrappers for Pepperi ngx-composite-lib Angular Elements.
4
4
 
5
- ## Version 0.5.0
5
+ ## Version 0.5.1
6
6
 
7
- This package provides React wrappers for 10 fully converted Angular Elements from ngx-composite-lib:
7
+ This package provides React wrappers for **15 fully converted Angular Elements** from ngx-composite-lib.
8
8
 
9
9
  ## Available Components
10
10
 
@@ -20,59 +20,109 @@ import {
20
20
  PepShowIfBadge,
21
21
  PepGenericList,
22
22
  PepFileStatusPanel,
23
+ PepGenericForm,
24
+ PepDataViewBuilder,
25
+ PepManageParameters,
26
+ PepMappingParameters,
27
+ PepGenericFieldsBuilder,
23
28
  } from '@pepperi-addons/ngx-composite-lib-react';
24
29
  ```
25
30
 
26
31
  ## Component Details
27
32
 
28
- - **PepColorSettings** - Color picker and settings component
29
- - **PepGroupButtonsSettings** - Group button configuration component
30
- - **PepFlowPickerButton** - Flow selection button component
31
- - **PepIconPicker** - Icon selection component
32
- - **PepPaddingSettings** - Padding configuration component
33
- - **PepShadowSettings** - Shadow configuration component
34
- - **PepRichText** - Rich text editor with Quill integration
35
- - **PepShowIfBadge** - Conditional badge display component
36
- - **PepGenericList** - Advanced data list with filtering and actions
37
- - **PepFileStatusPanel** - File status display with snackbar support
33
+ ### Basic Components
34
+ - **PepColorSettings** - Color picker and settings
35
+ - **PepGroupButtonsSettings** - Button group configuration
36
+ - **PepFlowPickerButton** - Flow selection button
37
+ - **PepIconPicker** - Icon selection
38
+ - **PepPaddingSettings** - Padding/spacing configuration
39
+ - **PepShadowSettings** - Shadow effects configuration
40
+ - **PepShowIfBadge** - Conditional visibility badge
41
+
42
+ ### Content Components
43
+ - **PepRichText** - Rich text editor (Quill-based)
44
+ - **PepGenericList** - Advanced list with selection
45
+ - **PepFileStatusPanel** - File upload status display
46
+ - **PepGenericForm** - Dynamic form builder
47
+
48
+ ### Advanced Components
49
+ - **PepDataViewBuilder** - Data view configuration builder
50
+ - **PepManageParameters** - Parameter management interface
51
+ - **PepMappingParameters** - Parameter mapping interface
52
+ - **PepGenericFieldsBuilder** - Form fields builder with drag-drop
53
+
54
+ ## Installation
55
+
56
+ ```bash
57
+ npm install @pepperi-addons/ngx-composite-lib-react
58
+ ```
38
59
 
39
- ## Prerequisites
60
+ ## Setup
40
61
 
41
- Load the Elements bundle from `@pepperi-addons/ngx-composite-lib-elements` before using wrappers:
62
+ Include the Angular Elements bundle in your HTML:
42
63
 
43
64
  ```html
44
- <script src="path/to/elements/main.js"></script>
65
+ <!-- CSS -->
66
+ <link rel="stylesheet" href="/node_modules/@pepperi-addons/ngx-composite-lib-react/elements/styles.css" />
67
+
68
+ <!-- JavaScript (ES Modules) -->
69
+ <script src="/node_modules/@pepperi-addons/ngx-composite-lib-react/elements/runtime.js" type="module"></script>
70
+ <script src="/node_modules/@pepperi-addons/ngx-composite-lib-react/elements/polyfills.js" type="module"></script>
71
+ <script src="/node_modules/@pepperi-addons/ngx-composite-lib-react/elements/main.js" type="module"></script>
45
72
  ```
46
73
 
47
- ## Usage Example
74
+ ## Usage Examples
75
+
76
+ ### Basic Component
48
77
 
49
78
  ```tsx
50
- import React from 'react';
51
- import { PepRichText, PepGenericList } from '@pepperi-addons/ngx-composite-lib-react';
79
+ import React, { useState } from 'react';
80
+ import { PepColorSettings } from '@pepperi-addons/ngx-composite-lib-react';
52
81
 
53
82
  function MyComponent() {
83
+ const [color, setColor] = useState('#FF5733');
84
+
85
+ return (
86
+ <PepColorSettings
87
+ value={color}
88
+ onValueChange={setColor}
89
+ />
90
+ );
91
+ }
92
+ ```
93
+
94
+ ### Advanced Components
95
+
96
+ ```tsx
97
+ import React, { useState } from 'react';
98
+ import {
99
+ PepGenericFieldsBuilder,
100
+ PepDataViewBuilder,
101
+ PepMappingParameters
102
+ } from '@pepperi-addons/ngx-composite-lib-react';
103
+
104
+ function FormBuilder() {
105
+ const [fields, setFields] = useState([]);
106
+
54
107
  return (
55
- <div>
56
- <PepRichText
57
- value="<p>Hello World</p>"
58
- onValueChange={(event) => console.log('Value changed:', event.detail)}
59
- />
60
- <PepGenericList
61
- dataSource={myData}
62
- onSelectionChanged={(event) => console.log('Selection:', event.detail)}
63
- />
64
- </div>
108
+ <PepGenericFieldsBuilder
109
+ builderTitle="Form Fields"
110
+ availableFields={availableFields}
111
+ fields={fields}
112
+ onFieldsChange={setFields}
113
+ />
65
114
  );
66
115
  }
67
116
  ```
68
117
 
69
118
  ## Features
70
119
 
71
- - ✅ Full Input/Output parity with Angular components
72
- - ✅ TypeScript support with proper type definitions
73
- - ✅ Event handling with React-friendly patterns
74
- - ✅ Consistent API across all components
75
- - ✅ Optimized for React 17+ and React 18+
120
+ - ✅ **15 Production-Ready Components** - All tested and working
121
+ - ✅ **Full TypeScript Support** - Complete type definitions
122
+ - ✅ **React-Friendly API** - Idiomatic React patterns
123
+ - ✅ **Event Handling** - Proper event propagation
124
+ - ✅ **React 17+ & 18+ Compatible** - Works with modern React
125
+ - ✅ **Comprehensive Documentation** - Full API reference included
76
126
 
77
127
  ## License
78
128
 
@@ -332,6 +332,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
332
332
  THE SOFTWARE.
333
333
 
334
334
 
335
+ node-fetch
336
+ MIT
337
+ The MIT License (MIT)
338
+
339
+ Copyright (c) 2016 David Frank
340
+
341
+ Permission is hereby granted, free of charge, to any person obtaining a copy
342
+ of this software and associated documentation files (the "Software"), to deal
343
+ in the Software without restriction, including without limitation the rights
344
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
345
+ copies of the Software, and to permit persons to whom the Software is
346
+ furnished to do so, subject to the following conditions:
347
+
348
+ The above copyright notice and this permission notice shall be included in all
349
+ copies or substantial portions of the Software.
350
+
351
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
352
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
353
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
354
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
355
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
356
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
357
+ SOFTWARE.
358
+
359
+
360
+
335
361
  quill
336
362
  BSD-3-Clause
337
363
  Copyright (c) 2014, Jason Chen