@seatlayer/js 0.12.3 → 0.14.0
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/README.md +3 -0
- package/dist/index.cjs +543 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -3
- package/dist/index.d.ts +39 -3
- package/dist/index.js +543 -72
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -388,6 +388,7 @@ interface SeatPickerOptions {
|
|
|
388
388
|
}
|
|
389
389
|
declare class SeatPicker {
|
|
390
390
|
private readonly opts;
|
|
391
|
+
private readonly api;
|
|
391
392
|
private readonly controller;
|
|
392
393
|
private root;
|
|
393
394
|
private mapHost;
|
|
@@ -399,6 +400,8 @@ declare class SeatPicker {
|
|
|
399
400
|
private ro;
|
|
400
401
|
private holdTimer;
|
|
401
402
|
private toastTimer;
|
|
403
|
+
/** Short-lived UI motion timers; all are cancelled on destroy. */
|
|
404
|
+
private motionTimers;
|
|
402
405
|
private currency;
|
|
403
406
|
private hold;
|
|
404
407
|
/** Latest server expiry for the open hold (moves on extend). */
|
|
@@ -438,6 +441,12 @@ declare class SeatPicker {
|
|
|
438
441
|
private secCardShownAt;
|
|
439
442
|
/** Previous tray ticket count — first 0→n transition auto-expands the mobile sheet. */
|
|
440
443
|
private lastTrayCount;
|
|
444
|
+
/** Previous computed total — drives a single explanatory value bump. */
|
|
445
|
+
private lastTrayTotal;
|
|
446
|
+
/** Stable item keys prevent tray chips re-animating on unrelated realtime syncs. */
|
|
447
|
+
private lastTrayKeys;
|
|
448
|
+
private bestAvailableBusy;
|
|
449
|
+
private ctaPhase;
|
|
441
450
|
private a11yChipsEl;
|
|
442
451
|
private cbEl;
|
|
443
452
|
private modalScrim;
|
|
@@ -476,6 +485,19 @@ declare class SeatPicker {
|
|
|
476
485
|
private buildRegions;
|
|
477
486
|
/** Read a resolved --sl-* token value (canvas needs a real color, not var()). */
|
|
478
487
|
private cssVar;
|
|
488
|
+
/** Motion is progressive enhancement; all state remains legible when reduced. */
|
|
489
|
+
private reducedMotion;
|
|
490
|
+
private scheduleMotion;
|
|
491
|
+
/** Restart one finite CSS animation without leaving a permanent state class. */
|
|
492
|
+
private animateOnce;
|
|
493
|
+
/** Selection feedback belongs on the selected seat, not across the whole map. */
|
|
494
|
+
private flashPickedSeat;
|
|
495
|
+
/** A completed hold gets one short map ripple per concrete seat. */
|
|
496
|
+
private flashHeldSeats;
|
|
497
|
+
/** Update only the action affordance; selection callbacks must not refire. */
|
|
498
|
+
private pendingSelectionCount;
|
|
499
|
+
private syncCta;
|
|
500
|
+
private setCtaPhase;
|
|
479
501
|
/** Section-bearing objects on the active floor (single-floor → doc.objects). */
|
|
480
502
|
private activeFloorObjects;
|
|
481
503
|
/**
|
|
@@ -933,6 +955,10 @@ declare class SeatManager {
|
|
|
933
955
|
private sectionByObject;
|
|
934
956
|
private sectionLabelById;
|
|
935
957
|
private lastSyncedAt;
|
|
958
|
+
private blockedQuery;
|
|
959
|
+
private blockedSection;
|
|
960
|
+
private blockedResultLimit;
|
|
961
|
+
private unblockAllConfirmTimer;
|
|
936
962
|
private readonly onFullscreenChange;
|
|
937
963
|
private readonly onKeyDown;
|
|
938
964
|
constructor(options: SeatManagerOptions);
|
|
@@ -988,8 +1014,9 @@ declare class SeatManager {
|
|
|
988
1014
|
private onMessage;
|
|
989
1015
|
private resnapshot;
|
|
990
1016
|
private applySnapshot;
|
|
991
|
-
/** Optimistic local write shared by
|
|
992
|
-
|
|
1017
|
+
/** Optimistic local write shared by organizer actions. Paint and tally once,
|
|
1018
|
+
* even when an arena-sized operation changes hundreds of seats. */
|
|
1019
|
+
private setSeatsLocal;
|
|
993
1020
|
/** Keep the canvas painting on hidden/occluded tabs (war-room second monitor). */
|
|
994
1021
|
private afterPaint;
|
|
995
1022
|
private flash;
|
|
@@ -1023,8 +1050,17 @@ declare class SeatManager {
|
|
|
1023
1050
|
private paintLegend;
|
|
1024
1051
|
private paintFeed;
|
|
1025
1052
|
private renderBlockRail;
|
|
1026
|
-
private
|
|
1053
|
+
private toggleCategory;
|
|
1054
|
+
/** A category/filter is a real toggle: add the missing seats, or remove the
|
|
1055
|
+
* whole group when every eligible seat in it is already selected. */
|
|
1056
|
+
private toggleLabels;
|
|
1057
|
+
private isBlockSelectable;
|
|
1027
1058
|
private paintSelBar;
|
|
1059
|
+
private paintCategoryControls;
|
|
1060
|
+
private filteredBlockedSeats;
|
|
1061
|
+
private paintBlockedInventory;
|
|
1062
|
+
private confirmUnblockAll;
|
|
1063
|
+
private resetUnblockAllConfirm;
|
|
1028
1064
|
private done;
|
|
1029
1065
|
private toastOk;
|
|
1030
1066
|
private toastErr;
|
package/dist/index.d.ts
CHANGED
|
@@ -388,6 +388,7 @@ interface SeatPickerOptions {
|
|
|
388
388
|
}
|
|
389
389
|
declare class SeatPicker {
|
|
390
390
|
private readonly opts;
|
|
391
|
+
private readonly api;
|
|
391
392
|
private readonly controller;
|
|
392
393
|
private root;
|
|
393
394
|
private mapHost;
|
|
@@ -399,6 +400,8 @@ declare class SeatPicker {
|
|
|
399
400
|
private ro;
|
|
400
401
|
private holdTimer;
|
|
401
402
|
private toastTimer;
|
|
403
|
+
/** Short-lived UI motion timers; all are cancelled on destroy. */
|
|
404
|
+
private motionTimers;
|
|
402
405
|
private currency;
|
|
403
406
|
private hold;
|
|
404
407
|
/** Latest server expiry for the open hold (moves on extend). */
|
|
@@ -438,6 +441,12 @@ declare class SeatPicker {
|
|
|
438
441
|
private secCardShownAt;
|
|
439
442
|
/** Previous tray ticket count — first 0→n transition auto-expands the mobile sheet. */
|
|
440
443
|
private lastTrayCount;
|
|
444
|
+
/** Previous computed total — drives a single explanatory value bump. */
|
|
445
|
+
private lastTrayTotal;
|
|
446
|
+
/** Stable item keys prevent tray chips re-animating on unrelated realtime syncs. */
|
|
447
|
+
private lastTrayKeys;
|
|
448
|
+
private bestAvailableBusy;
|
|
449
|
+
private ctaPhase;
|
|
441
450
|
private a11yChipsEl;
|
|
442
451
|
private cbEl;
|
|
443
452
|
private modalScrim;
|
|
@@ -476,6 +485,19 @@ declare class SeatPicker {
|
|
|
476
485
|
private buildRegions;
|
|
477
486
|
/** Read a resolved --sl-* token value (canvas needs a real color, not var()). */
|
|
478
487
|
private cssVar;
|
|
488
|
+
/** Motion is progressive enhancement; all state remains legible when reduced. */
|
|
489
|
+
private reducedMotion;
|
|
490
|
+
private scheduleMotion;
|
|
491
|
+
/** Restart one finite CSS animation without leaving a permanent state class. */
|
|
492
|
+
private animateOnce;
|
|
493
|
+
/** Selection feedback belongs on the selected seat, not across the whole map. */
|
|
494
|
+
private flashPickedSeat;
|
|
495
|
+
/** A completed hold gets one short map ripple per concrete seat. */
|
|
496
|
+
private flashHeldSeats;
|
|
497
|
+
/** Update only the action affordance; selection callbacks must not refire. */
|
|
498
|
+
private pendingSelectionCount;
|
|
499
|
+
private syncCta;
|
|
500
|
+
private setCtaPhase;
|
|
479
501
|
/** Section-bearing objects on the active floor (single-floor → doc.objects). */
|
|
480
502
|
private activeFloorObjects;
|
|
481
503
|
/**
|
|
@@ -933,6 +955,10 @@ declare class SeatManager {
|
|
|
933
955
|
private sectionByObject;
|
|
934
956
|
private sectionLabelById;
|
|
935
957
|
private lastSyncedAt;
|
|
958
|
+
private blockedQuery;
|
|
959
|
+
private blockedSection;
|
|
960
|
+
private blockedResultLimit;
|
|
961
|
+
private unblockAllConfirmTimer;
|
|
936
962
|
private readonly onFullscreenChange;
|
|
937
963
|
private readonly onKeyDown;
|
|
938
964
|
constructor(options: SeatManagerOptions);
|
|
@@ -988,8 +1014,9 @@ declare class SeatManager {
|
|
|
988
1014
|
private onMessage;
|
|
989
1015
|
private resnapshot;
|
|
990
1016
|
private applySnapshot;
|
|
991
|
-
/** Optimistic local write shared by
|
|
992
|
-
|
|
1017
|
+
/** Optimistic local write shared by organizer actions. Paint and tally once,
|
|
1018
|
+
* even when an arena-sized operation changes hundreds of seats. */
|
|
1019
|
+
private setSeatsLocal;
|
|
993
1020
|
/** Keep the canvas painting on hidden/occluded tabs (war-room second monitor). */
|
|
994
1021
|
private afterPaint;
|
|
995
1022
|
private flash;
|
|
@@ -1023,8 +1050,17 @@ declare class SeatManager {
|
|
|
1023
1050
|
private paintLegend;
|
|
1024
1051
|
private paintFeed;
|
|
1025
1052
|
private renderBlockRail;
|
|
1026
|
-
private
|
|
1053
|
+
private toggleCategory;
|
|
1054
|
+
/** A category/filter is a real toggle: add the missing seats, or remove the
|
|
1055
|
+
* whole group when every eligible seat in it is already selected. */
|
|
1056
|
+
private toggleLabels;
|
|
1057
|
+
private isBlockSelectable;
|
|
1027
1058
|
private paintSelBar;
|
|
1059
|
+
private paintCategoryControls;
|
|
1060
|
+
private filteredBlockedSeats;
|
|
1061
|
+
private paintBlockedInventory;
|
|
1062
|
+
private confirmUnblockAll;
|
|
1063
|
+
private resetUnblockAllConfirm;
|
|
1028
1064
|
private done;
|
|
1029
1065
|
private toastOk;
|
|
1030
1066
|
private toastErr;
|