@ryuzaki13/react-foundation-lib 2.31.1 → 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 (487) 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 -114
  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-rxriDRPk.js → formatters-CO40zvVB.js} +496 -497
  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 +117 -116
  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.map +1 -1
  184. package/dist/file/checkFileSignature.d.ts.map +1 -1
  185. package/dist/file/contentDisposition.d.ts.map +1 -1
  186. package/dist/file/fileSignatureConstants.d.ts +14 -18
  187. package/dist/file/fileSignatureConstants.d.ts.map +1 -1
  188. package/dist/file/fileSignatureTypes.d.ts +3 -3
  189. package/dist/file/fileSignatureTypes.d.ts.map +1 -1
  190. package/dist/file/image/imageReadConstants.d.ts +3 -0
  191. package/dist/file/image/imageReadConstants.d.ts.map +1 -0
  192. package/dist/file/image/readImageFile.d.ts +3 -2
  193. package/dist/file/image/readImageFile.d.ts.map +1 -1
  194. package/dist/file/image/types.d.ts +5 -3
  195. package/dist/file/image/types.d.ts.map +1 -1
  196. package/dist/file/index.js +139 -165
  197. package/dist/file/index.js.map +1 -1
  198. package/dist/file/mimeType.d.ts.map +1 -1
  199. package/dist/file/mimeTypeConstants.d.ts +18 -0
  200. package/dist/file/mimeTypeConstants.d.ts.map +1 -0
  201. package/dist/file/read-file/assert.d.ts.map +1 -1
  202. package/dist/file/read-file/readFile.d.ts +3 -11
  203. package/dist/file/read-file/readFile.d.ts.map +1 -1
  204. package/dist/file/read-file/readFileConstants.d.ts +13 -0
  205. package/dist/file/read-file/readFileConstants.d.ts.map +1 -0
  206. package/dist/file/read-file/types.d.ts +7 -6
  207. package/dist/file/read-file/types.d.ts.map +1 -1
  208. package/dist/file/signature/checkArchiveSignature.d.ts.map +1 -1
  209. package/dist/file-system/fileSystemConstants.d.ts +5 -0
  210. package/dist/file-system/fileSystemConstants.d.ts.map +1 -0
  211. package/dist/file-system/fileSystemTypes.d.ts +2 -1
  212. package/dist/file-system/fileSystemTypes.d.ts.map +1 -1
  213. package/dist/file-system/index.js +11 -10
  214. package/dist/file-system/index.js.map +1 -1
  215. package/dist/file-system/resolvePathInsideRoot.d.ts.map +1 -1
  216. package/dist/formatters/boolean/parseAbapBoolean.d.ts.map +1 -1
  217. package/dist/formatters/boolean/toAbapBoolean.d.ts.map +1 -1
  218. package/dist/formatters/date/calendarDate.d.ts.map +1 -1
  219. package/dist/formatters/date/calendarDateConstants.d.ts +13 -0
  220. package/dist/formatters/date/calendarDateConstants.d.ts.map +1 -0
  221. package/dist/formatters/date/calendarPeriod.d.ts +11 -2
  222. package/dist/formatters/date/calendarPeriod.d.ts.map +1 -1
  223. package/dist/formatters/date/dateFormatConstants.d.ts +17 -0
  224. package/dist/formatters/date/dateFormatConstants.d.ts.map +1 -0
  225. package/dist/formatters/date/datePatternConstants.d.ts +16 -0
  226. package/dist/formatters/date/datePatternConstants.d.ts.map +1 -0
  227. package/dist/formatters/date/datePresetNameConstants.d.ts +27 -0
  228. package/dist/formatters/date/datePresetNameConstants.d.ts.map +1 -0
  229. package/dist/formatters/date/dateRange.d.ts +3 -1
  230. package/dist/formatters/date/dateRange.d.ts.map +1 -1
  231. package/dist/formatters/date/dateValueConstants.d.ts +15 -0
  232. package/dist/formatters/date/dateValueConstants.d.ts.map +1 -0
  233. package/dist/formatters/date/educationDate.d.ts.map +1 -1
  234. package/dist/formatters/date/formatDate.d.ts.map +1 -1
  235. package/dist/formatters/date/formatInstantDateTime.d.ts.map +1 -1
  236. package/dist/formatters/date/parseDate.d.ts.map +1 -1
  237. package/dist/formatters/date/pattern.d.ts.map +1 -1
  238. package/dist/formatters/date/presets.d.ts.map +1 -1
  239. package/dist/formatters/date/types.d.ts +8 -6
  240. package/dist/formatters/date/types.d.ts.map +1 -1
  241. package/dist/formatters/formatDurationMinutes.d.ts.map +1 -1
  242. package/dist/formatters/formatFileSize.d.ts.map +1 -1
  243. package/dist/formatters/formatPhone.d.ts.map +1 -1
  244. package/dist/formatters/index.js +6 -6
  245. package/dist/formatters/normalizeLeadingZeros.d.ts.map +1 -1
  246. package/dist/formatters/number/compact.d.ts.map +1 -1
  247. package/dist/formatters/number/formatCompactNumber.d.ts.map +1 -1
  248. package/dist/formatters/number/formatNumber.d.ts.map +1 -1
  249. package/dist/formatters/number/numberFormatConstants.d.ts +11 -0
  250. package/dist/formatters/number/numberFormatConstants.d.ts.map +1 -0
  251. package/dist/formatters/number/numberPresetNameConstants.d.ts +16 -0
  252. package/dist/formatters/number/numberPresetNameConstants.d.ts.map +1 -0
  253. package/dist/formatters/number/parseNumber.d.ts.map +1 -1
  254. package/dist/formatters/number/presets.d.ts.map +1 -1
  255. package/dist/formatters/number/types.d.ts +2 -1
  256. package/dist/formatters/number/types.d.ts.map +1 -1
  257. package/dist/formatters/pipeline/clone.d.ts.map +1 -1
  258. package/dist/formatters/pipeline/definitions.d.ts.map +1 -1
  259. package/dist/formatters/pipeline/dependencies.d.ts.map +1 -1
  260. package/dist/formatters/pipeline/execute.d.ts +4 -1
  261. package/dist/formatters/pipeline/execute.d.ts.map +1 -1
  262. package/dist/formatters/pipeline/formattersPipelineConstants.d.ts +19 -0
  263. package/dist/formatters/pipeline/formattersPipelineConstants.d.ts.map +1 -0
  264. package/dist/formatters/pipeline/normalize.d.ts.map +1 -1
  265. package/dist/formatters/pipeline/pipelineValidationConstants.d.ts +40 -0
  266. package/dist/formatters/pipeline/pipelineValidationConstants.d.ts.map +1 -0
  267. package/dist/formatters/pipeline/registry.d.ts +1 -1
  268. package/dist/formatters/pipeline/registry.d.ts.map +1 -1
  269. package/dist/formatters/pipeline/rekey.d.ts.map +1 -1
  270. package/dist/formatters/pipeline/runtime.d.ts.map +1 -1
  271. package/dist/formatters/pipeline/types.d.ts +24 -21
  272. package/dist/formatters/pipeline/types.d.ts.map +1 -1
  273. package/dist/formatters/pipeline/validate.d.ts +2 -1
  274. package/dist/formatters/pipeline/validate.d.ts.map +1 -1
  275. package/dist/formatters/strings/spaceCharacterConstants.d.ts +5 -0
  276. package/dist/formatters/strings/spaceCharacterConstants.d.ts.map +1 -0
  277. package/dist/formatters/strings/stripInnerSpaces.d.ts.map +1 -1
  278. package/dist/formatters/strings/stripLeadingZeros.d.ts.map +1 -1
  279. package/dist/formatters/valueState/fixedValueStateResolver.d.ts.map +1 -1
  280. package/dist/formatters/valueState/presentation.d.ts.map +1 -1
  281. package/dist/formatters/valueState/resolveValueStateClassName.d.ts.map +1 -1
  282. package/dist/formatters/valueState/thresholdValueStateResolver.d.ts.map +1 -1
  283. package/dist/formatters/valueState/types.d.ts +2 -1
  284. package/dist/formatters/valueState/types.d.ts.map +1 -1
  285. package/dist/formatters/valueState/valueStateRegistry.d.ts.map +1 -1
  286. package/dist/formatters/valueState/valueStateResolverConstants.d.ts +6 -0
  287. package/dist/formatters/valueState/valueStateResolverConstants.d.ts.map +1 -0
  288. package/dist/formulas/execute.d.ts +3 -2
  289. package/dist/formulas/execute.d.ts.map +1 -1
  290. package/dist/formulas/index.js +1 -1
  291. package/dist/formulas/isTableFormulaDependency.d.ts.map +1 -1
  292. package/dist/formulas/tableFormulaConstants.d.ts +12 -0
  293. package/dist/formulas/tableFormulaConstants.d.ts.map +1 -0
  294. package/dist/formulas/types.d.ts +2 -1
  295. package/dist/formulas/types.d.ts.map +1 -1
  296. package/dist/formulas/validate.d.ts +2 -1
  297. package/dist/formulas/validate.d.ts.map +1 -1
  298. package/dist/hooks/index.js +110 -107
  299. package/dist/hooks/index.js.map +1 -1
  300. package/dist/hooks/useBlockBrowserZoom.d.ts.map +1 -1
  301. package/dist/hooks/useDndSortableSensors.d.ts.map +1 -1
  302. package/dist/hooks/useFloatingListbox.d.ts +15 -33
  303. package/dist/hooks/useFloatingListbox.d.ts.map +1 -1
  304. package/dist/http/index.js +8 -7
  305. package/dist/http/index.js.map +1 -1
  306. package/dist/http/textResponse.d.ts.map +1 -1
  307. package/dist/indexed-records/createIndexedRecordsSchema.d.ts.map +1 -1
  308. package/dist/indexed-records/schema.js +24 -23
  309. package/dist/indexed-records/schema.js.map +1 -1
  310. package/dist/media/breakpointConstants.d.ts +5 -0
  311. package/dist/media/breakpointConstants.d.ts.map +1 -0
  312. package/dist/media/breakpoints.d.ts +2 -1
  313. package/dist/media/breakpoints.d.ts.map +1 -1
  314. package/dist/media/createNotificationTonePlayer.d.ts.map +1 -1
  315. package/dist/media/getCurrentFontSize.d.ts.map +1 -1
  316. package/dist/media/index.js +1 -1
  317. package/dist/media/mediaQueryConstants.d.ts +3 -0
  318. package/dist/media/mediaQueryConstants.d.ts.map +1 -0
  319. package/dist/media/responsive.d.ts +1 -1
  320. package/dist/media/responsive.d.ts.map +1 -1
  321. package/dist/media/useMatchMedia.d.ts.map +1 -1
  322. package/dist/media/useMediaQuery.d.ts.map +1 -1
  323. package/dist/metadata/baseMetaTypes.d.ts.map +1 -1
  324. package/dist/metadata/metadataTypes.d.ts +8 -7
  325. package/dist/metadata/metadataTypes.d.ts.map +1 -1
  326. package/dist/metadata/scalarTypeClassification.d.ts.map +1 -1
  327. package/dist/metadata/scalarTypeConstants.d.ts +21 -0
  328. package/dist/metadata/scalarTypeConstants.d.ts.map +1 -0
  329. package/dist/notifications/index.js +62 -62
  330. package/dist/notifications/index.js.map +1 -1
  331. package/dist/notifications/notificationTypeConstants.d.ts +6 -0
  332. package/dist/notifications/notificationTypeConstants.d.ts.map +1 -0
  333. package/dist/notifications/notify.d.ts.map +1 -1
  334. package/dist/notifications/store.d.ts.map +1 -1
  335. package/dist/notifications/types.d.ts +2 -1
  336. package/dist/notifications/types.d.ts.map +1 -1
  337. package/dist/number-scale/index.js +47 -46
  338. package/dist/number-scale/index.js.map +1 -1
  339. package/dist/number-scale/marksPositionConstants.d.ts +4 -0
  340. package/dist/number-scale/marksPositionConstants.d.ts.map +1 -0
  341. package/dist/number-scale/numberScale.d.ts +1 -1
  342. package/dist/number-scale/numberScale.d.ts.map +1 -1
  343. package/dist/number-scale/types.d.ts +2 -1
  344. package/dist/number-scale/types.d.ts.map +1 -1
  345. package/dist/odata-service/builder.d.ts.map +1 -1
  346. package/dist/odata-service/columns.d.ts.map +1 -1
  347. package/dist/odata-service/entityOperationConstants.d.ts +4 -0
  348. package/dist/odata-service/entityOperationConstants.d.ts.map +1 -0
  349. package/dist/odata-service/filterDefinitionConstants.d.ts +24 -0
  350. package/dist/odata-service/filterDefinitionConstants.d.ts.map +1 -0
  351. package/dist/odata-service/filterDefinitions.d.ts +19 -17
  352. package/dist/odata-service/filterDefinitions.d.ts.map +1 -1
  353. package/dist/odata-service/filterOperationConstants.d.ts +14 -0
  354. package/dist/odata-service/filterOperationConstants.d.ts.map +1 -0
  355. package/dist/odata-service/filters.d.ts.map +1 -1
  356. package/dist/odata-service/formatters.d.ts.map +1 -1
  357. package/dist/odata-service/index.js +439 -433
  358. package/dist/odata-service/index.js.map +1 -1
  359. package/dist/odata-service/odataMetadataConstants.d.ts +8 -0
  360. package/dist/odata-service/odataMetadataConstants.d.ts.map +1 -0
  361. package/dist/odata-service/parser.d.ts +1 -3
  362. package/dist/odata-service/parser.d.ts.map +1 -1
  363. package/dist/odata-service/schema.d.ts.map +1 -1
  364. package/dist/odata-service/sorts.d.ts.map +1 -1
  365. package/dist/odata-service/sqlFilters.d.ts +10 -5
  366. package/dist/odata-service/sqlFilters.d.ts.map +1 -1
  367. package/dist/odata-service/types.d.ts +5 -3
  368. package/dist/odata-service/types.d.ts.map +1 -1
  369. package/dist/pwa/index.js +72 -71
  370. package/dist/pwa/index.js.map +1 -1
  371. package/dist/pwa/sw-cache-policy.js +47 -47
  372. package/dist/pwa/sw-cache-policy.js.map +1 -1
  373. package/dist/pwa/swCachePolicy.d.ts +5 -1
  374. package/dist/pwa/swCachePolicy.d.ts.map +1 -1
  375. package/dist/pwa/useBrowserOnlineStatus.d.ts.map +1 -1
  376. package/dist/query-client/broadcast.d.ts +4 -3
  377. package/dist/query-client/broadcast.d.ts.map +1 -1
  378. package/dist/query-client/createQueryRestoreSchedulerGuard.d.ts.map +1 -1
  379. package/dist/query-client/createQueryRestoreStorage.d.ts.map +1 -1
  380. package/dist/query-client/index.js +1 -1
  381. package/dist/query-client/invalidationBroadcast.d.ts +2 -1
  382. package/dist/query-client/invalidationBroadcast.d.ts.map +1 -1
  383. package/dist/query-client/persistence.d.ts +9 -6
  384. package/dist/query-client/persistence.d.ts.map +1 -1
  385. package/dist/query-client/queryCacheEventConstants.d.ts +11 -0
  386. package/dist/query-client/queryCacheEventConstants.d.ts.map +1 -0
  387. package/dist/query-client/queryClient.d.ts +2 -1
  388. package/dist/query-client/queryClient.d.ts.map +1 -1
  389. package/dist/query-client/queryMeta.d.ts.map +1 -1
  390. package/dist/query-client/sessionPersistenceConstants.d.ts +5 -0
  391. package/dist/query-client/sessionPersistenceConstants.d.ts.map +1 -0
  392. package/dist/query-client/sessionScoped.d.ts.map +1 -1
  393. package/dist/query-client/sessionScopedResetConstants.d.ts +4 -0
  394. package/dist/query-client/sessionScopedResetConstants.d.ts.map +1 -0
  395. package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts +2 -1
  396. package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts.map +1 -1
  397. package/dist/seo/index.js +0 -1
  398. package/dist/seo/index.js.map +1 -1
  399. package/dist/seo/seo.d.ts +3 -2
  400. package/dist/seo/seo.d.ts.map +1 -1
  401. package/dist/seo/seoContentTypeConstants.d.ts +6 -0
  402. package/dist/seo/seoContentTypeConstants.d.ts.map +1 -0
  403. package/dist/seo/types.d.ts +2 -1
  404. package/dist/seo/types.d.ts.map +1 -1
  405. package/dist/session-storage/index.js +1 -1
  406. package/dist/table/cellSelection.d.ts.map +1 -1
  407. package/dist/table/index.js +83 -79
  408. package/dist/table/index.js.map +1 -1
  409. package/dist/table/odataAdapter.d.ts +3 -3
  410. package/dist/table/odataAdapter.d.ts.map +1 -1
  411. package/dist/table/selection.d.ts +2 -2
  412. package/dist/table/selection.d.ts.map +1 -1
  413. package/dist/table/tableColumnConstants.d.ts +5 -0
  414. package/dist/table/tableColumnConstants.d.ts.map +1 -0
  415. package/dist/table/tableSelectionConstants.d.ts +8 -0
  416. package/dist/table/tableSelectionConstants.d.ts.map +1 -0
  417. package/dist/table/tanStackFeatures.d.ts +8 -8
  418. package/dist/table/types.d.ts +5 -3
  419. package/dist/table/types.d.ts.map +1 -1
  420. package/dist/table/useTableRowSelection.d.ts +2 -2
  421. package/dist/table/useTableRowSelection.d.ts.map +1 -1
  422. package/dist/table-document/index.js +88 -87
  423. package/dist/table-document/index.js.map +1 -1
  424. package/dist/table-document/insertTableDocumentAxis.d.ts +2 -1
  425. package/dist/table-document/insertTableDocumentAxis.d.ts.map +1 -1
  426. package/dist/table-document/tableDocument.d.ts +2 -1
  427. package/dist/table-document/tableDocument.d.ts.map +1 -1
  428. package/dist/table-document/tableDocumentAxisGroups.d.ts +4 -3
  429. package/dist/table-document/tableDocumentAxisGroups.d.ts.map +1 -1
  430. package/dist/table-document/tableDocumentConstants.d.ts +8 -0
  431. package/dist/table-document/tableDocumentConstants.d.ts.map +1 -0
  432. package/dist/table-document/tableDocumentGeometry.d.ts.map +1 -1
  433. package/dist/three-scene/index.js +32 -32
  434. package/dist/three-scene/index.js.map +1 -1
  435. package/dist/three-scene/threeSceneAvailability.d.ts +4 -3
  436. package/dist/three-scene/threeSceneAvailability.d.ts.map +1 -1
  437. package/dist/three-scene/threeSceneConstants.d.ts +14 -0
  438. package/dist/three-scene/threeSceneConstants.d.ts.map +1 -0
  439. package/dist/three-scene/useThreeSceneAvailability.d.ts.map +1 -1
  440. package/dist/tree-table/index.js +1 -1
  441. package/dist/types/abapBooleanConstants.d.ts +4 -0
  442. package/dist/types/abapBooleanConstants.d.ts.map +1 -0
  443. package/dist/types/index.js.map +1 -1
  444. package/dist/types/types.d.ts +4 -2
  445. package/dist/types/types.d.ts.map +1 -1
  446. package/dist/types/valueStateConstants.d.ts +8 -0
  447. package/dist/types/valueStateConstants.d.ts.map +1 -0
  448. package/dist/utils/cloneFunctionStrategyConstants.d.ts +4 -0
  449. package/dist/utils/cloneFunctionStrategyConstants.d.ts.map +1 -0
  450. package/dist/utils/createLazyComponent.d.ts.map +1 -1
  451. package/dist/utils/deepCloneWithoutFunctions.d.ts +2 -1
  452. package/dist/utils/deepCloneWithoutFunctions.d.ts.map +1 -1
  453. package/dist/utils/deepCopyWithoutFunctions.d.ts +2 -1
  454. package/dist/utils/deepCopyWithoutFunctions.d.ts.map +1 -1
  455. package/dist/utils/index.js +2 -209
  456. package/dist/utils/keyboard.d.ts +2 -1
  457. package/dist/utils/keyboard.d.ts.map +1 -1
  458. package/dist/utils/keyboardConstants.d.ts +16 -0
  459. package/dist/utils/keyboardConstants.d.ts.map +1 -0
  460. package/dist/validators/index.js +3 -3
  461. package/dist/validators/index.js.map +1 -1
  462. package/dist/validators/validateUrl.d.ts.map +1 -1
  463. package/dist/value-transformers/execute.d.ts.map +1 -1
  464. package/dist/value-transformers/index.js +9 -6
  465. package/dist/value-transformers/index.js.map +1 -1
  466. package/dist/value-transformers/types.d.ts +3 -2
  467. package/dist/value-transformers/types.d.ts.map +1 -1
  468. package/dist/value-transformers/valueTransformerConstants.d.ts +4 -0
  469. package/dist/value-transformers/valueTransformerConstants.d.ts.map +1 -0
  470. package/package.json +6 -5
  471. package/src/binary/README.mdx +1 -1
  472. package/src/dom/README.mdx +1 -1
  473. package/src/query-client/README.mdx +4 -4
  474. package/dist/chunks/dom-BK22UmgF.js.map +0 -1
  475. package/dist/chunks/formatDate-BUvpRI7H.js +0 -133
  476. package/dist/chunks/formatDate-BUvpRI7H.js.map +0 -1
  477. package/dist/chunks/formatters-rxriDRPk.js.map +0 -1
  478. package/dist/chunks/formulas-BXT_XBWI.js.map +0 -1
  479. package/dist/chunks/media-WK38KtMl.js +0 -191
  480. package/dist/chunks/media-WK38KtMl.js.map +0 -1
  481. package/dist/chunks/query-client-CVRfrYZM.js.map +0 -1
  482. package/dist/chunks/scalarTypeClassification-BZcFmIyR.js +0 -764
  483. package/dist/chunks/scalarTypeClassification-BZcFmIyR.js.map +0 -1
  484. package/dist/chunks/uuid-CUJPAbRY.js.map +0 -1
  485. package/dist/chunks/validate-DsUR-bFF.js +0 -608
  486. package/dist/chunks/validate-DsUR-bFF.js.map +0 -1
  487. package/dist/utils/index.js.map +0 -1
@@ -0,0 +1,613 @@
1
+ import { at as e } from "./scalarTypeClassification-D4YcGxtQ.js";
2
+ import { d as t, m as n, p as r, t as i } from "./formulas-Y0HOcFhe.js";
3
+ //#region src/formatters/number/numberFormatConstants.ts
4
+ var a = "round", o = "floor", s = "ceil", c = "trunc", l = "ru-RU", u = "group", d = "decimal", f = "integer", p = "decimal", m = "decimal-2", h = "decimal-3", g = "currency", _ = "price", v = "percent", y = "tonnage", b = "compact-currency", x = "compact-currency-round", S = "compact-percent", C = "compact-percent-round", w = "compact-tonnage", T = "compact-tonnage-round", E = {
5
+ decimals: 1,
6
+ decimalSeparator: ",",
7
+ grouping: !0,
8
+ groupingSeparator: new Intl.NumberFormat("ru-RU").formatToParts(1e3).find((e) => e.type === "group")?.value ?? "\xA0",
9
+ groupingSize: 3
10
+ }, ee = Object.freeze({
11
+ integer: f,
12
+ decimal: p,
13
+ decimal2: m,
14
+ decimal3: h,
15
+ currency: g,
16
+ price: _,
17
+ percent: v,
18
+ tonnage: y,
19
+ compactCurrency: b,
20
+ compactCurrencyRound: x,
21
+ compactPercent: S,
22
+ compactPercentRound: C,
23
+ compactTonnage: w,
24
+ compactTonnageRound: T
25
+ }), te = [
26
+ {
27
+ name: f,
28
+ decimals: 0,
29
+ decimalSeparator: ""
30
+ },
31
+ { name: p },
32
+ {
33
+ name: m,
34
+ decimals: 2
35
+ },
36
+ {
37
+ name: h,
38
+ decimals: 3
39
+ },
40
+ {
41
+ name: g,
42
+ decimals: 0,
43
+ decimalSeparator: ""
44
+ },
45
+ {
46
+ name: _,
47
+ decimals: 0,
48
+ decimalSeparator: ""
49
+ },
50
+ {
51
+ name: v,
52
+ decimals: 2
53
+ },
54
+ { name: y },
55
+ {
56
+ name: b,
57
+ decimals: 0,
58
+ decimalSeparator: "",
59
+ compact: {}
60
+ },
61
+ {
62
+ name: x,
63
+ decimals: 0,
64
+ decimalSeparator: "",
65
+ compact: { roundingMode: a }
66
+ },
67
+ {
68
+ name: S,
69
+ decimals: 2,
70
+ compact: { maxDecimals: 2 }
71
+ },
72
+ {
73
+ name: C,
74
+ decimals: 2,
75
+ compact: {
76
+ maxDecimals: 2,
77
+ roundingMode: a
78
+ }
79
+ },
80
+ {
81
+ name: w,
82
+ compact: { maxDecimals: 1 }
83
+ },
84
+ {
85
+ name: T,
86
+ compact: {
87
+ maxDecimals: 1,
88
+ roundingMode: a
89
+ }
90
+ }
91
+ ], D = /* @__PURE__ */ new Map();
92
+ function O() {
93
+ for (let e of te) D.set(e.name, {
94
+ ...E,
95
+ ...e
96
+ });
97
+ }
98
+ O();
99
+ function k(e) {
100
+ return D.get(e);
101
+ }
102
+ function ne() {
103
+ return Array.from(D.keys());
104
+ }
105
+ function re(e) {
106
+ let t = {
107
+ ...E,
108
+ ...e
109
+ };
110
+ return D.set(t.name, t), t;
111
+ }
112
+ function ie() {
113
+ D.clear(), O();
114
+ }
115
+ function ae(e) {
116
+ if (typeof e != "string") return e;
117
+ let t = k(e);
118
+ if (!t) throw Error(`Предустановка "${e}" не найдена`);
119
+ return t;
120
+ }
121
+ //#endregion
122
+ //#region src/formatters/valueState/valueStateResolverConstants.ts
123
+ var A = "fixed", oe = "threshold", se = "lower", ce = "upper", j = "normalizeLeadingZeros", M = "rowBasedOverride", N = "resolveValueState", P = "typedValueFormat", F = "source", I = "sink", le = "field", ue = "formula", de = "value", fe = "left", pe = "right", me = "plain", he = "tree", ge = "group", _e = "totals", ve = "formula";
124
+ //#endregion
125
+ //#region src/formatters/pipeline/clone.ts
126
+ function L(e) {
127
+ return e ? { ...e } : void 0;
128
+ }
129
+ function R(e) {
130
+ return e ? { ...e } : void 0;
131
+ }
132
+ function z(e) {
133
+ return e.mode === "formula" ? {
134
+ ...e,
135
+ dependencyIds: e.dependencyIds ? [...e.dependencyIds] : void 0
136
+ } : { ...e };
137
+ }
138
+ function B(e) {
139
+ return {
140
+ resolver: e.resolver.kind === "fixed" ? {
141
+ kind: A,
142
+ entries: { ...e.resolver.entries },
143
+ fallbackState: e.resolver.fallbackState
144
+ } : {
145
+ kind: oe,
146
+ thresholds: e.resolver.thresholds.map((e) => typeof e == "number" ? e : { ...e }),
147
+ states: [...e.resolver.states],
148
+ invalidState: e.resolver.invalidState
149
+ },
150
+ valueSource: e.valueSource?.kind === "formula" ? {
151
+ ...e.valueSource,
152
+ dependencyIds: [...e.valueSource.dependencyIds]
153
+ } : e.valueSource ? { ...e.valueSource } : void 0,
154
+ icon: e.icon ? { ...e.icon } : void 0
155
+ };
156
+ }
157
+ function V(e) {
158
+ switch (e.type) {
159
+ case P: return {
160
+ ...e,
161
+ config: L(e.config)
162
+ };
163
+ case j: return {
164
+ ...e,
165
+ config: R(e.config)
166
+ };
167
+ case M: return {
168
+ ...e,
169
+ config: z(e.config)
170
+ };
171
+ case N: return {
172
+ ...e,
173
+ config: B(e.config)
174
+ };
175
+ }
176
+ throw Error(`Недопустимый тип '${e?.type}' для шага FormatterPipeline`);
177
+ }
178
+ function H(e, t) {
179
+ switch (e.type) {
180
+ case P: return {
181
+ ...e,
182
+ position: { ...t },
183
+ config: L(e.config)
184
+ };
185
+ case j: return {
186
+ ...e,
187
+ position: { ...t },
188
+ config: R(e.config)
189
+ };
190
+ case M: return {
191
+ ...e,
192
+ position: { ...t },
193
+ config: z(e.config)
194
+ };
195
+ case N: return {
196
+ ...e,
197
+ position: { ...t },
198
+ config: B(e.config)
199
+ };
200
+ }
201
+ throw Error(`Недопустимый тип '${e?.type}' для шага FormatterPipeline`);
202
+ }
203
+ function ye(e) {
204
+ switch (e.type) {
205
+ case F:
206
+ case I: return {
207
+ ...e,
208
+ position: { ...e.position }
209
+ };
210
+ default: return H(e, e.position);
211
+ }
212
+ }
213
+ function be(e) {
214
+ return {
215
+ nodes: e.nodes.map(ye),
216
+ edges: e.edges.map((e) => ({ ...e })),
217
+ viewport: e.viewport ? { ...e.viewport } : void 0
218
+ };
219
+ }
220
+ function xe(e) {
221
+ return { steps: e.steps.map(V) };
222
+ }
223
+ function Se(e) {
224
+ if (e) return {
225
+ version: e.version,
226
+ graph: e.graph ? be(e.graph) : void 0,
227
+ plan: e.plan ? xe(e.plan) : void 0
228
+ };
229
+ }
230
+ //#endregion
231
+ //#region src/formatters/rowBased/context.ts
232
+ function U(t) {
233
+ let n = [...t.keys ?? []], r = (e) => {
234
+ if (!Number.isInteger(e) || e < 0) {
235
+ t.instrumentation?.onOutOfRangeIndex?.(e);
236
+ return;
237
+ }
238
+ if (t.instrumentation?.onReadIndex?.(e), e >= n.length) {
239
+ t.instrumentation?.onOutOfRangeIndex?.(e);
240
+ return;
241
+ }
242
+ return n[e];
243
+ };
244
+ return {
245
+ rowData: t.rowData,
246
+ rawValue: t.rawValue,
247
+ columnId: t.columnId,
248
+ key: r,
249
+ value: (e) => {
250
+ let n = r(e);
251
+ if (n) return t.rowData[n];
252
+ },
253
+ num: (n) => {
254
+ let i = r(n);
255
+ return i ? e(t.rowData[i]) : 0;
256
+ }
257
+ };
258
+ }
259
+ //#endregion
260
+ //#region src/formatters/rowBased/registry.ts
261
+ function W(e) {
262
+ let t = /* @__PURE__ */ new Map(), n = [];
263
+ for (let r of e) {
264
+ let e = r.id.trim();
265
+ if (!e) throw Error("Formula id для RowBasedFormatter не может быть пустым");
266
+ if (t.has(e)) throw Error(`Найден дублирующийся formulaId в RowBasedFormatter: ${e}`);
267
+ let i = Object.freeze({
268
+ ...r,
269
+ id: e,
270
+ name: r.name.trim(),
271
+ description: r.description.trim()
272
+ });
273
+ t.set(e, i), n.push(i);
274
+ }
275
+ return Object.freeze({
276
+ list: Object.freeze(n),
277
+ byId: t
278
+ });
279
+ }
280
+ var G = W([]);
281
+ function Ce(e) {
282
+ G = e;
283
+ }
284
+ function we() {
285
+ return G.list;
286
+ }
287
+ function K(e) {
288
+ let t = e?.trim();
289
+ if (t) return G.byId.get(t);
290
+ }
291
+ //#endregion
292
+ //#region src/formatters/pipeline/pipelineValidationConstants.ts
293
+ var Te = "config_not_defined", Ee = "unsupported_version", De = "graph_or_plan_required", q = "node_id_duplicate", J = "edge_id_duplicate", Oe = "edge_node_not_found", ke = "source_count_invalid", Ae = "sink_count_invalid", je = "source_incoming_invalid", Me = "sink_outgoing_invalid", Y = "node_degree_invalid", X = "path_broken", Ne = "path_cycle_detected", Pe = "path_disconnected_nodes", Z = "step_id_duplicate", Fe = "step_resolve_value_state_multiple", Ie = "step_typed_value_format_multiple", Le = "step_row_based_override_multiple", Re = "step_normalize_leading_zeros_multiple", ze = "step_typed_before_value_state", Be = "step_row_based_override_field_key_empty", Ve = "step_row_based_override_formula_id_empty", He = "step_row_based_override_formula_not_found", Ue = "step_row_based_override_dependency_index_out_of_range", We = "step_row_based_override_unused_dependencies", Ge = "step_row_based_override_formula_does_not_use_dependencies", Ke = "step_row_based_override_formula_runtime_error", qe = "step_value_state_formula_id_empty", Je = "step_value_state_formula_not_found", Ye = "step_value_state_dependency_id_empty", Xe = "step_value_state_dependency_index_out_of_range", Ze = "step_value_state_unused_dependencies", Qe = "step_value_state_formula_does_not_use_dependencies", $e = "step_value_state_formula_runtime_error", et = "step_threshold_states_count_invalid", tt = "step_value_hidden_without_icon", nt = "step_typed_value_format_preset_empty", rt = "step_typed_value_format_preset_not_found", it = 100;
294
+ function Q(e, t, n) {
295
+ e.errors.push({
296
+ code: t,
297
+ message: n
298
+ });
299
+ }
300
+ function $(e, t, n) {
301
+ e.warnings.push({
302
+ code: t,
303
+ message: n
304
+ });
305
+ }
306
+ function at(e) {
307
+ return [...e].sort((e, t) => e - t);
308
+ }
309
+ function ot(e, t) {
310
+ return e.reduce((e, n, r) => (e[n] = (r + 1) * t, e), {});
311
+ }
312
+ function st(e, t) {
313
+ if (!e.formulaId.trim()) {
314
+ Q(t, Ve, "Для rowBasedOverride (formula) необходимо заполнить formulaId.");
315
+ return;
316
+ }
317
+ let n = K(e.formulaId), r = [...e.dependencyIds ?? []];
318
+ if (!n) {
319
+ Q(t, He, "Формула rowBasedOverride не найдена в реестре.");
320
+ return;
321
+ }
322
+ let i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = 0, s = (e) => {
323
+ try {
324
+ let t = U({
325
+ rowData: e,
326
+ rawValue: it,
327
+ columnId: "__validation__",
328
+ keys: r,
329
+ instrumentation: {
330
+ onReadIndex: (e) => {
331
+ i.add(e);
332
+ },
333
+ onOutOfRangeIndex: (e) => {
334
+ a.add(e);
335
+ }
336
+ }
337
+ });
338
+ n.fn(t);
339
+ } catch {
340
+ o += 1;
341
+ }
342
+ };
343
+ s(ot(r, it)), s(ot(r, -100));
344
+ let c = at(i), l = c.length > 0 ? c[c.length - 1] + 1 : 0;
345
+ a.size > 0 && Q(t, Ue, `Формула rowBasedOverride обращается к несуществующим индексам. Минимально требуется зависимостей: ${l}, выбрано: ${r.length}.`), c.length === 0 && $(t, Ge, "Формула rowBasedOverride не использует dependencyIds.");
346
+ let u = r.filter((e, t) => !i.has(t));
347
+ u.length > 0 && $(t, We, `Выбраны, но не используются формулой rowBasedOverride: ${u.join(", ")}.`), o > 0 && $(t, Ke, "На тестовых данных формула rowBasedOverride завершилась с ошибкой.");
348
+ }
349
+ function ct(e, a) {
350
+ if (!e.formulaId.trim()) {
351
+ Q(a, qe, "Для источника состояния необходимо выбрать формулу.");
352
+ return;
353
+ }
354
+ if (e.dependencyIds.some((e) => !e.trim())) {
355
+ Q(a, Ye, "Зависимость формулы состояния не может иметь пустой id.");
356
+ return;
357
+ }
358
+ let o = i({
359
+ formulaId: e.formulaId,
360
+ dependencies: e.dependencyIds,
361
+ availableColumnIds: e.dependencyIds
362
+ });
363
+ for (let e of o.errors) e.code === "formula_not_found" ? Q(a, Je, "Формула источника состояния не найдена в реестре.") : e.code === "dependency_index_out_of_range" && Q(a, Xe, e.message);
364
+ for (let e of o.warnings) switch (e.code) {
365
+ case r:
366
+ $(a, Ze, e.message);
367
+ break;
368
+ case t:
369
+ $(a, Qe, e.message);
370
+ break;
371
+ case n: $(a, $e, e.message);
372
+ }
373
+ }
374
+ function lt(e, t) {
375
+ let n = /* @__PURE__ */ new Set(), r = {
376
+ normalizeLeadingZeros: 0,
377
+ rowBasedOverride: 0,
378
+ resolveValueState: 0,
379
+ typedValueFormat: 0
380
+ };
381
+ for (let i of e) {
382
+ let e = i.id.trim();
383
+ if (!e) {
384
+ Q(t, Z, "Шаг pipeline не может иметь пустой id.");
385
+ continue;
386
+ }
387
+ switch (n.has(e) && Q(t, Z, `Найден дублирующийся id шага pipeline: ${e}.`), n.add(e), i.type) {
388
+ case j:
389
+ r.normalizeLeadingZeros += 1;
390
+ break;
391
+ case M:
392
+ r.rowBasedOverride += 1, i.config.mode === "field" && !i.config.fieldKey.trim() && Q(t, Be, "Для rowBasedOverride (field) необходимо заполнить fieldKey."), i.config.mode === "formula" && st(i.config, t);
393
+ break;
394
+ case N:
395
+ r.resolveValueState += 1, i.config.valueSource?.kind === "formula" && ct(i.config.valueSource, t), i.config.resolver.kind === "threshold" && i.config.resolver.states.length !== i.config.resolver.thresholds.length + 1 && Q(t, et, "Для threshold-резолвера количество states должно быть равно thresholds + 1.");
396
+ break;
397
+ case P: if (r.typedValueFormat += 1, i.config?.numberPresetName !== void 0) {
398
+ let e = i.config.numberPresetName.trim();
399
+ if (!e) {
400
+ Q(t, nt, "Для typedValueFormat указан пустой numberPresetName.");
401
+ break;
402
+ }
403
+ k(e) || Q(t, rt, `Для typedValueFormat указан неизвестный пресет: ${e}.`);
404
+ }
405
+ }
406
+ }
407
+ r.normalizeLeadingZeros > 1 && Q(t, Re, "В pipeline может быть только один шаг normalizeLeadingZeros."), r.rowBasedOverride > 1 && Q(t, Le, "В pipeline может быть только один шаг rowBasedOverride."), r.resolveValueState > 1 && Q(t, Fe, "В pipeline может быть только один шаг resolveValueState."), r.typedValueFormat > 1 && Q(t, Ie, "В pipeline может быть только один шаг typedValueFormat.");
408
+ let i = e.findIndex((e) => e.type === N), a = e.findIndex((e) => e.type === P);
409
+ i !== -1 && a !== -1 && a < i && Q(t, ze, "Шаг typedValueFormat не может выполняться до шага resolveValueState.");
410
+ for (let n of e) n.type === "resolveValueState" && !n.config.icon?.enabled && n.config.icon?.showValue === !1 && $(t, tt, "Для resolveValueState установлено showValue=false при выключенной иконке: значение не будет отображаться.");
411
+ }
412
+ function ut(e) {
413
+ let t = {
414
+ errors: [],
415
+ warnings: []
416
+ };
417
+ return lt(e.steps, t), {
418
+ ok: t.errors.length === 0,
419
+ errors: t.errors,
420
+ warnings: t.warnings,
421
+ plan: t.errors.length === 0 ? { steps: [...e.steps] } : void 0
422
+ };
423
+ }
424
+ function dt(e, t, n) {
425
+ let r = new Map(e.map((e) => [e.id, e])), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
426
+ for (let t of e) i.set(t.id, []), a.set(t.id, []);
427
+ for (let e of t) {
428
+ let t = e.source.trim(), o = e.target.trim();
429
+ if (!r.has(t) || !r.has(o)) {
430
+ Q(n, Oe, `Ребро ${e.id} ссылается на несуществующий узел: ${t} -> ${o}.`);
431
+ continue;
432
+ }
433
+ i.get(t)?.push(o), a.get(o)?.push(t);
434
+ }
435
+ let o = e.filter((e) => e.type === F), s = e.filter((e) => e.type === I);
436
+ if (o.length !== 1 && Q(n, ke, "В графе должен быть ровно один узел source."), s.length !== 1 && Q(n, Ae, "В графе должен быть ровно один узел sink."), n.errors.length > 0) return;
437
+ let c = o[0].id, l = s[0].id;
438
+ for (let t of e) {
439
+ let e = a.get(t.id)?.length ?? 0, r = i.get(t.id)?.length ?? 0;
440
+ if (t.type === "source") {
441
+ e !== 0 && Q(n, je, "Узел source не должен иметь входящих рёбер."), r !== 1 && Q(n, Y, "Узел source должен иметь ровно одно исходящее ребро.");
442
+ continue;
443
+ }
444
+ if (t.type === "sink") {
445
+ r !== 0 && Q(n, Me, "Узел sink не должен иметь исходящих рёбер."), e !== 1 && Q(n, Y, "Узел sink должен иметь ровно одно входящее ребро.");
446
+ continue;
447
+ }
448
+ (e !== 1 || r !== 1) && Q(n, Y, `Узел ${t.id} должен иметь ровно одно входящее и одно исходящее ребро для линейного pipeline.`);
449
+ }
450
+ if (n.errors.length > 0) return;
451
+ let u = /* @__PURE__ */ new Set(), d = [], f = c;
452
+ for (;;) {
453
+ if (u.has(f)) {
454
+ Q(n, Ne, "В графе pipeline обнаружен цикл.");
455
+ return;
456
+ }
457
+ if (u.add(f), d.push(f), f === l) break;
458
+ let e = i.get(f) ?? [];
459
+ if (e.length !== 1) {
460
+ Q(n, X, "Не удалось построить линейный путь от source к sink.");
461
+ return;
462
+ }
463
+ f = e[0];
464
+ }
465
+ if (u.size !== e.length) {
466
+ Q(n, Pe, "Граф содержит узлы, которые не входят в линейный путь source -> sink.");
467
+ return;
468
+ }
469
+ return d;
470
+ }
471
+ function ft(e) {
472
+ let t = {
473
+ errors: [],
474
+ warnings: []
475
+ };
476
+ if (!e.nodes.length) return Q(t, X, "Граф pipeline не содержит узлов."), {
477
+ ok: !1,
478
+ errors: t.errors,
479
+ warnings: t.warnings
480
+ };
481
+ let n = /* @__PURE__ */ new Map();
482
+ for (let r of e.nodes) {
483
+ let e = r.id.trim();
484
+ if (!e) {
485
+ Q(t, q, "Узел pipeline не может иметь пустой id.");
486
+ continue;
487
+ }
488
+ if (n.has(e)) {
489
+ Q(t, q, `Найден дублирующийся id узла pipeline: ${e}.`);
490
+ continue;
491
+ }
492
+ n.set(e, r);
493
+ }
494
+ let r = /* @__PURE__ */ new Set();
495
+ for (let n of e.edges) {
496
+ let e = n.id.trim();
497
+ if (!e) {
498
+ Q(t, J, "Ребро pipeline не может иметь пустой id.");
499
+ continue;
500
+ }
501
+ if (r.has(e)) {
502
+ Q(t, J, `Найден дублирующийся id ребра pipeline: ${e}.`);
503
+ continue;
504
+ }
505
+ r.add(e);
506
+ }
507
+ if (t.errors.length > 0) return {
508
+ ok: !1,
509
+ errors: t.errors,
510
+ warnings: t.warnings
511
+ };
512
+ let i = dt(e.nodes, e.edges, t);
513
+ if (!i) return {
514
+ ok: !1,
515
+ errors: t.errors,
516
+ warnings: t.warnings
517
+ };
518
+ let a = [];
519
+ for (let e of i) {
520
+ let t = n.get(e);
521
+ if (!(!t || t.type === "source" || t.type === "sink")) switch (t.type) {
522
+ case j:
523
+ a.push({
524
+ id: t.id,
525
+ type: j,
526
+ config: t.config ? { ...t.config } : void 0
527
+ });
528
+ break;
529
+ case M:
530
+ a.push({
531
+ id: t.id,
532
+ type: M,
533
+ config: t.config.mode === "formula" ? {
534
+ ...t.config,
535
+ dependencyIds: t.config.dependencyIds ? [...t.config.dependencyIds] : void 0
536
+ } : { ...t.config }
537
+ });
538
+ break;
539
+ case N:
540
+ a.push({
541
+ id: t.id,
542
+ type: N,
543
+ config: B(t.config)
544
+ });
545
+ break;
546
+ case P: a.push({
547
+ id: t.id,
548
+ type: P,
549
+ config: t.config ? { ...t.config } : void 0
550
+ });
551
+ }
552
+ }
553
+ return lt(a, t), {
554
+ ok: t.errors.length === 0,
555
+ errors: t.errors,
556
+ warnings: t.warnings,
557
+ plan: t.errors.length === 0 ? { steps: a } : void 0
558
+ };
559
+ }
560
+ function pt(e) {
561
+ let t = {
562
+ errors: [],
563
+ warnings: []
564
+ };
565
+ if (!e) return Q(t, Te, "Конфигурация pipeline не задана."), {
566
+ ok: !1,
567
+ errors: t.errors,
568
+ warnings: t.warnings
569
+ };
570
+ if (e.version !== 1) return Q(t, Ee, `Неподдерживаемая версия pipeline: ${String(e.version)}.`), {
571
+ ok: !1,
572
+ errors: t.errors,
573
+ warnings: t.warnings
574
+ };
575
+ if (!e.plan && !e.graph) return Q(t, De, "Для pipeline должен быть задан хотя бы один источник: graph или plan."), {
576
+ ok: !1,
577
+ errors: t.errors,
578
+ warnings: t.warnings
579
+ };
580
+ if (e.plan) {
581
+ let n = ut(e.plan);
582
+ if (t.errors.push(...n.errors), t.warnings.push(...n.warnings), n.ok && n.plan) return {
583
+ ok: !0,
584
+ errors: t.errors,
585
+ warnings: t.warnings,
586
+ plan: n.plan
587
+ };
588
+ if (e.graph) $(t, X, "Линейный plan невалиден. Выполнена попытка построить план из graph."), t.errors.length = 0;
589
+ else return {
590
+ ok: !1,
591
+ errors: t.errors,
592
+ warnings: t.warnings
593
+ };
594
+ }
595
+ if (e.graph) {
596
+ let n = ft(e.graph);
597
+ return {
598
+ ok: n.ok,
599
+ errors: [...t.errors, ...n.errors],
600
+ warnings: [...t.warnings, ...n.warnings],
601
+ plan: n.plan
602
+ };
603
+ }
604
+ return {
605
+ ok: !1,
606
+ errors: t.errors,
607
+ warnings: t.warnings
608
+ };
609
+ }
610
+ //#endregion
611
+ export { s as $, _e as A, k as B, pe as C, ue as D, le as E, ce as F, g as G, re as H, A as I, h as J, p as K, oe as L, ve as M, de as N, ge as O, se as P, y as Q, ee as R, fe as S, F as T, ie as U, ne as V, ae as W, v as X, f as Y, _ as Z, L as _, Je as a, l as at, M as b, K as c, V as d, o as et, H as f, z as g, B as h, He as i, u as it, he as j, me as k, we as l, R as m, ft as n, c as nt, Ce as o, Se as p, m as q, ut as r, d as rt, W as s, pt as t, a as tt, U as u, j as v, I as w, P as x, N as y, E as z };
612
+
613
+ //# sourceMappingURL=validate-8URYKKly.js.map