diff --git a/.gitignore b/.gitignore index 7e0f7dd..f1e859b 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,10 @@ # ember-try /.node_modules.ember-try/ /bower.json.ember-try +/npm-shrinkwrap.json.ember-try /package.json.ember-try +/package-lock.json.ember-try +/yarn.lock.ember-try + +# broccoli-debug +/DEBUG/ diff --git a/.npmignore b/.npmignore deleted file mode 100644 index f9c41ef..0000000 --- a/.npmignore +++ /dev/null @@ -1,31 +0,0 @@ -# compiled output -/dist/ -/tmp/ - -# dependencies -/bower_components/ - -# misc -/.bowerrc -/.editorconfig -/.ember-cli -/.env* -/.eslintcache -/.eslintignore -/.eslintrc.js -/.gitignore -/.template-lintrc.js -/.travis.yml -/.watchmanconfig -/bower.json -/config/ember-try.js -/ember-cli-build.js -/testem.js -/tests/ -/yarn.lock -.gitkeep - -# ember-try -/.node_modules.ember-try/ -/bower.json.ember-try -/package.json.ember-try diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..d474a40 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,25 @@ +# unconventional js +/blueprints/*/files/ +/vendor/ + +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ +/node_modules/ + +# misc +/coverage/ +!.* +.*/ +.eslintcache + +# ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/npm-shrinkwrap.json.ember-try +/package.json.ember-try +/package-lock.json.ember-try +/yarn.lock.ember-try diff --git a/index.js b/.prettierrc.js similarity index 51% rename from index.js rename to .prettierrc.js index 0ca063d..534e6d3 100644 --- a/index.js +++ b/.prettierrc.js @@ -1,5 +1,5 @@ 'use strict'; module.exports = { - name: require('./package').name, + singleQuote: true, }; diff --git a/app/components/select-light.js b/app/components/select-light.js deleted file mode 100644 index 2bccd90..0000000 --- a/app/components/select-light.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from 'ember-select-light/components/select-light'; diff --git a/app/helpers/is-equal.js b/app/helpers/is-equal.js deleted file mode 100644 index 334a76d..0000000 --- a/app/helpers/is-equal.js +++ /dev/null @@ -1 +0,0 @@ -export { default, isEqual } from 'ember-select-light/helpers/is-equal'; diff --git a/ember-cli-build.js b/ember-cli-build.js deleted file mode 100644 index ba0649d..0000000 --- a/ember-cli-build.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -const EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); - -module.exports = function (defaults) { - let app = new EmberAddon(defaults, { - // Add options here - }); - - /* - This build file specifies the options for the dummy test app of this - addon, located in `/tests/dummy` - This build file does *not* influence how the addon or the app using it - behave. You most likely want to be modifying `./index.js` or app's build file - */ - - return app.toTree(); -}; diff --git a/ember-select-light/.eslintignore b/ember-select-light/.eslintignore new file mode 100644 index 0000000..e69140b --- /dev/null +++ b/ember-select-light/.eslintignore @@ -0,0 +1,8 @@ +# unconventional js +/blueprints/*/files/ + +# compiled output +/dist/ + +# misc +/coverage/ diff --git a/.eslintrc.js b/ember-select-light/.eslintrc.js similarity index 100% rename from .eslintrc.js rename to ember-select-light/.eslintrc.js diff --git a/ember-select-light/.gitignore b/ember-select-light/.gitignore new file mode 100644 index 0000000..7e0f7dd --- /dev/null +++ b/ember-select-light/.gitignore @@ -0,0 +1,26 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ +/node_modules/ + +# misc +/.env* +/.pnp* +/.sass-cache +/.eslintcache +/connect.lock +/coverage/ +/libpeerconnection.log +/npm-debug.log* +/testem.log +/yarn-error.log + +# ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/.template-lintrc.js b/ember-select-light/.template-lintrc.js similarity index 100% rename from .template-lintrc.js rename to ember-select-light/.template-lintrc.js diff --git a/ember-select-light/LICENSE.md b/ember-select-light/LICENSE.md new file mode 100644 index 0000000..9e2e977 --- /dev/null +++ b/ember-select-light/LICENSE.md @@ -0,0 +1,13 @@ +The MIT License (MIT) + +Copyright (c) 2020 + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +--- + +Originally published under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) (Copyright 2016 Q2 Holdings Inc.) diff --git a/ember-select-light/README.md b/ember-select-light/README.md new file mode 100644 index 0000000..d558742 --- /dev/null +++ b/ember-select-light/README.md @@ -0,0 +1,99 @@ +# Ember-Select-Light + +![CI](https://github.com/ember-a11y/ember-select-light/workflows/CI/badge.svg?branch=main) ![PRs Welcome](https://camo.githubusercontent.com/d4e0f63e9613ee474a7dfdc23c240b9795712c96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667) ![License: MIT](https://camo.githubusercontent.com/890acbdcb87868b382af9a4b1fac507b9659d9bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![npm package](https://d25lcipzij17d.cloudfront.net/badge.svg?id=js&type=6&v=2.0.0&x2=0)](https://badge.fury.io/js/ember-select-light) [![Ember Observer](https://emberobserver.com/badges/ember-select-light.svg)](https://emberobserver.com/addons/ember-select-light) + +Ember-Select-Light is an Ember Addon focused on simplicity. Just powerful enough to offer expected baseline functionality while being easy to implement, style, and make accessible. + +This addon is [Octane ready](https://emberjs.com/editions/octane/) and follows [ember-component-pattern's for how to best write a Select Element](https://emberjs-1.gitbook.io/ember-component-patterns/form-components/select-element). + +## Getting Started + +```bash +ember install ember-select-light +``` + +### Example Usage + +```handlebars + +``` + +#### With an array of objects... + +```handlebars + +``` + +`value` and `label` will be the default object keys used unless `@valueKey="...` and/or `@displayKey="...` are used respectively, like so... + +```handlebars + +``` + +#### As a Yield + +```handlebars + + + + +``` + +### Other arguments + +Other arguments are spread onto the `