jqwidgets-ng 14.1.16 → 14.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/jqxcheckboxgroup/angular_jqxcheckboxgroup.mjs +264 -0
- package/esm2020/jqxcheckboxgroup/angular_jqxcheckboxgroup.module.mjs +21 -0
- package/esm2020/jqxcheckboxgroup/index.mjs +1 -0
- package/esm2020/jqxcheckboxgroup/jqwidgets-ng-jqxcheckboxgroup.mjs +4 -0
- package/esm2020/jqxcheckboxgroup/public_api.mjs +2 -0
- package/esm2020/jqxdropdownlist/angular_jqxdropdownlist.mjs +16 -2
- package/esm2020/jqxgrid/angular_jqxgrid.mjs +16 -2
- package/esm2020/jqxradiobuttongroup/angular_jqxradiobuttongroup.mjs +261 -0
- package/esm2020/jqxradiobuttongroup/angular_jqxradiobuttongroup.module.mjs +21 -0
- package/esm2020/jqxradiobuttongroup/index.mjs +1 -0
- package/esm2020/jqxradiobuttongroup/jqwidgets-ng-jqxradiobuttongroup.mjs +4 -0
- package/esm2020/jqxradiobuttongroup/public_api.mjs +2 -0
- package/fesm2015/jqwidgets-ng-jqxcheckboxgroup.mjs +291 -0
- package/fesm2015/jqwidgets-ng-jqxdropdownlist.mjs +16 -2
- package/fesm2015/jqwidgets-ng-jqxgrid.mjs +16 -2
- package/fesm2015/jqwidgets-ng-jqxradiobuttongroup.mjs +289 -0
- package/fesm2020/jqwidgets-ng-jqxcheckboxgroup.mjs +291 -0
- package/fesm2020/jqwidgets-ng-jqxdropdownlist.mjs +16 -2
- package/fesm2020/jqwidgets-ng-jqxgrid.mjs +16 -2
- package/fesm2020/jqwidgets-ng-jqxradiobuttongroup.mjs +289 -0
- package/jqwidgets/jqxsplitlayout.js +2445 -6
- package/jqwidgets.d.ts +65 -0
- package/jqxcheckboxgroup/angular_jqxcheckboxgroup.d.ts +57 -0
- package/jqxcheckboxgroup/angular_jqxcheckboxgroup.module.d.ts +8 -0
- package/jqxcheckboxgroup/index.d.ts +1 -0
- package/jqxcheckboxgroup/jqwidgets-ng-jqxcheckboxgroup.d.ts +5 -0
- package/jqxcheckboxgroup/package.json +13 -0
- package/jqxcheckboxgroup/public_api.d.ts +2 -0
- package/jqxdropdownlist/angular_jqxdropdownlist.d.ts +3 -1
- package/jqxgrid/angular_jqxgrid.d.ts +3 -1
- package/jqxradiobuttongroup/angular_jqxradiobuttongroup.d.ts +56 -0
- package/jqxradiobuttongroup/angular_jqxradiobuttongroup.module.d.ts +8 -0
- package/jqxradiobuttongroup/index.d.ts +1 -0
- package/jqxradiobuttongroup/jqwidgets-ng-jqxradiobuttongroup.d.ts +5 -0
- package/jqxradiobuttongroup/package.json +13 -0
- package/jqxradiobuttongroup/public_api.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import '../jqwidgets/jqxcore';
|
|
2
|
+
import '../jqwidgets/jqxradiobutton';
|
|
3
|
+
import '../jqwidgets/jqxradiobuttongroup';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Component, Input, NgModule } from '@angular/core';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
7
|
+
|
|
8
|
+
/// <reference path="../../jqwidgets.d.ts" />
|
|
9
|
+
class jqxRadioButtonGroupComponent {
|
|
10
|
+
constructor(containerElement) {
|
|
11
|
+
this.autoCreate = true;
|
|
12
|
+
this.properties = ['change', 'disabled', 'items', 'value', 'layout', 'labelPosition', 'rtl', 'theme'];
|
|
13
|
+
this.elementRef = containerElement;
|
|
14
|
+
}
|
|
15
|
+
ngOnInit() {
|
|
16
|
+
if (this.autoCreate) {
|
|
17
|
+
this.createComponent();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
ngOnChanges(changes) {
|
|
22
|
+
if (this.host) {
|
|
23
|
+
for (let i = 0; i < this.properties.length; i++) {
|
|
24
|
+
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
|
|
25
|
+
let areEqual = false;
|
|
26
|
+
if (this[attrName] !== undefined) {
|
|
27
|
+
if (typeof this[attrName] === 'object') {
|
|
28
|
+
if (this[attrName] instanceof Array) {
|
|
29
|
+
areEqual = this.arraysEqual(this[attrName], this.host.jqxRadioButtonGroup(this.properties[i]));
|
|
30
|
+
}
|
|
31
|
+
if (areEqual) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
this.host.jqxRadioButtonGroup(this.properties[i], this[attrName]);
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (this[attrName] !== this.host.jqxRadioButtonGroup(this.properties[i])) {
|
|
38
|
+
this.host.jqxRadioButtonGroup(this.properties[i], this[attrName]);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
arraysEqual(attrValue, hostValue) {
|
|
45
|
+
if ((attrValue && !hostValue) || (!attrValue && hostValue)) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
if (attrValue.length != hostValue.length) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
for (let i = 0; i < attrValue.length; i++) {
|
|
52
|
+
if (attrValue[i] !== hostValue[i]) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
manageAttributes() {
|
|
59
|
+
let options = {};
|
|
60
|
+
for (let i = 0; i < this.properties.length; i++) {
|
|
61
|
+
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
|
|
62
|
+
if (this[attrName] !== undefined) {
|
|
63
|
+
options[this.properties[i]] = this[attrName];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return options;
|
|
67
|
+
}
|
|
68
|
+
moveClasses(parentEl, childEl) {
|
|
69
|
+
let classes = parentEl.classList;
|
|
70
|
+
if (classes.length > 0) {
|
|
71
|
+
childEl.classList.add(...classes);
|
|
72
|
+
}
|
|
73
|
+
parentEl.className = '';
|
|
74
|
+
}
|
|
75
|
+
moveStyles(parentEl, childEl) {
|
|
76
|
+
let style = parentEl.style.cssText;
|
|
77
|
+
childEl.style.cssText = style;
|
|
78
|
+
parentEl.style.cssText = '';
|
|
79
|
+
}
|
|
80
|
+
createComponent(options) {
|
|
81
|
+
if (this.host) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (options) {
|
|
85
|
+
JQXLite.extend(options, this.manageAttributes());
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
options = this.manageAttributes();
|
|
89
|
+
}
|
|
90
|
+
this.host = JQXLite(this.elementRef.nativeElement.firstChild);
|
|
91
|
+
this.moveClasses(this.elementRef.nativeElement, this.host[0]);
|
|
92
|
+
this.moveStyles(this.elementRef.nativeElement, this.host[0]);
|
|
93
|
+
this.__wireEvents__();
|
|
94
|
+
this.widgetObject = jqwidgets.createInstance(this.host, 'jqxRadioButtonGroup', options);
|
|
95
|
+
}
|
|
96
|
+
createWidget(options) {
|
|
97
|
+
this.createComponent(options);
|
|
98
|
+
}
|
|
99
|
+
__updateRect__() {
|
|
100
|
+
if (this.host)
|
|
101
|
+
this.host.css({ width: this.attrWidth, height: this.attrHeight });
|
|
102
|
+
}
|
|
103
|
+
setOptions(options) {
|
|
104
|
+
this.host.jqxRadioButtonGroup('setOptions', options);
|
|
105
|
+
}
|
|
106
|
+
// jqxRadioButtonGroupComponent properties
|
|
107
|
+
change(arg) {
|
|
108
|
+
if (arg !== undefined) {
|
|
109
|
+
this.host.jqxRadioButtonGroup('change', arg);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return this.host.jqxRadioButtonGroup('change');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
disabled(arg) {
|
|
116
|
+
if (arg !== undefined) {
|
|
117
|
+
this.host.jqxRadioButtonGroup('disabled', arg);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return this.host.jqxRadioButtonGroup('disabled');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
items(arg) {
|
|
124
|
+
if (arg !== undefined) {
|
|
125
|
+
this.host.jqxRadioButtonGroup('items', arg);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return this.host.jqxRadioButtonGroup('items');
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
value(arg) {
|
|
132
|
+
if (arg !== undefined) {
|
|
133
|
+
this.host.jqxRadioButtonGroup('value', arg);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return this.host.jqxRadioButtonGroup('value');
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
layout(arg) {
|
|
140
|
+
if (arg !== undefined) {
|
|
141
|
+
this.host.jqxRadioButtonGroup('layout', arg);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
return this.host.jqxRadioButtonGroup('layout');
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
labelPosition(arg) {
|
|
148
|
+
if (arg !== undefined) {
|
|
149
|
+
this.host.jqxRadioButtonGroup('labelPosition', arg);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
return this.host.jqxRadioButtonGroup('labelPosition');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
rtl(arg) {
|
|
156
|
+
if (arg !== undefined) {
|
|
157
|
+
this.host.jqxRadioButtonGroup('rtl', arg);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return this.host.jqxRadioButtonGroup('rtl');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
theme(arg) {
|
|
164
|
+
if (arg !== undefined) {
|
|
165
|
+
this.host.jqxRadioButtonGroup('theme', arg);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
return this.host.jqxRadioButtonGroup('theme');
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
// jqxRadioButtonGroupComponent functions
|
|
172
|
+
getValue() {
|
|
173
|
+
return this.host.jqxRadioButtonGroup('getValue');
|
|
174
|
+
}
|
|
175
|
+
getValueAt(index) {
|
|
176
|
+
return this.host.jqxRadioButtonGroup('getValueAt', index);
|
|
177
|
+
}
|
|
178
|
+
enableAt(index) {
|
|
179
|
+
this.host.jqxRadioButtonGroup('enableAt', index);
|
|
180
|
+
}
|
|
181
|
+
disableAt(index) {
|
|
182
|
+
this.host.jqxRadioButtonGroup('disableAt', index);
|
|
183
|
+
}
|
|
184
|
+
checkAt(index) {
|
|
185
|
+
this.host.jqxRadioButtonGroup('checkAt', index);
|
|
186
|
+
}
|
|
187
|
+
uncheckAt(index) {
|
|
188
|
+
this.host.jqxRadioButtonGroup('uncheckAt', index);
|
|
189
|
+
}
|
|
190
|
+
uncheckAll() {
|
|
191
|
+
this.host.jqxRadioButtonGroup('uncheckAll');
|
|
192
|
+
}
|
|
193
|
+
checkValue(value) {
|
|
194
|
+
this.host.jqxRadioButtonGroup('checkValue', value);
|
|
195
|
+
}
|
|
196
|
+
uncheckValue(value) {
|
|
197
|
+
this.host.jqxRadioButtonGroup('uncheckValue', value);
|
|
198
|
+
}
|
|
199
|
+
disable() {
|
|
200
|
+
this.host.jqxRadioButtonGroup('disable');
|
|
201
|
+
}
|
|
202
|
+
destroy() {
|
|
203
|
+
this.host.jqxRadioButtonGroup('destroy');
|
|
204
|
+
}
|
|
205
|
+
enable() {
|
|
206
|
+
this.host.jqxRadioButtonGroup('enable');
|
|
207
|
+
}
|
|
208
|
+
render() {
|
|
209
|
+
this.host.jqxRadioButtonGroup('render');
|
|
210
|
+
}
|
|
211
|
+
val(value) {
|
|
212
|
+
if (value !== undefined) {
|
|
213
|
+
return this.host.jqxRadioButtonGroup('val', value);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
return this.host.jqxRadioButtonGroup('val');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
;
|
|
220
|
+
// jqxRadioButtonGroupComponent events
|
|
221
|
+
__wireEvents__() {
|
|
222
|
+
}
|
|
223
|
+
} //jqxRadioButtonGroupComponent
|
|
224
|
+
jqxRadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxRadioButtonGroupComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
225
|
+
jqxRadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: jqxRadioButtonGroupComponent, selector: "jqxRadioButtonGroup", inputs: { attrChange: ["change", "attrChange"], attrDisabled: ["disabled", "attrDisabled"], attrItems: ["items", "attrItems"], attrValue: ["value", "attrValue"], attrLayout: ["layout", "attrLayout"], attrLabelPosition: ["labelPosition", "attrLabelPosition"], attrRtl: ["rtl", "attrRtl"], attrTheme: ["theme", "attrTheme"], attrWidth: ["width", "attrWidth"], attrHeight: ["height", "attrHeight"], autoCreate: ["auto-create", "autoCreate"] }, usesOnChanges: true, ngImport: i0, template: '<div><ng-content></ng-content></div>', isInline: true });
|
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxRadioButtonGroupComponent, decorators: [{
|
|
227
|
+
type: Component,
|
|
228
|
+
args: [{
|
|
229
|
+
selector: 'jqxRadioButtonGroup',
|
|
230
|
+
template: '<div><ng-content></ng-content></div>'
|
|
231
|
+
}]
|
|
232
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { attrChange: [{
|
|
233
|
+
type: Input,
|
|
234
|
+
args: ['change']
|
|
235
|
+
}], attrDisabled: [{
|
|
236
|
+
type: Input,
|
|
237
|
+
args: ['disabled']
|
|
238
|
+
}], attrItems: [{
|
|
239
|
+
type: Input,
|
|
240
|
+
args: ['items']
|
|
241
|
+
}], attrValue: [{
|
|
242
|
+
type: Input,
|
|
243
|
+
args: ['value']
|
|
244
|
+
}], attrLayout: [{
|
|
245
|
+
type: Input,
|
|
246
|
+
args: ['layout']
|
|
247
|
+
}], attrLabelPosition: [{
|
|
248
|
+
type: Input,
|
|
249
|
+
args: ['labelPosition']
|
|
250
|
+
}], attrRtl: [{
|
|
251
|
+
type: Input,
|
|
252
|
+
args: ['rtl']
|
|
253
|
+
}], attrTheme: [{
|
|
254
|
+
type: Input,
|
|
255
|
+
args: ['theme']
|
|
256
|
+
}], attrWidth: [{
|
|
257
|
+
type: Input,
|
|
258
|
+
args: ['width']
|
|
259
|
+
}], attrHeight: [{
|
|
260
|
+
type: Input,
|
|
261
|
+
args: ['height']
|
|
262
|
+
}], autoCreate: [{
|
|
263
|
+
type: Input,
|
|
264
|
+
args: ['auto-create']
|
|
265
|
+
}] } });
|
|
266
|
+
|
|
267
|
+
class jqxRadioButtonGroupModule {
|
|
268
|
+
}
|
|
269
|
+
jqxRadioButtonGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxRadioButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
270
|
+
jqxRadioButtonGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxRadioButtonGroupModule, declarations: [jqxRadioButtonGroupComponent], imports: [FormsModule], exports: [jqxRadioButtonGroupComponent] });
|
|
271
|
+
jqxRadioButtonGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxRadioButtonGroupModule, imports: [[
|
|
272
|
+
FormsModule
|
|
273
|
+
]] });
|
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxRadioButtonGroupModule, decorators: [{
|
|
275
|
+
type: NgModule,
|
|
276
|
+
args: [{
|
|
277
|
+
imports: [
|
|
278
|
+
FormsModule
|
|
279
|
+
],
|
|
280
|
+
declarations: [jqxRadioButtonGroupComponent],
|
|
281
|
+
exports: [jqxRadioButtonGroupComponent]
|
|
282
|
+
}]
|
|
283
|
+
}] });
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Generated bundle index. Do not edit.
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
export { jqxRadioButtonGroupComponent, jqxRadioButtonGroupModule };
|