@colijnit/corecomponents_v12 259.1.4 → 259.1.6
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/bundles/colijnit-corecomponents_v12.umd.js +262 -232
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +3 -3
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +4 -4
- package/esm2015/lib/components/base-input-time/base-input-time-directive.js +25 -0
- package/esm2015/lib/components/calendar/calendar-template.component.js +30 -31
- package/esm2015/lib/components/filter-item/filter-item.component.js +58 -15
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +9 -8
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +1 -1
- package/esm2015/lib/components/input-text/input-text.component.js +2 -1
- package/esm2015/lib/components/input-time/input-time.component.js +74 -0
- package/esm2015/lib/components/input-time/input-time.module.js +24 -0
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +8 -2
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +9 -4
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +15 -18
- package/esm2015/lib/core/enum/core-components-icon.enum.js +2 -1
- package/esm2015/lib/core/model/core-components-icon-svg.js +2 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +234 -197
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base-input-time/base-input-time-directive.d.ts +14 -0
- package/lib/components/calendar/calendar-template.component.d.ts +6 -6
- package/lib/components/filter-item/filter-item.component.d.ts +3 -1
- package/lib/components/input-time/input-time.component.d.ts +8 -0
- package/lib/components/input-time/input-time.module.d.ts +2 -0
- package/lib/components/list-of-values/list-of-values-popup.component.d.ts +4 -1
- package/lib/components/list-of-values/list-of-values.component.d.ts +4 -1
- package/lib/components/list-of-values/style/_layout.scss +1 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +7 -9
- package/lib/core/enum/core-components-icon.enum.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -17,7 +17,6 @@ import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
|
|
|
17
17
|
import * as i1 from '@angular/cdk/overlay';
|
|
18
18
|
import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
|
|
19
19
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
20
|
-
import * as XLSX from 'xlsx';
|
|
21
20
|
import { UserRightType } from '@colijnit/ioneconnector/build/enum/user-right-type.enum';
|
|
22
21
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
23
22
|
import { ArrayUtils as ArrayUtils$1 } from '@colijnit/ioneconnector/build/utils/array-utils';
|
|
@@ -1180,6 +1179,7 @@ var CoreComponentsIcon;
|
|
|
1180
1179
|
CoreComponentsIcon["Orderpicking"] = "orderpicking";
|
|
1181
1180
|
CoreComponentsIcon["OutgoingStorage"] = "outgoing_storage";
|
|
1182
1181
|
CoreComponentsIcon["OverBooking"] = "over_booking";
|
|
1182
|
+
CoreComponentsIcon["ParagraphSolid"] = "paragraph_solid";
|
|
1183
1183
|
CoreComponentsIcon["PauseCircle"] = "pause_circle";
|
|
1184
1184
|
CoreComponentsIcon["PencilRoundOpen"] = "pencil_round_open";
|
|
1185
1185
|
CoreComponentsIcon["PenToSquareSolid"] = "pen_to_square_solid";
|
|
@@ -1483,6 +1483,7 @@ const CoreComponentsIconSvg = {
|
|
|
1483
1483
|
"orderpicking": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M16.43,40.17c-.12-.16-2.92-4-1.53-8.21,1.33-4.08,6.25-9.69,6.46-9.84l.72-.55,2.28,2.83-1.45,1.17-1.13-1.39c-1.34,1.14-4.23,5.68-5.1,8.36C15.59,35.88,17.9,39,17.93,39l-1.5,1.13Z\" fill=\"#484f60\"/><path d=\"M27.86,41l-1.74-.66A17.68,17.68,0,0,0,27,32.56,63.51,63.51,0,0,0,25.5,25.1l-1.29-.38,1.27-4.35,1.05,2.26a81.55,81.55,0,0,1,2.28,9.64A19,19,0,0,1,27.86,41Z\" fill=\"#484f60\"/><path d=\"M34,39.94l-1.67-.83s1.9-3.88,1-6.39a36.83,36.83,0,0,0-4.84-8.51l-1.37,1.42-1.34-1.29,2.71-2.82.67.69c.2.2,4.84,6.82,5.93,9.89,1.16,3.25-1,7.65-1.1,7.84Z\" fill=\"#484f60\"/><rect x=\"22.91\" y=\"24.41\" width=\"4.48\" height=\"1.17\" fill=\"#484f60\"/><polygon points=\"23.52 9 23.52 20.93 23.93 21.44 25.28 16.78 26.7 19.85 26.7 9 23.52 9\" fill=\"#484f60\"/></svg>",
|
|
1484
1484
|
"outgoing_storage": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.36\" width=\"2.93\" height=\"25.61\" fill=\"#484f60\" opacity=\"0.5\"/><rect x=\"14.39\" y=\"30.65\" width=\"11.22\" height=\"1.46\" fill=\"#484f60\" opacity=\"0.5\"/><rect x=\"14.39\" y=\"21.87\" width=\"9.11\" height=\"1.46\" fill=\"#484f60\" opacity=\"0.5\"/><rect x=\"27.07\" y=\"29.46\" width=\"2.93\" height=\"8.51\" fill=\"#484f60\" opacity=\"0.5\"/><rect x=\"27.07\" y=\"12.36\" width=\"2.93\" height=\"8.51\" fill=\"#484f60\" opacity=\"0.5\"/><rect x=\"14.39\" y=\"13.09\" width=\"11.22\" height=\"1.46\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"40 25.16 32.62 17.79 32.62 22.38 25 22.38 25 27.96 32.62 27.96 32.62 32.55 40 25.16\" fill=\"#484f60\"/></svg>",
|
|
1485
1485
|
"over_booking": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"31.66 31 27.76 27.1 27.76 29.73 25.86 29.74 23.34 29.73 23.34 32.27 24.59 32.27 27.76 32.26 27.76 34.9 31.66 31\" fill=\"#484f60\"/><rect x=\"12.27\" y=\"30.23\" width=\"2.39\" height=\"4.77\" fill=\"#484f60\" opacity=\"0.75\"/><rect x=\"15.34\" y=\"30.23\" width=\"2.39\" height=\"4.77\" fill=\"#484f60\" opacity=\"0.75\"/><polygon points=\"21.34 27.73 22.5 27.73 22.5 23.41 15 20 7.5 23.41 7.5 35 10.91 35 10.91 28.86 19.09 28.86 19.09 35 22.5 35 22.5 34.27 21.34 34.27 21.34 27.73\" fill=\"#484f60\" opacity=\"0.75\"/><rect x=\"38.86\" y=\"28.64\" width=\"3.18\" height=\"6.36\" fill=\"#484f60\"/><polygon points=\"32.5 19.54 32.5 29.01 34.49 31 32.5 32.99 32.5 35 37.05 35 37.05 26.82 42.5 26.82 42.5 15 32.5 19.54\" fill=\"#484f60\"/></svg>",
|
|
1486
|
+
"paragraph_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M192 32l64 0 160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0 0 352c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-352-32 0 0 352c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96-32 0c-88.4 0-160-71.6-160-160s71.6-160 160-160z\"/></svg>",
|
|
1486
1487
|
"pause_circle": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><g><g><path fill=\"#484F5F\" d=\"M23.5,18.5v14h-3.1v-14H23.5z M30.6,18.5v14h-3.1v-14H30.6z\"/></g><path fill=\"#484F5F\" d=\"M25.5,39.5c-7.7,0-14-6.3-14-14s6.3-14,14-14s14,6.3,14,14S33.2,39.5,25.5,39.5 M25.5,40.5c8.3,0,15-6.7,15-15c0-8.3-6.7-15-15-15c-8.3,0-15,6.7-15,15C10.5,33.8,17.2,40.5,25.5,40.5L25.5,40.5z\"/></g></svg>",
|
|
1487
1488
|
"pencil_round_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><rect x=\"290.8\" y=\"419.4\" width=\"10.4\" height=\"0.49\" transform=\"translate(-482.6 -62.8) rotate(-45)\" fill=\"#fff\"/><rect x=\"292.6\" y=\"420\" width=\"10.4\" height=\"3.1\" transform=\"translate(-483.4 -60.6) rotate(-45)\" fill=\"#fff\"/><path d=\"M305.8,414.7l-2.1-2.1a0.8,0.8,0,0,0-1.1,0l-0.8.8,3.1,3.1,0.8-.8A0.8,0.8,0,0,0,305.8,414.7Z\" transform=\"translate(-272.5 -395)\" fill=\"#fff\"/><rect x=\"301.6\" y=\"414\" width=\"1.3\" height=\"4.44\" transform=\"translate(-478.3 -59.3) rotate(-45)\" fill=\"#fff\"/><polygon points=\"18.8 29.3 17.5 33.1 17.9 33.5 21.7 32.2 18.8 29.3\" fill=\"#fff\"/><path d=\"M298,436a15.5,15.5,0,1,1,15.5-15.5A15.5,15.5,0,0,1,298,436Zm0-30a14.5,14.5,0,1,0,14.5,14.5A14.5,14.5,0,0,0,298,406Z\" transform=\"translate(-272.5 -395)\" fill=\"#fff\"/></svg>",
|
|
1488
1489
|
"pen_to_square_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z\"/></svg>",
|
|
@@ -5492,14 +5493,14 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
|
|
|
5492
5493
|
this.setModelAsString();
|
|
5493
5494
|
}
|
|
5494
5495
|
setModelAsString() {
|
|
5495
|
-
if (this.model) {
|
|
5496
|
-
const
|
|
5497
|
-
const
|
|
5498
|
-
const
|
|
5499
|
-
this.modelAsString = `${
|
|
5496
|
+
if (this.model instanceof Date && !isNaN(this.model.getTime())) {
|
|
5497
|
+
const y = this.model.getFullYear();
|
|
5498
|
+
const m = String(this.model.getMonth() + 1).padStart(2, '0');
|
|
5499
|
+
const d = String(this.model.getDate()).padStart(2, '0');
|
|
5500
|
+
this.modelAsString = `${y}-${m}-${d}`;
|
|
5500
5501
|
}
|
|
5501
5502
|
else {
|
|
5502
|
-
this.modelAsString = null;
|
|
5503
|
+
this.modelAsString = null; // or leave as-is, but don't try to format a non-Date
|
|
5503
5504
|
}
|
|
5504
5505
|
}
|
|
5505
5506
|
handleClearIconClicked() {
|
|
@@ -5525,7 +5526,8 @@ InputDatePickerComponent.decorators = [
|
|
|
5525
5526
|
(modelChange)="modelAsString = $event"
|
|
5526
5527
|
(clearIconClick)="handleClearIconClicked()"
|
|
5527
5528
|
[emptyPlace]="true"
|
|
5528
|
-
(
|
|
5529
|
+
(keydown.enter)="finalizeDate()"
|
|
5530
|
+
(keydown.tab)="finalizeDate()"
|
|
5529
5531
|
(blur)="finalizeDate()"
|
|
5530
5532
|
></co-input-text>
|
|
5531
5533
|
`,
|
|
@@ -5884,6 +5886,7 @@ class InputTextComponent extends BaseInputComponent {
|
|
|
5884
5886
|
event.preventDefault();
|
|
5885
5887
|
event.stopPropagation();
|
|
5886
5888
|
if (this.type === 'date') {
|
|
5889
|
+
console.log(this.model);
|
|
5887
5890
|
this.isFocusedOnDate = false;
|
|
5888
5891
|
}
|
|
5889
5892
|
this.isFocused.emit(false);
|
|
@@ -6440,43 +6443,42 @@ class CalendarTemplateComponent {
|
|
|
6440
6443
|
this.daysToHighlight = [];
|
|
6441
6444
|
this._initialSelectedDate = null;
|
|
6442
6445
|
}
|
|
6443
|
-
set selectedDate(
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
+
set selectedDate(value) {
|
|
6447
|
+
const d = this._coerceToDate(value);
|
|
6448
|
+
this._selectedDate = d ? new Date(d.getFullYear(), d.getMonth(), d.getDate()) : null;
|
|
6446
6449
|
if (this._initialSelectedDate === null) {
|
|
6447
6450
|
this._initialSelectedDate = this._selectedDate;
|
|
6448
6451
|
}
|
|
6449
|
-
if (this.secondSelectedDate &&
|
|
6452
|
+
if (this.secondSelectedDate && d && this.secondSelectedDate.getTime() < this.selectedDate.getTime() && this.temporarySelectedSecondaryDate) {
|
|
6450
6453
|
this.daysToHighlight = [];
|
|
6451
6454
|
}
|
|
6452
6455
|
}
|
|
6453
6456
|
get selectedDate() {
|
|
6454
6457
|
return this._selectedDate;
|
|
6455
6458
|
}
|
|
6456
|
-
set secondSelectedDate(
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
+
set secondSelectedDate(value) {
|
|
6460
|
+
const d = this._coerceToDate(value);
|
|
6461
|
+
this._secondSelectedDate = d ? new Date(d.getFullYear(), d.getMonth(), d.getDate()) : null;
|
|
6462
|
+
if (!this.selectedDate)
|
|
6459
6463
|
this.daysToHighlight = [];
|
|
6460
|
-
|
|
6461
|
-
else {
|
|
6464
|
+
else
|
|
6462
6465
|
this._fillDatesBetweenSelected();
|
|
6463
|
-
}
|
|
6464
|
-
}
|
|
6465
|
-
get secondSelectedDate() {
|
|
6466
|
-
return this._secondSelectedDate;
|
|
6467
6466
|
}
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6467
|
+
get secondSelectedDate() { return this._secondSelectedDate; }
|
|
6468
|
+
set secondHoveringDate(value) {
|
|
6469
|
+
const d = this._coerceToDate(value);
|
|
6470
|
+
this._secondHoveringDate = d || null;
|
|
6471
|
+
if (d)
|
|
6471
6472
|
this.temporarySelectedSecondaryDate = null;
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
}
|
|
6476
|
-
this.handleMouseOverDay(date);
|
|
6473
|
+
if (this.selectedDate && !this.secondSelectedDate && d)
|
|
6474
|
+
this.temporarySelectedSecondaryDate = new Date(d);
|
|
6475
|
+
this.handleMouseOverDay(d);
|
|
6477
6476
|
}
|
|
6478
|
-
|
|
6479
|
-
|
|
6477
|
+
_coerceToDate(v) {
|
|
6478
|
+
if (v == null)
|
|
6479
|
+
return null;
|
|
6480
|
+
const d = v instanceof Date ? v : new Date(v);
|
|
6481
|
+
return isNaN(d.getTime()) ? null : d;
|
|
6480
6482
|
}
|
|
6481
6483
|
showClass() {
|
|
6482
6484
|
return true;
|
|
@@ -6569,10 +6571,10 @@ class CalendarTemplateComponent {
|
|
|
6569
6571
|
this.yearSelectionYears = years.reverse();
|
|
6570
6572
|
}
|
|
6571
6573
|
openMonthSelection() {
|
|
6572
|
-
this.showCalendarBody =
|
|
6573
|
-
this.monthSelection =
|
|
6574
|
-
this.yearSelection =
|
|
6575
|
-
this.showMonthSelection =
|
|
6574
|
+
this.showCalendarBody = !this.showCalendarBody;
|
|
6575
|
+
this.monthSelection = !this.monthSelection;
|
|
6576
|
+
this.yearSelection = !this.yearSelection;
|
|
6577
|
+
this.showMonthSelection = !this.showMonthSelection;
|
|
6576
6578
|
}
|
|
6577
6579
|
openYearSelection() {
|
|
6578
6580
|
this.showMonthSelection = false;
|
|
@@ -6730,15 +6732,15 @@ CalendarTemplateComponent.decorators = [
|
|
|
6730
6732
|
<span *ngIf="!selectedDate" class="no-date-selected" [textContent]="'Selecteer datum'"></span>
|
|
6731
6733
|
</div>
|
|
6732
6734
|
<div class="calendar-header" *ngIf="monthSelection || yearSelection">
|
|
6733
|
-
<co-icon class="calendar-change-month-button" [icon]="icons.ArrowPointLeft" (click)="prevMonth()"></co-icon>
|
|
6735
|
+
<co-icon class="calendar-change-month-button" [icon]="icons.ArrowPointLeft" (click)="!monthSelection ? prevYear() : prevMonth()"></co-icon>
|
|
6734
6736
|
|
|
6735
6737
|
<div class="calendar-header-title-wrapper">
|
|
6736
6738
|
<span class="calendar-header-title" [textContent]="monthSelection ? monthHeader : yearHeader"
|
|
6737
|
-
(click)="
|
|
6739
|
+
(click)="openMonthSelection()"
|
|
6738
6740
|
></span>
|
|
6739
6741
|
</div>
|
|
6740
6742
|
|
|
6741
|
-
<co-icon class="calendar-change-month-button" [icon]="icons.ArrowPointRight" (click)="nextMonth()"></co-icon>
|
|
6743
|
+
<co-icon class="calendar-change-month-button" [icon]="icons.ArrowPointRight" (click)="!monthSelection ? nextYear() : nextMonth()"></co-icon>
|
|
6742
6744
|
</div>
|
|
6743
6745
|
|
|
6744
6746
|
<div class="selection-grid month" *ngIf="showMonthSelection">
|
|
@@ -6855,6 +6857,116 @@ InputDatePickerModule.decorators = [
|
|
|
6855
6857
|
},] }
|
|
6856
6858
|
];
|
|
6857
6859
|
|
|
6860
|
+
class BaseInputTimeDirective extends BaseInputComponent {
|
|
6861
|
+
constructor() {
|
|
6862
|
+
super(...arguments);
|
|
6863
|
+
this.rightIcon = CoreComponentsIcon.Clock;
|
|
6864
|
+
this.locale = 'nl-NL';
|
|
6865
|
+
this.leftIconClick = new EventEmitter();
|
|
6866
|
+
this.closeAfterDateSelection = true;
|
|
6867
|
+
}
|
|
6868
|
+
}
|
|
6869
|
+
BaseInputTimeDirective.decorators = [
|
|
6870
|
+
{ type: Directive }
|
|
6871
|
+
];
|
|
6872
|
+
BaseInputTimeDirective.propDecorators = {
|
|
6873
|
+
parentForOverlay: [{ type: ViewChild, args: ["parentForOverlay", { read: ElementRef },] }],
|
|
6874
|
+
locale: [{ type: Input }],
|
|
6875
|
+
placeholder: [{ type: Input }],
|
|
6876
|
+
leftIcon: [{ type: Input }],
|
|
6877
|
+
leftIconData: [{ type: Input }],
|
|
6878
|
+
leftIconClick: [{ type: Output }],
|
|
6879
|
+
closeAfterDateSelection: [{ type: Input }]
|
|
6880
|
+
};
|
|
6881
|
+
|
|
6882
|
+
class InputTimeComponent extends BaseInputTimeDirective {
|
|
6883
|
+
constructor() {
|
|
6884
|
+
super(...arguments);
|
|
6885
|
+
this.timeAsString = '';
|
|
6886
|
+
}
|
|
6887
|
+
modelSet() {
|
|
6888
|
+
this.setTimeAsString();
|
|
6889
|
+
}
|
|
6890
|
+
setTimeAsString() {
|
|
6891
|
+
if (this.model !== undefined && this.model !== null) {
|
|
6892
|
+
const totalMinutes = Math.floor(this.model / (1000 * 60)); // Convert milliseconds to minutes
|
|
6893
|
+
const days = Math.floor(totalMinutes / (24 * 60));
|
|
6894
|
+
const hours = Math.floor((totalMinutes % (24 * 60)) / 60);
|
|
6895
|
+
const minutes = totalMinutes % 60;
|
|
6896
|
+
this.timeAsString = `${days}d ${hours}h ${minutes}m`;
|
|
6897
|
+
}
|
|
6898
|
+
else {
|
|
6899
|
+
this.timeAsString = '';
|
|
6900
|
+
}
|
|
6901
|
+
}
|
|
6902
|
+
handleTimeChange(value) {
|
|
6903
|
+
if (value) {
|
|
6904
|
+
const parts = value.split(' ');
|
|
6905
|
+
let totalMinutes = 0;
|
|
6906
|
+
parts.forEach(part => {
|
|
6907
|
+
if (part.endsWith('d')) {
|
|
6908
|
+
totalMinutes += parseInt(part.substring(0, part.length - 1)) * 24 * 60;
|
|
6909
|
+
}
|
|
6910
|
+
else if (part.endsWith('h')) {
|
|
6911
|
+
totalMinutes += parseInt(part.substring(0, part.length - 1)) * 60;
|
|
6912
|
+
}
|
|
6913
|
+
else if (part.endsWith('m')) {
|
|
6914
|
+
totalMinutes += parseInt(part.substring(0, part.length - 1));
|
|
6915
|
+
}
|
|
6916
|
+
});
|
|
6917
|
+
this.setModel(totalMinutes * 60 * 1000); // Convert minutes to milliseconds
|
|
6918
|
+
}
|
|
6919
|
+
}
|
|
6920
|
+
handleClearIconClicked() {
|
|
6921
|
+
this.setModel(undefined);
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
InputTimeComponent.decorators = [
|
|
6925
|
+
{ type: Component, args: [{
|
|
6926
|
+
selector: 'co-input-time',
|
|
6927
|
+
template: `
|
|
6928
|
+
<co-input-text
|
|
6929
|
+
[hidden]="hidden"
|
|
6930
|
+
[readonly]="readonly"
|
|
6931
|
+
[(model)]="timeAsString"
|
|
6932
|
+
[rightIcon]="rightIcon"
|
|
6933
|
+
[leftIcon]="leftIcon"
|
|
6934
|
+
[leftIconData]="leftIconData"
|
|
6935
|
+
[placeholder]="placeholder"
|
|
6936
|
+
(blur)="handleTimeChange(timeAsString)"
|
|
6937
|
+
(clearIconClick)="handleClearIconClicked()"
|
|
6938
|
+
></co-input-text>
|
|
6939
|
+
`,
|
|
6940
|
+
providers: [
|
|
6941
|
+
OverlayService, {
|
|
6942
|
+
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: forwardRef(() => InputTimeComponent)
|
|
6943
|
+
}, {
|
|
6944
|
+
provide: BaseInputTimeDirective,
|
|
6945
|
+
useExisting: InputTimeComponent
|
|
6946
|
+
}
|
|
6947
|
+
],
|
|
6948
|
+
encapsulation: ViewEncapsulation.None
|
|
6949
|
+
},] }
|
|
6950
|
+
];
|
|
6951
|
+
|
|
6952
|
+
class InputTimeModule {
|
|
6953
|
+
}
|
|
6954
|
+
InputTimeModule.decorators = [
|
|
6955
|
+
{ type: NgModule, args: [{
|
|
6956
|
+
imports: [
|
|
6957
|
+
CommonModule,
|
|
6958
|
+
InputTextModule,
|
|
6959
|
+
ClickoutsideModule,
|
|
6960
|
+
OverlayModule
|
|
6961
|
+
],
|
|
6962
|
+
schemas: [
|
|
6963
|
+
NO_ERRORS_SCHEMA
|
|
6964
|
+
],
|
|
6965
|
+
declarations: [InputTimeComponent],
|
|
6966
|
+
exports: [InputTimeComponent]
|
|
6967
|
+
},] }
|
|
6968
|
+
];
|
|
6969
|
+
|
|
6858
6970
|
class DoubleCalendarComponent extends BaseInputDatePickerDirective {
|
|
6859
6971
|
constructor() {
|
|
6860
6972
|
super(...arguments);
|
|
@@ -9381,138 +9493,12 @@ BaseSimpleGridComponent.propDecorators = {
|
|
|
9381
9493
|
handleMouseUp: [{ type: HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
9382
9494
|
};
|
|
9383
9495
|
|
|
9384
|
-
class ExcelExportService {
|
|
9385
|
-
/**
|
|
9386
|
-
* Export data to Excel file
|
|
9387
|
-
* @param data - Array of objects to export
|
|
9388
|
-
* @param columns - Column configuration (optional)
|
|
9389
|
-
* @param fileName - Name of the exported file
|
|
9390
|
-
* @param sheetName - Name of the Excel sheet
|
|
9391
|
-
*/
|
|
9392
|
-
exportToExcel(data, columns, fileName = 'export', sheetName = 'Sheet1') {
|
|
9393
|
-
// If columns are specified, transform data to match column structure
|
|
9394
|
-
let exportData = data;
|
|
9395
|
-
if (columns && columns.length > 0) {
|
|
9396
|
-
exportData = data.map(item => {
|
|
9397
|
-
const newItem = {};
|
|
9398
|
-
columns.forEach(col => {
|
|
9399
|
-
newItem[col.header] = this.getFlatValue(item, col.key);
|
|
9400
|
-
});
|
|
9401
|
-
return newItem;
|
|
9402
|
-
});
|
|
9403
|
-
}
|
|
9404
|
-
// Create workbook and worksheet
|
|
9405
|
-
const wb = XLSX.utils.book_new();
|
|
9406
|
-
const ws = XLSX.utils.json_to_sheet(exportData);
|
|
9407
|
-
// Set column widths if specified
|
|
9408
|
-
if (columns && columns.some(col => col.width)) {
|
|
9409
|
-
const colWidths = columns.map(col => ({ wch: col.width || 20 }));
|
|
9410
|
-
ws['!cols'] = colWidths;
|
|
9411
|
-
}
|
|
9412
|
-
// Add worksheet to workbook
|
|
9413
|
-
XLSX.utils.book_append_sheet(wb, ws, sheetName);
|
|
9414
|
-
// Save file
|
|
9415
|
-
XLSX.writeFile(wb, `${fileName}.xlsx`);
|
|
9416
|
-
}
|
|
9417
|
-
/**
|
|
9418
|
-
* Export multiple sheets to one Excel file
|
|
9419
|
-
* @param sheets - Array of sheet data
|
|
9420
|
-
* @param fileName - Name of the exported file
|
|
9421
|
-
*/
|
|
9422
|
-
exportMultipleSheets(sheets, fileName = 'multi-sheet-export') {
|
|
9423
|
-
const wb = XLSX.utils.book_new();
|
|
9424
|
-
sheets.forEach(sheet => {
|
|
9425
|
-
let exportData = sheet.data;
|
|
9426
|
-
if (sheet.columns && sheet.columns.length > 0) {
|
|
9427
|
-
exportData = sheet.data.map(item => {
|
|
9428
|
-
const newItem = {};
|
|
9429
|
-
sheet.columns.forEach(col => {
|
|
9430
|
-
newItem[col.header] = this.getNestedValue(item, col.key);
|
|
9431
|
-
});
|
|
9432
|
-
return newItem;
|
|
9433
|
-
});
|
|
9434
|
-
}
|
|
9435
|
-
const ws = XLSX.utils.json_to_sheet(exportData);
|
|
9436
|
-
if (sheet.columns && sheet.columns.some(col => col.width)) {
|
|
9437
|
-
const colWidths = sheet.columns.map(col => ({ wch: col.width || 20 }));
|
|
9438
|
-
ws['!cols'] = colWidths;
|
|
9439
|
-
}
|
|
9440
|
-
XLSX.utils.book_append_sheet(wb, ws, sheet.sheetName);
|
|
9441
|
-
});
|
|
9442
|
-
XLSX.writeFile(wb, `${fileName}.xlsx`);
|
|
9443
|
-
}
|
|
9444
|
-
/**
|
|
9445
|
-
* Export HTML table to Excel
|
|
9446
|
-
* @param tableId - ID of the HTML table element
|
|
9447
|
-
* @param fileName - Name of the exported file
|
|
9448
|
-
* @param sheetName - Name of the Excel sheet
|
|
9449
|
-
*/
|
|
9450
|
-
exportTableToExcel(tableId, fileName = 'table-export', sheetName = 'Sheet1') {
|
|
9451
|
-
const table = document.getElementById(tableId);
|
|
9452
|
-
if (!table) {
|
|
9453
|
-
console.error(`Table with ID '${tableId}' not found`);
|
|
9454
|
-
return;
|
|
9455
|
-
}
|
|
9456
|
-
const wb = XLSX.utils.book_new();
|
|
9457
|
-
const ws = XLSX.utils.table_to_sheet(table);
|
|
9458
|
-
XLSX.utils.book_append_sheet(wb, ws, sheetName);
|
|
9459
|
-
XLSX.writeFile(wb, `${fileName}.xlsx`);
|
|
9460
|
-
}
|
|
9461
|
-
/**
|
|
9462
|
-
* Get nested object value using dot notation
|
|
9463
|
-
* @param obj - Object to search in
|
|
9464
|
-
* @param path - Dot notation path (e.g., 'user.address.city')
|
|
9465
|
-
*/
|
|
9466
|
-
getNestedValue(obj, path) {
|
|
9467
|
-
return path.split('.').reduce((current, key) => {
|
|
9468
|
-
return current && current[key] !== undefined ? current[key] : '';
|
|
9469
|
-
}, obj);
|
|
9470
|
-
}
|
|
9471
|
-
getFlatValue(obj, key) {
|
|
9472
|
-
return obj && obj[key] !== undefined ? obj[key] : '';
|
|
9473
|
-
}
|
|
9474
|
-
/**
|
|
9475
|
-
* Format date for Excel export
|
|
9476
|
-
* @param date - Date to format
|
|
9477
|
-
* @param format - Format string (default: 'MM/DD/YYYY')
|
|
9478
|
-
*/
|
|
9479
|
-
formatDateForExport(date, format = 'MM/DD/YYYY') {
|
|
9480
|
-
if (!date) {
|
|
9481
|
-
return '';
|
|
9482
|
-
}
|
|
9483
|
-
const d = new Date(date);
|
|
9484
|
-
if (isNaN(d.getTime())) {
|
|
9485
|
-
return '';
|
|
9486
|
-
}
|
|
9487
|
-
const month = (d.getMonth() + 1).toString().padStart(2, '0');
|
|
9488
|
-
const day = d.getDate().toString().padStart(2, '0');
|
|
9489
|
-
const year = d.getFullYear();
|
|
9490
|
-
switch (format) {
|
|
9491
|
-
case 'MM/DD/YYYY':
|
|
9492
|
-
return `${month}/${day}/${year}`;
|
|
9493
|
-
case 'DD/MM/YYYY':
|
|
9494
|
-
return `${day}/${month}/${year}`;
|
|
9495
|
-
case 'YYYY-MM-DD':
|
|
9496
|
-
return `${year}-${month}-${day}`;
|
|
9497
|
-
default:
|
|
9498
|
-
return d.toLocaleDateString();
|
|
9499
|
-
}
|
|
9500
|
-
}
|
|
9501
|
-
}
|
|
9502
|
-
ExcelExportService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ExcelExportService_Factory() { return new ExcelExportService(); }, token: ExcelExportService, providedIn: "root" });
|
|
9503
|
-
ExcelExportService.decorators = [
|
|
9504
|
-
{ type: Injectable, args: [{
|
|
9505
|
-
providedIn: 'root'
|
|
9506
|
-
},] }
|
|
9507
|
-
];
|
|
9508
|
-
|
|
9509
9496
|
class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
9510
|
-
constructor(icons, _changeDetection, _formMaster
|
|
9497
|
+
constructor(icons, _changeDetection, _formMaster) {
|
|
9511
9498
|
super();
|
|
9512
9499
|
this.icons = icons;
|
|
9513
9500
|
this._changeDetection = _changeDetection;
|
|
9514
9501
|
this._formMaster = _formMaster;
|
|
9515
|
-
this.excelExportService = excelExportService;
|
|
9516
9502
|
this.defaultTextAlign = ColumnAlign.Left;
|
|
9517
9503
|
this.showAdd = false;
|
|
9518
9504
|
this.showDelete = false;
|
|
@@ -9881,6 +9867,18 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
9881
9867
|
// 'Sheet1'
|
|
9882
9868
|
// );
|
|
9883
9869
|
}
|
|
9870
|
+
goToPreviousPage() {
|
|
9871
|
+
this.currentPage -= 1;
|
|
9872
|
+
}
|
|
9873
|
+
goToNextPage() {
|
|
9874
|
+
this.currentPage += 1;
|
|
9875
|
+
}
|
|
9876
|
+
setCurrentPage(page) {
|
|
9877
|
+
this.currentPage = page;
|
|
9878
|
+
}
|
|
9879
|
+
get isNewRow() {
|
|
9880
|
+
return this._newRow;
|
|
9881
|
+
}
|
|
9884
9882
|
_filterSelectedOrReturnAll(items) {
|
|
9885
9883
|
const hasSelectedTrue = items.some(item => item.selected === true);
|
|
9886
9884
|
return hasSelectedTrue ? items.filter(item => item.selected === true) : items;
|
|
@@ -10022,15 +10020,6 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
10022
10020
|
}
|
|
10023
10021
|
this._detectChanges();
|
|
10024
10022
|
}
|
|
10025
|
-
goToPreviousPage() {
|
|
10026
|
-
this.currentPage -= 1;
|
|
10027
|
-
}
|
|
10028
|
-
goToNextPage() {
|
|
10029
|
-
this.currentPage += 1;
|
|
10030
|
-
}
|
|
10031
|
-
setCurrentPage(page) {
|
|
10032
|
-
this.currentPage = page;
|
|
10033
|
-
}
|
|
10034
10023
|
_detectChanges() {
|
|
10035
10024
|
this._changeDetection.detectChanges();
|
|
10036
10025
|
}
|
|
@@ -10042,9 +10031,6 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
10042
10031
|
this.editing = false;
|
|
10043
10032
|
this.rowToEdit = undefined;
|
|
10044
10033
|
}
|
|
10045
|
-
get isNewRow() {
|
|
10046
|
-
return this._newRow;
|
|
10047
|
-
}
|
|
10048
10034
|
}
|
|
10049
10035
|
SimpleGridComponent.decorators = [
|
|
10050
10036
|
{ type: Component, args: [{
|
|
@@ -10229,8 +10215,7 @@ SimpleGridComponent.decorators = [
|
|
|
10229
10215
|
SimpleGridComponent.ctorParameters = () => [
|
|
10230
10216
|
{ type: IconCacheService },
|
|
10231
10217
|
{ type: ChangeDetectorRef },
|
|
10232
|
-
{ type: FormMasterService }
|
|
10233
|
-
{ type: ExcelExportService }
|
|
10218
|
+
{ type: FormMasterService }
|
|
10234
10219
|
];
|
|
10235
10220
|
SimpleGridComponent.propDecorators = {
|
|
10236
10221
|
headerCells: [{ type: ViewChildren, args: ['headerCell',] }],
|
|
@@ -11098,7 +11083,8 @@ ViewModeButtonsModule.decorators = [
|
|
|
11098
11083
|
];
|
|
11099
11084
|
|
|
11100
11085
|
class ListOfValuesPopupComponent {
|
|
11101
|
-
constructor(_elementRef) {
|
|
11086
|
+
constructor(iconCacheService, _elementRef) {
|
|
11087
|
+
this.iconCacheService = iconCacheService;
|
|
11102
11088
|
this._elementRef = _elementRef;
|
|
11103
11089
|
this.multiselect = false;
|
|
11104
11090
|
this.displayField = 'description';
|
|
@@ -11310,6 +11296,8 @@ ListOfValuesPopupComponent.decorators = [
|
|
|
11310
11296
|
(click)="selectViewModel(viewModel, !multiselect)"
|
|
11311
11297
|
role="option">
|
|
11312
11298
|
<ng-container *ngIf="!multiselect">
|
|
11299
|
+
<co-icon *ngIf="viewModel.model[optionIcon]" class="input-text-left-icon" [iconData]="iconCacheService.getIcon(viewModel.model[optionIcon])">
|
|
11300
|
+
</co-icon>
|
|
11313
11301
|
<span class="lov-options-text" [textContent]="viewModel.model[displayField]"></span>
|
|
11314
11302
|
</ng-container>
|
|
11315
11303
|
<ng-container *ngIf="multiselect">
|
|
@@ -11325,6 +11313,7 @@ ListOfValuesPopupComponent.decorators = [
|
|
|
11325
11313
|
},] }
|
|
11326
11314
|
];
|
|
11327
11315
|
ListOfValuesPopupComponent.ctorParameters = () => [
|
|
11316
|
+
{ type: IconCacheService },
|
|
11328
11317
|
{ type: ElementRef }
|
|
11329
11318
|
];
|
|
11330
11319
|
ListOfValuesPopupComponent.propDecorators = {
|
|
@@ -11338,6 +11327,7 @@ ListOfValuesPopupComponent.propDecorators = {
|
|
|
11338
11327
|
customCssClass: [{ type: Input }],
|
|
11339
11328
|
searchDisabled: [{ type: Input }],
|
|
11340
11329
|
parentForOverlay: [{ type: Input }],
|
|
11330
|
+
optionIcon: [{ type: Input }],
|
|
11341
11331
|
collection: [{ type: Input }],
|
|
11342
11332
|
modelChange: [{ type: Output }],
|
|
11343
11333
|
closePopup: [{ type: Output }],
|
|
@@ -11346,9 +11336,10 @@ ListOfValuesPopupComponent.propDecorators = {
|
|
|
11346
11336
|
};
|
|
11347
11337
|
|
|
11348
11338
|
class ListOfValuesComponent extends BaseInputComponent {
|
|
11349
|
-
constructor(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
|
|
11339
|
+
constructor(formComponent, iconCacheService, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
|
|
11350
11340
|
super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
|
|
11351
11341
|
this.formComponent = formComponent;
|
|
11342
|
+
this.iconCacheService = iconCacheService;
|
|
11352
11343
|
this.changeDetector = changeDetector;
|
|
11353
11344
|
this.overlayService = overlayService;
|
|
11354
11345
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
@@ -11486,7 +11477,8 @@ class ListOfValuesComponent extends BaseInputComponent {
|
|
|
11486
11477
|
displayField: this.displayField,
|
|
11487
11478
|
multiselect: this.multiselect,
|
|
11488
11479
|
model: this.model,
|
|
11489
|
-
collection: this.collection
|
|
11480
|
+
collection: this.collection,
|
|
11481
|
+
optionIcon: this.optionIcon,
|
|
11490
11482
|
}, {
|
|
11491
11483
|
modelChange: (value) => this.optionChosen(value),
|
|
11492
11484
|
closePopup: () => this.closePopup(),
|
|
@@ -11583,7 +11575,7 @@ ListOfValuesComponent.decorators = [
|
|
|
11583
11575
|
[disabled]="disabled"
|
|
11584
11576
|
[required]="required"
|
|
11585
11577
|
[noClickFocus]="false"
|
|
11586
|
-
[leftIconData]="leftIconData"
|
|
11578
|
+
[leftIconData]=" model && model[optionIcon] ? iconCacheService.getIcon(model[optionIcon]) : leftIconData"
|
|
11587
11579
|
[rightIcon]="isSelectOpen ? icons.ChevronUpRegular : icons.ChevronDownRegular"
|
|
11588
11580
|
[showClearButton]="true"
|
|
11589
11581
|
[useContent]="multiselect"
|
|
@@ -11629,6 +11621,7 @@ ListOfValuesComponent.decorators = [
|
|
|
11629
11621
|
];
|
|
11630
11622
|
ListOfValuesComponent.ctorParameters = () => [
|
|
11631
11623
|
{ type: FormComponent, decorators: [{ type: Optional }] },
|
|
11624
|
+
{ type: IconCacheService },
|
|
11632
11625
|
{ type: ChangeDetectorRef },
|
|
11633
11626
|
{ type: OverlayService },
|
|
11634
11627
|
{ type: ComponentFactoryResolver },
|
|
@@ -11642,6 +11635,7 @@ ListOfValuesComponent.propDecorators = {
|
|
|
11642
11635
|
multiselect: [{ type: HostBinding, args: ['class.custom-height',] }, { type: HostBinding, args: ['class.multi-select',] }, { type: Input }],
|
|
11643
11636
|
largeCollection: [{ type: Input }],
|
|
11644
11637
|
displayField: [{ type: Input }],
|
|
11638
|
+
optionIcon: [{ type: Input }],
|
|
11645
11639
|
collection: [{ type: Input }],
|
|
11646
11640
|
collectionLoadFn: [{ type: Input }],
|
|
11647
11641
|
leftIconData: [{ type: Input }],
|
|
@@ -12405,6 +12399,10 @@ class FilterItemComponent {
|
|
|
12405
12399
|
this.showButton = true;
|
|
12406
12400
|
this._createModelForDateRange(model);
|
|
12407
12401
|
break;
|
|
12402
|
+
case this.modes.DateField:
|
|
12403
|
+
this.showButton = true;
|
|
12404
|
+
this._createModelForDateField(model);
|
|
12405
|
+
break;
|
|
12408
12406
|
case this.modes.TextField:
|
|
12409
12407
|
this.showButton = true;
|
|
12410
12408
|
this._model = (typeof this._model === 'string' && this._model.length === 0) ? undefined : this._model;
|
|
@@ -12465,14 +12463,21 @@ class FilterItemComponent {
|
|
|
12465
12463
|
});
|
|
12466
12464
|
}
|
|
12467
12465
|
onButtonClicked() {
|
|
12468
|
-
var _a, _b;
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12466
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12468
|
+
(_b = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12469
|
+
switch (this.mode) {
|
|
12470
|
+
case this.modes.DateField:
|
|
12471
|
+
(_d = (_c = this.dateInput) === null || _c === void 0 ? void 0 : _c.finalize) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
12472
|
+
break;
|
|
12473
|
+
case this.modes.DateRangeField:
|
|
12474
|
+
(_f = (_e = this.dateRangeInput) === null || _e === void 0 ? void 0 : _e.finalize) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
12475
|
+
break;
|
|
12476
|
+
}
|
|
12477
|
+
this._changeDetector.detectChanges();
|
|
12478
|
+
yield Promise.resolve();
|
|
12479
|
+
this.filterButtonClicked.emit();
|
|
12480
|
+
});
|
|
12476
12481
|
}
|
|
12477
12482
|
uncheckForSingleSelect(model) {
|
|
12478
12483
|
this.collection.forEach(m => {
|
|
@@ -12623,6 +12628,15 @@ class FilterItemComponent {
|
|
|
12623
12628
|
this._model = 0;
|
|
12624
12629
|
}
|
|
12625
12630
|
}
|
|
12631
|
+
_createModelForDateField(date) {
|
|
12632
|
+
if (date) {
|
|
12633
|
+
const formattedDate = this._formatDateToString(date);
|
|
12634
|
+
this._model = `?='${formattedDate}'`;
|
|
12635
|
+
}
|
|
12636
|
+
else {
|
|
12637
|
+
this._model = undefined;
|
|
12638
|
+
}
|
|
12639
|
+
}
|
|
12626
12640
|
_createModelForDateRange(dates) {
|
|
12627
12641
|
if (dates) {
|
|
12628
12642
|
let startDate = dates[0];
|
|
@@ -12733,12 +12747,35 @@ class FilterItemComponent {
|
|
|
12733
12747
|
}
|
|
12734
12748
|
}
|
|
12735
12749
|
_readModelForDateField(dateFieldModel) {
|
|
12750
|
+
// Keep whatever came in as the "filter value" for outputs
|
|
12736
12751
|
this._model = dateFieldModel;
|
|
12737
|
-
if (dateFieldModel
|
|
12738
|
-
this.
|
|
12752
|
+
if (!dateFieldModel) {
|
|
12753
|
+
this.dateFieldValue = undefined;
|
|
12754
|
+
return;
|
|
12739
12755
|
}
|
|
12740
|
-
|
|
12741
|
-
this.
|
|
12756
|
+
if (dateFieldModel instanceof Date) {
|
|
12757
|
+
this.dateFieldValue = dateFieldModel;
|
|
12758
|
+
return;
|
|
12759
|
+
}
|
|
12760
|
+
if (typeof dateFieldModel === 'string') {
|
|
12761
|
+
// Accept "?='dd-MM-yyyy'", "dd-MM-yyyy", or "yyyy-MM-dd"
|
|
12762
|
+
let raw = dateFieldModel;
|
|
12763
|
+
const wrapped = raw.match(/\?='(\d{2}-\d{2}-\d{4})'/);
|
|
12764
|
+
if (wrapped)
|
|
12765
|
+
raw = wrapped[1];
|
|
12766
|
+
const ddmmyyyy = /^(\d{2})-(\d{2})-(\d{4})$/;
|
|
12767
|
+
const yyyymmdd = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
12768
|
+
if (ddmmyyyy.test(raw)) {
|
|
12769
|
+
const [, dd, mm, yyyy] = ddmmyyyy.exec(raw);
|
|
12770
|
+
this.dateFieldValue = new Date(+yyyy, +mm - 1, +dd);
|
|
12771
|
+
}
|
|
12772
|
+
else if (yyyymmdd.test(raw)) {
|
|
12773
|
+
const [, yyyy, mm, dd] = yyyymmdd.exec(raw);
|
|
12774
|
+
this.dateFieldValue = new Date(+yyyy, +mm - 1, +dd);
|
|
12775
|
+
}
|
|
12776
|
+
else {
|
|
12777
|
+
this.dateFieldValue = undefined;
|
|
12778
|
+
}
|
|
12742
12779
|
}
|
|
12743
12780
|
}
|
|
12744
12781
|
_readModelForDateRangeField(dateRangeFieldModel) {
|
|
@@ -12905,7 +12942,7 @@ FilterItemComponent.decorators = [
|
|
|
12905
12942
|
<div class="co-filter-item-dateField-content" *ngIf="mode === modes.DateField">
|
|
12906
12943
|
<co-input-date
|
|
12907
12944
|
#dateInput
|
|
12908
|
-
[(model)]="
|
|
12945
|
+
[(model)]="dateFieldValue" [readonly]="readonly"
|
|
12909
12946
|
(modelChange)="handleModelChange($event)"
|
|
12910
12947
|
></co-input-date>
|
|
12911
12948
|
</div>
|
|
@@ -15054,5 +15091,5 @@ HourSchedulingExpandableComponentModule.decorators = [
|
|
|
15054
15091
|
* Generated bundle index. Do not edit.
|
|
15055
15092
|
*/
|
|
15056
15093
|
|
|
15057
|
-
export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, HourSchedulingComponent, HourSchedulingComponentModule, HourSchedulingExpandableComponent, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateComponent, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfIconsComponent, ListOfIconsModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TemplateWrapperDirective, TemplateWrapperModule, TextInputPopupComponent, TileComponent, TileModule, TileSelectComponent, TileSelectModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, ObserveVisibilityDirective as ɵba, PaginationService as ɵbb, PaginatePipe as ɵbc, SimpleGridCellComponent as ɵbd, ListOfValuesMultiselectPopupComponent as ɵbe, ConfirmationDialogComponent as ɵbf, DialogBaseComponent as ɵbg, CoreDynamicComponentService as ɵbh, PrependPipeModule as ɵbi, PrependPipe as ɵbj, CheckmarkOverlayComponent as ɵbk, ScannerService as ɵbl, TooltipModule as ɵbm, TooltipComponent as ɵbn, TooltipDirective as ɵbo, HourSchedulingTestObjectComponent as ɵbp, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, CoreLocalizePipe as ɵp, CoreDictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw,
|
|
15094
|
+
export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorPickerComponent, ColorPickerModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, HourSchedulingComponent, HourSchedulingComponentModule, HourSchedulingExpandableComponent, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateComponent, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, InputTimeComponent, InputTimeModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfIconsComponent, ListOfIconsModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TemplateWrapperDirective, TemplateWrapperModule, TextInputPopupComponent, TileComponent, TileModule, TileSelectComponent, TileSelectModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, ObserveVisibilityDirective as ɵba, PaginationService as ɵbb, PaginatePipe as ɵbc, SimpleGridCellComponent as ɵbd, ListOfValuesMultiselectPopupComponent as ɵbe, ConfirmationDialogComponent as ɵbf, DialogBaseComponent as ɵbg, CoreDynamicComponentService as ɵbh, PrependPipeModule as ɵbi, PrependPipe as ɵbj, CheckmarkOverlayComponent as ɵbk, ScannerService as ɵbl, TooltipModule as ɵbm, TooltipComponent as ɵbn, TooltipDirective as ɵbo, HourSchedulingTestObjectComponent as ɵbp, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, CoreLocalizePipe as ɵp, CoreDictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw, BaseInputTimeDirective as ɵx, PopupShowerService as ɵy, BaseSimpleGridComponent as ɵz };
|
|
15058
15095
|
//# sourceMappingURL=colijnit-corecomponents_v12.js.map
|