import { __decorate } from "tslib";
import { DesignSystem } from '@ni/fast-foundation';
import { attr } from '@ni/fast-element';
import { Mapping } from '../base';
import { template } from '../base/template';
import { styles } from '../base/styles';
/**
 * Maps data values to a spinner.
 * One or more may be added as children of a nimble-table-column-mapping element to define
 * which specific data values should be displayed as spinners in that column's cells.
 */
export class MappingSpinner extends Mapping {
    constructor() {
        super(...arguments);
        this.textHidden = false;
    }
}
__decorate([
    attr()
], MappingSpinner.prototype, "text", void 0);
__decorate([
    attr({ attribute: 'text-hidden', mode: 'boolean' })
], MappingSpinner.prototype, "textHidden", void 0);
const spinnerMapping = MappingSpinner.compose({
    baseName: 'mapping-spinner',
    template,
    styles
});
DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
export const mappingSpinnerTag = 'nimble-mapping-spinner';
//# sourceMappingURL=index.js.map