@ni/nimble-angular 1.0.0-beta.9 → 1.0.0-beta.93
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/README.md +6 -2
- package/bundles/ni-nimble-angular.umd.js +953 -0
- package/bundles/ni-nimble-angular.umd.js.map +1 -0
- package/directives/button/index.d.ts +2 -0
- package/directives/button/nimble-button.directive.d.ts +11 -0
- package/directives/button/nimble-button.module.d.ts +9 -0
- package/directives/checkbox/index.d.ts +3 -0
- package/directives/checkbox/nimble-checkbox-control-value-accessor.directive.d.ts +12 -0
- package/directives/checkbox/nimble-checkbox.directive.d.ts +8 -0
- package/directives/checkbox/nimble-checkbox.module.d.ts +10 -0
- package/directives/control-value-accessor/index.d.ts +3 -0
- package/directives/control-value-accessor/nimble-control-value-accessor.module.d.ts +9 -0
- package/directives/control-value-accessor/nimble-default-control-value-accessor.directive.d.ts +12 -0
- package/directives/control-value-accessor/nimble-number-control-value-accessor.directive.d.ts +12 -0
- package/directives/listbox-option/index.d.ts +2 -0
- package/directives/listbox-option/nimble-listbox-option.directive.d.ts +14 -0
- package/directives/listbox-option/nimble-listbox-option.module.d.ts +9 -0
- package/directives/number-field/index.d.ts +2 -0
- package/directives/number-field/nimble-number-field.directive.d.ts +13 -0
- package/directives/number-field/nimble-number-field.module.d.ts +10 -0
- package/directives/select/index.d.ts +3 -0
- package/directives/select/nimble-select-control-value-accessor.directive.d.ts +14 -0
- package/directives/select/nimble-select.directive.d.ts +8 -0
- package/directives/select/nimble-select.module.d.ts +10 -0
- package/directives/text-field/index.d.ts +2 -0
- package/directives/text-field/nimble-text-field.directive.d.ts +9 -0
- package/directives/text-field/nimble-text-field.module.d.ts +10 -0
- package/directives/theme-provider/index.d.ts +2 -0
- package/directives/theme-provider/nimble-theme-provider.directive.d.ts +9 -0
- package/directives/theme-provider/nimble-theme-provider.module.d.ts +9 -0
- package/directives/tree-item/index.d.ts +2 -0
- package/directives/tree-item/nimble-tree-item.directive.d.ts +19 -0
- package/directives/tree-item/nimble-tree-item.module.d.ts +9 -0
- package/directives/tree-view/index.d.ts +2 -0
- package/directives/tree-view/nimble-tree-view.directive.d.ts +8 -0
- package/directives/tree-view/nimble-tree-view.module.d.ts +9 -0
- package/esm2015/directives/button/index.js +3 -0
- package/esm2015/directives/button/nimble-button.directive.js +26 -0
- package/esm2015/directives/button/nimble-button.module.js +19 -0
- package/esm2015/directives/checkbox/index.js +4 -0
- package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.js +32 -0
- package/esm2015/directives/checkbox/nimble-checkbox.directive.js +16 -0
- package/esm2015/directives/checkbox/nimble-checkbox.module.js +20 -0
- package/esm2015/directives/control-value-accessor/index.js +4 -0
- package/esm2015/directives/control-value-accessor/nimble-control-value-accessor.module.js +19 -0
- package/esm2015/directives/control-value-accessor/nimble-default-control-value-accessor.directive.js +37 -0
- package/esm2015/directives/control-value-accessor/nimble-number-control-value-accessor.directive.js +32 -0
- package/esm2015/directives/listbox-option/index.js +3 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.directive.js +30 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.module.js +19 -0
- package/esm2015/directives/number-field/index.js +3 -0
- package/esm2015/directives/number-field/nimble-number-field.directive.js +41 -0
- package/esm2015/directives/number-field/nimble-number-field.module.js +21 -0
- package/esm2015/directives/select/index.js +4 -0
- package/esm2015/directives/select/nimble-select-control-value-accessor.directive.js +34 -0
- package/esm2015/directives/select/nimble-select.directive.js +16 -0
- package/esm2015/directives/select/nimble-select.module.js +20 -0
- package/esm2015/directives/text-field/index.js +3 -0
- package/esm2015/directives/text-field/nimble-text-field.directive.js +21 -0
- package/esm2015/directives/text-field/nimble-text-field.module.js +21 -0
- package/esm2015/directives/theme-provider/index.js +3 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.directive.js +21 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.module.js +19 -0
- package/esm2015/directives/tree-item/index.js +3 -0
- package/esm2015/directives/tree-item/nimble-tree-item.directive.js +63 -0
- package/esm2015/directives/tree-item/nimble-tree-item.module.js +19 -0
- package/esm2015/directives/tree-view/index.js +3 -0
- package/esm2015/directives/tree-view/nimble-tree-view.directive.js +16 -0
- package/esm2015/directives/tree-view/nimble-tree-view.module.js +19 -0
- package/esm2015/ni-nimble-angular.js +5 -0
- package/esm2015/public-api.js +14 -0
- package/fesm2015/ni-nimble-angular.js +519 -0
- package/fesm2015/ni-nimble-angular.js.map +1 -0
- package/ni-nimble-angular.d.ts +5 -0
- package/package.json +22 -13
- package/public-api.d.ts +10 -0
- package/.eslintrc.js +0 -38
- package/karma.conf.js +0 -46
|
@@ -0,0 +1,953 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@ni/nimble-components/dist/esm/theme-provider'), require('@angular/forms'), require('@ni/nimble-components/dist/esm/text-field'), require('@ni/nimble-components/dist/esm/number-field'), require('@ni/nimble-components/dist/esm/select'), require('@ni/nimble-components/dist/esm/listbox-option'), require('@ni/nimble-components/dist/esm/button'), require('@ni/nimble-components/dist/esm/tree-view'), require('@ni/nimble-components/dist/esm/tree-item'), require('@ni/nimble-components/dist/esm/checkbox')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ni/nimble-angular', ['exports', '@angular/core', '@angular/common', '@ni/nimble-components/dist/esm/theme-provider', '@angular/forms', '@ni/nimble-components/dist/esm/text-field', '@ni/nimble-components/dist/esm/number-field', '@ni/nimble-components/dist/esm/select', '@ni/nimble-components/dist/esm/listbox-option', '@ni/nimble-components/dist/esm/button', '@ni/nimble-components/dist/esm/tree-view', '@ni/nimble-components/dist/esm/tree-item', '@ni/nimble-components/dist/esm/checkbox'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ni = global.ni || {}, global.ni['nimble-angular'] = {}), global.ng.core, global.ng.common, null, global.ng.forms));
|
|
5
|
+
}(this, (function (exports, i0, common, themeProvider, forms) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Directive for Angular integration for the theme provider
|
|
31
|
+
*/
|
|
32
|
+
var NimbleThemeProviderDirective = /** @class */ (function () {
|
|
33
|
+
function NimbleThemeProviderDirective() {
|
|
34
|
+
}
|
|
35
|
+
return NimbleThemeProviderDirective;
|
|
36
|
+
}());
|
|
37
|
+
NimbleThemeProviderDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
38
|
+
NimbleThemeProviderDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleThemeProviderDirective, selector: "nimble-theme-provider", inputs: { theme: "theme" }, host: { properties: { "attr.theme": "this.theme" } }, ngImport: i0__namespace });
|
|
39
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderDirective, decorators: [{
|
|
40
|
+
type: i0.Directive,
|
|
41
|
+
args: [{
|
|
42
|
+
selector: 'nimble-theme-provider'
|
|
43
|
+
}]
|
|
44
|
+
}], propDecorators: { theme: [{
|
|
45
|
+
type: i0.HostBinding,
|
|
46
|
+
args: ['attr.theme']
|
|
47
|
+
}, {
|
|
48
|
+
type: i0.Input
|
|
49
|
+
}] } });
|
|
50
|
+
|
|
51
|
+
var NimbleThemeProviderModule = /** @class */ (function () {
|
|
52
|
+
function NimbleThemeProviderModule() {
|
|
53
|
+
}
|
|
54
|
+
return NimbleThemeProviderModule;
|
|
55
|
+
}());
|
|
56
|
+
NimbleThemeProviderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
57
|
+
NimbleThemeProviderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, declarations: [NimbleThemeProviderDirective], imports: [common.CommonModule], exports: [NimbleThemeProviderDirective] });
|
|
58
|
+
NimbleThemeProviderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, imports: [[common.CommonModule]] });
|
|
59
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, decorators: [{
|
|
60
|
+
type: i0.NgModule,
|
|
61
|
+
args: [{
|
|
62
|
+
declarations: [NimbleThemeProviderDirective],
|
|
63
|
+
imports: [common.CommonModule],
|
|
64
|
+
exports: [NimbleThemeProviderDirective]
|
|
65
|
+
}]
|
|
66
|
+
}] });
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Directive to provide Angular integration for the text field
|
|
70
|
+
*/
|
|
71
|
+
var NimbleTextFieldDirective = /** @class */ (function () {
|
|
72
|
+
function NimbleTextFieldDirective() {
|
|
73
|
+
}
|
|
74
|
+
return NimbleTextFieldDirective;
|
|
75
|
+
}());
|
|
76
|
+
NimbleTextFieldDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
77
|
+
NimbleTextFieldDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTextFieldDirective, selector: "nimble-text-field", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "this.readonly" } }, ngImport: i0__namespace });
|
|
78
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldDirective, decorators: [{
|
|
79
|
+
type: i0.Directive,
|
|
80
|
+
args: [{
|
|
81
|
+
selector: 'nimble-text-field'
|
|
82
|
+
}]
|
|
83
|
+
}], propDecorators: { readonly: [{
|
|
84
|
+
type: i0.HostBinding,
|
|
85
|
+
args: ['attr.readonly']
|
|
86
|
+
}, {
|
|
87
|
+
type: i0.Input
|
|
88
|
+
}] } });
|
|
89
|
+
|
|
90
|
+
/*! *****************************************************************************
|
|
91
|
+
Copyright (c) Microsoft Corporation.
|
|
92
|
+
|
|
93
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
94
|
+
purpose with or without fee is hereby granted.
|
|
95
|
+
|
|
96
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
97
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
98
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
99
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
100
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
101
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
102
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
103
|
+
***************************************************************************** */
|
|
104
|
+
/* global Reflect, Promise */
|
|
105
|
+
var extendStatics = function (d, b) {
|
|
106
|
+
extendStatics = Object.setPrototypeOf ||
|
|
107
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
108
|
+
function (d, b) { for (var p in b)
|
|
109
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
110
|
+
d[p] = b[p]; };
|
|
111
|
+
return extendStatics(d, b);
|
|
112
|
+
};
|
|
113
|
+
function __extends(d, b) {
|
|
114
|
+
if (typeof b !== "function" && b !== null)
|
|
115
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
116
|
+
extendStatics(d, b);
|
|
117
|
+
function __() { this.constructor = d; }
|
|
118
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
119
|
+
}
|
|
120
|
+
var __assign = function () {
|
|
121
|
+
__assign = Object.assign || function __assign(t) {
|
|
122
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
123
|
+
s = arguments[i];
|
|
124
|
+
for (var p in s)
|
|
125
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
126
|
+
t[p] = s[p];
|
|
127
|
+
}
|
|
128
|
+
return t;
|
|
129
|
+
};
|
|
130
|
+
return __assign.apply(this, arguments);
|
|
131
|
+
};
|
|
132
|
+
function __rest(s, e) {
|
|
133
|
+
var t = {};
|
|
134
|
+
for (var p in s)
|
|
135
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
136
|
+
t[p] = s[p];
|
|
137
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
138
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
139
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
140
|
+
t[p[i]] = s[p[i]];
|
|
141
|
+
}
|
|
142
|
+
return t;
|
|
143
|
+
}
|
|
144
|
+
function __decorate(decorators, target, key, desc) {
|
|
145
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
146
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
147
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
148
|
+
else
|
|
149
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
150
|
+
if (d = decorators[i])
|
|
151
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
152
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
153
|
+
}
|
|
154
|
+
function __param(paramIndex, decorator) {
|
|
155
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
156
|
+
}
|
|
157
|
+
function __metadata(metadataKey, metadataValue) {
|
|
158
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
159
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
160
|
+
}
|
|
161
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
162
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
163
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
164
|
+
function fulfilled(value) { try {
|
|
165
|
+
step(generator.next(value));
|
|
166
|
+
}
|
|
167
|
+
catch (e) {
|
|
168
|
+
reject(e);
|
|
169
|
+
} }
|
|
170
|
+
function rejected(value) { try {
|
|
171
|
+
step(generator["throw"](value));
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
reject(e);
|
|
175
|
+
} }
|
|
176
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
177
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function __generator(thisArg, body) {
|
|
181
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
182
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
183
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
184
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
185
|
+
function step(op) {
|
|
186
|
+
if (f)
|
|
187
|
+
throw new TypeError("Generator is already executing.");
|
|
188
|
+
while (_)
|
|
189
|
+
try {
|
|
190
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
191
|
+
return t;
|
|
192
|
+
if (y = 0, t)
|
|
193
|
+
op = [op[0] & 2, t.value];
|
|
194
|
+
switch (op[0]) {
|
|
195
|
+
case 0:
|
|
196
|
+
case 1:
|
|
197
|
+
t = op;
|
|
198
|
+
break;
|
|
199
|
+
case 4:
|
|
200
|
+
_.label++;
|
|
201
|
+
return { value: op[1], done: false };
|
|
202
|
+
case 5:
|
|
203
|
+
_.label++;
|
|
204
|
+
y = op[1];
|
|
205
|
+
op = [0];
|
|
206
|
+
continue;
|
|
207
|
+
case 7:
|
|
208
|
+
op = _.ops.pop();
|
|
209
|
+
_.trys.pop();
|
|
210
|
+
continue;
|
|
211
|
+
default:
|
|
212
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
213
|
+
_ = 0;
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
217
|
+
_.label = op[1];
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
221
|
+
_.label = t[1];
|
|
222
|
+
t = op;
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
if (t && _.label < t[2]) {
|
|
226
|
+
_.label = t[2];
|
|
227
|
+
_.ops.push(op);
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
if (t[2])
|
|
231
|
+
_.ops.pop();
|
|
232
|
+
_.trys.pop();
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
op = body.call(thisArg, _);
|
|
236
|
+
}
|
|
237
|
+
catch (e) {
|
|
238
|
+
op = [6, e];
|
|
239
|
+
y = 0;
|
|
240
|
+
}
|
|
241
|
+
finally {
|
|
242
|
+
f = t = 0;
|
|
243
|
+
}
|
|
244
|
+
if (op[0] & 5)
|
|
245
|
+
throw op[1];
|
|
246
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
250
|
+
if (k2 === undefined)
|
|
251
|
+
k2 = k;
|
|
252
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
253
|
+
}) : (function (o, m, k, k2) {
|
|
254
|
+
if (k2 === undefined)
|
|
255
|
+
k2 = k;
|
|
256
|
+
o[k2] = m[k];
|
|
257
|
+
});
|
|
258
|
+
function __exportStar(m, o) {
|
|
259
|
+
for (var p in m)
|
|
260
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
261
|
+
__createBinding(o, m, p);
|
|
262
|
+
}
|
|
263
|
+
function __values(o) {
|
|
264
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
265
|
+
if (m)
|
|
266
|
+
return m.call(o);
|
|
267
|
+
if (o && typeof o.length === "number")
|
|
268
|
+
return {
|
|
269
|
+
next: function () {
|
|
270
|
+
if (o && i >= o.length)
|
|
271
|
+
o = void 0;
|
|
272
|
+
return { value: o && o[i++], done: !o };
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
276
|
+
}
|
|
277
|
+
function __read(o, n) {
|
|
278
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
279
|
+
if (!m)
|
|
280
|
+
return o;
|
|
281
|
+
var i = m.call(o), r, ar = [], e;
|
|
282
|
+
try {
|
|
283
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
284
|
+
ar.push(r.value);
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
e = { error: error };
|
|
288
|
+
}
|
|
289
|
+
finally {
|
|
290
|
+
try {
|
|
291
|
+
if (r && !r.done && (m = i["return"]))
|
|
292
|
+
m.call(i);
|
|
293
|
+
}
|
|
294
|
+
finally {
|
|
295
|
+
if (e)
|
|
296
|
+
throw e.error;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return ar;
|
|
300
|
+
}
|
|
301
|
+
/** @deprecated */
|
|
302
|
+
function __spread() {
|
|
303
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
304
|
+
ar = ar.concat(__read(arguments[i]));
|
|
305
|
+
return ar;
|
|
306
|
+
}
|
|
307
|
+
/** @deprecated */
|
|
308
|
+
function __spreadArrays() {
|
|
309
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
310
|
+
s += arguments[i].length;
|
|
311
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
312
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
313
|
+
r[k] = a[j];
|
|
314
|
+
return r;
|
|
315
|
+
}
|
|
316
|
+
function __spreadArray(to, from, pack) {
|
|
317
|
+
if (pack || arguments.length === 2)
|
|
318
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
319
|
+
if (ar || !(i in from)) {
|
|
320
|
+
if (!ar)
|
|
321
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
322
|
+
ar[i] = from[i];
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
326
|
+
}
|
|
327
|
+
function __await(v) {
|
|
328
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
329
|
+
}
|
|
330
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
331
|
+
if (!Symbol.asyncIterator)
|
|
332
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
333
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
334
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
335
|
+
function verb(n) { if (g[n])
|
|
336
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
337
|
+
function resume(n, v) { try {
|
|
338
|
+
step(g[n](v));
|
|
339
|
+
}
|
|
340
|
+
catch (e) {
|
|
341
|
+
settle(q[0][3], e);
|
|
342
|
+
} }
|
|
343
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
344
|
+
function fulfill(value) { resume("next", value); }
|
|
345
|
+
function reject(value) { resume("throw", value); }
|
|
346
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
347
|
+
resume(q[0][0], q[0][1]); }
|
|
348
|
+
}
|
|
349
|
+
function __asyncDelegator(o) {
|
|
350
|
+
var i, p;
|
|
351
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
352
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
353
|
+
}
|
|
354
|
+
function __asyncValues(o) {
|
|
355
|
+
if (!Symbol.asyncIterator)
|
|
356
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
357
|
+
var m = o[Symbol.asyncIterator], i;
|
|
358
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
359
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
360
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
361
|
+
}
|
|
362
|
+
function __makeTemplateObject(cooked, raw) {
|
|
363
|
+
if (Object.defineProperty) {
|
|
364
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
cooked.raw = raw;
|
|
368
|
+
}
|
|
369
|
+
return cooked;
|
|
370
|
+
}
|
|
371
|
+
;
|
|
372
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
373
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
374
|
+
}) : function (o, v) {
|
|
375
|
+
o["default"] = v;
|
|
376
|
+
};
|
|
377
|
+
function __importStar(mod) {
|
|
378
|
+
if (mod && mod.__esModule)
|
|
379
|
+
return mod;
|
|
380
|
+
var result = {};
|
|
381
|
+
if (mod != null)
|
|
382
|
+
for (var k in mod)
|
|
383
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
384
|
+
__createBinding(result, mod, k);
|
|
385
|
+
__setModuleDefault(result, mod);
|
|
386
|
+
return result;
|
|
387
|
+
}
|
|
388
|
+
function __importDefault(mod) {
|
|
389
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
390
|
+
}
|
|
391
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
392
|
+
if (kind === "a" && !f)
|
|
393
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
394
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
395
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
396
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
397
|
+
}
|
|
398
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
399
|
+
if (kind === "m")
|
|
400
|
+
throw new TypeError("Private method is not writable");
|
|
401
|
+
if (kind === "a" && !f)
|
|
402
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
403
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
404
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
405
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Extension of Angular's DefaultValueAccessor to target the text-based inputs.
|
|
410
|
+
*
|
|
411
|
+
* Directive decorator based on DefaultValueAccessor decorator
|
|
412
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/default_value_accessor.ts#L72
|
|
413
|
+
*/
|
|
414
|
+
var NimbleDefaultControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
415
|
+
__extends(NimbleDefaultControlValueAccessorDirective, _super);
|
|
416
|
+
function NimbleDefaultControlValueAccessorDirective() {
|
|
417
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
418
|
+
}
|
|
419
|
+
return NimbleDefaultControlValueAccessorDirective;
|
|
420
|
+
}(forms.DefaultValueAccessor));
|
|
421
|
+
NimbleDefaultControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleDefaultControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
422
|
+
NimbleDefaultControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleDefaultControlValueAccessorDirective, selector: "nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [{
|
|
423
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
424
|
+
useExisting: i0.forwardRef(function () { return NimbleDefaultControlValueAccessorDirective; }),
|
|
425
|
+
multi: true
|
|
426
|
+
}], usesInheritance: true, ngImport: i0__namespace });
|
|
427
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleDefaultControlValueAccessorDirective, decorators: [{
|
|
428
|
+
type: i0.Directive,
|
|
429
|
+
args: [{
|
|
430
|
+
selector: 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',
|
|
431
|
+
// The following host metadata is duplicated from DefaultValueAccessor
|
|
432
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
433
|
+
host: {
|
|
434
|
+
'(input)': '$any(this)._handleInput($event.target.value)',
|
|
435
|
+
'(blur)': 'onTouched()',
|
|
436
|
+
'(compositionstart)': '$any(this)._compositionStart()',
|
|
437
|
+
'(compositionend)': '$any(this)._compositionEnd($event.target.value)'
|
|
438
|
+
},
|
|
439
|
+
providers: [{
|
|
440
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
441
|
+
useExisting: i0.forwardRef(function () { return NimbleDefaultControlValueAccessorDirective; }),
|
|
442
|
+
multi: true
|
|
443
|
+
}]
|
|
444
|
+
}]
|
|
445
|
+
}] });
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Extension of Angular's NumberValueAccessor to target the number-based inputs.
|
|
449
|
+
*
|
|
450
|
+
* Directive decorator based on NumberValueAccessor decorator
|
|
451
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/number_value_accessor.ts#L43
|
|
452
|
+
*/
|
|
453
|
+
var NimbleNumberControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
454
|
+
__extends(NimbleNumberControlValueAccessorDirective, _super);
|
|
455
|
+
function NimbleNumberControlValueAccessorDirective() {
|
|
456
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
457
|
+
}
|
|
458
|
+
return NimbleNumberControlValueAccessorDirective;
|
|
459
|
+
}(forms.NumberValueAccessor));
|
|
460
|
+
NimbleNumberControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
461
|
+
NimbleNumberControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberControlValueAccessorDirective, selector: "nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
|
|
462
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
463
|
+
useExisting: i0.forwardRef(function () { return NimbleNumberControlValueAccessorDirective; }),
|
|
464
|
+
multi: true
|
|
465
|
+
}], usesInheritance: true, ngImport: i0__namespace });
|
|
466
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberControlValueAccessorDirective, decorators: [{
|
|
467
|
+
type: i0.Directive,
|
|
468
|
+
args: [{
|
|
469
|
+
selector: 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',
|
|
470
|
+
// The following host metadata is duplicated from NumberValueAccessor
|
|
471
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
472
|
+
host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
473
|
+
providers: [{
|
|
474
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
475
|
+
useExisting: i0.forwardRef(function () { return NimbleNumberControlValueAccessorDirective; }),
|
|
476
|
+
multi: true
|
|
477
|
+
}]
|
|
478
|
+
}]
|
|
479
|
+
}] });
|
|
480
|
+
|
|
481
|
+
var NimbleControlValueAccessorModule = /** @class */ (function () {
|
|
482
|
+
function NimbleControlValueAccessorModule() {
|
|
483
|
+
}
|
|
484
|
+
return NimbleControlValueAccessorModule;
|
|
485
|
+
}());
|
|
486
|
+
NimbleControlValueAccessorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
487
|
+
NimbleControlValueAccessorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective], imports: [common.CommonModule], exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective] });
|
|
488
|
+
NimbleControlValueAccessorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, imports: [[common.CommonModule]] });
|
|
489
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, decorators: [{
|
|
490
|
+
type: i0.NgModule,
|
|
491
|
+
args: [{
|
|
492
|
+
declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective],
|
|
493
|
+
imports: [common.CommonModule],
|
|
494
|
+
exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective]
|
|
495
|
+
}]
|
|
496
|
+
}] });
|
|
497
|
+
|
|
498
|
+
var NimbleTextFieldModule = /** @class */ (function () {
|
|
499
|
+
function NimbleTextFieldModule() {
|
|
500
|
+
}
|
|
501
|
+
return NimbleTextFieldModule;
|
|
502
|
+
}());
|
|
503
|
+
NimbleTextFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
504
|
+
NimbleTextFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, declarations: [NimbleTextFieldDirective], imports: [common.CommonModule, NimbleControlValueAccessorModule], exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule] });
|
|
505
|
+
NimbleTextFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, providers: [], imports: [[common.CommonModule, NimbleControlValueAccessorModule], NimbleControlValueAccessorModule] });
|
|
506
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, decorators: [{
|
|
507
|
+
type: i0.NgModule,
|
|
508
|
+
args: [{
|
|
509
|
+
declarations: [NimbleTextFieldDirective],
|
|
510
|
+
imports: [common.CommonModule, NimbleControlValueAccessorModule],
|
|
511
|
+
providers: [],
|
|
512
|
+
exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule]
|
|
513
|
+
}]
|
|
514
|
+
}] });
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Directive to provide Angular integration for the number field.
|
|
518
|
+
*/
|
|
519
|
+
var NimbleNumberFieldDirective = /** @class */ (function () {
|
|
520
|
+
function NimbleNumberFieldDirective() {
|
|
521
|
+
}
|
|
522
|
+
return NimbleNumberFieldDirective;
|
|
523
|
+
}());
|
|
524
|
+
NimbleNumberFieldDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
525
|
+
NimbleNumberFieldDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberFieldDirective, selector: "nimble-number-field", inputs: { readonly: "readonly", min: "min", max: "max", step: "step", placeholder: "placeholder" }, host: { properties: { "attr.readonly": "this.readonly", "attr.min": "this.min", "attr.max": "this.max", "attr.step": "this.step", "attr.placeholder": "this.placeholder" } }, ngImport: i0__namespace });
|
|
526
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldDirective, decorators: [{
|
|
527
|
+
type: i0.Directive,
|
|
528
|
+
args: [{
|
|
529
|
+
selector: 'nimble-number-field'
|
|
530
|
+
}]
|
|
531
|
+
}], propDecorators: { readonly: [{
|
|
532
|
+
type: i0.HostBinding,
|
|
533
|
+
args: ['attr.readonly']
|
|
534
|
+
}, {
|
|
535
|
+
type: i0.Input
|
|
536
|
+
}], min: [{
|
|
537
|
+
type: i0.HostBinding,
|
|
538
|
+
args: ['attr.min']
|
|
539
|
+
}, {
|
|
540
|
+
type: i0.Input
|
|
541
|
+
}], max: [{
|
|
542
|
+
type: i0.HostBinding,
|
|
543
|
+
args: ['attr.max']
|
|
544
|
+
}, {
|
|
545
|
+
type: i0.Input
|
|
546
|
+
}], step: [{
|
|
547
|
+
type: i0.HostBinding,
|
|
548
|
+
args: ['attr.step']
|
|
549
|
+
}, {
|
|
550
|
+
type: i0.Input
|
|
551
|
+
}], placeholder: [{
|
|
552
|
+
type: i0.HostBinding,
|
|
553
|
+
args: ['attr.placeholder']
|
|
554
|
+
}, {
|
|
555
|
+
type: i0.Input
|
|
556
|
+
}] } });
|
|
557
|
+
|
|
558
|
+
var NimbleNumberFieldModule = /** @class */ (function () {
|
|
559
|
+
function NimbleNumberFieldModule() {
|
|
560
|
+
}
|
|
561
|
+
return NimbleNumberFieldModule;
|
|
562
|
+
}());
|
|
563
|
+
NimbleNumberFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
564
|
+
NimbleNumberFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, declarations: [NimbleNumberFieldDirective], imports: [common.CommonModule, NimbleControlValueAccessorModule], exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule] });
|
|
565
|
+
NimbleNumberFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, providers: [], imports: [[common.CommonModule, NimbleControlValueAccessorModule], NimbleControlValueAccessorModule] });
|
|
566
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, decorators: [{
|
|
567
|
+
type: i0.NgModule,
|
|
568
|
+
args: [{
|
|
569
|
+
declarations: [NimbleNumberFieldDirective],
|
|
570
|
+
imports: [common.CommonModule, NimbleControlValueAccessorModule],
|
|
571
|
+
providers: [],
|
|
572
|
+
exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule]
|
|
573
|
+
}]
|
|
574
|
+
}] });
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Directive for Nimble select control Angular integration
|
|
578
|
+
*/
|
|
579
|
+
var NimbleSelectDirective = /** @class */ (function () {
|
|
580
|
+
function NimbleSelectDirective() {
|
|
581
|
+
}
|
|
582
|
+
return NimbleSelectDirective;
|
|
583
|
+
}());
|
|
584
|
+
NimbleSelectDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
585
|
+
NimbleSelectDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectDirective, selector: "nimble-select", ngImport: i0__namespace });
|
|
586
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectDirective, decorators: [{
|
|
587
|
+
type: i0.Directive,
|
|
588
|
+
args: [{
|
|
589
|
+
selector: 'nimble-select',
|
|
590
|
+
}]
|
|
591
|
+
}] });
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Extension of Angular's SelectControlValueAccessor to target the Nimble select control.
|
|
595
|
+
*
|
|
596
|
+
* @see NimbleSelectOptionDirective
|
|
597
|
+
*
|
|
598
|
+
* Directive decorator based on SelectControlValueAccessor decorator
|
|
599
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/select_control_value_accessor.ts#L85
|
|
600
|
+
*/
|
|
601
|
+
var NimbleSelectControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
602
|
+
__extends(NimbleSelectControlValueAccessorDirective, _super);
|
|
603
|
+
function NimbleSelectControlValueAccessorDirective() {
|
|
604
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
605
|
+
}
|
|
606
|
+
return NimbleSelectControlValueAccessorDirective;
|
|
607
|
+
}(forms.SelectControlValueAccessor));
|
|
608
|
+
NimbleSelectControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
609
|
+
NimbleSelectControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectControlValueAccessorDirective, selector: "nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
|
|
610
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
611
|
+
useExisting: i0.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
|
|
612
|
+
multi: true
|
|
613
|
+
}], usesInheritance: true, ngImport: i0__namespace });
|
|
614
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectControlValueAccessorDirective, decorators: [{
|
|
615
|
+
type: i0.Directive,
|
|
616
|
+
args: [{
|
|
617
|
+
selector: 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',
|
|
618
|
+
// The following host metadata is duplicated from SelectControlValueAccessor
|
|
619
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
620
|
+
host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
621
|
+
providers: [{
|
|
622
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
623
|
+
useExisting: i0.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
|
|
624
|
+
multi: true
|
|
625
|
+
}]
|
|
626
|
+
}]
|
|
627
|
+
}] });
|
|
628
|
+
|
|
629
|
+
var NimbleSelectModule = /** @class */ (function () {
|
|
630
|
+
function NimbleSelectModule() {
|
|
631
|
+
}
|
|
632
|
+
return NimbleSelectModule;
|
|
633
|
+
}());
|
|
634
|
+
NimbleSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
635
|
+
NimbleSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective], imports: [common.CommonModule], exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective] });
|
|
636
|
+
NimbleSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, imports: [[common.CommonModule]] });
|
|
637
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, decorators: [{
|
|
638
|
+
type: i0.NgModule,
|
|
639
|
+
args: [{
|
|
640
|
+
declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective],
|
|
641
|
+
imports: [common.CommonModule],
|
|
642
|
+
exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]
|
|
643
|
+
}]
|
|
644
|
+
}] });
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Directive to provide Angular integration for the listbox option.
|
|
648
|
+
*/
|
|
649
|
+
var NimbleListboxOptionDirective = /** @class */ (function (_super) {
|
|
650
|
+
__extends(NimbleListboxOptionDirective, _super);
|
|
651
|
+
function NimbleListboxOptionDirective(element, renderer, select) {
|
|
652
|
+
return _super.call(this, element, renderer, select) || this;
|
|
653
|
+
}
|
|
654
|
+
return NimbleListboxOptionDirective;
|
|
655
|
+
}(forms.NgSelectOption));
|
|
656
|
+
NimbleListboxOptionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: NimbleSelectControlValueAccessorDirective, host: true, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
657
|
+
NimbleListboxOptionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleListboxOptionDirective, selector: "nimble-listbox-option", inputs: { disabled: "disabled" }, host: { properties: { "attr.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0__namespace });
|
|
658
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionDirective, decorators: [{
|
|
659
|
+
type: i0.Directive,
|
|
660
|
+
args: [{
|
|
661
|
+
selector: 'nimble-listbox-option'
|
|
662
|
+
}]
|
|
663
|
+
}], ctorParameters: function () {
|
|
664
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: NimbleSelectControlValueAccessorDirective, decorators: [{
|
|
665
|
+
type: i0.Optional
|
|
666
|
+
}, {
|
|
667
|
+
type: i0.Host
|
|
668
|
+
}] }];
|
|
669
|
+
}, propDecorators: { disabled: [{
|
|
670
|
+
type: i0.HostBinding,
|
|
671
|
+
args: ['attr.disabled']
|
|
672
|
+
}, {
|
|
673
|
+
type: i0.Input
|
|
674
|
+
}] } });
|
|
675
|
+
|
|
676
|
+
var NimbleListboxOptionModule = /** @class */ (function () {
|
|
677
|
+
function NimbleListboxOptionModule() {
|
|
678
|
+
}
|
|
679
|
+
return NimbleListboxOptionModule;
|
|
680
|
+
}());
|
|
681
|
+
NimbleListboxOptionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
682
|
+
NimbleListboxOptionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, declarations: [NimbleListboxOptionDirective], imports: [common.CommonModule], exports: [NimbleListboxOptionDirective] });
|
|
683
|
+
NimbleListboxOptionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, imports: [[common.CommonModule]] });
|
|
684
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, decorators: [{
|
|
685
|
+
type: i0.NgModule,
|
|
686
|
+
args: [{
|
|
687
|
+
declarations: [NimbleListboxOptionDirective],
|
|
688
|
+
imports: [common.CommonModule],
|
|
689
|
+
exports: [NimbleListboxOptionDirective]
|
|
690
|
+
}]
|
|
691
|
+
}] });
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Directive to provide Angular integration for the button.
|
|
695
|
+
*/
|
|
696
|
+
var NimbleButtonDirective = /** @class */ (function () {
|
|
697
|
+
function NimbleButtonDirective() {
|
|
698
|
+
}
|
|
699
|
+
return NimbleButtonDirective;
|
|
700
|
+
}());
|
|
701
|
+
NimbleButtonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
702
|
+
NimbleButtonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleButtonDirective, selector: "nimble-button", inputs: { disabled: "disabled", appearance: "appearance" }, host: { properties: { "disabled": "this.disabled", "appearance": "this.appearance" } }, ngImport: i0__namespace });
|
|
703
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonDirective, decorators: [{
|
|
704
|
+
type: i0.Directive,
|
|
705
|
+
args: [{
|
|
706
|
+
selector: 'nimble-button'
|
|
707
|
+
}]
|
|
708
|
+
}], propDecorators: { disabled: [{
|
|
709
|
+
type: i0.HostBinding,
|
|
710
|
+
args: ['disabled']
|
|
711
|
+
}, {
|
|
712
|
+
type: i0.Input
|
|
713
|
+
}], appearance: [{
|
|
714
|
+
type: i0.HostBinding,
|
|
715
|
+
args: ['appearance']
|
|
716
|
+
}, {
|
|
717
|
+
type: i0.Input
|
|
718
|
+
}] } });
|
|
719
|
+
|
|
720
|
+
var NimbleButtonModule = /** @class */ (function () {
|
|
721
|
+
function NimbleButtonModule() {
|
|
722
|
+
}
|
|
723
|
+
return NimbleButtonModule;
|
|
724
|
+
}());
|
|
725
|
+
NimbleButtonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
726
|
+
NimbleButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, declarations: [NimbleButtonDirective], imports: [common.CommonModule], exports: [NimbleButtonDirective] });
|
|
727
|
+
NimbleButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, imports: [[common.CommonModule]] });
|
|
728
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, decorators: [{
|
|
729
|
+
type: i0.NgModule,
|
|
730
|
+
args: [{
|
|
731
|
+
declarations: [NimbleButtonDirective],
|
|
732
|
+
imports: [common.CommonModule],
|
|
733
|
+
exports: [NimbleButtonDirective]
|
|
734
|
+
}]
|
|
735
|
+
}] });
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Directive to provide Angular integration for the tree view.
|
|
739
|
+
*/
|
|
740
|
+
var NimbleTreeViewDirective = /** @class */ (function () {
|
|
741
|
+
function NimbleTreeViewDirective() {
|
|
742
|
+
}
|
|
743
|
+
return NimbleTreeViewDirective;
|
|
744
|
+
}());
|
|
745
|
+
NimbleTreeViewDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
746
|
+
NimbleTreeViewDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeViewDirective, selector: "nimble-tree-view", ngImport: i0__namespace });
|
|
747
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewDirective, decorators: [{
|
|
748
|
+
type: i0.Directive,
|
|
749
|
+
args: [{
|
|
750
|
+
selector: 'nimble-tree-view'
|
|
751
|
+
}]
|
|
752
|
+
}] });
|
|
753
|
+
|
|
754
|
+
var NimbleTreeViewModule = /** @class */ (function () {
|
|
755
|
+
function NimbleTreeViewModule() {
|
|
756
|
+
}
|
|
757
|
+
return NimbleTreeViewModule;
|
|
758
|
+
}());
|
|
759
|
+
NimbleTreeViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
760
|
+
NimbleTreeViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, declarations: [NimbleTreeViewDirective], imports: [common.CommonModule], exports: [NimbleTreeViewDirective] });
|
|
761
|
+
NimbleTreeViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, imports: [[common.CommonModule]] });
|
|
762
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, decorators: [{
|
|
763
|
+
type: i0.NgModule,
|
|
764
|
+
args: [{
|
|
765
|
+
declarations: [NimbleTreeViewDirective],
|
|
766
|
+
imports: [common.CommonModule],
|
|
767
|
+
exports: [NimbleTreeViewDirective]
|
|
768
|
+
}]
|
|
769
|
+
}] });
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Directive to provide Angular integration for the tree item.
|
|
773
|
+
*/
|
|
774
|
+
var NimbleTreeItemDirective = /** @class */ (function () {
|
|
775
|
+
function NimbleTreeItemDirective(treeItemReference) {
|
|
776
|
+
this.treeItemReference = treeItemReference;
|
|
777
|
+
this.selectedChange = new i0.EventEmitter();
|
|
778
|
+
this.expandedChange = new i0.EventEmitter();
|
|
779
|
+
}
|
|
780
|
+
NimbleTreeItemDirective.prototype.onSelectedChange = function ($event) {
|
|
781
|
+
var treeItemElement = this.treeItemReference.nativeElement;
|
|
782
|
+
if ($event.target === treeItemElement) {
|
|
783
|
+
this.selected = treeItemElement.selected;
|
|
784
|
+
this.selectedChange.emit(this.selected);
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
NimbleTreeItemDirective.prototype.onExpandedChange = function ($event) {
|
|
788
|
+
var treeItemElement = this.treeItemReference.nativeElement;
|
|
789
|
+
if ($event.target === treeItemElement) {
|
|
790
|
+
this.expanded = treeItemElement.expanded;
|
|
791
|
+
this.expandedChange.emit(treeItemElement.expanded);
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
return NimbleTreeItemDirective;
|
|
795
|
+
}());
|
|
796
|
+
NimbleTreeItemDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
797
|
+
NimbleTreeItemDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeItemDirective, selector: "nimble-tree-item", inputs: { disabled: "disabled", expanded: "expanded", selected: "selected" }, outputs: { selectedChange: "selectedChange", expandedChange: "expandedChange" }, host: { listeners: { "selected-change": "onSelectedChange($event)", "expanded-change": "onExpandedChange($event)" }, properties: { "disabled": "this.disabled", "expanded": "this.expanded", "selected": "this.selected", "attr.aria-selected": "this.selected" } }, ngImport: i0__namespace });
|
|
798
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemDirective, decorators: [{
|
|
799
|
+
type: i0.Directive,
|
|
800
|
+
args: [{
|
|
801
|
+
selector: 'nimble-tree-item'
|
|
802
|
+
}]
|
|
803
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { disabled: [{
|
|
804
|
+
type: i0.HostBinding,
|
|
805
|
+
args: ['disabled']
|
|
806
|
+
}, {
|
|
807
|
+
type: i0.Input
|
|
808
|
+
}], expanded: [{
|
|
809
|
+
type: i0.HostBinding,
|
|
810
|
+
args: ['expanded']
|
|
811
|
+
}, {
|
|
812
|
+
type: i0.Input
|
|
813
|
+
}], selected: [{
|
|
814
|
+
type: i0.HostBinding,
|
|
815
|
+
args: ['selected']
|
|
816
|
+
}, {
|
|
817
|
+
type: i0.HostBinding,
|
|
818
|
+
args: ['attr.aria-selected']
|
|
819
|
+
}, {
|
|
820
|
+
type: i0.Input
|
|
821
|
+
}], selectedChange: [{
|
|
822
|
+
type: i0.Output
|
|
823
|
+
}], expandedChange: [{
|
|
824
|
+
type: i0.Output
|
|
825
|
+
}], onSelectedChange: [{
|
|
826
|
+
type: i0.HostListener,
|
|
827
|
+
args: ['selected-change', ['$event']]
|
|
828
|
+
}], onExpandedChange: [{
|
|
829
|
+
type: i0.HostListener,
|
|
830
|
+
args: ['expanded-change', ['$event']]
|
|
831
|
+
}] } });
|
|
832
|
+
|
|
833
|
+
var NimbleTreeItemModule = /** @class */ (function () {
|
|
834
|
+
function NimbleTreeItemModule() {
|
|
835
|
+
}
|
|
836
|
+
return NimbleTreeItemModule;
|
|
837
|
+
}());
|
|
838
|
+
NimbleTreeItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
839
|
+
NimbleTreeItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, declarations: [NimbleTreeItemDirective], imports: [common.CommonModule], exports: [NimbleTreeItemDirective] });
|
|
840
|
+
NimbleTreeItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, imports: [[common.CommonModule]] });
|
|
841
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, decorators: [{
|
|
842
|
+
type: i0.NgModule,
|
|
843
|
+
args: [{
|
|
844
|
+
declarations: [NimbleTreeItemDirective],
|
|
845
|
+
imports: [common.CommonModule],
|
|
846
|
+
exports: [NimbleTreeItemDirective]
|
|
847
|
+
}]
|
|
848
|
+
}] });
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Directive to provide Angular integration for the checkbox.
|
|
852
|
+
*/
|
|
853
|
+
var NimbleCheckboxDirective = /** @class */ (function () {
|
|
854
|
+
function NimbleCheckboxDirective() {
|
|
855
|
+
}
|
|
856
|
+
return NimbleCheckboxDirective;
|
|
857
|
+
}());
|
|
858
|
+
NimbleCheckboxDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
859
|
+
NimbleCheckboxDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxDirective, selector: "nimble-checkbox", ngImport: i0__namespace });
|
|
860
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, decorators: [{
|
|
861
|
+
type: i0.Directive,
|
|
862
|
+
args: [{
|
|
863
|
+
selector: 'nimble-checkbox'
|
|
864
|
+
}]
|
|
865
|
+
}] });
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Extension of Angular's CheckboxControlValueAccessor to target the Nimble checkbox control.
|
|
869
|
+
*
|
|
870
|
+
* Directive decorator based on CheckboxControlValueAccessor decorator
|
|
871
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/checkbox_value_accessor.ts#L42
|
|
872
|
+
*/
|
|
873
|
+
var NimbleCheckboxControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
874
|
+
__extends(NimbleCheckboxControlValueAccessorDirective, _super);
|
|
875
|
+
function NimbleCheckboxControlValueAccessorDirective() {
|
|
876
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
877
|
+
}
|
|
878
|
+
return NimbleCheckboxControlValueAccessorDirective;
|
|
879
|
+
}(forms.CheckboxControlValueAccessor));
|
|
880
|
+
NimbleCheckboxControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
881
|
+
NimbleCheckboxControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxControlValueAccessorDirective, selector: "nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [{
|
|
882
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
883
|
+
useExisting: i0.forwardRef(function () { return NimbleCheckboxControlValueAccessorDirective; }),
|
|
884
|
+
multi: true
|
|
885
|
+
}], usesInheritance: true, ngImport: i0__namespace });
|
|
886
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxControlValueAccessorDirective, decorators: [{
|
|
887
|
+
type: i0.Directive,
|
|
888
|
+
args: [{
|
|
889
|
+
selector: 'nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]',
|
|
890
|
+
// The following host metadata is duplicated from CheckboxControlValueAccessor
|
|
891
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
892
|
+
host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
|
|
893
|
+
providers: [{
|
|
894
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
895
|
+
useExisting: i0.forwardRef(function () { return NimbleCheckboxControlValueAccessorDirective; }),
|
|
896
|
+
multi: true
|
|
897
|
+
}]
|
|
898
|
+
}]
|
|
899
|
+
}] });
|
|
900
|
+
|
|
901
|
+
var NimbleCheckboxModule = /** @class */ (function () {
|
|
902
|
+
function NimbleCheckboxModule() {
|
|
903
|
+
}
|
|
904
|
+
return NimbleCheckboxModule;
|
|
905
|
+
}());
|
|
906
|
+
NimbleCheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
907
|
+
NimbleCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective], imports: [common.CommonModule], exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective] });
|
|
908
|
+
NimbleCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, imports: [[common.CommonModule]] });
|
|
909
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, decorators: [{
|
|
910
|
+
type: i0.NgModule,
|
|
911
|
+
args: [{
|
|
912
|
+
declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective],
|
|
913
|
+
imports: [common.CommonModule],
|
|
914
|
+
exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]
|
|
915
|
+
}]
|
|
916
|
+
}] });
|
|
917
|
+
|
|
918
|
+
/*
|
|
919
|
+
* Public API Surface of nimble-angular
|
|
920
|
+
*/
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Generated bundle index. Do not edit.
|
|
924
|
+
*/
|
|
925
|
+
|
|
926
|
+
exports.NimbleButtonDirective = NimbleButtonDirective;
|
|
927
|
+
exports.NimbleButtonModule = NimbleButtonModule;
|
|
928
|
+
exports.NimbleCheckboxControlValueAccessorDirective = NimbleCheckboxControlValueAccessorDirective;
|
|
929
|
+
exports.NimbleCheckboxDirective = NimbleCheckboxDirective;
|
|
930
|
+
exports.NimbleCheckboxModule = NimbleCheckboxModule;
|
|
931
|
+
exports.NimbleControlValueAccessorModule = NimbleControlValueAccessorModule;
|
|
932
|
+
exports.NimbleDefaultControlValueAccessorDirective = NimbleDefaultControlValueAccessorDirective;
|
|
933
|
+
exports.NimbleListboxOptionDirective = NimbleListboxOptionDirective;
|
|
934
|
+
exports.NimbleListboxOptionModule = NimbleListboxOptionModule;
|
|
935
|
+
exports.NimbleNumberControlValueAccessorDirective = NimbleNumberControlValueAccessorDirective;
|
|
936
|
+
exports.NimbleNumberFieldDirective = NimbleNumberFieldDirective;
|
|
937
|
+
exports.NimbleNumberFieldModule = NimbleNumberFieldModule;
|
|
938
|
+
exports.NimbleSelectControlValueAccessorDirective = NimbleSelectControlValueAccessorDirective;
|
|
939
|
+
exports.NimbleSelectDirective = NimbleSelectDirective;
|
|
940
|
+
exports.NimbleSelectModule = NimbleSelectModule;
|
|
941
|
+
exports.NimbleTextFieldDirective = NimbleTextFieldDirective;
|
|
942
|
+
exports.NimbleTextFieldModule = NimbleTextFieldModule;
|
|
943
|
+
exports.NimbleThemeProviderDirective = NimbleThemeProviderDirective;
|
|
944
|
+
exports.NimbleThemeProviderModule = NimbleThemeProviderModule;
|
|
945
|
+
exports.NimbleTreeItemDirective = NimbleTreeItemDirective;
|
|
946
|
+
exports.NimbleTreeItemModule = NimbleTreeItemModule;
|
|
947
|
+
exports.NimbleTreeViewDirective = NimbleTreeViewDirective;
|
|
948
|
+
exports.NimbleTreeViewModule = NimbleTreeViewModule;
|
|
949
|
+
|
|
950
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
951
|
+
|
|
952
|
+
})));
|
|
953
|
+
//# sourceMappingURL=ni-nimble-angular.umd.js.map
|