@steedos-widgets/amis-lib 6.10.17 → 6.10.18

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.esm.js CHANGED
@@ -6101,13 +6101,13 @@ function getCalendarRecordSaveApi(object, calendarOptions) {
6101
6101
  formData[calendarOptions.allDayExpr] = "${event.data.event.allDay}";
6102
6102
  // formData[calendarOptions.textExpr] = "${event.data.event.title}";
6103
6103
  const apiData = {
6104
- objectName: "${objectName}",
6104
+ objectName: object.name,
6105
6105
  $: formData,
6106
6106
  $self: "$$"
6107
6107
  };
6108
6108
  const saveDataTpl = `
6109
6109
  const formData = api.data.$;
6110
- const objectName = api.data.objectName;
6110
+ const objectName = ${object.name}};
6111
6111
  let query = \`mutation{record: \${objectName}__update(id: "\${formData.${idFieldName}}", doc: {__saveData}){${idFieldName}}}\`;
6112
6112
  delete formData.${idFieldName};
6113
6113
  let __saveData = JSON.stringify(JSON.stringify(formData));
@@ -6234,7 +6234,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
6234
6234
  "body": [
6235
6235
  {
6236
6236
  "type": "steedos-object-form",
6237
- "objectApiName": "\${objectName}",
6237
+ "objectApiName": "${objectSchema.name}",
6238
6238
  "mode": "edit",
6239
6239
  "defaultData": doc,
6240
6240
  //改回为通用的提交事件
@@ -6433,14 +6433,14 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
6433
6433
  }
6434
6434
  ]
6435
6435
  },
6436
- "getRef": {
6436
+ "setCalendarApi": {
6437
6437
  "weight": 0,
6438
6438
  "actions": [
6439
6439
  {
6440
6440
  "componentId": `service_${options.id}`,
6441
6441
  "args": {
6442
6442
  "value":{
6443
- "calendarRef": "${event.data.calendarRef}"
6443
+ "calendarApi": "${event.data.calendarApi}"
6444
6444
  }
6445
6445
  },
6446
6446
  "actionType": "setValue",
@@ -20799,7 +20799,7 @@ const getFormWizardView = async (instance) => {
20799
20799
  const getApplicantTableView = async (instance) => {
20800
20800
  let applicantInput = null;
20801
20801
  if(instance.state === 'draft'){
20802
- applicantInput = Object.assign({name: "applicant", value: getSteedosAuth$1().userId, disabled: instance.box !== 'draft'}, await lookupToAmis$1(
20802
+ applicantInput = Object.assign({name: "applicant", value: instance.applicant || getSteedosAuth$1().userId, disabled: instance.box !== 'draft'}, await lookupToAmis$1(
20803
20803
  {
20804
20804
  name: "applicant",
20805
20805
  label: false,