mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-8086] Propagate form events (#7572)
* [AAE-8086] Propagate events * [AAE-8086] Add form rules manager to the form renderer * [AAE-8086] Extensibility improvements * [AAE-8086] Fix wrong import * [AAE-8087] Add form actions * [AAE-8086] Initialize form rules manager on form renderer component changes * [AAE-8087] Fix form actions * [AAE-8087] Fix unit tests for field visibility * trigger travis
This commit is contained in:
committed by
GitHub
parent
48c3fac018
commit
a02a8a4ad9
32
lib/core/form/events/form-rules.event.ts
Normal file
32
lib/core/form/events/form-rules.event.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
*
|
||||
* 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 { FormFieldEvent } from './form-field.event';
|
||||
import { FormEvent } from './form.event';
|
||||
|
||||
export class FormRulesEvent extends FormFieldEvent {
|
||||
|
||||
readonly type: string;
|
||||
readonly event: Event;
|
||||
|
||||
constructor(type: string, formEvent: FormEvent, event?: Event) {
|
||||
super(formEvent.form, formEvent['field']);
|
||||
this.type = type;
|
||||
this.event = event;
|
||||
}
|
||||
|
||||
}
|
@@ -21,3 +21,4 @@ export * from './form-field.event';
|
||||
export * from './validate-form-field.event';
|
||||
export * from './validate-form.event';
|
||||
export * from './validate-dynamic-table-row.event';
|
||||
export * from './form-rules.event';
|
||||
|
Reference in New Issue
Block a user