diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 959e1696e..000000000 --- a/.bowerrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "directory": "bower_components", - "analytics": false -} diff --git a/.dependabot/config.yml b/.dependabot/config.yml deleted file mode 100644 index 7cdb625b7..000000000 --- a/.dependabot/config.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: 1 -update_configs: - - package_manager: "javascript" - directory: "/" - update_schedule: "weekly" - default_labels: - - "dependencies" - automerged_updates: - - match: - update_type: "in_range" - version_requirement_updates: "auto" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c790d2912..70b923d0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,86 +1,124 @@ -name: CI - -on: - push: - branches: - - main - - master - pull_request: {} - schedule: - - cron: "0 3 * * 0" # every Sunday at 3am - - -concurrency: - group: ci-${{ github.head_ref || github.ref }} - cancel-in-progress: true - -jobs: - test: - if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" - name: "Tests" - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v3 - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - - name: Install Dependencies - run: npm ci - - name: Lint - run: npm run lint - - name: Run Tests - run: npm run test:ember - - floating: - name: "Floating Dependencies" - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - - name: Install Dependencies - run: npm install --no-shrinkwrap - - name: Run Tests - run: npm run test:ember - - try-scenarios: - name: ${{ matrix.try-scenario }} - runs-on: ubuntu-latest - needs: "test" - timeout-minutes: 10 - - strategy: - fail-fast: false - matrix: - try-scenario: - - ember-lts-3.28 - - ember-lts-4.4 - - ember-lts-4.8 - - ember-lts-4.12 - - ember-5.4 - - ember-release - - ember-beta - - ember-canary - - ember-classic - - embroider-safe - - embroider-optimized - - steps: - - uses: actions/checkout@v3 - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - - name: Install Dependencies - run: npm ci - - name: Run Tests - run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup +name: CI + +on: + push: + branches: + - main + - master + pull_request: {} + +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: pnpm + + - name: 'Install dependencies' + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm --filter ember-power-select lint + + test: + name: "Tests" + runs-on: ubuntu-latest + needs: lint + + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: pnpm + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Run Tests + run: pnpm --filter test-app test:ember + + floating: + name: "Floating Dependencies" + runs-on: ubuntu-latest + needs: lint + + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: pnpm + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Run Tests + run: pnpm --filter test-app test:ember + + try-scenarios: + name: ${{ matrix.try-scenario }} + runs-on: ubuntu-latest + continue-on-error: true + needs: test + + strategy: + fail-fast: false + matrix: + try-scenario: + - ember-lts-3.28 + - ember-lts-4.4 + - ember-lts-4.8 + - ember-lts-4.12 + - ember-5.4 + - ember-release + - ember-beta + - ember-canary + - embroider-safe + - embroider-optimized + + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: pnpm + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Run Tests + env: + EMBER_TRY_SCENARIO: ${{ matrix.try-scenario }} + run: pnpm --filter test-app test:ember-try $EMBER_TRY_SCENARIO diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..71cc39d18 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,54 @@ +name: Docs CI + +on: + push: + branches: + - main + - master + pull_request: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'pnpm' + + - name: 'Install dependencies' + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm --filter docs lint + + test: + name: "Tests" + runs-on: ubuntu-latest + needs: lint + + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: pnpm + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Run Tests + run: pnpm --filter docs test:ember \ No newline at end of file diff --git a/.gitignore b/.gitignore index e0346ddfa..3e58c96d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1,22 @@ -# compiled output -/dist/ -/declarations/ +# See https://help.github.com/ignore-files/ for more about ignoring files. # dependencies -/node_modules/ +node_modules/ # misc -/.env* -/.pnp* -/.eslintcache -/coverage/ -/npm-debug.log* -/testem.log -/yarn-error.log +.env* +.pnp* +.pnpm-debug.log +.sass-cache +.eslintcache +coverage/ +npm-debug.log* +yarn-error.log # ember-try /.node_modules.ember-try/ -/npm-shrinkwrap.json.ember-try /package.json.ember-try /package-lock.json.ember-try /yarn.lock.ember-try +/pnpm-lock.ember-try.yaml -# broccoli-debug -/DEBUG/ - -# custom -/fastboot-dist diff --git a/.netlify b/.netlify deleted file mode 100644 index 1cfc3f8f7..000000000 --- a/.netlify +++ /dev/null @@ -1 +0,0 @@ -{"site_id":"ca7c10c2-4d63-49f7-b1be-9bf10ed4feee","path":"dist"} \ No newline at end of file diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 69beb28f0..000000000 --- a/.npmignore +++ /dev/null @@ -1,35 +0,0 @@ -# compiled output -/dist/ -/tmp/ - -# misc -/.editorconfig -/.ember-cli -/.env* -/.eslintcache -/.eslintignore -/.eslintrc.js -/.git/ -/.github/ -/.gitignore -/.prettierignore -/.prettierrc.js -/.stylelintignore -/.stylelintrc.js -/.template-lintrc.js -/.travis.yml -/.watchmanconfig -/CONTRIBUTING.md -/ember-cli-build.js -/testem.js -/tests/ -/yarn-error.log -/yarn.lock -.gitkeep - -# ember-try -/.node_modules.ember-try/ -/npm-shrinkwrap.json.ember-try -/package.json.ember-try -/package-lock.json.ember-try -/yarn.lock.ember-try diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index b6a7d89c6..000000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -16 diff --git a/.prettierrc.cjs b/.prettierrc.cjs new file mode 100644 index 000000000..d6a52956d --- /dev/null +++ b/.prettierrc.cjs @@ -0,0 +1,6 @@ +'use strict'; + +module.exports = { + plugins: ['prettier-plugin-ember-template-tag'], + singleQuote: true, +}; diff --git a/.tern-port b/.tern-port deleted file mode 100644 index ea1b61205..000000000 --- a/.tern-port +++ /dev/null @@ -1 +0,0 @@ -58609 \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..dfcfb0375 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "eslint.validate": [ + "glimmer-ts", + "glimmer-js" + ] +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 7daec0257..000000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,1299 +0,0 @@ - - - - -## v7.2.0 (2023-11-16) - -#### :rocket: Enhancement -* [#1593](https://github.com/cibernox/ember-power-select/pull/1593) Allow `ember-truth-helpers` v4 as dependency ([@mkszepp](https://github.com/mkszepp)) - -#### :bug: Bug Fix -* [#1612](https://github.com/cibernox/ember-power-select/pull/1612) Add missing dependency `@ember/render-modifiers` ([@mkszepp](https://github.com/mkszepp)) -* [#1603](https://github.com/cibernox/ember-power-select/pull/1603) isSliceable is not working for ember data 3.x hasmany relationships ([@betocantu93](https://github.com/betocantu93)) - -#### :house: Internal -* [#1613](https://github.com/cibernox/ember-power-select/pull/1613) Update release-it to v16 ([@mkszepp](https://github.com/mkszepp)) -* [#1610](https://github.com/cibernox/ember-power-select/pull/1610) Use ember-data 3.28 in ember 3.28 test & add ember 5 test ([@mkszepp](https://github.com/mkszepp)) -* [#1609](https://github.com/cibernox/ember-power-select/pull/1609) Update `ember-cli-mirage` to stable v3 ([@mkszepp](https://github.com/mkszepp)) -* [#1595](https://github.com/cibernox/ember-power-select/pull/1595) Update compatibility in readme ([@mkszepp](https://github.com/mkszepp)) -* [#1594](https://github.com/cibernox/ember-power-select/pull/1594) Add missing release notes for v7 ([@mkszepp](https://github.com/mkszepp)) - -#### Committers: 2 -- Alberto Cantú Gómez ([@betocantu93](https://github.com/betocantu93)) -- [@mkszepp](https://github.com/mkszepp) - -## v7.1.2 (2023-08-23) -- Update ember-basic-dropdown which uses a newer ember-element-helper. - -## v7.1.1 (2023-08-18) - -#### :bug: Bug Fix -* [#1589](https://github.com/cibernox/ember-power-select/pull/1589) fix: Update invalid type imports ([@HeroicEric](https://github.com/HeroicEric)) - -#### :house: Internal -* [#1591](https://github.com/cibernox/ember-power-select/pull/1591) build: Fix embroider optimized CI builds ([@HeroicEric](https://github.com/HeroicEric)) - -#### Committers: 1 -- Eric Kelly ([@HeroicEric](https://github.com/HeroicEric)) - -## v7.1.0 -- Make it compatible with Ember 5. - -## v7.0.0 (2023-03-06) -* [#1572](https://github.com/cibernox/ember-power-select/pull/1572) Fix tests for embroider-optimized ([@mkszepp](https://github.com/mkszepp)) -* [#1570](https://github.com/cibernox/ember-power-select/pull/1570) Update to ember 4.8 & packages. Require node >= 16, Ember >= 3.28 ([@mkszepp](https://github.com/mkszepp)) -* [#1564](https://github.com/cibernox/ember-power-select/pull/1564) Remove ember-data array deprecation ([@mkszepp](https://github.com/mkszepp)) -* [#1567](https://github.com/cibernox/ember-power-select/pull/1567) Pass along the @animationEnabled argument to dropdown.Content, bump ember-basic-dropdown ([@ArnaudWeyts](https://github.com/ArnaudWeyts)) -* [#1560](https://github.com/cibernox/ember-power-select/pull/1560) Fix import from ember-basic-dropdown ([@wagenet](https://github.com/wagenet)) -* [#1548](https://github.com/cibernox/ember-power-select/pull/1548) Add type declarations ([@charlesfries](https://github.com/charlesfries)) -* [#1544](https://github.com/cibernox/ember-power-select/pull/1544) fix: redirects in netlify ([@wozny1989](https://github.com/wozny1989)) -* [#1306](https://github.com/cibernox/ember-power-select/pull/1306) Fix a11y issues with inputs ([@mydea](https://github.com/mydea)) -* [#1545](https://github.com/cibernox/ember-power-select/pull/1545) chore: snippet improvements ([@wozny1989](https://github.com/wozny1989)) -* [#1542](https://github.com/cibernox/ember-power-select/pull/1542) fix: display code snippets in documentation ([@wozny1989](https://github.com/wozny1989)) -* [#1540](https://github.com/cibernox/ember-power-select/pull/1540) be more permissive on ember-truth-helpers ([@miguelcobain](https://github.com/miguelcobain)) -* [#1305](https://github.com/cibernox/ember-power-select/pull/1305) Ensure multiple select ul has only li children ([@mydea](https://github.com/mydea)) -* [#1495](https://github.com/cibernox/ember-power-select/pull/1495) Fix error when pressing backspace in empty multiple-select component ([@gvdp](https://github.com/gvdp)) - -## v6.0.1 (2022-08-23) - -#### :rocket: Enhancement -* [#1406](https://github.com/cibernox/ember-power-select/pull/1406) Add support for stylus (Apple Pencil) ([@krasnoukhov](https://github.com/krasnoukhov)) - -#### Committers: 1 -- Dmitry Krasnoukhov ([@krasnoukhov](https://github.com/krasnoukhov)) - -## v6.0.0 (2022-08-05) - -#### :boom: Breaking Change -* [#1533](https://github.com/cibernox/ember-power-select/pull/1533) Require node >= 14, Ember >= 3.24 ([@rwwagner90](https://github.com/rwwagner90)) -* [#1526](https://github.com/cibernox/ember-power-select/pull/1526) Delete files array to fix TS, require ember-basic-dropdown 6+ ([@rwwagner90](https://github.com/rwwagner90)) - -#### :rocket: Enhancement -* [#1530](https://github.com/cibernox/ember-power-select/pull/1530) embroider-optimized support ([@rwwagner90](https://github.com/rwwagner90)) -* [#1529](https://github.com/cibernox/ember-power-select/pull/1529) Allow a wider range of ember-basic-dropdown versions ([@cibernox](https://github.com/cibernox)) - -#### :house: Internal -* [#1535](https://github.com/cibernox/ember-power-select/pull/1535) Add rwjblue release-it ([@rwwagner90](https://github.com/rwwagner90)) -* [#1532](https://github.com/cibernox/ember-power-select/pull/1532) Fix embroider-optimized ([@rwwagner90](https://github.com/rwwagner90)) -* [#1531](https://github.com/cibernox/ember-power-select/pull/1531) Update linting config, comply with prettier ([@rwwagner90](https://github.com/rwwagner90)) -* [#1506](https://github.com/cibernox/ember-power-select/pull/1506) Cleans up scrollTo's element finding ([@matthew-robertson](https://github.com/matthew-robertson)) - -#### Committers: 4 -- Chris Manson ([@mansona](https://github.com/mansona)) -- Matthew Robertson ([@matthew-robertson](https://github.com/matthew-robertson)) -- Miguel Camba ([@cibernox](https://github.com/cibernox)) -- Robert Wagner ([@rwwagner90](https://github.com/rwwagner90)) - -# Master - -# 5.0.4 -- Improve compatibility with embroider -# 5.0.2 -- Make the component compatible with Embroider builds. -- Revert #1470. It turned out to be a breaking change. -# 5.0.1 -- (#1470) [ENHANCEMENT] For multiselects, ensure that, if an option is disabled, AND that option is selected, then we can't "remove" that option from the selection -- Allow the addon to work with ember-basic-dropdown 3 and 4. - -# 5.0.0 -- (#1481) [MAYBE BREAKING] Big overhaul of the a11y of the component. Now it uses `aria-activedescendant` to properly announce highlighted options. -- (#1483) [BREAKING] Now options always have `role=option`. Before the selected option had `role=alert` instead but with the recent - a11y enhancements this is more correct. -# 4.1.7 -- Forward in `@animationEnabled` from PowerSelectMultiple to inner select #1475 -- Remove debugger statements introduced by mistake -# 4.1.5 -- [ENHACEMENT] Update ember-basic-dropdown to 3.0.17 which includes updated `ember-element-helper` and should - be more friendly with embroider. -- [BUGFIX] Ensure searchbox in multiple select doesn't submit its enclosing form when enter is pressed. - -# 4.1.4 -- [BUGFIX] Fix arrays appended to multiple selects' selected array (#1447) -# 4.1.3 -- [CHORE] Move from travis to github actions, fixing the test suite along the way. This has also - updated the version of ember-basic-dropdown. - -# 4.1.2 -- [BUGFIX] Fix problem when passing `@initiallyOpened` along with `@selected`. - -# 4.1.1 -- [ENHANCEMENT] Allow to customize what's displayed when no item matches the search by passing a `@noMatchesMessageComponent`. - -# 4.1.0 -- [ENHANCEMENT] Makes changed to aria roles so the currently highlighted option can be announced by assistive - technology like Voice Over. -- [CHORE] Relax allowed versions of ember-truth-helpers so projects are less likely to have to resolve dependencies. - -# 4.0.5 -- [BUGFIX] Remove event listeners on destroy. - -# 4.0.4 -- [BUGFIX] Ensure observers set when selected/options are promise proxies are properly removed when - the component is destroyed, to prevent memory leaks. - -# 4.0.3 -- Update `ember-concurrency-decorators` to 2.0 - -# 4.0.0-beta.6 -- [BUGFIX] Multiple selects can receive an ember-data collection in the `@selected` attribute. - -# 4.0.0-beta.5 -- [BUGFIX] Fix component when the `@search` action return an ember-data collection -- [CHORE] Convert addon to typescript. - -# 4.0.0-beta.4 -- [BUGFIX] When `@options` is an ember-data collection, transform to a plain array for the public API -- [BUGFIX] Update ember-basic-dropdown to 3.0.0-beta.3 to fix select not recalculating its position - after scrolling or resizing the window. - -# 4.0.0-beta.3 -- [BUGFIX] Moved `ember-assign-helpers` from devDependencies to dependencies in `package.json` -- [ENHANCEMENT] Cache filtered results for better performance when selects have many items. - -# 4.0.0-beta.2 -- [CHORE] Update `@glimmer/component` to 1.0.0 and EBD to next beta. - -# 4.0.0-beta.1 -- [MAYBE-BREAKING] Update to glimmer components and EBD - -# 3.0.4 -- [BUGFIX] Allow to customize `calculatePosition` by extending from PowerSelect. -- [BUGFIX] Fix default values for `triggerComponent` and `buildSelection` in `` - -# 3.0.3 -- [BUGFIX] Allow `@triggerRole` to be used to remove completely the role of the trigger by passing `false`/`null` - -# 3.0.2 -- [BUGFIX] Put `@ember-decorators/component` in dependencies. - -# 3.0.1 -- [BUGFIX] Fix bug in `` that caused it to render the search term in both the - trigger and the before options component. - -# 3.0.0 -- [CHORE] Update to Ember Basic Dropdown 2.0 final. - -# 3.0.0-beta.3 -- [CHORE] Update version of ember-basic-dropdown - -# 3.0.0-beta.1 - -- [BREAKING] Now this addon requires Ember 3.11 (in beta at the moment of this writing) -- [BREAKING] This component now expects to be invoked with `` syntax. -- [BREAKING] All actions starting with `on` (e.g. `onchange` and `onopen`) are now spelled with camelCase (`@onChange` and `@onOpen`) -- [BREAKING] @searchEnabled is now false by default - -# 2.3.4 -- [BUGFIX] Add back node 6 in the list of supported engines - -# 2.3.3 -- [CHORE] Allow ember-concurrency 1.0 - -# 2.3.2 -- [BUGFIX] Fix bug that caused disabled options to be selectable on touch devices. - -# 2.3.1 -- [BUGFIX] Allow both ember-concurrency 0.9.X and 0.8.X to support octane and older versions of Ember - -# 2.3.0 -- [UPDATE] Depend on ember-concurrency 0.9 for better octane support - -# 2.2.3 -- [ENHANCEMENT] Allow styles to work on apps using Module Unification. - -# 2.2.2 -- [BUGFIX] Prevent scroll only if target is body - -# 2.2.1 -- [BUGFIX] Update test helpers so they work with latest version of EBD - -# 2.2.0 -- [BUGFIX] `{{power-select-multiple}}` should be a tagless component unless otherwise specified. - -# 2.1.0 -- [ENHANCEMENT] Create a new sass/less styles that are then imported from the main style. This should - not change the public API - -# 2.0.15 -- [BUGFIX] Forward `triggerRole` from the multiple-select to the inner select - -# 2.0.14 -- [BUGFIX] Fix bug when multiple selects are tagless - -# 2.0.13 -- [INTERNAL] Forward `_triggerTagName` in multiple selects - -# 2.0.12 -- [BUGFIX] Fix focusing of the searchbox in recent versions of Ember. - -# 2.0.11 -- [BUGFIX] Forward `eventType` in multiple selects - -# 2.0.10 -- [ENHANCEMENT] Allow select to be open with `click` instead of `mousedown` - -# 2.0.9 -- [BUGFIX] Add `highlightOnHover` option (defaults to `true`) that decides if - hovering an option with the mouse highlights it. - -# 2.0.8 -- [BUGFIX] Fix the previous bugfix. - -# 2.0.7 -- [BUGFIX] Avoid polyfilling the DOM in fastboot. - -# 2.0.6 -- [BUGFIX] Better support `ObjectProxy` to adapt to changes in EmberData > 3.1 - -# 2.0.5 -- [BUGFIX] Ensure the active/deactivate actions are not called if the component is already being destroyed. - -# 2.0.4 -- [BUGFIX] Fix a bug in which the multiple select opened immediately when renderedin IE11 when using Ember 3.1+ (3.0 and below did not have this bug). - It has to do with the way placeholders are set and a bug in IE11 that setting the placeholder trigger a `input` event. -- [FEATURE] You can add a title to the trigger by passing `title="The title"` to `{{power-select}}` or `{{power-select-multiple}}` - -# 2.0.3 -- [BUGFIX] Remove forgoten console statement in test helper - -# 2.0.2 -- [INTERNAL] Ensure the addon checks if an object is "thenable" using `Ember.get`. - -# 2.0.1 -- [ENHANCEMENT] Pass the `extra` option to the `selectedItemComponent` -- [CLEANUP] Remove support for node 4. - -# 2.0.0 -- [INTERNAL] Update to `ember-basic-dropdown` 1.0.0!! -- [INTERNAL] Stop using `ember-native-dom-helpers`. Use regular helpers in `@ember/test-helpers`. This - causes some subtle changes in asynchrony on the provided test helpers, but if people are using them - as intended (with async/await) there should be no noticeable changes. - -# 2.0.0-beta.5 -- [BUGFIX] Remove redundant `self.` preceeding many well know globals like document or window - -# 2.0.0-beta.4 -- [BUGFIX] Fixes big un Ember 3.1 accessing the getter `selected.then` - -# 2.0.0-beta.0 -- [BREAKING] Remove long-time-deprecated behavior to support _some_ usages of the `:eq` pseudoselector from jQuery. -- [DEPRECATE] Deprecate global async test helpers: `selectChoose`, `selectSearch`, `removeMultipleOption` - and `clearSelected`. They are still available, but we recomend explicitly importing them from `ember-power-select/test-support/helpers` -- [BREAKING] Update to ember-basic-dropdown 1.0.0-beta.0, which drops support for Ember 2.9 and below. - In exchange, the component is now lighter and presumably faster. -- [BREAKING] Change the behaviour of the select when the user types on the focused trigger to mimic - how native selects work: Repeating a char cycles though the options that start with that char, but - not repeating performs a search (from be beginning, it will not match substrings in the middle of - a word). This matcher is called `typeAheadMatcher`, and can also be provided by the user if they - want a different behaviour. This change in behaviour kicks the 2.0 cycle. - -# 1.10.4 -- [INTERNAL] Refactor test suite to use the new testing API - -# 1.10.3 -- [DEPRECATION] Add deprecation to all test helpers when imported from `../../test-support/ember-power-select`. - Users should use the helpers that live in `/addon-test-selectors`, whose import part is stable regardless - of the nesting of the file from where they are imported. P.e. `import { selectChoose } from 'ember-power-select/test-support/helpers';` - -# 1.10.2 -- [ENHANCEMENT] Upgrade to `ember-basic-dropdown` 0.33.10, which supports the `horizontalPosition` property - on selects rendered in-place. -- [BUGFIX] Fix edge case in which an observer could be fired on a being destroyed (this could probably only - happen during tests) - -# 1.10.1 -- [ENHANCEMENT] Add `triggerRole` option to customize the role of the trigger component down in - ember-basic-dropdown. - -# 1.10.0 -- [UPDATE] Update `ember-basic-dropdown`, which removes compatibility with IE10 (which was very poor to - begin with) -- [ENHANCEMENT] Update `ember-text-measurer` to 0.4.0, which uses the latest babel, allowing consumer - apps to drop `ember-cli-shims`. -- [BUGFIX] Ensure selecting an option by pressing the spacebar on a select without searchbox does not - cause a page scroll. - -# 1.9.11 -- [ENHANCEMENT] Update `ember-truth-helpers` to ^2.0 -- [ENHANCEMENT] Update `ember-cli-babel` to ^6.8.2 - -# 1.9.10 -- [ENHANCEMENT] Pass the `placeholder` and the `placeholderComponent` to the `beforeOptionsComponent`, - to allow more customizations on it. -- [BUGFIX] Allow to specify negative margins in Sass variables - -# 1.9.9 -- [ENHANCEMENT] If the options is a `PromiseArrayProxy`, the content of the array is set immediately - and updated later when the promise resolves. - -# 1.9.8 -- [BUGFIX] The Y-axis validation of the click coordinates when opening is disabled in testing because - there is some chance that, due to the weird positioning selects can have in testing, it throws false - negatives. - -# 1.9.7 -- [ENHANCEMENT] The trigger component also receives the loadingMessage. - -# 1.9.6 -- [ENHANCEMENT] Allow `buildSelection` to fallback to the default one when the provided one - is undefined. -- [ENHANCEMENT] Add assertion to ensure developers pass a `searchField` option if the options are not plain strings. - -# 1.9.5 -- [BUGFIX] Allow the to use the num-pad of the keyboard to highlight/select items while the trigger - is focused. Prior to this, only numbers above the keyboard would work. - -# 1.9.4 -- [BUGFIX] `selectChoose` and `selectSearch` test helpers now make sure that the trigger is scrolled - into the viewport before clicking it, as it might cause problems to click in an outside-view item. - -# 1.9.3 -- [BUGFIX] Ensure that keys pressed with `ctrl` or `alt` on a focused trigger do not call the autoselection/autohighlighting - feature. - -# 1.9.2 -- [BUGFIX] Ensure new import paths work regardless of the babel version on the consumer app - -# 1.9.1 -- [INTERNAL] Remove one forgotten use of the old shims - -# 1.9.0 -- [INTERNAL] Do not import the `Ember` global or the old shims anymore. Use the new and definitive import paths. -- [INTERNAL] Update to a version of `ember-basic-dropdown` that uses the new import paths - -# 1.8.5 -- [BUGFIX] Fix bug in iOS that prevented taps in items to be selected. Bug was introduced in 1.7. - -# 1.8.4 -- [ENHANCEMENT] Allow to use `selectChoose` in integration. - -# 1.8.3 -- [BUGFIX] Improve smoothness of the scroll of the list of options in iOS devices. -- [ENHANCEMENT] Add an assertion in dev/test to warn the user that having promises inside - groups is not supported. -- [ENHANCEMENT] Update `ember-basic-dropdown` to `^0.32.5` so it uses `ember-cli-babel` 6.1 and - `ember-native-dom-helpers` 0.4.0 -- [INTERNAL] Use new `assert` helper provided by ember-cli-babel 6.1 that are automatically - removed in production. - -# 1.8.2 -- [ENHANCEMENT] Allow developers to pass a function to customize how the select should scroll - to display an element of the list outside the viewport. Pass `scrollTo=scrollTo`. It receives - `option, select, event`. - -# 1.8.1 -- [ENHANCEMENT] The HTMLElement passed to `selectChoose` can now be an ancestor of the trigger instead of only the trigger itself. This was made for consistency with the behaviour of the helper when it receives a CSS selector instead of an element. - -# 1.8.0 -- [ENHANCEMENT] Update to EBD 0.32, which allows the select to work when nested inside - elements with scroll. It also fixes positioning when the body is not not positioned at 0,0 - -# 1.7.2 -- [BUGFIX] Fix page scroll when component is opened after refactor to remove jQuery. Fixed - by bumping the version of ember-basic-dropdown. - -# 1.7.1 -- [ENHANCEMENT] `selectChoose` and `selectSearch` now accept the HTMLElement of the trigger - instead of the string with the CSS selector as first arguments. - -# 1.7.0 -- [ENHANCEMENT] Remove jQuery totally. Saved 29.28KB (min + gzip) on the docs. -- [ENHANCEMENT] Acceptance helpers do not use jQuery, so can be used in apps without jQuery. The - addon itself it tested without jQuery to ensure it remains jQuery free. -- [DEPRECATION] Passing selectors with `:eq()` is supported but deprecated. -- [ENHANCEMENT] Added a third numeric option to the `selectChoose` helper to select the - nth element that matches the given selector. E.g: `selectChoose('.language-select', '.power-select-option', 3)`. -- [INTERNAL] Fully refactor to use `ember-native-dom-helpers` both in acceptance and integration. -- [ENHANCEMENT] The component should work without jQuery. It isn't tested yet tho since - ember-data doesn't work without it. Added an `Element.closest` polyfill for it. - -# 1.6.1 -- [BUGFIX] Fix double render bug when disabling a component a select. It was caused - because several blur events were modifying the same property twice. Now changes - to `isActive` are coalesced. - -# 1.6.0 -- [INTERNAL] Bump a few internal dependencies and relese babel 6 in stable. - -# 1.6.0-beta.0 -- [INTERNAL/BREAKING??] Update to Babel 6. There is no reason to think this should be - breaking, but releasing a beta first, just in case. - -# 1.5.0 - -# 1.5.0-beta.2 -- [ENHANCEMENT] Allow to pass a `calculatePosition` function that allows to customize - how the content is placed and resized. This option has been available in EBD for a long - time, but now EPS allows it too. - -# 1.5.0-beta.1 -- [ENHANCEMENT] Now the selected option in the trigger of multiple select have the - `ember-power-select-multiple-option--disabled` class if that option is disabled. This - can be used to hide with CSS the `x` button on those options. -- [INTERNAL] Some new **very-private-you-should-not-use-them** options to customize the - tagName of the trigger and the content. - -# 1.5.0-beta.0 -- [ENHANCEMENT/BREAKING-ISH] `ember-basic-dropdown` has improved the experience with A11y - for screen readings. Some `aria-*` have changed and there is an invisible div that wasn't - there before. EPS doens't rely on those attributes and it's unlikely that this will - break for anyone, but just in case I'll bump a minor version number and keep it in - beta for some days. - -# 1.4.3 -- [ENHANCEMENT] `typeInSearch` integration test helper now accepts an options scope to - target specific selects when there is more than one in the screen. - -# 1.4.2 -- [BUGFIX] Fix wrong rgba color in LESS stylesheets of bootstrap theme - -# 1.4.1 -- [ENHANCEMENT] The id of the trigger can be customize now with `triggerId="foo"`. Useful to relate - selects with `