@pepperi-addons/ngx-composite-lib-react 0.5.2 → 0.5.3

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.
@@ -0,0 +1,2 @@
1
+ {
2
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperi-addons/ngx-composite-lib-react",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "React wrappers for Pepperi ngx-composite-lib Angular Elements.",
5
5
  "license": "MIT",
6
6
  "author": "Pepperi",
@@ -66,5 +66,9 @@ export interface PepGenericListProps {
66
66
  listLoad?: () => void;
67
67
  className?: string;
68
68
  style?: React.CSSProperties;
69
+ leftButtonsContent?: React.ReactNode;
70
+ rightButtonsContent?: React.ReactNode;
71
+ leftBottomAreaContent?: React.ReactNode;
72
+ rightBottomAreaContent?: React.ReactNode;
69
73
  }
70
74
  export declare const PepGenericList: React.FC<PepGenericListProps>;
@@ -122,6 +122,20 @@ export const PepGenericList = (props) => {
122
122
  props.startIndexChange,
123
123
  props.listLoad,
124
124
  ]);
125
- return React.createElement('pep-generic-list-element', { ref, class: props.className, style: props.style });
125
+ // Render projected content for Angular ng-content slots by using matching attributes
126
+ const children = [];
127
+ if (props.leftButtonsContent) {
128
+ children.push(React.createElement('div', { ['left-buttons']: '' }, props.leftButtonsContent));
129
+ }
130
+ if (props.rightButtonsContent) {
131
+ children.push(React.createElement('div', { ['right-buttons']: '' }, props.rightButtonsContent));
132
+ }
133
+ if (props.leftBottomAreaContent) {
134
+ children.push(React.createElement('div', { ['left-bottom-area']: '' }, props.leftBottomAreaContent));
135
+ }
136
+ if (props.rightBottomAreaContent) {
137
+ children.push(React.createElement('div', { ['right-bottom-area']: '' }, props.rightBottomAreaContent));
138
+ }
139
+ return React.createElement('pep-generic-list-element', { ref, class: props.className, style: props.style }, children.length > 0 ? children : undefined);
126
140
  };
127
141
  //# sourceMappingURL=pep-generic-list.js.map