mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-852] Form style Material 2 (#2151)
* mdl2 transition part form 1 * hyperlink * radio buttons * label * people component * [ADF-852] moved textarea to new angular material * number widget * change error multiline * [ADF-852] added md desgin for dropdown * [ADF-852] removed unused css file * functional widget * error dropdown * [ADF-852] - changed to new md date * remove md-date-time-picker dependency in ng2-alfresco-from * [ADF-852] conversion dynamic table phase 1 * container widget * remove test unused * validation change * [ADF-852] convert dynamic table phase 2 * [ADF-852] improving style and fixing bugs * move custom style for form in form.scss * error footer refactor * fix models and test * [ADF-852]- fixed minor twitch on dynamic table * align fields and fix tests dropdown * disabling button in readonly clean mdl form start process form * align dropdown * [ADF-1048] Upload widget can manage multiple files. (#2134) * [ADF-1048] improving upload widget * [ADF-1048] added ability to upload multiple file on upload widget * [ADF-1048] added multiple upload elements on upload widget * [ADF-1048] - show all the files on the completed form * [ADF-1048] fixed wrong selecion on displya upload * [ADF-1048] removed fdescribe from upload widget * date validation and custom moment data adapter * move content widget in the widget folder * add style fields and theming * color primary radio and checkbox * fix amount widget and colors * change ViewEncapsulation and fix date style button issue * empty form customization 1736 * focus label style * [ADF-224] fix the rendering of custom stencils when form is opened in readonly state. (#2161) * [ADF-224] Fixed rendering of custom stencil in readonly mode * [ADF-224] improved variable name * test fix * container filter in form model creation * show display value correctly * fix change date and test * fix date editor and add some test coverage for date * style minor issue * fix new unused local import rule * fix test date * strict date check * fix analytics failing test * restore null as default in model * unify model diagrams and analytics
This commit is contained in:
committed by
Mario Romano
parent
47ea517ffb
commit
083c9da0d4
@@ -17,14 +17,16 @@
|
||||
|
||||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
import { HttpModule } from '@angular/http';
|
||||
import { MdButtonModule, MdCardModule, MdCheckboxModule, MdIconModule, MdInputModule, MdSlideToggleModule, MdTabsModule } from '@angular/material';
|
||||
import { MdAutocompleteModule, MdButtonModule, MdCardModule, MdCheckboxModule,
|
||||
MdDatepickerModule, MdGridListModule, MdIconModule, MdInputModule, MdListModule,
|
||||
MdOptionModule, MdRadioModule, MdSelectModule, MdSlideToggleModule, MdTableModule, MdTabsModule } from '@angular/material';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
import { DataTableModule } from 'ng2-alfresco-datatable';
|
||||
import { ActivitiContentComponent } from './src/components/activiti-content.component';
|
||||
import { FormFieldComponent } from './src/components/form-field/form-field.component';
|
||||
import { FormListComponent } from './src/components/form-list.component';
|
||||
import { FormComponent } from './src/components/form.component';
|
||||
import { StartFormComponent } from './src/components/start-form.component';
|
||||
import { ContentWidgetComponent } from './src/components/widgets/content/content.widget';
|
||||
import { MASK_DIRECTIVE, WIDGET_DIRECTIVES } from './src/components/widgets/index';
|
||||
import { ActivitiAlfrescoContentService } from './src/services/activiti-alfresco.service';
|
||||
import { ActivitiContentService } from './src/services/activiti-content-service';
|
||||
@@ -36,7 +38,7 @@ import { WidgetVisibilityService } from './src/services/widget-visibility.servic
|
||||
|
||||
export * from './src/components/form.component';
|
||||
export * from './src/components/form-list.component';
|
||||
export * from './src/components/activiti-content.component';
|
||||
export * from './src/components/widgets/content/content.widget';
|
||||
export * from './src/components/start-form.component';
|
||||
export * from './src/services/form.service';
|
||||
export * from './src/services/activiti-content-service';
|
||||
@@ -47,22 +49,23 @@ export * from './src/services/form-rendering.service';
|
||||
export * from './src/events/index';
|
||||
|
||||
// Old deprecated import
|
||||
import {ActivitiContentComponent as ActivitiContent } from './src/components/activiti-content.component';
|
||||
import {FormComponent as ActivitiForm } from './src/components/form.component';
|
||||
import {StartFormComponent as ActivitiStartForm } from './src/components/start-form.component';
|
||||
import {ContentWidgetComponent as ActivitiContent } from './src/components/widgets/content/content.widget';
|
||||
export {FormComponent as ActivitiForm} from './src/components/form.component';
|
||||
export {ActivitiContentComponent as ActivitiContent} from './src/components/activiti-content.component';
|
||||
export {ContentWidgetComponent as ActivitiContent} from './src/components/widgets/content/content.widget';
|
||||
export {StartFormComponent as ActivitiStartForm} from './src/components/start-form.component';
|
||||
|
||||
export const ACTIVITI_FORM_DIRECTIVES: any[] = [
|
||||
FormComponent,
|
||||
FormListComponent,
|
||||
ActivitiContentComponent,
|
||||
ContentWidgetComponent,
|
||||
StartFormComponent,
|
||||
FormFieldComponent,
|
||||
...WIDGET_DIRECTIVES,
|
||||
...WIDGET_DIRECTIVES
|
||||
];
|
||||
|
||||
// Old Deprecated export
|
||||
export const DEPRECATED_FORM_DIRECTIVES: any[] = [
|
||||
ActivitiForm,
|
||||
ActivitiContent,
|
||||
ActivitiStartForm
|
||||
@@ -78,21 +81,22 @@ export const ACTIVITI_FORM_PROVIDERS: any[] = [
|
||||
FormRenderingService
|
||||
];
|
||||
|
||||
export const MATERIAL_MODULE: any[] = [
|
||||
MdAutocompleteModule, MdButtonModule, MdCardModule, MdCheckboxModule,
|
||||
MdDatepickerModule, MdGridListModule, MdIconModule, MdInputModule, MdRadioModule,
|
||||
MdSelectModule, MdSlideToggleModule, MdTableModule, MdTabsModule, MdOptionModule, MdListModule
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
DataTableModule,
|
||||
HttpModule,
|
||||
MdCheckboxModule,
|
||||
MdTabsModule,
|
||||
MdCardModule,
|
||||
MdButtonModule,
|
||||
MdIconModule,
|
||||
MdSlideToggleModule,
|
||||
MdInputModule
|
||||
...MATERIAL_MODULE
|
||||
],
|
||||
declarations: [
|
||||
...ACTIVITI_FORM_DIRECTIVES,
|
||||
...DEPRECATED_FORM_DIRECTIVES,
|
||||
...MASK_DIRECTIVE
|
||||
],
|
||||
entryComponents: [
|
||||
@@ -103,13 +107,8 @@ export const ACTIVITI_FORM_PROVIDERS: any[] = [
|
||||
],
|
||||
exports: [
|
||||
...ACTIVITI_FORM_DIRECTIVES,
|
||||
MdCheckboxModule,
|
||||
MdTabsModule,
|
||||
MdCardModule,
|
||||
MdButtonModule,
|
||||
MdIconModule,
|
||||
MdSlideToggleModule,
|
||||
MdInputModule
|
||||
...DEPRECATED_FORM_DIRECTIVES,
|
||||
...MATERIAL_MODULE
|
||||
]
|
||||
})
|
||||
export class ActivitiFormModule {
|
||||
|
Reference in New Issue
Block a user