@pepperi-addons/ngx-lib-react 0.5.8 → 0.5.10
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 +15 -1
- package/SERVICES.md +4 -0
- package/elements/3rdpartylicenses.txt +0 -3
- package/elements/main.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/pep-attachment.js +0 -1
- package/pep-bread-crumbs.js +0 -1
- package/pep-button.d.ts +1 -0
- package/pep-button.js +4 -2
- package/pep-images-filmstrip.js +0 -1
- package/pep-list-chooser.d.ts +15 -0
- package/pep-list-chooser.js +36 -0
- package/pep-snack-bar.js +0 -1
- package/services.js +2 -2
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { PepCarousel } from './pep-carousel.js';
|
|
|
27
27
|
export { PepIcon } from './pep-icon.js';
|
|
28
28
|
export { PepAddress } from './pep-address.js';
|
|
29
29
|
export { PepTopBar } from './pep-top-bar.js';
|
|
30
|
+
export { PepListChooser } from './pep-list-chooser.js';
|
|
30
31
|
export * from './pep-color-picker.js';
|
|
31
32
|
export { PepRichHtmlTextarea } from './pep-rich-html-textarea.js';
|
|
32
33
|
export * from './services.js';
|
package/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export { PepCarousel } from './pep-carousel.js';
|
|
|
27
27
|
export { PepIcon } from './pep-icon.js';
|
|
28
28
|
export { PepAddress } from './pep-address.js';
|
|
29
29
|
export { PepTopBar } from './pep-top-bar.js';
|
|
30
|
+
export { PepListChooser } from './pep-list-chooser.js';
|
|
30
31
|
export * from './pep-color-picker.js';
|
|
31
32
|
export { PepRichHtmlTextarea } from './pep-rich-html-textarea.js';
|
|
32
33
|
// Export all service helpers (bridge-based access to Angular services)
|
package/package.json
CHANGED
package/pep-attachment.js
CHANGED
|
@@ -40,7 +40,6 @@ export const PepAttachment = ({ keyProp, src, label, mandatory, disabled, readon
|
|
|
40
40
|
element.handleActions = handleActions;
|
|
41
41
|
if (hint !== undefined)
|
|
42
42
|
element.hint = hint;
|
|
43
|
-
console.log('PepAttachment properties set:', { src, label, mandatory, disabled, readonly });
|
|
44
43
|
}, 0);
|
|
45
44
|
}, [keyProp, src, label, mandatory, disabled, readonly, xAlignment, rowSpan, visible, form, showTitle, renderTitle, layoutType, isActive, handleActions, hint]);
|
|
46
45
|
useEffect(() => {
|
package/pep-bread-crumbs.js
CHANGED
|
@@ -14,7 +14,6 @@ export const PepBreadCrumbs = ({ items, displayType, addSpacing, onItemClick, })
|
|
|
14
14
|
element.displayType = displayType;
|
|
15
15
|
if (addSpacing !== undefined)
|
|
16
16
|
element.addSpacing = addSpacing;
|
|
17
|
-
console.log('PepBreadCrumbs properties set:', { items, displayType, addSpacing });
|
|
18
17
|
}, 0);
|
|
19
18
|
}, [items, displayType, addSpacing]);
|
|
20
19
|
useEffect(() => {
|
package/pep-button.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface PepButtonProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
16
16
|
iconName?: string;
|
|
17
17
|
iconPosition?: PepIconPosition;
|
|
18
18
|
className?: string;
|
|
19
|
+
classNames?: string;
|
|
19
20
|
onButtonClick?: (e: PepButtonClickEvent) => void;
|
|
20
21
|
}
|
|
21
22
|
export declare const PepButton: React.FC<PepButtonProps>;
|
package/pep-button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
|
-
export const PepButton = ({ value, styleType, styleStateType, sizeType, disabled, iconName, iconPosition, className, onButtonClick, ...rest }) => {
|
|
3
|
+
export const PepButton = ({ value, styleType, styleStateType, sizeType, disabled, iconName, iconPosition, className, classNames, onButtonClick, ...rest }) => {
|
|
4
4
|
const ref = useRef(null);
|
|
5
5
|
// Sync non-string/boolean props as properties
|
|
6
6
|
useEffect(() => {
|
|
@@ -20,7 +20,9 @@ export const PepButton = ({ value, styleType, styleStateType, sizeType, disabled
|
|
|
20
20
|
el.styleStateType = styleStateType;
|
|
21
21
|
if (typeof sizeType !== 'undefined')
|
|
22
22
|
el.sizeType = sizeType;
|
|
23
|
-
|
|
23
|
+
if (typeof classNames !== 'undefined')
|
|
24
|
+
el.classNames = classNames;
|
|
25
|
+
}, [disabled, iconName, iconPosition, styleType, styleStateType, sizeType, classNames]);
|
|
24
26
|
// Attach events
|
|
25
27
|
useEffect(() => {
|
|
26
28
|
const el = ref.current;
|
package/pep-images-filmstrip.js
CHANGED
|
@@ -32,7 +32,6 @@ export const PepImagesFilmstrip = ({ keyProp, value, label, xAlignment, rowSpan,
|
|
|
32
32
|
element.currIndex = currIndex;
|
|
33
33
|
if (showThumbnails !== undefined)
|
|
34
34
|
element.showThumbnails = showThumbnails;
|
|
35
|
-
console.log('PepImagesFilmstrip properties set:', { value, label, showThumbnails, currIndex, showTitle, renderTitle });
|
|
36
35
|
}, 0);
|
|
37
36
|
}, [keyProp, value, label, xAlignment, rowSpan, form, uid, showTitle, renderTitle, layoutType, currIndex, showThumbnails]);
|
|
38
37
|
return _jsx("pep-images-filmstrip-element", { ref: elementRef });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface PepListChooserOption {
|
|
3
|
+
key: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PepListChooserChangeEvent {
|
|
7
|
+
source: PepListChooserOption;
|
|
8
|
+
}
|
|
9
|
+
export interface PepListChooserProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
10
|
+
options?: PepListChooserOption[];
|
|
11
|
+
currentList?: PepListChooserOption | null;
|
|
12
|
+
sizeType?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
|
+
onChange?: (event: PepListChooserChangeEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const PepListChooser: React.FC<PepListChooserProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
export const PepListChooser = ({ options, currentList, sizeType, onChange, ...rest }) => {
|
|
4
|
+
const ref = useRef(null);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
const el = ref.current;
|
|
7
|
+
if (!el) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof options !== 'undefined') {
|
|
11
|
+
el.options = options;
|
|
12
|
+
}
|
|
13
|
+
if (typeof currentList !== 'undefined') {
|
|
14
|
+
el.currentList = currentList;
|
|
15
|
+
}
|
|
16
|
+
if (typeof sizeType !== 'undefined') {
|
|
17
|
+
el.sizeType = sizeType;
|
|
18
|
+
}
|
|
19
|
+
}, [options, currentList, sizeType]);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const el = ref.current;
|
|
22
|
+
if (!el || !onChange) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const handler = (event) => {
|
|
26
|
+
var _a;
|
|
27
|
+
onChange((_a = event.detail) !== null && _a !== void 0 ? _a : event);
|
|
28
|
+
};
|
|
29
|
+
el.addEventListener('change', handler);
|
|
30
|
+
return () => {
|
|
31
|
+
el.removeEventListener('change', handler);
|
|
32
|
+
};
|
|
33
|
+
}, [onChange]);
|
|
34
|
+
return _jsx("pep-list-chooser-element", { ref: ref, ...rest });
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=pep-list-chooser.js.map
|
package/pep-snack-bar.js
CHANGED
|
@@ -12,7 +12,6 @@ export const PepSnackBar = ({ snackBarRef, title, onCloseClick, }) => {
|
|
|
12
12
|
element.snackBarRef = snackBarRef;
|
|
13
13
|
if (title !== undefined)
|
|
14
14
|
element.title = title;
|
|
15
|
-
console.log('PepSnackBar properties set:', { snackBarRef, title });
|
|
16
15
|
}, 0);
|
|
17
16
|
}, [snackBarRef, title]);
|
|
18
17
|
useEffect(() => {
|
package/services.js
CHANGED
|
@@ -384,11 +384,11 @@ export function openReactPepDialog(options) {
|
|
|
384
384
|
style: {
|
|
385
385
|
position: 'fixed',
|
|
386
386
|
inset: 0,
|
|
387
|
-
background: 'rgba(0, 0, 0, 0.
|
|
387
|
+
background: 'rgba(0, 0, 0, 0.32)',
|
|
388
388
|
display: 'flex',
|
|
389
389
|
alignItems: 'center',
|
|
390
390
|
justifyContent: 'center',
|
|
391
|
-
zIndex:
|
|
391
|
+
zIndex: 1000,
|
|
392
392
|
},
|
|
393
393
|
}, React.createElement('div', {
|
|
394
394
|
className: 'cdk-overlay-pane pep-dialog',
|