Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*/
previousLoading: false,
/**
* Internal property used to recreate React implementation's
* `componentWillReceiveProps` behaviour.
*
* @property previousSelectedItems
* @type {String|String[]}
* @private
*/
previousSelectedItems: null,
itemsExist: gt('items.length', 0).readOnly(),
selectId: computedIdVariation('id', 'Select').readOnly(),
/**
* ID used to identify our wrapper element from other instances
*/
wrapperId: computed(function() {
return guidFor(this);
}).readOnly(),
/**
* List of item/id tuples needed for rendering items
*/
itemsWithId: computed('items.[]', 'idForItem', function() {
let { items, idForItem } = this.getProperties('items', 'idForItem');
items = items || [];
idForItem = idForItem || defaultIdForItem;
*/
style: null,
/**
* @property placeHolderNodeId
* @type {String}
* @private
*/
placeHolderNodeId: computedIdVariation('elementId', 'PlaceHolder').readOnly(),
/**
* @property stickyNodeId
* @type {String}
* @private
*/
stickyNodeId: computedIdVariation('elementId', 'Sticky').readOnly(),
/**
* @property placeHolderNode
* @type {HTMLElement}
* @private
*/
placeHolderNode: computed(function() {
return this.get('element').querySelector(
`#${this.get('placeHolderNodeId')}`
);
}),
/**
* @property stickyNode
* @type {HTMLElement}
* @private
isSticky: false,
/**
* @property style
* @type {String}
* @default null
* @private
*/
style: null,
/**
* @property placeHolderNodeId
* @type {String}
* @private
*/
placeHolderNodeId: computedIdVariation('elementId', 'PlaceHolder').readOnly(),
/**
* @property stickyNodeId
* @type {String}
* @private
*/
stickyNodeId: computedIdVariation('elementId', 'Sticky').readOnly(),
/**
* @property placeHolderNode
* @type {HTMLElement}
* @private
*/
placeHolderNode: computed(function() {
return this.get('element').querySelector(
`#${this.get('placeHolderNodeId')}`