@orangelogic/design-system 4.33.0 → 4.34.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.
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
14
14
  import { t as x } from "./button.BlhGCsjP.js";
15
15
  import { t as ee } from "./tooltip.GjnTzFeL.js";
16
16
  import { t as te } from "./line-clamp.CgiUerew.js";
17
- import { C as ne, D as re, E as ie, O as ae, S as oe, T as se, _ as ce, a as le, b as ue, c as de, g as fe, i as pe, l as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.Dt3rHy1I.js";
17
+ import { C as ne, D as re, E as ie, O as ae, S as oe, T as se, _ as ce, a as le, b as ue, c as de, g as fe, i as pe, l as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.C4eA970k.js";
18
18
  import { t as O } from "./typography.B0mkhqTB.js";
19
19
  import { t as k } from "./button-group.CPfXrqyq.js";
20
20
  import { t as A } from "./card.3c-X4hqR.js";
@@ -63,7 +63,7 @@ import { T as K } from "./asset-link-format.vbmd2KkO.js";
63
63
  import { n as Qe } from "./_baseXor.Ca5K0ORC.js";
64
64
  import { n as $e, s as et, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
65
65
  import { i as tt } from "./_baseClone.CnI5Vpqn.js";
66
- import { E as nt, l as J, s as rt, t as it } from "./configs-controller.CvDG3a6j.js";
66
+ import { E as nt, l as J, s as rt, t as it } from "./configs-controller.saCTvDW1.js";
67
67
  import { t as at } from "./isEmpty.D3QQduJ5.js";
68
68
  import { i as ot } from "./cloneDeep.C6x5LNv3.js";
69
69
  //#region ../../node_modules/lodash-es/difference.js
@@ -16,7 +16,7 @@ import { g as _e, m as b, p as ve, s as x } from "./responsive.L9Csz2w2.js";
16
16
  import { n as ye, r as be } from "./header.CU8r46mR.js";
17
17
  import { d as xe, f as S, l as C, o as w, s as Se } from "./endpoints.jOHOmF_t.js";
18
18
  import { n as Ce } from "./folder-select.CQllI-Id.js";
19
- import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.DQ0J-XI-.js";
19
+ import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.BF_AFUh6.js";
20
20
  import { n as Te } from "./isEmpty.D3QQduJ5.js";
21
21
  import { a as k } from "./cloneDeep.C6x5LNv3.js";
22
22
  //#region ../../packages/services/src/api/dashboard/dashboard.ts
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/color-swatch-group.DQ0J-XI-.js";
1
+ import { t as e } from "../chunks/color-swatch-group.BF_AFUh6.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
1
  import { t as e } from "../chunks/asset-link-format.vbmd2KkO.js";
2
- import { t } from "../chunks/color-swatch-group.DQ0J-XI-.js";
2
+ import { t } from "../chunks/color-swatch-group.BF_AFUh6.js";
3
3
  import { t as n } from "../chunks/file-on-demand.C17w6fng.js";
4
4
  export { e as CxAssetLinkFormat, t as CxColorSwatchGroup, n as CxFileOnDemand };
@@ -38,7 +38,7 @@ import { t as kt } from "../chunks/resize-observer.D9EHlnZI.js";
38
38
  import { t as At } from "../chunks/line-clamp.CgiUerew.js";
39
39
  import { t as jt } from "../chunks/tag.V9YP_T0h.js";
40
40
  import { t as Mt } from "../chunks/array-line-clamp.DSzPRb_y.js";
41
- import { A as Nt, C as Pt, D as Ft, E as It, O as Lt, S as Rt, T as zt, d as Bt, f as Vt, h as Ht, k as Ut, m as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt, w as Zt, x as Qt } from "../chunks/block-width.Dt3rHy1I.js";
41
+ import { A as Nt, C as Pt, D as Ft, E as It, O as Lt, S as Rt, T as zt, d as Bt, f as Vt, h as Ht, k as Ut, m as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt, w as Zt, x as Qt } from "../chunks/block-width.C4eA970k.js";
42
42
  import { n as $t, t as en } from "../chunks/position-picker.dY_vgF_H.js";
43
43
  import { a as tn, i as nn, n as rn, o as an, r as on, s as sn, t as cn } from "../chunks/src.BJhIYoMP.js";
44
44
  import { a as ln, c as un, i as dn, n as fn, o as pn, r as mn, t as hn, u as gn } from "../chunks/time.p1t0NCwj.js";
@@ -166,11 +166,11 @@ import { t as rc } from "../chunks/size-input-group.CR0wHbEO.js";
166
166
  import { t as ic } from "../chunks/stepper-wizard.CZSapmS6.js";
167
167
  import { t as ac } from "../chunks/typeface.CHo-Lj6f.js";
168
168
  import { T as oc, _ as sc, a as cc, b as lc, c as uc, d as dc, l as fc, m as pc, n as mc, o as hc, r as gc, s as _c, t as vc, v as yc } from "../chunks/asset-link-format.vbmd2KkO.js";
169
- import { c as bc, h as xc, l as Sc, m as Cc, p as eee, t as tee, u as wc } from "../chunks/color-swatch-group.DQ0J-XI-.js";
169
+ import { c as bc, h as xc, l as Sc, m as Cc, p as eee, t as tee, u as wc } from "../chunks/color-swatch-group.BF_AFUh6.js";
170
170
  import { n as Tc } from "../chunks/isArrayLikeObject.Da3IzQeH.js";
171
171
  import { t as Ec } from "../chunks/file-on-demand.C17w6fng.js";
172
172
  import "../events.js";
173
- import { A as Dc, B as Oc, C as kc, D as Ac, F as jc, I as nee, J as Mc, L as ree, M as iee, N as aee, O as Nc, P as oee, R as see, T as Pc, X as Fc, Y as Ic, _ as Lc, a as Rc, at as zc, b as Bc, c as Vc, d as Hc, f as Uc, i as Wc, it as Gc, j as Kc, k as qc, m as Jc, nt as Yc, o as Xc, ot as Zc, p as Qc, q as $c, r as el, rt as tl, s as nl, t as rl, tt as il, u as al, v as ol, w as sl, x as cl, z as ll } from "../chunks/configs-controller.CvDG3a6j.js";
173
+ import { A as Dc, B as Oc, C as kc, D as Ac, F as jc, I as nee, J as Mc, L as ree, M as iee, N as aee, O as Nc, P as oee, R as see, T as Pc, X as Fc, Y as Ic, _ as Lc, a as Rc, at as zc, b as Bc, c as Vc, d as Hc, f as Uc, i as Wc, it as Gc, j as Kc, k as qc, m as Jc, nt as Yc, o as Xc, ot as Zc, p as Qc, q as $c, r as el, rt as tl, s as nl, t as rl, tt as il, u as al, v as ol, w as sl, x as cl, z as ll } from "../chunks/configs-controller.saCTvDW1.js";
174
174
  import { i as ul } from "../chunks/timer.M6Aa3L_j.js";
175
175
  import { a as dl, c as fl, d as pl, f as ml, i as hl, l as gl, n as cee, o as lee, r as uee, s as _l, t as vl, u as yl } from "../chunks/src.CLGAM3OO.js";
176
176
  import { t as bl } from "../chunks/value.C4_tUrAq.js";
@@ -95056,7 +95056,7 @@ var j5 = class extends d {
95056
95056
  return this.mappedSupportedLanguages.length > 1;
95057
95057
  }
95058
95058
  ensureConfigUi() {
95059
- return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.D_OHYD1k.js"), import("../chunks/configs-controller.CvDG3a6j.js").then((e) => e.n)]).then(async ([, e]) => {
95059
+ return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.DS9hzkG8.js"), import("../chunks/configs-controller.saCTvDW1.js").then((e) => e.n)]).then(async ([, e]) => {
95060
95060
  this.configsController ??= new e.default(this.localize), await customElements.whenDefined("cx-config-manager"), await this.configManager?.updateComplete;
95061
95061
  });
95062
95062
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.33.0",
4
+ "version": "4.34.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -44,6 +44,7 @@ import { default as CxBoard } from './components/board/board';
44
44
  * id: string;
45
45
  * index?: string;
46
46
  * metadata?: Record<string, string>;
47
+ * multiValueMetadata?: Record<string, string[]>;
47
48
  * text: string;
48
49
  * tooltip: string;
49
50
  * }
@@ -2,6 +2,8 @@ import { BoardItem } from '../../../../types/src/board';
2
2
  import { SelectedFacets } from '../../../../types/src/faceted-filter';
3
3
  import { MetadataFacetData } from '../../../../types/src/multi-select';
4
4
  export declare const compareFunction: (a: BoardItem, b: BoardItem) => number;
5
+ /** Whether at least one of `item`'s values under `facetKey` is among `allowedValues`. */
6
+ export declare function matchesMetadataFacet(item: BoardItem, facetKey: string, allowedValues: ReadonlySet<string>): boolean;
5
7
  /**
6
8
  * Counts items per `(facet key, value)` pair. The counting unit is the pair, never the value on
7
9
  * its own — the same string under two different keys is two unrelated facet values.
@@ -19,6 +19,11 @@ export interface BoardItem {
19
19
  * from `cx-multi-select`'s `labelMap`; keys absent from that map are ignored.
20
20
  */
21
21
  metadata?: Record<string, string>;
22
+ /**
23
+ * Like `metadata`, for a facet where the item holds several values (a field used by several
24
+ * subtypes): the item counts once under each value and matches when any of them is ticked.
25
+ */
26
+ multiValueMetadata?: Record<string, string[]>;
22
27
  text: string;
23
28
  tooltip: string;
24
29
  type?: string;
@@ -27,7 +27,7 @@
27
27
  export type CxMasonryMasonryItem = { "alt": string; "backgroundColor": string; "extension": string; "hasError": boolean; "id": string; "loading": boolean; "maxWidth": string; "objectFit": "contain" | "cover" | "fill" | "none" | "scale-down"; "size": string; "src": string; "srcset": string; };
28
28
  export type CxMasonryMasonryItemAction = { "color": string; "event": string; "icon": string; "src": string; "tooltip": string; };
29
29
  export type CxMentionsAutocompleteItem = { "id": string; "label": string; "name": string; "suffixContent": string; "suffixIcon": string; "suffixTooltip": string; "suffixType": "badge"; "title": string; "type": string; };
30
- export type CxMultiSelectColumnData = { "dividerColor": string; "id": string; "items": { "disabled": boolean; "group": string; "id": string; "index": string; "metadata": dictionary; "text": string; "tooltip": string; "type": string; }[]; "sort": boolean; "title": string; };
30
+ export type CxMultiSelectColumnData = { "dividerColor": string; "id": string; "items": { "disabled": boolean; "group": string; "id": string; "index": string; "metadata": dictionary; "multiValueMetadata": dictionary; "text": string; "tooltip": string; "type": string; }[]; "sort": boolean; "title": string; };
31
31
  export type CxShareOptionListShareOptionListItem = { "disabled": boolean; "icon": string; "id": string; "name": string; "tooltip": string; };
32
32
  export type CxStepperWizardStepData = { "color": string; "description": string; "icon": string; "iconVariant": "outlined" | "filled" | "fa"; "id": string; "name": string; "readonly": boolean; "state": "Done" | "Active" | "None" | "Disabled"; };
33
33
  export type CxAssetLinkFormatAsset = { "allowATSLink": boolean; "docSubType": string; "docType": "Album" | "Audio" | "Audio segment" | "Image" | "Multimedia" | "ProjectDocument" | "Story" | "Video" | "Widget"; "extension": string; "height": string; "id": string; "identifier": string; "imageUrl": string; "name": string; "scrubUrl": string; "size": string; "width": string; };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.33.0",
4
+ "version": "4.34.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {