diff --git a/demo-shell/src/app/app.module.ts b/demo-shell/src/app/app.module.ts
index ccee4a7b71..48392952ec 100644
--- a/demo-shell/src/app/app.module.ts
+++ b/demo-shell/src/app/app.module.ts
@@ -22,7 +22,7 @@ import { NgChartsModule } from 'ng2-charts';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';
import { TranslateModule } from '@ngx-translate/core';
-import { AppConfigService, DebugAppConfigService, CoreModule, CoreAutomationService, AuthModule, provideTranslations } from '@alfresco/adf-core';
+import { AppConfigService, DebugAppConfigService, CoreModule, AuthModule, provideTranslations } from '@alfresco/adf-core';
import { ExtensionsModule } from '@alfresco/adf-extensions';
import { AppComponent } from './app.component';
import { MaterialModule } from './material.module';
@@ -69,6 +69,7 @@ import { UserInfoComponent } from './components/app-layout/user-info/user-info.c
import { FolderDirectiveModule } from './folder-directive';
import { ContentUserInfoModule } from './components/app-layout/user-info/content-user-info';
import { PROCESS_USER_INFO_DIRECTIVES } from './components/app-layout/user-info/process-user-info';
+import { CoreAutomationService } from '../testing/automation.service';
@NgModule({
imports: [
diff --git a/demo-shell/src/app/components/app-layout/cloud/form-demo/cloud-form-demo.component.ts b/demo-shell/src/app/components/app-layout/cloud/form-demo/cloud-form-demo.component.ts
index b683cb5bf0..2eafc3a48b 100644
--- a/demo-shell/src/app/components/app-layout/cloud/form-demo/cloud-form-demo.component.ts
+++ b/demo-shell/src/app/components/app-layout/cloud/form-demo/cloud-form-demo.component.ts
@@ -16,32 +16,18 @@
*/
import { Component, OnDestroy, OnInit } from '@angular/core';
-import {
- CoreAutomationService,
- FormFieldModel,
- FormModel,
- FormRenderingService,
- NotificationService
-} from '@alfresco/adf-core';
-import {
- CloudFormRenderingService,
- FormCloudService
-} from '@alfresco/adf-process-services-cloud';
+import { FormFieldModel, FormModel, FormRenderingService, NotificationService } from '@alfresco/adf-core';
+import { CloudFormRenderingService, FormCloudService } from '@alfresco/adf-process-services-cloud';
import { Subscription } from 'rxjs';
-import {
- CustomEditorComponent,
- CustomWidgetComponent
-} from '../../../cloud/custom-form-components/custom-editor.component';
+import { CustomEditorComponent, CustomWidgetComponent } from '../../../cloud/custom-form-components/custom-editor.component';
+import { CoreAutomationService } from '../../../../../testing/automation.service';
@Component({
templateUrl: './cloud-form-demo.component.html',
styleUrls: ['./cloud-form-demo.component.scss'],
- providers: [
- { provide: FormRenderingService, useClass: CloudFormRenderingService }
- ]
+ providers: [{ provide: FormRenderingService, useClass: CloudFormRenderingService }]
})
export class FormCloudDemoComponent implements OnInit, OnDestroy {
-
form: FormModel;
errorFields: FormFieldModel[] = [];
formConfig: string;
@@ -61,7 +47,8 @@ export class FormCloudDemoComponent implements OnInit, OnDestroy {
private notificationService: NotificationService,
private formService: FormCloudService,
private automationService: CoreAutomationService,
- private formRenderingService: FormRenderingService) {
+ private formRenderingService: FormRenderingService
+ ) {
this.formRenderingService.register({
'demo-widget': () => CustomEditorComponent,
'custom-editor': () => CustomEditorComponent,
diff --git a/demo-shell/src/app/components/form/form.component.ts b/demo-shell/src/app/components/form/form.component.ts
index 36e884acbe..20c4c61ecd 100644
--- a/demo-shell/src/app/components/form/form.component.ts
+++ b/demo-shell/src/app/components/form/form.component.ts
@@ -16,19 +16,12 @@
*/
import { Component, inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
-import {
- FormModel,
- FormFieldModel,
- FormService,
- FormOutcomeEvent,
- NotificationService,
- CoreAutomationService,
- FormRenderingService
-} from '@alfresco/adf-core';
+import { FormModel, FormFieldModel, FormService, FormOutcomeEvent, NotificationService, FormRenderingService } from '@alfresco/adf-core';
import { ProcessFormRenderingService } from '@alfresco/adf-process-services';
import { InMemoryFormService } from '../../services/in-memory-form.service';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
+import { CoreAutomationService } from '../../../testing/automation.service';
@Component({
selector: 'app-form',
diff --git a/lib/core/src/lib/testing/automation.service.ts b/demo-shell/src/testing/automation.service.ts
similarity index 84%
rename from lib/core/src/lib/testing/automation.service.ts
rename to demo-shell/src/testing/automation.service.ts
index 84eed354f6..b7471b2796 100644
--- a/lib/core/src/lib/testing/automation.service.ts
+++ b/demo-shell/src/testing/automation.service.ts
@@ -16,18 +16,13 @@
*/
import { Injectable } from '@angular/core';
-import { AppConfigService } from '../app-config/app-config.service';
-import { AlfrescoApiService } from '../services/alfresco-api.service';
-import { StorageService } from '../common/services/storage.service';
-import { UserPreferencesService } from '../common/services/user-preferences.service';
-import { DemoForm } from '../mock/form/demo-form.mock';
-import { AuthenticationService } from '../auth/services/authentication.service';
+import { AppConfigService, AlfrescoApiService, StorageService, UserPreferencesService, AuthenticationService } from '@alfresco/adf-core';
+import { DemoForm } from './demo-form.mock';
@Injectable({
providedIn: 'root'
})
export class CoreAutomationService {
-
public forms = new DemoForm();
constructor(
@@ -36,8 +31,7 @@ export class CoreAutomationService {
private userPreferencesService: UserPreferencesService,
private storageService: StorageService,
private auth: AuthenticationService
- ) {
- }
+ ) {}
setup() {
const adfProxy = window['adf'] || {};
diff --git a/lib/core/src/lib/mock/form/demo-form.mock.ts b/demo-shell/src/testing/demo-form.mock.ts
similarity index 100%
rename from lib/core/src/lib/mock/form/demo-form.mock.ts
rename to demo-shell/src/testing/demo-form.mock.ts
diff --git a/docs/core/pipes/localized-date.pipe.md b/docs/core/pipes/localized-date.pipe.md
index 143f852e6a..1937b3e485 100644
--- a/docs/core/pipes/localized-date.pipe.md
+++ b/docs/core/pipes/localized-date.pipe.md
@@ -4,28 +4,24 @@ Added: v3.3.0
Status: Active
---
-# [Localized Date pipe](../../../lib/core/src/lib/pipes/localized-date.pipe.ts "Defined in localized-date.pipe.ts")
+# Localized Date Pipe
Converts a date to a given format and locale.
## Basic Usage
-
-
```HTML
Created date: {{ date | adfLocalizedDate }}
```
-
-
### Properties
-| Name | Type | Default value | Description |
-| ---- | ---- | ------------- | ----------- |
-| format | string | 'medium' | A format to apply to the date value. [Date Pipe Formats.](https://angular.io/api/common/DatePipe#custom-format-options) |
-| locale | string | 'en-US' | A locale id for the locale format rules to use. |
+| Name | Type | Default value | Description |
+|--------|--------|---------------|-------------------------------------------------------------------------------------------------------------------------|
+| format | string | 'medium' | A format to apply to the date value. [Date Pipe Formats.](https://angular.io/api/common/DatePipe#custom-format-options) |
+| locale | string | 'en-US' | A locale id for the locale format rules to use. |
## Details
@@ -33,14 +29,9 @@ The pipe takes a date and formats it and localizes it so the date is displayed i
To localize the dates in your application, you will need to add the specific locale file for your region in order to use it. Read more about internationalization [here](https://angular.io/guide/i18n#i18n-pipes).
-For example, if you want add the japanese date localization in your ADF app you can add in your `app.module.ts`:
+For example, if you want to add the japanese date localization in your ADF app you can add in your `app.module.ts`:
```typescript
-import { AppConfigService, TRANSLATION_PROVIDER, DebugAppConfigService, CoreModule, CoreAutomationService } from '@alfresco/adf-core';
-
-.....
-.....
-
import { registerLocaleData } from '@angular/common';
import localeJa from '@angular/common/locales/ja';
@@ -52,17 +43,19 @@ registerLocaleData(localeJa);
You can overwrite the default values of this pipe by adding these properties to your `app.config.json`:
```json
- "dateValues": {
- "defaultDateFormat": "mediumDate",
- "defaultDateTimeFormat": "MMM d, y, H:mm",
- "defaultLocale": "en-US"
- }
+{
+ "dateValues": {
+ "defaultDateFormat": "mediumDate",
+ "defaultDateTimeFormat": "MMM d, y, H:mm",
+ "defaultLocale": "en-US"
+ }
+}
```
-| Name | Type | Description |
-| ---- | ---- | ----------- |
-| defaultDateFormat | string | The format to apply to date values |
+| Name | Type | Description |
+|-----------------------|--------|-----------------------------------------|
+| defaultDateFormat | string | The format to apply to date values |
| defaultDateTimeFormat | string | The format to apply to date-time values |
-| defaultLocale | string | The locale id to apply |
+| defaultLocale | string | The locale id to apply |
This configuration overwrites the values in the [localized date pipe](../../core/pipes/localized-date.pipe.md) as well as other components to have more consistency across your app. However, you can still overwrite these values any time by using the pipe in your code.
diff --git a/lib/content-services/src/lib/mock/search.component.mock.ts b/lib/content-services/src/lib/mock/search.component.mock.ts
index 19e2cd6bc4..c4b2a354d5 100644
--- a/lib/content-services/src/lib/mock/search.component.mock.ts
+++ b/lib/content-services/src/lib/mock/search.component.mock.ts
@@ -71,43 +71,12 @@ export const results = {
}
};
-export const folderResult = {
- list: {
- entries: [
- {
- entry: {
- id: '123',
- name: 'MyFolder',
- isFile: false,
- isFolder: true,
- createdByUser: {
- displayName: 'John Doe'
- },
- modifiedByUser: {
- displayName: 'John Doe'
- }
- }
- }
- ]
- }
-};
-
export const noResult = {
list: {
entries: []
}
};
-export const errorJson = {
- error: {
- errorKey: 'Search failed',
- statusCode: 400,
- briefSummary: '08220082 search failed',
- stackTrace: 'For security reasons the stack trace is no longer displayed, but the property is kept for previous versions.',
- descriptionURL: 'https://api-explorer.alfresco.com'
- }
-};
-
@Component({
template: `
;
}
+
@Component({
selector: 'adf-custom-column-header-component',
template: ` CUSTOM HEADER `
@@ -633,7 +632,7 @@ describe('DataTable', () => {
});
it('should initialize default adapter', () => {
- const table = new DataTableComponent(null, null, matIconRegistryMock, domSanitizerMock);
+ const table = TestBed.createComponent(DataTableComponent).componentInstance;
expect(table.data).toBeUndefined();
table.ngOnChanges({ data: new SimpleChange('123', {}, true) });
expect(table.data).toEqual(jasmine.any(ObjectDataTableAdapter));
diff --git a/lib/core/src/lib/mock/alfresco-api.mock.ts b/lib/core/src/lib/mock/alfresco-api.mock.ts
deleted file mode 100644
index 93bd3dcb97..0000000000
--- a/lib/core/src/lib/mock/alfresco-api.mock.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/*!
- * @license
- * Copyright © 2005-2024 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export class AlfrescoApiMock {
- login() {
- return Promise.resolve('TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1');
- }
-
- logout() {
- return Promise.resolve('logout');
- }
-
- changeConfig() {}
-}
diff --git a/lib/core/src/lib/mock/cloud-form.mock.ts b/lib/core/src/lib/mock/cloud-form.mock.ts
deleted file mode 100644
index 86c860a50c..0000000000
--- a/lib/core/src/lib/mock/cloud-form.mock.ts
+++ /dev/null
@@ -1,1331 +0,0 @@
-/*!
- * @license
- * Copyright © 2005-2024 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export const cloudFormMock = {
- id: 'form-b661635a-dc3e-4557-914a-3498ed47189c',
- name: 'form-with-all-fields',
- description: '',
- version: 0,
- tabs: [],
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: '26b10e64-0403-4686-a75b-0d45279ce3a8',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'text1',
- name: 'Text1',
- type: 'text',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'text2',
- name: 'Text2',
- type: 'text',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '69c1390a-8d8d-423c-8efb-8e43401efa42',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'multilinetext1',
- name: 'Multiline text1',
- type: 'multi-line-text',
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- regexPattern: null,
- required: false,
- readOnly: true,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'multilinetext2',
- name: 'Multiline text2',
- type: 'multi-line-text',
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- regexPattern: null,
- required: false,
- readOnly: true,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: 'df046463-2d65-4388-9ee1-0e1517985215',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'number1',
- overrideId: false,
- name: 'Number1',
- type: 'integer',
- colspan: 1,
- placeholder: null,
- readOnly: true,
- minValue: null,
- maxValue: null,
- required: false,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'number2',
- overrideId: false,
- name: 'Number2',
- type: 'integer',
- colspan: 1,
- placeholder: null,
- readOnly: true,
- minValue: null,
- maxValue: null,
- required: false,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '9672cc7b-1959-49c9-96be-3816e57bdfc1',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'checkbox1',
- name: 'Checkbox1',
- type: 'boolean',
- required: false,
- readOnly: true,
- colspan: 1,
- overrideId: false,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'checkbox2',
- name: 'Checkbox2',
- type: 'boolean',
- required: false,
- readOnly: true,
- colspan: 1,
- overrideId: false,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '054d193e-a899-4494-9a3e-b489315b7d57',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'dropdown1',
- name: 'Dropdown1',
- type: 'dropdown',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- optionType: 'manual',
- options: [],
- endpoint: null,
- requestHeaders: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'dropdown2',
- name: 'Dropdown2',
- type: 'dropdown',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- optionType: 'manual',
- options: [],
- endpoint: null,
- requestHeaders: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '1f8f0b66-e022-4667-91b4-bbbf2ddc36fb',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'amount1',
- name: 'Amount1',
- type: 'amount',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: '123',
- minValue: null,
- maxValue: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- enableFractions: false,
- currency: '$'
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'amount2',
- name: 'Amount2',
- type: 'amount',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: '123',
- minValue: null,
- maxValue: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- enableFractions: false,
- currency: '$'
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '541a368b-67ee-4a7c-ae7e-232c050b9e24',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'date1',
- name: 'Date1',
- type: 'date',
- overrideId: false,
- required: false,
- readOnly: true,
- colspan: 1,
- placeholder: null,
- minValue: null,
- maxValue: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: 'D-M-YYYY'
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'date2',
- name: 'Date2',
- type: 'date',
- overrideId: false,
- required: false,
- readOnly: true,
- colspan: 1,
- placeholder: null,
- minValue: null,
- maxValue: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: 'D-M-YYYY'
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: 'e79cb7e2-3dc1-4c79-8158-28662c28a9f3',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'radiobuttons1',
- name: 'Radio buttons1',
- type: 'radio-buttons',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- optionType: 'manual',
- options: [
- {
- id: 'option_1',
- name: 'Option 1'
- },
- {
- id: 'option_2',
- name: 'Option 2'
- }
- ],
- endpoint: null,
- requestHeaders: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'radiobuttons2',
- name: 'Radio buttons2',
- type: 'radio-buttons',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- optionType: 'manual',
- options: [
- {
- id: 'option_1',
- name: 'Option 1'
- },
- {
- id: 'option_2',
- name: 'Option 2'
- }
- ],
- endpoint: null,
- requestHeaders: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '7c01ed35-be86-4be7-9c28-ed640a5a2ae1',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'AttachFileFieldRepresentation',
- id: 'attachfile1',
- name: 'Attach file1',
- type: 'upload',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- fileSource: {
- serviceId: 'all-file-sources',
- name: 'All file sources'
- },
- multiple: false,
- link: false
- }
- }
- ],
- 2: [
- {
- fieldType: 'AttachFileFieldRepresentation',
- id: 'attachfile2',
- name: 'Attach file2',
- type: 'upload',
- value: null,
- required: false,
- readOnly: true,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- fileSource: {
- serviceId: 'all-file-sources',
- name: 'All file sources'
- },
- multiple: false,
- link: false
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '07b13b96-d469-4a1e-8a9a-9bb957c68869',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'displayvalue1',
- name: 'Display value1',
- type: 'readonly',
- value: 'No field selected',
- readOnly: true,
- required: false,
- overrideId: false,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- field: {
- id: 'displayvalue',
- name: 'Display value',
- type: 'text',
- responseVariable: true
- }
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'displayvalue2',
- name: 'Display value2',
- type: 'readonly',
- value: 'No field selected',
- readOnly: true,
- required: false,
- overrideId: false,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- field: {
- id: 'displayvalue',
- name: 'Display value',
- type: 'text',
- responseVariable: true
- }
- }
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: '1576ef25-c842-494c-ab84-265a1e3bf68d',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'displaytext1',
- name: 'Display text1',
- type: 'readonly-text',
- value: 'Display text as part of the form',
- readOnly: true,
- required: false,
- overrideId: false,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'displaytext2',
- name: 'Display text2',
- type: 'readonly-text',
- value: 'Display text as part of the form',
- readOnly: true,
- required: false,
- overrideId: false,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ]
- }
- }
- ],
- outcomes: [],
- metadata: {},
- variables: [
- {
- name: 'FormVarStr',
- type: 'string',
- value: ''
- },
- {
- name: 'FormVarInt',
- type: 'integer',
- value: ''
- },
- {
- name: 'FormVarBool',
- type: 'boolean',
- value: ''
- },
- {
- name: 'FormVarDate',
- type: 'date',
- value: ''
- },
- {
- name: 'NewVar',
- type: 'string',
- value: ''
- }
- ]
-};
-
-export const fakeCloudForm = {
- formRepresentation: {
- id: 'form-de8895be-d0d7-4434-beef-559b15305d72',
- name: 'StartEventForm',
- description: '',
- version: 0,
- formDefinition: {
- tabs: [],
- fields: [
- {
- type: 'container',
- id: '5a6b24c1-db2b-45e9-9aff-142395433d23',
- name: 'Label',
- tab: null,
- fields: {
- 1: [
- {
- type: 'text',
- id: 'firstName',
- name: 'firstName',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ],
- 2: [
- {
- type: 'text',
- id: 'lastName',
- name: 'lastName',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ]
- },
- numberOfColumns: 2
- }
- ],
- outcomes: [],
- metadata: {},
- variables: []
- }
- }
-};
-
-export const emptyFormRepresentationJSON = {
- description: '',
- fields: [],
- id: 'form-3de070b6-63df-4058-8028-ac82283d64fa',
- metadata: {},
- name: 'form',
- outcomes: [],
- length: 0,
- processDefinitionId: 'ed4a6233-0ad8-11ea-8616-e6267bbdb057',
- processInstanceId: 'ec921948-0ad9-11ea-8616-e6267bbdb057',
- processVariables: [],
- standAlone: true,
- tabs: [],
- taskId: 'ec92194b-0ad9-11ea-8616-e6267bbdb057',
- taskName: null,
- variables: [],
- version: 0
-};
-
-export const conditionalUploadWidgetsMock: any = {
- formRepresentation: {
- id: 'form-fb7858f7-5cf6-4afe-b462-c15a5dc0c34c',
- name: 'AttachVisibility',
- description: '',
- version: 0,
- formDefinition: {
- tabs: [],
- fields: [
- {
- id: '1dc63387-aa9d-4f06-adfa-37817e8fd394',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- id: 'Text0xlk8n',
- name: 'Text',
- type: 'text',
- required: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- regexPattern: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- id: 'Attachfile0h9fr1',
- name: 'Attach file',
- type: 'upload',
- required: false,
- colspan: 1,
- visibilityCondition: {
- leftFormFieldId: 'Text0xlk8n',
- leftRestResponseId: '',
- operator: '==',
- rightValue: 'Attach',
- rightType: null,
- rightFormFieldId: '',
- rightRestResponseId: '',
- nextConditionOperator: '',
- nextCondition: null
- },
- params: {
- existingColspan: 1,
- maxColspan: 2,
- fileSource: {
- serviceId: 'alfresco-content',
- name: 'Alfresco Content'
- },
- multiple: false,
- link: false
- }
- }
- ]
- }
- }
- ],
- outcomes: [
- {
- id: '5f2f1c2d-5a79-4ed1-a262-4fef190d41eb',
- name: 'Custom Outcome',
- visibilityCondition: {
- leftType: 'field',
- leftValue: 'Text0xlk8n',
- operator: '==',
- rightValue: 'hi',
- rightType: 'value',
- nextConditionOperator: '',
- nextCondition: null
- }
- }
- ],
- metadata: {},
- variables: []
- }
- }
-};
-
-export const multilingualForm: any = {
- formRepresentation: {
- id: 'form-2aaaf20e-43d3-46bf-89be-859d5f512dd2',
- name: 'multilingualform',
- description: '',
- version: 0,
- formDefinition: {
- tabs: [],
- fields: [
- {
- id: '451e2235-3310-4c2d-9b4a-08b53ae1640c',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- id: 'textField',
- name: 'TEXT_FIELD.TITLE',
- type: 'text',
- required: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- regexPattern: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: []
- }
- },
- {
- id: '1c87df6c-514e-45a7-96bc-508562683bb3',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- id: 'fildUploadField',
- name: 'FILE_UPLOAD_FIELD.TITLE',
- type: 'multi-line-text',
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- regexPattern: null,
- required: false,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- }
- }
- ],
- 2: [
- {
- id: 'amountField',
- name: 'AMOUNT_FIELD.TITLE',
- type: 'amount',
- required: false,
- colspan: 1,
- placeholder: '123',
- minValue: null,
- maxValue: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- enableFractions: false,
- currency: '$'
- }
- ]
- }
- },
- {
- id: '33138eea-130f-4bba-b5a5-29ea60f31786',
- name: 'Label',
- type: 'container',
- tab: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- id: 'dateField',
- name: 'DATE_FIELD.TITLE',
- type: 'date',
- required: false,
- colspan: 1,
- placeholder: null,
- minValue: null,
- maxValue: null,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: 'D-M-YYYY'
- }
- ],
- 2: []
- }
- }
- ],
- outcomes: [],
- metadata: {},
- variables: []
- }
- }
-};
-
-export const fakeMetadataForm = {
- id: 'form-de8895be-d0d7-4434-beef-559b15305d72',
- name: 'StartEventForm',
- description: '',
- version: 0,
- formDefinition: {
- tabs: [],
- fields: [
- {
- type: 'container',
- id: '5a6b24c1-db2b-45e9-9aff-142395433d23',
- name: 'Label',
- tab: null,
- fields: {
- 1: [
- {
- type: 'text',
- id: 'pfx_property_one',
- name: 'pfx_property_one',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ],
- 2: [
- {
- type: 'boolean',
- id: 'pfx_property_two',
- name: 'pfx_property_two',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ],
- 3: [
- {
- id: 'content_form_nodes',
- name: 'Nodes',
- type: 'upload',
- readOnly: false,
- required: true,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- fileSource: {
- serviceId: 'alfresco-content',
- name: 'Alfresco Content',
- metadataAllowed: true
- },
- multiple: true,
- menuOptions: {
- show: true,
- download: true,
- retrieveMetadata: true,
- remove: true
- },
- link: false
- }
- }
- ],
- 4: [
- {
- id: 'pfx_property_three',
- name: 'pfx_property_three',
- required: false,
- readOnly: false,
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- type: 'dropdown',
- optionType: 'manual',
- options: [
- {
- id: 'empty',
- name: 'Choose one...'
- },
- {
- id: 'opt_1',
- name: 'Option 1'
- },
- {
- id: 'opt_2',
- name: 'Option 2'
- }
- ],
- value: 'empty',
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null
- }
- ],
- 5: [
- {
- id: 'pfx_property_four',
- name: 'pfx_property_four',
- required: false,
- readOnly: false,
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- type: 'dropdown',
- optionType: 'manual',
- options: [
- {
- id: 'empty',
- name: 'Choose one...'
- },
- {
- id: 'option_1',
- name: 'Option: 1'
- },
- {
- id: 'option_2',
- name: 'Option: 2'
- }
- ],
- value: 'empty',
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null
- }
- ],
- 6: [
- {
- id: 'pfx_property_five',
- name: 'pfx_property_five',
- required: false,
- readOnly: false,
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- type: 'dropdown',
- optionType: 'manual',
- options: [
- {
- id: 'empty',
- name: 'Choose one...'
- },
- {
- id: 'green',
- name: 'Colour green'
- },
- {
- id: 'orange',
- name: 'Colour orange'
- }
- ],
- value: 'empty',
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null
- }
- ],
- 7: [
- {
- id: 'cmfb85b2a7295ba41209750bca176ccaf9a',
- name: 'File viewer',
- type: 'file-viewer',
- readOnly: false,
- required: false,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- uploadWidget: 'content_form_nodes'
- }
- }
- ],
- 8: [
- {
- type: 'text',
- id: 'pfx_property_six',
- name: 'pfx_property_six',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ],
- 9: [
- {
- type: 'text',
- id: 'pfx_property_seven',
- name: 'pfx_property_seven',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ],
- 10: [
- {
- type: 'text',
- id: 'pfx_property_eight',
- name: 'pfx_property_eight',
- colspan: 1,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- visibilityCondition: null,
- placeholder: null,
- value: null,
- required: false,
- minLength: 0,
- maxLength: 0,
- regexPattern: null
- }
- ]
- },
- numberOfColumns: 2
- }
- ],
- outcomes: [],
- metadata: {},
- variables: []
- }
-};
-
-export const fakeViewerForm = {
- id: 'form-de8895be-d0d7-4434-beef-559b15305d72',
- name: 'StartEventForm',
- description: '',
- version: 0,
- formDefinition: {
- tabs: [],
- fields: [
- {
- type: 'container',
- id: '5a6b24c1-db2b-45e9-9aff-142395433d23',
- name: 'Label',
- tab: null,
- fields: {
- 1: [
- {
- id: 'content_form_nodes',
- name: 'Nodes',
- type: 'upload',
- readOnly: false,
- required: true,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- fileSource: {
- serviceId: 'alfresco-content',
- name: 'Alfresco Content',
- metadataAllowed: true
- },
- multiple: true,
- menuOptions: {
- show: true,
- download: true,
- retrieveMetadata: true,
- remove: true
- },
- link: false
- }
- }
- ],
- 2: [
- {
- id: 'upload_widget',
- name: 'Nodes',
- type: 'upload',
- readOnly: false,
- required: true,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- fileSource: {
- serviceId: 'alfresco-content',
- name: 'Alfresco Content',
- metadataAllowed: true
- },
- multiple: true,
- menuOptions: {
- show: true,
- download: true,
- retrieveMetadata: true,
- remove: true
- },
- link: false
- }
- }
- ],
- 3: [
- {
- id: 'cmfb85b2a7295ba41209750bca176ccaf9a',
- name: 'File viewer',
- type: 'file-viewer',
- readOnly: false,
- required: false,
- colspan: 1,
- visibilityCondition: null,
- params: {
- existingColspan: 1,
- maxColspan: 2,
- uploadWidget: 'content_form_nodes'
- }
- }
- ]
- },
- numberOfColumns: 2
- }
- ],
- outcomes: [],
- metadata: {},
- variables: []
- }
-};
diff --git a/lib/core/src/lib/mock/dom-sanitizer-mock.ts b/lib/core/src/lib/mock/dom-sanitizer-mock.ts
deleted file mode 100644
index aba395939a..0000000000
--- a/lib/core/src/lib/mock/dom-sanitizer-mock.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/*!
- * @license
- * Copyright © 2005-2024 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { DomSanitizer } from '@angular/platform-browser';
-
-export const domSanitizerMock = {
- bypassSecurityTrustResourceUrl: () => {}
-} as any as DomSanitizer;
diff --git a/lib/core/src/lib/mock/form/start-form.component.mock.ts b/lib/core/src/lib/mock/form/start-form.component.mock.ts
deleted file mode 100644
index cce65dae77..0000000000
--- a/lib/core/src/lib/mock/form/start-form.component.mock.ts
+++ /dev/null
@@ -1,1013 +0,0 @@
-/*!
- * @license
- * Copyright © 2005-2024 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export const startFormDateWidgetMock: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- readOnly: false,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'date',
- name: 'date',
- type: 'date',
- value: null
- }]}
- }]
-};
-
-export const startFormNumberWidgetMock: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- readOnly: false,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'number',
- name: 'number widget',
- type: 'integer',
- value: null
- }]}
- }]
-};
-
-export const startFormAmountWidgetMock: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- readOnly: false,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'amount',
- name: 'amount widget',
- type: 'amount',
- value: null
- }]}
- }]
-};
-
-export const startFormRadioButtonWidgetMock: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- readOnly: false,
- fields: {
- 1: [{
- fieldType: 'RestFieldRepresentation',
- id: 'radio-but',
- name: 'radio-buttons',
- type: 'radio-buttons',
- value: null
- }]}
- }]
-};
-
-export const startFormTextDefinitionMock: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- readOnly: false,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'mocktext',
- name: 'mockText',
- type: 'text',
- value: null
- }]}
- }]
-};
-
-export const startFormDropdownDefinitionMock: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- readOnly: false,
- fields: {
- 1: [{
-
- fieldType: 'RestFieldRepresentation',
- id: 'mockTypeDropDown',
- name: 'mock DropDown',
- type: 'dropdown',
- value: 'Chooseone...',
- required: false,
- readOnly: false,
- overrideId: false,
- options: [
- {
- id: 'empty',
- name: 'Chooseone...'
- },
- {
- id: 'opt1',
- name: 'Option-1'
- },
- {
- id: 'opt2',
- name: 'Option-2'
- },
- {
- id: 'opt3',
- name: 'Option-3'
- },
- {
- id: 'opt2',
- name: 'Option-3'
- }
- ]
- }]}
- }]
-};
-
-export const startMockForm: any = {
- id: 4,
- name: 'Claim Review Process',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- processDefinitionName: 'ClaimReviewProcess',
- processDefinitionKey: 'ClaimReviewProcess',
- tabs: [],
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'clientname',
- name: 'ClientName',
- type: 'text',
- value: null,
- required: true,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'policyno',
- name: 'PolicyNo',
- type: 'integer',
- value: null,
- required: true,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: 'EnterPolicyName',
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 1
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953270269,
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'billAmount',
- name: 'BillAmount',
- type: 'integer',
- value: null,
- required: true,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: 'EnterBillAmount',
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'billdate',
- name: 'BillDate',
- type: 'date',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: 'billdate',
- params: {
- existingColspan: 1,
- maxColspan: 1
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953280930,
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'RestFieldRepresentation',
- id: 'claimtype',
- name: 'ClaimType',
- type: 'dropdown',
- value: 'Chooseone...',
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: true,
- options: [
- {
- id: 'empty',
- name: 'Chooseone...'
- },
- {
- id: 'cashless',
- name: 'Cashless'
- },
- {
- id: 'reimbursement',
- name: 'Reimbursement'
- }
- ],
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- endpoint: null,
- requestHeaders: null
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'hospitalName',
- name: 'HospitalName',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: 'EnterHospitalName',
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 1
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ]
- }
- }
- ],
- outcomes: [
- {
- id: 'approve',
- name: 'Approve'
- },
- {
- id: 'complete',
- name: 'Complete'
- },
- {
- id: 'start_process',
- name: 'Start Process'
- }
- ],
- javascriptEvents: [],
- className: '',
- style: '',
- metadata: {},
- variables: [],
- customFieldsValueInfo: {},
- gridsterForm: false,
- globalDateFormat: 'D - M - YYYY'
-};
-
-export const startMockFormWithTab: any = {
- id: 4,
- taskName: 'Mock Title',
- processDefinitionId: 'ClaimReviewProcess:2: 93',
- processDefinitionName: 'ClaimReviewProcess',
- processDefinitionKey: 'ClaimReviewProcess',
- tabs: [
- {
- id: 'form1',
- name: 'Tab 1'
- },
- {
- id: 'form2',
- name: 'Tab 2'
- }
- ],
- fields: [
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953253784,
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'clientname',
- name: 'ClientName',
- type: 'text',
- value: null,
- required: true,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'policyno',
- name: 'PolicyNo',
- type: 'integer',
- value: null,
- required: true,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: 'EnterPolicyName',
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 1
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953270269,
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'billAmount',
- name: 'BillAmount',
- type: 'integer',
- value: null,
- required: true,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: 'EnterBillAmount',
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'billdate',
- name: 'BillDate',
- type: 'date',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: 'billdate',
- params: {
- existingColspan: 1,
- maxColspan: 1
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ]
- }
- },
- {
- fieldType: 'ContainerRepresentation',
- id: 1497953280930,
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [
- {
- fieldType: 'RestFieldRepresentation',
- id: 'claimtype',
- name: 'ClaimType',
- type: 'dropdown',
- value: 'Chooseone...',
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: true,
- options: [
- {
- id: 'empty',
- name: 'Chooseone...'
- },
- {
- id: 'cashless',
- name: 'Cashless'
- },
- {
- id: 'reimbursement',
- name: 'Reimbursement'
- }
- ],
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 2
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- endpoint: null,
- requestHeaders: null
- }
- ],
- 2: [
- {
- fieldType: 'FormFieldRepresentation',
- id: 'hospitalName',
- name: 'HospitalName',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: 'EnterHospitalName',
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: {
- existingColspan: 1,
- maxColspan: 1
- },
- dateDisplayFormat: null,
- layout: {
- row: -1,
- column: -1,
- colspan: 1
- },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }
- ]
- }
- }
- ],
- outcomes: [
- {
- id: 'approve',
- name: 'Approve'
- },
- {
- id: 'complete',
- name: 'Complete'
- }
- ],
- javascriptEvents: [],
- className: '',
- style: '',
- metadata: {},
- variables: [],
- customFieldsValueInfo: {},
- gridsterForm: false,
- globalDateFormat: 'D - M - YYYY'
-};
diff --git a/lib/core/src/lib/mock/form/widget-visibility-cloud.service.mock.ts b/lib/core/src/lib/mock/form/widget-visibility-cloud.service.mock.ts
index 36f887d1ec..19d501894c 100644
--- a/lib/core/src/lib/mock/form/widget-visibility-cloud.service.mock.ts
+++ b/lib/core/src/lib/mock/form/widget-visibility-cloud.service.mock.ts
@@ -19,12 +19,6 @@ import { FormModel, FormValues } from '../../form/components/widgets/core';
export const formTest = new FormModel({});
-export const fakeTaskProcessVariableModels = [
- { id: 'TEST_VAR_1', type: 'string', value: 'test_value_1' },
- { id: 'TEST_VAR_2', type: 'string', value: 'test_value_2' },
- { id: 'TEST_VAR_3', type: 'string', value: 'test_value_3' }
-];
-
export const formValues: FormValues = {
test_1: 'value_1',
test_2: 'value_2',
@@ -128,348 +122,364 @@ export const complexVisibilityJsonVisible: any = {
referenceId: null,
formDefinition: {
tabs: [],
- fields: [{
- fieldType: 'ContainerRepresentation',
- id: '1560246123312',
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label',
- name: 'Label',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 2 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }],
- 2: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label1',
- name: 'Label1',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 1 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }]
- }
- }, {
- fieldType: 'ContainerRepresentation',
- id: '1560246128696',
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label4',
- name: 'Label4',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 2 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }],
- 2: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label3',
- name: 'Label3',
- type: 'text',
- value: '',
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 1 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }]
- }
- }, {
- fieldType: 'ContainerRepresentation',
- id: '1560246126964',
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label2',
- name: 'Label2',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 2 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }],
- 2: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label5',
- name: 'Label5',
- type: 'boolean',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 1 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: {
- leftType: 'label',
- leftValue: null,
- operator: '==',
- rightValue: 'aaa',
- rightType: null,
- nextConditionOperator: 'and',
- nextCondition: {
- leftType: 'label1',
- leftValue: null,
- operator: '!=',
- rightValue: 'aaa',
- rightType: null,
- nextConditionOperator: 'and',
- nextCondition: {
- leftType: 'label2',
+ fields: [
+ {
+ fieldType: 'ContainerRepresentation',
+ id: '1560246123312',
+ name: 'Label',
+ type: 'container',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ dateDisplayFormat: null,
+ layout: null,
+ sizeX: 2,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null,
+ numberOfColumns: 2,
+ fields: {
+ 1: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label',
+ name: 'Label',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 2 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ],
+ 2: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label1',
+ name: 'Label1',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 1 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ]
+ }
+ },
+ {
+ fieldType: 'ContainerRepresentation',
+ id: '1560246128696',
+ name: 'Label',
+ type: 'container',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ dateDisplayFormat: null,
+ layout: null,
+ sizeX: 2,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null,
+ numberOfColumns: 2,
+ fields: {
+ 1: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label4',
+ name: 'Label4',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 2 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ],
+ 2: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label3',
+ name: 'Label3',
+ type: 'text',
+ value: '',
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 1 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ]
+ }
+ },
+ {
+ fieldType: 'ContainerRepresentation',
+ id: '1560246126964',
+ name: 'Label',
+ type: 'container',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ dateDisplayFormat: null,
+ layout: null,
+ sizeX: 2,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null,
+ numberOfColumns: 2,
+ fields: {
+ 1: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label2',
+ name: 'Label2',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 2 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ],
+ 2: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label5',
+ name: 'Label5',
+ type: 'boolean',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 1 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: {
+ leftType: 'label',
leftValue: null,
- operator: '!empty',
- rightValue: null,
+ operator: '==',
+ rightValue: 'aaa',
rightType: null,
- nextConditionOperator: 'or',
+ nextConditionOperator: 'and',
nextCondition: {
- leftType: 'label3',
+ leftType: 'label1',
leftValue: null,
- operator: 'empty',
- rightValue: null,
+ operator: '!=',
+ rightValue: 'aaa',
rightType: null,
- nextConditionOperator: null,
- nextCondition: null
+ nextConditionOperator: 'and',
+ nextCondition: {
+ leftType: 'label2',
+ leftValue: null,
+ operator: '!empty',
+ rightValue: null,
+ rightType: null,
+ nextConditionOperator: 'or',
+ nextCondition: {
+ leftType: 'label3',
+ leftValue: null,
+ operator: 'empty',
+ rightValue: null,
+ rightType: null,
+ nextConditionOperator: null,
+ nextCondition: null
+ }
+ }
}
}
}
- }
- }]
+ ]
+ }
}
- }],
+ ],
outcomes: [],
javascriptEvents: [],
className: '',
@@ -493,348 +503,364 @@ export const complexVisibilityJsonNotVisible: any = {
referenceId: null,
formDefinition: {
tabs: [],
- fields: [{
- fieldType: 'ContainerRepresentation',
- id: '1560246123312',
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label',
- name: 'Label',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 2 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }],
- 2: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label1',
- name: 'Label1',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 1 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }]
- }
- }, {
- fieldType: 'ContainerRepresentation',
- id: '1560246128696',
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label4',
- name: 'Label4',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 2 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }],
- 2: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label3',
- name: 'Label3',
- type: 'text',
- value: 'OPSSS',
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 1 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }]
- }
- }, {
- fieldType: 'ContainerRepresentation',
- id: '1560246126964',
- name: 'Label',
- type: 'container',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- dateDisplayFormat: null,
- layout: null,
- sizeX: 2,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null,
- numberOfColumns: 2,
- fields: {
- 1: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label2',
- name: 'Label2',
- type: 'text',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 2 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: null
- }],
- 2: [{
- fieldType: 'FormFieldRepresentation',
- id: 'label5',
- name: 'Label5',
- type: 'boolean',
- value: null,
- required: false,
- readOnly: false,
- overrideId: false,
- colspan: 1,
- placeholder: null,
- minLength: 0,
- maxLength: 0,
- minValue: null,
- maxValue: null,
- regexPattern: null,
- optionType: null,
- hasEmptyValue: null,
- options: null,
- restUrl: null,
- restResponsePath: null,
- restIdProperty: null,
- restLabelProperty: null,
- tab: null,
- className: null,
- params: { existingColspan: 1, maxColspan: 1 },
- dateDisplayFormat: null,
- layout: { row: -1, column: -1, colspan: 1 },
- sizeX: 1,
- sizeY: 1,
- row: -1,
- col: -1,
- visibilityCondition: {
- leftType: 'label',
- leftValue: 'label',
- operator: '==',
- rightValue: 'aaa',
- rightType: 'variable',
- nextConditionOperator: 'and',
- nextCondition: {
- leftType: 'field',
- leftValue: 'label1',
- operator: '!=',
- rightValue: 'aaa',
- rightType: 'variable',
- nextConditionOperator: 'and',
- nextCondition: {
- leftType: 'field',
- leftValue: 'label2',
- operator: '!empty',
- rightValue: null,
+ fields: [
+ {
+ fieldType: 'ContainerRepresentation',
+ id: '1560246123312',
+ name: 'Label',
+ type: 'container',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ dateDisplayFormat: null,
+ layout: null,
+ sizeX: 2,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null,
+ numberOfColumns: 2,
+ fields: {
+ 1: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label',
+ name: 'Label',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 2 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ],
+ 2: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label1',
+ name: 'Label1',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 1 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ]
+ }
+ },
+ {
+ fieldType: 'ContainerRepresentation',
+ id: '1560246128696',
+ name: 'Label',
+ type: 'container',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ dateDisplayFormat: null,
+ layout: null,
+ sizeX: 2,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null,
+ numberOfColumns: 2,
+ fields: {
+ 1: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label4',
+ name: 'Label4',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 2 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ],
+ 2: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label3',
+ name: 'Label3',
+ type: 'text',
+ value: 'OPSSS',
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 1 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ]
+ }
+ },
+ {
+ fieldType: 'ContainerRepresentation',
+ id: '1560246126964',
+ name: 'Label',
+ type: 'container',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ dateDisplayFormat: null,
+ layout: null,
+ sizeX: 2,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null,
+ numberOfColumns: 2,
+ fields: {
+ 1: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label2',
+ name: 'Label2',
+ type: 'text',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 2 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: null
+ }
+ ],
+ 2: [
+ {
+ fieldType: 'FormFieldRepresentation',
+ id: 'label5',
+ name: 'Label5',
+ type: 'boolean',
+ value: null,
+ required: false,
+ readOnly: false,
+ overrideId: false,
+ colspan: 1,
+ placeholder: null,
+ minLength: 0,
+ maxLength: 0,
+ minValue: null,
+ maxValue: null,
+ regexPattern: null,
+ optionType: null,
+ hasEmptyValue: null,
+ options: null,
+ restUrl: null,
+ restResponsePath: null,
+ restIdProperty: null,
+ restLabelProperty: null,
+ tab: null,
+ className: null,
+ params: { existingColspan: 1, maxColspan: 1 },
+ dateDisplayFormat: null,
+ layout: { row: -1, column: -1, colspan: 1 },
+ sizeX: 1,
+ sizeY: 1,
+ row: -1,
+ col: -1,
+ visibilityCondition: {
+ leftType: 'label',
+ leftValue: 'label',
+ operator: '==',
+ rightValue: 'aaa',
rightType: 'variable',
- nextConditionOperator: 'or',
+ nextConditionOperator: 'and',
nextCondition: {
leftType: 'field',
- leftValue: 'label3',
- operator: 'empty',
- rightValue: 'variable',
- rightType: null,
- nextConditionOperator: null,
- nextCondition: null
+ leftValue: 'label1',
+ operator: '!=',
+ rightValue: 'aaa',
+ rightType: 'variable',
+ nextConditionOperator: 'and',
+ nextCondition: {
+ leftType: 'field',
+ leftValue: 'label2',
+ operator: '!empty',
+ rightValue: null,
+ rightType: 'variable',
+ nextConditionOperator: 'or',
+ nextCondition: {
+ leftType: 'field',
+ leftValue: 'label3',
+ operator: 'empty',
+ rightValue: 'variable',
+ rightType: null,
+ nextConditionOperator: null,
+ nextCondition: null
+ }
+ }
}
}
}
- }
- }]
+ ]
+ }
}
- }],
+ ],
outcomes: [],
javascriptEvents: [],
className: '',
diff --git a/lib/core/src/lib/mock/mat-icon-registry-mock.ts b/lib/core/src/lib/mock/mat-icon-registry-mock.ts
deleted file mode 100644
index d1f5d191e1..0000000000
--- a/lib/core/src/lib/mock/mat-icon-registry-mock.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/*!
- * @license
- * Copyright © 2005-2024 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { MatIconRegistry } from '@angular/material/icon';
-
-export const matIconRegistryMock = {
- addSvgIconInNamespace: () => {}
-} as any as MatIconRegistry;
diff --git a/lib/core/src/lib/mock/public-api.ts b/lib/core/src/lib/mock/public-api.ts
index dcb90c58ed..bc8d4fec58 100644
--- a/lib/core/src/lib/mock/public-api.ts
+++ b/lib/core/src/lib/mock/public-api.ts
@@ -15,7 +15,6 @@
* limitations under the License.
*/
-export * from './alfresco-api.mock';
export * from './cookie.service.mock';
export * from './event.mock';
export * from './translation.service.mock';
@@ -25,7 +24,6 @@ export * from './form/form.component.mock';
export * from './form/form-definition.mock';
export * from './form/form-definition-readonly.mock';
export * from './form/form-definition-visibility.mock';
-export * from './form/start-form.component.mock';
export * from './form/form.service.mock';
export * from './form/widget-visibility.service.mock';
diff --git a/lib/core/src/lib/mock/user-access.mock.ts b/lib/core/src/lib/mock/user-access.mock.ts
deleted file mode 100644
index c6233fe8e3..0000000000
--- a/lib/core/src/lib/mock/user-access.mock.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-/*!
- * @license
- * Copyright © 2005-2024 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export const userAccessMock = {
- globalAccess: {
- roles: [
- 'MOCK_GLOBAL_USER_ROLE'
- ]
- },
- applicationAccess: [
- {
- name: 'mockApp1',
- roles: [
- 'MOCK_USER_ROLE_APP_1'
- ]
- },
- {
- name: 'mockApp2',
- roles: [
- 'MOCK_USER_ROLE_APP_2'
- ]
- },
- {
- name: 'mockApp3',
- roles: [
- 'MOCK_USER_ROLE_APP_3',
- 'MOCK_ADMIN_ROLE_APP_3'
- ]
- }
- ]
-};
diff --git a/lib/core/src/lib/testing/index.ts b/lib/core/src/lib/testing/index.ts
index a8769344e2..478c4ba84c 100644
--- a/lib/core/src/lib/testing/index.ts
+++ b/lib/core/src/lib/testing/index.ts
@@ -17,4 +17,3 @@
export * from './setup-test-bed';
export * from './core.testing.module';
-export * from './automation.service';