import { IgcColumnComponent } from "./igc-column-component";
import { IgcColumnWidth } from "./igc-column-width";
import { GridColumnWidthChangedEventArgs as GridColumnWidthChangedEventArgs_internal } from "./GridColumnWidthChangedEventArgs";
/**
 * Event arguments for the GridColumnWidthChanged event.
*/
var IgcGridColumnWidthChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgcGridColumnWidthChangedEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgcGridColumnWidthChangedEventArgs.prototype.createImplementation = function () {
        return new GridColumnWidthChangedEventArgs_internal();
    };
    Object.defineProperty(IgcGridColumnWidthChangedEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcGridColumnWidthChangedEventArgs.prototype.onImplementationCreated = function () {
    };
    IgcGridColumnWidthChangedEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgcGridColumnWidthChangedEventArgs.prototype, "column", {
        /**
         * The column whose Width 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(IgcGridColumnWidthChangedEventArgs.prototype, "oldWidth", {
        /**
         * The old column width.
        */
        get: function () {
            if (this.i.c == null) {
                return null;
            }
            if (!this.i.c.externalObject) {
                var e = new IgcColumnWidth();
                e._implementation = this.i.c;
                this.i.c.externalObject = e;
            }
            return this.i.c.externalObject;
        },
        set: function (v) {
            v == null ? this.i.c = null : this.i.c = v.i;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcGridColumnWidthChangedEventArgs.prototype, "newWidth", {
        /**
         * The new column width.
        */
        get: function () {
            if (this.i.b == null) {
                return null;
            }
            if (!this.i.b.externalObject) {
                var e = new IgcColumnWidth();
                e._implementation = this.i.b;
                this.i.b.externalObject = e;
            }
            return this.i.b.externalObject;
        },
        set: function (v) {
            v == null ? this.i.b = null : this.i.b = v.i;
        },
        enumerable: true,
        configurable: true
    });
    return IgcGridColumnWidthChangedEventArgs;
}());
export { IgcGridColumnWidthChangedEventArgs };
//# sourceMappingURL=igc-grid-column-width-changed-event-args.js.map
