@apexcura/ui-components 0.0.14-Beta245 → 0.0.14-Beta247
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/dist/index.css +19 -0
- package/dist/index.js +17 -4
- package/dist/index.mjs +17 -4
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -338,6 +338,9 @@ video {
|
|
|
338
338
|
.fixed {
|
|
339
339
|
position: fixed;
|
|
340
340
|
}
|
|
341
|
+
.m-10 {
|
|
342
|
+
margin: 2.5rem;
|
|
343
|
+
}
|
|
341
344
|
.m-\[10px\] {
|
|
342
345
|
margin: 10px;
|
|
343
346
|
}
|
|
@@ -350,12 +353,18 @@ video {
|
|
|
350
353
|
.grid {
|
|
351
354
|
display: grid;
|
|
352
355
|
}
|
|
356
|
+
.flex-col {
|
|
357
|
+
flex-direction: column;
|
|
358
|
+
}
|
|
353
359
|
.rounded-\[8px\] {
|
|
354
360
|
border-radius: 8px;
|
|
355
361
|
}
|
|
356
362
|
.border {
|
|
357
363
|
border-width: 1px;
|
|
358
364
|
}
|
|
365
|
+
.border-4 {
|
|
366
|
+
border-width: 4px;
|
|
367
|
+
}
|
|
359
368
|
.border-\[\#919191\] {
|
|
360
369
|
--tw-border-opacity: 1;
|
|
361
370
|
border-color: rgb(145 145 145 / var(--tw-border-opacity));
|
|
@@ -372,12 +381,22 @@ video {
|
|
|
372
381
|
--tw-bg-opacity: 1;
|
|
373
382
|
background-color: rgb(242 242 242 / var(--tw-bg-opacity));
|
|
374
383
|
}
|
|
384
|
+
.bg-green-500 {
|
|
385
|
+
--tw-bg-opacity: 1;
|
|
386
|
+
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
387
|
+
}
|
|
388
|
+
.p-10 {
|
|
389
|
+
padding: 2.5rem;
|
|
390
|
+
}
|
|
375
391
|
.p-\[6px\] {
|
|
376
392
|
padding: 6px;
|
|
377
393
|
}
|
|
378
394
|
.text-center {
|
|
379
395
|
text-align: center;
|
|
380
396
|
}
|
|
397
|
+
.font-semibold {
|
|
398
|
+
font-weight: 600;
|
|
399
|
+
}
|
|
381
400
|
.italic {
|
|
382
401
|
font-style: italic;
|
|
383
402
|
}
|
package/dist/index.js
CHANGED
|
@@ -208,7 +208,7 @@ var SelectElement = (props) => {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
return /* @__PURE__ */ import_react5.default.createElement("div", { className:
|
|
211
|
+
return /* @__PURE__ */ import_react5.default.createElement("div", { className: "flex flex-col p-10 m-10" }, props.label && /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: props.name, className: "font-semibold text-default-400 text-red bg-green-500 border-4" }, props.label), /* @__PURE__ */ import_react5.default.createElement(
|
|
212
212
|
import_antd5.Select,
|
|
213
213
|
{
|
|
214
214
|
options: props.options,
|
|
@@ -803,7 +803,7 @@ var ModelBody = (props) => {
|
|
|
803
803
|
|
|
804
804
|
// src/Components/Model.tsx
|
|
805
805
|
var ModelElement = (props) => {
|
|
806
|
-
const { model, onCancel, selectedRecord, columns } = props;
|
|
806
|
+
const { model, onCancel, selectedRecord, columns, modalContent } = props;
|
|
807
807
|
return /* @__PURE__ */ import_react20.default.createElement(
|
|
808
808
|
import_antd13.Modal,
|
|
809
809
|
{
|
|
@@ -823,6 +823,9 @@ var ModelElement = (props) => {
|
|
|
823
823
|
margin: "-10px"
|
|
824
824
|
}
|
|
825
825
|
},
|
|
826
|
+
modalContent.map((eachField) => {
|
|
827
|
+
console.log("eachField", eachField);
|
|
828
|
+
}),
|
|
826
829
|
columns.map((eachColumn) => {
|
|
827
830
|
if (!["index", "View"].includes(eachColumn.key) && eachColumn?.["is_detail"] !== false) {
|
|
828
831
|
return /* @__PURE__ */ import_react20.default.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ import_react20.default.createElement(
|
|
@@ -1121,13 +1124,21 @@ var DropDownGroup = (props) => {
|
|
|
1121
1124
|
return newValue;
|
|
1122
1125
|
});
|
|
1123
1126
|
};
|
|
1127
|
+
const firstFilterOptions = (input, option) => {
|
|
1128
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1129
|
+
};
|
|
1130
|
+
const secondFilterOptions = (input, option) => {
|
|
1131
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1132
|
+
};
|
|
1124
1133
|
return /* @__PURE__ */ import_react26.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react26.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react26.default.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ import_react26.default.createElement(
|
|
1125
1134
|
import_antd18.Select,
|
|
1126
1135
|
{
|
|
1127
1136
|
onChange: handleFirstChange,
|
|
1128
1137
|
variant: props.variant,
|
|
1129
1138
|
options: props.firstOptions,
|
|
1130
|
-
className: props.className
|
|
1139
|
+
className: props.className,
|
|
1140
|
+
filterOption: firstFilterOptions,
|
|
1141
|
+
showSearch: true
|
|
1131
1142
|
}
|
|
1132
1143
|
), /* @__PURE__ */ import_react26.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react26.default.createElement(
|
|
1133
1144
|
import_antd18.Select,
|
|
@@ -1135,7 +1146,9 @@ var DropDownGroup = (props) => {
|
|
|
1135
1146
|
onChange: handleSecondChange,
|
|
1136
1147
|
variant: props.variant,
|
|
1137
1148
|
options: props.secondOptions,
|
|
1138
|
-
className: props.className
|
|
1149
|
+
className: props.className,
|
|
1150
|
+
filterOption: secondFilterOptions,
|
|
1151
|
+
showSearch: true
|
|
1139
1152
|
}
|
|
1140
1153
|
)));
|
|
1141
1154
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -142,7 +142,7 @@ var SelectElement = (props) => {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
return /* @__PURE__ */ React5.createElement("div", { className:
|
|
145
|
+
return /* @__PURE__ */ React5.createElement("div", { className: "flex flex-col p-10 m-10" }, props.label && /* @__PURE__ */ React5.createElement("label", { htmlFor: props.name, className: "font-semibold text-default-400 text-red bg-green-500 border-4" }, props.label), /* @__PURE__ */ React5.createElement(
|
|
146
146
|
Select,
|
|
147
147
|
{
|
|
148
148
|
options: props.options,
|
|
@@ -737,7 +737,7 @@ var ModelBody = (props) => {
|
|
|
737
737
|
|
|
738
738
|
// src/Components/Model.tsx
|
|
739
739
|
var ModelElement = (props) => {
|
|
740
|
-
const { model, onCancel, selectedRecord, columns } = props;
|
|
740
|
+
const { model, onCancel, selectedRecord, columns, modalContent } = props;
|
|
741
741
|
return /* @__PURE__ */ React20.createElement(
|
|
742
742
|
Modal,
|
|
743
743
|
{
|
|
@@ -757,6 +757,9 @@ var ModelElement = (props) => {
|
|
|
757
757
|
margin: "-10px"
|
|
758
758
|
}
|
|
759
759
|
},
|
|
760
|
+
modalContent.map((eachField) => {
|
|
761
|
+
console.log("eachField", eachField);
|
|
762
|
+
}),
|
|
760
763
|
columns.map((eachColumn) => {
|
|
761
764
|
if (!["index", "View"].includes(eachColumn.key) && eachColumn?.["is_detail"] !== false) {
|
|
762
765
|
return /* @__PURE__ */ React20.createElement("p", { style: { fontWeight: "500", padding: "10px" } }, /* @__PURE__ */ React20.createElement(
|
|
@@ -1055,13 +1058,21 @@ var DropDownGroup = (props) => {
|
|
|
1055
1058
|
return newValue;
|
|
1056
1059
|
});
|
|
1057
1060
|
};
|
|
1061
|
+
const firstFilterOptions = (input, option) => {
|
|
1062
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1063
|
+
};
|
|
1064
|
+
const secondFilterOptions = (input, option) => {
|
|
1065
|
+
return (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
1066
|
+
};
|
|
1058
1067
|
return /* @__PURE__ */ React26.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React26.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React26.createElement("div", { className: props.subContainerClassName }, /* @__PURE__ */ React26.createElement(
|
|
1059
1068
|
Select4,
|
|
1060
1069
|
{
|
|
1061
1070
|
onChange: handleFirstChange,
|
|
1062
1071
|
variant: props.variant,
|
|
1063
1072
|
options: props.firstOptions,
|
|
1064
|
-
className: props.className
|
|
1073
|
+
className: props.className,
|
|
1074
|
+
filterOption: firstFilterOptions,
|
|
1075
|
+
showSearch: true
|
|
1065
1076
|
}
|
|
1066
1077
|
), /* @__PURE__ */ React26.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React26.createElement(
|
|
1067
1078
|
Select4,
|
|
@@ -1069,7 +1080,9 @@ var DropDownGroup = (props) => {
|
|
|
1069
1080
|
onChange: handleSecondChange,
|
|
1070
1081
|
variant: props.variant,
|
|
1071
1082
|
options: props.secondOptions,
|
|
1072
|
-
className: props.className
|
|
1083
|
+
className: props.className,
|
|
1084
|
+
filterOption: secondFilterOptions,
|
|
1085
|
+
showSearch: true
|
|
1073
1086
|
}
|
|
1074
1087
|
)));
|
|
1075
1088
|
};
|