@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 +84 -34
- package/elements/3rdpartylicenses.txt +26 -0
- package/elements/main.js +1 -1
- package/index.d.ts +6 -0
- package/index.js +6 -0
- package/package.json +1 -1
- package/pep-data-view-builder.d.ts +28 -0
- package/pep-data-view-builder.js +42 -0
- package/pep-generic-fields-builder.d.ts +33 -0
- package/pep-generic-fields-builder.js +57 -0
- package/pep-generic-form.d.ts +52 -0
- package/pep-generic-form.js +47 -0
- package/pep-group-buttons-settings.js +41 -14
- package/pep-manage-parameters.d.ts +31 -0
- package/pep-manage-parameters.js +40 -0
- package/pep-mapping-parameters.d.ts +17 -0
- package/pep-mapping-parameters.js +32 -0
- package/pep-menu-data-view.d.ts +18 -0
- package/pep-menu-data-view.js +36 -0
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @pepperi-addons/ngx-composite-lib-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React wrappers for Pepperi ngx-composite-lib Angular Elements.
|
|
4
4
|
|
|
5
|
-
## Version 0.5.
|
|
5
|
+
## Version 0.5.1
|
|
6
6
|
|
|
7
|
-
This package provides React wrappers for
|
|
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
|
-
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
32
|
-
- **
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
- **PepShowIfBadge** - Conditional badge
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
##
|
|
60
|
+
## Setup
|
|
40
61
|
|
|
41
|
-
|
|
62
|
+
Include the Angular Elements bundle in your HTML:
|
|
42
63
|
|
|
43
64
|
```html
|
|
44
|
-
|
|
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
|
|
74
|
+
## Usage Examples
|
|
75
|
+
|
|
76
|
+
### Basic Component
|
|
48
77
|
|
|
49
78
|
```tsx
|
|
50
|
-
import React from 'react';
|
|
51
|
-
import {
|
|
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
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
- ✅
|
|
72
|
-
- ✅ TypeScript
|
|
73
|
-
- ✅
|
|
74
|
-
- ✅
|
|
75
|
-
- ✅
|
|
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
|