diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 9d84524911..de5fb434ee 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,4 +1,4 @@ - + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 75ff0f9086..a5c0a07ee3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing -We'd love for you to contribute to our source code and to make Collab UI even better than it is today! Below are the guidelines to follow. +We'd love for you to contribute to our source code and to make Momentum UI even better than it is today! Below are the guidelines to follow. ## Table of Contents @@ -18,7 +18,7 @@ We'd love for you to contribute to our source code and to make Collab UI even be ## Got a Question, Issue or Idea? -If you have questions about how to use a component or element in Collab-UI, please look through the documentation first. If you still need help, please direct your questions to the Toolkit Q&A Webex Teams space. [Request an Invite to the Teams space](mailto:toolkit-info@cisco.com?subject=CollabUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20CollabUI%20Q%26A%20Webex%20Teams%20space) +If you have questions about how to use a component or element in Momentum-UI, please look through the documentation first. If you still need help, please direct your questions to the Toolkit Q&A Webex Teams space. [Request an Invite to the Teams space](mailto:toolkit-info@cisco.com?subject=MomentumUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20MomentumUI%20Q%26A%20Webex%20Teams%20space) ### Found an Issue? @@ -32,7 +32,7 @@ Help us to maximize the effort we can spend fixing issues and adding new feature * **Overview of the Issue** - Explain what issue you are seeing and attach a screenshot if possible. * **Motivation for or Use Case** - Explain why this is a bug -* **Collab-UI Version(s)** - What library(ies) and version(s) are you using? +* **Momentum-UI Version(s)** - What library(ies) and version(s) are you using? * **Browsers and Operating System** - Which browsers did you find the problem on? * **Reproduce the Error** - Provide a live example (using [CodeSandbox](https://codesandbox.io/) or [StackBlitz](https://stackblitz.com/)) or a unambiguous set of steps. * **Related Issues** - Has a similar issue been reported before? @@ -41,9 +41,9 @@ Help us to maximize the effort we can spend fixing issues and adding new feature ### Want a Feature? -You can request a new feature by requesting it in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=CollabUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20CollabUI%20Q%26A%20Webex%20Teams%20space). If you would like to implement a new feature then consider what kind of change it is: +You can request a new feature by requesting it in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=MomentumUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20MomentumUI%20Q%26A%20Webex%20Teams%20space). If you would like to implement a new feature then consider what kind of change it is: -* **Major Changes** that you wish to contribute to the project should be discussed first in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=CollabUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20CollabUI%20Q%26A%20Webex%20Teams%20space) so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project. +* **Major Changes** that you wish to contribute to the project should be discussed first in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=MomentumUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20MomentumUI%20Q%26A%20Webex%20Teams%20space) so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project. * **Small Changes** can be crafted and submitted to our [GitHub Repository](https://github.com/momentum-design/momentum-ui-angular/pulls) as a Pull Request. ## Requirements diff --git a/README.md b/README.md index d2c3451058..1a043e850b 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) -> Collab UI +> Momentum UI -Collab UI is a collection of UI libraries for implementing [Momentum Design](https://momentum.design) into web applications and websites. +Momentum UI is a collection of UI libraries for implementing [Momentum Design](https://momentum.design) into web applications and websites. ## Table of Contents diff --git a/angular/CONTRIBUTING.md b/angular/CONTRIBUTING.md index e63e763fa9..b95780cec5 100644 --- a/angular/CONTRIBUTING.md +++ b/angular/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing -##### We'd love for you to contribute to our source code and to make Collab UI Angular even better than it is today! Below are the guidelines to follow. +##### We'd love for you to contribute to our source code and to make Momentum UI Angular even better than it is today! Below are the guidelines to follow. ## Table of Contents diff --git a/angular/README.md b/angular/README.md index 1c79369371..a5caf534e4 100644 --- a/angular/README.md +++ b/angular/README.md @@ -1,4 +1,4 @@ -# Collab UI Angular +# Momentum UI Angular [![CircleCI](https://img.shields.io/circleci/project/github/momentum-ui/momentum-ui/master.svg)](https://circleci.com/gh/momentum-ui/momentum-ui/) ![npm (scoped)](https://img.shields.io/npm/v/@momentum-ui/angular.svg) @@ -6,7 +6,7 @@ > @momentum-ui/angular -Collab UI Angular is a UI framework for implementing Cisco Collaboration Design into web apps and sites. +Momentum UI Angular is a UI framework for implementing Cisco Momentum Design into web apps and sites. ## Table of Contents @@ -17,7 +17,7 @@ Collab UI Angular is a UI framework for implementing Cisco Collaboration Design ## Install -Install and manage the Collab UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/. +Install and manage the Momentum UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/. `npm install @momentum-ui/angular --save` diff --git a/angular/src/docs/app/app.component.ts b/angular/src/docs/app/app.component.ts index 5c77499f70..a49258f73e 100644 --- a/angular/src/docs/app/app.component.ts +++ b/angular/src/docs/app/app.component.ts @@ -4,7 +4,7 @@ import { Component } from '@angular/core'; selector: 'docs-root', template: `
-

Welcome to the Collab UI Toolkit for Angular

+

Welcome to the Momentum UI Toolkit for Angular

`, diff --git a/angular/src/docs/index.html b/angular/src/docs/index.html index 383d6dcb0c..8e0d076908 100644 --- a/angular/src/docs/index.html +++ b/angular/src/docs/index.html @@ -2,7 +2,7 @@ - CollabUiAngularDocs + Momentum UI Angular diff --git a/angular/src/lib/README.md b/angular/src/lib/README.md index 1c79369371..a5caf534e4 100644 --- a/angular/src/lib/README.md +++ b/angular/src/lib/README.md @@ -1,4 +1,4 @@ -# Collab UI Angular +# Momentum UI Angular [![CircleCI](https://img.shields.io/circleci/project/github/momentum-ui/momentum-ui/master.svg)](https://circleci.com/gh/momentum-ui/momentum-ui/) ![npm (scoped)](https://img.shields.io/npm/v/@momentum-ui/angular.svg) @@ -6,7 +6,7 @@ > @momentum-ui/angular -Collab UI Angular is a UI framework for implementing Cisco Collaboration Design into web apps and sites. +Momentum UI Angular is a UI framework for implementing Cisco Momentum Design into web apps and sites. ## Table of Contents @@ -17,7 +17,7 @@ Collab UI Angular is a UI framework for implementing Cisco Collaboration Design ## Install -Install and manage the Collab UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/. +Install and manage the Momentum UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/. `npm install @momentum-ui/angular --save` diff --git a/angular/src/lib/icon/icon.component.ts b/angular/src/lib/icon/icon.component.ts index 67f3f0bbc2..c99ef3f6b3 100644 --- a/angular/src/lib/icon/icon.component.ts +++ b/angular/src/lib/icon/icon.component.ts @@ -106,7 +106,7 @@ export class IconComponent implements OnInit { const lookupIconName = nameWithSize.replace(/^(icon-)/, ''); const iconNameClass = `icon-${lookupIconName}`; - // validate Icon name with Collab Toolkit + // validate Icon name with Momentum Design if ((iconNames).indexOf(lookupIconName) < 0) { this.consoleHandler('name-error', nameWithSize); } diff --git a/angular/src/lib/package.json b/angular/src/lib/package.json index 5131af59c6..2f8ab593b8 100644 --- a/angular/src/lib/package.json +++ b/angular/src/lib/package.json @@ -1,7 +1,7 @@ { "name": "@momentum-ui/angular", "version": "5.2.1", - "description": "The Cisco Collab UI Icons library allows developers to easily incorporate Webex Icons and CSS into any application.", + "description": "The Cisco Momentum UI Icons library allows developers to easily incorporate Webex Icons and CSS into any application.", "homepage": "http://momentum.design/components", "keywords": [ "Angular", @@ -10,7 +10,7 @@ "Webex", "Cisco Spark", "Spark UI", - "Collab UI" + "Momentum UI" ], "schematics": "./schematics/collection.json", "dependencies": { diff --git a/angular/src/lib/topbar/examples/blue.component.ts b/angular/src/lib/topbar/examples/blue.component.ts index 1bd989ea44..b4a9eb6fc2 100644 --- a/angular/src/lib/topbar/examples/blue.component.ts +++ b/angular/src/lib/topbar/examples/blue.component.ts @@ -33,7 +33,7 @@ import { Component } from '@angular/core'; diff --git a/angular/src/lib/topbar/examples/dark.component.ts b/angular/src/lib/topbar/examples/dark.component.ts index 1d1450595a..b09ffd5b25 100644 --- a/angular/src/lib/topbar/examples/dark.component.ts +++ b/angular/src/lib/topbar/examples/dark.component.ts @@ -33,7 +33,7 @@ import { Component } from '@angular/core'; diff --git a/angular/src/lib/topbar/examples/light.component.ts b/angular/src/lib/topbar/examples/light.component.ts index 0ef01a3da7..40e1695fd6 100644 --- a/angular/src/lib/topbar/examples/light.component.ts +++ b/angular/src/lib/topbar/examples/light.component.ts @@ -33,7 +33,7 @@ import { Component } from '@angular/core'; diff --git a/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts b/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts index 80cf4d65d5..662d0dc82b 100644 --- a/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts +++ b/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts @@ -48,9 +48,9 @@ describe('TopbarBrandComponent', () => { }); it('should handle title', () => { - testComponent.title = 'Collab UI'; + testComponent.title = 'Momentum UI'; fixture.detectChanges(); const title = fixture.nativeElement.querySelector('.md-brand__title'); - expect(title.textContent).toEqual('Collab UI'); + expect(title.textContent).toEqual('Momentum UI'); }); }); diff --git a/angular/src/schematics/README.md b/angular/src/schematics/README.md index e46696cbf0..5fa54a6b01 100644 --- a/angular/src/schematics/README.md +++ b/angular/src/schematics/README.md @@ -1,10 +1,10 @@ -# Collab UI Schematics +# Momentum UI Schematics -These schematics provide built in integrations with the Angular CLI features in order to make it easier for users to install and update Collab UI. +These schematics provide built in integrations with the Angular CLI features in order to make it easier for users to install and update Momentum UI. ## `ng add @momentum-ui/angular` -This schematic wires up with the Angular CLI to support automatically adding Collab UI to an Angular CLI project. +This schematic wires up with the Angular CLI to support automatically adding Momentum UI to an Angular CLI project. ##### How it works diff --git a/angular/src/schematics/src/add/index.ts b/angular/src/schematics/src/add/index.ts index e6dd3dde71..84884c9d70 100644 --- a/angular/src/schematics/src/add/index.ts +++ b/angular/src/schematics/src/add/index.ts @@ -28,13 +28,13 @@ if (existsSync(join(__dirname, '../../package.json'))) { export default function(options: any): Rule { return chain([ - addCollabUIDependencies(options), + addMomentumUIDependencies(options), addModuleImport(options), - addCollabUIAppStyles(options), + addMomentumUIAppStyles(options), ]); } -function addCollabUIDependencies(options: Schema) { +function addMomentumUIDependencies(options: Schema) { return (tree: Tree, context: SchematicContext) => { addPackageToPackageJson( tree, @@ -72,7 +72,7 @@ function addModuleImport(options: Schema) { }; } -function addCollabUIAppStyles(options: Schema) { +function addMomentumUIAppStyles(options: Schema) { return (host: Tree) => { const workspace = getWorkspace(host); const project = getProjectFromWorkspace(workspace, options.project); diff --git a/angular/src/schematics/src/add/schema.json b/angular/src/schematics/src/add/schema.json index a962ad85b1..2b0bf6bf7f 100644 --- a/angular/src/schematics/src/add/schema.json +++ b/angular/src/schematics/src/add/schema.json @@ -1,19 +1,19 @@ { "$schema": "http://json-schema.org/schema", - "id": "SchematicsCollabUIAdd", - "title": "CollabUI Add Options Schema", + "id": "SchematicsMomentumUIAdd", + "title": "MomentumUI Add Options Schema", "type": "object", "properties": { "project": { "type": "string", - "description": "The project to add Collab UI to.", + "description": "The project to add Momentum UI to.", "$default": { "$source": "projectName" } }, "module": { "type": "string", - "description": "The module file to add Collab UI to, should be relative to project source directory.", + "description": "The module file to add Momentum UI to, should be relative to project source directory.", "alias": "m", "default": "src/app/app.module.ts" }, diff --git a/angular/src/schematics/src/collection.json b/angular/src/schematics/src/collection.json index 9c12afba63..2f338a4a22 100644 --- a/angular/src/schematics/src/collection.json +++ b/angular/src/schematics/src/collection.json @@ -2,12 +2,12 @@ "$schema": "node_modules/@angular-devkit/schematics/collection-schema.json", "schematics": { "ng-add": { - "description": "Add Collab UI to your project", + "description": "Add Momentum UI to your project", "factory": "./add", "schema": "./add/schema.json" }, "nav": { - "description": "Create Collab UI navigation", + "description": "Create Momentum UI navigation", "factory": "./generate/nav", "schema": "./generate/nav/schema.json", "aliases": ["momentum-nav", "momentumNav"] diff --git a/angular/src/schematics/src/generate/nav/schema.json b/angular/src/schematics/src/generate/nav/schema.json index 068e70b203..154357eb83 100644 --- a/angular/src/schematics/src/generate/nav/schema.json +++ b/angular/src/schematics/src/generate/nav/schema.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/schema", - "id": "SchematicsCollabUINav", - "title": "Collab UI Nav Options Schema", + "id": "SchematicsMomentumUINav", + "title": "Momentum UI Nav Options Schema", "type": "object", "properties": { "path": { diff --git a/angularjs/CONTRIBUTING.md b/angularjs/CONTRIBUTING.md index 17dc861b04..8d7d65fcb9 100644 --- a/angularjs/CONTRIBUTING.md +++ b/angularjs/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing -##### We'd love for you to contribute to our source code and to make Collab UI Angularjs even better than it is today! Below are the guidelines to follow. +##### We'd love for you to contribute to our source code and to make Momentum UI Angularjs even better than it is today! Below are the guidelines to follow. ## Table of Contents diff --git a/angularjs/README.md b/angularjs/README.md index b6bddfae60..8e57d19e82 100644 --- a/angularjs/README.md +++ b/angularjs/README.md @@ -1,10 +1,10 @@ -# [Collab UI AngularJS](https://momentum.design/) +# [Momentum UI AngularJS](https://momentum.design/) -Collab UI AngularJS is a UI framework for implementing Cisco Collaboration Design into web apps and sites. +Momentum UI AngularJS is a UI framework for implementing Cisco Momentum Design into web apps and sites. -> @collabui/momentum-ui-ng +> @momentum-ui/angularjs -Collab UI Angular is a UI framework for implementing Cisco Collaboration Design into web apps and sites. +Momentum UI Angular is a UI framework for implementing Cisco Momentum Design into web apps and sites. ## Table of Contents @@ -15,23 +15,23 @@ Collab UI Angular is a UI framework for implementing Cisco Collaboration Design ## Install -Install and manage the Collab UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/. +Install and manage the Momentum UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/. -`npm install @collabui/momentum-ui-ng --save` +`npm install @momentum-ui/angularjs --save` or -`yarn add @collabui/momentum-ui-ng` +`yarn add @momentum-ui/angularjs` ## Usage ### NgModule -Import the @collabui/momentum-ui-ng into your apps main module to make the components/directives available throughout your app. +Import the @momentum-ui/angularjs into your apps main module to make the components/directives available throughout your app. ``` ts export default angular .module('app', [ - require('@collabui/momentum-ui-ng').default, + require('@momentum-ui/angularjs').default, ]) .component('app', new AppComponent()) .name; diff --git a/angularjs/package.json b/angularjs/package.json index 2f9f9561b7..75ef8aa45c 100644 --- a/angularjs/package.json +++ b/angularjs/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@momentum-ui/angularjs", - "description": "Cisco Collab UI AngularJS 1.X components", + "description": "Cisco Momentum UI AngularJS 1.X components", "version": "10.0.7", "main": "bundles/momentum-ui-angularjs.umd.min.js", "typings": "types/momentum-ui-angularjs.d.ts", @@ -17,7 +17,7 @@ "Webex", "Cisco Spark", "Spark UI", - "Collab UI", + "Momentum UI", "AngularJS", "ng" ], diff --git a/angularjs/src/lib/components/accordion/accordion.directive.ts b/angularjs/src/lib/components/accordion/accordion.directive.ts index 6fbe24b92c..8b719c6b62 100644 --- a/angularjs/src/lib/components/accordion/accordion.directive.ts +++ b/angularjs/src/lib/components/accordion/accordion.directive.ts @@ -2,8 +2,8 @@ import * as angular from 'angular'; // The accordion directive simply sets up the directive controller // and adds an accordion CSS class to itself element. -CsAccordionController.$inject = ['$scope', '$attrs', 'csAccordionConfig']; -export function CsAccordionController($scope, $attrs, csAccordionConfig) { +MdAccordionController.$inject = ['$scope', '$attrs', 'mdAccordionConfig']; +export function MdAccordionController($scope, $attrs, mdAccordionConfig) { let vm = this; // This array keeps track of the accordion groups vm.groups = []; @@ -11,7 +11,7 @@ export function CsAccordionController($scope, $attrs, csAccordionConfig) { // Ensure that all the groups in this accordion are closed, unless close-others explicitly says not to vm.closeOthers = function (openGroup) { let closeOthers = angular.isDefined($attrs.closeOthers) ? - $scope.$eval($attrs.closeOthers) : csAccordionConfig.closeOthers; + $scope.$eval($attrs.closeOthers) : mdAccordionConfig.closeOthers; if (closeOthers) { angular.forEach(vm.groups, function (group) { if (group !== openGroup) { @@ -40,14 +40,14 @@ export function CsAccordionController($scope, $attrs, csAccordionConfig) { } -export function csAccordion() { - let csAccordionDirective = { +export function mdAccordion() { + let mdAccordionDirective = { restrict: 'EA', - controller: CsAccordionController, - controllerAs: 'csAccordion', + controller: MdAccordionController, + controllerAs: 'mdAccordion', transclude: true, template: `
`, }; - return csAccordionDirective; + return mdAccordionDirective; } diff --git a/angularjs/src/lib/components/accordion/accordionGroup.directive.ts b/angularjs/src/lib/components/accordion/accordionGroup.directive.ts index 23064c1024..1fc3fb0397 100644 --- a/angularjs/src/lib/components/accordion/accordionGroup.directive.ts +++ b/angularjs/src/lib/components/accordion/accordionGroup.directive.ts @@ -1,7 +1,7 @@ -// The cs-accordion-group directive indicates a block of html that will expand and collapse in an accordion -export function csAccordionGroup() { - let csAccordionGroupDirective = { - require: '^csAccordion', // We need this directive to be inside an accordion +// The md-accordion-group directive indicates a block of html that will expand and collapse in an accordion +export function mdAccordionGroup() { + let mdAccordionGroupDirective = { + require: '^mdAccordion', // We need this directive to be inside an accordion restrict: 'EA', transclude: true, // It transcludes the contents of the directive into the template replace: true, // The element containing the directive will be replaced with the template @@ -14,7 +14,7 @@ export function csAccordionGroup() { ng-click="toggleOpen()"> + md-accordion-transclude="heading"> @@ -31,19 +31,19 @@ export function csAccordionGroup() { displayStatus: '@?', showCaret: '=?', }, - controller: csAccordionGroupCtrl, - controllerAs: 'csAccordionGrp', + controller: mdAccordionGroupCtrl, + controllerAs: 'mdAccordionGrp', link: link, }; - function link(scope, element, attrs, csAccordionCtrl) { + function link(scope, element, attrs, mdAccordionCtrl) { scope.toggleOpen = toggleOpen; - csAccordionCtrl.addGroup(scope); + mdAccordionCtrl.addGroup(scope); scope.$watch('isOpen', function (value) { if (value) { - csAccordionCtrl.closeOthers(scope); + mdAccordionCtrl.closeOthers(scope); } }); @@ -54,7 +54,7 @@ export function csAccordionGroup() { } } - function csAccordionGroupCtrl() { + function mdAccordionGroupCtrl() { let vm = this; vm.setHeading = setHeading; @@ -63,5 +63,5 @@ export function csAccordionGroup() { } } - return csAccordionGroupDirective; + return mdAccordionGroupDirective; } diff --git a/angularjs/src/lib/components/accordion/accordionHeading.directive.ts b/angularjs/src/lib/components/accordion/accordionHeading.directive.ts index 434aba0a70..8cdc28b4d7 100644 --- a/angularjs/src/lib/components/accordion/accordionHeading.directive.ts +++ b/angularjs/src/lib/components/accordion/accordionHeading.directive.ts @@ -1,23 +1,23 @@ -// Use cs-accordion-heading below a cs-accordion-group to provide a heading containing HTML -// -// Heading containing HTML - -// -export function csAccordionHeading() { - let csAccordionHeadingDirective = { +// Use md-accordion-heading below a md-accordion-group to provide a heading containing HTML +// +// Heading containing HTML - +// +export function mdAccordionHeading() { + let mdAccordionHeadingDirective = { restrict: 'EA', transclude: true, // Grab the contents to be used as the heading template: '', // In effect remove this element! replace: true, - require: '^csAccordionGroup', + require: '^mdAccordionGroup', link: link, }; - function link(scope, element, attr, csAccordionGroupCtrl, transclude) { - // Pass the heading to the cs-accordion-group controller + function link(scope, element, attr, mdAccordionGroupCtrl, transclude) { + // Pass the heading to the md-accordion-group controller // so that it can be transcluded into the right place in the template // [The second parameter to transclude causes the elements to be cloned so that they work in ng-repeat] - csAccordionGroupCtrl.setHeading(transclude(scope, function () { })); + mdAccordionGroupCtrl.setHeading(transclude(scope, function () { })); } - return csAccordionHeadingDirective; + return mdAccordionHeadingDirective; } diff --git a/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts b/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts index 412d07ff53..40e808e1e5 100755 --- a/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts +++ b/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts @@ -1,19 +1,19 @@ -// Use in the cs-accordion-group template to indicate where you want the heading to be transcluded -// You must provide the property on the cs-accordion-group controller that will hold the transcluded element +// Use in the md-accordion-group template to indicate where you want the heading to be transcluded +// You must provide the property on the md-accordion-group controller that will hold the transcluded element //
-// +// // ... //
-export function csAccordionTransclude() { - let csAccordionTranscludeDirective = { - require: '^csAccordionGroup', +export function mdAccordionTransclude() { + let mdAccordionTranscludeDirective = { + require: '^mdAccordionGroup', link: link, }; function link(scope, element, attr, controller) { scope.$watch(function () { - return controller[attr.csAccordionTransclude]; + return controller[attr.mdAccordionTransclude]; }, function (heading) { if (heading) { element.html(''); @@ -22,5 +22,5 @@ export function csAccordionTransclude() { }); } - return csAccordionTranscludeDirective; + return mdAccordionTranscludeDirective; } diff --git a/angularjs/src/lib/components/accordion/index.ts b/angularjs/src/lib/components/accordion/index.ts index 50bc18eab8..3000171172 100644 --- a/angularjs/src/lib/components/accordion/index.ts +++ b/angularjs/src/lib/components/accordion/index.ts @@ -1,19 +1,19 @@ import * as angular from 'angular'; -import { csAccordion } from './accordion.directive'; -import { csAccordionGroup } from './accordionGroup.directive'; -import { csAccordionHeading } from './accordionHeading.directive'; -import { csAccordionTransclude } from './accordionTransclude.directive'; -import csCollapse from '../../directives/collapse'; +import { mdAccordion } from './accordion.directive'; +import { mdAccordionGroup } from './accordionGroup.directive'; +import { mdAccordionHeading } from './accordionHeading.directive'; +import { mdAccordionTransclude } from './accordionTransclude.directive'; +import mdCollapse from '../../directives/collapse'; export default angular - .module('collab.ui.accordion', [ - csCollapse, + .module('momentum.ui.accordion', [ + mdCollapse, ]) - .constant('csAccordionConfig', { + .constant('mdAccordionConfig', { closeOthers: true, }) - .directive('csAccordion', csAccordion) - .directive('csAccordionGroup', csAccordionGroup) - .directive('csAccordionHeading', csAccordionHeading) - .directive('csAccordionTransclude', csAccordionTransclude) + .directive('mdAccordion', mdAccordion) + .directive('mdAccordionGroup', mdAccordionGroup) + .directive('mdAccordionHeading', mdAccordionHeading) + .directive('mdAccordionTransclude', mdAccordionTransclude) .name; diff --git a/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts b/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts index b769bf61c0..3f019c1cd9 100644 --- a/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts +++ b/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts @@ -1,10 +1,10 @@ -import csAlertbanner from './index'; +import mdAlertbanner from './index'; -describe('Component: csAlertbanner', () => { +describe('Component: mdAlertbanner', () => { let element, $scope, $compile; beforeEach(() => { - angular.mock.module(csAlertbanner); + angular.mock.module(mdAlertbanner); inject(function ($injector) { $scope = $injector.get('$rootScope').$new(); $compile = $injector.get('$compile'); @@ -19,33 +19,33 @@ describe('Component: csAlertbanner', () => { } it('should default on type "info"', function () { - element = getCompiledElement(''); + element = getCompiledElement(''); const alertBanner = element.find('.md-alert-banner'); expect(alertBanner.hasClass('md-alert-banner--info')).toBe(true); }); it('should reflect the "type" in the class', function () { const type = 'danger'; - element = getCompiledElement(''); + element = getCompiledElement(''); const alertBanner = element.find('.md-alert-banner'); expect(alertBanner.hasClass(`md-alert-banner--${type}`)).toBe(true); }); it('should not display a close button by default', function () { - element = getCompiledElement(''); + element = getCompiledElement(''); const closeButton = element.find('.md-alert-banner-close'); expect(closeButton.context).not.toBeDefined(); }); it('should display a close button if "closeable" is true', function () { - element = getCompiledElement(''); + element = getCompiledElement(''); const closeButton = element.find('.md-alert-banner-close'); expect(closeButton).toBeDefined(); }); it('should transclude', function () { let text = 'dog'; - element = getCompiledElement('' + text + ''); + element = getCompiledElement('' + text + ''); const alertBanner = element.find('.md-alert-banner'); expect(alertBanner.text()).toContain(text); }); diff --git a/angularjs/src/lib/components/alertbanner/alertbanner.component.ts b/angularjs/src/lib/components/alertbanner/alertbanner.component.ts index 84320df371..3353f02311 100644 --- a/angularjs/src/lib/components/alertbanner/alertbanner.component.ts +++ b/angularjs/src/lib/components/alertbanner/alertbanner.component.ts @@ -56,7 +56,7 @@ export class AlertBannerComponent implements ng.IComponentOptions { * @param type - info * @param closable - boolean (false) * @html -* Special announcement with a call to action +* Special announcement with a call to action */ /** @@ -66,7 +66,7 @@ export class AlertBannerComponent implements ng.IComponentOptions { * @param type - warning * * @html -* You are in Read-Only mode, learn more +* You are in Read-Only mode, learn more */ /** @@ -76,5 +76,5 @@ export class AlertBannerComponent implements ng.IComponentOptions { * @param type - danger * * @html -* This critical announcement that has a lot of copy that breaks onto a new line which is centered and has a max width and a call to action +* This critical announcement that has a lot of copy that breaks onto a new line which is centered and has a max width and a call to action */ diff --git a/angularjs/src/lib/components/alertbanner/index.ts b/angularjs/src/lib/components/alertbanner/index.ts index 393efd9204..6c8ce869fc 100644 --- a/angularjs/src/lib/components/alertbanner/index.ts +++ b/angularjs/src/lib/components/alertbanner/index.ts @@ -2,6 +2,6 @@ import * as angular from 'angular'; import { AlertBannerComponent } from './alertbanner.component'; export default angular - .module('collab.ui.alertBanner', []) - .component('csAlertBanner', new AlertBannerComponent()) + .module('momentum.ui.alertBanner', []) + .component('mdAlertBanner', new AlertBannerComponent()) .name; diff --git a/angularjs/src/lib/components/badge/badge.component.ts b/angularjs/src/lib/components/badge/badge.component.ts index 9fdd669fb3..f69d8d9a88 100644 --- a/angularjs/src/lib/components/badge/badge.component.ts +++ b/angularjs/src/lib/components/badge/badge.component.ts @@ -25,18 +25,18 @@ export class BadgeComponent implements ng.IComponentOptions {

Colors

- Badge - Blue - Red - Yellow - Green - Mint - Mint - Mint - Mint - Mint - Mint - Mint + Badge + Blue + Red + Yellow + Green + Mint + Mint + Mint + Mint + Mint + Mint + Mint
@@ -44,18 +44,18 @@ export class BadgeComponent implements ng.IComponentOptions {

Round

- badge - blue - red - yellow - green - mint - pastel - blue-pastel - red-pastel - yellow-pastel - green-pastel - mint-pastel + badge + blue + red + yellow + green + mint + pastel + blue-pastel + red-pastel + yellow-pastel + green-pastel + mint-pastel
@@ -63,36 +63,36 @@ export class BadgeComponent implements ng.IComponentOptions {

Round

- 1 - 2 - 3 - 4 - 5 - 6 - 1 - 2 - 3 - 4 - 5 - 6 + 1 + 2 + 3 + 4 + 5 + 6 + 1 + 2 + 3 + 4 + 5 + 6

Round

- 1 - 2 - 3 - 4 - 5 - 6 - 1 - 2 - 3 - 4 - 5 - 6 + 1 + 2 + 3 + 4 + 5 + 6 + 1 + 2 + 3 + 4 + 5 + 6
diff --git a/angularjs/src/lib/components/badge/index.ts b/angularjs/src/lib/components/badge/index.ts index 85b492fee2..73416ed970 100644 --- a/angularjs/src/lib/components/badge/index.ts +++ b/angularjs/src/lib/components/badge/index.ts @@ -2,6 +2,6 @@ import * as angular from 'angular'; import { BadgeComponent } from './badge.component'; export default angular - .module('collab.ui.badge', []) - .component('csBadge', new BadgeComponent()) + .module('momentum.ui.badge', []) + .component('mdBadge', new BadgeComponent()) .name; diff --git a/angularjs/src/lib/components/breadcrumbs/breadcrumbs.component.ts b/angularjs/src/lib/components/breadcrumbs/breadcrumbs.component.ts index 51f4cf251d..cf0376e44d 100644 --- a/angularjs/src/lib/components/breadcrumbs/breadcrumbs.component.ts +++ b/angularjs/src/lib/components/breadcrumbs/breadcrumbs.component.ts @@ -2,20 +2,20 @@ import * as angular from 'angular'; /* @ngInject */ -export function csBreadcrumbs($interpolate, $state) { - // Usage: +export function mdBreadcrumbs($interpolate, $state) { + // Usage: let directive = { link: link, restrict: 'E', scope: { displaynameProperty: '@', abstractProxyProperty: '@?', - csTabindex: '
  • - {{ crumb.displayName }}  + {{ crumb.displayName }}  {{ crumb.displayName }}
  • diff --git a/angularjs/src/lib/components/breadcrumbs/index.ts b/angularjs/src/lib/components/breadcrumbs/index.ts index 9ab2df6eec..612021b296 100644 --- a/angularjs/src/lib/components/breadcrumbs/index.ts +++ b/angularjs/src/lib/components/breadcrumbs/index.ts @@ -1,10 +1,10 @@ import * as angular from 'angular'; import uiRouter from 'angular-ui-router'; -import { csBreadcrumbs } from './breadcrumbs.component'; +import { mdBreadcrumbs } from './breadcrumbs.component'; export default angular - .module('collab.ui.breadcrumbs', [ + .module('momentum.ui.breadcrumbs', [ uiRouter || 'ui.router', ]) - .directive('csBreadcrumbs', csBreadcrumbs) + .directive('mdBreadcrumbs', mdBreadcrumbs) .name; diff --git a/angularjs/src/lib/components/cardmember/cardmember.component.ts b/angularjs/src/lib/components/cardmember/cardmember.component.ts index 9e53cc7500..a57cef6662 100644 --- a/angularjs/src/lib/components/cardmember/cardmember.component.ts +++ b/angularjs/src/lib/components/cardmember/cardmember.component.ts @@ -25,21 +25,21 @@ export enum ComplexCardType { } export class CardMemberCtrl implements ng.IComponentController { - public csType: CardType; - public csMemberType: string; - public csId: string; - public csIndex: number; - public csTitle: string; - public csSubtitle: string; - public csImage: string; - public csComplexCardType: ComplexCardType; - public csCheckboxes: Array; - public csRadios: Array; - public csItems: Array; - public csRadioValue: string; - public csRemoveLabel: string; - public csReordering: boolean; - public csReorderKeypress: Function; + public mdType: CardType; + public mdMemberType: string; + public mdId: string; + public mdIndex: number; + public mdTitle: string; + public mdSubtitle: string; + public mdImage: string; + public mdComplexCardType: ComplexCardType; + public mdCheckboxes: Array; + public mdRadios: Array; + public mdItems: Array; + public mdRadioValue: string; + public mdRemoveLabel: string; + public mdReordering: boolean; + public mdReorderKeypress: Function; public onUpdate: Function; public onRemove: Function; public onToggled: Function; @@ -52,12 +52,12 @@ export class CardMemberCtrl implements ng.IComponentController { public isSelected: boolean; public $onInit(): void { - if (this.csType === CardType.SIMPLE) { + if (this.mdType === CardType.SIMPLE) { this.isSimple = true; - } else if (this.csType === CardType.COMPLEX) { + } else if (this.mdType === CardType.COMPLEX) { this.isSimple = false; - if (this.csRadios && this.csRadioValue && this.csComplexCardType === ComplexCardType.RADIO) { - this.csSubtitle = _.get(_.find(this.csRadios, { value: this.csRadioValue }), 'label'); + if (this.mdRadios && this.mdRadioValue && this.mdComplexCardType === ComplexCardType.RADIO) { + this.mdSubtitle = _.get(_.find(this.mdRadios, { value: this.mdRadioValue }), 'label'); } } } @@ -71,28 +71,28 @@ export class CardMemberCtrl implements ng.IComponentController { public onRemoveClick(): void { this.onRemove({ - id: this.csId, + id: this.mdId, }); } public onChangeRadio(radio: ICardMemberItem): void { - this.csSubtitle = radio.label; + this.mdSubtitle = radio.label; this.onUpdate({ - id: this.csId, + id: this.mdId, data: radio, }); } public onChange(): void { this.onUpdate({ - id: this.csId, - data: this.csCheckboxes, + id: this.mdId, + data: this.mdCheckboxes, }); } public reorderKeypress($event): void { - if (!_.isUndefined(this.csReorderKeypress)) { - this.csReorderKeypress({ $event: event, id: this.csId}); + if (!_.isUndefined(this.mdReorderKeypress)) { + this.mdReorderKeypress({ $event: event, id: this.mdId}); } } } @@ -101,91 +101,91 @@ export class CardMemberComponent implements ng.IComponentOptions { public controller = CardMemberCtrl; public template = `
    -
    +
    - - - - + + + +
    -

    {{$ctrl.csTitle}}

    -

    {{$ctrl.csSubtitle}}

    +

    {{$ctrl.mdTitle}}

    +

    {{$ctrl.mdSubtitle}}

    - - -
    -
    +
    - `; public bindings = { - csId: '<', - csIndex: '
    -

    {{$ctrl.csTitle}}

    +

    {{$ctrl.mdTitle}}

    @@ -24,8 +24,8 @@ export class CardNumberComponent implements ng.IComponentOptions {
    `; public bindings = { - csId: '<', - csTitle: '<', + mdId: '<', + mdTitle: '<', onRemoveFn: '&', deleteAriaLabel: '@?', }; diff --git a/angularjs/src/lib/components/cardnumber/index.ts b/angularjs/src/lib/components/cardnumber/index.ts index be7d8da234..367be34e5e 100644 --- a/angularjs/src/lib/components/cardnumber/index.ts +++ b/angularjs/src/lib/components/cardnumber/index.ts @@ -2,6 +2,6 @@ import * as angular from 'angular'; import { CardNumberComponent } from './cardnumber.component'; export default angular - .module('collab.ui.card-number', []) - .component('csCardNumber', new CardNumberComponent()) + .module('momentum.ui.card-number', []) + .component('mdCardNumber', new CardNumberComponent()) .name; diff --git a/angularjs/src/lib/components/cards/card.component.ts b/angularjs/src/lib/components/cards/card.component.ts index 540c2dfc75..1e752f05bc 100644 --- a/angularjs/src/lib/components/cards/card.component.ts +++ b/angularjs/src/lib/components/cards/card.component.ts @@ -5,7 +5,7 @@ import * as imagesLoaded from 'imagesloaded'; export class CardLayout implements ng.IDirective { /** - * Usage: + * Usage: */ private blockView: boolean; constructor( @@ -77,7 +77,7 @@ export class CardCtrl implements ng.IComponentController { export class Card implements ng.IDirective { /** - * Usage: + * Usage: */ public restrict: string = 'EA'; public template: string = `
    `; @@ -97,7 +97,7 @@ export class Card implements ng.IDirective { export class CardMenuCtrl implements ng.IComponentController { private menuOpen: boolean; - public csCardCtrl: any; + public mdCardCtrl: any; constructor ( private $scope: ng.IScope @@ -106,25 +106,25 @@ export class CardMenuCtrl implements ng.IComponentController { } public $onInit(): void { - this.$scope.$watch('cm.csCardCtrl.menuOpen', () => { - this.menuOpen = this.csCardCtrl.getMenuStatus(); + this.$scope.$watch('cm.mdCardCtrl.menuOpen', () => { + this.menuOpen = this.mdCardCtrl.getMenuStatus(); }); } public toggleSettings(): void { - this.csCardCtrl.toggleSettings(); - this.menuOpen = this.csCardCtrl.getMenuStatus(); + this.mdCardCtrl.toggleSettings(); + this.menuOpen = this.mdCardCtrl.getMenuStatus(); } } export class CardMenu implements ng.IDirective { // - // Usage: + // Usage: // @param cardMenuTitle - The title dispayed in the menu header // public restrict: string = 'EA'; public require: { [controller: string]: string } = { - csCardCtrl: '^csCard', + mdCardCtrl: '^mdCard', }; public scope = { menutitle: '=', @@ -154,24 +154,24 @@ export class CardMenu implements ng.IDirective { export class CardMenuFooterCtrl implements ng.IComponentController { private menuOpen: boolean; - public csCardCtrl: any; + public mdCardCtrl: any; constructor() { this.menuOpen = false; } public toggleSettings(): void { - this.csCardCtrl.toggleSettings(); - this.menuOpen = this.csCardCtrl.getMenuStatus(); + this.mdCardCtrl.toggleSettings(); + this.menuOpen = this.mdCardCtrl.getMenuStatus(); } } export class CardMenuFooter implements ng.IDirective { // - // Usage: + // Usage: // public restrict: string = 'EA'; public require: { [controller: string]: string } = { - csCardCtrl: '^csCard', + mdCardCtrl: '^mdCard', }; public scope = { icon: '=', @@ -203,13 +203,13 @@ export class CardMenuFooter implements ng.IDirective { * @section default * * @html - +

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

    -
    + */ /** @@ -218,8 +218,8 @@ export class CardMenuFooter implements ng.IDirective { * * @html
    - - + +

    Header

    @@ -239,8 +239,8 @@ export class CardMenuFooter implements ng.IDirective { rump shoulder chicken frankfurter.

    -
    - + +

    Header

    @@ -260,8 +260,8 @@ export class CardMenuFooter implements ng.IDirective { aliquip nostrud.

    -
    - + +

    Header

    @@ -272,8 +272,8 @@ export class CardMenuFooter implements ng.IDirective { laboris. Duis salami ham, aliqua meatball officia sirloin consequat jowl ad.

    -
    - + +

    Header

    @@ -292,8 +292,8 @@ export class CardMenuFooter implements ng.IDirective { ribs.

    -
    - + +

    Header

    @@ -303,8 +303,8 @@ export class CardMenuFooter implements ng.IDirective { bacon incididunt nulla ham hock tenderloin. Esse culpa et sunt. Spare ribs swine cillum do commodo.

    -
    - + +

    Header

    @@ -313,8 +313,8 @@ export class CardMenuFooter implements ng.IDirective {

    CARD 6 Does your lorem ipsum text long for something a little meatier? Give our generator a try… it’s tasty!

    -
    - + +

    Header

    @@ -339,8 +339,8 @@ export class CardMenuFooter implements ng.IDirective { est laboris meatball pork belly beef ribs.

    -
    - + +

    Header

    @@ -354,8 +354,8 @@ export class CardMenuFooter implements ng.IDirective { meatier? Give our generator a try… it’s tasty!

    -
    - + +

    List

    @@ -368,40 +368,40 @@ export class CardMenuFooter implements ng.IDirective {
    -
    - + +

    Checkboxes

    - - - - + + + +
    -
    - + +
    Intelepeerlogo

    IntelePeer Pro

    - - - - + + + +
    -
    - + +

    Radio Buttons

    @@ -410,19 +410,19 @@ export class CardMenuFooter implements ng.IDirective {
    - - - - + + + +
    -
    - + +

    Webex Logo WebEx

    @@ -439,8 +439,8 @@ export class CardMenuFooter implements ng.IDirective { View More
    -
    - + +
    @@ -459,21 +459,21 @@ export class CardMenuFooter implements ng.IDirective {
    - + Excellent - - + + - + - - + +

    Card header

    @@ -486,8 +486,8 @@ export class CardMenuFooter implements ng.IDirective {
    -
    - + +
    example image @@ -499,8 +499,8 @@ export class CardMenuFooter implements ng.IDirective {
    -
    - + +

    List

    @@ -511,8 +511,8 @@ export class CardMenuFooter implements ng.IDirective {
    -
    - + +
    */ @@ -521,9 +521,9 @@ export class CardMenuFooter implements ng.IDirective { * @section block-layout * * @html -
    - - +
    + +

    List

    @@ -536,40 +536,40 @@ export class CardMenuFooter implements ng.IDirective {
    - - +
    +

    Checkboxes

    - - - - + + + +
    - - +
    +
    Intelepeerlogo

    IntelePeer Pro

    - - - - + + + +
    - - +
    +

    Radio Buttons

    @@ -578,19 +578,19 @@ export class CardMenuFooter implements ng.IDirective {
    - - - - + + + +
    - - +
    +

    Webex Logo WebEx

    @@ -607,8 +607,8 @@ export class CardMenuFooter implements ng.IDirective { VIEW MORE
    - - +
    +
    @@ -629,8 +629,8 @@ export class CardMenuFooter implements ng.IDirective { AA
    - - +
    +
    */ @@ -639,8 +639,8 @@ export class CardMenuFooter implements ng.IDirective { * @section card-sizes * * @html - - + +

    Small Card - 4 across

    @@ -648,8 +648,8 @@ export class CardMenuFooter implements ng.IDirective {

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

    -
    - + +

    Medium Card 3 across

    @@ -657,8 +657,8 @@ export class CardMenuFooter implements ng.IDirective {

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

    -
    - + +

    Large Card 2 across

    @@ -666,8 +666,8 @@ export class CardMenuFooter implements ng.IDirective {

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

    -
    - + +

    Full Card 1 across

    @@ -675,8 +675,8 @@ export class CardMenuFooter implements ng.IDirective {

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

    -
    -
    + + */ /** @@ -684,7 +684,7 @@ export class CardMenuFooter implements ng.IDirective { * @section header * * @html - +

    Header

    @@ -694,7 +694,7 @@ export class CardMenuFooter implements ng.IDirective {

    -
    + */ /** @@ -702,7 +702,7 @@ export class CardMenuFooter implements ng.IDirective { * @section header-borders * * @html - +

    Header Border

    @@ -712,7 +712,7 @@ export class CardMenuFooter implements ng.IDirective {

    -
    + */ /** @@ -720,7 +720,7 @@ export class CardMenuFooter implements ng.IDirective { * @section header-background * * @html - +

    Header

    @@ -730,7 +730,7 @@ export class CardMenuFooter implements ng.IDirective {

    -
    + */ /** @@ -738,8 +738,8 @@ export class CardMenuFooter implements ng.IDirective { * @section header-background-colors * * @html - - + +
    @@ -757,8 +757,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    @@ -776,8 +776,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -787,8 +787,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -798,8 +798,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -809,8 +809,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -820,8 +820,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -831,8 +831,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -842,8 +842,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +
    Header
    @@ -853,8 +853,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    -
    + + */ /** @@ -862,7 +862,7 @@ export class CardMenuFooter implements ng.IDirective { * @section header-bar * * @html - +

    Header

    @@ -872,7 +872,7 @@ export class CardMenuFooter implements ng.IDirective {

    -
    + */ /** @@ -880,8 +880,8 @@ export class CardMenuFooter implements ng.IDirective { * @section header-alignment * * @html - - + +

    To the Left

    @@ -891,8 +891,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +

    Centered

    @@ -902,8 +902,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    -
    + + */ /** @@ -911,7 +911,7 @@ export class CardMenuFooter implements ng.IDirective { * @section without-a-header * * @html - +

    @@ -922,7 +922,7 @@ export class CardMenuFooter implements ng.IDirective { VIEW MORE

    -
    + */ /** @@ -930,8 +930,8 @@ export class CardMenuFooter implements ng.IDirective { * @section section-background * * @html - - + +

    Section White

    @@ -941,8 +941,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    - + +

    Section Gray

    @@ -952,8 +952,8 @@ export class CardMenuFooter implements ng.IDirective {

    -
    -
    + + */ /** @@ -961,8 +961,8 @@ export class CardMenuFooter implements ng.IDirective { * @section section-content * * @html - - + +

    List

    @@ -975,40 +975,40 @@ export class CardMenuFooter implements ng.IDirective {
    -
    - + +

    Checkboxes

    - - - - + + + +
    -
    - + +
    Intelepeerlogo

    IntelePeer Pro

    - - - - + + + +
    -
    - + +

    Radio Buttons

    @@ -1017,19 +1017,19 @@ export class CardMenuFooter implements ng.IDirective {
    - - - - + + + +
    -
    - + +

    Webex Logo WebEx

    @@ -1046,8 +1046,8 @@ export class CardMenuFooter implements ng.IDirective { View More
    -
    - + +

    Webex Logo WebEx

    @@ -1071,8 +1071,8 @@ export class CardMenuFooter implements ng.IDirective {
    - - + + */ /** @@ -1080,8 +1080,8 @@ export class CardMenuFooter implements ng.IDirective { * @section cards-with-images * * @html - - + +

    Card header

    @@ -1093,8 +1093,8 @@ export class CardMenuFooter implements ng.IDirective {
    -
    - + +
    example image @@ -1106,8 +1106,8 @@ export class CardMenuFooter implements ng.IDirective {
    -
    -
    + + */ /** @@ -1116,7 +1116,7 @@ export class CardMenuFooter implements ng.IDirective { * * @html
    - +
    Call
    @@ -1128,11 +1128,11 @@ export class CardMenuFooter implements ng.IDirective {
    Last Month: 302
    - + Trial - - + +
    • item 1 @@ -1141,9 +1141,9 @@ export class CardMenuFooter implements ng.IDirective { item 2
    -
    + - +
    * * @js @@ -1168,8 +1168,8 @@ export class CardMenuFooter implements ng.IDirective { * @section configure-services-card * * @html - - + +

    pg_marketing.webex.com

    @@ -1206,8 +1206,8 @@ export class CardMenuFooter implements ng.IDirective {
    - - + + */ diff --git a/angularjs/src/lib/components/cards/index.ts b/angularjs/src/lib/components/cards/index.ts index ff70f08314..ed46b0f30f 100644 --- a/angularjs/src/lib/components/cards/index.ts +++ b/angularjs/src/lib/components/cards/index.ts @@ -10,12 +10,12 @@ import { } from './card.component'; export default angular - .module('collab.ui.cards', []) - .directive('csCard', Card.factory) - .controller('csCardCtrl', CardCtrl) - .directive('csCardMenu', CardMenu.factory) - .controller('csCardMenuCtrl', CardMenuCtrl) - .directive('csCardMenuFooter', CardMenuFooter.factory) - .controller('csCardMenuFooterCtrl', CardMenuFooterCtrl) - .directive('csCardLayout', CardLayout.factory) + .module('momentum.ui.cards', []) + .directive('mdCard', Card.factory) + .controller('mdCardCtrl', CardCtrl) + .directive('mdCardMenu', CardMenu.factory) + .controller('mdCardMenuCtrl', CardMenuCtrl) + .directive('mdCardMenuFooter', CardMenuFooter.factory) + .controller('mdCardMenuFooterCtrl', CardMenuFooterCtrl) + .directive('mdCardLayout', CardLayout.factory) .name; diff --git a/angularjs/src/lib/components/checkbox/checkbox.component.ts b/angularjs/src/lib/components/checkbox/checkbox.component.ts index 66b83c9a5b..381c6c37e2 100644 --- a/angularjs/src/lib/components/checkbox/checkbox.component.ts +++ b/angularjs/src/lib/components/checkbox/checkbox.component.ts @@ -46,7 +46,7 @@ export class CheckboxComponent implements ng.IComponentOptions { public controller = CheckboxCtrl; public template = `
    - + @@ -57,7 +57,7 @@ export class CheckboxComponent implements ng.IComponentOptions { label: '@', id: '@ckid', isDisabled: ' +
      -
      +
      @@ -78,18 +78,18 @@ export function csTabset() { scope.justified = angular.isDefined(attrs.justified) ? scope.$parent.$eval(attrs.justified) : false; } - return csTabsetDirective; + return mdTabsetDirective; } -csTab.$inject = ['$parse']; -export function csTab($parse) { - let csTabDirective = { - require: '^csTabset', +mdTab.$inject = ['$parse']; +export function mdTab($parse) { + let mdTabDirective = { + require: '^mdTabset', restrict: 'EA', replace: true, template: `
    • - {{csTabset.heading}} + {{mdTabset.heading}}
    • `, transclude: true, @@ -104,10 +104,10 @@ export function csTab($parse) { //Empty controller so other directives can require being 'under' a tab }, compile: function (elm, attrs, transclude) { - return function postLink(scope, elm, attrs, csTabset) { + return function postLink(scope, elm, attrs, mdTabset) { scope.$watch('active', function (active) { if (active) { - csTabset.select(scope); + mdTabset.select(scope); } }); @@ -124,9 +124,9 @@ export function csTab($parse) { } }; - csTabset.addTab(scope); + mdTabset.addTab(scope); scope.$on('$destroy', function () { - csTabset.removeTab(scope); + mdTabset.removeTab(scope); }); //We need to transclude later, once the content container is ready. @@ -136,13 +136,13 @@ export function csTab($parse) { }, }; - return csTabDirective; + return mdTabDirective; } -export function csTabHeadingTransclude() { - let csTabHeadingTranscludeDirective = { +export function mdTabHeadingTransclude() { + let mdTabHeadingTranscludeDirective = { restrict: 'A', - require: '^csTab', + require: '^mdTab', link: link, }; @@ -155,18 +155,18 @@ export function csTabHeadingTransclude() { }); } - return csTabHeadingTranscludeDirective; + return mdTabHeadingTranscludeDirective; } -export function csTabContentTransclude() { - let csTabContentTranscludeDirective = { +export function mdTabContentTransclude() { + let mdTabContentTranscludeDirective = { restrict: 'A', - require: '^csTabset', + require: '^mdTabset', link: link, }; function link(scope, elm, attrs) { - let tab = scope.$eval(attrs.csTabContentTransclude); + let tab = scope.$eval(attrs.mdTabContentTransclude); //Now our tab is ready to be transcluded: both the tab heading area //and the tab content area are loaded. Transclude 'em both. @@ -184,12 +184,12 @@ export function csTabContentTransclude() { function isTabHeading(node) { return node.tagName && ( - node.hasAttribute('cs-tab-heading') || - node.hasAttribute('data-cs-tab-heading') || - node.tagName.toLowerCase() === 'cs-tab-heading' || - node.tagName.toLowerCase() === 'data-cs-tab-heading' + node.hasAttribute('md-tab-heading') || + node.hasAttribute('data-md-tab-heading') || + node.tagName.toLowerCase() === 'md-tab-heading' || + node.tagName.toLowerCase() === 'data-md-tab-heading' ); } - return csTabContentTranscludeDirective; + return mdTabContentTranscludeDirective; } diff --git a/angularjs/src/lib/components/leftnav/index.ts b/angularjs/src/lib/components/leftnav/index.ts index 3609cfae72..deaa750c2f 100644 --- a/angularjs/src/lib/components/leftnav/index.ts +++ b/angularjs/src/lib/components/leftnav/index.ts @@ -1,11 +1,11 @@ import * as angular from 'angular'; import { - csLeftNav, - csSubNav, + mdLeftNav, + mdSubNav, } from './leftnav.component'; export default angular - .module('collab.ui.leftnav', []) - .directive('csLeftNav', csLeftNav) - .directive('csSubNav', csSubNav) + .module('momentum.ui.leftnav', []) + .directive('mdLeftNav', mdLeftNav) + .directive('mdSubNav', mdSubNav) .name; diff --git a/angularjs/src/lib/components/leftnav/leftnav.component.ts b/angularjs/src/lib/components/leftnav/leftnav.component.ts index c4def91fda..b7e0a681d2 100644 --- a/angularjs/src/lib/components/leftnav/leftnav.component.ts +++ b/angularjs/src/lib/components/leftnav/leftnav.component.ts @@ -1,6 +1,6 @@ -csLeftNav.$inject = ['$location']; -export function csLeftNav($location) { - let csLeftNavDirective = { +mdLeftNav.$inject = ['$location']; +export function mdLeftNav($location) { + let mdLeftNavDirective = { restrict: 'EA', scope: { pages: '=', @@ -9,16 +9,16 @@ export function csLeftNav($location) {
      */ diff --git a/angularjs/src/lib/components/radiolist/index.ts b/angularjs/src/lib/components/radiolist/index.ts index 3a71385496..df6115ed19 100644 --- a/angularjs/src/lib/components/radiolist/index.ts +++ b/angularjs/src/lib/components/radiolist/index.ts @@ -1,7 +1,7 @@ import * as angular from 'angular'; -import { csRadiolist } from './radiolist.component'; +import { mdRadiolist } from './radiolist.component'; export default angular - .module('collab.ui.radiolist', []) - .directive('csRadiolist', csRadiolist) + .module('momentum.ui.radiolist', []) + .directive('mdRadiolist', mdRadiolist) .name; diff --git a/angularjs/src/lib/components/radiolist/radiolist.component.ts b/angularjs/src/lib/components/radiolist/radiolist.component.ts index 2f80da7e5b..5c7f9b49b5 100644 --- a/angularjs/src/lib/components/radiolist/radiolist.component.ts +++ b/angularjs/src/lib/components/radiolist/radiolist.component.ts @@ -1,4 +1,4 @@ -export function csRadiolist() { +export function mdRadiolist() { let directive = { scope: { options: '=', diff --git a/angularjs/src/lib/components/searchfilter/index.ts b/angularjs/src/lib/components/searchfilter/index.ts index 3cfef08dfb..433d30370b 100644 --- a/angularjs/src/lib/components/searchfilter/index.ts +++ b/angularjs/src/lib/components/searchfilter/index.ts @@ -2,6 +2,6 @@ import * as angular from 'angular'; import { SearchFilter } from './searchfilter.component'; export default angular - .module('collab.ui.searchfilter', []) - .component('csSearchfilter', new SearchFilter()) + .module('momentum.ui.searchfilter', []) + .component('mdSearchfilter', new SearchFilter()) .name; diff --git a/angularjs/src/lib/components/searchfilter/searchfilter.component.ts b/angularjs/src/lib/components/searchfilter/searchfilter.component.ts index f7ad6c3b8b..132dc2e9ce 100644 --- a/angularjs/src/lib/components/searchfilter/searchfilter.component.ts +++ b/angularjs/src/lib/components/searchfilter/searchfilter.component.ts @@ -122,20 +122,20 @@ export class SearchFilter implements ng.IComponentOptions { -
      -