@softpak/components 0.1.3-beta.9 → 0.1.3
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/esm2022/spx-form-view/spx-form-view.component.mjs +3 -3
- package/esm2022/spx-inputs/spx-input-type.enum.mjs +1 -2
- package/esm2022/spx-inputs/spx-input.component.mjs +3 -33
- package/fesm2022/softpak-components-spx-form-view.mjs +2 -2
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-inputs.mjs +4 -298
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/package.json +13 -13
- package/spx-inputs/spx-input-type.enum.d.ts +1 -2
- package/spx-inputs/spx-input.component.d.ts +0 -2
- package/tailwind.css +1 -1
- package/esm2022/spx-inputs/spx-input-time-modal.component.mjs +0 -112
- package/esm2022/spx-inputs/spx-input-time.component.mjs +0 -167
- package/spx-inputs/spx-input-time-modal.component.d.ts +0 -17
- package/spx-inputs/spx-input-time.component.d.ts +0 -43
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgIf, NgFor } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter, Component, Input, Output, HostListener, ViewChild
|
|
3
|
+
import { EventEmitter, Component, Input, Output, HostListener, ViewChild } from '@angular/core';
|
|
4
4
|
import { SpxButtonComponent } from '@softpak/components/spx-button';
|
|
5
5
|
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
@@ -12,8 +12,7 @@ import { fromEvent } from 'rxjs';
|
|
|
12
12
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
13
13
|
import { SpxSuggestionComponent } from '@softpak/components/spx-suggestion';
|
|
14
14
|
import { DateTime } from 'luxon';
|
|
15
|
-
import { valuePairToValue
|
|
16
|
-
import { ModalController, IonButtons, IonContent, IonHeader, IonToolbar, IonTitle } from '@ionic/angular/standalone';
|
|
15
|
+
import { valuePairToValue } from '@softpak/components/spx-helpers';
|
|
17
16
|
|
|
18
17
|
class SpxInputBoxComponent {
|
|
19
18
|
handleFocusIn(ev) {
|
|
@@ -1167,272 +1166,8 @@ var SpxInputTypeEnum;
|
|
|
1167
1166
|
SpxInputTypeEnum["password"] = "password";
|
|
1168
1167
|
SpxInputTypeEnum["text"] = "text";
|
|
1169
1168
|
SpxInputTypeEnum["textNumericKeyboard"] = "textNumericKeyboard";
|
|
1170
|
-
SpxInputTypeEnum["time"] = "time";
|
|
1171
1169
|
})(SpxInputTypeEnum || (SpxInputTypeEnum = {}));
|
|
1172
1170
|
|
|
1173
|
-
class SpxInputTimeModalComponent {
|
|
1174
|
-
constructor() {
|
|
1175
|
-
this.change = new EventEmitter();
|
|
1176
|
-
this.hourOptions = Array.from({ length: 24 }, (_, i) => i); // 0 to 23
|
|
1177
|
-
this.minuteOptions = Array.from({ length: 12 }, (_, i) => i * 5); // Minutes in incrementen van 5
|
|
1178
|
-
this.modalController = inject(ModalController);
|
|
1179
|
-
this.typeError = SpxSeverityEnum.error;
|
|
1180
|
-
this.hourOptions.push(this.hourOptions.shift());
|
|
1181
|
-
}
|
|
1182
|
-
closeDialog() {
|
|
1183
|
-
this.modalController.dismiss();
|
|
1184
|
-
}
|
|
1185
|
-
onChange(value) {
|
|
1186
|
-
this.change.emit(value);
|
|
1187
|
-
this.modalController.dismiss(value);
|
|
1188
|
-
}
|
|
1189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputTimeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxInputTimeModalComponent, isStandalone: true, selector: "spx-input-time-modal", inputs: { view: "view", value: "value" }, outputs: { change: "change" }, ngImport: i0, template: `<ion-header>
|
|
1191
|
-
<ion-toolbar>
|
|
1192
|
-
<ion-title>Inline Modal</ion-title>
|
|
1193
|
-
<ion-buttons slot="end">
|
|
1194
|
-
<spx-button [spxSeverity]="typeError" (spxClick)="closeDialog()">Close</spx-button>
|
|
1195
|
-
</ion-buttons>
|
|
1196
|
-
</ion-toolbar>
|
|
1197
|
-
</ion-header>
|
|
1198
|
-
<ion-content class="ion-padding">
|
|
1199
|
-
<!-- Uren -->
|
|
1200
|
-
<div class="grid grid-cols-1 gap-3">
|
|
1201
|
-
<div *ngIf="view === 'hours'" class="flex-wrap gap-2">
|
|
1202
|
-
<p> Select Hour </p>
|
|
1203
|
-
<div class="grid grid-cols-4 gap-3">
|
|
1204
|
-
<div *ngFor="let hour of hourOptions" class="custom-square rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none bg-sky-100 focus:ring-sky-300 hover:bg-sky-300 active:bg-sky-300" [class.selected]="value === hour" (click)="onChange(hour)">
|
|
1205
|
-
{{ hour }}
|
|
1206
|
-
</div>
|
|
1207
|
-
</div>
|
|
1208
|
-
</div>
|
|
1209
|
-
<!-- Minuten -->
|
|
1210
|
-
<div *ngIf="view === 'minutes'" class="grid grid-cols-1 gap-3">
|
|
1211
|
-
<p>Select Minute</p>
|
|
1212
|
-
<div class="grid grid-cols-5 gap-3">
|
|
1213
|
-
<div *ngFor="let minute of minuteOptions" class="custom-square rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none bg-sky-100 focus:ring-sky-300 hover:bg-sky-300 active:bg-sky-300" [class.selected]="value === minute" (click)="onChange(minute)">
|
|
1214
|
-
{{ minute }}
|
|
1215
|
-
</div>
|
|
1216
|
-
</div>
|
|
1217
|
-
</div>
|
|
1218
|
-
</div>
|
|
1219
|
-
</ion-content>
|
|
1220
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: SpxButtonComponent, selector: "spx-button", inputs: ["spxDisabled", "spxClass", "spxClassObject", "spxForm", "spxFullHeight", "spxFullWidth", "spxSeverity", "spxSize", "spxTabIndex", "spxType"], outputs: ["spxClick"] }] }); }
|
|
1221
|
-
}
|
|
1222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputTimeModalComponent, decorators: [{
|
|
1223
|
-
type: Component,
|
|
1224
|
-
args: [{
|
|
1225
|
-
selector: 'spx-input-time-modal',
|
|
1226
|
-
standalone: true,
|
|
1227
|
-
imports: [
|
|
1228
|
-
NgIf,
|
|
1229
|
-
NgFor,
|
|
1230
|
-
IonButtons,
|
|
1231
|
-
IonContent,
|
|
1232
|
-
IonHeader,
|
|
1233
|
-
IonToolbar,
|
|
1234
|
-
IonTitle,
|
|
1235
|
-
SpxButtonComponent,
|
|
1236
|
-
SpxDropdownComponent,
|
|
1237
|
-
],
|
|
1238
|
-
template: `<ion-header>
|
|
1239
|
-
<ion-toolbar>
|
|
1240
|
-
<ion-title>Inline Modal</ion-title>
|
|
1241
|
-
<ion-buttons slot="end">
|
|
1242
|
-
<spx-button [spxSeverity]="typeError" (spxClick)="closeDialog()">Close</spx-button>
|
|
1243
|
-
</ion-buttons>
|
|
1244
|
-
</ion-toolbar>
|
|
1245
|
-
</ion-header>
|
|
1246
|
-
<ion-content class="ion-padding">
|
|
1247
|
-
<!-- Uren -->
|
|
1248
|
-
<div class="grid grid-cols-1 gap-3">
|
|
1249
|
-
<div *ngIf="view === 'hours'" class="flex-wrap gap-2">
|
|
1250
|
-
<p> Select Hour </p>
|
|
1251
|
-
<div class="grid grid-cols-4 gap-3">
|
|
1252
|
-
<div *ngFor="let hour of hourOptions" class="custom-square rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none bg-sky-100 focus:ring-sky-300 hover:bg-sky-300 active:bg-sky-300" [class.selected]="value === hour" (click)="onChange(hour)">
|
|
1253
|
-
{{ hour }}
|
|
1254
|
-
</div>
|
|
1255
|
-
</div>
|
|
1256
|
-
</div>
|
|
1257
|
-
<!-- Minuten -->
|
|
1258
|
-
<div *ngIf="view === 'minutes'" class="grid grid-cols-1 gap-3">
|
|
1259
|
-
<p>Select Minute</p>
|
|
1260
|
-
<div class="grid grid-cols-5 gap-3">
|
|
1261
|
-
<div *ngFor="let minute of minuteOptions" class="custom-square rounded text-gray-900 text-sm p-3 w-full text-left truncate outline-none bg-sky-100 focus:ring-sky-300 hover:bg-sky-300 active:bg-sky-300" [class.selected]="value === minute" (click)="onChange(minute)">
|
|
1262
|
-
{{ minute }}
|
|
1263
|
-
</div>
|
|
1264
|
-
</div>
|
|
1265
|
-
</div>
|
|
1266
|
-
</div>
|
|
1267
|
-
</ion-content>
|
|
1268
|
-
`,
|
|
1269
|
-
}]
|
|
1270
|
-
}], ctorParameters: () => [], propDecorators: { view: [{
|
|
1271
|
-
type: Input
|
|
1272
|
-
}], value: [{
|
|
1273
|
-
type: Input
|
|
1274
|
-
}], change: [{
|
|
1275
|
-
type: Output
|
|
1276
|
-
}] } });
|
|
1277
|
-
|
|
1278
|
-
class SpxInputTimeComponent {
|
|
1279
|
-
constructor() {
|
|
1280
|
-
this.spxAutofocus = false;
|
|
1281
|
-
this.spxSuggestions = [];
|
|
1282
|
-
this.spxReadonly = false;
|
|
1283
|
-
this.spxCapitalize = false;
|
|
1284
|
-
this.spxFocused = true;
|
|
1285
|
-
this.spxBlurFromChild = new EventEmitter();
|
|
1286
|
-
this.spxChange = new EventEmitter();
|
|
1287
|
-
this.spxFocus = new EventEmitter();
|
|
1288
|
-
this.spxWasInternalUpdate = false;
|
|
1289
|
-
this.modalController = inject(ModalController);
|
|
1290
|
-
this.severitySuccess = SpxSeverityEnum.success;
|
|
1291
|
-
this.hourOptions = Array.from({ length: 24 }, (_, i) => i).unshift(); // 0 to 23
|
|
1292
|
-
this.minuteOptions = Array.from({ length: 12 }, (_, i) => i * 5); // Minutes in incrementen van 5
|
|
1293
|
-
this.selectedHour = null;
|
|
1294
|
-
this.selectedMinute = null;
|
|
1295
|
-
}
|
|
1296
|
-
get formattedHour() {
|
|
1297
|
-
return this.selectedHour !== null && this.selectedHour < 10 ? `0${this.selectedHour}` : this.selectedHour;
|
|
1298
|
-
}
|
|
1299
|
-
get formattedMinute() {
|
|
1300
|
-
return this.selectedMinute !== null && this.selectedMinute < 10 ? `0${this.selectedMinute}` : this.selectedMinute;
|
|
1301
|
-
}
|
|
1302
|
-
get hour() { return this.value?.value ? DateTime.fromISO(this.value.value).hour : null; }
|
|
1303
|
-
get minute() { return this.value?.value ? DateTime.fromISO(this.value.value).minute : null; }
|
|
1304
|
-
spxSetFocus() {
|
|
1305
|
-
this.inputRef?.nativeElement?.focus();
|
|
1306
|
-
}
|
|
1307
|
-
componentDidLoad() {
|
|
1308
|
-
if (this.spxAutofocus) {
|
|
1309
|
-
this.spxFocus.emit();
|
|
1310
|
-
this.spxSetFocus();
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
handleBlur() {
|
|
1314
|
-
this.spxBlurFromChild.emit();
|
|
1315
|
-
}
|
|
1316
|
-
handleFocus() {
|
|
1317
|
-
this.spxFocus.emit();
|
|
1318
|
-
}
|
|
1319
|
-
handleDescriptionInput(event) {
|
|
1320
|
-
this.value = {
|
|
1321
|
-
description: event.target ? event.target.value : null,
|
|
1322
|
-
value: event.target ? event.target.value : null,
|
|
1323
|
-
};
|
|
1324
|
-
this.spxChange.emit(this.value);
|
|
1325
|
-
}
|
|
1326
|
-
handleSuggestionClick(value) {
|
|
1327
|
-
if (!this.spxReadonly) {
|
|
1328
|
-
this.value = value;
|
|
1329
|
-
this.spxChange.emit(this.value);
|
|
1330
|
-
this.spxFocused = false;
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
handleKeyUp() {
|
|
1334
|
-
this.spxFocused = true;
|
|
1335
|
-
}
|
|
1336
|
-
async openDialog(view) {
|
|
1337
|
-
const modal = await this.modalController.create({
|
|
1338
|
-
component: SpxInputTimeModalComponent,
|
|
1339
|
-
componentProps: {
|
|
1340
|
-
value: this.value?.value ?
|
|
1341
|
-
(view === 'hours' ? DateTime.fromISO(this.value.value).hour : DateTime.fromISO(this.value.value).minute) : undefined,
|
|
1342
|
-
view,
|
|
1343
|
-
},
|
|
1344
|
-
});
|
|
1345
|
-
modal.onDidDismiss().then(() => {
|
|
1346
|
-
// this.appStore.dispatch(infArticleActions.reset({}));
|
|
1347
|
-
});
|
|
1348
|
-
const { data } = await modal.onDidDismiss();
|
|
1349
|
-
if (data) {
|
|
1350
|
-
if (view === 'hours') {
|
|
1351
|
-
this.selectedHour = data; // Update selectedHour with the emitted value
|
|
1352
|
-
console.log('dit is de uur weg');
|
|
1353
|
-
}
|
|
1354
|
-
else if (view === 'minutes') {
|
|
1355
|
-
this.selectedMinute = data; // Update selectedMinute with the emitted value
|
|
1356
|
-
console.log('dit is de minuut weg');
|
|
1357
|
-
}
|
|
1358
|
-
this.updateValue(); // Call updateValue to format and emit the new time
|
|
1359
|
-
}
|
|
1360
|
-
await modal.present();
|
|
1361
|
-
}
|
|
1362
|
-
updateValue() {
|
|
1363
|
-
if (this.selectedHour !== null && this.selectedMinute !== null) {
|
|
1364
|
-
const formattedHour = this.selectedHour < 10 ? `0${this.selectedHour}` : this.selectedHour;
|
|
1365
|
-
const formattedMinute = this.selectedMinute < 10 ? `0${this.selectedMinute}` : this.selectedMinute;
|
|
1366
|
-
const newValue = `${formattedHour}:${formattedMinute}`;
|
|
1367
|
-
this.value = {
|
|
1368
|
-
description: newValue,
|
|
1369
|
-
value: newValue,
|
|
1370
|
-
};
|
|
1371
|
-
this.spxChange.emit(this.value);
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1375
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: SpxInputTimeComponent, isStandalone: true, selector: "spx-input-time", inputs: { spxName: "spxName", spxAutofocus: "spxAutofocus", spxInputMode: "spxInputMode", spxPattern: "spxPattern", spxSuggestions: "spxSuggestions", spxReadonly: "spxReadonly", spxValidators: "spxValidators", spxCapitalize: "spxCapitalize", spxFocused: "spxFocused", spxType: "spxType", value: "value", spxWasInternalUpdate: "spxWasInternalUpdate" }, outputs: { spxBlurFromChild: "spxBlurFromChild", spxChange: "spxChange", spxFocus: "spxFocus" }, providers: [
|
|
1376
|
-
ModalController,
|
|
1377
|
-
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: `<div class="relative text-black">
|
|
1378
|
-
<div class="flex items-center justify-around gap-3">
|
|
1379
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('hours')">{{ hour }}</div>
|
|
1380
|
-
<div class="text-gray text-xl">:</div>
|
|
1381
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('minutes')">{{ minute }}</div>
|
|
1382
|
-
</div>
|
|
1383
|
-
</div>`, isInline: true, styles: [".custom-square.selected{background-color:#007bff;color:#fff;border-color:#007bff}\n"] }); }
|
|
1384
|
-
}
|
|
1385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputTimeComponent, decorators: [{
|
|
1386
|
-
type: Component,
|
|
1387
|
-
args: [{ selector: 'spx-input-time', standalone: true, imports: [
|
|
1388
|
-
NgIf,
|
|
1389
|
-
NgFor,
|
|
1390
|
-
SpxButtonComponent,
|
|
1391
|
-
SpxDropdownComponent,
|
|
1392
|
-
], providers: [
|
|
1393
|
-
ModalController,
|
|
1394
|
-
], template: `<div class="relative text-black">
|
|
1395
|
-
<div class="flex items-center justify-around gap-3">
|
|
1396
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('hours')">{{ hour }}</div>
|
|
1397
|
-
<div class="text-gray text-xl">:</div>
|
|
1398
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('minutes')">{{ minute }}</div>
|
|
1399
|
-
</div>
|
|
1400
|
-
</div>`, styles: [".custom-square.selected{background-color:#007bff;color:#fff;border-color:#007bff}\n"] }]
|
|
1401
|
-
}], propDecorators: { spxName: [{
|
|
1402
|
-
type: Input
|
|
1403
|
-
}], spxAutofocus: [{
|
|
1404
|
-
type: Input
|
|
1405
|
-
}], spxInputMode: [{
|
|
1406
|
-
type: Input
|
|
1407
|
-
}], spxPattern: [{
|
|
1408
|
-
type: Input
|
|
1409
|
-
}], spxSuggestions: [{
|
|
1410
|
-
type: Input
|
|
1411
|
-
}], spxReadonly: [{
|
|
1412
|
-
type: Input
|
|
1413
|
-
}], spxValidators: [{
|
|
1414
|
-
type: Input
|
|
1415
|
-
}], spxCapitalize: [{
|
|
1416
|
-
type: Input
|
|
1417
|
-
}], spxFocused: [{
|
|
1418
|
-
type: Input
|
|
1419
|
-
}], spxType: [{
|
|
1420
|
-
type: Input
|
|
1421
|
-
}], value: [{
|
|
1422
|
-
type: Input
|
|
1423
|
-
}], spxBlurFromChild: [{
|
|
1424
|
-
type: Output
|
|
1425
|
-
}], spxChange: [{
|
|
1426
|
-
type: Output
|
|
1427
|
-
}], spxFocus: [{
|
|
1428
|
-
type: Output
|
|
1429
|
-
}], spxWasInternalUpdate: [{
|
|
1430
|
-
type: Input
|
|
1431
|
-
}], inputRef: [{
|
|
1432
|
-
type: ViewChild,
|
|
1433
|
-
args: ['input', { static: true }]
|
|
1434
|
-
}] } });
|
|
1435
|
-
|
|
1436
1171
|
class SpxInputComponent {
|
|
1437
1172
|
constructor() {
|
|
1438
1173
|
this.spxLabel = 'label';
|
|
@@ -1517,9 +1252,6 @@ class SpxInputComponent {
|
|
|
1517
1252
|
case SpxInputTypeEnum.radio:
|
|
1518
1253
|
this.radioInput?.spxFocusIn();
|
|
1519
1254
|
break;
|
|
1520
|
-
case SpxInputTypeEnum.time:
|
|
1521
|
-
this.timeInput?.spxSetFocus();
|
|
1522
|
-
break;
|
|
1523
1255
|
}
|
|
1524
1256
|
}
|
|
1525
1257
|
writeValue(value) {
|
|
@@ -1547,7 +1279,7 @@ class SpxInputComponent {
|
|
|
1547
1279
|
useExisting: SpxInputComponent,
|
|
1548
1280
|
multi: true
|
|
1549
1281
|
}
|
|
1550
|
-
], viewQueries: [{ propertyName: "floatInput", first: true, predicate: SpxInputFloatComponent, descendants: true }, { propertyName: "numberInput", first: true, predicate: SpxInputNumberComponent, descendants: true }, { propertyName: "textInput", first: true, predicate: SpxInputTextComponent, descendants: true }, { propertyName: "
|
|
1282
|
+
], viewQueries: [{ propertyName: "floatInput", first: true, predicate: SpxInputFloatComponent, descendants: true }, { propertyName: "numberInput", first: true, predicate: SpxInputNumberComponent, descendants: true }, { propertyName: "textInput", first: true, predicate: SpxInputTextComponent, descendants: true }, { propertyName: "radioInput", first: true, predicate: SpxInputRadioComponent, descendants: true }], ngImport: i0, template: `<spx-input-box
|
|
1551
1283
|
[spxFocused]="this.spxFocused"
|
|
1552
1284
|
[spxLabel]="this.spxLabel"
|
|
1553
1285
|
[spxReadonly]="this.spxReadonly"
|
|
@@ -1636,22 +1368,11 @@ class SpxInputComponent {
|
|
|
1636
1368
|
[spxValidators]="this.spxValidators"
|
|
1637
1369
|
[value]="this.value"
|
|
1638
1370
|
></spx-input-radio>
|
|
1639
|
-
<spx-input-time
|
|
1640
|
-
#timeInput
|
|
1641
|
-
*ngIf="this.spxType === 'time'"
|
|
1642
|
-
(spxChange)="this.handleChange($event)"
|
|
1643
|
-
(spxFocus)="this.handleFocus()"
|
|
1644
|
-
[spxFocused]="this.spxFocused"
|
|
1645
|
-
[spxName]="this.spxName"
|
|
1646
|
-
[spxReadonly]="this.spxReadonly"
|
|
1647
|
-
[spxValidators]="this.spxValidators"
|
|
1648
|
-
[value]="this.value"
|
|
1649
|
-
></spx-input-time>
|
|
1650
1371
|
</div>
|
|
1651
1372
|
<div validation-messages>
|
|
1652
1373
|
<ng-content></ng-content>
|
|
1653
1374
|
</div>
|
|
1654
|
-
</spx-input-box>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpxInputBoxComponent, selector: "spx-input-box", inputs: ["spxCompact", "spxFocused", "spxLabel", "spxReadonly", "spxRequired", "spxShowClear", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxShowSearch", "spxShowValidationMessages", "spxValue"], outputs: ["spxClear", "spxSearch", "spxFocus", "spxFocusOut", "spxEdit", "spxHelp"] }, { kind: "component", type: SpxInputDateComponent, selector: "spx-input-date", inputs: ["spxMax", "spxMin", "spxName", "spxReadonly", "spxValidators", "spxFocused", "spxSelectMonth", "spxSelectDay", "value", "spxLastKeyPressed", "spxSelectStep", "spxInternalValue", "spxSuggestions", "spxWasInternalUpdate"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputFloatComponent, selector: "spx-input-float", inputs: ["spxName", "spxAutofocus", "spxReadonly", "spxValidators", "spxFocused", "spxStep", "value", "spxWasInternalUpdate", "tick"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputNumberComponent, selector: "spx-input-number", inputs: ["spxName", "spxAutofocus", "spxInputMode", "spxReadonly", "spxValidators", "spxFocused", "spxStep", "value"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputRadioComponent, selector: "spx-input-radio", inputs: ["spxName", "spxValidators", "spxFocused", "spxShowLabel", "spxReadonly", "spxSuggestions", "value"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputTextComponent, selector: "spx-input-text", inputs: ["spxName", "spxAutofocus", "spxInputMode", "spxPattern", "spxSuggestions", "spxReadonly", "spxValidators", "spxCapitalize", "spxFocused", "spxType", "value", "spxWasInternalUpdate"], outputs: ["spxBlurFromChild", "spxChange", "spxFocus"] }
|
|
1375
|
+
</spx-input-box>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpxInputBoxComponent, selector: "spx-input-box", inputs: ["spxCompact", "spxFocused", "spxLabel", "spxReadonly", "spxRequired", "spxShowClear", "spxShowEdit", "spxShowHelp", "spxShowLabel", "spxShowSearch", "spxShowValidationMessages", "spxValue"], outputs: ["spxClear", "spxSearch", "spxFocus", "spxFocusOut", "spxEdit", "spxHelp"] }, { kind: "component", type: SpxInputDateComponent, selector: "spx-input-date", inputs: ["spxMax", "spxMin", "spxName", "spxReadonly", "spxValidators", "spxFocused", "spxSelectMonth", "spxSelectDay", "value", "spxLastKeyPressed", "spxSelectStep", "spxInternalValue", "spxSuggestions", "spxWasInternalUpdate"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputFloatComponent, selector: "spx-input-float", inputs: ["spxName", "spxAutofocus", "spxReadonly", "spxValidators", "spxFocused", "spxStep", "value", "spxWasInternalUpdate", "tick"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputNumberComponent, selector: "spx-input-number", inputs: ["spxName", "spxAutofocus", "spxInputMode", "spxReadonly", "spxValidators", "spxFocused", "spxStep", "value"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputRadioComponent, selector: "spx-input-radio", inputs: ["spxName", "spxValidators", "spxFocused", "spxShowLabel", "spxReadonly", "spxSuggestions", "value"], outputs: ["spxChange", "spxFocus"] }, { kind: "component", type: SpxInputTextComponent, selector: "spx-input-text", inputs: ["spxName", "spxAutofocus", "spxInputMode", "spxPattern", "spxSuggestions", "spxReadonly", "spxValidators", "spxCapitalize", "spxFocused", "spxType", "value", "spxWasInternalUpdate"], outputs: ["spxBlurFromChild", "spxChange", "spxFocus"] }] }); }
|
|
1655
1376
|
}
|
|
1656
1377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputComponent, decorators: [{
|
|
1657
1378
|
type: Component,
|
|
@@ -1669,7 +1390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
1669
1390
|
SpxInputNumberComponent,
|
|
1670
1391
|
SpxInputRadioComponent,
|
|
1671
1392
|
SpxInputTextComponent,
|
|
1672
|
-
SpxInputTimeComponent,
|
|
1673
1393
|
],
|
|
1674
1394
|
providers: [
|
|
1675
1395
|
{
|
|
@@ -1767,17 +1487,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
1767
1487
|
[spxValidators]="this.spxValidators"
|
|
1768
1488
|
[value]="this.value"
|
|
1769
1489
|
></spx-input-radio>
|
|
1770
|
-
<spx-input-time
|
|
1771
|
-
#timeInput
|
|
1772
|
-
*ngIf="this.spxType === 'time'"
|
|
1773
|
-
(spxChange)="this.handleChange($event)"
|
|
1774
|
-
(spxFocus)="this.handleFocus()"
|
|
1775
|
-
[spxFocused]="this.spxFocused"
|
|
1776
|
-
[spxName]="this.spxName"
|
|
1777
|
-
[spxReadonly]="this.spxReadonly"
|
|
1778
|
-
[spxValidators]="this.spxValidators"
|
|
1779
|
-
[value]="this.value"
|
|
1780
|
-
></spx-input-time>
|
|
1781
1490
|
</div>
|
|
1782
1491
|
<div validation-messages>
|
|
1783
1492
|
<ng-content></ng-content>
|
|
@@ -1855,9 +1564,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
1855
1564
|
}], textInput: [{
|
|
1856
1565
|
type: ViewChild,
|
|
1857
1566
|
args: [SpxInputTextComponent]
|
|
1858
|
-
}], timeInput: [{
|
|
1859
|
-
type: ViewChild,
|
|
1860
|
-
args: [SpxInputTimeComponent]
|
|
1861
1567
|
}], radioInput: [{
|
|
1862
1568
|
type: ViewChild,
|
|
1863
1569
|
args: [SpxInputRadioComponent]
|