@realtek/core-theme 0.0.318 → 0.0.319

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 (43) hide show
  1. package/dist-lib/Breadcrumb-C4g4beys.cjs +5 -0
  2. package/dist-lib/Breadcrumb-C4g4beys.cjs.map +1 -0
  3. package/dist-lib/{Breadcrumb-C8JV1weU.js → Breadcrumb-CUZKsniF.js} +1533 -1418
  4. package/dist-lib/Breadcrumb-CUZKsniF.js.map +1 -0
  5. package/dist-lib/addFormApi-B8wJfZdE.js +53 -0
  6. package/dist-lib/{addFormApi-CuFRO2TI.js.map → addFormApi-B8wJfZdE.js.map} +1 -1
  7. package/dist-lib/addFormApi-CFSqio1D.cjs +2 -0
  8. package/dist-lib/{addFormApi-DBFdfv0-.cjs.map → addFormApi-CFSqio1D.cjs.map} +1 -1
  9. package/dist-lib/authApi-DieKJTds.cjs +2 -0
  10. package/dist-lib/{authApi-qTqKoZ1I.cjs.map → authApi-DieKJTds.cjs.map} +1 -1
  11. package/dist-lib/{authApi-cJpMRgNq.js → authApi-KeciU9Ow.js} +103 -85
  12. package/dist-lib/{authApi-cJpMRgNq.js.map → authApi-KeciU9Ow.js.map} +1 -1
  13. package/dist-lib/{diceCandidateMapper-BKRGwz7g.js → diceCandidateMapper-CjMFuVFe.js} +50 -42
  14. package/dist-lib/{diceCandidateMapper-BKRGwz7g.js.map → diceCandidateMapper-CjMFuVFe.js.map} +1 -1
  15. package/dist-lib/diceCandidateMapper-G6mMmRda.cjs +2 -0
  16. package/dist-lib/{diceCandidateMapper-MB-yyU21.cjs.map → diceCandidateMapper-G6mMmRda.cjs.map} +1 -1
  17. package/dist-lib/formGroupsCache-Bbz-28ws.cjs +2 -0
  18. package/dist-lib/{formGroupsCache-Bw0aY136.cjs.map → formGroupsCache-Bbz-28ws.cjs.map} +1 -1
  19. package/dist-lib/formGroupsCache-JeC59oNe.js +24 -0
  20. package/dist-lib/{formGroupsCache-CdBtIpe0.js.map → formGroupsCache-JeC59oNe.js.map} +1 -1
  21. package/dist-lib/index.cjs +10 -10
  22. package/dist-lib/index.cjs.map +1 -1
  23. package/dist-lib/index.js +8505 -8431
  24. package/dist-lib/index.js.map +1 -1
  25. package/dist-lib/rolldown-runtime-Chgba0Kb.cjs +1 -0
  26. package/dist-lib/rolldown-runtime-Dy4uBu1J.js +11 -0
  27. package/dist-lib/style.css +1 -1
  28. package/package.json +5 -1
  29. package/dist-lib/Breadcrumb-C8JV1weU.js.map +0 -1
  30. package/dist-lib/Breadcrumb-CnVqsNfZ.cjs +0 -3
  31. package/dist-lib/Breadcrumb-CnVqsNfZ.cjs.map +0 -1
  32. package/dist-lib/addFormApi-CuFRO2TI.js +0 -47
  33. package/dist-lib/addFormApi-DBFdfv0-.cjs +0 -2
  34. package/dist-lib/addFormApi-DtOvWQ0Z.js +0 -2
  35. package/dist-lib/authApi-bAKRYcVy.cjs +0 -1
  36. package/dist-lib/authApi-f5UkjakT.js +0 -2
  37. package/dist-lib/authApi-qTqKoZ1I.cjs +0 -2
  38. package/dist-lib/diceCandidateMapper-CB9x_ZiS.js +0 -2
  39. package/dist-lib/diceCandidateMapper-CCsJWM_a.cjs +0 -1
  40. package/dist-lib/diceCandidateMapper-MB-yyU21.cjs +0 -2
  41. package/dist-lib/formGroupsCache-Bw0aY136.cjs +0 -2
  42. package/dist-lib/formGroupsCache-CdBtIpe0.js +0 -20
  43. package/dist-lib/formGroupsCache-DTmvHD80.js +0 -2
@@ -0,0 +1,24 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ //#region src/services/formGroupsCache.js
3
+ var t = /* @__PURE__ */ e({
4
+ fetchFormGroupsCached: () => o,
5
+ invalidateFormGroupsCache: () => a
6
+ }), n = 4e3, r = /* @__PURE__ */ new Map(), i = n;
7
+ function a() {
8
+ r.clear();
9
+ }
10
+ function o(e, t) {
11
+ let n = Date.now(), a = r.get(e);
12
+ if (a && (a.pending || n - a.at < i)) return a.promise;
13
+ let o = {
14
+ at: n,
15
+ pending: !0
16
+ };
17
+ return o.promise = Promise.resolve().then(t).then((e) => (o.pending = !1, o.at = Date.now(), e)).catch((t) => {
18
+ throw r.get(e) === o && r.delete(e), t;
19
+ }), r.set(e, o), o.promise;
20
+ }
21
+ //#endregion
22
+ export { t as n, a as r, o as t };
23
+
24
+ //# sourceMappingURL=formGroupsCache-JeC59oNe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formGroupsCache-CdBtIpe0.js","names":[],"sources":["../src/services/formGroupsCache.js"],"sourcesContent":["// formGroupsCache — one network request per distinct form-groups query.\n//\n// WHY\n// A single page routinely asks for the SAME form-groups payload several times\n// over, because the parts that need it are independent of each other and none\n// of them can know the others exist: on Quick Submit the job header card, the\n// form's cross-module prefill and a job-source lookup each fetch the same job,\n// and the submission config is fetched once unscoped and again client-scoped.\n// Those payloads are large (60 kB for a submission config), so the duplicates\n// are the expensive kind — a measured 245-request, ~4.8 s load with several\n// identical 60 kB and 15 kB responses in it.\n//\n// The honest fix is not to make each caller aware of the others — that couples\n// components that have no business knowing about each other, and breaks the\n// moment a new one is added. It is to make the REQUEST idempotent: identical\n// queries fired close together share one response.\n//\n// TWO MECHANISMS, deliberately:\n//\n// • in-flight coalescing — a query that is already running is joined rather\n// than reissued. Always safe: the answer cannot be staler than the request\n// that is still in the air.\n// • a SHORT time-to-live — covers the common case where the duplicates are\n// sequential rather than overlapping (a child mounts after its parent's\n// fetch has already resolved). This is the part that can serve stale data,\n// so it is kept to a few seconds and any write invalidates the whole cache.\n//\n// Errors are never cached: a failed fetch removes its entry so the next caller\n// retries for real instead of inheriting the failure.\n//\n// Nothing here knows a module or a field. The cache key is the request URL, so\n// scopes that differ in any way (id, clientId, view, group, action) are\n// different entries and can never be served each other's data.\n\n// Long enough to cover one page's mount burst, short enough that no realistic\n// user action fits inside it. Writes invalidate regardless — see below.\nconst DEFAULT_TTL_MS = 4000;\n\nconst entries = new Map(); // url -> { at, promise }\n\nlet ttlMs = DEFAULT_TTL_MS;\n\n/** Test/host hook: change the window, or set 0 to keep only in-flight coalescing. */\nexport function setFormGroupsCacheTtl(ms) {\n ttlMs = Math.max(0, Number(ms) || 0);\n}\n\n/**\n * Drop everything. Called after any module write: a save is exactly the moment\n * a cached payload stops describing the record, and a stale read here would\n * show the user their own change missing.\n */\nexport function invalidateFormGroupsCache() {\n entries.clear();\n}\n\n/**\n * fetchFormGroupsCached — run `loader()` for `url`, or join/replay a recent\n * identical run.\n *\n * `loader` returns the RAW payload, so every caller shares one request no\n * matter which shape it goes on to read out of it (the groups array, or the\n * whole envelope with recordMeta).\n */\nexport function fetchFormGroupsCached(url, loader) {\n const now = Date.now();\n const hit = entries.get(url);\n // A pending entry is always joinable; a settled one only within the window.\n if (hit && (hit.pending || now - hit.at < ttlMs)) return hit.promise;\n\n const entry = { at: now, pending: true };\n entry.promise = Promise.resolve()\n .then(loader)\n .then((value) => {\n entry.pending = false;\n // Stamp on COMPLETION, not on start: a slow request must not begin life\n // already half-expired, or a burst behind it would reissue immediately.\n entry.at = Date.now();\n return value;\n })\n .catch((err) => {\n // Never cache a failure — the next caller must get a real attempt.\n if (entries.get(url) === entry) entries.delete(url);\n throw err;\n });\n entries.set(url, entry);\n return entry.promise;\n}\n\nexport default { fetchFormGroupsCached, invalidateFormGroupsCache, setFormGroupsCacheTtl };\n"],"mappings":";AAoCA,IAAM,IAAiB,KAEjB,oBAAU,IAAI,IAAI,GAEpB,IAAQ;AAYZ,SAAgB,IAA4B;CAC1C,EAAQ,MAAM;AAChB;AAUA,SAAgB,EAAsB,GAAK,GAAQ;CACjD,IAAM,IAAM,KAAK,IAAI,GACf,IAAM,EAAQ,IAAI,CAAG;CAE3B,IAAI,MAAQ,EAAI,WAAW,IAAM,EAAI,KAAK,IAAQ,OAAO,EAAI;CAE7D,IAAM,IAAQ;EAAE,IAAI;EAAK,SAAS;CAAK;CAgBvC,OAfA,EAAM,UAAU,QAAQ,QAAQ,EAC7B,KAAK,CAAM,EACX,MAAM,OACL,EAAM,UAAU,IAGhB,EAAM,KAAK,KAAK,IAAI,GACb,EACR,EACA,OAAO,MAAQ;EAGd,MADI,EAAQ,IAAI,CAAG,MAAM,KAAO,EAAQ,OAAO,CAAG,GAC5C;CACR,CAAC,GACH,EAAQ,IAAI,GAAK,CAAK,GACf,EAAM;AACf"}
1
+ {"version":3,"file":"formGroupsCache-JeC59oNe.js","names":[],"sources":["../src/services/formGroupsCache.js"],"sourcesContent":["// formGroupsCache — one network request per distinct form-groups query.\n//\n// WHY\n// A single page routinely asks for the SAME form-groups payload several times\n// over, because the parts that need it are independent of each other and none\n// of them can know the others exist: on Quick Submit the job header card, the\n// form's cross-module prefill and a job-source lookup each fetch the same job,\n// and the submission config is fetched once unscoped and again client-scoped.\n// Those payloads are large (60 kB for a submission config), so the duplicates\n// are the expensive kind — a measured 245-request, ~4.8 s load with several\n// identical 60 kB and 15 kB responses in it.\n//\n// The honest fix is not to make each caller aware of the others — that couples\n// components that have no business knowing about each other, and breaks the\n// moment a new one is added. It is to make the REQUEST idempotent: identical\n// queries fired close together share one response.\n//\n// TWO MECHANISMS, deliberately:\n//\n// • in-flight coalescing — a query that is already running is joined rather\n// than reissued. Always safe: the answer cannot be staler than the request\n// that is still in the air.\n// • a SHORT time-to-live — covers the common case where the duplicates are\n// sequential rather than overlapping (a child mounts after its parent's\n// fetch has already resolved). This is the part that can serve stale data,\n// so it is kept to a few seconds and any write invalidates the whole cache.\n//\n// Errors are never cached: a failed fetch removes its entry so the next caller\n// retries for real instead of inheriting the failure.\n//\n// Nothing here knows a module or a field. The cache key is the request URL, so\n// scopes that differ in any way (id, clientId, view, group, action) are\n// different entries and can never be served each other's data.\n\n// Long enough to cover one page's mount burst, short enough that no realistic\n// user action fits inside it. Writes invalidate regardless — see below.\nconst DEFAULT_TTL_MS = 4000;\n\nconst entries = new Map(); // url -> { at, promise }\n\nlet ttlMs = DEFAULT_TTL_MS;\n\n/** Test/host hook: change the window, or set 0 to keep only in-flight coalescing. */\nexport function setFormGroupsCacheTtl(ms) {\n ttlMs = Math.max(0, Number(ms) || 0);\n}\n\n/**\n * Drop everything. Called after any module write: a save is exactly the moment\n * a cached payload stops describing the record, and a stale read here would\n * show the user their own change missing.\n */\nexport function invalidateFormGroupsCache() {\n entries.clear();\n}\n\n/**\n * fetchFormGroupsCached — run `loader()` for `url`, or join/replay a recent\n * identical run.\n *\n * `loader` returns the RAW payload, so every caller shares one request no\n * matter which shape it goes on to read out of it (the groups array, or the\n * whole envelope with recordMeta).\n */\nexport function fetchFormGroupsCached(url, loader) {\n const now = Date.now();\n const hit = entries.get(url);\n // A pending entry is always joinable; a settled one only within the window.\n if (hit && (hit.pending || now - hit.at < ttlMs)) return hit.promise;\n\n const entry = { at: now, pending: true };\n entry.promise = Promise.resolve()\n .then(loader)\n .then((value) => {\n entry.pending = false;\n // Stamp on COMPLETION, not on start: a slow request must not begin life\n // already half-expired, or a burst behind it would reissue immediately.\n entry.at = Date.now();\n return value;\n })\n .catch((err) => {\n // Never cache a failure — the next caller must get a real attempt.\n if (entries.get(url) === entry) entries.delete(url);\n throw err;\n });\n entries.set(url, entry);\n return entry.promise;\n}\n\nexport default { fetchFormGroupsCached, invalidateFormGroupsCache, setFormGroupsCacheTtl };\n"],"mappings":";;;;;IAoCM,IAAiB,KAEjB,oBAAU,IAAI,IAAI,GAEpB,IAAQ;AAYZ,SAAgB,IAA4B;CAC1C,EAAQ,MAAM;AAChB;AAUA,SAAgB,EAAsB,GAAK,GAAQ;CACjD,IAAM,IAAM,KAAK,IAAI,GACf,IAAM,EAAQ,IAAI,CAAG;CAE3B,IAAI,MAAQ,EAAI,WAAW,IAAM,EAAI,KAAK,IAAQ,OAAO,EAAI;CAE7D,IAAM,IAAQ;EAAE,IAAI;EAAK,SAAS;CAAK;CAgBvC,OAfA,EAAM,UAAU,QAAQ,QAAQ,CAAC,CAC9B,KAAK,CAAM,CAAC,CACZ,MAAM,OACL,EAAM,UAAU,IAGhB,EAAM,KAAK,KAAK,IAAI,GACb,EACR,CAAC,CACD,OAAO,MAAQ;EAGd,MADI,EAAQ,IAAI,CAAG,MAAM,KAAO,EAAQ,OAAO,CAAG,GAC5C;CACR,CAAC,GACH,EAAQ,IAAI,GAAK,CAAK,GACf,EAAM;AACf"}