@ryuzaki13/react-foundation-lib 2.31.0 → 2.31.3

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 (497) hide show
  1. package/README.md +17 -5
  2. package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts +17 -0
  3. package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts.map +1 -0
  4. package/dist/analytical-table/definition/compileAnalyticalTableDefinition.d.ts.map +1 -1
  5. package/dist/analytical-table/definition/types.d.ts +6 -5
  6. package/dist/analytical-table/definition/types.d.ts.map +1 -1
  7. package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts +7 -0
  8. package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts.map +1 -0
  9. package/dist/analytical-table/dynamic-columns/dateColumns.d.ts.map +1 -1
  10. package/dist/analytical-table/dynamic-columns/types.d.ts +2 -1
  11. package/dist/analytical-table/dynamic-columns/types.d.ts.map +1 -1
  12. package/dist/analytical-table/index.js +124 -113
  13. package/dist/analytical-table/index.js.map +1 -1
  14. package/dist/analytical-table/projections/analyticalExportConstants.d.ts +7 -0
  15. package/dist/analytical-table/projections/analyticalExportConstants.d.ts.map +1 -0
  16. package/dist/analytical-table/projections/expansion.d.ts +2 -1
  17. package/dist/analytical-table/projections/expansion.d.ts.map +1 -1
  18. package/dist/analytical-table/projections/exportProjection.d.ts.map +1 -1
  19. package/dist/analytical-table/projections/types.d.ts +3 -2
  20. package/dist/analytical-table/projections/types.d.ts.map +1 -1
  21. package/dist/analytical-table/runtime/aggregation.d.ts.map +1 -1
  22. package/dist/analytical-table/runtime/analyticalRowConstants.d.ts +4 -0
  23. package/dist/analytical-table/runtime/analyticalRowConstants.d.ts.map +1 -0
  24. package/dist/analytical-table/runtime/analyticalViewConstants.d.ts +16 -0
  25. package/dist/analytical-table/runtime/analyticalViewConstants.d.ts.map +1 -0
  26. package/dist/analytical-table/runtime/buildGroupedModel.d.ts.map +1 -1
  27. package/dist/analytical-table/runtime/filtering.d.ts.map +1 -1
  28. package/dist/analytical-table/runtime/grouping.d.ts.map +1 -1
  29. package/dist/analytical-table/runtime/hierarchy.d.ts +2 -1
  30. package/dist/analytical-table/runtime/hierarchy.d.ts.map +1 -1
  31. package/dist/analytical-table/runtime/totals.d.ts +2 -2
  32. package/dist/analytical-table/runtime/totals.d.ts.map +1 -1
  33. package/dist/analytical-table/runtime/types.d.ts +5 -3
  34. package/dist/analytical-table/runtime/types.d.ts.map +1 -1
  35. package/dist/analytical-table/runtime/valueComparison.d.ts.map +1 -1
  36. package/dist/array/index.js +1 -1
  37. package/dist/array/reorder.d.ts +6 -1
  38. package/dist/array/reorder.d.ts.map +1 -1
  39. package/dist/async-task-runner/createCoalescingTaskRunner.d.ts.map +1 -1
  40. package/dist/async-task-runner/createDeadlineTimer.d.ts.map +1 -1
  41. package/dist/async-task-runner/index.js +39 -36
  42. package/dist/async-task-runner/index.js.map +1 -1
  43. package/dist/async-task-runner/nativeTimerConstants.d.ts +3 -0
  44. package/dist/async-task-runner/nativeTimerConstants.d.ts.map +1 -0
  45. package/dist/binary/base64Constants.d.ts +6 -0
  46. package/dist/binary/base64Constants.d.ts.map +1 -0
  47. package/dist/binary/binaryToBlob.d.ts.map +1 -1
  48. package/dist/binary/getBase64DecodedSize.d.ts.map +1 -1
  49. package/dist/binary/index.js +95 -70
  50. package/dist/binary/index.js.map +1 -1
  51. package/dist/browser-notifications/browserNotificationConstants.d.ts +3 -0
  52. package/dist/browser-notifications/browserNotificationConstants.d.ts.map +1 -0
  53. package/dist/browser-notifications/browserNotificationTypes.d.ts +2 -1
  54. package/dist/browser-notifications/browserNotificationTypes.d.ts.map +1 -1
  55. package/dist/browser-notifications/createBrowserNotificationPresenter.d.ts.map +1 -1
  56. package/dist/browser-notifications/index.js +38 -37
  57. package/dist/browser-notifications/index.js.map +1 -1
  58. package/dist/chunks/{array-D-_yMMUK.js → array-bd7LYFto.js} +1 -3
  59. package/dist/chunks/{array-D-_yMMUK.js.map → array-bd7LYFto.js.map} +1 -1
  60. package/dist/chunks/{dom-BK22UmgF.js → dom-ZSeWZ0Gg.js} +103 -98
  61. package/dist/chunks/dom-ZSeWZ0Gg.js.map +1 -0
  62. package/dist/chunks/formatDate-CNPcfNte.js +133 -0
  63. package/dist/chunks/formatDate-CNPcfNte.js.map +1 -0
  64. package/dist/chunks/{formatters-CZnnbdud.js → formatters-CO40zvVB.js} +496 -496
  65. package/dist/chunks/formatters-CO40zvVB.js.map +1 -0
  66. package/dist/chunks/{formulas-BXT_XBWI.js → formulas-Y0HOcFhe.js} +90 -86
  67. package/dist/chunks/formulas-Y0HOcFhe.js.map +1 -0
  68. package/dist/chunks/hasSignatureBytes-D2wO_Myl.js +11 -0
  69. package/dist/chunks/hasSignatureBytes-D2wO_Myl.js.map +1 -0
  70. package/dist/chunks/keyboardConstants-BZKskWsm.js +6 -0
  71. package/dist/chunks/keyboardConstants-BZKskWsm.js.map +1 -0
  72. package/dist/chunks/media-imBOXWwa.js +192 -0
  73. package/dist/chunks/media-imBOXWwa.js.map +1 -0
  74. package/dist/chunks/mimeTypeConstants-BzONV-b1.js +6 -0
  75. package/dist/chunks/mimeTypeConstants-BzONV-b1.js.map +1 -0
  76. package/dist/chunks/{query-client-CVRfrYZM.js → query-client-D0HQZ84w.js} +142 -142
  77. package/dist/chunks/query-client-D0HQZ84w.js.map +1 -0
  78. package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js +766 -0
  79. package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js.map +1 -0
  80. package/dist/chunks/scalarTypeConstants-CnSsjpGO.js +6 -0
  81. package/dist/chunks/scalarTypeConstants-CnSsjpGO.js.map +1 -0
  82. package/dist/chunks/utils-DW0Yso1Q.js +210 -0
  83. package/dist/chunks/utils-DW0Yso1Q.js.map +1 -0
  84. package/dist/chunks/{uuid-CUJPAbRY.js → uuid-izDzLv18.js} +1 -2
  85. package/dist/chunks/uuid-izDzLv18.js.map +1 -0
  86. package/dist/chunks/validate-8URYKKly.js +613 -0
  87. package/dist/chunks/validate-8URYKKly.js.map +1 -0
  88. package/dist/copy/index.js +5 -5
  89. package/dist/copy/index.js.map +1 -1
  90. package/dist/copy/useCopyFeedback.d.ts.map +1 -1
  91. package/dist/crypto/hashString.d.ts.map +1 -1
  92. package/dist/crypto/hexadecimalConstants.d.ts +3 -0
  93. package/dist/crypto/hexadecimalConstants.d.ts.map +1 -0
  94. package/dist/crypto/index.js +25 -24
  95. package/dist/crypto/index.js.map +1 -1
  96. package/dist/crypto/uuid.d.ts.map +1 -1
  97. package/dist/date-segments/index.js +81 -81
  98. package/dist/date-segments/index.js.map +1 -1
  99. package/dist/date-segments/mask.d.ts +13 -3
  100. package/dist/date-segments/mask.d.ts.map +1 -1
  101. package/dist/decimal/decimalConstants.d.ts +3 -0
  102. package/dist/decimal/decimalConstants.d.ts.map +1 -0
  103. package/dist/decimal/index.js +0 -2
  104. package/dist/decimal/index.js.map +1 -1
  105. package/dist/decimal/normalizeDecimal.d.ts.map +1 -1
  106. package/dist/decimal/normalizeDecimalLiteral.d.ts.map +1 -1
  107. package/dist/decimal/resolveDecimalMaxLength.d.ts.map +1 -1
  108. package/dist/decimal/sumDecimals.d.ts.map +1 -1
  109. package/dist/decimal/writeDecimalParts.d.ts.map +1 -1
  110. package/dist/dom/document-scroll/acquireDocumentScrollLock.d.ts.map +1 -1
  111. package/dist/dom/document-scroll/attachDocumentTouchScrollGuard.d.ts.map +1 -1
  112. package/dist/dom/document-scroll/canConsumeVerticalTouchScroll.d.ts.map +1 -1
  113. package/dist/dom/domEventConstants.d.ts +4 -0
  114. package/dist/dom/domEventConstants.d.ts.map +1 -0
  115. package/dist/dom/domScrollConstants.d.ts +3 -0
  116. package/dist/dom/domScrollConstants.d.ts.map +1 -0
  117. package/dist/dom/index.js +1 -1
  118. package/dist/dom/installFaviconOverride.d.ts.map +1 -1
  119. package/dist/dom/overlayFocusConstants.d.ts +4 -0
  120. package/dist/dom/overlayFocusConstants.d.ts.map +1 -0
  121. package/dist/dom/scroll-anchor/captureScrollAnchor.d.ts.map +1 -1
  122. package/dist/dom/useClickOutside.d.ts +1 -1
  123. package/dist/dom/useClickOutside.d.ts.map +1 -1
  124. package/dist/dom/useEscapeDismiss.d.ts +1 -1
  125. package/dist/dom/useEscapeDismiss.d.ts.map +1 -1
  126. package/dist/dom/useFocusTrap.d.ts.map +1 -1
  127. package/dist/dom/useIsTouchDevice.d.ts.map +1 -1
  128. package/dist/dom/useOverlayFocus.d.ts +3 -2
  129. package/dist/dom/useOverlayFocus.d.ts.map +1 -1
  130. package/dist/dom/visual-viewport/attachVisualViewportFrame.d.ts.map +1 -1
  131. package/dist/error-report/breadcrumbs.d.ts.map +1 -1
  132. package/dist/error-report/capture.d.ts.map +1 -1
  133. package/dist/error-report/captureOptions.d.ts +3 -2
  134. package/dist/error-report/captureOptions.d.ts.map +1 -1
  135. package/dist/error-report/capturePolicyConstants.d.ts +4 -0
  136. package/dist/error-report/capturePolicyConstants.d.ts.map +1 -0
  137. package/dist/error-report/dataPreview.d.ts.map +1 -1
  138. package/dist/error-report/diagnostics.d.ts.map +1 -1
  139. package/dist/error-report/drafts.d.ts.map +1 -1
  140. package/dist/error-report/environment.d.ts.map +1 -1
  141. package/dist/error-report/errorInfo.d.ts.map +1 -1
  142. package/dist/error-report/errorReportCaptureLimits.d.ts +26 -0
  143. package/dist/error-report/errorReportCaptureLimits.d.ts.map +1 -0
  144. package/dist/error-report/errorReportContractConstants.d.ts +32 -0
  145. package/dist/error-report/errorReportContractConstants.d.ts.map +1 -0
  146. package/dist/error-report/index.js +586 -587
  147. package/dist/error-report/index.js.map +1 -1
  148. package/dist/error-report/payload.d.ts.map +1 -1
  149. package/dist/error-report/queue.d.ts.map +1 -1
  150. package/dist/error-report/queueContract.d.ts +7 -6
  151. package/dist/error-report/queueContract.d.ts.map +1 -1
  152. package/dist/error-report/queueRecord.d.ts.map +1 -1
  153. package/dist/error-report/queueResultConstants.d.ts +14 -0
  154. package/dist/error-report/queueResultConstants.d.ts.map +1 -0
  155. package/dist/error-report/runtimeDeduplication.d.ts +2 -1
  156. package/dist/error-report/runtimeDeduplication.d.ts.map +1 -1
  157. package/dist/error-report/safeValue.d.ts.map +1 -1
  158. package/dist/error-report/safeValueMarkerConstants.d.ts +16 -0
  159. package/dist/error-report/safeValueMarkerConstants.d.ts.map +1 -0
  160. package/dist/error-report/schema.d.ts.map +1 -1
  161. package/dist/error-report/types.d.ts +10 -8
  162. package/dist/error-report/types.d.ts.map +1 -1
  163. package/dist/error-report-source-maps/archive.d.ts.map +1 -1
  164. package/dist/error-report-source-maps/artifact.d.ts.map +1 -1
  165. package/dist/error-report-source-maps/index.js +238 -238
  166. package/dist/error-report-source-maps/index.js.map +1 -1
  167. package/dist/error-report-source-maps/manifest.d.ts.map +1 -1
  168. package/dist/error-report-source-maps/package.d.ts.map +1 -1
  169. package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts +11 -0
  170. package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts.map +1 -0
  171. package/dist/error-report-source-maps/symbolicate.d.ts.map +1 -1
  172. package/dist/error-report-source-maps/symbolicationResultConstants.d.ts +6 -0
  173. package/dist/error-report-source-maps/symbolicationResultConstants.d.ts.map +1 -0
  174. package/dist/error-report-source-maps/types.d.ts +4 -2
  175. package/dist/error-report-source-maps/types.d.ts.map +1 -1
  176. package/dist/excel/excel.d.ts.map +1 -1
  177. package/dist/excel/excelWorkbookConstants.d.ts +6 -0
  178. package/dist/excel/excelWorkbookConstants.d.ts.map +1 -0
  179. package/dist/excel/index.js +121 -120
  180. package/dist/excel/index.js.map +1 -1
  181. package/dist/excel/matrixWorkbook.d.ts +6 -1
  182. package/dist/excel/matrixWorkbook.d.ts.map +1 -1
  183. package/dist/excel/tableExport.d.ts +2 -2
  184. package/dist/excel/tableExport.d.ts.map +1 -1
  185. package/dist/file/checkFileSignature.d.ts.map +1 -1
  186. package/dist/file/contentDisposition.d.ts.map +1 -1
  187. package/dist/file/fileSignatureConstants.d.ts +14 -18
  188. package/dist/file/fileSignatureConstants.d.ts.map +1 -1
  189. package/dist/file/fileSignatureTypes.d.ts +3 -3
  190. package/dist/file/fileSignatureTypes.d.ts.map +1 -1
  191. package/dist/file/image/imageReadConstants.d.ts +3 -0
  192. package/dist/file/image/imageReadConstants.d.ts.map +1 -0
  193. package/dist/file/image/readImageFile.d.ts +3 -2
  194. package/dist/file/image/readImageFile.d.ts.map +1 -1
  195. package/dist/file/image/types.d.ts +5 -3
  196. package/dist/file/image/types.d.ts.map +1 -1
  197. package/dist/file/index.js +139 -165
  198. package/dist/file/index.js.map +1 -1
  199. package/dist/file/mimeType.d.ts.map +1 -1
  200. package/dist/file/mimeTypeConstants.d.ts +18 -0
  201. package/dist/file/mimeTypeConstants.d.ts.map +1 -0
  202. package/dist/file/read-file/assert.d.ts.map +1 -1
  203. package/dist/file/read-file/readFile.d.ts +3 -11
  204. package/dist/file/read-file/readFile.d.ts.map +1 -1
  205. package/dist/file/read-file/readFileConstants.d.ts +13 -0
  206. package/dist/file/read-file/readFileConstants.d.ts.map +1 -0
  207. package/dist/file/read-file/types.d.ts +7 -6
  208. package/dist/file/read-file/types.d.ts.map +1 -1
  209. package/dist/file/signature/checkArchiveSignature.d.ts.map +1 -1
  210. package/dist/file-system/fileSystemConstants.d.ts +5 -0
  211. package/dist/file-system/fileSystemConstants.d.ts.map +1 -0
  212. package/dist/file-system/fileSystemTypes.d.ts +2 -1
  213. package/dist/file-system/fileSystemTypes.d.ts.map +1 -1
  214. package/dist/file-system/index.js +11 -10
  215. package/dist/file-system/index.js.map +1 -1
  216. package/dist/file-system/resolvePathInsideRoot.d.ts.map +1 -1
  217. package/dist/formatters/boolean/parseAbapBoolean.d.ts.map +1 -1
  218. package/dist/formatters/boolean/toAbapBoolean.d.ts.map +1 -1
  219. package/dist/formatters/date/calendarDate.d.ts.map +1 -1
  220. package/dist/formatters/date/calendarDateConstants.d.ts +13 -0
  221. package/dist/formatters/date/calendarDateConstants.d.ts.map +1 -0
  222. package/dist/formatters/date/calendarPeriod.d.ts +11 -2
  223. package/dist/formatters/date/calendarPeriod.d.ts.map +1 -1
  224. package/dist/formatters/date/dateFormatConstants.d.ts +17 -0
  225. package/dist/formatters/date/dateFormatConstants.d.ts.map +1 -0
  226. package/dist/formatters/date/datePatternConstants.d.ts +16 -0
  227. package/dist/formatters/date/datePatternConstants.d.ts.map +1 -0
  228. package/dist/formatters/date/datePresetNameConstants.d.ts +27 -0
  229. package/dist/formatters/date/datePresetNameConstants.d.ts.map +1 -0
  230. package/dist/formatters/date/dateRange.d.ts +3 -1
  231. package/dist/formatters/date/dateRange.d.ts.map +1 -1
  232. package/dist/formatters/date/dateValueConstants.d.ts +15 -0
  233. package/dist/formatters/date/dateValueConstants.d.ts.map +1 -0
  234. package/dist/formatters/date/educationDate.d.ts.map +1 -1
  235. package/dist/formatters/date/formatDate.d.ts.map +1 -1
  236. package/dist/formatters/date/formatInstantDateTime.d.ts.map +1 -1
  237. package/dist/formatters/date/parseDate.d.ts.map +1 -1
  238. package/dist/formatters/date/pattern.d.ts.map +1 -1
  239. package/dist/formatters/date/presets.d.ts.map +1 -1
  240. package/dist/formatters/date/types.d.ts +8 -6
  241. package/dist/formatters/date/types.d.ts.map +1 -1
  242. package/dist/formatters/formatDurationMinutes.d.ts.map +1 -1
  243. package/dist/formatters/formatFileSize.d.ts.map +1 -1
  244. package/dist/formatters/formatPhone.d.ts.map +1 -1
  245. package/dist/formatters/index.js +6 -5
  246. package/dist/formatters/normalizeLeadingZeros.d.ts.map +1 -1
  247. package/dist/formatters/number/compact.d.ts.map +1 -1
  248. package/dist/formatters/number/formatCompactNumber.d.ts.map +1 -1
  249. package/dist/formatters/number/formatNumber.d.ts.map +1 -1
  250. package/dist/formatters/number/numberFormatConstants.d.ts +11 -0
  251. package/dist/formatters/number/numberFormatConstants.d.ts.map +1 -0
  252. package/dist/formatters/number/numberPresetNameConstants.d.ts +16 -0
  253. package/dist/formatters/number/numberPresetNameConstants.d.ts.map +1 -0
  254. package/dist/formatters/number/parseNumber.d.ts.map +1 -1
  255. package/dist/formatters/number/presets.d.ts.map +1 -1
  256. package/dist/formatters/number/types.d.ts +2 -1
  257. package/dist/formatters/number/types.d.ts.map +1 -1
  258. package/dist/formatters/pipeline/clone.d.ts.map +1 -1
  259. package/dist/formatters/pipeline/definitions.d.ts.map +1 -1
  260. package/dist/formatters/pipeline/dependencies.d.ts.map +1 -1
  261. package/dist/formatters/pipeline/execute.d.ts +4 -1
  262. package/dist/formatters/pipeline/execute.d.ts.map +1 -1
  263. package/dist/formatters/pipeline/formattersPipelineConstants.d.ts +19 -0
  264. package/dist/formatters/pipeline/formattersPipelineConstants.d.ts.map +1 -0
  265. package/dist/formatters/pipeline/normalize.d.ts.map +1 -1
  266. package/dist/formatters/pipeline/pipelineValidationConstants.d.ts +40 -0
  267. package/dist/formatters/pipeline/pipelineValidationConstants.d.ts.map +1 -0
  268. package/dist/formatters/pipeline/registry.d.ts +1 -1
  269. package/dist/formatters/pipeline/registry.d.ts.map +1 -1
  270. package/dist/formatters/pipeline/rekey.d.ts.map +1 -1
  271. package/dist/formatters/pipeline/runtime.d.ts.map +1 -1
  272. package/dist/formatters/pipeline/types.d.ts +28 -25
  273. package/dist/formatters/pipeline/types.d.ts.map +1 -1
  274. package/dist/formatters/pipeline/validate.d.ts +2 -1
  275. package/dist/formatters/pipeline/validate.d.ts.map +1 -1
  276. package/dist/formatters/strings/spaceCharacterConstants.d.ts +5 -0
  277. package/dist/formatters/strings/spaceCharacterConstants.d.ts.map +1 -0
  278. package/dist/formatters/strings/stripInnerSpaces.d.ts.map +1 -1
  279. package/dist/formatters/strings/stripLeadingZeros.d.ts.map +1 -1
  280. package/dist/formatters/valueState/fixedValueStateResolver.d.ts.map +1 -1
  281. package/dist/formatters/valueState/presentation.d.ts.map +1 -1
  282. package/dist/formatters/valueState/resolveValueStateClassName.d.ts.map +1 -1
  283. package/dist/formatters/valueState/thresholdValueStateResolver.d.ts.map +1 -1
  284. package/dist/formatters/valueState/types.d.ts +2 -1
  285. package/dist/formatters/valueState/types.d.ts.map +1 -1
  286. package/dist/formatters/valueState/valueStateRegistry.d.ts.map +1 -1
  287. package/dist/formatters/valueState/valueStateResolverConstants.d.ts +6 -0
  288. package/dist/formatters/valueState/valueStateResolverConstants.d.ts.map +1 -0
  289. package/dist/formulas/execute.d.ts +3 -2
  290. package/dist/formulas/execute.d.ts.map +1 -1
  291. package/dist/formulas/index.js +1 -1
  292. package/dist/formulas/isTableFormulaDependency.d.ts.map +1 -1
  293. package/dist/formulas/tableFormulaConstants.d.ts +12 -0
  294. package/dist/formulas/tableFormulaConstants.d.ts.map +1 -0
  295. package/dist/formulas/types.d.ts +2 -1
  296. package/dist/formulas/types.d.ts.map +1 -1
  297. package/dist/formulas/validate.d.ts +2 -1
  298. package/dist/formulas/validate.d.ts.map +1 -1
  299. package/dist/hooks/index.js +110 -107
  300. package/dist/hooks/index.js.map +1 -1
  301. package/dist/hooks/useBlockBrowserZoom.d.ts.map +1 -1
  302. package/dist/hooks/useDndSortableSensors.d.ts.map +1 -1
  303. package/dist/hooks/useFloatingListbox.d.ts +15 -33
  304. package/dist/hooks/useFloatingListbox.d.ts.map +1 -1
  305. package/dist/http/index.js +8 -7
  306. package/dist/http/index.js.map +1 -1
  307. package/dist/http/textResponse.d.ts.map +1 -1
  308. package/dist/indexed-records/createIndexedRecordsSchema.d.ts.map +1 -1
  309. package/dist/indexed-records/schema.js +24 -23
  310. package/dist/indexed-records/schema.js.map +1 -1
  311. package/dist/media/breakpointConstants.d.ts +5 -0
  312. package/dist/media/breakpointConstants.d.ts.map +1 -0
  313. package/dist/media/breakpoints.d.ts +2 -1
  314. package/dist/media/breakpoints.d.ts.map +1 -1
  315. package/dist/media/createNotificationTonePlayer.d.ts.map +1 -1
  316. package/dist/media/getCurrentFontSize.d.ts.map +1 -1
  317. package/dist/media/index.js +1 -1
  318. package/dist/media/mediaQueryConstants.d.ts +3 -0
  319. package/dist/media/mediaQueryConstants.d.ts.map +1 -0
  320. package/dist/media/responsive.d.ts +1 -1
  321. package/dist/media/responsive.d.ts.map +1 -1
  322. package/dist/media/useMatchMedia.d.ts.map +1 -1
  323. package/dist/media/useMediaQuery.d.ts.map +1 -1
  324. package/dist/metadata/baseMetaTypes.d.ts +7 -0
  325. package/dist/metadata/baseMetaTypes.d.ts.map +1 -0
  326. package/dist/metadata/metadataTypes.d.ts +17 -0
  327. package/dist/metadata/metadataTypes.d.ts.map +1 -0
  328. package/dist/metadata/scalarTypeClassification.d.ts +8 -0
  329. package/dist/metadata/scalarTypeClassification.d.ts.map +1 -0
  330. package/dist/metadata/scalarTypeConstants.d.ts +21 -0
  331. package/dist/metadata/scalarTypeConstants.d.ts.map +1 -0
  332. package/dist/notifications/index.js +62 -62
  333. package/dist/notifications/index.js.map +1 -1
  334. package/dist/notifications/notificationTypeConstants.d.ts +6 -0
  335. package/dist/notifications/notificationTypeConstants.d.ts.map +1 -0
  336. package/dist/notifications/notify.d.ts.map +1 -1
  337. package/dist/notifications/store.d.ts.map +1 -1
  338. package/dist/notifications/types.d.ts +2 -1
  339. package/dist/notifications/types.d.ts.map +1 -1
  340. package/dist/number-scale/index.js +47 -46
  341. package/dist/number-scale/index.js.map +1 -1
  342. package/dist/number-scale/marksPositionConstants.d.ts +4 -0
  343. package/dist/number-scale/marksPositionConstants.d.ts.map +1 -0
  344. package/dist/number-scale/numberScale.d.ts +1 -1
  345. package/dist/number-scale/numberScale.d.ts.map +1 -1
  346. package/dist/number-scale/types.d.ts +2 -1
  347. package/dist/number-scale/types.d.ts.map +1 -1
  348. package/dist/odata-service/baseTypes.d.ts +1 -5
  349. package/dist/odata-service/baseTypes.d.ts.map +1 -1
  350. package/dist/odata-service/builder.d.ts.map +1 -1
  351. package/dist/odata-service/columns.d.ts.map +1 -1
  352. package/dist/odata-service/entityOperationConstants.d.ts +4 -0
  353. package/dist/odata-service/entityOperationConstants.d.ts.map +1 -0
  354. package/dist/odata-service/filterDefinitionConstants.d.ts +24 -0
  355. package/dist/odata-service/filterDefinitionConstants.d.ts.map +1 -0
  356. package/dist/odata-service/filterDefinitions.d.ts +19 -17
  357. package/dist/odata-service/filterDefinitions.d.ts.map +1 -1
  358. package/dist/odata-service/filterOperationConstants.d.ts +14 -0
  359. package/dist/odata-service/filterOperationConstants.d.ts.map +1 -0
  360. package/dist/odata-service/filters.d.ts.map +1 -1
  361. package/dist/odata-service/formatters.d.ts +1 -2
  362. package/dist/odata-service/formatters.d.ts.map +1 -1
  363. package/dist/odata-service/index.js +1317 -2
  364. package/dist/odata-service/index.js.map +1 -0
  365. package/dist/odata-service/odataMetadataConstants.d.ts +8 -0
  366. package/dist/odata-service/odataMetadataConstants.d.ts.map +1 -0
  367. package/dist/odata-service/parser.d.ts +1 -3
  368. package/dist/odata-service/parser.d.ts.map +1 -1
  369. package/dist/odata-service/schema.d.ts.map +1 -1
  370. package/dist/odata-service/sorts.d.ts.map +1 -1
  371. package/dist/odata-service/sqlFilters.d.ts +10 -5
  372. package/dist/odata-service/sqlFilters.d.ts.map +1 -1
  373. package/dist/odata-service/types.d.ts +13 -14
  374. package/dist/odata-service/types.d.ts.map +1 -1
  375. package/dist/odata-service/typesValidation.d.ts +1 -5
  376. package/dist/odata-service/typesValidation.d.ts.map +1 -1
  377. package/dist/pwa/index.js +72 -71
  378. package/dist/pwa/index.js.map +1 -1
  379. package/dist/pwa/sw-cache-policy.js +47 -47
  380. package/dist/pwa/sw-cache-policy.js.map +1 -1
  381. package/dist/pwa/swCachePolicy.d.ts +5 -1
  382. package/dist/pwa/swCachePolicy.d.ts.map +1 -1
  383. package/dist/pwa/useBrowserOnlineStatus.d.ts.map +1 -1
  384. package/dist/query-client/broadcast.d.ts +4 -3
  385. package/dist/query-client/broadcast.d.ts.map +1 -1
  386. package/dist/query-client/createQueryRestoreSchedulerGuard.d.ts.map +1 -1
  387. package/dist/query-client/createQueryRestoreStorage.d.ts.map +1 -1
  388. package/dist/query-client/index.js +1 -1
  389. package/dist/query-client/invalidationBroadcast.d.ts +2 -1
  390. package/dist/query-client/invalidationBroadcast.d.ts.map +1 -1
  391. package/dist/query-client/persistence.d.ts +9 -6
  392. package/dist/query-client/persistence.d.ts.map +1 -1
  393. package/dist/query-client/queryCacheEventConstants.d.ts +11 -0
  394. package/dist/query-client/queryCacheEventConstants.d.ts.map +1 -0
  395. package/dist/query-client/queryClient.d.ts +2 -1
  396. package/dist/query-client/queryClient.d.ts.map +1 -1
  397. package/dist/query-client/queryMeta.d.ts.map +1 -1
  398. package/dist/query-client/sessionPersistenceConstants.d.ts +5 -0
  399. package/dist/query-client/sessionPersistenceConstants.d.ts.map +1 -0
  400. package/dist/query-client/sessionScoped.d.ts.map +1 -1
  401. package/dist/query-client/sessionScopedResetConstants.d.ts +4 -0
  402. package/dist/query-client/sessionScopedResetConstants.d.ts.map +1 -0
  403. package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts +2 -1
  404. package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts.map +1 -1
  405. package/dist/seo/index.js +0 -1
  406. package/dist/seo/index.js.map +1 -1
  407. package/dist/seo/seo.d.ts +3 -2
  408. package/dist/seo/seo.d.ts.map +1 -1
  409. package/dist/seo/seoContentTypeConstants.d.ts +6 -0
  410. package/dist/seo/seoContentTypeConstants.d.ts.map +1 -0
  411. package/dist/seo/types.d.ts +2 -1
  412. package/dist/seo/types.d.ts.map +1 -1
  413. package/dist/session-storage/index.js +1 -1
  414. package/dist/table/cellSelection.d.ts.map +1 -1
  415. package/dist/table/index.js +83 -79
  416. package/dist/table/index.js.map +1 -1
  417. package/dist/table/odataAdapter.d.ts +3 -3
  418. package/dist/table/odataAdapter.d.ts.map +1 -1
  419. package/dist/table/selection.d.ts +2 -2
  420. package/dist/table/selection.d.ts.map +1 -1
  421. package/dist/table/tableColumnConstants.d.ts +5 -0
  422. package/dist/table/tableColumnConstants.d.ts.map +1 -0
  423. package/dist/table/tableSelectionConstants.d.ts +8 -0
  424. package/dist/table/tableSelectionConstants.d.ts.map +1 -0
  425. package/dist/table/tanStackFeatures.d.ts +8 -8
  426. package/dist/table/types.d.ts +5 -3
  427. package/dist/table/types.d.ts.map +1 -1
  428. package/dist/table/useTableRowSelection.d.ts +2 -2
  429. package/dist/table/useTableRowSelection.d.ts.map +1 -1
  430. package/dist/table-document/index.js +88 -87
  431. package/dist/table-document/index.js.map +1 -1
  432. package/dist/table-document/insertTableDocumentAxis.d.ts +2 -1
  433. package/dist/table-document/insertTableDocumentAxis.d.ts.map +1 -1
  434. package/dist/table-document/tableDocument.d.ts +2 -1
  435. package/dist/table-document/tableDocument.d.ts.map +1 -1
  436. package/dist/table-document/tableDocumentAxisGroups.d.ts +4 -3
  437. package/dist/table-document/tableDocumentAxisGroups.d.ts.map +1 -1
  438. package/dist/table-document/tableDocumentConstants.d.ts +8 -0
  439. package/dist/table-document/tableDocumentConstants.d.ts.map +1 -0
  440. package/dist/table-document/tableDocumentGeometry.d.ts.map +1 -1
  441. package/dist/three-scene/index.js +32 -32
  442. package/dist/three-scene/index.js.map +1 -1
  443. package/dist/three-scene/threeSceneAvailability.d.ts +4 -3
  444. package/dist/three-scene/threeSceneAvailability.d.ts.map +1 -1
  445. package/dist/three-scene/threeSceneConstants.d.ts +14 -0
  446. package/dist/three-scene/threeSceneConstants.d.ts.map +1 -0
  447. package/dist/three-scene/useThreeSceneAvailability.d.ts.map +1 -1
  448. package/dist/tree-table/index.js +1 -1
  449. package/dist/types/abapBooleanConstants.d.ts +4 -0
  450. package/dist/types/abapBooleanConstants.d.ts.map +1 -0
  451. package/dist/types/index.js.map +1 -1
  452. package/dist/types/types.d.ts +4 -2
  453. package/dist/types/types.d.ts.map +1 -1
  454. package/dist/types/valueStateConstants.d.ts +8 -0
  455. package/dist/types/valueStateConstants.d.ts.map +1 -0
  456. package/dist/utils/cloneFunctionStrategyConstants.d.ts +4 -0
  457. package/dist/utils/cloneFunctionStrategyConstants.d.ts.map +1 -0
  458. package/dist/utils/createLazyComponent.d.ts.map +1 -1
  459. package/dist/utils/deepCloneWithoutFunctions.d.ts +2 -1
  460. package/dist/utils/deepCloneWithoutFunctions.d.ts.map +1 -1
  461. package/dist/utils/deepCopyWithoutFunctions.d.ts +2 -1
  462. package/dist/utils/deepCopyWithoutFunctions.d.ts.map +1 -1
  463. package/dist/utils/index.js +2 -209
  464. package/dist/utils/keyboard.d.ts +2 -1
  465. package/dist/utils/keyboard.d.ts.map +1 -1
  466. package/dist/utils/keyboardConstants.d.ts +16 -0
  467. package/dist/utils/keyboardConstants.d.ts.map +1 -0
  468. package/dist/validators/index.js +3 -3
  469. package/dist/validators/index.js.map +1 -1
  470. package/dist/validators/validateUrl.d.ts.map +1 -1
  471. package/dist/value-transformers/execute.d.ts.map +1 -1
  472. package/dist/value-transformers/index.js +9 -6
  473. package/dist/value-transformers/index.js.map +1 -1
  474. package/dist/value-transformers/types.d.ts +3 -2
  475. package/dist/value-transformers/types.d.ts.map +1 -1
  476. package/dist/value-transformers/valueTransformerConstants.d.ts +4 -0
  477. package/dist/value-transformers/valueTransformerConstants.d.ts.map +1 -0
  478. package/package.json +6 -5
  479. package/src/binary/README.mdx +1 -1
  480. package/src/dom/README.mdx +1 -1
  481. package/src/formatters/README.mdx +5 -0
  482. package/src/foundationLib.mdx +8 -0
  483. package/src/metadata/README.md +35 -0
  484. package/src/odata-service/README.mdx +36 -1
  485. package/src/query-client/README.mdx +4 -4
  486. package/dist/chunks/dom-BK22UmgF.js.map +0 -1
  487. package/dist/chunks/formatters-CZnnbdud.js.map +0 -1
  488. package/dist/chunks/formulas-BXT_XBWI.js.map +0 -1
  489. package/dist/chunks/media-WK38KtMl.js +0 -191
  490. package/dist/chunks/media-WK38KtMl.js.map +0 -1
  491. package/dist/chunks/odata-service-tp2U5yIr.js +0 -2211
  492. package/dist/chunks/odata-service-tp2U5yIr.js.map +0 -1
  493. package/dist/chunks/query-client-CVRfrYZM.js.map +0 -1
  494. package/dist/chunks/uuid-CUJPAbRY.js.map +0 -1
  495. package/dist/chunks/validate-CEQHqevt.js +0 -608
  496. package/dist/chunks/validate-CEQHqevt.js.map +0 -1
  497. package/dist/utils/index.js.map +0 -1
@@ -1,4 +1,7 @@
1
- import { Placement } from "@floating-ui/react";
1
+ import { type KeyboardEvent } from "react";
2
+ import { type Placement, type UseFloatingReturn, type UseInteractionsReturn } from "@floating-ui/react";
3
+ declare const FLOATING_LISTBOX_PLACEMENT_FLIP = "flip";
4
+ declare const FLOATING_LISTBOX_PLACEMENT_AUTO = "auto";
2
5
  /** Геометрия, которую Floating UI вычислил для доступной стороны listbox. */
3
6
  export type FloatingListboxSizeContext = {
4
7
  availableWidth: number;
@@ -22,7 +25,7 @@ export type FloatingListboxSizeStyle = {
22
25
  };
23
26
  export type FloatingListboxSizeResolver = (context: FloatingListboxSizeContext) => FloatingListboxSizeStyle;
24
27
  /** Стратегия выбора стороны для floating-элемента относительно reference. */
25
- export type FloatingListboxPlacementStrategy = "flip" | "auto";
28
+ export type FloatingListboxPlacementStrategy = typeof FLOATING_LISTBOX_PLACEMENT_FLIP | typeof FLOATING_LISTBOX_PLACEMENT_AUTO;
26
29
  interface UseFloatingListboxParams<T> {
27
30
  options: readonly T[];
28
31
  selectedIndex: number;
@@ -40,38 +43,16 @@ interface UseFloatingListboxParams<T> {
40
43
  restoreFocusOnClose?: boolean;
41
44
  resolveFloatingSize?: FloatingListboxSizeResolver;
42
45
  }
43
- export declare function useFloatingListbox<T>({ options, selectedIndex, open, onOpenChange, getOptionDisabled, onSelect, disabled, placement, placementStrategy, closeOnSelect, focusFloatingOnOpen, allowOpenWithoutOptions, restoreFocusOnClose, resolveFloatingSize }: UseFloatingListboxParams<T>): {
46
+ /**
47
+ * Форма результата использует публичные типы Floating UI: декларации пакета не
48
+ * должны раскрывать пути его транзитивных зависимостей в конкретной установке.
49
+ */
50
+ type UseFloatingListboxResult<T> = Pick<UseFloatingReturn, "refs" | "context" | "floatingStyles"> & Pick<UseInteractionsReturn, "getFloatingProps"> & {
44
51
  open: boolean;
45
52
  setOpen: (open: boolean) => void;
46
53
  activeIndex: number;
47
- refs: {
48
- reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
49
- floating: React.MutableRefObject<HTMLElement | null>;
50
- setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
51
- setFloating: (node: HTMLElement | null) => void;
52
- } & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
53
- context: {
54
- x: number;
55
- update: () => void;
56
- y: number;
57
- placement: Placement;
58
- strategy: import("@floating-ui/utils").Strategy;
59
- middlewareData: import("@floating-ui/core").MiddlewareData;
60
- isPositioned: boolean;
61
- floatingStyles: React.CSSProperties;
62
- open: boolean;
63
- onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
64
- events: import("@floating-ui/react").FloatingEvents;
65
- dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
66
- nodeId: string | undefined;
67
- floatingId: string | undefined;
68
- refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
69
- elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
70
- };
71
- floatingStyles: import("react").CSSProperties;
72
- getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
73
- setReference: ((node: import("@floating-ui/react-dom").ReferenceType | null) => void) & ((node: import("@floating-ui/react").ReferenceType | null) => void);
74
- setFloating: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
54
+ setReference: UseFloatingReturn["refs"]["setReference"];
55
+ setFloating: UseFloatingReturn["refs"]["setFloating"];
75
56
  setOptionRef: (index: number, node: HTMLElement | null) => void;
76
57
  close: () => void;
77
58
  openList: () => void;
@@ -79,10 +60,11 @@ export declare function useFloatingListbox<T>({ options, selectedIndex, open, on
79
60
  toggleOpen: () => void;
80
61
  selectOption: (option: T) => void;
81
62
  selectActiveOption: () => void;
82
- handleReferenceKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
83
- handleFloatingKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
63
+ handleReferenceKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
64
+ handleFloatingKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
84
65
  getOptionId: (listId: string, index: number) => string;
85
66
  getActiveOptionId: (listId: string) => string | undefined;
86
67
  };
68
+ export declare function useFloatingListbox<T>({ options, selectedIndex, open, onOpenChange, getOptionDisabled, onSelect, disabled, placement, placementStrategy, closeOnSelect, focusFloatingOnOpen, allowOpenWithoutOptions, restoreFocusOnClose, resolveFloatingSize }: UseFloatingListboxParams<T>): UseFloatingListboxResult<T>;
87
69
  export {};
88
70
  //# sourceMappingURL=useFloatingListbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFloatingListbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useFloatingListbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAKN,SAAS,EAOT,MAAM,oBAAoB,CAAC;AAI5B,6EAA6E;AAC7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG;IACH,CAAC,cAAc,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,0BAA0B,KAAK,wBAAwB,CAAC;AAE5G,6EAA6E;AAC7E,MAAM,MAAM,gCAAgC,GAAG,MAAM,GAAG,MAAM,CAAC;AA2B/D,UAAU,wBAAwB,CAAC,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,gCAAgC,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;CAClD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EACrC,OAAO,EACP,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,SAA0B,EAC1B,iBAA0B,EAC1B,aAAoB,EACpB,mBAA0B,EAC1B,uBAA+B,EAC/B,mBAA0B,EAC1B,mBAAmB,EACnB,EAAE,wBAAwB,CAAC,CAAC,CAAC;;oBA7BP,OAAO,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA0Xf,MAAM,QAAQ,WAAW,GAAG,IAAI;;;+BA1KrB,MAAM;;2BAyBV,CAAC;;oCA+BQ,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC;mCAoDjC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC;0BAiDzC,MAAM,SAAS,MAAM;gCACf,MAAM;EA0BzC"}
1
+ {"version":3,"file":"useFloatingListbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useFloatingListbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAgD,MAAM,OAAO,CAAC;AAEzF,OAAO,EAKN,KAAK,SAAS,EAKd,KAAK,iBAAiB,EAEtB,KAAK,qBAAqB,EAE1B,MAAM,oBAAoB,CAAC;AAa5B,QAAA,MAAM,+BAA+B,SAAS,CAAC;AAC/C,QAAA,MAAM,+BAA+B,SAAS,CAAC;AAM/C,6EAA6E;AAC7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG;IACH,CAAC,cAAc,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,0BAA0B,KAAK,wBAAwB,CAAC;AAE5G,6EAA6E;AAC7E,MAAM,MAAM,gCAAgC,GAAG,OAAO,+BAA+B,GAAG,OAAO,+BAA+B,CAAC;AA2B/H,UAAU,wBAAwB,CAAC,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,gCAAgC,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;CAClD;AAED;;;GAGG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,CAAC,GAChG,IAAI,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,GAAG;IACjD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAC;IACxD,WAAW,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACtD,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAChE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAClC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,sBAAsB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACpE,qBAAqB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnE,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EACrC,OAAO,EACP,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,SAA8C,EAC9C,iBAAmD,EACnD,aAAoB,EACpB,mBAA0B,EAC1B,uBAA+B,EAC/B,mBAA0B,EAC1B,mBAAmB,EACnB,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA2W3D"}
@@ -1,18 +1,19 @@
1
+ import { f as e } from "../chunks/mimeTypeConstants-BzONV-b1.js";
1
2
  //#region src/http/httpHeaders.ts
2
- function e(e) {
3
+ function t(e) {
3
4
  let t = new Headers(e);
4
5
  return t.set("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate"), t.set("Pragma", "no-cache"), t.set("Expires", "0"), t;
5
6
  }
6
7
  //#endregion
7
8
  //#region src/http/textResponse.ts
8
- function t({ status: t, text: n, headers: r }) {
9
- let i = e(r);
10
- return i.set("Content-Type", "text/plain; charset=UTF-8"), new Response(n, {
11
- status: t,
12
- headers: i
9
+ function n({ status: n, text: r, headers: i }) {
10
+ let a = t(i);
11
+ return a.set("Content-Type", e), new Response(r, {
12
+ status: n,
13
+ headers: a
13
14
  });
14
15
  }
15
16
  //#endregion
16
- export { e as createNoStoreHeaders, t as createTextHttpResponse };
17
+ export { t as createNoStoreHeaders, n as createTextHttpResponse };
17
18
 
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/http/httpHeaders.ts","../../src/http/textResponse.ts"],"sourcesContent":["export type NoStoreHeadersInit = HeadersInit | undefined;\n\nexport function createNoStoreHeaders(init?: NoStoreHeadersInit): Headers {\n\tconst headers = new Headers(init);\n\n\theaders.set(\"Cache-Control\", \"no-store, no-cache, must-revalidate, proxy-revalidate\");\n\theaders.set(\"Pragma\", \"no-cache\");\n\theaders.set(\"Expires\", \"0\");\n\n\treturn headers;\n}\n","import { createNoStoreHeaders } from \"./httpHeaders\";\n\nexport type TextHttpResponseOptions = {\n\treadonly status: number;\n\treadonly text: string;\n\treadonly headers?: HeadersInit;\n};\n\nexport function createTextHttpResponse({ status, text, headers }: TextHttpResponseOptions): Response {\n\tconst responseHeaders = createNoStoreHeaders(headers);\n\tresponseHeaders.set(\"Content-Type\", \"text/plain; charset=UTF-8\");\n\n\treturn new Response(text, {\n\t\tstatus,\n\t\theaders: responseHeaders\n\t});\n}\n"],"mappings":";AAEA,SAAgB,EAAqB,GAAoC;CACxE,IAAM,IAAU,IAAI,QAAQ,CAAI;CAMhC,OAJA,EAAQ,IAAI,iBAAiB,uDAAuD,GACpF,EAAQ,IAAI,UAAU,UAAU,GAChC,EAAQ,IAAI,WAAW,GAAG,GAEnB;AACR;;;ACFA,SAAgB,EAAuB,EAAE,WAAQ,SAAM,cAA8C;CACpG,IAAM,IAAkB,EAAqB,CAAO;CAGpD,OAFA,EAAgB,IAAI,gBAAgB,2BAA2B,GAExD,IAAI,SAAS,GAAM;EACzB;EACA,SAAS;CACV,CAAC;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/http/httpHeaders.ts","../../src/http/textResponse.ts"],"sourcesContent":["export type NoStoreHeadersInit = HeadersInit | undefined;\n\nexport function createNoStoreHeaders(init?: NoStoreHeadersInit): Headers {\n\tconst headers = new Headers(init);\n\n\theaders.set(\"Cache-Control\", \"no-store, no-cache, must-revalidate, proxy-revalidate\");\n\theaders.set(\"Pragma\", \"no-cache\");\n\theaders.set(\"Expires\", \"0\");\n\n\treturn headers;\n}\n","import { MIME_TYPE_TEXT_PLAIN_UTF8 } from \"../file/mimeTypeConstants\";\n\nimport { createNoStoreHeaders } from \"./httpHeaders\";\n\nexport type TextHttpResponseOptions = {\n\treadonly status: number;\n\treadonly text: string;\n\treadonly headers?: HeadersInit;\n};\n\nexport function createTextHttpResponse({ status, text, headers }: TextHttpResponseOptions): Response {\n\tconst responseHeaders = createNoStoreHeaders(headers);\n\tresponseHeaders.set(\"Content-Type\", MIME_TYPE_TEXT_PLAIN_UTF8);\n\n\treturn new Response(text, {\n\t\tstatus,\n\t\theaders: responseHeaders\n\t});\n}\n"],"mappings":";;AAEA,SAAgB,EAAqB,GAAoC;CACxE,IAAM,IAAU,IAAI,QAAQ,CAAI;CAMhC,OAJA,EAAQ,IAAI,iBAAiB,uDAAuD,GACpF,EAAQ,IAAI,UAAU,UAAU,GAChC,EAAQ,IAAI,WAAW,GAAG,GAEnB;AACR;;;ACAA,SAAgB,EAAuB,EAAE,WAAQ,SAAM,cAA8C;CACpG,IAAM,IAAkB,EAAqB,CAAO;CAGpD,OAFA,EAAgB,IAAI,gBAAgB,CAAyB,GAEtD,IAAI,SAAS,GAAM;EACzB;EACA,SAAS;CACV,CAAC;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"textResponse.d.ts","sourceRoot":"","sources":["../../src/http/textResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,uBAAuB,GAAG;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,uBAAuB,GAAG,QAAQ,CAQnG"}
1
+ {"version":3,"file":"textResponse.d.ts","sourceRoot":"","sources":["../../src/http/textResponse.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,uBAAuB,GAAG;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,uBAAuB,GAAG,QAAQ,CAQnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"createIndexedRecordsSchema.d.ts","sourceRoot":"","sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAa5D;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CA4ClI"}
1
+ {"version":3,"file":"createIndexedRecordsSchema.d.ts","sourceRoot":"","sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAiB5D;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAwDlI"}
@@ -1,45 +1,46 @@
1
1
  import { i as e, r as t } from "../chunks/isRecord-DXDTW-jA.js";
2
2
  import { z as n } from "zod";
3
3
  //#region src/indexed-records/createIndexedRecordsSchema.ts
4
- function r(n) {
5
- if (!e(n) || !t(n) || !Object.hasOwn(n, "items") || !Object.hasOwn(n, "indexById")) return !1;
4
+ var r = "indexById", i = "custom";
5
+ function a(n) {
6
+ if (!e(n) || !t(n) || !Object.hasOwn(n, "items") || !Object.hasOwn(n, r)) return !1;
6
7
  for (let e of Reflect.ownKeys(n)) {
7
8
  let t = Object.getOwnPropertyDescriptor(n, e);
8
9
  if (typeof e != "string" || !t?.enumerable || !("value" in t)) return !1;
9
10
  }
10
11
  return !0;
11
12
  }
12
- function i({ itemsSchema: i, getId: a }) {
13
- return n.custom(r, "Ожидалась структура индексированных записей без accessor и symbol.").pipe(n.strictObject({
14
- items: i,
13
+ function o({ itemsSchema: o, getId: s }) {
14
+ return n.custom(a, "Ожидалась структура индексированных записей без accessor и symbol.").pipe(n.strictObject({
15
+ items: o,
15
16
  indexById: n.unknown()
16
- })).transform((r, i) => {
17
- if (!e(r.indexById) || !t(r.indexById)) return i.addIssue({
18
- code: "custom",
19
- path: ["indexById"],
17
+ })).transform((a, o) => {
18
+ if (!e(a.indexById) || !t(a.indexById)) return o.addIssue({
19
+ code: i,
20
+ path: [r],
20
21
  message: "Ожидался позиционный словарь записей."
21
22
  }), n.NEVER;
22
- let o = Object.create(null), s = 0;
23
- for (let e of Reflect.ownKeys(r.indexById)) {
24
- let t = Object.getOwnPropertyDescriptor(r.indexById, e), c = t?.value;
25
- if (typeof e != "string" || !t?.enumerable || !("value" in t) || typeof c != "number" || !Number.isSafeInteger(c) || c < 0 || c >= r.items.length || !Object.hasOwn(r.items, c) || a(r.items[c]) !== e) return i.addIssue({
26
- code: "custom",
27
- path: ["indexById"],
23
+ let c = Object.create(null), l = 0;
24
+ for (let e of Reflect.ownKeys(a.indexById)) {
25
+ let t = Object.getOwnPropertyDescriptor(a.indexById, e), u = t?.value;
26
+ if (typeof e != "string" || !t?.enumerable || !("value" in t) || typeof u != "number" || !Number.isSafeInteger(u) || u < 0 || u >= a.items.length || !Object.hasOwn(a.items, u) || s(a.items[u]) !== e) return o.addIssue({
27
+ code: i,
28
+ path: [r],
28
29
  message: "Индекс не соответствует записям."
29
30
  }), n.NEVER;
30
- o[e] = c, s += 1;
31
+ c[e] = u, l += 1;
31
32
  }
32
- return s === r.items.length ? Object.freeze({
33
- items: r.items,
34
- indexById: Object.freeze(o)
35
- }) : (i.addIssue({
36
- code: "custom",
37
- path: ["indexById"],
33
+ return l === a.items.length ? Object.freeze({
34
+ items: a.items,
35
+ indexById: Object.freeze(c)
36
+ }) : (o.addIssue({
37
+ code: i,
38
+ path: [r],
38
39
  message: "Позиционный индекс неполон."
39
40
  }), n.NEVER);
40
41
  });
41
42
  }
42
43
  //#endregion
43
- export { i as createIndexedRecordsSchema };
44
+ export { o as createIndexedRecordsSchema };
44
45
 
45
46
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","names":[],"sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { isPlainObject, isRecord } from \"../validators/isRecord\";\n\nimport { type IndexedRecordsSchemaOptions } from \"./indexedRecordsSchemaTypes\";\nimport { type IndexedRecords } from \"./indexedRecordsTypes\";\n\n/** Не позволяет Zod прочитать accessor или проигнорировать symbol на wire-оболочке. */\nfunction hasIndexedRecordsWireDataProperties(value: unknown): value is Record<string, unknown> {\n\tif (!isRecord(value) || !isPlainObject(value)) return false;\n\tif (!Object.hasOwn(value, \"items\") || !Object.hasOwn(value, \"indexById\")) return false;\n\tfor (const key of Reflect.ownKeys(value)) {\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(value, key);\n\t\tif (typeof key !== \"string\" || !descriptor?.enumerable || !(\"value\" in descriptor)) return false;\n\t}\n\treturn true;\n}\n\n/**\n * Проверяет доставленный позиционный индекс, не восстанавливая его по items.\n * Предметная itemsSchema вызывается один раз и сохраняет свой порядок/ссылки;\n * она же обеспечивает неизменность массива, записей и вложенных значений.\n * Фабрика создаёт и замораживает только собственные оболочку и numeric index.\n */\nexport function createIndexedRecordsSchema<T>({ itemsSchema, getId }: IndexedRecordsSchemaOptions<T>): z.ZodType<IndexedRecords<T>> {\n\treturn z\n\t\t.custom<Record<string, unknown>>(\n\t\t\thasIndexedRecordsWireDataProperties,\n\t\t\t\"Ожидалась структура индексированных записей без accessor и symbol.\"\n\t\t)\n\t\t.pipe(z.strictObject({ items: itemsSchema, indexById: z.unknown() }))\n\t\t.transform((wire, context): IndexedRecords<T> => {\n\t\t\tif (!isRecord(wire.indexById) || !isPlainObject(wire.indexById)) {\n\t\t\t\tcontext.addIssue({ code: \"custom\", path: [\"indexById\"], message: \"Ожидался позиционный словарь записей.\" });\n\t\t\t\treturn z.NEVER;\n\t\t\t}\n\n\t\t\t// Проверка и копирование доставленных чисел происходят одним проходом.\n\t\t\t// z.record здесь не применяется: он удаляет собственный __proto__.\n\t\t\tconst indexById = Object.create(null) as Record<string, number>;\n\t\t\tlet entries = 0;\n\t\t\tfor (const id of Reflect.ownKeys(wire.indexById)) {\n\t\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(wire.indexById, id);\n\t\t\t\tconst position: unknown = descriptor?.value;\n\t\t\t\tif (\n\t\t\t\t\ttypeof id !== \"string\" ||\n\t\t\t\t\t!descriptor?.enumerable ||\n\t\t\t\t\t!(\"value\" in descriptor) ||\n\t\t\t\t\ttypeof position !== \"number\" ||\n\t\t\t\t\t!Number.isSafeInteger(position) ||\n\t\t\t\t\tposition < 0 ||\n\t\t\t\t\tposition >= wire.items.length ||\n\t\t\t\t\t!Object.hasOwn(wire.items, position) ||\n\t\t\t\t\tgetId(wire.items[position]) !== id\n\t\t\t\t) {\n\t\t\t\t\tcontext.addIssue({ code: \"custom\", path: [\"indexById\"], message: \"Индекс не соответствует записям.\" });\n\t\t\t\t\treturn z.NEVER;\n\t\t\t\t}\n\t\t\t\tindexById[id] = position;\n\t\t\t\tentries += 1;\n\t\t\t}\n\t\t\tif (entries !== wire.items.length) {\n\t\t\t\tcontext.addIssue({ code: \"custom\", path: [\"indexById\"], message: \"Позиционный индекс неполон.\" });\n\t\t\t\treturn z.NEVER;\n\t\t\t}\n\n\t\t\treturn Object.freeze({ items: wire.items, indexById: Object.freeze(indexById) });\n\t\t});\n}\n"],"mappings":";;;AAQA,SAAS,EAAoC,GAAkD;CAE9F,IADI,CAAC,EAAS,CAAK,KAAK,CAAC,EAAc,CAAK,KACxC,CAAC,OAAO,OAAO,GAAO,OAAO,KAAK,CAAC,OAAO,OAAO,GAAO,WAAW,GAAG,OAAO;CACjF,KAAK,IAAM,KAAO,QAAQ,QAAQ,CAAK,GAAG;EACzC,IAAM,IAAa,OAAO,yBAAyB,GAAO,CAAG;EAC7D,IAAI,OAAO,KAAQ,YAAY,CAAC,GAAY,cAAc,EAAE,WAAW,IAAa,OAAO;CAC5F;CACA,OAAO;AACR;AAQA,SAAgB,EAA8B,EAAE,gBAAa,YAAuE;CACnI,OAAO,EACL,OACA,GACA,oEACD,CAAC,CACA,KAAK,EAAE,aAAa;EAAE,OAAO;EAAa,WAAW,EAAE,QAAQ;CAAE,CAAC,CAAC,CAAC,CACpE,WAAW,GAAM,MAA+B;EAChD,IAAI,CAAC,EAAS,EAAK,SAAS,KAAK,CAAC,EAAc,EAAK,SAAS,GAE7D,OADA,EAAQ,SAAS;GAAE,MAAM;GAAU,MAAM,CAAC,WAAW;GAAG,SAAS;EAAwC,CAAC,GACnG,EAAE;EAKV,IAAM,IAAY,OAAO,OAAO,IAAI,GAChC,IAAU;EACd,KAAK,IAAM,KAAM,QAAQ,QAAQ,EAAK,SAAS,GAAG;GACjD,IAAM,IAAa,OAAO,yBAAyB,EAAK,WAAW,CAAE,GAC/D,IAAoB,GAAY;GACtC,IACC,OAAO,KAAO,YACd,CAAC,GAAY,cACb,EAAE,WAAW,MACb,OAAO,KAAa,YACpB,CAAC,OAAO,cAAc,CAAQ,KAC9B,IAAW,KACX,KAAY,EAAK,MAAM,UACvB,CAAC,OAAO,OAAO,EAAK,OAAO,CAAQ,KACnC,EAAM,EAAK,MAAM,EAAS,MAAM,GAGhC,OADA,EAAQ,SAAS;IAAE,MAAM;IAAU,MAAM,CAAC,WAAW;IAAG,SAAS;GAAmC,CAAC,GAC9F,EAAE;GAGV,AADA,EAAU,KAAM,GAChB,KAAW;EACZ;EAMA,OALI,MAAY,EAAK,MAAM,SAKpB,OAAO,OAAO;GAAE,OAAO,EAAK;GAAO,WAAW,OAAO,OAAO,CAAS;EAAE,CAAC,KAJ9E,EAAQ,SAAS;GAAE,MAAM;GAAU,MAAM,CAAC,WAAW;GAAG,SAAS;EAA8B,CAAC,GACzF,EAAE;CAIX,CAAC;AACH"}
1
+ {"version":3,"file":"schema.js","names":[],"sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { isPlainObject, isRecord } from \"../validators/isRecord\";\n\nimport { type IndexedRecordsSchemaOptions } from \"./indexedRecordsSchemaTypes\";\nimport { type IndexedRecords } from \"./indexedRecordsTypes\";\n\n// Имена wire-полей и коды Zod сохраняются при разных причинах отказа одной схемы.\nconst INDEXED_RECORDS_INDEX_PROPERTY = \"indexById\";\nconst INDEXED_RECORDS_ISSUE_CUSTOM = \"custom\";\n\n/** Не позволяет Zod прочитать accessor или проигнорировать symbol на wire-оболочке. */\nfunction hasIndexedRecordsWireDataProperties(value: unknown): value is Record<string, unknown> {\n\tif (!isRecord(value) || !isPlainObject(value)) return false;\n\tif (!Object.hasOwn(value, \"items\") || !Object.hasOwn(value, INDEXED_RECORDS_INDEX_PROPERTY)) return false;\n\tfor (const key of Reflect.ownKeys(value)) {\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(value, key);\n\t\tif (typeof key !== \"string\" || !descriptor?.enumerable || !(\"value\" in descriptor)) return false;\n\t}\n\treturn true;\n}\n\n/**\n * Проверяет доставленный позиционный индекс, не восстанавливая его по items.\n * Предметная itemsSchema вызывается один раз и сохраняет свой порядок/ссылки;\n * она же обеспечивает неизменность массива, записей и вложенных значений.\n * Фабрика создаёт и замораживает только собственные оболочку и numeric index.\n */\nexport function createIndexedRecordsSchema<T>({ itemsSchema, getId }: IndexedRecordsSchemaOptions<T>): z.ZodType<IndexedRecords<T>> {\n\treturn z\n\t\t.custom<Record<string, unknown>>(\n\t\t\thasIndexedRecordsWireDataProperties,\n\t\t\t\"Ожидалась структура индексированных записей без accessor и symbol.\"\n\t\t)\n\t\t.pipe(z.strictObject({ items: itemsSchema, indexById: z.unknown() }))\n\t\t.transform((wire, context): IndexedRecords<T> => {\n\t\t\tif (!isRecord(wire.indexById) || !isPlainObject(wire.indexById)) {\n\t\t\t\tcontext.addIssue({\n\t\t\t\t\tcode: INDEXED_RECORDS_ISSUE_CUSTOM,\n\t\t\t\t\tpath: [INDEXED_RECORDS_INDEX_PROPERTY],\n\t\t\t\t\tmessage: \"Ожидался позиционный словарь записей.\"\n\t\t\t\t});\n\t\t\t\treturn z.NEVER;\n\t\t\t}\n\n\t\t\t// Проверка и копирование доставленных чисел происходят одним проходом.\n\t\t\t// z.record здесь не применяется: он удаляет собственный __proto__.\n\t\t\tconst indexById = Object.create(null) as Record<string, number>;\n\t\t\tlet entries = 0;\n\t\t\tfor (const id of Reflect.ownKeys(wire.indexById)) {\n\t\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(wire.indexById, id);\n\t\t\t\tconst position: unknown = descriptor?.value;\n\t\t\t\tif (\n\t\t\t\t\ttypeof id !== \"string\" ||\n\t\t\t\t\t!descriptor?.enumerable ||\n\t\t\t\t\t!(\"value\" in descriptor) ||\n\t\t\t\t\ttypeof position !== \"number\" ||\n\t\t\t\t\t!Number.isSafeInteger(position) ||\n\t\t\t\t\tposition < 0 ||\n\t\t\t\t\tposition >= wire.items.length ||\n\t\t\t\t\t!Object.hasOwn(wire.items, position) ||\n\t\t\t\t\tgetId(wire.items[position]) !== id\n\t\t\t\t) {\n\t\t\t\t\tcontext.addIssue({\n\t\t\t\t\t\tcode: INDEXED_RECORDS_ISSUE_CUSTOM,\n\t\t\t\t\t\tpath: [INDEXED_RECORDS_INDEX_PROPERTY],\n\t\t\t\t\t\tmessage: \"Индекс не соответствует записям.\"\n\t\t\t\t\t});\n\t\t\t\t\treturn z.NEVER;\n\t\t\t\t}\n\t\t\t\tindexById[id] = position;\n\t\t\t\tentries += 1;\n\t\t\t}\n\t\t\tif (entries !== wire.items.length) {\n\t\t\t\tcontext.addIssue({\n\t\t\t\t\tcode: INDEXED_RECORDS_ISSUE_CUSTOM,\n\t\t\t\t\tpath: [INDEXED_RECORDS_INDEX_PROPERTY],\n\t\t\t\t\tmessage: \"Позиционный индекс неполон.\"\n\t\t\t\t});\n\t\t\t\treturn z.NEVER;\n\t\t\t}\n\n\t\t\treturn Object.freeze({ items: wire.items, indexById: Object.freeze(indexById) });\n\t\t});\n}\n"],"mappings":";;;AAQA,IAAM,IAAiC,aACjC,IAA+B;AAGrC,SAAS,EAAoC,GAAkD;CAE9F,IADI,CAAC,EAAS,CAAK,KAAK,CAAC,EAAc,CAAK,KACxC,CAAC,OAAO,OAAO,GAAO,OAAO,KAAK,CAAC,OAAO,OAAO,GAAO,CAA8B,GAAG,OAAO;CACpG,KAAK,IAAM,KAAO,QAAQ,QAAQ,CAAK,GAAG;EACzC,IAAM,IAAa,OAAO,yBAAyB,GAAO,CAAG;EAC7D,IAAI,OAAO,KAAQ,YAAY,CAAC,GAAY,cAAc,EAAE,WAAW,IAAa,OAAO;CAC5F;CACA,OAAO;AACR;AAQA,SAAgB,EAA8B,EAAE,gBAAa,YAAuE;CACnI,OAAO,EACL,OACA,GACA,oEACD,CAAC,CACA,KAAK,EAAE,aAAa;EAAE,OAAO;EAAa,WAAW,EAAE,QAAQ;CAAE,CAAC,CAAC,CAAC,CACpE,WAAW,GAAM,MAA+B;EAChD,IAAI,CAAC,EAAS,EAAK,SAAS,KAAK,CAAC,EAAc,EAAK,SAAS,GAM7D,OALA,EAAQ,SAAS;GAChB,MAAM;GACN,MAAM,CAAC,CAA8B;GACrC,SAAS;EACV,CAAC,GACM,EAAE;EAKV,IAAM,IAAY,OAAO,OAAO,IAAI,GAChC,IAAU;EACd,KAAK,IAAM,KAAM,QAAQ,QAAQ,EAAK,SAAS,GAAG;GACjD,IAAM,IAAa,OAAO,yBAAyB,EAAK,WAAW,CAAE,GAC/D,IAAoB,GAAY;GACtC,IACC,OAAO,KAAO,YACd,CAAC,GAAY,cACb,EAAE,WAAW,MACb,OAAO,KAAa,YACpB,CAAC,OAAO,cAAc,CAAQ,KAC9B,IAAW,KACX,KAAY,EAAK,MAAM,UACvB,CAAC,OAAO,OAAO,EAAK,OAAO,CAAQ,KACnC,EAAM,EAAK,MAAM,EAAS,MAAM,GAOhC,OALA,EAAQ,SAAS;IAChB,MAAM;IACN,MAAM,CAAC,CAA8B;IACrC,SAAS;GACV,CAAC,GACM,EAAE;GAGV,AADA,EAAU,KAAM,GAChB,KAAW;EACZ;EAUA,OATI,MAAY,EAAK,MAAM,SASpB,OAAO,OAAO;GAAE,OAAO,EAAK;GAAO,WAAW,OAAO,OAAO,CAAS;EAAE,CAAC,KAR9E,EAAQ,SAAS;GAChB,MAAM;GACN,MAAM,CAAC,CAA8B;GACrC,SAAS;EACV,CAAC,GACM,EAAE;CAIX,CAAC;AACH"}
@@ -0,0 +1,5 @@
1
+ /** Имена брейкпоинтов общие для типового контракта, responsive-значений и media store. */
2
+ export declare const BREAKPOINT_MOBILE = "mobile";
3
+ export declare const BREAKPOINT_TABLET = "tablet";
4
+ export declare const BREAKPOINT_LAPTOP = "laptop";
5
+ //# sourceMappingURL=breakpointConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpointConstants.d.ts","sourceRoot":"","sources":["../../src/media/breakpointConstants.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,iBAAiB,WAAW,CAAC"}
@@ -1,9 +1,10 @@
1
+ import { type BREAKPOINT_MOBILE, type BREAKPOINT_TABLET, type BREAKPOINT_LAPTOP } from "./breakpointConstants";
1
2
  export declare const BREAKPOINTS_EM: {
2
3
  readonly mobileMax: number;
3
4
  readonly tabletMin: number;
4
5
  readonly tabletMax: number;
5
6
  readonly laptopMin: number;
6
7
  };
7
- export type Breakpoint = "mobile" | "tablet" | "laptop";
8
+ export type Breakpoint = typeof BREAKPOINT_MOBILE | typeof BREAKPOINT_TABLET | typeof BREAKPOINT_LAPTOP;
8
9
  export type MediaMatches = Record<Breakpoint, boolean>;
9
10
  //# sourceMappingURL=breakpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/media/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/media/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAK/G,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,iBAAiB,GAAG,OAAO,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AACxG,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createNotificationTonePlayer.d.ts","sourceRoot":"","sources":["../../src/media/createNotificationTonePlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjG;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,GAAG,sBAAsB,CAmE3G"}
1
+ {"version":3,"file":"createNotificationTonePlayer.d.ts","sourceRoot":"","sources":["../../src/media/createNotificationTonePlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAajG;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,GAAG,sBAAsB,CAmE3G"}
@@ -1 +1 @@
1
- {"version":3,"file":"getCurrentFontSize.d.ts","sourceRoot":"","sources":["../../src/media/getCurrentFontSize.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAcvE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAezE;AAED,wBAAgB,gBAAgB,WAM/B"}
1
+ {"version":3,"file":"getCurrentFontSize.d.ts","sourceRoot":"","sources":["../../src/media/getCurrentFontSize.ts"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAcvE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAezE;AAED,wBAAgB,gBAAgB,WAM/B"}
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../chunks/media-WK38KtMl.js";
1
+ import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../chunks/media-imBOXWwa.js";
2
2
  export { n as BREAKPOINTS_EM, u as createNotificationTonePlayer, c as getControlHeight, t as getCurrentFontSize, i as getCurrentLineHeight, s as isResponsiveMap, o as pxToEm, r as resolveProps, e as resolveResponsiveValue, l as useMatchMedia, a as useMediaQuery };
@@ -0,0 +1,3 @@
1
+ /** Подписки разных media hooks используют одно имя события MediaQueryList. */
2
+ export declare const MEDIA_QUERY_CHANGE_EVENT = "change";
3
+ //# sourceMappingURL=mediaQueryConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mediaQueryConstants.d.ts","sourceRoot":"","sources":["../../src/media/mediaQueryConstants.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Breakpoint } from "./breakpoints";
1
+ import { type Breakpoint } from "./breakpoints";
2
2
  export type ResponsiveMap<T> = {
3
3
  mobile?: T;
4
4
  tablet?: T;
@@ -1 +1 @@
1
- {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/media/responsive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC9B,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;CACX,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7E,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAK/E;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI;KAC5C,CAAC,IAAI,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,EAAE,UAAU,GAAG,CAAC,GAAG,SAAS,CAW9G;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,CAS/H"}
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/media/responsive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC9B,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;CACX,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7E,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAK/E;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI;KAC5C,CAAC,IAAI,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,EAAE,UAAU,GAAG,CAAC,GAAG,SAAS,CAW9G;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,CAS/H"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMatchMedia.d.ts","sourceRoot":"","sources":["../../src/media/useMatchMedia.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGnF;;;GAGG;AACH,KAAK,kBAAkB,GAAG;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,UAAU,CAAC;CAC7B,CAAC;AA2PF;;GAEG;AACH,wBAAgB,aAAa,uBAE5B"}
1
+ {"version":3,"file":"useMatchMedia.d.ts","sourceRoot":"","sources":["../../src/media/useMatchMedia.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAInF;;;GAGG;AACH,KAAK,kBAAkB,GAAG;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,UAAU,CAAC;CAC7B,CAAC;AA2PF;;GAEG;AACH,wBAAgB,aAAa,uBAE5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/media/useMediaQuery.ts"],"names":[],"mappings":"AAEA,KAAK,oBAAoB,GAAG;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAwBF;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,WAAmB,EAAE,GAAE,oBAAyB,WAM9F"}
1
+ {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/media/useMediaQuery.ts"],"names":[],"mappings":"AAIA,KAAK,oBAAoB,GAAG;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAwBF;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,WAAmB,EAAE,GAAE,oBAAyB,WAM9F"}
@@ -0,0 +1,7 @@
1
+ import { type BaseMetaType } from "./metadataTypes";
2
+ /** Общая классификация контролов; не инициализирует схемы или состояние источника данных. */
3
+ export declare const BASE_META_TYPES: readonly ["string", "number", "boolean", "date"];
4
+ export declare const BASE_META_TYPE_LABELS: Readonly<Record<BaseMetaType, string>>;
5
+ export declare function isBaseMetaType(type: unknown): type is BaseMetaType;
6
+ export declare function resolveBaseTypeLabel(type: BaseMetaType): string;
7
+ //# sourceMappingURL=baseMetaTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseMetaTypes.d.ts","sourceRoot":"","sources":["../../src/metadata/baseMetaTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,6FAA6F;AAC7F,eAAO,MAAM,eAAe,kDAKiB,CAAC;AAI9C,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAKvE,CAAC;AAEH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAE/D"}
@@ -0,0 +1,17 @@
1
+ import { type BASE_META_TYPE_DATE, type BASE_META_TYPE_NUMBER, type SCALAR_ROLE_DIMENSION, type SCALAR_ROLE_MEASURE, type SCALAR_TYPE_BINARY, type SCALAR_TYPE_BOOLEAN, type SCALAR_TYPE_BYTE, type SCALAR_TYPE_DATETIME, type SCALAR_TYPE_DATETIME_OFFSET, type SCALAR_TYPE_DECIMAL, type SCALAR_TYPE_DOUBLE, type SCALAR_TYPE_FLOAT, type SCALAR_TYPE_GUID, type SCALAR_TYPE_INT, type SCALAR_TYPE_LONG, type SCALAR_TYPE_STRING, type SCALAR_TYPE_TIME } from "./scalarTypeConstants";
2
+ /**
3
+ * Внутренняя классификация скалярных значений таблиц, форм и экспорта. Здесь нет
4
+ * EDMX, литералов URL, Zod-схем и состояния OData: протокольные адаптеры зависят
5
+ * от этих типов, а общие сценарии не зависят от протокольной точки входа.
6
+ * Набор значений сохранён точно, поскольку он уже входит в опубликованные контракты.
7
+ */
8
+ export type BaseMetaType = typeof SCALAR_TYPE_STRING | typeof BASE_META_TYPE_NUMBER | typeof SCALAR_TYPE_BOOLEAN | typeof BASE_META_TYPE_DATE;
9
+ export type BooleanMetaType = typeof SCALAR_TYPE_BOOLEAN;
10
+ export type NumericMetaType = typeof SCALAR_TYPE_BYTE | typeof SCALAR_TYPE_INT | typeof SCALAR_TYPE_LONG | typeof SCALAR_TYPE_FLOAT | typeof SCALAR_TYPE_DECIMAL | typeof SCALAR_TYPE_DOUBLE;
11
+ export type IntegerMetaType = Extract<NumericMetaType, typeof SCALAR_TYPE_BYTE | typeof SCALAR_TYPE_INT | typeof SCALAR_TYPE_LONG>;
12
+ export type DateMetaType = typeof SCALAR_TYPE_DATETIME | typeof SCALAR_TYPE_DATETIME_OFFSET | typeof SCALAR_TYPE_TIME;
13
+ export type StringMetaType = typeof SCALAR_TYPE_STRING | typeof SCALAR_TYPE_GUID | typeof SCALAR_TYPE_BINARY;
14
+ export type ScalarMetaType = BooleanMetaType | NumericMetaType | DateMetaType | StringMetaType;
15
+ /** Роль поля в аналитическом представлении не зависит от протокола получения данных. */
16
+ export type ColumnRole = typeof SCALAR_ROLE_MEASURE | typeof SCALAR_ROLE_DIMENSION;
17
+ //# sourceMappingURL=metadataTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadataTypes.d.ts","sourceRoot":"","sources":["../../src/metadata/metadataTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACvB,OAAO,kBAAkB,GAAG,OAAO,qBAAqB,GAAG,OAAO,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAEpH,MAAM,MAAM,eAAe,GAAG,OAAO,mBAAmB,CAAC;AACzD,MAAM,MAAM,eAAe,GACxB,OAAO,gBAAgB,GACvB,OAAO,eAAe,GACtB,OAAO,gBAAgB,GACvB,OAAO,iBAAiB,GACxB,OAAO,mBAAmB,GAC1B,OAAO,kBAAkB,CAAC;AAC7B,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,OAAO,gBAAgB,GAAG,OAAO,eAAe,GAAG,OAAO,gBAAgB,CAAC,CAAC;AACnI,MAAM,MAAM,YAAY,GAAG,OAAO,oBAAoB,GAAG,OAAO,2BAA2B,GAAG,OAAO,gBAAgB,CAAC;AACtH,MAAM,MAAM,cAAc,GAAG,OAAO,kBAAkB,GAAG,OAAO,gBAAgB,GAAG,OAAO,kBAAkB,CAAC;AAC7G,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;AAE/F,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG,OAAO,mBAAmB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type BaseMetaType, type BooleanMetaType, type DateMetaType, type IntegerMetaType, type NumericMetaType, type ScalarMetaType } from "./metadataTypes";
2
+ /** Определяет базовый тип поля для UI и Excel без инициализации протокольных модулей. */
3
+ export declare function getBaseTypeFromScalarType<T extends ScalarMetaType>(type: T): BaseMetaType;
4
+ export declare function isScalarBooleanType(type: ScalarMetaType | undefined): type is BooleanMetaType;
5
+ export declare function isScalarNumericType(type: ScalarMetaType | undefined): type is NumericMetaType;
6
+ export declare function isScalarIntegerType(type: ScalarMetaType | undefined): type is IntegerMetaType;
7
+ export declare function isScalarDateType(type: ScalarMetaType | undefined): type is DateMetaType;
8
+ //# sourceMappingURL=scalarTypeClassification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalarTypeClassification.d.ts","sourceRoot":"","sources":["../../src/metadata/scalarTypeClassification.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,MAAM,iBAAiB,CAAC;AAiBzB,yFAAyF;AACzF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,CAAC,GAAG,YAAY,CAKzF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAE7F;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAS7F;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAE7F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,YAAY,CAEvF"}
@@ -0,0 +1,21 @@
1
+ /** Внутренние значения общей метамодели, независимые от OData и конкретных UI. */
2
+ export declare const SCALAR_TYPE_STRING = "string";
3
+ export declare const SCALAR_TYPE_BOOLEAN = "boolean";
4
+ export declare const SCALAR_TYPE_BYTE = "byte";
5
+ export declare const SCALAR_TYPE_INT = "int";
6
+ export declare const SCALAR_TYPE_LONG = "long";
7
+ export declare const SCALAR_TYPE_FLOAT = "float";
8
+ export declare const SCALAR_TYPE_DECIMAL = "decimal";
9
+ export declare const SCALAR_TYPE_DOUBLE = "double";
10
+ export declare const SCALAR_TYPE_DATETIME = "datetime";
11
+ export declare const SCALAR_TYPE_DATETIME_OFFSET = "datetimeOffset";
12
+ export declare const SCALAR_TYPE_TIME = "time";
13
+ export declare const SCALAR_TYPE_GUID = "guid";
14
+ export declare const SCALAR_TYPE_BINARY = "binary";
15
+ /** Базовая классификация объединяет конкретные скалярные типы для контролов. */
16
+ export declare const BASE_META_TYPE_NUMBER = "number";
17
+ export declare const BASE_META_TYPE_DATE = "date";
18
+ /** Аналитическая роль поля сохраняется общей для таблиц и протокольных адаптеров. */
19
+ export declare const SCALAR_ROLE_MEASURE = "measure";
20
+ export declare const SCALAR_ROLE_DIMENSION = "dimension";
21
+ //# sourceMappingURL=scalarTypeConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalarTypeConstants.d.ts","sourceRoot":"","sources":["../../src/metadata/scalarTypeConstants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,iBAAiB,UAAU,CAAC;AACzC,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAC/C,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAC5D,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,qBAAqB,cAAc,CAAC"}
@@ -1,133 +1,133 @@
1
1
  import { createStore as e } from "zustand";
2
- //#region src/notifications/notify.ts
3
- var t = null, n = (e) => (t = e, () => {
4
- t === e && (t = null);
5
- }), r = () => {
6
- if (!t) throw Error("Notifications store is not bound. Wrap app with NotificationsProvider.");
7
- return t;
8
- }, i = Object.freeze({
9
- push: (e) => r().getState().actions.push(e),
10
- upsert: (e) => r().getState().actions.upsert(e),
11
- update: (e, t) => r().getState().actions.update(e, t),
12
- dismiss: (e) => r().getState().actions.dismiss(e),
13
- clear: () => r().getState().actions.clear(),
14
- clearHistory: () => r().getState().actions.clearHistory(),
15
- success: (e, t) => r().getState().actions.push({
16
- type: "success",
2
+ //#region src/notifications/notificationTypeConstants.ts
3
+ var t = "error", n = "warning", r = "info", i = "success", a = null, o = 2500, s = 5e3, c = (e) => (a = e, () => {
4
+ a === e && (a = null);
5
+ }), l = () => {
6
+ if (!a) throw Error("Notifications store is not bound. Wrap app with NotificationsProvider.");
7
+ return a;
8
+ }, u = Object.freeze({
9
+ push: (e) => l().getState().actions.push(e),
10
+ upsert: (e) => l().getState().actions.upsert(e),
11
+ update: (e, t) => l().getState().actions.update(e, t),
12
+ dismiss: (e) => l().getState().actions.dismiss(e),
13
+ clear: () => l().getState().actions.clear(),
14
+ clearHistory: () => l().getState().actions.clearHistory(),
15
+ success: (e, t) => l().getState().actions.push({
16
+ type: i,
17
17
  message: e,
18
18
  ...t
19
19
  }),
20
- info: (e, t) => r().getState().actions.push({
21
- type: "info",
20
+ info: (e, t) => l().getState().actions.push({
21
+ type: r,
22
22
  message: e,
23
23
  ...t
24
24
  }),
25
- warning: (e, t) => r().getState().actions.push({
26
- type: "warning",
25
+ warning: (e, t) => l().getState().actions.push({
26
+ type: n,
27
27
  message: e,
28
28
  ...t
29
29
  }),
30
- error: (e, t) => r().getState().actions.push({
31
- type: "error",
30
+ error: (e, n) => l().getState().actions.push({
31
+ type: t,
32
32
  message: e,
33
- ...t
33
+ ...n
34
34
  }),
35
- progress: (e, t) => {
36
- let n = r(), a = t?.id;
37
- a && n.getState().actions.upsert({
38
- id: a,
39
- type: "info",
40
- title: t?.title,
35
+ progress: (e, n) => {
36
+ let a = l(), c = n?.id;
37
+ c && a.getState().actions.upsert({
38
+ id: c,
39
+ type: r,
40
+ title: n?.title,
41
41
  message: e,
42
42
  dismissible: !1
43
43
  });
44
- let o = a ?? n.getState().actions.push({
44
+ let d = c ?? a.getState().actions.push({
45
45
  type: "info",
46
- title: t?.title,
46
+ title: n?.title,
47
47
  message: e,
48
48
  dismissible: !1
49
49
  });
50
50
  return {
51
- id: o,
52
- update: (e) => i.update(o, { message: e }),
53
- success: (e, t = 2500) => i.update(o, {
54
- type: "success",
51
+ id: d,
52
+ update: (e) => u.update(d, { message: e }),
53
+ success: (e, t = o) => u.update(d, {
54
+ type: i,
55
55
  message: e,
56
56
  dismissible: !0,
57
57
  ttlMs: t
58
58
  }),
59
- error: (e, t = 5e3) => i.update(o, {
60
- type: "error",
59
+ error: (e, n = s) => u.update(d, {
60
+ type: t,
61
61
  message: e,
62
62
  dismissible: !0,
63
- ttlMs: t
63
+ ttlMs: n
64
64
  }),
65
- dismiss: () => i.dismiss(o)
65
+ dismiss: () => u.dismiss(d)
66
66
  };
67
67
  }
68
- }), a = () => `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 9)}`, o = 6;
69
- function s() {
68
+ }), d = 36, f = () => `${Date.now().toString(d)}-${Math.random().toString(d).slice(2, 9)}`, p = 6, m = 1e4;
69
+ function h() {
70
70
  let t = /* @__PURE__ */ new Map(), n = (e) => {
71
71
  let n = t.get(e);
72
72
  n && (window.clearTimeout(n), t.delete(e));
73
- }, r = (e, r, i = 1e4) => {
73
+ }, r = (e, r, i = m) => {
74
74
  if (n(r), i <= 0) return;
75
75
  let a = window.setTimeout(() => {
76
76
  e.getState().actions.dismiss(r);
77
77
  }, i);
78
78
  t.set(r, a);
79
- }, i = e()((e, s) => ({
79
+ }, i = e()((e, a) => ({
80
80
  items: [],
81
81
  history: [],
82
82
  actions: {
83
83
  push: (t) => {
84
- let c = t.id ?? a(), l = Date.now(), u = {
85
- id: c,
84
+ let o = t.id ?? f(), s = Date.now(), c = {
85
+ id: o,
86
86
  type: t.type,
87
87
  title: t.title,
88
88
  message: t.message,
89
- createdAt: l,
89
+ createdAt: s,
90
90
  ttlMs: t.ttlMs,
91
91
  dismissible: t.dismissible ?? !0,
92
92
  actions: t.actions,
93
93
  ...t.retainInHistory === void 0 ? {} : { retainInHistory: t.retainInHistory }
94
- }, d = s().items, f = [u, ...d.filter((e) => e.id !== c)].slice(0, o), p = new Set(f.map((e) => e.id));
95
- return d.forEach((e) => {
96
- p.has(e.id) || n(e.id);
94
+ }, l = a().items, u = [c, ...l.filter((e) => e.id !== o)].slice(0, p), d = new Set(u.map((e) => e.id));
95
+ return l.forEach((e) => {
96
+ d.has(e.id) || n(e.id);
97
97
  }), e((e) => {
98
98
  let t = e.history;
99
- return u.retainInHistory === !1 ? e.history.some((e) => e.id === c) && (t = e.history.filter((e) => e.id !== c)) : t = [u, ...e.history.filter((e) => e.id !== c)], {
100
- items: f,
99
+ return c.retainInHistory === !1 ? e.history.some((e) => e.id === o) && (t = e.history.filter((e) => e.id !== o)) : t = [c, ...e.history.filter((e) => e.id !== o)], {
100
+ items: u,
101
101
  history: t
102
102
  };
103
- }), r(i, c, u.ttlMs), c;
103
+ }), r(i, o, c.ttlMs), o;
104
104
  },
105
105
  update: (t, n) => {
106
- let a = s().items.find((e) => e.id === t);
107
- if (!a) return !1;
108
- let { retainInHistory: o, ...c } = n, l = {
109
- ...a,
106
+ let o = a().items.find((e) => e.id === t);
107
+ if (!o) return !1;
108
+ let { retainInHistory: s, ...c } = n, l = {
109
+ ...o,
110
110
  ...c,
111
- ...o === void 0 ? {} : { retainInHistory: o },
112
- id: a.id,
113
- createdAt: a.createdAt
111
+ ...s === void 0 ? {} : { retainInHistory: s },
112
+ id: o.id,
113
+ createdAt: o.createdAt
114
114
  };
115
115
  return e((e) => {
116
116
  let n = e.history.some((e) => e.id === t), r = e.history;
117
- return l.retainInHistory === !1 ? n && (r = e.history.filter((e) => e.id !== t)) : n ? r = e.history.map((e) => e.id === t ? l : e) : o === !0 && (r = [l, ...e.history]), {
117
+ return l.retainInHistory === !1 ? n && (r = e.history.filter((e) => e.id !== t)) : n ? r = e.history.map((e) => e.id === t ? l : e) : s === !0 && (r = [l, ...e.history]), {
118
118
  items: e.items.map((e) => e.id === t ? l : e),
119
119
  history: r
120
120
  };
121
121
  }), "ttlMs" in n && r(i, t, l.ttlMs), !0;
122
122
  },
123
- upsert: (e) => s().actions.update(e.id, {
123
+ upsert: (e) => a().actions.update(e.id, {
124
124
  type: e.type,
125
125
  title: e.title,
126
126
  message: e.message,
127
127
  ttlMs: e.ttlMs,
128
128
  dismissible: e.dismissible,
129
129
  ...e.retainInHistory === void 0 ? {} : { retainInHistory: e.retainInHistory }
130
- }) ? e.id : s().actions.push(e),
130
+ }) ? e.id : a().actions.push(e),
131
131
  dismiss: (t) => {
132
132
  n(t), e((e) => ({ items: e.items.filter((e) => e.id !== t) }));
133
133
  },
@@ -142,6 +142,6 @@ function s() {
142
142
  return i;
143
143
  }
144
144
  //#endregion
145
- export { n as bindNotifications, s as createNotificationsStore, i as notify };
145
+ export { c as bindNotifications, h as createNotificationsStore, u as notify };
146
146
 
147
147
  //# sourceMappingURL=index.js.map