@colijnit/sharedcomponents 262.1.2 → 262.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/3rdpartylicenses.txt +3300 -0
- package/browser/chunk-5PPHQWL6.js +5 -0
- package/browser/chunk-FK6H3RFT.js +1 -0
- package/browser/chunk-H5HZ6YB3.js +1 -0
- package/browser/chunk-IZEX6TRK.js +2 -0
- package/browser/chunk-JXHTPMR7.js +5 -0
- package/browser/favicon.ico +0 -0
- package/browser/index.html +13 -0
- package/browser/main-7K2JRI54.js +330 -0
- package/browser/polyfills-5FDKUQTZ.js +2 -0
- package/browser/styles-MXUUAFDM.css +1 -0
- package/fesm2022/colijnit-sharedcomponents.mjs +124 -93
- package/fesm2022/colijnit-sharedcomponents.mjs.map +1 -1
- package/index.d.ts +9 -3
- package/lib/components/preferred-planning/style/_layout.scss +22 -12
- package/package.json +1 -1
- package/prerendered-routes.json +3 -0
|
@@ -23527,7 +23527,16 @@ class PreferredPlanningComponent {
|
|
|
23527
23527
|
disclaimerHeader = "";
|
|
23528
23528
|
disclaimerDescription = "";
|
|
23529
23529
|
loadMoreButtonText = "";
|
|
23530
|
-
|
|
23530
|
+
showDisclaimer = true;
|
|
23531
|
+
showConfirmButton = true;
|
|
23532
|
+
verticalLayout = true;
|
|
23533
|
+
set eventsPerDay(value) {
|
|
23534
|
+
this._eventsPerDay = value;
|
|
23535
|
+
this.checkForMoreLoadable();
|
|
23536
|
+
}
|
|
23537
|
+
get eventsPerDay() {
|
|
23538
|
+
return this._eventsPerDay;
|
|
23539
|
+
}
|
|
23531
23540
|
selectedDate;
|
|
23532
23541
|
buttonClick = new EventEmitter();
|
|
23533
23542
|
selected = new EventEmitter();
|
|
@@ -23538,6 +23547,7 @@ class PreferredPlanningComponent {
|
|
|
23538
23547
|
selectedOption;
|
|
23539
23548
|
moreLoadable = true;
|
|
23540
23549
|
checkDisabled = false;
|
|
23550
|
+
_eventsPerDay = [];
|
|
23541
23551
|
constructor(locale, iconCacheService, _changeDetector) {
|
|
23542
23552
|
this.locale = locale;
|
|
23543
23553
|
this.iconCacheService = iconCacheService;
|
|
@@ -23613,6 +23623,9 @@ class PreferredPlanningComponent {
|
|
|
23613
23623
|
//
|
|
23614
23624
|
// this.events.push(testData);
|
|
23615
23625
|
// this.events.push(testDataTwo);
|
|
23626
|
+
this.checkForMoreLoadable();
|
|
23627
|
+
}
|
|
23628
|
+
checkForMoreLoadable() {
|
|
23616
23629
|
if (this.eventsPerDay) {
|
|
23617
23630
|
this.events = this.eventsPerDay;
|
|
23618
23631
|
if (this.eventsPerDay.length <= this.limit) {
|
|
@@ -23653,52 +23666,58 @@ class PreferredPlanningComponent {
|
|
|
23653
23666
|
this._changeDetector.detectChanges();
|
|
23654
23667
|
}
|
|
23655
23668
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: PreferredPlanningComponent, deps: [{ token: LOCALE_ID }, { token: IconCacheService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
23656
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PreferredPlanningComponent, isStandalone: false, selector: "co-preferred-planning", inputs: { firstAvailableDate: "firstAvailableDate", buttonLabel: "buttonLabel", headerText: "headerText", headerDescription: "headerDescription", disclaimerHeader: "disclaimerHeader", disclaimerDescription: "disclaimerDescription", loadMoreButtonText: "loadMoreButtonText", eventsPerDay: "eventsPerDay", selectedDate: "selectedDate" }, outputs: { buttonClick: "buttonClick", selected: "selected" }, host: { properties: { "class.co-preferred-planning": "this.showClass" } }, viewQueries: [{ propertyName: "dayStart", first: true, predicate: ["dayStart"], descendants: true, static: true }], ngImport: i0, template: `
|
|
23657
|
-
<div class="co-preferred-planning">
|
|
23658
|
-
<div class="content-wrapper">
|
|
23659
|
-
<p [textContent]="headerDescription"></p>
|
|
23660
|
-
<div class="planning-container">
|
|
23661
|
-
@if (events) {
|
|
23662
|
-
<div class="planning-options">
|
|
23663
|
-
@for (event of events | slice:0:limit; track event; let i = $index) {
|
|
23664
|
-
<div class="eventOption" id="event-{{i}}">
|
|
23665
|
-
<p [textContent]="event.date | date:'EEEE dd MMMM':'nl'"></p>
|
|
23666
|
-
@for (option of event.events; track option) {
|
|
23667
|
-
<div class="planning-option">
|
|
23668
|
-
<co-input-checkbox
|
|
23669
|
-
[disabled]="checkDisabled"
|
|
23670
|
-
[model]="option.checked"
|
|
23671
|
-
[label]="option.description"
|
|
23672
|
-
(modelChange)="handleOptionSelect($event, option, event.date, i)"
|
|
23673
|
-
></co-input-checkbox>
|
|
23674
|
-
</div>
|
|
23675
|
-
}
|
|
23676
|
-
</div>
|
|
23677
|
-
}
|
|
23678
|
-
</div>
|
|
23679
|
-
}
|
|
23680
|
-
|
|
23681
|
-
|
|
23682
|
-
<div class="planning-disclaimer
|
|
23683
|
-
<
|
|
23684
|
-
<
|
|
23685
|
-
|
|
23686
|
-
|
|
23687
|
-
|
|
23688
|
-
|
|
23689
|
-
|
|
23690
|
-
|
|
23691
|
-
|
|
23692
|
-
|
|
23693
|
-
|
|
23694
|
-
|
|
23695
|
-
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23701
|
-
|
|
23669
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: PreferredPlanningComponent, isStandalone: false, selector: "co-preferred-planning", inputs: { firstAvailableDate: "firstAvailableDate", buttonLabel: "buttonLabel", headerText: "headerText", headerDescription: "headerDescription", disclaimerHeader: "disclaimerHeader", disclaimerDescription: "disclaimerDescription", loadMoreButtonText: "loadMoreButtonText", showDisclaimer: "showDisclaimer", showConfirmButton: "showConfirmButton", verticalLayout: "verticalLayout", eventsPerDay: "eventsPerDay", selectedDate: "selectedDate" }, outputs: { buttonClick: "buttonClick", selected: "selected" }, host: { properties: { "class.co-preferred-planning": "this.showClass" } }, viewQueries: [{ propertyName: "dayStart", first: true, predicate: ["dayStart"], descendants: true, static: true }], ngImport: i0, template: `
|
|
23670
|
+
<div class="co-preferred-planning">
|
|
23671
|
+
<div class="content-wrapper">
|
|
23672
|
+
<p [textContent]="headerDescription"></p>
|
|
23673
|
+
<div class="planning-container">
|
|
23674
|
+
@if (events) {
|
|
23675
|
+
<div class="planning-options" [class.horizontal-layout]="!verticalLayout">
|
|
23676
|
+
@for (event of events | slice:0:limit; track event; let i = $index) {
|
|
23677
|
+
<div class="eventOption" id="event-{{i}}">
|
|
23678
|
+
<p [textContent]="event.date | date:'EEEE dd MMMM':'nl'"></p>
|
|
23679
|
+
@for (option of event.events; track option) {
|
|
23680
|
+
<div class="planning-option">
|
|
23681
|
+
<co-input-checkbox
|
|
23682
|
+
[disabled]="checkDisabled"
|
|
23683
|
+
[model]="option.checked"
|
|
23684
|
+
[label]="option.description"
|
|
23685
|
+
(modelChange)="handleOptionSelect($event, option, event.date, i)"
|
|
23686
|
+
></co-input-checkbox>
|
|
23687
|
+
</div>
|
|
23688
|
+
}
|
|
23689
|
+
</div>
|
|
23690
|
+
}
|
|
23691
|
+
</div>
|
|
23692
|
+
}
|
|
23693
|
+
|
|
23694
|
+
@if (showDisclaimer) {
|
|
23695
|
+
<div class="planning-disclaimer">
|
|
23696
|
+
<h2 [textContent]="disclaimerHeader"></h2>
|
|
23697
|
+
<div class="planning-disclaimer-contents">
|
|
23698
|
+
<co-icon class="disclaimer-icon" [iconData]="iconCacheService.getIcon(icons.CheckRound)"></co-icon>
|
|
23699
|
+
|
|
23700
|
+
<p [textContent]="disclaimerDescription"></p>
|
|
23701
|
+
</div>
|
|
23702
|
+
</div>
|
|
23703
|
+
}
|
|
23704
|
+
</div>
|
|
23705
|
+
<div (click)="loadMore()" class="load-more-container"
|
|
23706
|
+
[ngClass]="!moreLoadable ? 'load-more-container-disabled':''">
|
|
23707
|
+
<p>
|
|
23708
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ArrowFatRight)"></co-icon>
|
|
23709
|
+
<span [textContent]="loadMoreButtonText"></span>
|
|
23710
|
+
</p>
|
|
23711
|
+
</div>
|
|
23712
|
+
</div>
|
|
23713
|
+
</div>
|
|
23714
|
+
|
|
23715
|
+
@if (showConfirmButton) {
|
|
23716
|
+
<co-button class="submit-button"
|
|
23717
|
+
[label]="buttonLabel"
|
|
23718
|
+
(click)="buttonClick.emit($event)">
|
|
23719
|
+
</co-button>
|
|
23720
|
+
}
|
|
23702
23721
|
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i3.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: i3.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i4.SlicePipe, name: "slice" }, { kind: "pipe", type: i4.DatePipe, name: "date" }], animations: [
|
|
23703
23722
|
trigger("showHideWindow", [
|
|
23704
23723
|
state("void", style({ transform: "scaleY(0)" })),
|
|
@@ -23713,52 +23732,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
23713
23732
|
type: Component,
|
|
23714
23733
|
args: [{
|
|
23715
23734
|
selector: "co-preferred-planning",
|
|
23716
|
-
template: `
|
|
23717
|
-
<div class="co-preferred-planning">
|
|
23718
|
-
<div class="content-wrapper">
|
|
23719
|
-
<p [textContent]="headerDescription"></p>
|
|
23720
|
-
<div class="planning-container">
|
|
23721
|
-
@if (events) {
|
|
23722
|
-
<div class="planning-options">
|
|
23723
|
-
@for (event of events | slice:0:limit; track event; let i = $index) {
|
|
23724
|
-
<div class="eventOption" id="event-{{i}}">
|
|
23725
|
-
<p [textContent]="event.date | date:'EEEE dd MMMM':'nl'"></p>
|
|
23726
|
-
@for (option of event.events; track option) {
|
|
23727
|
-
<div class="planning-option">
|
|
23728
|
-
<co-input-checkbox
|
|
23729
|
-
[disabled]="checkDisabled"
|
|
23730
|
-
[model]="option.checked"
|
|
23731
|
-
[label]="option.description"
|
|
23732
|
-
(modelChange)="handleOptionSelect($event, option, event.date, i)"
|
|
23733
|
-
></co-input-checkbox>
|
|
23734
|
-
</div>
|
|
23735
|
-
}
|
|
23736
|
-
</div>
|
|
23737
|
-
}
|
|
23738
|
-
</div>
|
|
23739
|
-
}
|
|
23740
|
-
|
|
23741
|
-
|
|
23742
|
-
<div class="planning-disclaimer
|
|
23743
|
-
<
|
|
23744
|
-
<
|
|
23745
|
-
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
|
|
23749
|
-
|
|
23750
|
-
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
23759
|
-
|
|
23760
|
-
|
|
23761
|
-
|
|
23735
|
+
template: `
|
|
23736
|
+
<div class="co-preferred-planning">
|
|
23737
|
+
<div class="content-wrapper">
|
|
23738
|
+
<p [textContent]="headerDescription"></p>
|
|
23739
|
+
<div class="planning-container">
|
|
23740
|
+
@if (events) {
|
|
23741
|
+
<div class="planning-options" [class.horizontal-layout]="!verticalLayout">
|
|
23742
|
+
@for (event of events | slice:0:limit; track event; let i = $index) {
|
|
23743
|
+
<div class="eventOption" id="event-{{i}}">
|
|
23744
|
+
<p [textContent]="event.date | date:'EEEE dd MMMM':'nl'"></p>
|
|
23745
|
+
@for (option of event.events; track option) {
|
|
23746
|
+
<div class="planning-option">
|
|
23747
|
+
<co-input-checkbox
|
|
23748
|
+
[disabled]="checkDisabled"
|
|
23749
|
+
[model]="option.checked"
|
|
23750
|
+
[label]="option.description"
|
|
23751
|
+
(modelChange)="handleOptionSelect($event, option, event.date, i)"
|
|
23752
|
+
></co-input-checkbox>
|
|
23753
|
+
</div>
|
|
23754
|
+
}
|
|
23755
|
+
</div>
|
|
23756
|
+
}
|
|
23757
|
+
</div>
|
|
23758
|
+
}
|
|
23759
|
+
|
|
23760
|
+
@if (showDisclaimer) {
|
|
23761
|
+
<div class="planning-disclaimer">
|
|
23762
|
+
<h2 [textContent]="disclaimerHeader"></h2>
|
|
23763
|
+
<div class="planning-disclaimer-contents">
|
|
23764
|
+
<co-icon class="disclaimer-icon" [iconData]="iconCacheService.getIcon(icons.CheckRound)"></co-icon>
|
|
23765
|
+
|
|
23766
|
+
<p [textContent]="disclaimerDescription"></p>
|
|
23767
|
+
</div>
|
|
23768
|
+
</div>
|
|
23769
|
+
}
|
|
23770
|
+
</div>
|
|
23771
|
+
<div (click)="loadMore()" class="load-more-container"
|
|
23772
|
+
[ngClass]="!moreLoadable ? 'load-more-container-disabled':''">
|
|
23773
|
+
<p>
|
|
23774
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ArrowFatRight)"></co-icon>
|
|
23775
|
+
<span [textContent]="loadMoreButtonText"></span>
|
|
23776
|
+
</p>
|
|
23777
|
+
</div>
|
|
23778
|
+
</div>
|
|
23779
|
+
</div>
|
|
23780
|
+
|
|
23781
|
+
@if (showConfirmButton) {
|
|
23782
|
+
<co-button class="submit-button"
|
|
23783
|
+
[label]="buttonLabel"
|
|
23784
|
+
(click)="buttonClick.emit($event)">
|
|
23785
|
+
</co-button>
|
|
23786
|
+
}
|
|
23762
23787
|
`,
|
|
23763
23788
|
animations: [
|
|
23764
23789
|
trigger("showHideWindow", [
|
|
@@ -23792,6 +23817,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
23792
23817
|
type: Input
|
|
23793
23818
|
}], loadMoreButtonText: [{
|
|
23794
23819
|
type: Input
|
|
23820
|
+
}], showDisclaimer: [{
|
|
23821
|
+
type: Input
|
|
23822
|
+
}], showConfirmButton: [{
|
|
23823
|
+
type: Input
|
|
23824
|
+
}], verticalLayout: [{
|
|
23825
|
+
type: Input
|
|
23795
23826
|
}], eventsPerDay: [{
|
|
23796
23827
|
type: Input
|
|
23797
23828
|
}], selectedDate: [{
|