@softpak/components 0.1.3-beta.8 → 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 -286
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/package.json +19 -19
- 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 -155
- 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,260 +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
|
-
await modal.present();
|
|
1349
|
-
}
|
|
1350
|
-
updateValue() {
|
|
1351
|
-
if (this.selectedHour !== null && this.selectedMinute !== null) {
|
|
1352
|
-
const formattedHour = this.selectedHour < 10 ? `0${this.selectedHour}` : this.selectedHour;
|
|
1353
|
-
const formattedMinute = this.selectedMinute < 10 ? `0${this.selectedMinute}` : this.selectedMinute;
|
|
1354
|
-
const newValue = `${formattedHour}:${formattedMinute}`;
|
|
1355
|
-
this.value = {
|
|
1356
|
-
description: newValue,
|
|
1357
|
-
value: newValue,
|
|
1358
|
-
};
|
|
1359
|
-
this.spxChange.emit(this.value);
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1363
|
-
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: [
|
|
1364
|
-
ModalController,
|
|
1365
|
-
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: `<div class="relative text-black">
|
|
1366
|
-
<div class="flex items-center justify-around gap-3">
|
|
1367
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('hours')">{{ hour }}</div>
|
|
1368
|
-
<div class="text-gray text-xl">:</div>
|
|
1369
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('minutes')">{{ minute }}</div>
|
|
1370
|
-
</div>
|
|
1371
|
-
</div>`, isInline: true, styles: [".custom-square.selected{background-color:#007bff;color:#fff;border-color:#007bff}\n"] }); }
|
|
1372
|
-
}
|
|
1373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputTimeComponent, decorators: [{
|
|
1374
|
-
type: Component,
|
|
1375
|
-
args: [{ selector: 'spx-input-time', standalone: true, imports: [
|
|
1376
|
-
NgIf,
|
|
1377
|
-
NgFor,
|
|
1378
|
-
SpxButtonComponent,
|
|
1379
|
-
SpxDropdownComponent,
|
|
1380
|
-
], providers: [
|
|
1381
|
-
ModalController,
|
|
1382
|
-
], template: `<div class="relative text-black">
|
|
1383
|
-
<div class="flex items-center justify-around gap-3">
|
|
1384
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('hours')">{{ hour }}</div>
|
|
1385
|
-
<div class="text-gray text-xl">:</div>
|
|
1386
|
-
<div class="grow rounded bg-gray-100 p-3 text-xl text-center font-bold" (click)="openDialog('minutes')">{{ minute }}</div>
|
|
1387
|
-
</div>
|
|
1388
|
-
</div>`, styles: [".custom-square.selected{background-color:#007bff;color:#fff;border-color:#007bff}\n"] }]
|
|
1389
|
-
}], propDecorators: { spxName: [{
|
|
1390
|
-
type: Input
|
|
1391
|
-
}], spxAutofocus: [{
|
|
1392
|
-
type: Input
|
|
1393
|
-
}], spxInputMode: [{
|
|
1394
|
-
type: Input
|
|
1395
|
-
}], spxPattern: [{
|
|
1396
|
-
type: Input
|
|
1397
|
-
}], spxSuggestions: [{
|
|
1398
|
-
type: Input
|
|
1399
|
-
}], spxReadonly: [{
|
|
1400
|
-
type: Input
|
|
1401
|
-
}], spxValidators: [{
|
|
1402
|
-
type: Input
|
|
1403
|
-
}], spxCapitalize: [{
|
|
1404
|
-
type: Input
|
|
1405
|
-
}], spxFocused: [{
|
|
1406
|
-
type: Input
|
|
1407
|
-
}], spxType: [{
|
|
1408
|
-
type: Input
|
|
1409
|
-
}], value: [{
|
|
1410
|
-
type: Input
|
|
1411
|
-
}], spxBlurFromChild: [{
|
|
1412
|
-
type: Output
|
|
1413
|
-
}], spxChange: [{
|
|
1414
|
-
type: Output
|
|
1415
|
-
}], spxFocus: [{
|
|
1416
|
-
type: Output
|
|
1417
|
-
}], spxWasInternalUpdate: [{
|
|
1418
|
-
type: Input
|
|
1419
|
-
}], inputRef: [{
|
|
1420
|
-
type: ViewChild,
|
|
1421
|
-
args: ['input', { static: true }]
|
|
1422
|
-
}] } });
|
|
1423
|
-
|
|
1424
1171
|
class SpxInputComponent {
|
|
1425
1172
|
constructor() {
|
|
1426
1173
|
this.spxLabel = 'label';
|
|
@@ -1505,9 +1252,6 @@ class SpxInputComponent {
|
|
|
1505
1252
|
case SpxInputTypeEnum.radio:
|
|
1506
1253
|
this.radioInput?.spxFocusIn();
|
|
1507
1254
|
break;
|
|
1508
|
-
case SpxInputTypeEnum.time:
|
|
1509
|
-
this.timeInput?.spxSetFocus();
|
|
1510
|
-
break;
|
|
1511
1255
|
}
|
|
1512
1256
|
}
|
|
1513
1257
|
writeValue(value) {
|
|
@@ -1535,7 +1279,7 @@ class SpxInputComponent {
|
|
|
1535
1279
|
useExisting: SpxInputComponent,
|
|
1536
1280
|
multi: true
|
|
1537
1281
|
}
|
|
1538
|
-
], 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
|
|
1539
1283
|
[spxFocused]="this.spxFocused"
|
|
1540
1284
|
[spxLabel]="this.spxLabel"
|
|
1541
1285
|
[spxReadonly]="this.spxReadonly"
|
|
@@ -1624,22 +1368,11 @@ class SpxInputComponent {
|
|
|
1624
1368
|
[spxValidators]="this.spxValidators"
|
|
1625
1369
|
[value]="this.value"
|
|
1626
1370
|
></spx-input-radio>
|
|
1627
|
-
<spx-input-time
|
|
1628
|
-
#timeInput
|
|
1629
|
-
*ngIf="this.spxType === 'time'"
|
|
1630
|
-
(spxChange)="this.handleChange($event)"
|
|
1631
|
-
(spxFocus)="this.handleFocus()"
|
|
1632
|
-
[spxFocused]="this.spxFocused"
|
|
1633
|
-
[spxName]="this.spxName"
|
|
1634
|
-
[spxReadonly]="this.spxReadonly"
|
|
1635
|
-
[spxValidators]="this.spxValidators"
|
|
1636
|
-
[value]="this.value"
|
|
1637
|
-
></spx-input-time>
|
|
1638
1371
|
</div>
|
|
1639
1372
|
<div validation-messages>
|
|
1640
1373
|
<ng-content></ng-content>
|
|
1641
1374
|
</div>
|
|
1642
|
-
</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"] }] }); }
|
|
1643
1376
|
}
|
|
1644
1377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: SpxInputComponent, decorators: [{
|
|
1645
1378
|
type: Component,
|
|
@@ -1657,7 +1390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
1657
1390
|
SpxInputNumberComponent,
|
|
1658
1391
|
SpxInputRadioComponent,
|
|
1659
1392
|
SpxInputTextComponent,
|
|
1660
|
-
SpxInputTimeComponent,
|
|
1661
1393
|
],
|
|
1662
1394
|
providers: [
|
|
1663
1395
|
{
|
|
@@ -1755,17 +1487,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
1755
1487
|
[spxValidators]="this.spxValidators"
|
|
1756
1488
|
[value]="this.value"
|
|
1757
1489
|
></spx-input-radio>
|
|
1758
|
-
<spx-input-time
|
|
1759
|
-
#timeInput
|
|
1760
|
-
*ngIf="this.spxType === 'time'"
|
|
1761
|
-
(spxChange)="this.handleChange($event)"
|
|
1762
|
-
(spxFocus)="this.handleFocus()"
|
|
1763
|
-
[spxFocused]="this.spxFocused"
|
|
1764
|
-
[spxName]="this.spxName"
|
|
1765
|
-
[spxReadonly]="this.spxReadonly"
|
|
1766
|
-
[spxValidators]="this.spxValidators"
|
|
1767
|
-
[value]="this.value"
|
|
1768
|
-
></spx-input-time>
|
|
1769
1490
|
</div>
|
|
1770
1491
|
<div validation-messages>
|
|
1771
1492
|
<ng-content></ng-content>
|
|
@@ -1843,9 +1564,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
1843
1564
|
}], textInput: [{
|
|
1844
1565
|
type: ViewChild,
|
|
1845
1566
|
args: [SpxInputTextComponent]
|
|
1846
|
-
}], timeInput: [{
|
|
1847
|
-
type: ViewChild,
|
|
1848
|
-
args: [SpxInputTimeComponent]
|
|
1849
1567
|
}], radioInput: [{
|
|
1850
1568
|
type: ViewChild,
|
|
1851
1569
|
args: [SpxInputRadioComponent]
|