@superblocksteam/library 2.0.3-next.195 → 2.0.3-next.197

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 (28) hide show
  1. package/dist/{allPaths-TKGgbejI.js → allPaths-BTYAJAA3.js} +2 -2
  2. package/dist/{allPaths-TKGgbejI.js.map → allPaths-BTYAJAA3.js.map} +1 -1
  3. package/dist/{allPaths-CPmeaksr.js → allPaths-k-ermJRk.js} +2 -2
  4. package/dist/{allPaths-CPmeaksr.js.map → allPaths-k-ermJRk.js.map} +1 -1
  5. package/dist/{allPathsLoader-B0O4sfbG.js → allPathsLoader-DGPQhqI0.js} +3 -3
  6. package/dist/{allPathsLoader-DhkzAeHr.js.map → allPathsLoader-DGPQhqI0.js.map} +1 -1
  7. package/dist/{allPathsLoader-DhkzAeHr.js → allPathsLoader-XDG2QDHX.js} +3 -3
  8. package/dist/{allPathsLoader-B0O4sfbG.js.map → allPathsLoader-XDG2QDHX.js.map} +1 -1
  9. package/dist/devtools-consolidated-CuKf4Mw6.js +590 -0
  10. package/dist/devtools-consolidated-CuKf4Mw6.js.map +1 -0
  11. package/dist/{index-DzenoqnP.js → index-CFz3UGkJ.js} +331 -270
  12. package/dist/{index-DzenoqnP.js.map → index-CFz3UGkJ.js.map} +1 -1
  13. package/dist/index.css +166 -0
  14. package/dist/index.js +149 -149
  15. package/dist/{splitPathsBySizeLoader-DQGuCgWt.js → splitPathsBySizeLoader-9ypptKho.js} +2 -2
  16. package/dist/{splitPathsBySizeLoader-DQGuCgWt.js.map → splitPathsBySizeLoader-9ypptKho.js.map} +1 -1
  17. package/dist/{splitPathsBySizeLoader-DH3bh2P5.js → splitPathsBySizeLoader-CW0AvZcf.js} +2 -2
  18. package/dist/{splitPathsBySizeLoader-DH3bh2P5.js.map → splitPathsBySizeLoader-CW0AvZcf.js.map} +1 -1
  19. package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
  20. package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
  21. package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
  22. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +12 -9
  23. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +1 -0
  24. package/dist-types/lib/user-facing/components/table/index.d.ts +12 -9
  25. package/dist-types/lib/user-facing/components/table/props.d.ts +12 -9
  26. package/dist-types/lib/user-facing/themes/constants.d.ts +7 -2
  27. package/package.json +3 -4
  28. package/dist-types/lib/internal-details/lib/devtools.d.ts +0 -1
@@ -48,7 +48,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
48
48
  var __privateMethod = (obj, member, method4) => (__accessCheck(obj, member, "access private method"), method4);
49
49
  var _removeSourceIdElement_dec, _setSourceIdElement_dec, _setActiveRootInstanceId_dec, _init, _cancelApi_dec, _runApi_dec, _init2, _renameWidget_dec, _setWidgetProperty_dec, _setWidgetProperties_dec, _writeRuntimeProperties_dec, _deleteComponents_dec, _dropComponent_dec, _createComponent_dec, _batchUpdate_dec, _clearPendingTransactions_dec, _addPendingTransaction_dec, _executeOrAddToBatch_dec, _init3, _addOptimisticCreateWidget_dec, _processRootWidget_dec, _init4, _refreshPositionsAndGetDropConstraints_dec, _init5, _updateChildPositions_dec, _setWidgetPosition_dec, _setActiveTargetRect_dec, _setActiveDragRect_dec, _setDropTargetId_dec, _setInvalidDropTarget_dec, _setValidRootIds_dec, _cancelNewComponentDrag_dec, _startNewComponentDrag_dec, _setIsDragging_dec, _setWidgetFeatures_dec, _init6;
50
50
  import * as React from "react";
51
- import React__default, { isValidElement as isValidElement$1, version as version$2, createContext, useContext, useEffect, useRef, useLayoutEffect as useLayoutEffect$2, Component, useState, useMemo as useMemo$2, useCallback, forwardRef, useImperativeHandle, cloneElement as cloneElement$1, createElement, Children, memo, useReducer, PureComponent, useSyncExternalStore, Suspense, createRef } from "react";
51
+ import React__default, { isValidElement as isValidElement$1, version as version$2, createContext, useContext, useEffect, useRef, useLayoutEffect as useLayoutEffect$2, Component, useState, useMemo as useMemo$2, useCallback, forwardRef, useImperativeHandle, cloneElement as cloneElement$1, createElement, Suspense, Children, memo, useReducer, PureComponent, useSyncExternalStore, createRef } from "react";
52
52
  import { S as SvgClose, a as SvgSystemDanger, b as SvgSystemInfo, c as SvgSystemError, d as SvgSystemSuccess, e as SvgPlus, f as SvgHide, g as SvgChevronDown, h as SvgEmptyCheckbox, i as SvgMinus, j as SvgCheckmark, k as SvgCopy, l as SvgExternalLink, m as SvgPlay, n as SvgDownload, o as SvgTrash, p as SvgFilter, q as SvgFreeze, r as SvgSort, s as SvgEllipsis, t as SvgCrossXs, u as SvgClark } from "./icons-NrNO8p_u.js";
53
53
  import * as ReactDOM from "react-dom";
54
54
  import ReactDOM__default, { unstable_batchedUpdates, flushSync, createPortal } from "react-dom";
@@ -5917,18 +5917,11 @@ if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === "object") {
5917
5917
  $mobx
5918
5918
  });
5919
5919
  }
5920
- let internalStores = {};
5921
- function registerStores(stores) {
5922
- internalStores = { ...internalStores, ...stores };
5923
- }
5924
5920
  class ConnectionManager {
5925
5921
  // The status of the connection to the remote dev server
5926
5922
  constructor() {
5927
5923
  __publicField(this, "connectionStatus", "pre-init");
5928
5924
  makeAutoObservable(this);
5929
- registerStores({
5930
- ConnectionManager: this
5931
- });
5932
5925
  }
5933
5926
  initializeSocket() {
5934
5927
  this.connectionStatus = "connecting";
@@ -43048,9 +43041,6 @@ class InteractionLayerManager {
43048
43041
  __publicField(this, "activeRootInstanceId");
43049
43042
  __publicField(this, "sourceIdElements", /* @__PURE__ */ new Map());
43050
43043
  makeAutoObservable(this);
43051
- registerStores({
43052
- InteractionLayerManager: this
43053
- });
43054
43044
  }
43055
43045
  setActiveRootInstanceId(rootInstanceId) {
43056
43046
  this.activeRootInstanceId = rootInstanceId;
@@ -82751,6 +82741,18 @@ const VALIDATORS = {
82751
82741
  }
82752
82742
  }
82753
82743
  };
82744
+ function mergeRelations(existingRelations, relations) {
82745
+ if (!existingRelations || existingRelations.length === 0) {
82746
+ return relations;
82747
+ }
82748
+ if (!relations || relations.length === 0) {
82749
+ return existingRelations;
82750
+ }
82751
+ const mergedRelations = existingRelations && existingRelations.length > 0 ? existingRelations.flatMap(
82752
+ (existing) => relations.map((relation) => [...existing, ...relation])
82753
+ ) : relations;
82754
+ return mergedRelations;
82755
+ }
82754
82756
  function getChildren(input, path2, entity, scopedState) {
82755
82757
  function getChildrenFromSection(section) {
82756
82758
  return Object.keys(section.props).reduce(
@@ -83187,6 +83189,16 @@ class UnionProp extends Prop {
83187
83189
  getProps() {
83188
83190
  const sharedKeys = Object.keys(this.shared);
83189
83191
  const variants = this.variants;
83192
+ const preMergeRelationsMap = variants.reduce(
83193
+ (acc, v2) => {
83194
+ Object.entries(v2).forEach(([key2, prop]) => {
83195
+ if (acc[key2]) return;
83196
+ acc[key2] = prop.getRelations() ?? [];
83197
+ });
83198
+ return acc;
83199
+ },
83200
+ {}
83201
+ );
83190
83202
  const mergedVariants = variants.reduce(
83191
83203
  (acc, v2) => {
83192
83204
  const variantConstants = Object.entries(v2).filter(
@@ -83200,9 +83212,18 @@ class UnionProp extends Prop {
83200
83212
  });
83201
83213
  const filteredVariant = Object.fromEntries(
83202
83214
  Object.entries(v2).filter(([key2]) => !sharedKeys.includes(key2)).map(([key2, prop]) => {
83203
- var _a2;
83204
- const existingRelations = ((_a2 = acc[key2]) == null ? void 0 : _a2.getRelations()) ?? [];
83205
- return [key2, prop.dependsOn([...existingRelations, relations])];
83215
+ const existingRelations = (prop == null ? void 0 : prop.getRelations()) ?? [];
83216
+ const preMergeRelations = preMergeRelationsMap[key2];
83217
+ const existingNonPreMergeRelations = existingRelations.filter(
83218
+ (r2) => !preMergeRelations.some((p) => p === r2)
83219
+ );
83220
+ return [
83221
+ key2,
83222
+ prop.dependsOn([
83223
+ ...existingNonPreMergeRelations,
83224
+ ...mergeRelations(preMergeRelations, [relations])
83225
+ ])
83226
+ ];
83206
83227
  })
83207
83228
  );
83208
83229
  return { ...acc, ...filteredVariant };
@@ -83474,6 +83495,35 @@ function requireRfdc() {
83474
83495
  var rfdcExports = requireRfdc();
83475
83496
  const clone$3 = /* @__PURE__ */ getDefaultExportFromCjs(rfdcExports);
83476
83497
  const fastClone$1 = clone$3({});
83498
+ let internalStores = {};
83499
+ const SUPPORTED_MODES = ["local-dev"];
83500
+ function registerStores(stores) {
83501
+ internalStores = { ...internalStores, ...stores };
83502
+ if (SUPPORTED_MODES.includes("production")) {
83503
+ if (Object.keys(internalStores).length === Object.keys(stores).length) {
83504
+ import("./devtools-consolidated-CuKf4Mw6.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
83505
+ setRegisteredStores(internalStores);
83506
+ initializeCustomDevTools();
83507
+ }).catch((error) => {
83508
+ console.warn(
83509
+ "[DevTools] Failed to initialize custom devtools:",
83510
+ error
83511
+ );
83512
+ });
83513
+ }
83514
+ }
83515
+ }
83516
+ const DevToolsInternal = React__default.lazy(() => {
83517
+ return import("./devtools-consolidated-CuKf4Mw6.js").then((module2) => ({
83518
+ default: module2.CustomDevTools
83519
+ }));
83520
+ });
83521
+ const DevTools = () => {
83522
+ if (!SUPPORTED_MODES.includes("production")) {
83523
+ return null;
83524
+ }
83525
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DevToolsInternal, {}) });
83526
+ };
83477
83527
  const ARGS_VAR_NAME = "$SB_args";
83478
83528
  const USER_JS_CODE_VAR_NAME = "$SB_userJSCode";
83479
83529
  const SNAPSHOT_VAR_NAME = "$SB_snapshot";
@@ -86268,9 +86318,6 @@ class OperationManager {
86268
86318
  __publicField(this, "batchOperationTransactionId");
86269
86319
  __publicField(this, "visibleSourceIds", []);
86270
86320
  makeAutoObservable(this);
86271
- registerStores({
86272
- OperationManager: this
86273
- });
86274
86321
  }
86275
86322
  get allPendingTransactions() {
86276
86323
  return this.pendingTransactions;
@@ -86647,9 +86694,6 @@ class PropertiesPanelManager {
86647
86694
  makeAutoObservable(this, {
86648
86695
  _propertyLookupCache: false
86649
86696
  });
86650
- registerStores({
86651
- PropertiesPanelManager: this
86652
- });
86653
86697
  }
86654
86698
  getPropertiesPanel(scopeId, instanceId) {
86655
86699
  const props2 = this.entityManager.getEntityById(scopeId, instanceId);
@@ -87024,9 +87068,6 @@ class RuntimeWidgetsManager {
87024
87068
  addWidgetFromPayload: action,
87025
87069
  sourceToInstanceIdSample: observable
87026
87070
  });
87027
- registerStores({
87028
- RuntimeManager: this
87029
- });
87030
87071
  }
87031
87072
  setWidgetMeta(instanceId, meta) {
87032
87073
  const existingMeta = this.widgets[instanceId];
@@ -87377,9 +87418,6 @@ class RuntimeEntitiesManager {
87377
87418
  makeAutoObservable(this, {
87378
87419
  widgets: false
87379
87420
  });
87380
- registerStores({
87381
- DeployedRuntimeManager: this
87382
- });
87383
87421
  }
87384
87422
  processRootWidget(params) {
87385
87423
  this.widgets.processRoot(params);
@@ -87805,9 +87843,6 @@ class GridManager {
87805
87843
  this.root = root2;
87806
87844
  this.dnd = dnd;
87807
87845
  makeAutoObservable(this);
87808
- registerStores({
87809
- GridManager: this
87810
- });
87811
87846
  }
87812
87847
  get draggedInstanceId() {
87813
87848
  var _a2;
@@ -88328,9 +88363,6 @@ class StackManager {
88328
88363
  this.root = root2;
88329
88364
  this.dnd = dnd;
88330
88365
  makeAutoObservable(this);
88331
- registerStores({
88332
- StackManager: this
88333
- });
88334
88366
  }
88335
88367
  refreshPositionsAndGetDropIndex() {
88336
88368
  if (this.dnd.dropTargetId) {
@@ -88400,9 +88432,6 @@ class DragAndDropManager {
88400
88432
  this.stack = new StackManager(root2, this);
88401
88433
  this.grid = new GridManager(root2, this);
88402
88434
  makeAutoObservable(this);
88403
- registerStores({
88404
- DragAndDropManager: this
88405
- });
88406
88435
  startEditorSync({
88407
88436
  store: this,
88408
88437
  storeId: "dnd",
@@ -88643,9 +88672,6 @@ class ResizingManager {
88643
88672
  __publicField(this, "_activeResizes", /* @__PURE__ */ new Map());
88644
88673
  this.root = root2;
88645
88674
  makeAutoObservable(this);
88646
- registerStores({
88647
- ResizingManager: this
88648
- });
88649
88675
  startEditorSync({
88650
88676
  store: this,
88651
88677
  storeId: "resizing",
@@ -88980,9 +89006,6 @@ class UIStore {
88980
89006
  setFocusedInstanceId: action,
88981
89007
  selectWidget: action
88982
89008
  });
88983
- registerStores({
88984
- UIManager: this
88985
- });
88986
89009
  }
88987
89010
  // TODO (Alex): For these getters, we should differentiate between source and instance selection
88988
89011
  isSourceSelected(sourceId) {
@@ -90956,14 +90979,14 @@ function getLoaderFn$1(options) {
90956
90979
  if (!(loader === "all")) return [3, 3];
90957
90980
  return [4, import(
90958
90981
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
90959
- "./allPathsLoader-DhkzAeHr.js"
90982
+ "./allPathsLoader-DGPQhqI0.js"
90960
90983
  )];
90961
90984
  case 2:
90962
90985
  return [2, _b2.sent().allPathsLoader];
90963
90986
  case 3:
90964
90987
  return [4, import(
90965
90988
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
90966
- "./splitPathsBySizeLoader-DQGuCgWt.js"
90989
+ "./splitPathsBySizeLoader-9ypptKho.js"
90967
90990
  )];
90968
90991
  case 4:
90969
90992
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -99521,7 +99544,7 @@ const DEFAULT_TYPOGRAPHIES_NEW = {
99521
99544
  },
99522
99545
  buttonLabel: {
99523
99546
  ...DEFAULT_TYPOGRAPHIES_LEGACY.buttonLabel,
99524
- lineHeight: 1.1
99547
+ lineHeight: 1.2
99525
99548
  },
99526
99549
  code: {
99527
99550
  ...DEFAULT_TYPOGRAPHIES_LEGACY.code,
@@ -99684,12 +99707,6 @@ const BOX_SHADOWS = {
99684
99707
  dark: "0 3px 6px -4px rgba(160, 160, 160, 0.03), 0 6px 16px 0 rgba(160, 160, 160, 0.01)"
99685
99708
  }
99686
99709
  };
99687
- const BUTTON_PADDING = {
99688
- left: { mode: "px", value: 10 },
99689
- right: { mode: "px", value: 10 },
99690
- top: { mode: "px", value: 9 },
99691
- bottom: { mode: "px", value: 9 }
99692
- };
99693
99710
  const INPUT_PADDING = {
99694
99711
  left: Dim.px(10),
99695
99712
  right: Dim.px(10),
@@ -99697,6 +99714,7 @@ const INPUT_PADDING = {
99697
99714
  bottom: Dim.px(8)
99698
99715
  };
99699
99716
  const DROPDOWN_PADDING = INPUT_PADDING;
99717
+ const BUTTON_PADDING = INPUT_PADDING;
99700
99718
  const KEY_VALUE_PADDING = {
99701
99719
  left: Dim.px(20),
99702
99720
  right: Dim.px(20),
@@ -101386,8 +101404,8 @@ const shineAnimation = We$1`
101386
101404
  }
101387
101405
  `;
101388
101406
  const Skeleton2 = qe$1.div`
101389
- width: 24px;
101390
- height: 24px;
101407
+ height: var(--height);
101408
+ width: var(--width);
101391
101409
  border-radius: 50%;
101392
101410
  background: linear-gradient(110deg, #ececec 10%, #f5f5f5 30%, #ececec 60%);
101393
101411
  background-size: 200% 100%;
@@ -135862,20 +135880,31 @@ const textStyleProps = {
135862
135880
  })),
135863
135881
  cellBackground: cellBackgroundProp
135864
135882
  };
135883
+ const computedValueUnion = Prop.union({
135884
+ shared: {
135885
+ isDerived: Prop.boolean().default(false)
135886
+ },
135887
+ variants: [
135888
+ {
135889
+ isDerived: Prop.literal(false)
135890
+ },
135891
+ {
135892
+ isDerived: Prop.literal(true),
135893
+ computedValue: Prop.string().readAndWrite().propertiesPanel({
135894
+ label: "Computed value"
135895
+ // todo: add special control that can use currentRow
135896
+ })
135897
+ }
135898
+ ]
135899
+ }).getProps();
135865
135900
  const textColumnProperties = {
135866
135901
  general: {
135867
- // TODO: bring this back when we are ready
135868
- // computedValue: Prop.string().readAndWrite().propertiesPanel({
135869
- // label: "Computed value",
135870
- // controlType: "COMPUTE_TABLE_VALUE",
135871
- // }),
135872
135902
  displayedValue: Prop.string().readAndWrite().propertiesPanel({
135873
135903
  label: "Displayed value",
135874
135904
  controlType: "COMPUTE_TABLE_VALUE"
135875
135905
  })
135876
135906
  },
135877
135907
  presentation: {
135878
- ...cellIconProps,
135879
135908
  textWrap: Prop.boolean().readAndWrite().propertiesPanel({
135880
135909
  label: "Wrap text",
135881
135910
  controlType: "SWITCH"
@@ -135965,11 +135994,6 @@ const buttonColumnProperties = {
135965
135994
  };
135966
135995
  const numberColumnProperties = {
135967
135996
  general: {
135968
- // TODO: bring this back when we are ready
135969
- // computedValue: Prop.string().readAndWrite().propertiesPanel({
135970
- // label: "Computed value",
135971
- // controlType: "COMPUTE_TABLE_VALUE",
135972
- // }),
135973
135997
  notation: Prop.string().readAndWrite().propertiesPanel({
135974
135998
  label: "Number format",
135975
135999
  controlType: "DROP_DOWN",
@@ -136073,6 +136097,32 @@ const imageColumnProperties = {
136073
136097
  cellBackground: cellBackgroundProp
136074
136098
  }
136075
136099
  };
136100
+ const manageTimezoneUnion = Prop.union({
136101
+ shared: {
136102
+ manageTimezone: Prop.boolean().default(false).readAndWrite().propertiesPanel({
136103
+ label: "Manage timezone",
136104
+ controlType: "SWITCH"
136105
+ })
136106
+ },
136107
+ variants: [
136108
+ {
136109
+ manageTimezone: Prop.literal(false)
136110
+ },
136111
+ {
136112
+ manageTimezone: Prop.literal(true),
136113
+ valueTimezone: Prop.string().readAndWrite().propertiesPanel({
136114
+ label: "Value timezone",
136115
+ controlType: "DROP_DOWN",
136116
+ options: TIMEZONE_OPTIONS
136117
+ }),
136118
+ displayTimezone: Prop.string().readAndWrite().propertiesPanel({
136119
+ label: "Display timezone",
136120
+ controlType: "DROP_DOWN",
136121
+ options: TIMEZONE_OPTIONS
136122
+ })
136123
+ }
136124
+ ]
136125
+ }).getProps();
136076
136126
  const dateColumnProperties = {
136077
136127
  general: {
136078
136128
  inputFormat: Prop.string().readAndWrite().propertiesPanel({
@@ -136085,21 +136135,7 @@ const dateColumnProperties = {
136085
136135
  controlType: "DROP_DOWN",
136086
136136
  options: DATE_OUTPUT_FORMATS
136087
136137
  }),
136088
- // todo: this should actually be a union too (nested unions ?)
136089
- manageTimezone: Prop.boolean().readAndWrite().propertiesPanel({
136090
- label: "Manage timezone",
136091
- controlType: "SWITCH"
136092
- }),
136093
- valueTimezone: Prop.string().readAndWrite().propertiesPanel({
136094
- label: "Value timezone",
136095
- controlType: "DROP_DOWN",
136096
- options: TIMEZONE_OPTIONS
136097
- }),
136098
- displayTimezone: Prop.string().readAndWrite().propertiesPanel({
136099
- label: "Display timezone",
136100
- controlType: "DROP_DOWN",
136101
- options: TIMEZONE_OPTIONS
136102
- })
136138
+ ...manageTimezoneUnion
136103
136139
  },
136104
136140
  presentation: {
136105
136141
  ...cellIconProps,
@@ -136111,13 +136147,7 @@ const dateColumnProperties = {
136111
136147
  }
136112
136148
  };
136113
136149
  const booleanColumnProperties = {
136114
- general: {
136115
- // TODO: bring this back when we are ready
136116
- // computedValue: Prop.string().readAndWrite().propertiesPanel({
136117
- // label: "Computed value",
136118
- // controlType: "COMPUTE_TABLE_VALUE",
136119
- // }),
136120
- },
136150
+ general: {},
136121
136151
  presentation: {
136122
136152
  horizontalAlign: horizontalAlignProp(),
136123
136153
  verticalAlign: verticalAlignProp(),
@@ -136153,26 +136183,14 @@ const booleanColumnProperties = {
136153
136183
  }
136154
136184
  };
136155
136185
  const videoColumnProperties = {
136156
- general: {
136157
- // TODO: bring this back when we are ready
136158
- // computedValue: Prop.string().readAndWrite().propertiesPanel({
136159
- // label: "Computed value",
136160
- // controlType: "COMPUTE_TABLE_VALUE",
136161
- // }),
136162
- },
136186
+ general: {},
136163
136187
  presentation: {
136164
136188
  horizontalAlign: horizontalAlignProp(),
136165
136189
  cellBackground: cellBackgroundProp
136166
136190
  }
136167
136191
  };
136168
136192
  const tagsColumnProperties = {
136169
- general: {
136170
- // TODO: bring this back when we are ready
136171
- // computedValue: Prop.string().readAndWrite().propertiesPanel({
136172
- // label: "Computed value",
136173
- // controlType: "COMPUTE_TABLE_VALUE",
136174
- // }),
136175
- },
136193
+ general: {},
136176
136194
  presentation: {
136177
136195
  horizontalAlign: horizontalAlignProp(),
136178
136196
  verticalAlign: verticalAlignProp(),
@@ -136209,54 +136227,67 @@ const columnPanelConfig = {
136209
136227
  variants: [
136210
136228
  {
136211
136229
  columnType: Prop.unset(),
136230
+ ...computedValueUnion,
136212
136231
  ...textColumnProperties.general
136213
136232
  },
136214
136233
  {
136215
136234
  columnType: Prop.literal(ColumnType.TEXT),
136235
+ ...computedValueUnion,
136216
136236
  ...textColumnProperties.general
136217
136237
  },
136218
136238
  {
136219
136239
  columnType: Prop.literal(ColumnType.NUMBER),
136240
+ ...computedValueUnion,
136220
136241
  ...numberColumnProperties.general
136221
136242
  },
136222
136243
  {
136223
136244
  columnType: Prop.literal(ColumnType.CURRENCY),
136245
+ ...computedValueUnion,
136224
136246
  ...currencyColumnProperties.general
136225
136247
  },
136226
136248
  {
136227
136249
  columnType: Prop.literal(ColumnType.PERCENTAGE),
136250
+ ...computedValueUnion,
136228
136251
  ...percentageColumnProperties.general
136229
136252
  },
136230
136253
  {
136231
136254
  columnType: Prop.literal(ColumnType.IMAGE),
136255
+ ...computedValueUnion,
136232
136256
  ...imageColumnProperties.general
136233
136257
  },
136234
136258
  {
136235
136259
  columnType: Prop.literal(ColumnType.VIDEO),
136260
+ ...computedValueUnion,
136236
136261
  ...videoColumnProperties.general
136237
136262
  },
136238
136263
  {
136239
136264
  columnType: Prop.literal(ColumnType.DATE),
136265
+ ...computedValueUnion,
136240
136266
  ...dateColumnProperties.general
136241
136267
  },
136242
136268
  {
136243
136269
  columnType: Prop.literal(ColumnType.BUTTON),
136270
+ // no computedValue (just buttonLabel)
136244
136271
  ...buttonColumnProperties.general
136245
136272
  },
136246
136273
  {
136247
136274
  columnType: Prop.literal(ColumnType.LINK),
136275
+ // no computedValue (just linkUrl/linkLabel)
136248
136276
  ...linkColumnProperties.general
136249
136277
  },
136250
136278
  {
136251
136279
  columnType: Prop.literal(ColumnType.BOOLEAN),
136280
+ ...computedValueUnion,
136252
136281
  ...booleanColumnProperties.general
136253
136282
  },
136254
136283
  {
136255
136284
  columnType: Prop.literal(ColumnType.TAGS),
136285
+ ...computedValueUnion,
136256
136286
  ...tagsColumnProperties.general
136257
136287
  },
136258
136288
  {
136259
136289
  columnType: Prop.literal(ColumnType.EMAIL),
136290
+ ...computedValueUnion,
136260
136291
  ...emailColumnProperties.general
136261
136292
  }
136262
136293
  ]
@@ -145403,14 +145434,14 @@ function getLoaderFn(options) {
145403
145434
  if (!(loader === "all")) return [3, 3];
145404
145435
  return [4, import(
145405
145436
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
145406
- "./allPathsLoader-B0O4sfbG.js"
145437
+ "./allPathsLoader-XDG2QDHX.js"
145407
145438
  )];
145408
145439
  case 2:
145409
145440
  return [2, _b2.sent().allPathsLoader];
145410
145441
  case 3:
145411
145442
  return [4, import(
145412
145443
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
145413
- "./splitPathsBySizeLoader-DH3bh2P5.js"
145444
+ "./splitPathsBySizeLoader-CW0AvZcf.js"
145414
145445
  )];
145415
145446
  case 4:
145416
145447
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -153405,7 +153436,8 @@ const StyledControlGroup$1 = qe$1(ControlGroup)`
153405
153436
  }
153406
153437
  }
153407
153438
 
153408
- .${INPUT_LEFT_CONTAINER$1}, .${INPUT_ACTION$1} {
153439
+ .${INPUT_LEFT_CONTAINER$1},
153440
+ .${INPUT_ACTION$1} {
153409
153441
  display: flex;
153410
153442
  align-items: center;
153411
153443
  height: 100%;
@@ -153741,24 +153773,32 @@ class DatePickerComponent extends React__default.Component {
153741
153773
  minHeight: this.props.inputLineHeightPx ? `${this.props.inputLineHeightPx + INPUT_ADDITIONAL_MIN_HEIGHT$1}px` : void 0
153742
153774
  },
153743
153775
  onClick: this.props.onInputClick,
153744
- leftElement: this.props.icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(
153745
- "div",
153746
- {
153747
- className: `IconWrapper ${CLASS_NAMES.ICON} ${isInputFocused ? CLASS_NAMES.ACTIVE_MODIFIER : ""} ${this.props.isDisabled || this.props.selectedDate === "" || this.props.selectedDate == null ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${!this.props.isValid ? CLASS_NAMES.ERROR_MODIFIER : ""}`,
153748
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
153749
- DynamicSVG,
153750
- {
153751
- iconName: this.props.icon,
153752
- size: this.props.iconSize ?? DEFAULT_ICON_SIZE$1
153753
- }
153754
- )
153755
- }
153756
- ) : void 0,
153776
+ leftIcon: this.props.icon ? (
153777
+ /**
153778
+ * Use `leftIcon` (with Blueprint's `INPUT_LEFT_CONTAINER` CSS class) instead of `leftElement`.
153779
+ * Blueprint measures `leftElement` width after render to set input padding.
153780
+ * If the element isn't present (e.g., Suspense, modals), it measures 0 and sets `padding-left: 0`, causing overlap.
153781
+ * Setting the style to `paddingLeft` is overridden by Blueprint.
153782
+ */
153783
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
153784
+ "div",
153785
+ {
153786
+ className: `IconWrapper ${CLASS_NAMES.ICON} ${INPUT_LEFT_CONTAINER$1} ${isInputFocused ? CLASS_NAMES.ACTIVE_MODIFIER : ""} ${this.props.isDisabled || this.props.selectedDate === "" || this.props.selectedDate == null ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${!this.props.isValid ? CLASS_NAMES.ERROR_MODIFIER : ""}`,
153787
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
153788
+ DynamicSVG,
153789
+ {
153790
+ iconName: this.props.icon,
153791
+ size: this.props.iconSize ?? DEFAULT_ICON_SIZE$1
153792
+ }
153793
+ )
153794
+ }
153795
+ )
153796
+ ) : null,
153797
+ rightElement: !formatIncludesTimezone(displayFormat) && this.props.showTimezone ? /* @__PURE__ */ jsxRuntimeExports.jsx(Timezone, { timezone: this.displayTimezone }) : void 0,
153798
+ onChange: this.onInputChanged,
153757
153799
  // @ts-expect-error extra props
153758
153800
  "data-invalid": !this.props.isValid && !this.state.isOpen,
153759
- "data-active": this.state.isOpen,
153760
- rightElement: !formatIncludesTimezone(displayFormat) && this.props.showTimezone ? /* @__PURE__ */ jsxRuntimeExports.jsx(Timezone, { timezone: this.displayTimezone }) : void 0,
153761
- onChange: this.onInputChanged
153801
+ "data-active": this.state.isOpen
153762
153802
  },
153763
153803
  popoverProps: {
153764
153804
  ...this.props.forceOpen ? { isOpen: this.state.isOpen } : {},
@@ -162217,6 +162257,17 @@ function getSelectedRows(props2) {
162217
162257
  const selectedRows = selectedRowIndices.map((ind) => filteredTableData[ind]).filter(Boolean);
162218
162258
  return selectedRows;
162219
162259
  }
162260
+ const isDerivedColumn = (tableData, columnId) => {
162261
+ if (!tableData || tableData.length === 0) {
162262
+ return true;
162263
+ }
162264
+ const firstRow = tableData[0];
162265
+ if (!firstRow) {
162266
+ return true;
162267
+ }
162268
+ const isInRow = columnId in firstRow;
162269
+ return !isInRow;
162270
+ };
162220
162271
  function getFilteredTableData(props2) {
162221
162272
  var _a2;
162222
162273
  if (!props2.tableData) {
@@ -162248,7 +162299,8 @@ function getFilteredTableData(props2) {
162248
162299
  return;
162249
162300
  }
162250
162301
  let computedValues = [];
162251
- if (column2 && column2.computedValue) {
162302
+ if (column2 && column2.computedValue && // ignore computed values for non-derived columns (they can only use displayed values)
162303
+ isDerivedColumn(derivedTableData, columnId)) {
162252
162304
  if (lodashExports.isString(column2.computedValue)) {
162253
162305
  try {
162254
162306
  computedValues = JSON.parse(column2.computedValue);
@@ -182771,6 +182823,7 @@ const SbDatePicker = registerSbComponent(
182771
182823
  backgroundColor: props2.backgroundColor,
182772
182824
  textStyle: props2.textStyle
182773
182825
  });
182826
+ const iconSize = useInputIconSize({ textStyle: props2.textStyle });
182774
182827
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DatePickerContainer, { ...passThroughProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
182775
182828
  DatePickerComponent,
182776
182829
  {
@@ -182792,6 +182845,7 @@ const SbDatePicker = registerSbComponent(
182792
182845
  timezone: props2.manageTimezone ? props2.valueTimezone : void 0,
182793
182846
  showTimezone: !!props2.manageTimezone,
182794
182847
  icon: props2.icon,
182848
+ iconSize,
182795
182849
  onDatePickerClosed: handleDatePickerClosed,
182796
182850
  placeholder: props2.placeholder,
182797
182851
  labelStyleOverride: labelProps == null ? void 0 : labelProps.style,
@@ -186360,7 +186414,7 @@ const SbProvider = function SbProvider2({
186360
186414
  },
186361
186415
  id: "sb-provider-root",
186362
186416
  children: [
186363
- /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary2, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
186417
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary2, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
186364
186418
  "div",
186365
186419
  {
186366
186420
  id: CANVAS_ROOT_ID,
@@ -186373,7 +186427,10 @@ const SbProvider = function SbProvider2({
186373
186427
  overflow: "hidden",
186374
186428
  position: "relative"
186375
186429
  },
186376
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalScope, { children: isEmbedded ? /* @__PURE__ */ jsxRuntimeExports.jsx(EmbedWrapper, { children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Auth0Wrapper, { children }) }) })
186430
+ children: [
186431
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalScope, { children: isEmbedded ? /* @__PURE__ */ jsxRuntimeExports.jsx(EmbedWrapper, { children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Auth0Wrapper, { children }) }) }),
186432
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DevTools, {})
186433
+ ]
186377
186434
  }
186378
186435
  ) }),
186379
186436
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: MODAL_TARGET_ROOT_ID, "data-superblocks": MODAL_TARGET_ROOT_ID })
@@ -197786,145 +197843,149 @@ function requireClient() {
197786
197843
  }
197787
197844
  var clientExports = requireClient();
197788
197845
  export {
197789
- HashRouter as $,
197846
+ clientExports as $,
197790
197847
  AppStateVarPersistence6 as A,
197791
- setQueryParams as B,
197792
- download as C,
197793
- showAlert as D,
197794
- logoutIntegrations as E,
197795
- registerScope as F,
197796
- registerPage as G,
197797
- createSbScope as H,
197848
+ SbProvider as B,
197849
+ SbEventFlow as C,
197850
+ copyToClipboard as D,
197851
+ navigateTo as E,
197852
+ setQueryParams as F,
197853
+ download as G,
197854
+ showAlert as H,
197798
197855
  IconSize$2 as I,
197799
- Global as J,
197800
- Embed as K,
197801
- Env as L,
197802
- SbEvent as M,
197803
- useUpdateProperties as N,
197804
- useTheme as O,
197805
- Prop as P,
197806
- sbComputed as Q,
197807
- Dim as R,
197856
+ logoutIntegrations as J,
197857
+ registerScope as K,
197858
+ registerPage as L,
197859
+ createSbScope as M,
197860
+ Global as N,
197861
+ Embed as O,
197862
+ Env as P,
197863
+ SbEvent as Q,
197864
+ useUpdateProperties as R,
197808
197865
  SbButton as S,
197809
197866
  Theme as T,
197810
- SB as U,
197811
- Outlet as V,
197812
- clientExports as W,
197813
- Await as X,
197814
- BrowserRouter as Y,
197815
- Form2 as Z,
197867
+ useTheme as U,
197868
+ Prop as V,
197869
+ sbComputed as W,
197870
+ Dim as X,
197871
+ SB as Y,
197872
+ Outlet as Z,
197816
197873
  __awaiter as _,
197817
197874
  __generator as a,
197818
- href as a$,
197819
- IDLE_BLOCKER as a0,
197820
- IDLE_FETCHER as a1,
197821
- IDLE_NAVIGATION as a2,
197822
- Link as a3,
197823
- Links as a4,
197824
- MemoryRouter as a5,
197825
- Meta as a6,
197826
- NavLink as a7,
197827
- Navigate as a8,
197828
- Action as a9,
197829
- decodeViaTurboStream as aA,
197830
- deserializeErrors2 as aB,
197831
- getPatchRoutesOnNavigationFunction as aC,
197832
- getSingleFetchDataStrategy as aD,
197833
- invariant as aE,
197834
- mapRouteProperties as aF,
197835
- shouldHydrateRouteLoader as aG,
197836
- useFogOFWarDiscovery as aH,
197837
- useScrollRestoration as aI,
197838
- createBrowserRouter as aJ,
197839
- createCookie as aK,
197840
- createCookieSessionStorage as aL,
197841
- createHashRouter as aM,
197842
- createMemoryRouter as aN,
197843
- createMemorySessionStorage as aO,
197844
- createPath as aP,
197845
- createRequestHandler as aQ,
197846
- createRoutesFromChildren as aR,
197847
- createRoutesFromElements as aS,
197848
- createRoutesStub as aT,
197849
- createSearchParams as aU,
197850
- createSession as aV,
197851
- createSessionStorage as aW,
197852
- createStaticHandler2 as aX,
197853
- createStaticRouter as aY,
197854
- data as aZ,
197855
- generatePath as a_,
197856
- PrefetchPageLinks as aa,
197857
- Route as ab,
197858
- Router as ac,
197859
- RouterProvider as ad,
197860
- Routes as ae,
197861
- Scripts as af,
197862
- ScrollRestoration as ag,
197863
- ServerRouter as ah,
197864
- StaticRouter as ai,
197865
- StaticRouterProvider as aj,
197866
- DataRouterContext as ak,
197867
- DataRouterStateContext as al,
197868
- ErrorResponseImpl as am,
197869
- FetchersContext as an,
197870
- FrameworkContext as ao,
197871
- LocationContext as ap,
197872
- NavigationContext as aq,
197873
- RemixErrorBoundary as ar,
197874
- RouteContext as as,
197875
- ServerMode as at,
197876
- SingleFetchRedirectSymbol as au,
197877
- ViewTransitionContext as av,
197878
- createBrowserHistory as aw,
197879
- createClientRoutes as ax,
197880
- createClientRoutesWithHMRRevalidationOptOut as ay,
197881
- createRouter as az,
197875
+ createStaticHandler2 as a$,
197876
+ Await as a0,
197877
+ BrowserRouter as a1,
197878
+ Form2 as a2,
197879
+ HashRouter as a3,
197880
+ IDLE_BLOCKER as a4,
197881
+ IDLE_FETCHER as a5,
197882
+ IDLE_NAVIGATION as a6,
197883
+ Link as a7,
197884
+ Links as a8,
197885
+ MemoryRouter as a9,
197886
+ createBrowserHistory as aA,
197887
+ createClientRoutes as aB,
197888
+ createClientRoutesWithHMRRevalidationOptOut as aC,
197889
+ createRouter as aD,
197890
+ decodeViaTurboStream as aE,
197891
+ deserializeErrors2 as aF,
197892
+ getPatchRoutesOnNavigationFunction as aG,
197893
+ getSingleFetchDataStrategy as aH,
197894
+ invariant as aI,
197895
+ mapRouteProperties as aJ,
197896
+ shouldHydrateRouteLoader as aK,
197897
+ useFogOFWarDiscovery as aL,
197898
+ useScrollRestoration as aM,
197899
+ createBrowserRouter as aN,
197900
+ createCookie as aO,
197901
+ createCookieSessionStorage as aP,
197902
+ createHashRouter as aQ,
197903
+ createMemoryRouter as aR,
197904
+ createMemorySessionStorage as aS,
197905
+ createPath as aT,
197906
+ createRequestHandler as aU,
197907
+ createRoutesFromChildren as aV,
197908
+ createRoutesFromElements as aW,
197909
+ createRoutesStub as aX,
197910
+ createSearchParams as aY,
197911
+ createSession as aZ,
197912
+ createSessionStorage as a_,
197913
+ Meta as aa,
197914
+ NavLink as ab,
197915
+ Navigate as ac,
197916
+ Action as ad,
197917
+ PrefetchPageLinks as ae,
197918
+ Route as af,
197919
+ Router as ag,
197920
+ RouterProvider as ah,
197921
+ Routes as ai,
197922
+ Scripts as aj,
197923
+ ScrollRestoration as ak,
197924
+ ServerRouter as al,
197925
+ StaticRouter as am,
197926
+ StaticRouterProvider as an,
197927
+ DataRouterContext as ao,
197928
+ DataRouterStateContext as ap,
197929
+ ErrorResponseImpl as aq,
197930
+ FetchersContext as ar,
197931
+ FrameworkContext as as,
197932
+ LocationContext as at,
197933
+ NavigationContext as au,
197934
+ RemixErrorBoundary as av,
197935
+ RouteContext as aw,
197936
+ ServerMode as ax,
197937
+ SingleFetchRedirectSymbol as ay,
197938
+ ViewTransitionContext as az,
197882
197939
  IconSize as b,
197883
- isCookie as b0,
197884
- isRouteErrorResponse as b1,
197885
- isSession as b2,
197886
- matchPath as b3,
197887
- matchRoutes as b4,
197888
- parsePath as b5,
197889
- redirect as b6,
197890
- redirectDocument as b7,
197891
- renderMatches as b8,
197892
- replace2 as b9,
197893
- useParams as bA,
197894
- useResolvedPath as bB,
197895
- useRevalidator as bC,
197896
- useRouteError as bD,
197897
- useRouteLoaderData as bE,
197898
- useRoutes as bF,
197899
- useSearchParams as bG,
197900
- useSubmit as bH,
197901
- useViewTransitionState as bI,
197902
- resolvePath as ba,
197903
- HistoryRouter as bb,
197904
- unstable_RouterContextProvider as bc,
197905
- unstable_createContext as bd,
197906
- setDevServerHooks as be,
197907
- usePrompt as bf,
197908
- useActionData as bg,
197909
- useAsyncError as bh,
197910
- useAsyncValue as bi,
197911
- useBeforeUnload as bj,
197912
- useBlocker as bk,
197913
- useFetcher as bl,
197914
- useFetchers as bm,
197915
- useFormAction as bn,
197916
- useHref as bo,
197917
- useInRouterContext as bp,
197918
- useLinkClickHandler as bq,
197919
- useLoaderData as br,
197920
- useLocation as bs,
197921
- useMatch as bt,
197922
- useMatches as bu,
197923
- useNavigate as bv,
197924
- useNavigation as bw,
197925
- useNavigationType as bx,
197926
- useOutlet as by,
197927
- useOutletContext as bz,
197940
+ createStaticRouter as b0,
197941
+ data as b1,
197942
+ generatePath as b2,
197943
+ href as b3,
197944
+ isCookie as b4,
197945
+ isRouteErrorResponse as b5,
197946
+ isSession as b6,
197947
+ matchPath as b7,
197948
+ matchRoutes as b8,
197949
+ parsePath as b9,
197950
+ useNavigation as bA,
197951
+ useNavigationType as bB,
197952
+ useOutlet as bC,
197953
+ useOutletContext as bD,
197954
+ useParams as bE,
197955
+ useResolvedPath as bF,
197956
+ useRevalidator as bG,
197957
+ useRouteError as bH,
197958
+ useRouteLoaderData as bI,
197959
+ useRoutes as bJ,
197960
+ useSearchParams as bK,
197961
+ useSubmit as bL,
197962
+ useViewTransitionState as bM,
197963
+ redirect as ba,
197964
+ redirectDocument as bb,
197965
+ renderMatches as bc,
197966
+ replace2 as bd,
197967
+ resolvePath as be,
197968
+ HistoryRouter as bf,
197969
+ unstable_RouterContextProvider as bg,
197970
+ unstable_createContext as bh,
197971
+ setDevServerHooks as bi,
197972
+ usePrompt as bj,
197973
+ useActionData as bk,
197974
+ useAsyncError as bl,
197975
+ useAsyncValue as bm,
197976
+ useBeforeUnload as bn,
197977
+ useBlocker as bo,
197978
+ useFetcher as bp,
197979
+ useFetchers as bq,
197980
+ useFormAction as br,
197981
+ useHref as bs,
197982
+ useInRouterContext as bt,
197983
+ useLinkClickHandler as bu,
197984
+ useLoaderData as bv,
197985
+ useLocation as bw,
197986
+ useMatch as bx,
197987
+ useMatches as by,
197988
+ useNavigate as bz,
197928
197989
  SbSection as c,
197929
197990
  SbColumn as d,
197930
197991
  SbContainer as e,
@@ -197932,22 +197993,22 @@ export {
197932
197993
  SbPage as g,
197933
197994
  SbText as h,
197934
197995
  SbModal as i,
197935
- SbTable as j,
197936
- SbDropdown as k,
197937
- SbCustom as l,
197938
- SbCheckbox as m,
197939
- SbDatePicker as n,
197940
- SbSwitch as o,
197996
+ jsxRuntimeExports as j,
197997
+ SbTable as k,
197998
+ SbDropdown as l,
197999
+ makeAutoObservable as m,
198000
+ SbCustom as n,
198001
+ observer as o,
197941
198002
  pascalCase as p,
197942
- SbIcon as q,
198003
+ SbCheckbox as q,
197943
198004
  registerComponent as r,
197944
- SbImage as s,
197945
- SbVariable as t,
197946
- SbTimer as u,
197947
- SbApi as v,
197948
- SbProvider as w,
197949
- SbEventFlow as x,
197950
- copyToClipboard as y,
197951
- navigateTo as z
197952
- };
197953
- //# sourceMappingURL=index-DzenoqnP.js.map
198005
+ SbDatePicker as s,
198006
+ toJS as t,
198007
+ SbSwitch as u,
198008
+ SbIcon as v,
198009
+ SbImage as w,
198010
+ SbVariable as x,
198011
+ SbTimer as y,
198012
+ SbApi as z
198013
+ };
198014
+ //# sourceMappingURL=index-CFz3UGkJ.js.map