igniteui-webcomponents-inputs
Version:
Ignite UI Web Components inputs components.
166 lines (165 loc) • 6.09 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { XComponentBridge } from "./XComponentBridge";
import { runOn, delegateCombine, enumGetBox, delegateRemove, EnumUtil, markType } from "igniteui-webcomponents-core";
import { NativeUISliderValueChangedEventArgs } from "igniteui-webcomponents-core";
import { NativeUISliderOrientation_$type } from "igniteui-webcomponents-core";
/**
* @hidden
*/
export let MultiSliderBridge = /*@__PURE__*/ (() => {
class MultiSliderBridge extends XComponentBridge {
constructor(a) {
super(a);
this.u = null;
this.w = null;
this.v = null;
this.x = null;
}
addHandler(a, b, c, d) {
switch (c) {
case 0:
let e = a;
e.thumbValueChanging = delegateCombine(e.thumbValueChanging, runOn(this, this.z));
let f = a;
f.yValueChanging = delegateCombine(f.yValueChanging, runOn(this, this.ab));
this.v = d;
this.x = b;
break;
case 4:
let g = a;
g.thumbValueChanged = delegateCombine(g.thumbValueChanged, runOn(this, this.y));
let h = a;
h.yValueChanged = delegateCombine(h.yValueChanged, runOn(this, this.aa));
this.u = d;
this.w = b;
break;
}
}
y(a, b) {
if (this.u != null) {
let c = new NativeUISliderValueChangedEventArgs();
this.u(this.w, c);
}
}
aa(a, b) {
if (this.u != null) {
let c = new NativeUISliderValueChangedEventArgs();
this.u(this.w, c);
}
}
z(a, b) {
if (this.v != null) {
let c = new NativeUISliderValueChangedEventArgs();
this.v(this.x, c);
}
}
ab(a, b) {
if (this.v != null) {
let c = new NativeUISliderValueChangedEventArgs();
this.v(this.x, c);
}
}
getValue(a, b) {
switch (b) {
case 12: return a.bg;
case 13: return a.bf;
case 97: return a.bv;
case 98: return a.bf;
case 14: return a.bl;
case 2: return a.thumbs._inner[0].s;
case 92: return a.b0;
case 93: return a.ek;
case 94: return a.es;
case 96: return a.eu;
case 95: return a.et;
case 30:
let c = a.e;
switch (c) {
case 0: return enumGetBox(NativeUISliderOrientation_$type, 0);
case 1: return enumGetBox(NativeUISliderOrientation_$type, 1);
case 2: return enumGetBox(NativeUISliderOrientation_$type, 2);
}
break;
}
return null;
}
removeHandler(a, b, c, d) {
switch (c) {
case 0:
let e = a;
e.thumbValueChanging = delegateRemove(e.thumbValueChanging, runOn(this, this.z));
let f = a;
f.yValueChanging = delegateRemove(f.yValueChanging, runOn(this, this.ab));
this.v = null;
this.x = null;
break;
case 4:
let g = a;
g.thumbValueChanged = delegateRemove(g.thumbValueChanged, runOn(this, this.y));
let h = a;
h.yValueChanged = delegateRemove(h.yValueChanged, runOn(this, this.aa));
this.u = null;
this.w = null;
break;
}
}
setValue(a, b, c) {
switch (b) {
case 12:
a.bg = c;
break;
case 13:
a.bf = c;
break;
case 97:
a.bv = c;
break;
case 98:
a.bu = c;
break;
case 14:
a.bl = c;
break;
case 2:
a.thumbs._inner[0].s = c;
break;
case 92:
a.b0 = c;
break;
case 93:
a.ek = c;
break;
case 94:
a.es = c;
break;
case 96:
a.eu = c;
break;
case 95:
a.et = c;
break;
case 30:
let d = EnumUtil.getEnumValue(NativeUISliderOrientation_$type, c);
switch (d) {
case 0:
a.e = 0;
break;
case 1:
a.e = 1;
break;
case 2:
a.e = 2;
break;
}
break;
}
}
}
MultiSliderBridge.$t = /*@__PURE__*/ markType(MultiSliderBridge, 'MultiSliderBridge', XComponentBridge.$);
return MultiSliderBridge;
})();