@paperless/core 1.22.0 → 1.22.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.
package/hydrate/index.js CHANGED
@@ -21139,12 +21139,12 @@ class Select {
21139
21139
  return (hAsync("p", { class: "w-full p-2 text-storm-medium text-sm text-center" }, this.emptyStateText));
21140
21140
  }
21141
21141
  const items = this._items.map((item) => {
21142
- var _a, _b, _c;
21143
- return (hAsync("p-dropdown-menu-item", { onClick: () => this._selectValue(item), active: this.multi
21144
- ? ((_a = this._selectedItem) === null || _a === void 0 ? void 0 : _a.findIndex((i) => i[this._identifierKey] ===
21145
- item[this._identifierKey])) >= 0
21142
+ var _a, _b;
21143
+ return (hAsync("p-dropdown-menu-item", { onClick: () => this._selectValue(item), active: this.multi && !!this._selectedItem
21144
+ ? this._selectedItem.findIndex((i) => i[this._identifierKey] ===
21145
+ item[this._identifierKey]) >= 0
21146
21146
  : item[this._identifierKey] ===
21147
- ((_b = this._selectedItem) === null || _b === void 0 ? void 0 : _b[this._identifierKey]), variant: this.multi ? 'checkbox' : 'default' }, this.avatarKey ? (hAsync("span", { class: "flex items-center gap-2" }, hAsync("p-avatar", { size: "xsmall", src: item[this.avatarKey], letters: item[this.avatarLettersKey] }), item[(_c = this.dropdownDisplayKey) !== null && _c !== void 0 ? _c : this.displayKey])) : (item[this.displayKey])));
21147
+ ((_a = this._selectedItem) === null || _a === void 0 ? void 0 : _a[this._identifierKey]), variant: this.multi ? 'checkbox' : 'default' }, this.avatarKey ? (hAsync("span", { class: "flex items-center gap-2" }, hAsync("p-avatar", { size: "xsmall", src: item[this.avatarKey], letters: item[this.avatarLettersKey] }), item[(_b = this.dropdownDisplayKey) !== null && _b !== void 0 ? _b : this.displayKey])) : (item[this.displayKey])));
21148
21148
  });
21149
21149
  if (this.enableSelectAll) {
21150
21150
  items.unshift(hAsync("p-dropdown-menu-item", { variant: "checkbox", onClick: () => this._selectAllChange(), active: this._allSelected }, ((_b = this.selectAllIcon) === null || _b === void 0 ? void 0 : _b.length) ? (hAsync("span", { class: "flex items-center gap-2" }, hAsync("div", { class: "w-6 justify-center flex text-lg" }, hAsync("p-icon", { variant: this.selectAllIcon })), this.selectAllText)) : (this.selectAllText)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",