@pepperi-addons/ngx-composite-lib-react 0.5.1 → 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
+ }
@@ -0,0 +1,181 @@
1
+ {
2
+ "COLOR_SETTINGS": {
3
+ "OPACITY": "opacity",
4
+ "COLOR": "color"
5
+ },
6
+ "SHADOW_SETTINGS": {
7
+ "TITLE": "Drop shadow",
8
+ "INTENSITY_SOFT": "Soft",
9
+ "INTENSITY_REGULAR": "Regular",
10
+ "INTENSITY_HARD": "Hard",
11
+ "SIZE": "Shadow size",
12
+ "INTENSITY": "Shadow intensity"
13
+ },
14
+ "PADDING_SETTINGS": {
15
+ "TITLE": "Padding",
16
+ "UNIFORM": "Uniform",
17
+ "DESCRIPTION": "Uniform padding (Rems)",
18
+ "TOP": "Top",
19
+ "END": "End",
20
+ "BOTTOM": "Bottom",
21
+ "START": "Start"
22
+ },
23
+ "DATA_VIEW_BUILDER": {
24
+ "TYPE_NOT_SUPPORTED": "This data view type is not supported",
25
+ "AVAILABLE_FIELDS": "Available fields",
26
+ "MENU_ITEM_KEY_TITLE": "Item key",
27
+ "MENU_ITEM_VALUE_TITLE": "Item title",
28
+ "EMPTY_DROP_AREA_TEXT": "Drop here from available fields",
29
+ "ADD_SEPARATOR": "Add separator",
30
+ "SEPARATOR_TITLE": "Separator title",
31
+ "ADD_A_TITLE": "Add a title"
32
+ },
33
+ "GENERIC_FIELDS_BUILDER": {
34
+ "AVAILABLE_FIELDS": "Available fields",
35
+ "MENU_ITEM_KEY_TITLE": "Item key",
36
+ "MENU_ITEM_VALUE_TITLE": "Item title",
37
+ "EMPTY_DROP_AREA_TEXT": "Drop here from available fields",
38
+ "ADD_SEPARATOR": "Add separator",
39
+ "SEPARATOR_TITLE": "Separator title",
40
+ "ADD_A_TITLE": "Add a title",
41
+ "TEMPLATE_NOT_SUPPLIED": "Template not supplied for - {{fieldTitle}}"
42
+ },
43
+ "GENERAL": {
44
+ "NONE": "None",
45
+ "XS": "XS",
46
+ "SM": "S",
47
+ "MD": "M",
48
+ "LG": "L",
49
+ "XL": "XL",
50
+ "XXL": "XXL",
51
+ "FONT_WEIGHT": {
52
+ "REGULAR": "Regular",
53
+ "BOLD": "Bold",
54
+ "BOLDER": "Bolder"
55
+ },
56
+ "WIDTH_SIZE": {
57
+ "NARROW": "Narrow",
58
+ "REGULAR": "Regular",
59
+ "WIDE": "Wide"
60
+ },
61
+ "BOOLEAN": {
62
+ "TRUE": "True",
63
+ "FALSE": "False"
64
+ },
65
+ "HORIZONTAL_ALIGN": {
66
+ "LEFT": "Left",
67
+ "CENTER": "Center",
68
+ "RIGHT": "Right"
69
+ },
70
+ "VERTICAL_ALIGN": {
71
+ "TOP": "Top",
72
+ "MIDDLE": "Middle",
73
+ "BOTTOM": "Bottom"
74
+ },
75
+ "RESET_HINT": "Screen sizes support"
76
+ },
77
+ "ACTIONS": {
78
+ "RESET": "Reset",
79
+ "CLOSE": "Close",
80
+ "DELETE": "Delete",
81
+ "EDIT": "Edit",
82
+ "PREVIEW": "Preview"
83
+ },
84
+ "MESSAGES": {
85
+ "DIALOG_NOTICE_TITLE": "Notice",
86
+ "DIALOG_INFO_TITLE": "Info",
87
+ "DIALOG_ERROR_TITLE": "Error",
88
+ "DIALOG_DELETE_TITLE": "Delete",
89
+ "DELETE_DIALOG_CONTENT": "Are you sure?",
90
+ "OPERATION_SUCCESS_CONTENT": "Operation success.",
91
+ "MAPPED_FIELDS_UNMAPPED_ENTRIES_CONTENT": "There are unmapped entries. ‘Ok’ will remove them from the list.",
92
+ "MAPPED_FIELDS_SAVED_DIALOG_CONTENT": "The mapped fields are saved.",
93
+ "DIALOG_ERROR_CONTENT": "General error - please contact your administrator.",
94
+ "DIALOG_ERROR_DETAILS": "<br/><small> Error details: {{error}} </small>"
95
+ },
96
+ "GENERIC_LIST": {
97
+ "EMPTY_STATE": {
98
+ "TITLE": "Nothing to see here",
99
+ "DESCRIPTION": "Add or create an item to populate this list"
100
+ },
101
+ "OPEN_SIDEBAR": "Sidebar",
102
+ "OPEN_FILTERS": "Filters"
103
+ },
104
+ "MANAGE_PARAMETERS": {
105
+ "TITLE": "Parameters",
106
+ "ADD_BUTTON_TITLE": "Add parameter",
107
+ "EMPTY_STATE_TITLE":"No parameters here yet :-(",
108
+ "EMPTY_STATE_DESCRIPTION":"Click on the \"Add parameter\" button above to get things going",
109
+ "DELETE_DIALOG_TITLE": "Delete Param {{param_name}}",
110
+ "DELETE_DIALOG_CONTENT": "Are you sure you want to delete this parameter?",
111
+ "KEY_TITLE": "Key",
112
+ "KEY_REGEX_ERROR": "Parameter Key cannot contain special characters on spaces",
113
+ "DESCRIPTION_TITLE": "Description",
114
+ "TYPE_TITLE": "Type",
115
+ "DEFAULT_VALUE_TITLE": "Default Value",
116
+ "INTERNAL_TITLE": "Internal",
117
+ "ACCESSIBILITY_TITLE": "Accessibility",
118
+ "PERSISTENCY_TITLE": "Persistency (If changed by the user, the value is saved and used in future use)",
119
+ "EDIT_FORM_TITLE": "Edit parameter",
120
+ "INTERNAL_DESCRIPTION": "The Variable Accessibility feature enables you to classify variables as either external or internal, defining their intended usage within this context.\n When marked as external, a parameter is accessible by external components using the picker \n When marked as internal, parameter is hidden from external entities, though available during the context run time",
121
+ "ADD_FORM_TITLE": "Add parameter"
122
+ },
123
+ "MAPPING_PARAMETERS": {
124
+ "VARIABLE_MAPPING": "Variable mapping",
125
+ "DYNAMIC": "Dynamic",
126
+ "STATIC": "Static",
127
+ "DEFAULT": "Default"
128
+ },
129
+ "FLOW_PICKER_BUTTON": {
130
+ "CHOOSE_FLOW": "Choose flow"
131
+ },
132
+ "ICON_PICKER_BUTTON": {
133
+ "CHOOSE_ICON": "Open icon selector",
134
+ "MAIN_HEADER": "Icon",
135
+ "SELECTED": "Selected",
136
+ "CHOOSE_ICON_HEADER": "Choose icon"
137
+ },
138
+ "LAYOUT_BUILDER": {
139
+ "DEFAULT_TITLE": "Layout builder",
140
+ "NO_TITLE": "No title",
141
+ "VIEWPORT_WIDTH": "View port width",
142
+ "PREVIEW_TITLE": "Preview Mode",
143
+ "PREVIEW_CLICK_HERE": "Click here to edit",
144
+ "DESKTOP": "Desktop",
145
+ "TABLET": "Tablet",
146
+ "MOBILE": "Mobile",
147
+ "SECTION": "Section",
148
+ "SECTION_NAME_TITLE": "Section Name (kebab-case)",
149
+ "SUB_SECTION_TITLE": "Sub Section",
150
+ "COLLAPSE_ON_TABLET_TITLE": "Collapse on Tablet",
151
+ "COLLAPSE_ON_TABLET_DESCRIPTION": "Enable this will make the sub section collapse into one column on tablet view",
152
+ "FILL_HEIGHT_SECTION_TITLE": "Fill Height",
153
+ "FILL_HEIGHT_SECTION_DESCRIPTION": "Set Fill Height on to make the section to fill the relative screen size",
154
+ "SECTIONS_TITLE": "Sections",
155
+ "LAYOUT": "Layout",
156
+ "SPLIT_TITLE": "Split",
157
+ "ADD_SECTION": "Add Section",
158
+ "BLOCKS_COUNT_LIMIT_MESSAGE": "You exceeded your blocks number limit - please contact your administrator.",
159
+ "DELETE_SECTION_MSG": "This action will delete out of range content. This action is irreversible!",
160
+ "DELETE_SECTION_TITLE": "Caution",
161
+ "GENERAL": "General",
162
+ "DESIGN": "Design",
163
+ "BLOCKS_TITLE": "Blocks",
164
+ "FULL_WIDTH_TITLE": "Full Width",
165
+ "MAX_WIDTH_TITLE": "Max Width",
166
+ "AUTO_HEIGHT_TITLE": "Auto Height",
167
+ "MAX_HEIGHT_TITLE": "Max Height",
168
+ "HEIGHT_TITLE": "Height",
169
+ "SPACING_TITLE": "Spacing",
170
+ "SPACING_HORIZONTAL_TITLE": "Left & Right",
171
+ "SPACING_VERTICAL_TITLE": "Top & Bottom",
172
+ "GAPS_TITLE": "Gaps",
173
+ "SECTIONS_GAP_TITLE": "Gap size between sections",
174
+ "COLUMNS_GAP_TITLE": "Gap size between columns",
175
+ "ROUNDED_CORNERS_TITLE": "Rounded Corners",
176
+ "BORDER_RADIUS_TITLE": "Global border radius",
177
+ "HIDE_IN": {
178
+ "HIDE_IN_TITLE": "Hide on:"
179
+ }
180
+ }
181
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -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.1",
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",
@@ -26,7 +26,8 @@
26
26
  "*.js",
27
27
  "*.d.ts",
28
28
  "README.md",
29
- "elements/*"
29
+ "elements/*",
30
+ "i18n/*"
30
31
  ],
31
32
  "exports": {
32
33
  ".": {
@@ -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