@orangelogic/design-system 2.167.0 → 2.169.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.
Files changed (99) hide show
  1. package/library/chunks/{asset-link-format.DZxMYHXr.js → asset-link-format.BSo7khRt.js} +5 -5
  2. package/library/chunks/{button.0_maNYUS.js → button.DDem_XZq.js} +1 -1
  3. package/library/chunks/{color-swatch-group.Bf3Y6g59.js → color-swatch-group.C_PwK2oY.js} +420 -366
  4. package/library/chunks/{color-swatch.QsHoy_K1.js → color-swatch.DpzAGKQx.js} +1 -1
  5. package/library/chunks/{confirm-popover.B0QtiuAB.js → confirm-popover.Cx6BUoTL.js} +3 -3
  6. package/library/chunks/{dialog.05FgdLBZ.js → dialog.B_v8598F.js} +2 -2
  7. package/library/chunks/{document-viewer.CLgrca4F.js → document-viewer.BT1kp8Ig.js} +5 -5
  8. package/library/chunks/{dot-pagination.Pg9O0nIh.js → dot-pagination.BqGFeFXK.js} +1 -1
  9. package/library/chunks/{folder-select.BSFjkzJr.js → folder-select.B9qqU1CQ.js} +139 -107
  10. package/library/chunks/{header.DDI0MfJA.js → header.CWlWNree.js} +1 -1
  11. package/library/chunks/{i18n.Bchq8v1d.js → i18n.DbXTTLXx.js} +1 -0
  12. package/library/chunks/{icon-button.BwmMJ0bI.js → icon-button.DJvfUmOl.js} +1 -1
  13. package/library/chunks/{iframe.Cc-xZIm_.js → iframe.-GCTFas1.js} +1 -1
  14. package/library/chunks/{image.BgODrAzQ.js → image.mG-NXUWX.js} +1 -1
  15. package/library/chunks/{input.DOorVTYZ.js → input.B-c9KEAH.js} +1 -1
  16. package/library/chunks/{markdown.I1AJG75v.js → markdown.qQGMz1OY.js} +2 -2
  17. package/library/chunks/{option.DyNR1vzy.js → option.Bvyag0r1.js} +1 -1
  18. package/library/chunks/{pagination.CuoIeOp9.js → pagination.TxcRv9BL.js} +5 -5
  19. package/library/chunks/{tab-group.f6LdzCbP.js → tab-group.BdWDbwBy.js} +3 -3
  20. package/library/chunks/{tree.vn5sHbdt.js → tree.B0-6Ny9b.js} +31 -31
  21. package/library/components/alert.js +2 -2
  22. package/library/components/asset-link-format.js +3 -3
  23. package/library/components/atoms.js +14 -14
  24. package/library/components/audio.js +2 -2
  25. package/library/components/border-input-group.js +2 -2
  26. package/library/components/breadcrumb.js +1 -1
  27. package/library/components/button.js +2 -2
  28. package/library/components/color-picker.js +3 -3
  29. package/library/components/color-swatch-group.js +3 -3
  30. package/library/components/color-swatch.js +2 -2
  31. package/library/components/confirm-popover.js +4 -4
  32. package/library/components/copy-button.js +1 -1
  33. package/library/components/corner-position-input-group.js +3 -3
  34. package/library/components/date-calendar.js +1 -1
  35. package/library/components/details.js +1 -1
  36. package/library/components/dialog.js +3 -3
  37. package/library/components/document-viewer.js +3 -3
  38. package/library/components/dot-pagination.js +2 -2
  39. package/library/components/drawer.js +2 -2
  40. package/library/components/dropdown.js +2 -2
  41. package/library/components/dynamic-select.js +4 -4
  42. package/library/components/e-chart.js +1 -1
  43. package/library/components/element-clamp.js +2 -2
  44. package/library/components/file-on-demand.js +9 -9
  45. package/library/components/folder-select.js +6 -5
  46. package/library/components/format-bytes.js +1 -1
  47. package/library/components/format-date.js +1 -1
  48. package/library/components/format-number.js +1 -1
  49. package/library/components/format-time.js +1 -1
  50. package/library/components/header.js +2 -2
  51. package/library/components/icon-button.js +2 -2
  52. package/library/components/iframe.js +2 -2
  53. package/library/components/image-comparer.js +1 -1
  54. package/library/components/image.js +2 -2
  55. package/library/components/input.js +2 -2
  56. package/library/components/line-clamp.js +1 -1
  57. package/library/components/markdown.js +3 -3
  58. package/library/components/masonry.js +2 -2
  59. package/library/components/menu-item.js +1 -1
  60. package/library/components/menu.js +1 -1
  61. package/library/components/molecules.js +3 -3
  62. package/library/components/option.js +2 -2
  63. package/library/components/organisms.js +2 -2
  64. package/library/components/padding-input-group.js +1 -1
  65. package/library/components/pagination.js +6 -6
  66. package/library/components/popup.js +1 -1
  67. package/library/components/position-picker.js +1 -1
  68. package/library/components/progress-bar.js +1 -1
  69. package/library/components/progress-ring.js +1 -1
  70. package/library/components/range.js +1 -1
  71. package/library/components/rating.js +1 -1
  72. package/library/components/relative-time.js +1 -1
  73. package/library/components/select.js +2 -2
  74. package/library/components/shadow-input-group.js +1 -1
  75. package/library/components/share-option-list.js +1 -1
  76. package/library/components/sidebar.js +1 -1
  77. package/library/components/size-input-group.js +3 -3
  78. package/library/components/spinner.js +1 -1
  79. package/library/components/split-panel.js +1 -1
  80. package/library/components/tab-group.js +4 -4
  81. package/library/components/tab.js +2 -2
  82. package/library/components/tag.js +18 -18
  83. package/library/components/tooltip.js +1 -1
  84. package/library/components/tree-item.js +2 -2
  85. package/library/components/tree.js +2 -2
  86. package/library/components/typeface.js +2 -2
  87. package/library/components/types.js +1993 -1977
  88. package/library/components/video.js +2 -2
  89. package/library/package.json +1 -1
  90. package/library/packages/hybrid/table-core/src/table/table.d.ts +5 -4
  91. package/library/packages/hybrid/table-core/src/tabulator-tables/core/cell/Cell.d.ts +5 -1
  92. package/library/packages/molecules/src/faceted-filter/components/facet/facet.d.ts +1 -0
  93. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  94. package/library/packages/molecules/src/folder-select/folder-select.d.ts +9 -0
  95. package/library/packages/organisms/src/xml-editor/components/element-tag/element-tag.d.ts +3 -0
  96. package/library/packages/types/src/table.d.ts +3 -1
  97. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
  98. package/library/utils.js +1 -1
  99. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
2
2
  import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
3
3
  import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
4
- import { C as Cb } from "../chunks/image.BgODrAzQ.js";
4
+ import { C as Cb } from "../chunks/image.mG-NXUWX.js";
5
5
  import Mb from "./resize-observer.js";
6
6
  import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
7
7
  import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
8
8
  import { b as Ib } from "../chunks/browser.BHOCIF_A.js";
9
9
  import { c as Ob } from "../chunks/custom-element.L4WJXn1j.js";
10
- import { L as kb } from "../chunks/i18n.Bchq8v1d.js";
10
+ import { L as kb } from "../chunks/i18n.DbXTTLXx.js";
11
11
  import { w as Ki } from "../chunks/watch.DJF5K-8U.js";
12
12
  import { i as Bb, x as Qc } from "../chunks/lit-element.jLBm65_O.js";
13
13
  import { n as Ri } from "../chunks/lib-cortex-element.CVMmyPMC.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.167.0",
4
+ "version": "2.169.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -832,15 +832,16 @@ export default class CxTable extends CortexElement {
832
832
  * Full in-memory rows parsed from `dataUrl` when `pagination` is on —
833
833
  * deliberately a plain field (not `@state()`): `internalAjaxRequestFunc`
834
834
  * reads it at call time on every page request, so updating it must not by
835
- * itself trigger a re-render or `initTable()` re-run (only flipping
836
- * `paginationMode` should, and only once, the first time see
837
- * `loadFromDataUrl()`).
835
+ * itself trigger a re-render or `initTable()` re-run nothing on this path
836
+ * does, since the loader that reads this array is created in `initTable()`
837
+ * itself rather than by flipping a watched property.
838
838
  */
839
839
  private inMemoryDataUrlRows;
840
840
  /** Row index -> field -> failures, from validating `inMemoryDataUrlRows` against `columns`' `validator` configs. Same non-reactive rationale as `inMemoryDataUrlRows`. */
841
841
  private inMemoryValidationResult;
842
- /** Internally-generated `ajaxRequestFunc` paging `inMemoryDataUrlRows`, set up by `loadFromDataUrl()`. */
842
+ /** Internally-generated `ajaxRequestFunc` paging `inMemoryDataUrlRows`, set up by `initTable()`. */
843
843
  private internalAjaxRequestFunc;
844
+ private lastAttemptedDataUrl;
844
845
  /** True when facets are available — either from facet-config or from an AJAX response. Controls toolbar visibility. */
845
846
  hasFacets: boolean;
846
847
  /** Whether the column-header right-click context menu is open. */
@@ -19,14 +19,17 @@ export default class Cell extends CoreFeature implements ICell {
19
19
  loaded: boolean;
20
20
  calcs?: Record<string, any>;
21
21
  hoverMenuElement: HTMLElement | null;
22
+ /** Guards the deferred build so a deleted cell is never resurrected by a late getElement(). */
23
+ private deleted;
22
24
  constructor(column: IColumn, row: IRow);
23
25
  /**
24
26
  * Setup Functions
25
27
  */
26
28
  build(): void;
29
+ buildElement(): void;
27
30
  generateElement(): void;
28
31
  _configureCell(): void;
29
- updateCellClass(): void;
32
+ updateCellClass(firstVisibleColumn?: IColumn, lastVisibleColumn?: IColumn): void;
30
33
  getTextFormat(): Record<string, string>;
31
34
  _generateContents(): void;
32
35
  cellRendered(): void;
@@ -53,6 +56,7 @@ export default class Cell extends CoreFeature implements ICell {
53
56
  setHeight(): void;
54
57
  getHeight(): number;
55
58
  show(): void;
59
+ attachToRow(element: HTMLElement): void;
56
60
  hide(): void;
57
61
  delete(): void;
58
62
  getIndex(): number;
@@ -49,6 +49,7 @@ export default class CxFacetedFilterFacet extends CortexElement {
49
49
  private static parseFacetValue;
50
50
  handleValuesChange(): void;
51
51
  private loadMore;
52
+ private renderNoResults;
52
53
  render(): import('lit').TemplateResult<1>;
53
54
  }
54
55
  declare global {
@@ -87,6 +87,13 @@ export default class CxFolderSelectTree extends CortexElement {
87
87
  loadMore(event: MouseEvent): Promise<void>;
88
88
  handleFetchFolders(): Promise<void>;
89
89
  handleSelectedValueChange(): Promise<void>;
90
+ /**
91
+ * Drop any `currentRootIDsSet` key whose id is no longer in `selectedValue`.
92
+ * `seedSelectionFromValue` only ever adds keys, so an externally driven
93
+ * `value` change that removes an id would otherwise leave its tree-item
94
+ * (and cx-select's tag) stuck as selected.
95
+ */
96
+ private removeDeselectedRootIDs;
90
97
  private fetchFolders;
91
98
  private handleChildrenLoaded;
92
99
  private removePreloadedFolders;
@@ -60,6 +60,15 @@ export default class CxFolderSelect extends CortexElement {
60
60
  private handleSearchTermSelectChange;
61
61
  private handleTreeLoadingChange;
62
62
  private handleSelectClear;
63
+ /**
64
+ * cx-folder-select-tree owns `currentRootIDsSet` (the real source of
65
+ * truth for multi-select) — a user toggling a tree-item, or removing a
66
+ * tag (which flows through `option.selected = false` → tree-item →
67
+ * tree), only ever mutates that set. Nothing else pushes the result back
68
+ * into our own public `value`, so re-derive it here whenever the tree
69
+ * reports a selection change.
70
+ */
71
+ private syncValueFromTree;
63
72
  /**
64
73
  * cx-select's own `value` only reflects our `value` correctly the very
65
74
  * first time it parses the initial `value` attribute. Any
@@ -47,6 +47,8 @@ export default class CxXmlEditorElementTag extends CortexElement {
47
47
  order: string;
48
48
  /** Whether this row is the tree's root (suppresses copy/delete/paste and draws no border). */
49
49
  isRoot: boolean;
50
+ /** Whether this row is the first among its rendered siblings (rounds its top corners). */
51
+ isFirst: boolean;
50
52
  canAdd: boolean;
51
53
  canEdit: boolean;
52
54
  canCopy: boolean;
@@ -56,6 +58,7 @@ export default class CxXmlEditorElementTag extends CortexElement {
56
58
  private showMenu;
57
59
  handleNameChange(): void;
58
60
  handleIsRootChange(): void;
61
+ handleIsFirstChange(): void;
59
62
  private handleActionButtonClick;
60
63
  render(): import('lit').TemplateResult<1>;
61
64
  }
@@ -186,9 +186,10 @@ export interface ICell extends ICoreFeature {
186
186
  calcs?: Record<string, any>;
187
187
  hoverMenuElement: HTMLElement | null;
188
188
  build(): void;
189
+ buildElement(): void;
189
190
  generateElement(): void;
190
191
  _configureCell(): void;
191
- updateCellClass(): void;
192
+ updateCellClass(firstVisibleColumn?: IColumn, lastVisibleColumn?: IColumn): void;
192
193
  getTextFormat(): Record<string, string>;
193
194
  _generateContents(): void;
194
195
  cellRendered(): void;
@@ -209,6 +210,7 @@ export interface ICell extends ICoreFeature {
209
210
  setHeight(): void;
210
211
  getHeight(): number;
211
212
  show(): void;
213
+ attachToRow(element: HTMLElement): void;
212
214
  hide(): void;
213
215
  delete(): void;
214
216
  getIndex(): number;
@@ -680,6 +680,7 @@ export interface Translation extends DefaultTranslation {
680
680
  noPalette: string;
681
681
  noPreviewAvailable: string;
682
682
  noResults: string;
683
+ noResultsFound: string;
683
684
  noSavedSearch: string;
684
685
  noSlidesAddedYet: string;
685
686
  noSourceUrlProvided: string;
package/library/utils.js CHANGED
@@ -13,7 +13,7 @@ import { d as Oe } from "./chunks/drag.DenOh3AE.js";
13
13
  import { f as Ye } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
14
  import { f as k } from "./chunks/form.CP9KLGjF.js";
15
15
  import { F as Ue, c as _e, g as Pe, v as Xe, a as He } from "./chunks/form.CP9KLGjF.js";
16
- import { L as Be, r as $e } from "./chunks/i18n.Bchq8v1d.js";
16
+ import { L as Be, r as $e } from "./chunks/i18n.DbXTTLXx.js";
17
17
  import { c as ze, q as qe } from "./chunks/math.DuKzLacZ.js";
18
18
  import { g as Ze } from "./chunks/modal.jdGhujoh.js";
19
19
  import { g as Je, l as Ke, s as tr, u as er } from "./chunks/scroll.xtO5yojm.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.167.0",
4
+ "version": "2.169.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {