@pepperi-addons/ngx-composite-lib-react 0.5.2 → 0.5.4
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/elements/styles.css +1 -1
- package/package.json +1 -1
- package/pep-generic-list.d.ts +4 -0
- package/pep-generic-list.js +15 -1
- package/pep-group-buttons-settings.js +0 -15
- package/elements/971.js +0 -1
- /package/i18n/{zh.ngx-lib.json → zh.ngx-composite-lib.json} +0 -0
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
|
|
@@ -6,55 +6,40 @@ export const PepGroupButtonsSettings = ({ header, subHeader, groupType, btnsArra
|
|
|
6
6
|
const el = ref.current;
|
|
7
7
|
if (!el)
|
|
8
8
|
return;
|
|
9
|
-
console.log('[REACT DEBUG] Setting Group Buttons properties...');
|
|
10
|
-
console.log('[REACT DEBUG] Props received:', { header, subHeader, excludeKeys, groupType, btnsArray, useNone, disabled, dir, titleSize, bold, btnKey });
|
|
11
9
|
// Set properties in the correct order - excludeKeys must be set before groupType
|
|
12
10
|
if (header !== undefined) {
|
|
13
11
|
el.header = header;
|
|
14
|
-
console.log('[REACT DEBUG] Set header:', el.header);
|
|
15
12
|
}
|
|
16
13
|
if (subHeader !== undefined) {
|
|
17
14
|
el.subHeader = subHeader;
|
|
18
|
-
console.log('[REACT DEBUG] Set subHeader:', el.subHeader);
|
|
19
15
|
}
|
|
20
16
|
if (excludeKeys !== undefined) {
|
|
21
17
|
el.excludeKeys = excludeKeys; // Set excludeKeys FIRST
|
|
22
|
-
console.log('[REACT DEBUG] Set excludeKeys:', el.excludeKeys);
|
|
23
18
|
}
|
|
24
19
|
if (groupType !== undefined) {
|
|
25
20
|
el.groupType = groupType; // Then set groupType
|
|
26
|
-
console.log('[REACT DEBUG] Set groupType:', el.groupType);
|
|
27
21
|
}
|
|
28
22
|
if (btnsArray !== undefined) {
|
|
29
23
|
el.btnsArray = btnsArray;
|
|
30
|
-
console.log('[REACT DEBUG] Set btnsArray:', el.btnsArray);
|
|
31
24
|
}
|
|
32
25
|
if (useNone !== undefined) {
|
|
33
26
|
el.useNone = useNone;
|
|
34
|
-
console.log('[REACT DEBUG] Set useNone:', el.useNone);
|
|
35
27
|
}
|
|
36
28
|
if (disabled !== undefined) {
|
|
37
29
|
el.disabled = disabled;
|
|
38
|
-
console.log('[REACT DEBUG] Set disabled:', el.disabled);
|
|
39
30
|
}
|
|
40
31
|
if (dir !== undefined) {
|
|
41
32
|
el.dir = dir;
|
|
42
|
-
console.log('[REACT DEBUG] Set dir:', el.dir);
|
|
43
33
|
}
|
|
44
34
|
if (titleSize !== undefined) {
|
|
45
35
|
el.titleSize = titleSize;
|
|
46
|
-
console.log('[REACT DEBUG] Set titleSize:', el.titleSize);
|
|
47
36
|
}
|
|
48
37
|
if (bold !== undefined) {
|
|
49
38
|
el.bold = bold;
|
|
50
|
-
console.log('[REACT DEBUG] Set bold:', el.bold);
|
|
51
39
|
}
|
|
52
40
|
if (btnKey !== undefined) {
|
|
53
41
|
el.btnKey = btnKey;
|
|
54
|
-
console.log('[REACT DEBUG] Set btnKey:', el.btnKey);
|
|
55
42
|
}
|
|
56
|
-
console.log('[REACT DEBUG] btnsArray:', el.btnsArray);
|
|
57
|
-
console.log('[REACT DEBUG] excludeKeys should trigger automatic arrayMerge via setter');
|
|
58
43
|
}, [header, subHeader, groupType, btnsArray, excludeKeys, useNone, disabled, dir, titleSize, bold, btnKey]);
|
|
59
44
|
// Wire outputs (Angular emits custom event name 'btnkeyChange')
|
|
60
45
|
useEffect(() => {
|