tickera-angular-components 0.0.1-dev.176 → 0.0.1-dev.178

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.
@@ -9584,7 +9584,7 @@ class TIcketMapProductSelectionComponent {
9584
9584
  bookingDataService = inject(PerformanceBookingDataService);
9585
9585
  products = computed(() => this.bookingDataService.roomMap()?.products ?? [], ...(ngDevMode ? [{ debugName: "products" }] : []));
9586
9586
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: TIcketMapProductSelectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9587
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: TIcketMapProductSelectionComponent, isStandalone: true, selector: "ticket-map-product-selection", inputs: { title: "title", subtitle: "subtitle" }, ngImport: i0, template: "@if (products().length > 0) {\n <ticket-map-widget>\n <ticket-map-widget-header [title]=\"title\" />\n\n <div class=\"products-list\">\n @for (product of products(); track product.id) {\n <ticket-map-product-selection-item [product]=\"product\" />\n }\n </div>\n </ticket-map-widget>\n}\n", styles: [".products-list{overflow-y:auto;max-height:20rem;margin:.5rem 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TicketMapWidgetComponent, selector: "ticket-map-widget" }, { kind: "component", type: TicketMapWidgetHeaderComponent, selector: "ticket-map-widget-header", inputs: ["title", "subtitle"] }, { kind: "component", type: TicketMapProductSelectionItemComponent, selector: "ticket-map-product-selection-item", inputs: ["product"] }] });
9587
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: TIcketMapProductSelectionComponent, isStandalone: true, selector: "ticket-map-product-selection", inputs: { title: "title", subtitle: "subtitle" }, ngImport: i0, template: "@if (products().length > 0) {\n <ticket-map-widget>\n <ticket-map-widget-header [title]=\"title\" [subtitle]=\"subtitle\" />\n\n <div class=\"products-list\">\n @for (product of products(); track product.id) {\n <ticket-map-product-selection-item [product]=\"product\" />\n }\n </div>\n </ticket-map-widget>\n}\n", styles: [".products-list{overflow-y:auto;max-height:20rem;margin:.5rem 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: TicketMapWidgetComponent, selector: "ticket-map-widget" }, { kind: "component", type: TicketMapWidgetHeaderComponent, selector: "ticket-map-widget-header", inputs: ["title", "subtitle"] }, { kind: "component", type: TicketMapProductSelectionItemComponent, selector: "ticket-map-product-selection-item", inputs: ["product"] }] });
9588
9588
  }
9589
9589
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: TIcketMapProductSelectionComponent, decorators: [{
9590
9590
  type: Component,
@@ -9593,7 +9593,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
9593
9593
  TicketMapWidgetComponent,
9594
9594
  TicketMapWidgetHeaderComponent,
9595
9595
  TicketMapProductSelectionItemComponent,
9596
- ], template: "@if (products().length > 0) {\n <ticket-map-widget>\n <ticket-map-widget-header [title]=\"title\" />\n\n <div class=\"products-list\">\n @for (product of products(); track product.id) {\n <ticket-map-product-selection-item [product]=\"product\" />\n }\n </div>\n </ticket-map-widget>\n}\n", styles: [".products-list{overflow-y:auto;max-height:20rem;margin:.5rem 0}\n"] }]
9596
+ ], template: "@if (products().length > 0) {\n <ticket-map-widget>\n <ticket-map-widget-header [title]=\"title\" [subtitle]=\"subtitle\" />\n\n <div class=\"products-list\">\n @for (product of products(); track product.id) {\n <ticket-map-product-selection-item [product]=\"product\" />\n }\n </div>\n </ticket-map-widget>\n}\n", styles: [".products-list{overflow-y:auto;max-height:20rem;margin:.5rem 0}\n"] }]
9597
9597
  }], propDecorators: { title: [{
9598
9598
  type: Input
9599
9599
  }], subtitle: [{
@@ -10028,12 +10028,10 @@ class TicketQrComponent {
10028
10028
  if (this.isFetching)
10029
10029
  return;
10030
10030
  this.isFetching = true;
10031
- const service = this.isCustomer
10032
- ? this.ticketQrService.fetchMyQrToken
10033
- : this.ticketQrService.fetchQrToken;
10034
- service(this.ticketUuid)
10035
- .pipe(takeUntil$1(this.destroy$))
10036
- .subscribe({
10031
+ const request = this.isCustomer
10032
+ ? this.ticketQrService.fetchMyQrToken(this.ticketUuid)
10033
+ : this.ticketQrService.fetchQrToken(this.ticketUuid);
10034
+ request.pipe(takeUntil$1(this.destroy$)).subscribe({
10037
10035
  next: (res) => {
10038
10036
  this.isFetching = false;
10039
10037
  this.loading.set(false);
@@ -10055,12 +10053,10 @@ class TicketQrComponent {
10055
10053
  return;
10056
10054
  this.refreshing.set(true);
10057
10055
  this.isFetching = true;
10058
- const service = this.isCustomer
10059
- ? this.ticketQrService.fetchMyQrToken
10060
- : this.ticketQrService.fetchQrToken;
10061
- service(this.ticketUuid)
10062
- .pipe(takeUntil$1(this.destroy$))
10063
- .subscribe({
10056
+ const refreshRequest = this.isCustomer
10057
+ ? this.ticketQrService.fetchMyQrToken(this.ticketUuid)
10058
+ : this.ticketQrService.fetchQrToken(this.ticketUuid);
10059
+ refreshRequest.pipe(takeUntil$1(this.destroy$)).subscribe({
10064
10060
  next: (res) => {
10065
10061
  this.isFetching = false;
10066
10062
  this.renderQr(res.data.token);