From e16ab3eb4e8c122f727192e55621f2d7782a9a49 Mon Sep 17 00:00:00 2001 From: Guille Paz Date: Tue, 29 Oct 2013 12:51:01 -0300 Subject: [PATCH] #1093 Rename widget to component. --- Gruntfile.js | 8 +- README.md | 4 +- extensions/carousel.autoSliding.js | 4 +- libs/doc-template/publish.js | 2 +- libs/doc-template/static/css/v5.css | 22 ++--- libs/doc-template/tmpl/container.tmpl | 2 +- libs/files/mobile.js | 10 +-- libs/files/ui.js | 10 +-- libs/jsdoc/conf.json | 4 +- package.json | 2 +- src/shared/css/Carousel.css | 4 +- src/shared/js/Autocomplete.js | 20 ++--- src/shared/js/Bubble.js | 10 +-- src/shared/js/Calendar.js | 8 +- src/shared/js/Carousel.js | 30 +++---- src/shared/js/Collapsible.js | 18 ++-- src/shared/js/{Widget.js => Component.js} | 104 +++++++++++----------- src/shared/js/Condition.js | 6 +- src/shared/js/Content.js | 22 ++--- src/shared/js/Countdown.js | 8 +- src/shared/js/Custom.js | 2 +- src/shared/js/Dropdown.js | 10 +-- src/shared/js/Email.js | 2 +- src/shared/js/EventEmitter.js | 12 +-- src/shared/js/Expandable.js | 20 ++--- src/shared/js/Form.js | 10 +-- src/shared/js/Layer.js | 16 ++-- src/shared/js/Max.js | 2 +- src/shared/js/MaxLength.js | 2 +- src/shared/js/Menu.js | 8 +- src/shared/js/Min.js | 2 +- src/shared/js/MinLength.js | 2 +- src/shared/js/Modal.js | 10 +-- src/shared/js/Number.js | 2 +- src/shared/js/Popover.js | 28 +++--- src/shared/js/Required.js | 2 +- src/shared/js/String.js | 2 +- src/shared/js/Tooltip.js | 6 +- src/shared/js/Transition.js | 6 +- src/shared/js/URL.js | 2 +- src/shared/js/Validation.js | 6 +- src/shared/js/Viewport.js | 1 - src/shared/js/factory.js | 36 ++++---- src/shared/js/util.js | 2 +- src/ui/js/Datepicker.js | 10 +-- src/ui/js/Tabs.js | 8 +- src/ui/js/Validation.js | 2 +- src/ui/js/Zoom.js | 10 +-- src/ui/js/shortcuts.js | 16 ++-- tests/autocomplete/spect.js | 10 +-- tests/calendar/spect.js | 12 +-- tests/content/spect.js | 2 +- tests/datePicker/spect.js | 12 +-- tests/expandable/spect.js | 12 +-- tests/factory/spect.js | 76 ++++++++-------- tests/form/spect.js | 8 +- tests/menu/spect.js | 8 +- tests/popover/spect.js | 16 ++-- tests/tabs/spect.js | 6 +- tests/validation/spect.js | 8 +- views/m-compatible.html | 40 ++++----- views/mobile.html | 36 ++++---- 62 files changed, 390 insertions(+), 391 deletions(-) rename src/shared/js/{Widget.js => Component.js} (57%) diff --git a/Gruntfile.js b/Gruntfile.js index 54ece4d57..9ce22e92c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -47,7 +47,7 @@ module.exports = function (grunt) { }, 'js': { - 'src': ['temp/' + environment + '/core.tmp.js'].concat(files.JS.abilities).concat(files.JS.widgets), + 'src': ['temp/' + environment + '/core.tmp.js'].concat(files.JS.abilities).concat(files.JS.components), 'dest': destination + '/' + environment + '/chico.js' }, @@ -55,7 +55,7 @@ module.exports = function (grunt) { 'options': { 'banner': '<%= banner.full %>' }, - 'src': files.CSS.resetML.concat(files.CSS.core).concat(files.CSS.widgets), + 'src': files.CSS.resetML.concat(files.CSS.core).concat(files.CSS.components), 'dest': destination + '/' + environment + '/chico.css' } }, @@ -87,7 +87,7 @@ module.exports = function (grunt) { 'clean': ["temp/**/*.tmp.js"], 'jslint': { // configure the task - 'files': files.JS.abilities.concat(files.JS.widgets), + 'files': files.JS.abilities.concat(files.JS.components), 'directives': { 'nomen': true, 'todo': true @@ -101,7 +101,7 @@ module.exports = function (grunt) { 'jsdoc': { 'dist': { - 'src': files.JS.core.concat(files.JS.abilities).concat(files.JS.widgets), + 'src': files.JS.core.concat(files.JS.abilities).concat(files.JS.components), 'options': { 'template': './libs/doc-template', 'destination': './doc/' + environment, diff --git a/README.md b/README.md index 75f664fd0..1adad588f 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Chico UI - Get things done, quickly. -Chico UI is a free and open source collection of easy-to-use web tools for designers and developers. +Chico UI is a free and open source collection of easy-to-use web components for designers and developers. ## Features -- UI Widgets +- UI Components - Grids ## Get in touch diff --git a/extensions/carousel.autoSliding.js b/extensions/carousel.autoSliding.js index 559dc92bc..ffeacb06f 100644 --- a/extensions/carousel.autoSliding.js +++ b/extensions/carousel.autoSliding.js @@ -29,13 +29,13 @@ this.pause(); } - // Stop the automatic movement when the user interacts with the widget + // Stop the automatic movement when the user interacts with the component this._$el.one(pointertap, function () { that.pause(); }); /** - * Interval used to animate the widget autamatically. + * Interval used to animate the component autamatically. * @private * @type {Number} */ diff --git a/libs/doc-template/publish.js b/libs/doc-template/publish.js index f78579d19..d2cd698ef 100644 --- a/libs/doc-template/publish.js +++ b/libs/doc-template/publish.js @@ -229,7 +229,7 @@ function buildNav(members) { }); if (classNav !== '') { - nav += '

Widgets