datastake-daf 0.6.508 → 0.6.510
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/components/index.js +68 -0
- package/dist/layouts/index.js +9 -16
- package/package.json +1 -1
- package/src/@daf/core/components/DynamicForm/helper.js +4 -0
- package/src/@daf/core/components/EditForm/components/ajaxSelect.js +4 -0
- package/src/@daf/layouts/AppLayout/components/Sidenav/index.js +8 -15
package/dist/components/index.js
CHANGED
|
@@ -36687,6 +36687,42 @@ function AjaxSelectMain(_ref) {
|
|
|
36687
36687
|
getAppHeader,
|
|
36688
36688
|
getApiBaseUrl
|
|
36689
36689
|
} = _ref;
|
|
36690
|
+
console.log("AJAX SELECT MAIN");
|
|
36691
|
+
console.log({
|
|
36692
|
+
preSelected,
|
|
36693
|
+
props,
|
|
36694
|
+
size,
|
|
36695
|
+
input,
|
|
36696
|
+
groupFormId,
|
|
36697
|
+
formsValue,
|
|
36698
|
+
call,
|
|
36699
|
+
value,
|
|
36700
|
+
repeatIndex,
|
|
36701
|
+
changeInputMeta,
|
|
36702
|
+
repeatValues,
|
|
36703
|
+
mainForm,
|
|
36704
|
+
onNewSetValue,
|
|
36705
|
+
inputMeta,
|
|
36706
|
+
className,
|
|
36707
|
+
multiple,
|
|
36708
|
+
setFormValues,
|
|
36709
|
+
updateOptions,
|
|
36710
|
+
unique,
|
|
36711
|
+
meta,
|
|
36712
|
+
name,
|
|
36713
|
+
inputName,
|
|
36714
|
+
getFromLinking,
|
|
36715
|
+
allowClear,
|
|
36716
|
+
onChange,
|
|
36717
|
+
onOptions,
|
|
36718
|
+
changeAjaxOptions,
|
|
36719
|
+
app,
|
|
36720
|
+
t,
|
|
36721
|
+
user,
|
|
36722
|
+
getAppHeader,
|
|
36723
|
+
getApiBaseUrl
|
|
36724
|
+
});
|
|
36725
|
+
console.log("AJAX SELECT MAIN END");
|
|
36690
36726
|
const inst = /*#__PURE__*/React.createRef();
|
|
36691
36727
|
const [modelValue, setModelValue] = React.useState(value ? value : multiple ? [] : null);
|
|
36692
36728
|
const [model, setModel] = React.useState([]);
|
|
@@ -37286,6 +37322,9 @@ function AjaxSelect(props) {
|
|
|
37286
37322
|
getAppHeader,
|
|
37287
37323
|
getApiBaseUrl
|
|
37288
37324
|
} = useEditContext();
|
|
37325
|
+
console.log({
|
|
37326
|
+
props
|
|
37327
|
+
});
|
|
37289
37328
|
return /*#__PURE__*/jsxRuntime.jsx(AjaxSelectMain, _objectSpread2({
|
|
37290
37329
|
changeAjaxOptions: changeAjaxOptions,
|
|
37291
37330
|
app: app,
|
|
@@ -38562,6 +38601,35 @@ const inputTypeComponent = {
|
|
|
38562
38601
|
meta,
|
|
38563
38602
|
setFormValues
|
|
38564
38603
|
}) => {
|
|
38604
|
+
console.log("AJAX SELECT");
|
|
38605
|
+
console.log({
|
|
38606
|
+
call,
|
|
38607
|
+
automaticallyLink,
|
|
38608
|
+
name,
|
|
38609
|
+
inputName,
|
|
38610
|
+
props,
|
|
38611
|
+
formsValue,
|
|
38612
|
+
onNewSetValue,
|
|
38613
|
+
multiple,
|
|
38614
|
+
updateOptions,
|
|
38615
|
+
repeatValues,
|
|
38616
|
+
repeatIndex,
|
|
38617
|
+
value,
|
|
38618
|
+
unique,
|
|
38619
|
+
address,
|
|
38620
|
+
addressData,
|
|
38621
|
+
input
|
|
38622
|
+
});
|
|
38623
|
+
console.log({
|
|
38624
|
+
form,
|
|
38625
|
+
forms,
|
|
38626
|
+
setAddress,
|
|
38627
|
+
changeInputMeta,
|
|
38628
|
+
inputMeta,
|
|
38629
|
+
meta,
|
|
38630
|
+
setFormValues
|
|
38631
|
+
});
|
|
38632
|
+
console.log("AJAX SELECT END");
|
|
38565
38633
|
return /*#__PURE__*/jsxRuntime.jsx(AjaxSelect, {
|
|
38566
38634
|
preSelected: preSelected,
|
|
38567
38635
|
input: input,
|
package/dist/layouts/index.js
CHANGED
|
@@ -5241,16 +5241,10 @@ const Sidenav = ({
|
|
|
5241
5241
|
const checkOnClick = ({
|
|
5242
5242
|
event
|
|
5243
5243
|
}) => {
|
|
5244
|
-
console.log("
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
onYes: event
|
|
5249
|
-
});
|
|
5250
|
-
} else if (typeof event === 'function') {
|
|
5251
|
-
console.log("Event", event);
|
|
5252
|
-
event();
|
|
5253
|
-
}
|
|
5244
|
+
console.log("Check on click", event);
|
|
5245
|
+
changeNotificationState({
|
|
5246
|
+
onYes: event
|
|
5247
|
+
});
|
|
5254
5248
|
};
|
|
5255
5249
|
const {
|
|
5256
5250
|
hoverContent,
|
|
@@ -5317,12 +5311,11 @@ const Sidenav = ({
|
|
|
5317
5311
|
children: [renderModule({
|
|
5318
5312
|
module: userModule,
|
|
5319
5313
|
isCollapsed,
|
|
5320
|
-
onClick: () => {
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
},
|
|
5314
|
+
onClick: () => checkOnClick({
|
|
5315
|
+
event: () => {
|
|
5316
|
+
goTo(getRedirectLink(`/app`));
|
|
5317
|
+
}
|
|
5318
|
+
}),
|
|
5326
5319
|
mod,
|
|
5327
5320
|
user,
|
|
5328
5321
|
userHelpers
|
package/package.json
CHANGED
|
@@ -1422,6 +1422,10 @@ export const inputTypeComponent = {
|
|
|
1422
1422
|
},
|
|
1423
1423
|
{ form, forms, setAddress, changeInputMeta, inputMeta = {}, meta, setFormValues },
|
|
1424
1424
|
) => {
|
|
1425
|
+
console.log("AJAX SELECT")
|
|
1426
|
+
console.log({call, automaticallyLink, name, inputName, props, formsValue, onNewSetValue, multiple, updateOptions, repeatValues, repeatIndex, value, unique, address, addressData, input})
|
|
1427
|
+
console.log({form, forms, setAddress, changeInputMeta, inputMeta, meta, setFormValues})
|
|
1428
|
+
console.log("AJAX SELECT END")
|
|
1425
1429
|
return (
|
|
1426
1430
|
<AjaxSelect
|
|
1427
1431
|
preSelected={preSelected}
|
|
@@ -50,6 +50,9 @@ export function AjaxSelectMain({
|
|
|
50
50
|
getAppHeader,
|
|
51
51
|
getApiBaseUrl,
|
|
52
52
|
}) {
|
|
53
|
+
console.log("AJAX SELECT MAIN")
|
|
54
|
+
console.log({preSelected, props, size, input, groupFormId, formsValue, call, value, repeatIndex, changeInputMeta, repeatValues, mainForm, onNewSetValue, inputMeta, className, multiple, setFormValues, updateOptions, unique, meta, name, inputName, getFromLinking, allowClear, onChange, onOptions, changeAjaxOptions, app, t, user, getAppHeader, getApiBaseUrl})
|
|
55
|
+
console.log("AJAX SELECT MAIN END")
|
|
53
56
|
const inst = createRef();
|
|
54
57
|
const [modelValue, setModelValue] = useState(value ? value : multiple ? [] : null);
|
|
55
58
|
const [model, setModel] = useState([]);
|
|
@@ -739,6 +742,7 @@ export function AjaxSelectMain({
|
|
|
739
742
|
|
|
740
743
|
function AjaxSelect(props) {
|
|
741
744
|
const { changeAjaxOptions, app, t, user, getAppHeader, getApiBaseUrl } = useEditContext();
|
|
745
|
+
console.log({props})
|
|
742
746
|
|
|
743
747
|
return (
|
|
744
748
|
<AjaxSelectMain
|
|
@@ -163,15 +163,9 @@ const Sidenav = ({
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
const checkOnClick = ({ event }) => {
|
|
166
|
-
console.log("
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
changeNotificationState({ onYes: event });
|
|
170
|
-
} else if (typeof event === 'function') {
|
|
171
|
-
console.log("Event", event);
|
|
172
|
-
event();
|
|
173
|
-
}
|
|
174
|
-
};
|
|
166
|
+
console.log("Check on click", event);
|
|
167
|
+
changeNotificationState({ onYes: event });
|
|
168
|
+
}
|
|
175
169
|
|
|
176
170
|
const { hoverContent, hoverContentSecond } = useMenu({
|
|
177
171
|
checkOnClick,
|
|
@@ -247,12 +241,11 @@ const Sidenav = ({
|
|
|
247
241
|
{renderModule({
|
|
248
242
|
module: userModule,
|
|
249
243
|
isCollapsed,
|
|
250
|
-
onClick: () => {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
},
|
|
244
|
+
onClick: () => checkOnClick({
|
|
245
|
+
event: () => {
|
|
246
|
+
goTo(getRedirectLink(`/app`));
|
|
247
|
+
}
|
|
248
|
+
}),
|
|
256
249
|
mod,
|
|
257
250
|
user,
|
|
258
251
|
userHelpers
|