@pepperi-addons/ngx-composite-lib-react 0.0.4 → 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 +129 -0
- package/elements/971.js +1 -1
- package/elements/index.html +5 -5
- package/elements/main.js +1 -1
- package/elements/polyfills.js +1 -1
- package/elements/runtime.js +1 -1
- package/elements/styles.css +16 -1
- package/index.d.ts +16 -19
- package/index.js +16 -19
- package/package.json +24 -23
- package/pep-color-settings.d.ts +17 -4
- package/pep-color-settings.js +33 -2
- package/pep-data-view-builder.d.ts +28 -4
- package/pep-data-view-builder.js +41 -2
- package/pep-file-status-panel.d.ts +18 -4
- package/pep-file-status-panel.js +28 -2
- package/pep-flow-picker-button.d.ts +13 -4
- package/pep-flow-picker-button.js +29 -2
- package/pep-generic-fields-builder.d.ts +33 -0
- package/pep-generic-fields-builder.js +57 -0
- package/pep-generic-form.d.ts +52 -4
- package/pep-generic-form.js +46 -2
- package/pep-generic-list.d.ts +70 -4
- package/pep-generic-list.js +126 -2
- package/pep-group-buttons-settings.d.ts +25 -4
- package/pep-group-buttons-settings.js +72 -2
- package/pep-icon-picker.d.ts +18 -4
- package/pep-icon-picker.js +39 -2
- package/pep-manage-parameters.d.ts +31 -4
- package/pep-manage-parameters.js +39 -2
- package/pep-mapping-parameters.d.ts +17 -4
- package/pep-mapping-parameters.js +31 -2
- package/pep-menu-data-view.d.ts +18 -0
- package/pep-menu-data-view.js +36 -0
- package/pep-padding-settings.d.ts +12 -4
- package/pep-padding-settings.js +23 -2
- package/pep-rich-text.d.ts +47 -4
- package/pep-rich-text.js +76 -2
- package/pep-shadow-settings.d.ts +15 -4
- package/pep-shadow-settings.js +22 -2
- package/pep-show-if-badge.d.ts +10 -4
- package/pep-show-if-badge.js +16 -2
- package/components/PepGroupButtonsSettings.d.ts +0 -14
- package/components/PepGroupButtonsSettings.js +0 -19
- package/components/PepGroupButtonsSettingsReact.d.ts +0 -14
- package/components/PepGroupButtonsSettingsReact.js +0 -104
- package/elements/register.auto.d.ts +0 -1
- package/elements/register.auto.js +0 -1
- package/elements/register.d.ts +0 -1
- package/elements/register.js +0 -1
- package/elements/register.polyfills.js +0 -1
- package/elements/register.runtime.js +0 -1
- package/pep-field-container.d.ts +0 -4
- package/pep-field-container.js +0 -3
- package/pep-group-buttons-settings-react.d.ts +0 -14
- package/pep-group-buttons-settings-react.js +0 -62
- package/pep-layout-builder-editor.d.ts +0 -4
- package/pep-layout-builder-editor.js +0 -3
- package/pep-layout-builder.d.ts +0 -4
- package/pep-layout-builder.js +0 -3
- package/pep-layout.d.ts +0 -4
- package/pep-layout.js +0 -3
- package/utils/create-wrapper.d.ts +0 -7
- package/utils/create-wrapper.js +0 -46
package/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# @pepperi-addons/ngx-composite-lib-react
|
|
2
|
+
|
|
3
|
+
React wrappers for Pepperi ngx-composite-lib Angular Elements.
|
|
4
|
+
|
|
5
|
+
## Version 0.5.1
|
|
6
|
+
|
|
7
|
+
This package provides React wrappers for **15 fully converted Angular Elements** from ngx-composite-lib.
|
|
8
|
+
|
|
9
|
+
## Available Components
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import {
|
|
13
|
+
PepColorSettings,
|
|
14
|
+
PepGroupButtonsSettings,
|
|
15
|
+
PepFlowPickerButton,
|
|
16
|
+
PepIconPicker,
|
|
17
|
+
PepPaddingSettings,
|
|
18
|
+
PepShadowSettings,
|
|
19
|
+
PepRichText,
|
|
20
|
+
PepShowIfBadge,
|
|
21
|
+
PepGenericList,
|
|
22
|
+
PepFileStatusPanel,
|
|
23
|
+
PepGenericForm,
|
|
24
|
+
PepDataViewBuilder,
|
|
25
|
+
PepManageParameters,
|
|
26
|
+
PepMappingParameters,
|
|
27
|
+
PepGenericFieldsBuilder,
|
|
28
|
+
} from '@pepperi-addons/ngx-composite-lib-react';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Component Details
|
|
32
|
+
|
|
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
|
+
```
|
|
59
|
+
|
|
60
|
+
## Setup
|
|
61
|
+
|
|
62
|
+
Include the Angular Elements bundle in your HTML:
|
|
63
|
+
|
|
64
|
+
```html
|
|
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>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Usage Examples
|
|
75
|
+
|
|
76
|
+
### Basic Component
|
|
77
|
+
|
|
78
|
+
```tsx
|
|
79
|
+
import React, { useState } from 'react';
|
|
80
|
+
import { PepColorSettings } from '@pepperi-addons/ngx-composite-lib-react';
|
|
81
|
+
|
|
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
|
+
|
|
107
|
+
return (
|
|
108
|
+
<PepGenericFieldsBuilder
|
|
109
|
+
builderTitle="Form Fields"
|
|
110
|
+
availableFields={availableFields}
|
|
111
|
+
fields={fields}
|
|
112
|
+
onFieldsChange={setFields}
|
|
113
|
+
/>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Features
|
|
119
|
+
|
|
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
|
|
126
|
+
|
|
127
|
+
## License
|
|
128
|
+
|
|
129
|
+
MIT
|