jamespot-front-business 1.1.97 → 1.1.99

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/esm.js CHANGED
@@ -3122,7 +3122,6 @@ const widgetLuccaAbsenceDefinition = {
3122
3122
  name: WidgetsName.LuccaAbsence,
3123
3123
  img: '/img/fast-intranet/widget-lucca-absence.png',
3124
3124
  available: true,
3125
- displayLevel: [1, 2, 3],
3126
3125
  panel: {
3127
3126
  useWrapper: true,
3128
3127
  useEditor: true,
@@ -4352,7 +4351,7 @@ function fieldType(fieldType) {
4352
4351
  return fieldType;
4353
4352
  }
4354
4353
  function getAttrNameFormItem(field, fieldId) {
4355
- return (AppColumnsDefaultTypes.includes(field.type) ? fieldType(field.type) : uuid2Alpha(fieldId)).toLowerCase();
4354
+ return AppColumnsDefaultTypes.includes(field.type) ? fieldType(field.type) : uuid2Alpha(fieldId).toLowerCase();
4356
4355
  }
4357
4356
  function renderAudience(audience, installFor) {
4358
4357
  if (audience === AUDIENCE.ALL)
@@ -4395,7 +4394,7 @@ function formItem2xml(field) {
4395
4394
  sqlname="${renderSqlName(field.type, field.id)}"
4396
4395
  ${field.properties && renderProperty(field.properties, AppFieldFormPropertyTypes.LABEL)}
4397
4396
  ${field.properties && renderProperty(field.properties, AppFieldFormPropertyTypes.DESCRIPTION)}
4398
- mandatory="${field.mandatory}"
4397
+ mandatory="${field.type === AppFormItemTypes.TOGGLE ? 'false' : field.mandatory}"
4399
4398
  solr.type="${renderSolrType(field.type)}"
4400
4399
  solr.used="true"
4401
4400
  solr.indexed="true"