some big beautfiul update

This commit is contained in:
2026-03-02 18:05:59 +01:00
parent bf7eaa965f
commit ba986a32fe
121 changed files with 170698 additions and 561 deletions

View File

@@ -0,0 +1,5 @@
{
"labels": {
"Create ApiUser": "Create API User"
}
}

View File

@@ -0,0 +1,25 @@
[
{
"rows": [
[
{"name": "type"},
{"name": "name"}
],
[
{"name": "dateStart"},
{"name": "dateEnd"}
],
[
{"name": "timeRanges"},
false
],
[
{"name": "calendars"},
{"name": "users"}
],
[
{"name": "description"}
]
]
}
]

View File

@@ -0,0 +1,25 @@
[
{
"rows": [
[
{"name": "type"},
{"name": "name"}
],
[
{"name": "dateStart"},
{"name": "dateEnd"}
],
[
{"name": "timeRanges"},
false
],
[
{"name": "calendars"},
{"name": "users"}
],
[
{"name": "description"}
]
]
}
]

View File

@@ -0,0 +1,18 @@
{
"platforms": {
"Mysql": {
"queryComposerClassName": "Espo\\ORM\\QueryComposer\\MysqlQueryComposer",
"pdoFactoryClassName": "Espo\\ORM\\PDO\\MysqlPDOFactory",
"functionConverterClassNameMap": {
"ABS": "Espo\\Core\\ORM\\QueryComposer\\Part\\FunctionConverters\\Abs"
}
},
"Postgresql": {
"queryComposerClassName": "Espo\\ORM\\QueryComposer\\PostgresqlQueryComposer",
"pdoFactoryClassName": "Espo\\ORM\\PDO\\PostgresqlPDOFactory",
"functionConverterClassNameMap": {
"ABS": "Espo\\Core\\ORM\\QueryComposer\\Part\\FunctionConverters\\Abs"
}
}
}
}

View File

@@ -0,0 +1,34 @@
{
"controller": "controllers/api-user",
"views": {
"detail": "views/user/detail",
"list": "views/api-user/list"
},
"recordViews": {
"list": "views/user/record/list",
"detail": "views/user/record/detail",
"edit":"views/user/record/edit",
"detailSmall":"views/user/record/detail-quick",
"editSmall":"views/user/record/edit-quick"
},
"defaultSidePanelFieldLists": {
"detail": [
"avatar",
"createdAt",
"lastAccess"
],
"detailSmall": [
"avatar",
"createdAt"
],
"edit": [
"avatar"
],
"editSmall": [
"avatar"
]
},
"filterList": [
],
"boolFilterList": []
}

View File

@@ -0,0 +1,84 @@
{
"fields": {
"record": {
"type": "link",
"required": true,
"readOnlyAfterCreate": true,
"validatorClassNameList": [
"Espo\\Classes\\FieldValidators\\CurrencyRecordRate\\Record\\NonBase"
]
},
"baseCode": {
"type": "varchar",
"readOnly": true,
"maxLength": 3
},
"date": {
"type": "date",
"required": true,
"readOnlyAfterCreate": true,
"default": "javascript: return this.dateTime.getToday();"
},
"rate": {
"type": "decimal",
"decimalPlaces": 6,
"min": 0.0001,
"precision": 15,
"scale": 8,
"required": true,
"audited": true,
"view": "views/currency-record-rate/fields/rate"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user",
"fieldManagerParamList": []
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user",
"fieldManagerParamList": []
}
},
"links": {
"record": {
"type": "belongsTo",
"entity": "CurrencyRecord",
"foreignName": "code"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"indexes": {
"recordIdBaseCodeDate": {
"type": "unique",
"columns": [
"recordId",
"baseCode",
"date",
"deleteId"
]
}
},
"deleteId": true,
"collection": {
"orderBy": "date",
"order": "desc"
}
}

View File

@@ -0,0 +1,153 @@
{
"fields": {
"name": {
"type": "varchar",
"required": true,
"pattern": "$noBadCharacters"
},
"body": {
"type": "wysiwyg",
"view": "views/template/fields/body"
},
"header": {
"type": "wysiwyg",
"view": "views/template/fields/body"
},
"footer": {
"type": "wysiwyg",
"view": "views/template/fields/body",
"tooltip": true
},
"entityType": {
"type": "enum",
"required": true,
"translation": "Global.scopeNames",
"view": "views/template/fields/entity-type"
},
"status": {
"type": "enum",
"options": [
"Active",
"Inactive"
],
"default": "Active",
"style": {
"Inactive": "info"
},
"maxLength": 8
},
"leftMargin": {
"type": "float",
"default": 10
},
"rightMargin": {
"type": "float",
"default": 10
},
"topMargin": {
"type": "float",
"default": 10
},
"bottomMargin": {
"type": "float",
"default": 20
},
"printFooter": {
"type": "bool",
"inlineEditDisabled": true
},
"printHeader": {
"type": "bool",
"inlineEditDisabled": true
},
"footerPosition": {
"type": "float",
"default": 10
},
"headerPosition": {
"type": "float",
"default": 0
},
"style": {
"type": "text",
"view": "views/template/fields/style"
},
"teams": {
"type": "linkMultiple"
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
},
"variables": {
"type": "base",
"notStorable": true,
"tooltip": true
},
"pageOrientation": {
"type": "enum",
"options": ["Portrait", "Landscape"],
"default": "Portrait"
},
"pageFormat": {
"type": "enum",
"options": ["A3", "A4", "A5", "A6", "A7", "Custom"],
"default": "A4"
},
"pageWidth": {
"type": "float",
"min": 1
},
"pageHeight": {
"type": "float",
"min": 1
},
"fontFace": {
"type": "enum",
"view": "views/template/fields/font-face"
},
"title": {
"type": "varchar"
},
"filename": {
"type": "varchar",
"maxLength": 150,
"tooltip": true
}
},
"links": {
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"collection": {
"orderBy": "name",
"order": "asc"
},
"optimisticConcurrencyControl": true
}

View File

@@ -0,0 +1,93 @@
{
"fields": {
"timeRanges": {
"type": "jsonArray",
"default": null,
"view": "views/working-time-calendar/fields/time-ranges"
},
"dateStart": {
"type": "date",
"required": true
},
"dateEnd": {
"type": "date",
"required": true,
"view": "views/working-time-range/fields/date-end",
"after": "dateStart",
"afterOrEqual": true
},
"type": {
"type": "enum",
"options": [
"Non-working",
"Working"
],
"default": "Non-working",
"index": true,
"maxLength": 11
},
"name": {
"type": "varchar"
},
"description": {
"type": "text"
},
"calendars": {
"type": "linkMultiple",
"tooltip": true
},
"users": {
"type": "linkMultiple",
"view": "views/working-time-range/fields/users",
"tooltip": true
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
}
},
"links": {
"calendars": {
"type": "hasMany",
"foreign": "ranges",
"entity": "WorkingTimeCalendar"
},
"users": {
"type": "hasMany",
"foreign": "workingTimeRanges",
"entity": "User"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"collection": {
"orderBy": "dateStart",
"order": "desc"
},
"indexes": {
"typeRange": {
"columns": ["type", "dateStart", "dateEnd"]
},
"type": {
"columns": ["type"]
}
}
}

View File

@@ -0,0 +1,38 @@
{
"fields": {
"timeRanges": {
"visible": {
"conditionGroup": [
{
"type": "equals",
"attribute": "type",
"value": "Working"
}
]
}
},
"users": {
"visible": {
"conditionGroup": [
{
"type": "or",
"value": [
{
"type": "isNotEmpty",
"attribute": "id"
},
{
"type": "isNotEmpty",
"attribute": "usersIds"
},
{
"type": "isEmpty",
"attribute": "calendarsIds"
}
]
}
]
}
}
}
}