You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2018/05/15 18:09:41 UTC
[5/8] nifi-fds git commit: [NIFI-5164] upgrade to angular v5.2.0,
angular-material v5.2.0,
covalent v1.0.1 remove package-lock file from .gitignore and remove author
info update pull request template add package-lock.json,
update version number to indica
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/dialogs/confirm-dialog/confirm-dialog.component.spec.js
----------------------------------------------------------------------
diff --git a/platform/core/dialogs/confirm-dialog/confirm-dialog.component.spec.js b/platform/core/dialogs/confirm-dialog/confirm-dialog.component.spec.js
deleted file mode 100644
index 0de49e4..0000000
--- a/platform/core/dialogs/confirm-dialog/confirm-dialog.component.spec.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var FdsConfirmDialogComponent = require('@fluid-design-system/confirm-dialog-component');
-
-describe('coasterComponent isolated unit tests', function () {
- var fdsConfirmDialogComponent;
-
- beforeEach(function () {
- fdsConfirmDialogComponent = new FdsConfirmDialogComponent();
- fdsConfirmDialogComponent.dialogRef = {
- close: function() {}
- };
-
- //Spy
- spyOn(fdsConfirmDialogComponent.dialogRef, 'close');
- });
-
- it('should accept the dialog', function () {
- fdsConfirmDialogComponent.accept();
- //assertions
- expect(fdsConfirmDialogComponent.dialogRef.close).toHaveBeenCalled();
- var call = fdsConfirmDialogComponent.dialogRef.close.calls.first();
- expect(call.args[0]).toBe(true);
- expect(fdsConfirmDialogComponent.dialogRef.close.calls.count()).toBe(1);
- });
-
- it('should cancel the dialog', function () {
- fdsConfirmDialogComponent.cancel();
- //assertions
- expect(fdsConfirmDialogComponent.dialogRef.close).toHaveBeenCalled();
- var call = fdsConfirmDialogComponent.dialogRef.close.calls.first();
- expect(call.args[0]).toBe(false);
- expect(fdsConfirmDialogComponent.dialogRef.close.calls.count()).toBe(1);
- });
-});
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/dialogs/fds-dialog.component.html
----------------------------------------------------------------------
diff --git a/platform/core/dialogs/fds-dialog.component.html b/platform/core/dialogs/fds-dialog.component.html
deleted file mode 100644
index 4d39e73..0000000
--- a/platform/core/dialogs/fds-dialog.component.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You 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.
--->
-
-<div class="fds-dialog-wrapper">
- <h3 class="fds-dialog-title mat-title" *ngIf="dialogTitle.length > 0">
- <ng-content select="fds-dialog-title"></ng-content>
- </h3>
- <div class="fds-dialog-content pad-bottom-md" *ngIf="dialogContent.length > 0">
- <ng-content select="fds-dialog-content"></ng-content>
- </div>
- <div class="fds-dialog-actions" *ngIf="dialogActions.length > 0" layout="row">
- <span flex></span>
- <ng-content select="fds-dialog-actions"></ng-content>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/dialogs/fds-dialog.component.js
----------------------------------------------------------------------
diff --git a/platform/core/dialogs/fds-dialog.component.js b/platform/core/dialogs/fds-dialog.component.js
deleted file mode 100644
index e52bd5b..0000000
--- a/platform/core/dialogs/fds-dialog.component.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-
-var FdsDialogTitleDirective = new ngCore.Class({
- extends: ngCore.Directive({selector: 'fds-dialog-title'}),
- constructor: function () {
- }
-});
-var FdsDialogContentDirective = new ngCore.Class({
- extends: ngCore.Directive({selector: 'fds-dialog-content'}),
- constructor: function () {
- }
-});
-var FdsDialogActionsDirective = new ngCore.Class({
- extends: ngCore.Directive({selector: 'fds-dialog-actions'}),
- constructor: function () {
- }
-});
-
-/**
- * FdsDialogComponent constructor
- *
- * @constructor
- */
-function FdsDialogComponent() {
- this.dialogTitle = '';
- this.dialogContent = '';
- this.dialogActions = '';
-};
-
-FdsDialogComponent.prototype = {
- constructor: FdsDialogComponent,
-
- /**
- * Respond after Angular projects external content into the component's view.
- */
- ngAfterContentInit: function () {
- if (this.dialogTitle.length > 1) {
- throw new Error('Duplicate fds-dialog-title component at in fds-dialog.');
- }
- if (this.dialogContent.length > 1) {
- throw new Error('Duplicate fds-dialog-content component at in fds-dialog.');
- }
- if (this.dialogActions.length > 1) {
- throw new Error('Duplicate fds-dialog-actions component at in fds-dialog.');
- }
- }
-}
-
-FdsDialogComponent.annotations = [
- new ngCore.Component({
- selector: 'fds-dialog',
- template: require('./fds-dialog.component.html!text'),
- queries: {
- dialogTitle: new ngCore.ContentChildren(FdsDialogTitleDirective),
- dialogContent: new ngCore.ContentChildren(FdsDialogContentDirective),
- dialogActions: new ngCore.ContentChildren(FdsDialogActionsDirective)
- }
- })
-];
-
-FdsDialogComponent.parameters = [];
-
-module.exports = {
- FdsDialogTitleDirective: FdsDialogTitleDirective,
- FdsDialogContentDirective: FdsDialogContentDirective,
- FdsDialogActionsDirective: FdsDialogActionsDirective,
- FdsDialogComponent: FdsDialogComponent
-};
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/dialogs/fds-dialogs.component.spec.js
----------------------------------------------------------------------
diff --git a/platform/core/dialogs/fds-dialogs.component.spec.js b/platform/core/dialogs/fds-dialogs.component.spec.js
deleted file mode 100644
index a8c6913..0000000
--- a/platform/core/dialogs/fds-dialogs.component.spec.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var fdsDialogsComponent = require('@fluid-design-system/dialog-component');
-
-describe('FdsDialogComponent isolated unit tests', function () {
- var fdsDialogs;
-
- beforeEach(function () {
- fdsDialogs = new fdsDialogsComponent.FdsDialogComponent();
- });
-
- it('should have defined fdsDialogs', function () {
- fdsDialogs.ngAfterContentInit();
- //assertions
- expect(fdsDialogs).toBeDefined();
- });
-});
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/dialogs/fds-dialogs.module.js
----------------------------------------------------------------------
diff --git a/platform/core/dialogs/fds-dialogs.module.js b/platform/core/dialogs/fds-dialogs.module.js
deleted file mode 100644
index 3758655..0000000
--- a/platform/core/dialogs/fds-dialogs.module.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-var ngMaterial = require('@angular/material');
-var ngFlex = require('@angular/flex-layout');
-var ngCommon = require('@angular/common');
-var ngForms = require('@angular/forms');
-var fdsDialogComponentModule = require('@fluid-design-system/dialog-component');
-var fdsDialogServiceModule = require('@fluid-design-system/dialog-service');
-var FdsConfirmDialogComponent = require('@fluid-design-system/confirm-dialog-component');
-
-var FDS_DIALOGS = [
- fdsDialogComponentModule.FdsDialogComponent,
- fdsDialogComponentModule.FdsDialogTitleDirective,
- fdsDialogComponentModule.FdsDialogActionsDirective,
- fdsDialogComponentModule.FdsDialogContentDirective,
- FdsConfirmDialogComponent
-];
-
-var FDS_DIALOGS_ENTRY_COMPONENTS = [
- FdsConfirmDialogComponent
-];
-
-/**
- * FdsDialogsModule constructor.
- *
- * @constructor
- */
-function FdsDialogsModule() {
-
-};
-
-FdsDialogsModule.prototype = {
- constructor: FdsDialogsModule
-};
-
-FdsDialogsModule.annotations = [
- new ngCore.NgModule({
- imports: [
- ngFlex.FlexLayoutModule,
- ngForms.FormsModule,
- ngCommon.CommonModule,
- ngMaterial.MatDialogModule,
- ngMaterial.MatInputModule,
- ngMaterial.MatButtonModule,
- ngMaterial.MatIconModule
- ],
- declarations: [
- FDS_DIALOGS
- ],
- exports: [
- FDS_DIALOGS
- ],
- providers: [
- fdsDialogServiceModule.FdsDialogService
- ],
- entryComponents: [
- FDS_DIALOGS_ENTRY_COMPONENTS
- ]
- })
-];
-
-module.exports = {
- FdsDialogsModule: FdsDialogsModule,
- IConfirmConfig: fdsDialogServiceModule.IConfirmConfig,
- FdsDialogService: fdsDialogServiceModule.FdsDialogService,
- FdsDialogComponent: fdsDialogComponentModule.FdsDialogComponent,
- FdsDialogTitleDirective: fdsDialogComponentModule.FdsDialogTitleDirective,
- FdsDialogContentDirective: fdsDialogComponentModule.FdsDialogContentDirective,
- FdsDialogActionsDirective: fdsDialogComponentModule.FdsDialogActionsDirective,
- FdsConfirmDialogComponent: FdsConfirmDialogComponent
-};
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/dialogs/services/dialog.service.js
----------------------------------------------------------------------
diff --git a/platform/core/dialogs/services/dialog.service.js b/platform/core/dialogs/services/dialog.service.js
deleted file mode 100644
index 9bf1ee9..0000000
--- a/platform/core/dialogs/services/dialog.service.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-var ngMaterial = require('@angular/material');
-var FdsConfirmDialogComponent = require('@fluid-design-system/confirm-dialog-component');
-
-var IDialogConfig = new ngCore.Class({
- extends: ngMaterial.MatDialogConfig,
- constructor: function () {
- this.title = '';
- this.message = '';
- this.dialogRef = undefined;
- this.viewContainerRef = undefined;
- this.disableClose = true;
- }
-});
-
-var IConfirmConfig = new ngCore.Class({
- extends: IDialogConfig,
- constructor: function () {
- this.acceptButton = 'ACCEPT';
- this.acceptButtonColor = 'fds-primary';
- this.cancelButton = 'CANCEL';
- this.cancelButtonColor = 'fds-secondary';
- }
-});
-
-function createConfig(config) {
- var dialogConfig = new IConfirmConfig();
- dialogConfig.viewContainerRef = config.viewContainerRef;
- dialogConfig.disableClose = config.disableClose;
- return dialogConfig;
-}
-
-/**
- * FdsDialogService constructor.
- *
- * @param MatDialog The angular material MatDialog.
- * @constructor
- */
-function FdsDialogService(MatDialog) {
- this.dialogService = MatDialog;
-}
-
-FdsDialogService.prototype = {
- contstructor: FdsDialogService,
-
- /**
- * Wrapper function over the open() method in MatDialog.
- * Opens a modal dialog containing the given component.
- *
- * @param component The angular ComponentType<T>.
- * @param config The angular material MatDialogConfig.
- *
- * @returns {MatDialoRef} The reference to the dialog.
- */
- open: function (component, config) {
- return this.dialogService.open(component, config);
- },
-
- /**
- * Wrapper function over the closeAll() method in MatDialog.
- * Closes all of the currently-open dialogs.
- */
- closeAll: function () {
- this.dialogService.closeAll();
- },
-
- /**
- * Opens a confirm dialog with the provided config.
- *
- * @param config IConfirmConfig {
- * message?: string;
- * title?: string;
- * dialogRef?: MatDialoRef;
- * viewContainerRef?: ViewContainerRef;
- * disableClose?: boolean;
- * acceptButton?: string;
- * acceptButtonColor?: string;
- * cancelButton?: string;
- * cancelButtonColor?: string;
- * }
- *
- * @returns {MatDialoRef} The reference to the dialog.
- */
- openConfirm: function (config) {
- var dialogConfig = createConfig(config);
- var dialogRef = this.dialogService.open(FdsConfirmDialogComponent, dialogConfig);
- var confirmDialogComponent = dialogRef.componentInstance;
- confirmDialogComponent.dialogRef = dialogRef;
- if (config.title) {
- confirmDialogComponent.title = config.title;
- }
- if (config.message) {
- confirmDialogComponent.message = config.message;
- }
- if (config.acceptButton) {
- confirmDialogComponent.acceptButton = config.acceptButton;
- }
- if (config.acceptButtonColor) {
- confirmDialogComponent.acceptButtonColor = config.acceptButtonColor;
- }
- if (config.cancelButton) {
- confirmDialogComponent.cancelButton = config.cancelButton;
- }
- if (config.cancelButtonColor) {
- confirmDialogComponent.cancelButtonColor = config.cancelButtonColor;
- }
- return dialogRef;
- },
-}
-
-FdsDialogService.parameters = [ngMaterial.MatDialog];
-
-module.exports = {
- IDialogConfig: IDialogConfig,
- IConfirmConfig: IConfirmConfig,
- FdsDialogService: FdsDialogService
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/fluid-design-system.module.js
----------------------------------------------------------------------
diff --git a/platform/core/fluid-design-system.module.js b/platform/core/fluid-design-system.module.js
deleted file mode 100644
index 7a7aaec..0000000
--- a/platform/core/fluid-design-system.module.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var $ = require('jquery');
-var ngCore = require('@angular/core');
-var ngFlex = require('@angular/flex-layout');
-var ngMaterial = require('@angular/material');
-var ngCommon = require('@angular/common');
-var ngPlatformBrowser = require('@angular/platform-browser');
-var ngAnimations = require('@angular/platform-browser/animations');
-var covalentCore = require('@covalent/core');
-var fdsDialogsModule = require('@fluid-design-system/dialogs');
-var fdsSnackBarsModule = require('@fluid-design-system/snackbars');
-
-/**
- * FluidDesignSystemModule constructor.
- *
- * @constructor
- */
-function FluidDesignSystemModule() {
- $(document).ready(function () {
- //add fds attr to body tag to allow fine grain style overrides
- document.body.setAttribute('fds', '');
-
- //override the hover styles for checkbox borders
- $(document.body).on('mouseenter', '.mat-checkbox-inner-container', function () {
- $(this).find('.mat-checkbox-frame').css('border-color', '#1491C1');
- });
- $(document.body).on('mouseleave', '.mat-checkbox-inner-container', function () {
- $(this).find('.mat-checkbox-frame').css('border-color', '#DDDDDD');
- });
- });
-};
-
-FluidDesignSystemModule.prototype = {
- constructor: FluidDesignSystemModule
-};
-
-FluidDesignSystemModule.annotations = [
- new ngCore.NgModule({
- imports: [
- ngFlex.FlexLayoutModule,
- ngAnimations.BrowserAnimationsModule,
- ngCommon.CommonModule,
- ngPlatformBrowser.BrowserModule,
- ngMaterial.MatAutocompleteModule,
- ngMaterial.MatButtonModule,
- ngMaterial.MatButtonToggleModule,
- ngMaterial.MatCardModule,
- ngMaterial.MatCheckboxModule,
- ngMaterial.MatChipsModule,
- ngMaterial.MatDatepickerModule,
- ngMaterial.MatDialogModule,
- ngMaterial.MatExpansionModule,
- ngMaterial.MatFormFieldModule,
- ngMaterial.MatGridListModule,
- ngMaterial.MatIconModule,
- ngMaterial.MatInputModule,
- ngMaterial.MatListModule,
- ngMaterial.MatMenuModule,
- ngMaterial.MatProgressBarModule,
- ngMaterial.MatProgressSpinnerModule,
- ngMaterial.MatRadioModule,
- ngMaterial.MatSelectModule,
- ngMaterial.MatSlideToggleModule,
- ngMaterial.MatSliderModule,
- ngMaterial.MatSidenavModule,
- ngMaterial.MatSnackBarModule,
- ngMaterial.MatStepperModule,
- ngMaterial.MatTabsModule,
- ngMaterial.MatToolbarModule,
- ngMaterial.MatTooltipModule,
- ngMaterial.MatPaginatorModule,
- ngMaterial.MatSortModule,
- ngMaterial.MatTableModule,
- covalentCore.CovalentCommonModule,
- covalentCore.CovalentChipsModule,
- covalentCore.CovalentDataTableModule,
- covalentCore.CovalentDialogsModule,
- fdsDialogsModule.FdsDialogsModule,
- fdsSnackBarsModule.FdsSnackBarsModule,
- covalentCore.CovalentExpansionPanelModule,
- covalentCore.CovalentLoadingModule,
- covalentCore.CovalentMenuModule,
- covalentCore.CovalentNotificationsModule,
- covalentCore.CovalentPagingModule,
- covalentCore.CovalentSearchModule,
- covalentCore.CovalentStepsModule
- ],
- exports: [
- ngFlex.FlexLayoutModule,
- ngAnimations.BrowserAnimationsModule,
- ngCommon.CommonModule,
- ngPlatformBrowser.BrowserModule,
- ngMaterial.MatAutocompleteModule,
- ngMaterial.MatButtonModule,
- ngMaterial.MatButtonToggleModule,
- ngMaterial.MatCardModule,
- ngMaterial.MatCheckboxModule,
- ngMaterial.MatChipsModule,
- ngMaterial.MatDatepickerModule,
- ngMaterial.MatDialogModule,
- ngMaterial.MatExpansionModule,
- ngMaterial.MatFormFieldModule,
- ngMaterial.MatGridListModule,
- ngMaterial.MatIconModule,
- ngMaterial.MatInputModule,
- ngMaterial.MatListModule,
- ngMaterial.MatMenuModule,
- ngMaterial.MatProgressBarModule,
- ngMaterial.MatProgressSpinnerModule,
- ngMaterial.MatRadioModule,
- ngMaterial.MatSelectModule,
- ngMaterial.MatSlideToggleModule,
- ngMaterial.MatSliderModule,
- ngMaterial.MatSidenavModule,
- ngMaterial.MatSnackBarModule,
- ngMaterial.MatStepperModule,
- ngMaterial.MatTabsModule,
- ngMaterial.MatToolbarModule,
- ngMaterial.MatTooltipModule,
- ngMaterial.MatPaginatorModule,
- ngMaterial.MatSortModule,
- ngMaterial.MatTableModule,
- covalentCore.CovalentCommonModule,
- covalentCore.CovalentChipsModule,
- covalentCore.CovalentDataTableModule,
- covalentCore.CovalentDialogsModule,
- fdsDialogsModule.FdsDialogsModule,
- fdsSnackBarsModule.FdsSnackBarsModule,
- covalentCore.CovalentExpansionPanelModule,
- covalentCore.CovalentLoadingModule,
- covalentCore.CovalentMenuModule,
- covalentCore.CovalentNotificationsModule,
- covalentCore.CovalentPagingModule,
- covalentCore.CovalentSearchModule,
- covalentCore.CovalentStepsModule
- ]
- })
-];
-module.exports = FluidDesignSystemModule;
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/coaster/_coaster.component.scss
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/coaster/_coaster.component.scss b/platform/core/snackbars/coaster/_coaster.component.scss
deleted file mode 100644
index b207c8d..0000000
--- a/platform/core/snackbars/coaster/_coaster.component.scss
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-body[fds] snack-bar-container {
- background: #FFFFFF;
- padding: 0;
- box-shadow: 0px 0px 3px 0px rgba(19, 145, 193, 1);
-}
-
-fds-snackbar-title mat-icon.mat-icon.mat-primary.material-icons {
- font-size: 10px;
- height: 10px;
- width: 10px;
- line-height: 10px;
- color: $grey3;
-}
-
-.fds-coaster-message {
- font-size: 12px;
-}
-
-.fds-snackbar-title {
- font-size: 14px;
-}
-
-.fds-snackbar-title i {
- font-size: 24px;
-}
-
-.fds-coaster-icon {
- position: absolute;
- top: 24px;
- left: 15px;
-}
-
-.coaster-close-icon {
- height: 10px !important;
- width: 10px !important;
- line-height: 10px !important;
- right: 10px;
- position: absolute !important;
- top: 10px;
-}
-
-.fds-snackbar-wrapper {
- border-radius: 2px;
- border-width: 1px;
- border-style: solid;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/coaster/coaster.component.html
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/coaster/coaster.component.html b/platform/core/snackbars/coaster/coaster.component.html
deleted file mode 100644
index 8b8414b..0000000
--- a/platform/core/snackbars/coaster/coaster.component.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You 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.
--->
-
-<fds-snackbar>
- <fds-snackbar-title *ngIf="title">
- <button class="coaster-close-icon" mat-icon-button (click)="cancel()">
- <mat-icon color="primary">close</mat-icon>
- </button>
- <i *ngIf="icon" class="{{icon}} fds-coaster-icon" aria-hidden="true"></i>
- <div class="ellipsis" fxLayout="row" title="{{title}}" fxLayoutAlign="space-between center">
- {{title}}
- </div>
- </fds-snackbar-title>
- <fds-snackbar-content title="{{message}}" class="fds-coaster-message ellipsis tc-grey-700">
- {{message}}
- </fds-snackbar-content>
- <fds-snackbar-actions>
- </fds-snackbar-actions>
-</fds-snackbar>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/coaster/coaster.component.js
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/coaster/coaster.component.js b/platform/core/snackbars/coaster/coaster.component.js
deleted file mode 100644
index 0213f2e..0000000
--- a/platform/core/snackbars/coaster/coaster.component.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-var $ = require('jquery');
-
-/**
- * FdsCoasterComponent constructor.
- *
- * @constructor
- */
-function FdsCoasterComponent() {
- this.title = '';
- this.message = '';
- this.icon = '';
- this.color = '';
- this.snackBarRef = undefined;
- this.viewContainerRef = undefined;
-};
-
-FdsCoasterComponent.prototype = {
- constructor: FdsCoasterComponent,
-
- /**
- * Initialize the component.
- */
- ngAfterViewChecked: function () {
- $('.fds-snackbar-wrapper').css('border-color', this.color);
- $('.fds-snackbar-title').css('color', this.color);
- $('.fds-coaster-icon').css('color', this.color);
-
- if (this.icon) {
- $('.fds-snackbar-wrapper').css('padding', '15px 15px 15px 45px');
- } else {
- $('.fds-snackbar-wrapper').css('padding', '15px 15px 15px 15px');
- }
- },
-
- /**
- * Close the snackbar and send a cancel response to any subscribers.
- */
- cancel: function () {
- this.snackBarRef.dismiss(false);
- }
-};
-
-FdsCoasterComponent.annotations = [
- new ngCore.Component({
- selector: 'fds-coaster',
- template: require('./coaster.component.html!text')
- })
-];
-
-FdsCoasterComponent.parameters = [];
-
-module.exports = FdsCoasterComponent;
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/coaster/coaster.component.spec.js
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/coaster/coaster.component.spec.js b/platform/core/snackbars/coaster/coaster.component.spec.js
deleted file mode 100644
index 0959791..0000000
--- a/platform/core/snackbars/coaster/coaster.component.spec.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var CoasterComponent = require('@fluid-design-system/coaster-component');
-
-describe('coasterComponent isolated unit tests', function () {
- var coaster;
-
- beforeEach(function () {
- coaster = new CoasterComponent();
- });
-
- it('should have defined coaster', function () {
- coaster.ngAfterViewChecked();
- //assertions
- expect(coaster).toBeDefined();
- });
-});
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/fds-snackbar.component.html
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/fds-snackbar.component.html b/platform/core/snackbars/fds-snackbar.component.html
deleted file mode 100644
index f3c6def..0000000
--- a/platform/core/snackbars/fds-snackbar.component.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You 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.
--->
-
-<div class="fds-snackbar-wrapper">
- <div class="fds-snackbar-title md-title" *ngIf="snackBarTitle.length > 0">
- <ng-content select="fds-snackbar-title"></ng-content>
- </div>
- <div class="fds-snackbar-content" *ngIf="snackBarContent.length > 0">
- <ng-content select="fds-snackbar-content"></ng-content>
- </div>
- <div class="fds-snackbar-actions" *ngIf="snackBarActions.length > 0" layout="row">
- <span flex></span>
- <ng-content select="fds-snackbar-actions"></ng-content>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/fds-snackbar.component.js
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/fds-snackbar.component.js b/platform/core/snackbars/fds-snackbar.component.js
deleted file mode 100644
index 88974b8..0000000
--- a/platform/core/snackbars/fds-snackbar.component.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-
-var FdsSnackBarTitleDirective = new ngCore.Class({
- extends: ngCore.Directive({selector: 'fds-snackbar-title'}),
- constructor: function () {
- }
-});
-var FdsSnackBarContentDirective = new ngCore.Class({
- extends: ngCore.Directive({selector: 'fds-snackbar-content'}),
- constructor: function () {
- }
-});
-var FdsSnackBarActionsDirective = new ngCore.Class({
- extends: ngCore.Directive({selector: 'fds-snackbar-actions'}),
- constructor: function () {
- }
-});
-
-/**
- * FdsSnackBarComponent constructor
- *
- * @constructor
- */
-function FdsSnackBarComponent() {
- this.snackBarTitle = '';
- this.snackBarContent = '';
- this.snackBarActions = '';
-};
-
-FdsSnackBarComponent.prototype = {
- constructor: FdsSnackBarComponent,
-
- /**
- * Respond after Angular projects external content into the component's view.
- */
- ngAfterContentInit: function () {
- if (this.snackBarTitle.length > 1) {
- throw new Error('Duplicate fds-snackbar-title component at in fds-snackbar.');
- }
- if (this.snackBarContent.length > 1) {
- throw new Error('Duplicate fds-snackbar-content component at in fds-snackbar.');
- }
- if (this.snackBarActions.length > 1) {
- throw new Error('Duplicate fds-snackbar-actions component at in fds-snackbar.');
- }
- }
-}
-
-FdsSnackBarComponent.annotations = [
- new ngCore.Component({
- selector: 'fds-snackbar',
- template: require('./fds-snackbar.component.html!text'),
- queries: {
- snackBarTitle: new ngCore.ContentChildren(FdsSnackBarTitleDirective),
- snackBarContent: new ngCore.ContentChildren(FdsSnackBarContentDirective),
- snackBarActions: new ngCore.ContentChildren(FdsSnackBarActionsDirective)
- }
- })
-];
-
-FdsSnackBarComponent.parameters = [];
-
-module.exports = {
- FdsSnackBarTitleDirective: FdsSnackBarTitleDirective,
- FdsSnackBarContentDirective: FdsSnackBarContentDirective,
- FdsSnackBarActionsDirective: FdsSnackBarActionsDirective,
- FdsSnackBarComponent: FdsSnackBarComponent
-};
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/fds-snackbar.component.spec.js
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/fds-snackbar.component.spec.js b/platform/core/snackbars/fds-snackbar.component.spec.js
deleted file mode 100644
index 355af94..0000000
--- a/platform/core/snackbars/fds-snackbar.component.spec.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var fdsSnackBarComponent = require('@fluid-design-system/snackbar-component');
-
-describe('FdsSnackBarComponent isolated unit tests', function () {
- var fdsSnackBar;
-
- beforeEach(function () {
- fdsSnackBar = new fdsSnackBarComponent.FdsSnackBarComponent();
- });
-
- it('should have defined fdsSnackBar', function () {
- fdsSnackBar.ngAfterContentInit();
- //assertions
- expect(fdsSnackBar).toBeDefined();
- });
-});
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/fds-snackbars.module.js
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/fds-snackbars.module.js b/platform/core/snackbars/fds-snackbars.module.js
deleted file mode 100644
index 657b1ae..0000000
--- a/platform/core/snackbars/fds-snackbars.module.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-var ngMaterial = require('@angular/material');
-var ngFlex = require('@angular/flex-layout');
-var ngCommon = require('@angular/common');
-var ngForms = require('@angular/forms');
-var fdsSnackBarComponentModule = require('@fluid-design-system/snackbar-component');
-var fdsSnackBarServiceModule = require('@fluid-design-system/snackbar-service');
-var FdsCoasterComponent = require('@fluid-design-system/coaster-component');
-
-var FDS_SNACKBARS = [
- fdsSnackBarComponentModule.FdsSnackBarComponent,
- fdsSnackBarComponentModule.FdsSnackBarTitleDirective,
- fdsSnackBarComponentModule.FdsSnackBarActionsDirective,
- fdsSnackBarComponentModule.FdsSnackBarContentDirective,
- FdsCoasterComponent
-];
-
-var FDS_SNACKBARS_ENTRY_COMPONENTS = [
- FdsCoasterComponent
-];
-
-/**
- * FdsSnackBarsModule constructor.
- *
- * @constructor
- */
-function FdsSnackBarsModule() {
-
-};
-
-FdsSnackBarsModule.prototype = {
- constructor: FdsSnackBarsModule
-};
-
-FdsSnackBarsModule.annotations = [
- new ngCore.NgModule({
- imports: [
- ngFlex.FlexLayoutModule,
- ngForms.FormsModule,
- ngCommon.CommonModule,
- ngMaterial.MatSnackBarModule,
- ngMaterial.MatInputModule,
- ngMaterial.MatButtonModule,
- ngMaterial.MatIconModule
- ],
- declarations: [
- FDS_SNACKBARS
- ],
- exports: [
- FDS_SNACKBARS
- ],
- providers: [
- fdsSnackBarServiceModule.FdsSnackBarService
- ],
- entryComponents: [
- FDS_SNACKBARS_ENTRY_COMPONENTS
- ]
- })
-];
-
-module.exports = {
- FdsSnackBarsModule: FdsSnackBarsModule,
- ICoasterConfig: fdsSnackBarServiceModule.ICoasterConfig,
- FdsSnackBarService: fdsSnackBarServiceModule.FdsSnackBarService,
- FdsSnackBarComponent: fdsSnackBarComponentModule.FdsSnackBarComponent,
- FdsSnackBarTitleDirective: fdsSnackBarComponentModule.FdsSnackBarTitleDirective,
- FdsSnackBarContentDirective: fdsSnackBarComponentModule.FdsSnackBarContentDirective,
- FdsSnackBarActionsDirective: fdsSnackBarComponentModule.FdsSnackBarActionsDirective,
- FdsCoasterComponent: FdsCoasterComponent
-};
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/snackbars/services/snackbar.service.js
----------------------------------------------------------------------
diff --git a/platform/core/snackbars/services/snackbar.service.js b/platform/core/snackbars/services/snackbar.service.js
deleted file mode 100644
index 433db11..0000000
--- a/platform/core/snackbars/services/snackbar.service.js
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var ngCore = require('@angular/core');
-var ngMaterial = require('@angular/material');
-var FdsCoasterComponent = require('@fluid-design-system/coaster-component');
-var $ = require('jquery');
-
-var ISnackBarConfig = new ngCore.Class({
- extends: ngMaterial.MatSnackBarConfig,
- constructor: function () {
- this.title = '';
- this.message = '';
- this.snackBarRef = undefined;
- this.viewContainerRef = undefined;
- }
-});
-
-var ICoasterConfig = new ngCore.Class({
- extends: ISnackBarConfig,
- constructor: function () {
- this.icon = '';
- this.color = '';
- }
-});
-
-/**
- * FdsSnackBarService constructor.
- *
- * @param MatSnackBar The angular material MatSnackBar.
- * @constructor
- */
-function FdsSnackBarService(MatSnackBar) {
- this.snackBarService = MatSnackBar;
-}
-
-FdsSnackBarService.prototype = {
- contstructor: FdsSnackBarService,
-
- /**
- * Wrapper function over the open() method in MatSnackBar.
- *
- * @param message The message to show in the snackbar.
- * @param action The label for the snackbar action.
- * @param config Additional configuration options for the snackbar.
- *
- * @returns {MatSnackBarRef} The reference to the snackbar.
- */
- open: function (message, action, config) {
- return this.snackBarService.open(message, action, config);
- },
-
- /**
- * Wrapper function over the openFromComponent() method in MatSnackBar.
- * Opens a snackbar containing the given component.
- *
- * @param component The angular ComponentType<T>.
- * @param config The angular material MatSnackBarConfig.
- *
- * @returns {MatSnackBarRef} The reference to the snackbar.
- */
- openFromComponent: function (component, config) {
- return this.snackBarService.openFromComponent(component, config);
- },
-
- /**
- * Wrapper function over the dismiss() method in MatSnackBar.
- * Dismisses the currently-open snackbar.
- */
- dismiss: function () {
- this.snackBarService.dismiss();
- },
-
- /**
- * Opens a coaster snackbar with the provided config.
- *
- * @param config ICoasterConfig {
- * message?: string;
- * title?: string;
- * snackBarRef?: MatSnackBarRef;
- * viewContainerRef?: ViewContainerRef;
- * icon?: string;
- * color?: string;
- * }
- *
- * @returns {MatSnackBarRef} The reference to the snackbar.
- */
- openCoaster: function (config) {
- var snackBarConfig = new ICoasterConfig();
- snackBarConfig.verticalPosition = config.verticalPosition;
- snackBarConfig.horizontalPosition = config.horizontalPosition;
- snackBarConfig.duration = config.duration;
- var snackBarRef = this.snackBarService.openFromComponent(FdsCoasterComponent, snackBarConfig);
- var coasterComponent = snackBarRef.instance;
- coasterComponent.snackBarRef = snackBarRef;
- if (config.title) {
- coasterComponent.title = config.title;
- }
- if (config.message) {
- coasterComponent.message = config.message;
- }
- if (config.icon) {
- coasterComponent.icon = config.icon;
- }
- if (config.color) {
- coasterComponent.color = config.color;
- }
- return snackBarRef;
- },
-}
-
-FdsSnackBarService.parameters = [ngMaterial.MatSnackBar];
-
-module.exports = {
- ISnackBarConfig: ISnackBarConfig,
- ICoasterConfig: ICoasterConfig,
- FdsSnackBarService: FdsSnackBarService
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/core/theming/_all-theme.scss
----------------------------------------------------------------------
diff --git a/platform/core/theming/_all-theme.scss b/platform/core/theming/_all-theme.scss
deleted file mode 100644
index 66bd9f9..0000000
--- a/platform/core/theming/_all-theme.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You 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 '../../../../@angular/material/theming';
-@import '../../../../@covalent/core/theming/all-theme';
-@import '../common/styles/buttons';
-@import '../common/styles/expansionPanels';
-@import '../common/styles/menus';
-
-// Create a theme.
-@mixin fds-theme($theme) {
-
- // Include theme styles for core and each component used in your app.
- // Alternatively, you can import and @include the theme mixins for each component
- // that you are using.
- @include angular-material-theme($theme);
- @include covalent-theme($theme);
- @include fds-buttons-theme($theme);
- @include fds-expansion-panels-theme($theme);
- @include fds-menus-theme($theme);
-
-}
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/systemjs-angular-loader.js
----------------------------------------------------------------------
diff --git a/platform/systemjs-angular-loader.js b/platform/systemjs-angular-loader.js
deleted file mode 100644
index 8e33bb5..0000000
--- a/platform/systemjs-angular-loader.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-var templateUrlRegex = /templateUrl\s*:(\s*['"`](.*?)['"`]\s*)/gm;
-var stylesRegex = /styleUrls *:(\s*\[[^\]]*?\])/g;
-var stringRegex = /(['`"])((?:[^\\]\\\1|.)*?)\1/g;
-
-module.exports.translate = function (load) {
- if (load.source.indexOf('moduleId') != -1) return load;
-
- var url = document.createElement('a');
- url.href = load.address;
-
- var basePathParts = url.pathname.split('/');
-
- basePathParts.pop();
- var basePath = basePathParts.join('/');
-
- var baseHref = document.createElement('a');
- baseHref.href = this.baseURL;
- baseHref = baseHref.pathname;
-
- if (!baseHref.startsWith('/base/')) { // it is not karma
- basePath = basePath.replace(baseHref, '');
- }
-
- load.source = load.source
- .replace(templateUrlRegex, function (match, quote, url) {
- var resolvedUrl = url;
-
- if (url.startsWith('.')) {
- resolvedUrl = basePath + url.substr(1);
- }
-
- return 'templateUrl: "' + resolvedUrl + '"';
- })
- .replace(stylesRegex, function (match, relativeUrls) {
- var urls = [];
-
- while ((match = stringRegex.exec(relativeUrls)) !== null) {
- if (match[2].startsWith('.')) {
- urls.push('"' + basePath + match[2].substr(1) + '"');
- } else {
- urls.push('"' + match[2] + '"');
- }
- }
-
- return "styleUrls: [" + urls.join(', ') + "]";
- });
-
- return load;
-};
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/platform/systemjs.spec.config.js
----------------------------------------------------------------------
diff --git a/platform/systemjs.spec.config.js b/platform/systemjs.spec.config.js
deleted file mode 100644
index 2888d96..0000000
--- a/platform/systemjs.spec.config.js
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-(function (global) {
- System.config({
- paths: {
- // paths serve as alias
- 'npm:': 'fds/node_modules/'
- },
- // map tells the System loader where to look for things
- map: {
- 'text': 'npm:systemjs-plugin-text/text.js',
- 'app': './platform',
-
- // jquery
- 'jquery': 'npm:jquery/dist/jquery.min.js',
-
- // Angular
- '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
- '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
- '@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js',
- '@angular/common/http/testing': 'npm:@angular/common/bundles/common-http-testing.umd.js',
- '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
- '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
- '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
- '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
- '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
- '@angular/flex-layout': 'npm:@angular/flex-layout/bundles/flex-layout.umd.js',
- '@angular/material': 'npm:@angular/material/bundles/material.umd.js',
- '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
- '@angular/cdk': 'npm:@angular/cdk/bundles/cdk.umd.js',
- '@angular/cdk/a11y': 'npm:@angular/cdk/bundles/cdk-a11y.umd.js',
- '@angular/cdk/accordion': 'npm:@angular/cdk/bundles/cdk-accordion.umd.js',
- '@angular/cdk/layout': 'npm:@angular/cdk/bundles/cdk-layout.umd.js',
- '@angular/cdk/collections': 'npm:@angular/cdk/bundles/cdk-collections.umd.js',
- '@angular/cdk/observers': 'npm:@angular/cdk/bundles/cdk-observers.umd.js',
- '@angular/cdk/overlay': 'npm:@angular/cdk/bundles/cdk-overlay.umd.js',
- '@angular/cdk/platform': 'npm:@angular/cdk/bundles/cdk-platform.umd.js',
- '@angular/cdk/portal': 'npm:@angular/cdk/bundles/cdk-portal.umd.js',
- '@angular/cdk/keycodes': 'npm:@angular/cdk/bundles/cdk-keycodes.umd.js',
- '@angular/cdk/bidi': 'npm:@angular/cdk/bundles/cdk-bidi.umd.js',
- '@angular/cdk/coercion': 'npm:@angular/cdk/bundles/cdk-coercion.umd.js',
- '@angular/cdk/table': 'npm:@angular/cdk/bundles/cdk-table.umd.js',
- '@angular/cdk/rxjs': 'npm:@angular/cdk/bundles/cdk-rxjs.umd.js',
- '@angular/cdk/scrolling': 'npm:@angular/cdk/bundles/cdk-scrolling.umd.js',
- '@angular/cdk/stepper': 'npm:@angular/cdk/bundles/cdk-stepper.umd.js',
- '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
- '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
- '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
-
- // Covalent
- '@covalent/core': 'npm:@covalent/core/bundles/core.umd.min.js',
-
- // other libraries
- 'rxjs': 'npm:rxjs',
- 'zone.js': 'npm:zone.js/dist/zone.js',
- // 'core-js': 'npm:core-js/client/shim.min.js',
- // 'superagent': 'npm:superagent/superagent.js',
- // 'querystring': 'npm:querystring',
- // 'tslib': 'npm:tslib/tslib.js',
-
- // Fluid Design System
- '@fluid-design-system/core': 'platform/core/fluid-design-system.module.js',
- '@fluid-design-system/dialogs': 'platform/core/dialogs/fds-dialogs.module.js',
- '@fluid-design-system/dialog-component': 'platform/core/dialogs/fds-dialog.component.js',
- '@fluid-design-system/dialog-service': 'platform/core/dialogs/services/dialog.service.js',
- '@fluid-design-system/confirm-dialog-component': 'platform/core/dialogs/confirm-dialog/confirm-dialog.component.js',
- '@fluid-design-system/snackbars': 'platform/core/snackbars/fds-snackbars.module.js',
- '@fluid-design-system/snackbar-component': 'platform/core/snackbars/fds-snackbar.component.js',
- '@fluid-design-system/snackbar-service': 'platform/core/snackbars/services/snackbar.service.js',
- '@fluid-design-system/coaster-component': 'platform/core/snackbars/coaster/coaster.component.js',
- '@fluid-design-system/common/storage-service': 'platform/core/common/services/fds-storage.service.js'
- },
- // packages tells the System loader how to load when no filename and/or no extension
- packages: {
- app: {
- defaultExtension: 'js',
- meta: {
- './*.js': {
- loader: 'fds/systemjs-angular-loader.js'
- }
- }
- },
- 'fds/systemjs-angular-loader.js': {
- loader: false
- },
- 'rxjs': {
- defaultExtension: 'js'
- }
- }
- });
-})(this);
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/scripts/clean-install
----------------------------------------------------------------------
diff --git a/scripts/clean-install b/scripts/clean-install
new file mode 100644
index 0000000..01cc520
--- /dev/null
+++ b/scripts/clean-install
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -e
+
+# build
+bash ./scripts/clean-install-skipTests
+cd ./target
+
+# test
+npm test
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/scripts/clean-install-skipTests
----------------------------------------------------------------------
diff --git a/scripts/clean-install-skipTests b/scripts/clean-install-skipTests
new file mode 100644
index 0000000..1d4e4d7
--- /dev/null
+++ b/scripts/clean-install-skipTests
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -e
+
+# build
+rm -rf ./target
+mkdir target
+cp -R ./src/demo-app/ ./target/demo-app
+cp -R ./src/platform/ ./target/platform
+cp package.json ./target/package.json
+cp ./src/demo-app/index.html ./target/index.html
+cp ./test/karma.conf.js ./target/karma.conf.js
+cp ./test/karma-test-shim.js ./target/karma-test-shim.js
+cp Gruntfile.js ./target/Gruntfile.js
+cp ./src/demo-app/gh-pages.* ./target/
+cd ./target
+npm install
+npm run build:demo-app
+npm run build:platform
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/scripts/deploy-gh-pages
----------------------------------------------------------------------
diff --git a/scripts/deploy-gh-pages b/scripts/deploy-gh-pages
new file mode 100644
index 0000000..2c0ec13
--- /dev/null
+++ b/scripts/deploy-gh-pages
@@ -0,0 +1,19 @@
+#!/bin/bash
+npm run clean:install
+echo 'Build Complete'
+git checkout gh-pages
+echo 'Created and Checked out gh-pages branch'
+
+cp -f ./target/gh-pages.package.json ./package.json
+npm install
+mkdir ./node_modules/nifi-fds
+cp -Rf ./target/platform/ ./node_modules/nifi-fds/platform
+cp -Rf ./target/demo-app/ ./demo-app
+cp -f ./target/gh-pages.index.html ./index.html
+cp -f ./target/gh-pages.systemjs.config.js ./demo-app/systemjs.config.js
+echo 'Tracking files'
+git add -A .
+echo 'Commiting files'
+git commit -m 'gh-pages update'
+echo 'Pushing files into gh-pages branch'
+git push apache gh-pages:gh-pages
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/scripts/dev-install
----------------------------------------------------------------------
diff --git a/scripts/dev-install b/scripts/dev-install
new file mode 100644
index 0000000..fe286ef
--- /dev/null
+++ b/scripts/dev-install
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -e
+
+# build
+bash ./scripts/dev-install-skipTests
+cd ./target
+
+# test
+npm run test:dev
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/scripts/dev-install-skipTests
----------------------------------------------------------------------
diff --git a/scripts/dev-install-skipTests b/scripts/dev-install-skipTests
new file mode 100644
index 0000000..a5c6aa6
--- /dev/null
+++ b/scripts/dev-install-skipTests
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -e
+
+# build
+cp -R ./src/demo-app/ ./target/demo-app
+cp -R ./src/platform/ ./target/platform
+cp package.json ./target/package.json
+cp ./src/demo-app/index.html ./target/index.html
+cp ./test/karma.conf.js ./target/karma.conf.js
+cp ./test/karma-test-shim.js ./target/karma-test-shim.js
+cp Gruntfile.js ./target/Gruntfile.js
+cp ./src/demo-app/gh-pages.* ./target/
+cd ./target
+npm install
+npm run build:demo-app
+npm run build:platform
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.html
----------------------------------------------------------------------
diff --git a/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.html b/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.html
new file mode 100644
index 0000000..c283684
--- /dev/null
+++ b/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.html
@@ -0,0 +1,18 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You 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.
+-->
+
+<div>Hello Dialog!</div>
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/c85638d8/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.js
----------------------------------------------------------------------
diff --git a/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.js b/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.js
new file mode 100644
index 0000000..d3ead2b
--- /dev/null
+++ b/src/demo-app/components/fluid-design-system/dialogs/demo/fds-demo-dialog.js
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+var ngMaterial = require('@angular/material');
+var ngCore = require('@angular/core');
+
+/**
+ * NfRegistryEditBucketPolicy constructor.
+ *
+ * @param nfRegistryApi The api service.
+ * @param nfRegistryService The nf-registry.service module.
+ * @param activatedRoute The angular route module.
+ * @param matDialogRef The angular material dialog ref.
+ * @param data The data passed into this component.
+ * @constructor
+ */
+function FdsDemoDialog(matDialogRef, data) {
+ // Services
+ this.dialogRef = matDialogRef;
+ this.data = data;
+};
+
+FdsDemoDialog.prototype = {
+ constructor: FdsDemoDialog,
+
+ /**
+ * Cancel creation of a new policy and close dialog.
+ */
+ cancel: function () {
+ this.dialogRef.close();
+ }
+};
+
+FdsDemoDialog.annotations = [
+ new ngCore.Component({
+ template: require('./fds-demo-dialog.html!text')
+ })
+];
+
+FdsDemoDialog.parameters = [
+ ngMaterial.MatDialogRef,
+ ngMaterial.MAT_DIALOG_DATA
+];
+
+module.exports = FdsDemoDialog;