[ACS-5041] update license headers to reflect hyland copyright guidelines (#8472)

* ACS-5041 Changed json to js

* ACS-5041 Corrected paths

* ACS-5041 Changed json to js

* ACS-5041 Updated eslintrc

* ACS-5041 Small correction

* ACS-5041 Small correction

* ACS-5041 Updated license headers

* ACS-5041 Updated license headers

* ACS-5041 Replaced references to alfresco

* ACS-5041 Added Hyland to known words

* ACS-5041 Fixed coverage issue

* ACS-5041 Fixed duplication issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed duplications issue

* ACS-5041 Fixed test

* ACS-5041 Fixed test

* ACS-5041 Reverted one change

* ACS-5041 Added missing license to files after rebase
This commit is contained in:
AleksanderSklorz
2023-04-20 09:34:03 +02:00
committed by GitHub
parent aa9edeff54
commit 98c0a3c7be
2645 changed files with 4595 additions and 4676 deletions

View File

@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,545 +15,91 @@
* limitations under the License.
*/
export const tabFieldValueVisibilityJson = {
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
description: '',
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: '71da814d-5580-4f1f-972a-8089253aeded',
title: 'tabBasicFieldValue',
visibilityCondition: {
leftType: 'field',
leftValue: 'TextOne',
operator: '==',
rightValue: 'showTab',
rightType: 'value',
nextConditionOperator: '',
nextCondition: null
}
},
{
id: '442eea0b-65f9-484e-b37f-f5a91d5e1f21',
title: 'tabWithFields',
visibilityCondition: null
}
],
fields: [
{
id: 'dcde7e13-2444-48bc-ab30-32902cea549e',
name: 'Label',
type: 'container',
tab: '71da814d-5580-4f1f-972a-8089253aeded',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextTwo',
name: 'TextTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
},
{
id: 'df452297-d0e8-4406-b9d3-10842033549d',
name: 'Label',
type: 'container',
tab: '442eea0b-65f9-484e-b37f-f5a91d5e1f21',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
}
],
outcomes: [],
metadata: {},
variables: []
}
const createField = (id = 'TextTwo', name = 'TextTwo') => ({
id,
name,
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
};
});
export const tabVarValueVisibilityJson = {
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
description: '',
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: '71da814d-5580-4f1f-972a-8089253aeded',
title: 'tabBasicVarValue',
visibilityCondition: {
leftType: 'variable',
leftValue: 'stringVar',
operator: '==',
rightValue: 'showTab',
rightType: 'value',
nextConditionOperator: ''
}
}
],
fields: [
{
id: 'dcde7e13-2444-48bc-ab30-32902cea549e',
name: 'Label',
type: 'container',
tab: '71da814d-5580-4f1f-972a-8089253aeded',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextTwo',
name: 'TextTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
}
],
outcomes: [],
metadata: {},
variables: [
{
id: "803269e6-a568-40e2-aec3-75ad2f411688",
name: "stringVar",
type: "string",
value: "showTab"
}
]
}
}
};
const createFieldDefinition = (id = 'dcde7e13-2444-48bc-ab30-32902cea549e', tabName = '71da814d-5580-4f1f-972a-8089253aeded', fields = {
1: [createField()],
2: []
}) => ({
id,
name: 'Label',
type: 'container',
tab: tabName,
numberOfColumns: 2,
fields
});
export const tabVarFieldVisibilityJson = {
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
description: '',
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: '71da814d-5580-4f1f-972a-8089253aeded',
title: 'tabBasicVarField',
visibilityCondition: {
leftType: 'variable',
leftValue: 'stringVar',
operator: '==',
rightValue: 'TextOne',
rightType: 'field',
nextConditionOperator: ''
}
},
{
id: '0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1',
title: 'tabWithFields',
visibilityCondition: null
}
],
fields: [
{
id: 'dcde7e13-2444-48bc-ab30-32902cea549e',
name: 'Label',
type: 'container',
tab: '71da814d-5580-4f1f-972a-8089253aeded',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextTwo',
name: 'TextTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
},
{
id: '1308e433-08ce-4448-a62a-0accc1187d15',
name: 'Label',
type: 'container',
tab: '0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
}
],
outcomes: [],
metadata: {},
variables: [
{
id: "803269e6-a568-40e2-aec3-75ad2f411688",
name: "stringVar",
type: "string",
value: "showTab"
}
]
}
}
};
const fieldDefinition1 = createFieldDefinition();
const fieldDefinition2 = createFieldDefinition('1308e433-08ce-4448-a62a-0accc1187d15', '0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1', {
1: [createField('TextOne', 'TextOne')],
2: []
});
const fieldDefinition3 = createFieldDefinition('df452297-d0e8-4406-b9d3-10842033549d', '442eea0b-65f9-484e-b37f-f5a91d5e1f21', {
1: [createField('TextOne', 'TextOne')],
2: [createField('TextThree', 'TextThree')]
});
export const tabFieldFieldVisibilityJson = {
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
description: '',
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: '71da814d-5580-4f1f-972a-8089253aeded',
title: 'tabBasicFieldField',
visibilityCondition: {
leftType: 'field',
leftValue: 'TextThree',
operator: '==',
rightValue: 'TextOne',
rightType: 'field',
nextConditionOperator: ''
}
},
{
id: '442eea0b-65f9-484e-b37f-f5a91d5e1f21',
title: 'tabWithFields',
visibilityCondition: null
}
],
fields: [
{
id: 'dcde7e13-2444-48bc-ab30-32902cea549e',
name: 'Label',
type: 'container',
tab: '71da814d-5580-4f1f-972a-8089253aeded',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextTwo',
name: 'TextTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
},
{
id: 'df452297-d0e8-4406-b9d3-10842033549d',
name: 'Label',
type: 'container',
tab: '442eea0b-65f9-484e-b37f-f5a91d5e1f21',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: [
{
id: 'TextThree',
name: 'TextThree',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
]
}
}
],
outcomes: [],
metadata: {},
variables: []
}
}
};
const fieldsDefinitions1 = [fieldDefinition1, fieldDefinition2];
const fieldsDefinitions2 = [fieldDefinition1, fieldDefinition3];
export const tabFieldVarVisibilityJson = {
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
description: '',
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: '71da814d-5580-4f1f-972a-8089253aeded',
title: 'tabBasicVarField',
visibilityCondition: {
leftType: 'field',
leftValue: 'TextOne',
operator: '==',
rightValue: 'stringVar',
rightType: 'variable',
nextConditionOperator: ''
}
},
{
id: '0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1',
title: 'tabWithFields',
visibilityCondition: null
}
],
fields: [
{
id: 'dcde7e13-2444-48bc-ab30-32902cea549e',
name: 'Label',
type: 'container',
tab: '71da814d-5580-4f1f-972a-8089253aeded',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextTwo',
name: 'TextTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
},
{
id: '1308e433-08ce-4448-a62a-0accc1187d15',
name: 'Label',
type: 'container',
tab: '0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
}
],
outcomes: [],
metadata: {},
variables: [
{
id: "803269e6-a568-40e2-aec3-75ad2f411688",
name: "stringVar",
type: "string",
value: "showTab"
}
]
}
}
};
const createVisibilityCondition = (leftType = 'field', leftValue = 'TextOne', nextCondition?: any, rightValue = 'showTab', rightType = 'value', operator = '==') => ({
leftType,
leftValue,
operator,
rightValue,
rightType,
nextConditionOperator: nextCondition ? 'and' : '',
nextCondition
});
export const tabVarVarVisibilityJson = {
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
description: '',
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: 'ef512cb3-0c41-4d12-84ef-a7ef8f0b111a',
title: 'tabBasicVarVar',
visibilityCondition: {
leftType: 'variable',
leftValue: 'showTabOne',
operator: '==',
rightValue: 'showTabTwo',
rightType: 'variable',
nextConditionOperator: ''
}
}
],
fields: [
{
id: '6eeb9e54-e51d-44f3-9557-503308f07361',
name: 'Label',
type: 'container',
tab: 'ef512cb3-0c41-4d12-84ef-a7ef8f0b111a',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
}
],
outcomes: [],
metadata: {},
variables: [
{
id: "b116df99-f6b5-45f8-b48c-15b74f7f1c92",
name: "showTabOne",
type: "string",
value: "showTab"
},
{
id: "6e3e88ab-848c-4f48-8326-a404d1427f60",
name: "showTabTwo",
type: "string",
value: "showTab"
}
]
}
}
};
const createTab = (id = '71da814d-5580-4f1f-972a-8089253aeded', title = 'tabBasicFieldValue', visibilityCondition = createVisibilityCondition('field', 'TextOne', null)) => ({
id,
title,
visibilityCondition
});
export const tabNextOperatorsVisibilityJson = {
const createTabVisibilityJson = (tabs = [
createTab(),
createTab('442eea0b-65f9-484e-b37f-f5a91d5e1f21', 'tabWithFields', null)
], fields = [
createFieldDefinition(),
createFieldDefinition('df452297-d0e8-4406-b9d3-10842033549d', '442eea0b-65f9-484e-b37f-f5a91d5e1f21', {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
})
], variables = []) => ({
formRepresentation: {
id: 'form-3aff57d3-62af-4adf-9b14-1d8f44a28077',
name: 'tabvisibility',
@@ -561,112 +107,100 @@ export const tabNextOperatorsVisibilityJson = {
version: 0,
standalone: true,
formDefinition: {
tabs: [
{
id: '71da814d-5580-4f1f-972a-8089253aeded',
title: 'tabNextOperators',
visibilityCondition: {
leftType: 'field',
leftValue: 'TextOne',
operator: '==',
rightValue: 'showTab',
rightType: 'value',
nextConditionOperator: 'and',
nextCondition: {
leftType: 'field',
leftValue: 'TextThree',
operator: '!=',
rightValue: 'showTab',
rightType: 'value',
nextConditionOperator: '',
nextCondition: null
}
}
},
{
id: '442eea0b-65f9-484e-b37f-f5a91d5e1f21',
title: 'tabWithFields',
visibilityCondition: null
}
],
fields: [
{
id: 'dcde7e13-2444-48bc-ab30-32902cea549e',
name: 'Label',
type: 'container',
tab: '71da814d-5580-4f1f-972a-8089253aeded',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextTwo',
name: 'TextTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: []
}
},
{
id: 'df452297-d0e8-4406-b9d3-10842033549d',
name: 'Label',
type: 'container',
tab: '442eea0b-65f9-484e-b37f-f5a91d5e1f21',
numberOfColumns: 2,
fields: {
1: [
{
id: 'TextOne',
name: 'TextOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
2: [
{
id: 'TextThree',
name: 'TextThree',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
]
}
}
],
tabs,
fields,
outcomes: [],
metadata: {},
variables: []
variables
}
}
};
});
export const tabFieldValueVisibilityJson = createTabVisibilityJson();
export const tabVarValueVisibilityJson = createTabVisibilityJson([
createTab('71da814d-5580-4f1f-972a-8089253aeded', 'tabBasicVarValue', createVisibilityCondition('variable', 'stringVar'))
], [fieldDefinition1], [
{
id: '803269e6-a568-40e2-aec3-75ad2f411688',
name: 'stringVar',
type: 'string',
value: 'showTab'
}
]);
export const tabVarFieldVisibilityJson = createTabVisibilityJson([
createTab(
'71da814d-5580-4f1f-972a-8089253aeded',
'tabBasicVarField',
createVisibilityCondition('variable', 'stringVar', undefined, 'TextOne', 'field')
),
createTab('0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1', 'tabWithFields', null)
], fieldsDefinitions1, [
{
id: '803269e6-a568-40e2-aec3-75ad2f411688',
name: 'stringVar',
type: 'string',
value: 'showTab'
}
]);
export const tabFieldFieldVisibilityJson = createTabVisibilityJson([
createTab(
'71da814d-5580-4f1f-972a-8089253aeded',
'tabBasicFieldField',
createVisibilityCondition('field', 'TextThree', undefined, 'TextOne', 'field')
),
createTab('442eea0b-65f9-484e-b37f-f5a91d5e1f21', 'tabWithFields', null)
], fieldsDefinitions2);
export const tabFieldVarVisibilityJson = createTabVisibilityJson([
createTab(
'71da814d-5580-4f1f-972a-8089253aeded',
'tabBasicVarField',
createVisibilityCondition('field', 'TextOne', undefined, 'stringVar', 'variable')
),
createTab('0e538a28-f8d6-4cb8-ae93-dbfb2efdf3b1', 'tabWithFields', null)
], fieldsDefinitions1, [
{
id: '803269e6-a568-40e2-aec3-75ad2f411688',
name: 'stringVar',
type: 'string',
value: 'showTab'
}
]);
export const tabVarVarVisibilityJson = createTabVisibilityJson([
createTab(
'ef512cb3-0c41-4d12-84ef-a7ef8f0b111a',
'tabBasicVarVar',
createVisibilityCondition('variable', 'showTabOne', undefined, 'showTabTwo', 'variable')
)
], [
createFieldDefinition('6eeb9e54-e51d-44f3-9557-503308f07361', 'ef512cb3-0c41-4d12-84ef-a7ef8f0b111a', {
1: [createField('TextOne', 'TextOne')],
2: []
})
], [
{
id: 'b116df99-f6b5-45f8-b48c-15b74f7f1c92',
name: 'showTabOne',
type: 'string',
value: 'showTab'
},
{
id: '6e3e88ab-848c-4f48-8326-a404d1427f60',
name: 'showTabTwo',
type: 'string',
value: 'showTab'
}
]);
export const tabNextOperatorsVisibilityJson = createTabVisibilityJson([
createTab(
'71da814d-5580-4f1f-972a-8089253aeded',
'tabNextOperators',
createVisibilityCondition('field', 'TextOne', createVisibilityCondition('field', 'TextThree', null, 'showTab', 'value', '!='))
),
createTab('442eea0b-65f9-484e-b37f-f5a91d5e1f21', 'tabWithFields', null)
], fieldsDefinitions2);