[DEPRECATED] ember-frost-core
This repository is deprecated. We do not recommend using the content of this repository please use the following: frost-core (internal)
The library of core frost components
This repository is deprecated. We do not recommend using the content of this repository please use the following: frost-core (internal)
keyPress)isLoading to frost-select and frost-multi-selectonClear now also calls onChange with undefined to represent the selection being clear'' if frost-autocompletefocusedIndex from frost-autocomplete-dropdownfrost-autocompletefrost-autocomplete testsfrost-autocomplete to send the object back (rather than just value), and receive object via selectedValuelocalFiltering option to frost-autocomplete. Allows user to turn off local filtering, useful in the case of async filtering (ie data won't filter locally first then quickly switch to backend data)frost-icon-svg.js util to use the correct optionember-cli-notifications to version 4.2.1 to fix broken demo appfrost-expand animation target to target its direct childrencopyAttrs configuration option for svgstoreisChevronOnlyClickTrigger and labelComponent props to frost-expandember-frost-icon-pack keyword from package.jsonember-frost-icon-pack property from package.jsonember-cli-svgstore and installed it in this addon.this._findHost()frost-icons documentation to demonstrate new way of managing/creating icon packspr-bumper version 3ember-frost-test to ^4.0.1ember-test-utils to ^8.1.1ember-cli-frost-blueprints to ^5.0.2ember-prop-types to ^7.0.1ember-spread to ^5.0.0array.js to use array.slice()ehook.js app export and tests since it is now provided by ember-hookpackage-lock.json filepackage-lock.json filefrost-buttonblueprint-helper.js, related tests and mention in README.mdchalk, child-process-promise, promise, and semver NPM dependenciesaddon-test-support. For example, test helpers previously available at dummy/tests/helpers/ember-frost-core/<frost-select> are now available via ember-frost-core/test-support/<frost-select>README.md about test helpersonClear functionality to both frost-text, and frost-textareaember-cli-path-utilsfrost-guide-custom-routingnpm-install-security-checkember-cli-sass NPM dependency to 7.1.1ember-computed-decorators NPM dependency to 0.3.0ember-concurrency NPM dependency to 0.7.19ember-hook NPM dependency to 1.4.2ember-inflector Bower dependency to 1.3.1highlightjs Bower dependency to 9.12.0broccoli-babel-transpiler NPM dependency to ^5.7.2ember-browserify NPM devDependency to ^1.2.0ember-prop-types NPM dependency to ^6.0.1broccoli-autoprefixer NPM dependency to ^5.0.0broccoli-funnel NPM dependency to ^2.0.1broccoli-merge-trees NPM dependency to ^2.0.0broccoli-svgstore NPM dependency to ^0.4.2ember-frost-test NPM devDependency to ^4.0.0ember-cli-frost-blueprints NPM devDependency to ^5.0.1ember-spread NPM dependency to ^4.0.1bower NPM devDependency at ^1.8.2Faker Bower dependency to devDependenciespretender Bower dependency to devDependenciesember-resolver to align with other reposember-disable-prototype-extensions devDependency to bring inline with semver range of other reposember-hook from devDependencies to dependenciesafterInstall() hook in blueprint.ember-computed-decorators from devDependencies to dependencies in package.jsonember-concurrency from devDependencies to dependencies in package.jsonember-elsewhere from devDependencies to dependencies in package.jsonember-prop-types from devDependencies to dependencies in package.jsonember-spread from devDependencies to dependencies in package.jsonember-truth-helpers from devDependencies to dependencies in package.jsonfrost-checkboxautorun loop is disabledWe apologize for this change. Unfortunately, due to the internal needs of our organization this became a required action.
The 2.16.2 changes are now located in the ember-cli-2.16.2 branch and will hopefully be contained in a versioned release again in the future.
ember-decoratorsindex.js since it is no longer needed for `ember-decorators'included method's this._super call is properly bound to the context (fixes ember-decorators/ember-decorators#173).ember-elsewhere to pre-babel 6 versionember-cli-htmlbars-inline-precompile to pin to version 0.3.12 until ember-cli/ember-cli-htmlbars-inline-precompile#90 is resolved. (See issue: https://github.com/ciena-frost/ember-frost-core/issues/488)ember-cli-build.js to includePolyfill: true for ember-cli-babel as part of issue: https://github.com/ciena-frost/ember-frost-core/issues/488linearGradients renderingember-release from .travis.ymlupdate when rendersAdded style rules for the hover state of the frost-toggle button switch. The switch will now turn a light blue color when the user mouses over the toggle. If the toggle is disabled, the switch will not change color.
default.frost-expand component and frost-error componentember-cli-frost-blueprints from dependencies in package.json to being installed as a blueprint. It turns out that ember-cli cheats w.r.t. ember-cli-legacy-blueprints and so we can't follow that pattern (of just making it an npm dep). ember-cli-forst-blueprints to 1.xember-cli-frost-blueprintsember-cli-frost-blueprints to the dependencies so that the same blueprints are still available to consumers of this addon. ember from bower.json to ember-source from package.jsonember-sourceember-cli-shims to the npm package instead of the bower packageember-template-compiler needed for frost-events-tests.js integration testswindowUtils inside utils that's exported from addon/index.js. Consumers can now import the windowUtils without needing to know the path in the filesystem:import {utils} from 'ember-frost-core'
const {windowUtils} = utilsinstead ofimport windowUtils from 'ember-frost-core/utils/window'frost-link test helpers to addon-test-support, specifically just a stubRouteService helper method to allow consumers of frost-link to check the routes passed into it. frost-link a little. frost-bookends component, implementing the pattern used by ember-frost-modal for a fixed header/footer with scrolling content in between. Complete with the shadow effect on the header/footer when content is scrolled beneath it. One notable difference between the styling of frost-bookends and that of ember-frost-modal is the lack of transparency in the footer, with content scrolling beneath it. This was intentional, as directed by UX (@baconC)frost-password to make them a little DRYer, and added a test (currently only in Chrome) for the feature that maintains selected text across reveal toggles. (using a pinnedember-code-snippet@1.7.0so as to avoid overwritingrequireand breakingember-cli-code-coverage`)onToggle callback which is called with the new value whenever toggledonClick callback, which wasn't handling raw functions very well when going through the event proxytrueValue/falseValue when trueLabel/falseLabel are set:after selector in firefox

Closes #224
frost-select-list.width property to the frost-select component interface. works by explicitly overriding any width/min/max width on that frost-select instance to explicitly set a desired width.Closes #409
Closes #388
ember-cli from ^2.11.0 to ~2.11.0debounceInterval into frost-selectFix button shifting when clicked
frost-select that was introduced when adding text trimming.Added some aria attributes to frost-select in order to make it a little bit more accessibility friendly.
Updated testem to use custom reporter for better DX.
Updated linting to leverage new linting tools provided by ember-test-utils which gives us the following
output:
getComponentName returns clean className for nested componentsember-spread from devDependency to a dependencyember-spread from the blueprintdescribeComponent()Added ellipsis in middle of select item labels when the text is trimmed instead of at the end as well as show the full label on mouseover. Prior to this change there was no way to see the full label when it is too wide.
Added new open() and selectItemAtIndex() test helpers for frost-select which can be used like so (in
example the hook for the select being tested is mySelect):
import {
expectWithState as expectSelectWithState,
open,
selectItemAtIndex
} from 'dummy/tests/helpers/ember-frost-core/frost-select'
// before below test can run you'd need to render whatever DOM is necessary for your test
describe('when select opened', function () {
beforeEach(function () {
open('mySelect')
})
describe('when first item selected', function () {
beforeEach(function (done) {
selectItemAtIndex('mySelect', 0, done)
})
it('renders as expected', function () {
expectSelectWithState('mySelect', {
focused: true,
opened: false,
text: 'My first item'
})
})
})
})helper-addon blueprintfrost-link and brought in
ember-disable-prototype-extensions to prevent this kind of issue in the future.Fixed bug when trying to use frost-text with type="number". The error that was occurring was:
Uncaught DOMException: Failed to set the 'selectionDirection' property on 'HTMLInputElement': The input element's type ('number') does not support selection.frost-link where text wasn't showing up when using routes or routeNames options while using
an inline frost-link.frost-linkWith the addition of ember-frost-test as a dependency, the ember-frost-core blueprint must be run when updating to
this version. You can do so with ember g ember-frost-core
ember-frost-test as a dependencyaddon-import base blueprint to be used by future -addon blueprints (taken right out of emberjscomponent-test blueprint as it's now provided by ember-frost-testcontroller blueprinthelper, and helper-addon blueprintsmixin blueprintservice blueprintutil blueprintember-prop-types to throw errors instead of log warnings in tests and dummy app as
well as work with ember-spread.ember-prop-type warnings by adding missing required properties in tests and fixing invalid values in
getDefaultProps().frost-button tests to use setupComponentTest instead of describeComponentfrost-button tests to use helpers from ember-test-utilsfrost-button tests to use more describe and beforeEach blocks to align more with our testing conventionsfrost-link to require hook property in propTypes definition.frost-password to not set properties to invalid values in getDefaultProps().ember-prop-types warnings from dummy app by adding missing hooks.frost-button where underlying icons weren't being provided the hook property.npm run eslint --- --fix while running latest
eslint-config-frost-standard which includes new rules
from eslint-plugin-ember-standard and
eslint-plugin-ocd.text attributefrost-text input with a type of number.frost-select readme (#351)hook as a required property for frost components (warning log)spread use
caseember-prop-types: ^3.0.0 to blueprints when installing ember-frost-coreember-cli-mocha which pulls in a newer ember-mocha and deprecates describeComponent (PR coming in
the next couple days to refactor our tests accordingly)CssMixin test to test against a real component defined in the dummy app so that we catch when the
toString() format changes.addon/index.js had a typo w.r.t. a module name and thus threw an error whenever anyone
tried to import anything directly from ember-frost-core.extends helper to allow adding properties to a pojo (for use with hookQualifiers. Will add docs to
README.md in next PRehook helper to allow setting hookQualifiers as a POJO and not just key/value pairs (only useful until
this pr is merged). Will add docs to README.md in next PRCssMixin - will add docs in README.md in next PRComponent base class addon/components/frost-component.js to easily include all desired/required mixins
for our components (CssMixin, HookMixin, PropTypesMixin, and SpreadMixin currently).frost-component_getOnClickHandler() and unnecessary mutable cell check.ember-spreadember-spreadember-spread to core componentsonClick action callget, set, on and $addon/index.jsbaseURL to rootURLpackage.json scriptsember-cli-code-coverage version to 3.5.0one-way-controlssizerequired and error for radio-button/radio-groupfrost-scrollfrost-select to open dropdown when select is focused and user presses up/down arrow key.ember-browserify and svg4everybody npm dependencies in favor of including svg4everybody via
vendor directory.frost-select.frost-component generatorember install'dember-test-utilschai-jquery and sinon-chaicomponent generator which uses our lint rules and our comment blockscomponent-test generator which uses mocha and ember-test-utils. It also sets up sinon
automatically and has a failing test to make developers add a real test.component-addon generator which does the re-export of a component in the app directory, basically
the same as the default generator, minus the ; at the end.PULL_REQUEST_TEMPLATE.md file to help contributors remember to put version-bump comments and
changelog messages in their PR descriptions.frost-select to not depend on prototype extensions.frost-select from the ground up to make it keyboard friendly and fix all of the issues we have been
having with it. However I kept the same component API so consuming apps should still just work. CSS selectors did
change though which will break any overriding CSS and tests that depend on the old selectors.frost-password, frost-select, and frost-text.frost-multi-select.frost-select dropdown to update at 60 fps and stop using element property as it causes conflicts in
Ember 2.9 beta 3.frost-select-outlet and documented it.frost-select and frost-multi-select to render dropdown elsewhere in the DOM, using
ember-elsewhere, in order to make them more flexible.2.1 to 2.3 since ember-elsewhere doesn't appear to work on versions
prior to 2.3.frost-select drop down menu is now a darker color.Fix a problem where frost-select would clear prompt on redraw
Use onclick handler from parameter passed from component/controller property
npm-install-security-check as a dependency to make consumers more security conscious.fix for active route on link click
2.1.onClick event to the frost-link component that is sent prior to transitionember-hook dependency and blueprint to latest versioninvoke child included hooks
lodash methods in favor of ES6 and Ember methods.ember-cli-sass to float on the majorember-cli-sass from going above version 5.4.0guards added for any consuming app @ ember 2.7
treeForAddon that can affect consumers.ember-lodash to ember-lodash-shim. This means upgrading from lodash version 3.x to version
4.x which could impact consumers relying on things removed
in lodash version 4.0.0.Fixed how negative indices are handled by frost-select.
ember-prop-types to work as expected in integration tests by explicitly consuming
the ember-prop-types mixin instead of relying on the initializer which isn't executed in an integration test
environment.The select input widgets now use redux.
frost-textarea's onInput handler to propagate change immediately to consumer rather than wait for
another Ember run loop to pass.onFocus (replaced by onFocusIn)onBlur (replaced by onFocusOut)excludedEvents property from the FrostEvents mixin, this is covered automatically when local events
are presentfrost-select where the options popover was closed whenever someone typed into the input (when
selectedValue is passed in as props).eslint within the project to 3.xmocha (via an update to eslint-config-frost-standard)tests/ directory to no longer specify an .eslintrc with globals that shouldn't actually be
globals.Added ember-code-snippets to allow demo documentation to reference the code as the sample text. Cleaned up the button demo as an example.
Fixed the text clear icon to only append to the DOM on insertion of the text field (was occurring on every render/re-render)
Events
keypress
added radio button
README update
Inline svg config option
onKeyUp property on frost-text that receives keyUp events from the inner inputonKeyDown property on frost-text that receives keyDown events from the inner input

this.super init
Added onEnter to frost-text so that actions can be triggered using the enter key when the input is in focus
Reverted a move of component templates from the addon to app directory as this change broke downstream component extensions
frost-select and consumer clearing selectedValue but DOM not clearing input.frost-select code to try and make more maintainable.isChecked computed property of frost-checkbox being readOnly.frost-select to use ember-prop-types.ember-computed-decorators.frost-icon and frost-link to use ember-prop-types.unit: true to all unit tests to explicitly mark them as unit tests.app/ directory so consumers can override them if they wish.const {Component} = Ember instead of using
Ember.Component.didInitAttrs hook and instead use init.autofocus property to frost-select component.Fixed the deprecation notice test for nested icon paths Added CSS based default fills to some icons from the frost icon pack Fixed broken checkbox tests
frost-password.frost-password to use updated icon path for reveal icon.Added a "more" svg to the frost icon pack
Fixed a broken build when a consuming app doesn't specify an application icon pack and doesn't contain the legacy
public/svgs icons path
Duplicated the icons in the frost icon pack - duplicates now exist in the legacy frost/<icon> nested paths and
new <icon> flat path. This allows icons from the frost icon pack to be migrated off the deprecated nested
paths. The nested duplicates will be removed in release 1.0.
pack property to frost-button which gets passed down to underlying frost-icon.frost-button to use ember-prop-types for better property validation warnings.frost-loading to work in more than just FirefoxDeprecating in-line style for link in favour of inline.
Added the icon pack feature to frost-icon, see the documentation at
http://ciena-frost.github.io/ember-frost-core/#/icons for details
Minor - updating path for frost guide.
upversion to fix travis build
Adjusting directory name to match UX components.
CHANGELOG with all previous history.frost-select.frost-button demo to be more clear.frost-select.frost-select via placeholder property.frost-checkbox.selectedValue not changing when data property changes in frost-select.frost-select and a selected index of zero.frost-checkbox could be checked/unchecked via keyboard events when it is disabled.frost-checkbox.let variables to const variables.const variables to let variables.tabindex property on frost-password, frost-text, and frost-textarea.Added ember-truth-helpers to blueprints to fix issue with ember install ember-frost-core.
id to frost-password.locationType to hash in environment config.frost-checkbox for being toggled via spacebar.app-bar, to frost-button.frost-checkbox to use one-way-checkbox instead of one-way-input.frost-checkbox to capture spacebar key press.onFocus properties on components so consumer can process focus events without disrupting original focus
event handlers.frost-checkbox.onBlur property to frost-checkbox so consumer can process blur events.onBlur property to frost-password, frost-select, frost-text, and frost-textarea so consumer can
process blur events.perfect-scrollbar to blueprints to fix ember install ember-frost-core.frost-scroll component.frost-checkbox to update when checked property changes.ember install ember-frost-core.frost-text.namespace from environment config.frost-text.frost-multi-select.frost-checkbox demo.frost-loading component.info-bar, to frost-button.in-line, to frost-link.frost-multi-select and frost-select components.info-bar, to frost-link.frost-button.frost-button.frost-link component.ember-frost-css-core.ember-frost-theme.frost-password and frost-textarea components.frost-button component.frost-checkbox component.frost-icon and frost-text components.