@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.
- package/elements/main.js +1 -1
- package/i18n/zh.ngx-composite-lib.json +2 -0
- package/package.json +1 -1
- package/pep-generic-list.d.ts +4 -0
- package/pep-generic-list.js +15 -1
package/package.json
CHANGED
package/pep-generic-list.d.ts
CHANGED
|
@@ -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>;
|
package/pep-generic-list.js
CHANGED
|
@@ -122,6 +122,20 @@ export const PepGenericList = (props) => {
|
|
|
122
122
|
props.startIndexChange,
|
|
123
123
|
props.listLoad,
|
|
124
124
|
]);
|
|
125
|
-
|
|
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
|