@design.estate/dees-catalog 22.3.0 → 22.3.1

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.
@@ -83127,7 +83127,7 @@ __runInitializers(_init111, 1, _DeesKanbanColumn);
83127
83127
  var DeesKanbanColumn = _DeesKanbanColumn;
83128
83128
 
83129
83129
  // ts_web/elements/00group-kanban/dees-kanban/dees-kanban.ts
83130
- var _columnsCollapsed_dec, _openingTicket_dec, _pendingTicketId_dec2, _filterAnnouncement_dec, _filtersOpen_dec, _operationError_dec, _revision_dec, _filterValues_dec2, _currentPersonId_dec, _projectRequired_dec, _autoLabelDefinitions_dec4, _projects_dec4, _error_dec7, _loading_dec12, _provider_dec4, _people_dec2, _columns_dec7, _tickets_dec4, _heading_dec11, _a110, _DeesKanban_decorators, _init112, _heading11, _tickets4, _columns7, _people2, _provider4, _loading12, _error7, _projects4, _autoLabelDefinitions4, _projectRequired, _currentPersonId, _filterValues2, _revision, _operationError, _filtersOpen, _filterAnnouncement, _pendingTicketId2, _openingTicket, _columnsCollapsed;
83130
+ var _columnsCollapsed_dec, _openingTicket_dec, _pendingTicketId_dec2, _filterAnnouncement_dec, _filtersOpen_dec, _boardFetchError_dec, _operationError_dec, _revision_dec, _filterValues_dec2, _currentPersonId_dec, _projectRequired_dec, _autoLabelDefinitions_dec4, _projects_dec4, _error_dec7, _loading_dec12, _provider_dec4, _people_dec2, _columns_dec7, _tickets_dec4, _heading_dec11, _a110, _DeesKanban_decorators, _init112, _heading11, _tickets4, _columns7, _people2, _provider4, _loading12, _error7, _projects4, _autoLabelDefinitions4, _projectRequired, _currentPersonId, _filterValues2, _revision, _operationError, _boardFetchError, _filtersOpen, _filterAnnouncement, _pendingTicketId2, _openingTicket, _columnsCollapsed;
83131
83131
  var interactionEvents = [
83132
83132
  "kanban-ticket-open",
83133
83133
  "kanban-ticket-move",
@@ -83149,7 +83149,7 @@ var interactionEvents = [
83149
83149
  ];
83150
83150
  var placeholderCards = [3, 2, 3, 1];
83151
83151
  _DeesKanban_decorators = [customElement("dees-kanban")];
83152
- var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11 = [n({ type: String, reflect: true })], _tickets_dec4 = [n({ attribute: false })], _columns_dec7 = [n({ attribute: false })], _people_dec2 = [n({ attribute: false })], _provider_dec4 = [n({ attribute: false })], _loading_dec12 = [n({ type: Boolean, reflect: true })], _error_dec7 = [n({ type: String, reflect: true })], _projects_dec4 = [n({ attribute: false })], _autoLabelDefinitions_dec4 = [n({ attribute: false })], _projectRequired_dec = [n({ type: Boolean, reflect: true })], _currentPersonId_dec = [n({ type: String, reflect: true })], _filterValues_dec2 = [n({ attribute: false })], _revision_dec = [n({ attribute: false })], _operationError_dec = [r2()], _filtersOpen_dec = [r2()], _filterAnnouncement_dec = [r2()], _pendingTicketId_dec2 = [r2()], _openingTicket_dec = [r2()], _columnsCollapsed_dec = [r2()], _a110) {
83152
+ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11 = [n({ type: String, reflect: true })], _tickets_dec4 = [n({ attribute: false })], _columns_dec7 = [n({ attribute: false })], _people_dec2 = [n({ attribute: false })], _provider_dec4 = [n({ attribute: false })], _loading_dec12 = [n({ type: Boolean, reflect: true })], _error_dec7 = [n({ type: String, reflect: true })], _projects_dec4 = [n({ attribute: false })], _autoLabelDefinitions_dec4 = [n({ attribute: false })], _projectRequired_dec = [n({ type: Boolean, reflect: true })], _currentPersonId_dec = [n({ type: String, reflect: true })], _filterValues_dec2 = [n({ attribute: false })], _revision_dec = [n({ attribute: false })], _operationError_dec = [r2()], _boardFetchError_dec = [r2()], _filtersOpen_dec = [r2()], _filterAnnouncement_dec = [r2()], _pendingTicketId_dec2 = [r2()], _openingTicket_dec = [r2()], _columnsCollapsed_dec = [r2()], _a110) {
83153
83153
  constructor() {
83154
83154
  super(...arguments);
83155
83155
  __publicField(this, "t", dcLocalize(this));
@@ -83167,11 +83167,12 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83167
83167
  __privateAdd(this, _filterValues2, __runInitializers(_init112, 52, this, {})), __runInitializers(_init112, 55, this);
83168
83168
  __privateAdd(this, _revision, __runInitializers(_init112, 56, this)), __runInitializers(_init112, 59, this);
83169
83169
  __privateAdd(this, _operationError, __runInitializers(_init112, 60, this, "")), __runInitializers(_init112, 63, this);
83170
- __privateAdd(this, _filtersOpen, __runInitializers(_init112, 64, this, false)), __runInitializers(_init112, 67, this);
83171
- __privateAdd(this, _filterAnnouncement, __runInitializers(_init112, 68, this, "")), __runInitializers(_init112, 71, this);
83172
- __privateAdd(this, _pendingTicketId2, __runInitializers(_init112, 72, this, "")), __runInitializers(_init112, 75, this);
83173
- __privateAdd(this, _openingTicket, __runInitializers(_init112, 76, this, false)), __runInitializers(_init112, 79, this);
83174
- __privateAdd(this, _columnsCollapsed, __runInitializers(_init112, 80, this, {})), __runInitializers(_init112, 83, this);
83170
+ __privateAdd(this, _boardFetchError, __runInitializers(_init112, 64, this, "")), __runInitializers(_init112, 67, this);
83171
+ __privateAdd(this, _filtersOpen, __runInitializers(_init112, 68, this, false)), __runInitializers(_init112, 71, this);
83172
+ __privateAdd(this, _filterAnnouncement, __runInitializers(_init112, 72, this, "")), __runInitializers(_init112, 75, this);
83173
+ __privateAdd(this, _pendingTicketId2, __runInitializers(_init112, 76, this, "")), __runInitializers(_init112, 79, this);
83174
+ __privateAdd(this, _openingTicket, __runInitializers(_init112, 80, this, false)), __runInitializers(_init112, 83, this);
83175
+ __privateAdd(this, _columnsCollapsed, __runInitializers(_init112, 84, this, {})), __runInitializers(_init112, 87, this);
83175
83176
  __publicField(this, "modal");
83176
83177
  __publicField(this, "modalOpening");
83177
83178
  __publicField(this, "detail");
@@ -83383,6 +83384,7 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83383
83384
  const projects = kanbanProjects(this.projects, this.tickets);
83384
83385
  const firstLoad = this.isFirstLoad();
83385
83386
  const stillLoading = this.firstLoad.stillLoading;
83387
+ const error = this.error || this.operationError || this.boardFetchError;
83386
83388
  return b`<header class="heading">
83387
83389
  <div class="identity">
83388
83390
  <h2>${this.heading || this.t("kanban.board")}</h2>
@@ -83467,7 +83469,7 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83467
83469
  <p class="filterStatus" role="status">${this.filterAnnouncement}</p>
83468
83470
  <p class="loadingStatus" role="status">${firstLoad ? this.t(stillLoading ? "kanban.stillLoading" : "kanban.loading") : ""}</p>
83469
83471
  ${!firstLoad && (this.loading || this.openingTicket) ? b`<p class="caption" role="status">${this.loading ? this.t("kanban.loading") : this.t("kanban.opening")}</p>` : ""}
83470
- ${this.error || this.operationError ? b`<p class="error" role="alert">${this.error || this.operationError}</p>` : ""}
83472
+ ${error ? b`<p class="error" role="alert">${error}</p>` : ""}
83471
83473
  ${!this.columns.length && !firstLoad ? b`<p class="empty">${this.t("kanban.noColumns")}</p>` : b`<div
83472
83474
  class="columns ${this.scrollEdges.fadeClasses()}"
83473
83475
  aria-label=${this.heading || this.t("kanban.board")}
@@ -83876,8 +83878,8 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83876
83878
  * Loads the board again through the provider's `loadBoard` and shows it in place, as a live
83877
83879
  * update does: the open ticket stays open with its unsaved changes and its comment draft, its
83878
83880
  * comments and history load again quietly, and the filters and the scroll stay. Calls made
83879
- * while a load runs share it, and one more load follows it; a snapshot older than `revision`, or
83880
- * loaded while the board saved a change of its own, is not shown.
83881
+ * while a load runs share it, and wait for the follow-up even if the first load fails; a snapshot
83882
+ * older than `revision`, or loaded while the board saved a change of its own, is not shown.
83881
83883
  */
83882
83884
  refresh() {
83883
83885
  if (!this.provider.loadBoard) return Promise.resolve();
@@ -83887,7 +83889,7 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83887
83889
  }
83888
83890
  const load = this.boardLoad = this.loadBoard().finally(() => {
83889
83891
  this.boardLoad = void 0;
83890
- if (this.boardAgain && this.isConnected) void this.refresh();
83892
+ if (this.boardAgain && this.isConnected) return this.refresh();
83891
83893
  });
83892
83894
  return load;
83893
83895
  }
@@ -83900,8 +83902,11 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83900
83902
  try {
83901
83903
  snapshot = await this.provider.loadBoard(controller.signal);
83902
83904
  } catch (error) {
83903
- if (!controller.signal.aborted) this.reportError(error);
83904
- return;
83905
+ if (controller.signal.aborted || !this.isConnected) return;
83906
+ const message = this.boardFetchError = kanbanError(error);
83907
+ kanbanEvent(this, "kanban-error", { error, message });
83908
+ if (controller.signal.aborted || !this.isConnected) return;
83909
+ continue;
83905
83910
  }
83906
83911
  if (controller.signal.aborted || !this.isConnected) return;
83907
83912
  if (this.mutationEpoch !== epoch) {
@@ -83914,6 +83919,7 @@ var _DeesKanban = class _DeesKanban extends (_a110 = DeesElement, _heading_dec11
83914
83919
  } while (this.boardAgain);
83915
83920
  }
83916
83921
  applySnapshot(snapshot) {
83922
+ this.boardFetchError = "";
83917
83923
  this.tickets = [...snapshot.tickets];
83918
83924
  if (snapshot.columns) this.columns = [...snapshot.columns];
83919
83925
  if (snapshot.revision !== void 0) this.revision = snapshot.revision;
@@ -84271,6 +84277,7 @@ _currentPersonId = new WeakMap();
84271
84277
  _filterValues2 = new WeakMap();
84272
84278
  _revision = new WeakMap();
84273
84279
  _operationError = new WeakMap();
84280
+ _boardFetchError = new WeakMap();
84274
84281
  _filtersOpen = new WeakMap();
84275
84282
  _filterAnnouncement = new WeakMap();
84276
84283
  _pendingTicketId2 = new WeakMap();
@@ -84290,6 +84297,7 @@ __decorateElement(_init112, 4, "currentPersonId", _currentPersonId_dec, _DeesKan
84290
84297
  __decorateElement(_init112, 4, "filterValues", _filterValues_dec2, _DeesKanban, _filterValues2);
84291
84298
  __decorateElement(_init112, 4, "revision", _revision_dec, _DeesKanban, _revision);
84292
84299
  __decorateElement(_init112, 4, "operationError", _operationError_dec, _DeesKanban, _operationError);
84300
+ __decorateElement(_init112, 4, "boardFetchError", _boardFetchError_dec, _DeesKanban, _boardFetchError);
84293
84301
  __decorateElement(_init112, 4, "filtersOpen", _filtersOpen_dec, _DeesKanban, _filtersOpen);
84294
84302
  __decorateElement(_init112, 4, "filterAnnouncement", _filterAnnouncement_dec, _DeesKanban, _filterAnnouncement);
84295
84303
  __decorateElement(_init112, 4, "pendingTicketId", _pendingTicketId_dec2, _DeesKanban, _pendingTicketId2);
@@ -127743,7 +127751,7 @@ var bright = {
127743
127751
  // ts_web/00_commitinfo_data.ts
127744
127752
  var commitinfo = {
127745
127753
  name: "@design.estate/dees-catalog",
127746
- version: "22.3.0",
127754
+ version: "22.3.1",
127747
127755
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
127748
127756
  };
127749
127757
  export {