@flamingo-stack/openframe-frontend-core 0.0.807 → 0.0.809

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 (76) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-WKVAD374.cjs → chunk-3B76QFXV.cjs} +4 -4
  3. package/dist/{chunk-BAOKF4OV.cjs → chunk-DDFT6VQ3.cjs} +3 -3
  4. package/dist/{chunk-3B6PFUL3.cjs → chunk-FRS2VO22.cjs} +71 -19
  5. package/dist/{chunk-224GFGSR.cjs → chunk-KCB72H7A.cjs} +16 -16
  6. package/dist/{chunk-XDVBSTFB.cjs → chunk-KITOT3DS.cjs} +7 -7
  7. package/dist/{chunk-QPHQVTJO.cjs → chunk-LUICXMHC.cjs} +2 -2
  8. package/dist/{chunk-Z4IYLXJU.cjs → chunk-OFGYPMTE.cjs} +15 -15
  9. package/dist/{chunk-QWB3CTGR.cjs → chunk-Q3C6UJJ7.cjs} +24 -24
  10. package/dist/{chunk-M5NBPOKJ.cjs → chunk-UVLTUSH3.cjs} +678 -640
  11. package/dist/{chunk-MBGUHO7Z.cjs → chunk-VKAFZCFV.cjs} +16 -16
  12. package/dist/{chunk-XCYL3TYS.cjs → chunk-VUKN6KEE.cjs} +34 -34
  13. package/dist/{chunk-74I2HT4X.cjs → chunk-WDL3GFH2.cjs} +12 -12
  14. package/dist/{chunk-IEDID3EB.cjs → chunk-WV44WJKR.cjs} +3 -3
  15. package/dist/{cloud-tenants-KL2COIBU.cjs → cloud-tenants-DJAA23GR.cjs} +3 -3
  16. package/dist/components/case-studies/index.cjs +12 -12
  17. package/dist/components/contact/index.cjs +4 -4
  18. package/dist/components/docs/index.cjs +6 -6
  19. package/dist/components/embeds/index.cjs +4 -4
  20. package/dist/components/faq/index.cjs +4 -4
  21. package/dist/components/features/index.cjs +3 -3
  22. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
  23. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +16 -4
  24. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +1 -1
  25. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -1
  26. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +9 -2
  27. package/dist/components/help-center-pages/index.cjs +55 -55
  28. package/dist/components/index.cjs +21 -19
  29. package/dist/components/meeting-scheduler/index.cjs +28 -28
  30. package/dist/components/navigation/index.cjs +4 -4
  31. package/dist/components/onboarding-guides/index.cjs +5 -5
  32. package/dist/components/product-demo/index.cjs +13 -13
  33. package/dist/components/tickets/index.cjs +6 -6
  34. package/dist/components/ui/assignee-dropdown.d.ts +10 -0
  35. package/dist/components/ui/assignee-dropdown.d.ts.map +1 -1
  36. package/dist/components/ui/assignee-dropdown.js +14 -2
  37. package/dist/components/ui/autocomplete.d.ts +24 -0
  38. package/dist/components/ui/autocomplete.d.ts.map +1 -1
  39. package/dist/components/ui/autocomplete.js +26 -4
  40. package/dist/components/ui/filter-modal.d.ts.map +1 -1
  41. package/dist/components/ui/filter-modal.js +1 -1
  42. package/dist/components/ui/index.cjs +5 -3
  43. package/dist/components/ui/reopen-ticket-modal.d.ts +17 -1
  44. package/dist/components/ui/reopen-ticket-modal.d.ts.map +1 -1
  45. package/dist/components/ui/reopen-ticket-modal.js +8 -15
  46. package/dist/components/ui/searchable-select.d.ts +17 -0
  47. package/dist/components/ui/searchable-select.d.ts.map +1 -1
  48. package/dist/components/ui/searchable-select.js +24 -9
  49. package/dist/components/ui/server-search-options.d.ts +30 -0
  50. package/dist/components/ui/server-search-options.d.ts.map +1 -0
  51. package/dist/components/ui/server-search-options.js +30 -0
  52. package/dist/components/ui/take-over-ticket-modal.d.ts +25 -1
  53. package/dist/components/ui/take-over-ticket-modal.d.ts.map +1 -1
  54. package/dist/components/ui/take-over-ticket-modal.js +14 -14
  55. package/dist/components/ui/ticket-info-section.d.ts +2 -0
  56. package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
  57. package/dist/components/ui/ticket-info-section.js +2 -1
  58. package/dist/{devices-3HQDYLE2.cjs → devices-AIDQW4HB.cjs} +4 -4
  59. package/dist/index.cjs +6 -4
  60. package/dist/{knowledge-6LA6XYUR.cjs → knowledge-JWCFM3GO.cjs} +3 -3
  61. package/dist/{logs-R4YZI33F.cjs → logs-ZNIXPJXA.cjs} +11 -11
  62. package/dist/{policies-DGJMMGXN.cjs → policies-Z4NGPLA2.cjs} +7 -7
  63. package/dist/{remote-session-HLGLKOGW.cjs → remote-session-LMUFV2RZ.cjs} +4 -4
  64. package/dist/{scripts-6KR5UZQY.cjs → scripts-G4Y5SPOW.cjs} +10 -10
  65. package/dist/{software-update-R63SKZQM.cjs → software-update-VAOKDA76.cjs} +7 -7
  66. package/package.json +1 -1
  67. package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +10 -1
  68. package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +10 -4
  69. package/src/components/ui/assignee-dropdown.tsx +29 -1
  70. package/src/components/ui/autocomplete.tsx +68 -5
  71. package/src/components/ui/filter-modal.tsx +3 -1
  72. package/src/components/ui/reopen-ticket-modal.tsx +22 -14
  73. package/src/components/ui/searchable-select.tsx +52 -8
  74. package/src/components/ui/server-search-options.ts +65 -0
  75. package/src/components/ui/take-over-ticket-modal.tsx +35 -13
  76. package/src/components/ui/ticket-info-section.tsx +3 -0
@@ -8,10 +8,10 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
8
8
  var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
9
9
 
10
10
 
11
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
11
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
12
12
  require('./chunk-FLW2VL5W.cjs');
13
13
  require('./chunk-NG3RKTQU.cjs');
14
- require('./chunk-3B6PFUL3.cjs');
14
+ require('./chunk-FRS2VO22.cjs');
15
15
  require('./chunk-HQQE74RO.cjs');
16
16
  require('./chunk-DEY6XXGO.cjs');
17
17
  require('./chunk-AZJYMTBS.cjs');
@@ -1905,7 +1905,7 @@ function KnowledgeScreen(_props) {
1905
1905
  const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1906
1906
  const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
1907
1907
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1908
- _chunkM5NBPOKJcjs.KnowledgeBaseArticleView,
1908
+ _chunkUVLTUSH3cjs.KnowledgeBaseArticleView,
1909
1909
  {
1910
1910
  ...fixture.article,
1911
1911
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKS5V55HNcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
@@ -16,10 +16,10 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
19
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
20
20
  require('./chunk-FLW2VL5W.cjs');
21
21
  require('./chunk-NG3RKTQU.cjs');
22
- require('./chunk-3B6PFUL3.cjs');
22
+ require('./chunk-FRS2VO22.cjs');
23
23
  require('./chunk-HQQE74RO.cjs');
24
24
  require('./chunk-DEY6XXGO.cjs');
25
25
  require('./chunk-AZJYMTBS.cjs');
@@ -1886,7 +1886,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
1886
1886
  id: logId,
1887
1887
  logId,
1888
1888
  timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
1889
- status: { label: severity, variant: _chunkM5NBPOKJcjs.logSeverityVariant.call(void 0, severity) },
1889
+ status: { label: severity, variant: _chunkUVLTUSH3cjs.logSeverityVariant.call(void 0, severity) },
1890
1890
  source: { name: toolType, toolType },
1891
1891
  device: device2,
1892
1892
  description: { title: summary }
@@ -1958,13 +1958,13 @@ var NO_FILTERS = {};
1958
1958
  var ACTION_COLUMNS = ["copy", "quickView", "open"];
1959
1959
  var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
1960
1960
  var logHref = () => "#";
1961
- var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.LogCopyIconButton, {});
1961
+ var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.LogCopyIconButton, {});
1962
1962
  function LogsScreen({ compact = false }) {
1963
1963
  const [dock, setDock] = _react.useState.call(void 0, null);
1964
1964
  const selected = LOGS_FIXTURE_SELECTED;
1965
1965
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
1966
1966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1967
- _chunkM5NBPOKJcjs.LogsPageView,
1967
+ _chunkUVLTUSH3cjs.LogsPageView,
1968
1968
  {
1969
1969
  showHeader: false,
1970
1970
  className: "p-[var(--spacing-system-l)]",
@@ -1972,7 +1972,7 @@ function LogsScreen({ compact = false }) {
1972
1972
  onSearchChange: noop,
1973
1973
  onOpenFilters: noop,
1974
1974
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1975
- _chunkM5NBPOKJcjs.LogsTableView,
1975
+ _chunkUVLTUSH3cjs.LogsTableView,
1976
1976
  {
1977
1977
  logs: LOGS_FIXTURE_ENTRIES,
1978
1978
  facets: LOGS_FIXTURE_FACETS,
@@ -1986,8 +1986,8 @@ function LogsScreen({ compact = false }) {
1986
1986
  )
1987
1987
  }
1988
1988
  ) }),
1989
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
- _chunkM5NBPOKJcjs.LogDrawer,
1989
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
+ _chunkUVLTUSH3cjs.LogDrawer,
1991
1991
  {
1992
1992
  docked: true,
1993
1993
  isOpen: true,
@@ -1999,12 +1999,12 @@ function LogsScreen({ compact = false }) {
1999
1999
  { label: "Log ID", value: selected.logId },
2000
2000
  {
2001
2001
  label: "Source",
2002
- value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.ToolBadge, { toolType: _chunkBT53NHR7cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2002
+ value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.ToolBadge, { toolType: _chunkBT53NHR7cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2003
2003
  },
2004
- { label: "Device", value: _chunkM5NBPOKJcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2004
+ { label: "Device", value: _chunkUVLTUSH3cjs.logSourceLabels.call(void 0, selected.device).deviceName }
2005
2005
  ],
2006
2006
  deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2007
- _chunkM5NBPOKJcjs.DeviceCard,
2007
+ _chunkUVLTUSH3cjs.DeviceCard,
2008
2008
  {
2009
2009
  ...LOGS_FIXTURE_DEVICE,
2010
2010
  actions: {
@@ -10,10 +10,10 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
13
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
14
14
  require('./chunk-FLW2VL5W.cjs');
15
15
  require('./chunk-NG3RKTQU.cjs');
16
- require('./chunk-3B6PFUL3.cjs');
16
+ require('./chunk-FRS2VO22.cjs');
17
17
  require('./chunk-HQQE74RO.cjs');
18
18
  require('./chunk-DEY6XXGO.cjs');
19
19
  require('./chunk-AZJYMTBS.cjs');
@@ -1891,14 +1891,14 @@ var POLICIES = [
1891
1891
  policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
1892
1892
  ];
1893
1893
  var POLICIES_FIXTURE = {
1894
- summary: _chunkM5NBPOKJcjs.computePolicySummary.call(void 0, POLICIES),
1894
+ summary: _chunkUVLTUSH3cjs.computePolicySummary.call(void 0, POLICIES),
1895
1895
  rows: POLICIES.map((item) => ({
1896
1896
  id: item.id,
1897
1897
  name: item.name,
1898
1898
  description: item.description,
1899
1899
  critical: item.critical,
1900
1900
  severityLabel: item.critical ? "Critical" : "Low",
1901
- status: _chunkM5NBPOKJcjs.getPolicyTableStatus.call(void 0, item),
1901
+ status: _chunkUVLTUSH3cjs.getPolicyTableStatus.call(void 0, item),
1902
1902
  actions: [
1903
1903
  { label: "Policy Details", onClick: noop },
1904
1904
  { label: "Delete Policy", onClick: noop }
@@ -1912,16 +1912,16 @@ var POLICIES_FIXTURE = {
1912
1912
  var _jsxruntime = require('react/jsx-runtime');
1913
1913
  function PoliciesScreen({ compact = false }) {
1914
1914
  const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1915
- _chunkM5NBPOKJcjs.PoliciesTable,
1915
+ _chunkUVLTUSH3cjs.PoliciesTable,
1916
1916
  {
1917
1917
  rows: POLICIES_FIXTURE.rows,
1918
1918
  rowAsLink: true,
1919
- rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.DataTable.RowCount, {}),
1919
+ rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.DataTable.RowCount, {}),
1920
1920
  emptyMessage: "No policies found."
1921
1921
  }
1922
1922
  );
1923
1923
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col gap-[var(--spacing-system-l)] bg-ods-bg p-[var(--spacing-system-l)]", children: [
1924
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1924
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1925
1925
  table
1926
1926
  ] });
1927
1927
  }
@@ -11,7 +11,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
14
+ var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
15
15
  require('./chunk-7Z536SPR.cjs');
16
16
  require('./chunk-KVJKKVB3.cjs');
17
17
  require('./chunk-JTIGKLKJ.cjs');
@@ -1920,7 +1920,7 @@ function TaskbarApp({ icon, active = false }) {
1920
1920
  );
1921
1921
  }
1922
1922
  function RemoteDesktopPicture({ desktop }) {
1923
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${_chunk3B6PFUL3cjs.DEVICE_WALLPAPER_CLASS}`, children: [
1923
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `absolute inset-0 flex flex-col overflow-hidden ${_chunkFRS2VO22cjs.DEVICE_WALLPAPER_CLASS}`, children: [
1924
1924
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative min-h-0 flex-1", children: [
1925
1925
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "absolute left-[var(--spacing-system-sf)] top-[var(--spacing-system-sf)] hidden flex-col gap-[var(--spacing-system-sf)] content-md:flex", children: [
1926
1926
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesktopShortcut, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIYHH5EIOcjs.TrashIcon, { className: "h-5 w-5" }), label: "Recycle Bin" }),
@@ -1984,7 +1984,7 @@ function RemoteSessionScreen({ compact = false }) {
1984
1984
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col bg-ods-bg", children: [
1985
1985
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[var(--spacing-system-l)] flex-shrink-0" }),
1986
1986
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1987
- _chunk3B6PFUL3cjs.RemoteDesktopView,
1987
+ _chunkFRS2VO22cjs.RemoteDesktopView,
1988
1988
  {
1989
1989
  ...fixture.view,
1990
1990
  onEnterFullscreen: noop,
@@ -1995,7 +1995,7 @@ function RemoteSessionScreen({ compact = false }) {
1995
1995
  screen: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteDesktopPicture, { desktop: fixture.desktop }),
1996
1996
  chat: compact ? null : (
1997
1997
  // The side column needs the room of the wide layout; a narrow frame keeps the screen alone.
1998
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.RemoteDesktopChatPanel, { ...fixture.chat, sending: false, onSend: keepDraft, variant: "side" }) })
1998
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden min-h-0 content-md:flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.RemoteDesktopChatPanel, { ...fixture.chat, sending: false, onSend: keepDraft, variant: "side" }) })
1999
1999
  )
2000
2000
  }
2001
2001
  ) })
@@ -13,12 +13,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
16
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
17
17
  require('./chunk-FLW2VL5W.cjs');
18
18
  require('./chunk-NG3RKTQU.cjs');
19
19
 
20
20
 
21
- var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
21
+ var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
22
22
  require('./chunk-HQQE74RO.cjs');
23
23
  require('./chunk-DEY6XXGO.cjs');
24
24
  require('./chunk-AZJYMTBS.cjs');
@@ -1995,8 +1995,8 @@ function buildScriptsFixture(cast) {
1995
1995
  var _jsxruntime = require('react/jsx-runtime');
1996
1996
  var WIDE_HIDDEN_COLUMNS = ["result", "open"];
1997
1997
  var COMPACT_COLUMNS = [
1998
- { ..._chunkM5NBPOKJcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
- _chunkM5NBPOKJcjs.EXECUTION_COLUMNS.status
1998
+ { ..._chunkUVLTUSH3cjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
+ _chunkUVLTUSH3cjs.EXECUTION_COLUMNS.status
2000
2000
  ];
2001
2001
  var COMPACT_ROWS = 4;
2002
2002
  var TOKEN_CLASS = {
@@ -2046,16 +2046,16 @@ function ScriptCodePicture({ script }) {
2046
2046
  children: [
2047
2047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)] border-b border-ods-border p-[var(--spacing-system-m)]", children: [
2048
2048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
2049
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.TruncateText, { variant: "h4", children: script.name }),
2049
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h4", children: script.name }),
2050
2050
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h6", children: [
2051
2051
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPKKRHUMcjs.TimerIcon, { className: "size-4 text-ods-text-secondary" }),
2052
2052
  `${schedule.repeat} ${schedule.time} \xB7 ${schedule.deviceCount} devices`
2053
2053
  ] })
2054
2054
  ] }),
2055
2055
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
2056
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
2056
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRS2VO22cjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
2057
2057
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2058
- _chunkM5NBPOKJcjs.ScriptShellBadge,
2058
+ _chunkUVLTUSH3cjs.ScriptShellBadge,
2059
2059
  {
2060
2060
  value: script.shellType,
2061
2061
  className: "shrink-0 text-ods-text-secondary text-h6",
@@ -2079,7 +2079,7 @@ function ScriptsScreen({ compact = false }) {
2079
2079
  return (
2080
2080
  // Four runs of the card's row height fill the frame; the padding is what is left round them.
2081
2081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-hidden bg-ods-bg p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2082
- _chunkM5NBPOKJcjs.ScriptExecutionsTable,
2082
+ _chunkUVLTUSH3cjs.ScriptExecutionsTable,
2083
2083
  {
2084
2084
  rows: fixture.executions.slice(0, COMPACT_ROWS),
2085
2085
  columns: COMPACT_COLUMNS,
@@ -2089,13 +2089,13 @@ function ScriptsScreen({ compact = false }) {
2089
2089
  ) })
2090
2090
  );
2091
2091
  }
2092
- const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2092
+ const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVLTUSH3cjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2093
2093
  return (
2094
2094
  // The frame's tighter padding and no header row: the output opened under a run needs the height.
2095
2095
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full gap-[var(--spacing-system-m)] overflow-hidden bg-ods-bg p-[var(--spacing-system-m)]", children: [
2096
2096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
2097
2097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2098
- _chunkM5NBPOKJcjs.ScriptExecutionsTable,
2098
+ _chunkUVLTUSH3cjs.ScriptExecutionsTable,
2099
2099
  {
2100
2100
  rows: fixture.executions,
2101
2101
  hideColumns: WIDE_HIDDEN_COLUMNS,
@@ -15,12 +15,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
18
+ var _chunkUVLTUSH3cjs = require('./chunk-UVLTUSH3.cjs');
19
19
  require('./chunk-FLW2VL5W.cjs');
20
20
  require('./chunk-NG3RKTQU.cjs');
21
21
 
22
22
 
23
- var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
23
+ var _chunkFRS2VO22cjs = require('./chunk-FRS2VO22.cjs');
24
24
  require('./chunk-HQQE74RO.cjs');
25
25
  require('./chunk-DEY6XXGO.cjs');
26
26
  require('./chunk-AZJYMTBS.cjs');
@@ -1920,14 +1920,14 @@ var noop = () => {
1920
1920
  var HIDDEN_WHEN_COMPACT = ["organization"];
1921
1921
  function StaticPackageField({ value }) {
1922
1922
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1923
- _chunk3B6PFUL3cjs.Autocomplete,
1923
+ _chunkFRS2VO22cjs.Autocomplete,
1924
1924
  {
1925
- label: _chunkM5NBPOKJcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunkUVLTUSH3cjs.PACKAGE_SEARCH_LABEL,
1926
1926
  labelVariant: "large",
1927
1927
  options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
1928
1928
  value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
1929
1929
  onChange: noop,
1930
- placeholder: _chunkM5NBPOKJcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunkUVLTUSH3cjs.PACKAGE_SEARCH_PLACEHOLDER
1931
1931
  }
1932
1932
  );
1933
1933
  }
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1941
1941
  [fixture.devices, fixture.selectedIds]
1942
1942
  );
1943
1943
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1944
- _chunkM5NBPOKJcjs.SoftwareActionForm,
1944
+ _chunkUVLTUSH3cjs.SoftwareActionForm,
1945
1945
  {
1946
1946
  action: fixture.action,
1947
1947
  showHeader: false,
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1953
1953
  initialValues: fixture.initialValues,
1954
1954
  renderPackageSearch,
1955
1955
  renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1956
- _chunkM5NBPOKJcjs.DeviceSelector,
1956
+ _chunkUVLTUSH3cjs.DeviceSelector,
1957
1957
  {
1958
1958
  devices: selected,
1959
1959
  loading: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.807",
3
+ "version": "0.0.809",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -11,6 +11,7 @@ import { type ScheduleFormData, SCHEDULE_OFFLINE_BEHAVIOR_OPTIONS } from './sche
11
11
  import { ScheduleIntervalInput } from './schedule-interval-input';
12
12
  import {
13
13
  DURATION_UNIT_OPTIONS,
14
+ DURATION_UNIT_VALUES,
14
15
  type DurationUnit,
15
16
  isEventTrigger,
16
17
  isRetryOnReconnect,
@@ -77,7 +78,15 @@ function ReconnectWindowFields({
77
78
  {/* Switching to minutes drags the interval up to the floor with it: "1 Day"
78
79
  would otherwise read "1 Minute", a value the user never typed and the
79
80
  form cannot save. Coarser units clear the floor by construction. */}
80
- <Select value={unit} onValueChange={(next: DurationUnit) => onUnitChange(next)} disabled={disabled}>
81
+ <Select
82
+ value={unit}
83
+ onValueChange={value => {
84
+ // Radix hands over a plain string; only an option's value is taken.
85
+ const next = DURATION_UNIT_VALUES.find(option => option === value);
86
+ if (next) onUnitChange(next);
87
+ }}
88
+ disabled={disabled}
89
+ >
81
90
  <SelectTrigger className={controlWidth} aria-label="Stop retry after unit">
82
91
  <SelectValue />
83
92
  </SelectTrigger>
@@ -10,7 +10,7 @@ import { CheckboxBlock } from '../../../ui/checkbox-block';
10
10
  import { DatePickerInputSimple } from '../../../ui/date-picker';
11
11
  import { Label } from '../../../ui/label';
12
12
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../../../ui/select';
13
- import type { ScheduleTimeReference } from './schedule-enums';
13
+ import { SCHEDULE_TIME_REFERENCE, type ScheduleTimeReference } from './schedule-enums';
14
14
  import {
15
15
  SCHEDULE_TIME_REFERENCE_OPTIONS,
16
16
  type ScheduleFormData,
@@ -20,7 +20,7 @@ import {
20
20
  import { ScheduleIntervalInput } from './schedule-interval-input';
21
21
  import {
22
22
  DURATION_UNIT_OPTIONS,
23
- type DurationUnit,
23
+ DURATION_UNIT_VALUES,
24
24
  earliestScheduleDay,
25
25
  getTimeSlotOptions,
26
26
  isEventTrigger,
@@ -374,7 +374,11 @@ export function ScheduleTimingFields({
374
374
  render={({ field }) => (
375
375
  <Select
376
376
  value={field.value}
377
- onValueChange={(next: ScheduleTimeReference) => handleTimeReferenceChange(field.onChange, next)}
377
+ // Radix hands over a plain string; only an option's value is taken.
378
+ onValueChange={value => {
379
+ const next = Object.values(SCHEDULE_TIME_REFERENCE).find(reference => reference === value);
380
+ if (next) handleTimeReferenceChange(field.onChange, next);
381
+ }}
378
382
  disabled={fieldsDisabled}
379
383
  >
380
384
  {/* No placeholder: the field always holds one of the two
@@ -455,7 +459,9 @@ export function ScheduleTimingFields({
455
459
  // value the user never typed and the form cannot save. The
456
460
  // other direction needs nothing — every coarser unit is
457
461
  // already a whole number of slots at any interval.
458
- onValueChange={(next: DurationUnit) => {
462
+ onValueChange={value => {
463
+ const next = DURATION_UNIT_VALUES.find(unit => unit === value);
464
+ if (!next) return;
459
465
  field.onChange(next);
460
466
  const snapped = snapRepeatInterval(getValues('repeatInterval'), next);
461
467
  if (snapped !== getValues('repeatInterval')) setValue('repeatInterval', snapped);
@@ -35,6 +35,16 @@ export interface AssigneeDropdownProps {
35
35
  * open a Take Over confirmation for tickets still worked by the AI.
36
36
  */
37
37
  onTriggerClick?: () => void;
38
+ /**
39
+ * Server search. When set, `options` is the server's answer to the query
40
+ * reported here and is not filtered locally: called with the picker's raw
41
+ * query on every keystroke (debounce in the caller), and with `''` when the
42
+ * picker resets — it closes, or a pick clears it — so the caller can go back
43
+ * to its unfiltered first page. While `isLoading`, the previous rows stay
44
+ * listed. The selection renders from `currentAssignee`, so it holds whether
45
+ * or not the current answer includes it.
46
+ */
47
+ onSearchChange?: (query: string) => void;
38
48
  }
39
49
 
40
50
  export function AssigneeDropdown(props: AssigneeDropdownProps) {
@@ -51,6 +61,7 @@ function CompactAssigneeDropdown({
51
61
  onAssign,
52
62
  className,
53
63
  onTriggerClick,
64
+ onSearchChange,
54
65
  }: AssigneeDropdownProps) {
55
66
  const hasAssignee = !!currentAssignee;
56
67
 
@@ -134,6 +145,7 @@ function CompactAssigneeDropdown({
134
145
  searchPlaceholder="Search users..."
135
146
  emptyText="No users found"
136
147
  isLoading={isLoading}
148
+ onSearchChange={onSearchChange}
137
149
  trigger={trigger}
138
150
  align="end"
139
151
  contentClassName="w-72"
@@ -141,9 +153,23 @@ function CompactAssigneeDropdown({
141
153
  );
142
154
  }
143
155
 
144
- function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign, className }: AssigneeDropdownProps) {
156
+ function DefaultAssigneeDropdown({
157
+ currentAssignee,
158
+ options,
159
+ isLoading,
160
+ onAssign,
161
+ className,
162
+ onSearchChange,
163
+ }: AssigneeDropdownProps) {
145
164
  const [isEditing, setIsEditing] = useState(false);
146
165
  const hasAssignee = !!currentAssignee;
166
+ // Under server search the current assignee is often not in the answer (not
167
+ // on the first page, or not matching the query), and the field would then
168
+ // read the raw id. `currentAssignee` already names them.
169
+ const selectedOptions: TicketAssigneeOption[] | undefined =
170
+ onSearchChange && currentAssignee
171
+ ? [{ value: currentAssignee.id, label: currentAssignee.name, imageUrl: currentAssignee.avatarSrc }]
172
+ : undefined;
147
173
 
148
174
  const renderOption = useCallback((option: AutocompleteOption) => {
149
175
  const opt = option as TicketAssigneeOption;
@@ -176,6 +202,8 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
176
202
  }}
177
203
  placeholder="Search users..."
178
204
  loading={isLoading}
205
+ onSearchChange={onSearchChange}
206
+ selectedOptions={selectedOptions}
179
207
  showChevron={false}
180
208
  startAdornment={
181
209
  hasAssignee ? (
@@ -30,6 +30,7 @@ import { Button } from './button';
30
30
  import { FieldWrapper } from './field-wrapper';
31
31
  import { HiddenTagsPopup } from './hidden-tags-popup';
32
32
  import { LoadingItems, useLoadingScope } from './loading-scope';
33
+ import { useRememberedSelection, useSettledOptions } from './server-search-options';
33
34
  import { Tag } from './tag';
34
35
  import { TruncateText } from './truncate-text';
35
36
 
@@ -124,6 +125,30 @@ interface AutocompleteBaseProps<T = string> {
124
125
  isDeletingOption?: boolean;
125
126
  /** When true, disables built-in client-side filtering (useful when options are filtered server-side via onInputChange) */
126
127
  disableClientFilter?: boolean;
128
+ /**
129
+ * Server search. When set, `options` is the server's answer to the query
130
+ * reported here, not a list to filter:
131
+ *
132
+ * - called with the raw query on every keystroke (debounce in the caller),
133
+ * and with `''` whenever the field resets — a pick, closing the dropdown,
134
+ * Escape, the clear button — so the caller can go back to its unfiltered
135
+ * first page. Repeats are not reported.
136
+ * - nothing is filtered locally (`filterOptions` / `disableClientFilter` are
137
+ * moot).
138
+ * - while `loading`, the options stay listed (the field's spinner still
139
+ * turns), and an `options` emptied mid-load falls back to the last list
140
+ * that settled; the loading rows show only with nothing to list yet.
141
+ * - a selected value missing from the current answer keeps the label and
142
+ * icon of the last option seen for it (see also `selectedOptions`).
143
+ */
144
+ onSearchChange?: (query: string) => void;
145
+ /**
146
+ * Options for the current value(s) that `options` may not include — e.g. a
147
+ * pre-selected value the server's first page never returned. Consulted only
148
+ * to render the selection (field label, icon, tags) when `options` has no
149
+ * match; never listed.
150
+ */
151
+ selectedOptions?: AutocompleteOption<T>[];
127
152
  /** Whether to show the chevron icon. Default true */
128
153
  showChevron?: boolean;
129
154
  /** Whether to clear the input when the dropdown opens (single mode only). Default true */
@@ -231,9 +256,12 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
231
256
  onDeleteOption,
232
257
  isDeletingOption = false,
233
258
  disableClientFilter = false,
259
+ onSearchChange,
260
+ selectedOptions: selectedOptionsProp,
234
261
  showChevron = true,
235
262
  clearOnOpen = true,
236
263
  } = props;
264
+ const serverSearch = onSearchChange !== undefined;
237
265
 
238
266
  const multiple = props.multiple ?? false;
239
267
  const placeholder = props.placeholder ?? (multiple ? 'Add More...' : 'Select...');
@@ -259,11 +287,26 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
259
287
  const isInputControlled = inputValueProp !== undefined;
260
288
  const inputValue = isInputControlled ? inputValueProp : internalInputValue;
261
289
 
290
+ // The last query handed to `onSearchChange`: every close resets the field,
291
+ // and a reset of a field that was never searched is not news to the caller.
292
+ // Read and written from event handlers only.
293
+ const reportedQueryRef = useRef('');
294
+ const reportQuery = (value: string, reason: AutocompleteInputChangeReason) => {
295
+ if (!onSearchChange) return;
296
+ // A reset or clear is never a query, even when it refills the field with
297
+ // the selected label (`clearOnOpen={false}`).
298
+ const query = reason === 'input' ? value : '';
299
+ if (query === reportedQueryRef.current) return;
300
+ reportedQueryRef.current = query;
301
+ onSearchChange(query);
302
+ };
303
+
262
304
  const updateInputValue = (value: string, reason: AutocompleteInputChangeReason) => {
263
305
  if (!isInputControlled) {
264
306
  setInternalInputValue(value);
265
307
  }
266
308
  onInputChange?.(value, reason);
309
+ reportQuery(value, reason);
267
310
  };
268
311
 
269
312
  const [isOpen, setIsOpen] = useState(false);
@@ -277,10 +320,20 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
277
320
  // Combine refs
278
321
  useImperativeHandle(ref, () => containerRef.current as HTMLDivElement);
279
322
 
323
+ // Server search: what to list (steady between keystrokes) and the last
324
+ // option seen per selected value. Both pass through untouched otherwise.
325
+ const listedOptions = useSettledOptions(options, loading, serverSearch);
326
+ const rememberedSelection = useRememberedSelection(listedOptions, valueArray, serverSearch);
327
+
280
328
  // Get selected options
281
329
  const selectedOptions = useMemo(() => {
282
- return valueArray.map(v => options.find(opt => opt.value === v) ?? { label: String(v), value: v });
283
- }, [valueArray, options]);
330
+ return valueArray.map(
331
+ v =>
332
+ listedOptions.find(opt => opt.value === v) ??
333
+ selectedOptionsProp?.find(opt => opt.value === v) ??
334
+ rememberedSelection.get(v) ?? { label: String(v), value: v },
335
+ );
336
+ }, [valueArray, listedOptions, selectedOptionsProp, rememberedSelection]);
284
337
 
285
338
  // Single mode: the currently selected option
286
339
  const selectedOption = !multiple && selectedOptions.length > 0 ? selectedOptions[0] : null;
@@ -349,6 +402,11 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
349
402
 
350
403
  // Filter options based on inputValue
351
404
  const filteredOptions = useMemo(() => {
405
+ // The server already filtered: its answer is the list.
406
+ if (serverSearch) {
407
+ return listedOptions;
408
+ }
409
+
352
410
  if (disableClientFilter) {
353
411
  return options;
354
412
  }
@@ -363,7 +421,11 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
363
421
 
364
422
  const lowerInput = inputValue.toLowerCase();
365
423
  return options.filter(opt => opt.label.toLowerCase().includes(lowerInput));
366
- }, [options, inputValue, filterOptions, disableClientFilter]);
424
+ }, [options, listedOptions, serverSearch, inputValue, filterOptions, disableClientFilter]);
425
+
426
+ // The list gives way to its loading rows while loading — except under server
427
+ // search with something to show, where the rows stay until the answer lands.
428
+ const showLoadingRows = loading && (!serverSearch || filteredOptions.length === 0);
367
429
 
368
430
  // Show "+ Create" option when creatable is on, user typed something, and nothing matched
369
431
  const showCreateOption = creatable && inputValue.trim().length > 0 && filteredOptions.length === 0;
@@ -447,6 +509,7 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
447
509
  setInternalInputValue('');
448
510
  }
449
511
  onInputChange?.('', 'clear');
512
+ reportQuery('', 'clear');
450
513
  setIsOpen(false);
451
514
  };
452
515
 
@@ -692,8 +755,8 @@ function AutocompleteInner<T = string>(props: AutocompleteProps<T>, ref: Forward
692
755
  <ScrollAreaPrimitive.Viewport className="max-h-[240px] min-h-0 w-full [&>div]:!block">
693
756
  {/* A listbox owns options only: while they are read the box is the loading region's (a status and
694
757
  hidden rows), with no listbox role around it. */}
695
- <div role={loading ? undefined : 'listbox'}>
696
- {loading ? (
758
+ <div role={showLoadingRows ? undefined : 'listbox'}>
759
+ {showLoadingRows ? (
697
760
  // The options while they are read: the list's own rows, a label bar each (`loadingText` is what a
698
761
  // screen reader hears).
699
762
  <LoadingRegion label={loadingText}>
@@ -173,7 +173,9 @@ export function FilterModal({
173
173
  };
174
174
 
175
175
  const hasSort = !!sortConfig && sortConfig.columns.length > 0;
176
- const hasFilterGroups = filterGroups.length > 0;
176
+ // A group with no options is skipped below, so it does not count: a modal whose
177
+ // groups are all empty would otherwise draw a blank body instead of its empty state.
178
+ const hasFilterGroups = filterGroups.some(group => group.options.length > 0);
177
179
  const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
178
180
  const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
179
181