import { IgcColumnComponent } from "./igc-column-component";
import { PinnedPositions_$type } from "./PinnedPositions";
import { ColumnPinnedChangedEventArgs as ColumnPinnedChangedEventArgs_internal } from "./ColumnPinnedChangedEventArgs";
import { ensureEnum } from "igniteui-webcomponents-core";
/**
 * Event arguments for the ColumnPinnedChanged event.
*/
var IgcColumnPinnedChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgcColumnPinnedChangedEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgcColumnPinnedChangedEventArgs.prototype.createImplementation = function () {
        return new ColumnPinnedChangedEventArgs_internal();
    };
    Object.defineProperty(IgcColumnPinnedChangedEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcColumnPinnedChangedEventArgs.prototype.onImplementationCreated = function () {
    };
    IgcColumnPinnedChangedEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgcColumnPinnedChangedEventArgs.prototype, "column", {
        /**
         * The column whose pinned state has changed.
        */
        get: function () {
            if (this.i.a == null) {
                return null;
            }
            if (!this.i.a.externalObject) {
                var e = IgcColumnComponent._createFromInternal(this.i.a);
                if (e) {
                    e._implementation = this.i.a;
                }
                this.i.a.externalObject = e;
            }
            return this.i.a.externalObject;
        },
        set: function (v) {
            v == null ? this.i.a = null : this.i.a = v.i;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcColumnPinnedChangedEventArgs.prototype, "pinned", {
        /**
         * The new pinned state for the column.
        */
        get: function () {
            return this.i.b;
        },
        set: function (v) {
            this.i.b = ensureEnum(PinnedPositions_$type, v);
        },
        enumerable: true,
        configurable: true
    });
    return IgcColumnPinnedChangedEventArgs;
}());
export { IgcColumnPinnedChangedEventArgs };
//# sourceMappingURL=igc-column-pinned-changed-event-args.js.map
