@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.
- package/README.md +17 -5
- package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts +17 -0
- package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts.map +1 -0
- package/dist/analytical-table/definition/compileAnalyticalTableDefinition.d.ts.map +1 -1
- package/dist/analytical-table/definition/types.d.ts +6 -5
- package/dist/analytical-table/definition/types.d.ts.map +1 -1
- package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts +7 -0
- package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts.map +1 -0
- package/dist/analytical-table/dynamic-columns/dateColumns.d.ts.map +1 -1
- package/dist/analytical-table/dynamic-columns/types.d.ts +2 -1
- package/dist/analytical-table/dynamic-columns/types.d.ts.map +1 -1
- package/dist/analytical-table/index.js +124 -113
- package/dist/analytical-table/index.js.map +1 -1
- package/dist/analytical-table/projections/analyticalExportConstants.d.ts +7 -0
- package/dist/analytical-table/projections/analyticalExportConstants.d.ts.map +1 -0
- package/dist/analytical-table/projections/expansion.d.ts +2 -1
- package/dist/analytical-table/projections/expansion.d.ts.map +1 -1
- package/dist/analytical-table/projections/exportProjection.d.ts.map +1 -1
- package/dist/analytical-table/projections/types.d.ts +3 -2
- package/dist/analytical-table/projections/types.d.ts.map +1 -1
- package/dist/analytical-table/runtime/aggregation.d.ts.map +1 -1
- package/dist/analytical-table/runtime/analyticalRowConstants.d.ts +4 -0
- package/dist/analytical-table/runtime/analyticalRowConstants.d.ts.map +1 -0
- package/dist/analytical-table/runtime/analyticalViewConstants.d.ts +16 -0
- package/dist/analytical-table/runtime/analyticalViewConstants.d.ts.map +1 -0
- package/dist/analytical-table/runtime/buildGroupedModel.d.ts.map +1 -1
- package/dist/analytical-table/runtime/filtering.d.ts.map +1 -1
- package/dist/analytical-table/runtime/grouping.d.ts.map +1 -1
- package/dist/analytical-table/runtime/hierarchy.d.ts +2 -1
- package/dist/analytical-table/runtime/hierarchy.d.ts.map +1 -1
- package/dist/analytical-table/runtime/totals.d.ts +2 -2
- package/dist/analytical-table/runtime/totals.d.ts.map +1 -1
- package/dist/analytical-table/runtime/types.d.ts +5 -3
- package/dist/analytical-table/runtime/types.d.ts.map +1 -1
- package/dist/analytical-table/runtime/valueComparison.d.ts.map +1 -1
- package/dist/array/index.js +1 -1
- package/dist/array/reorder.d.ts +6 -1
- package/dist/array/reorder.d.ts.map +1 -1
- package/dist/async-task-runner/createCoalescingTaskRunner.d.ts.map +1 -1
- package/dist/async-task-runner/createDeadlineTimer.d.ts.map +1 -1
- package/dist/async-task-runner/index.js +39 -36
- package/dist/async-task-runner/index.js.map +1 -1
- package/dist/async-task-runner/nativeTimerConstants.d.ts +3 -0
- package/dist/async-task-runner/nativeTimerConstants.d.ts.map +1 -0
- package/dist/binary/base64Constants.d.ts +6 -0
- package/dist/binary/base64Constants.d.ts.map +1 -0
- package/dist/binary/binaryToBlob.d.ts.map +1 -1
- package/dist/binary/getBase64DecodedSize.d.ts.map +1 -1
- package/dist/binary/index.js +95 -70
- package/dist/binary/index.js.map +1 -1
- package/dist/browser-notifications/browserNotificationConstants.d.ts +3 -0
- package/dist/browser-notifications/browserNotificationConstants.d.ts.map +1 -0
- package/dist/browser-notifications/browserNotificationTypes.d.ts +2 -1
- package/dist/browser-notifications/browserNotificationTypes.d.ts.map +1 -1
- package/dist/browser-notifications/createBrowserNotificationPresenter.d.ts.map +1 -1
- package/dist/browser-notifications/index.js +38 -37
- package/dist/browser-notifications/index.js.map +1 -1
- package/dist/chunks/{array-D-_yMMUK.js → array-bd7LYFto.js} +1 -3
- package/dist/chunks/{array-D-_yMMUK.js.map → array-bd7LYFto.js.map} +1 -1
- package/dist/chunks/{dom-BK22UmgF.js → dom-ZSeWZ0Gg.js} +103 -98
- package/dist/chunks/dom-ZSeWZ0Gg.js.map +1 -0
- package/dist/chunks/formatDate-CNPcfNte.js +133 -0
- package/dist/chunks/formatDate-CNPcfNte.js.map +1 -0
- package/dist/chunks/{formatters-CZnnbdud.js → formatters-CO40zvVB.js} +496 -496
- package/dist/chunks/formatters-CO40zvVB.js.map +1 -0
- package/dist/chunks/{formulas-BXT_XBWI.js → formulas-Y0HOcFhe.js} +90 -86
- package/dist/chunks/formulas-Y0HOcFhe.js.map +1 -0
- package/dist/chunks/hasSignatureBytes-D2wO_Myl.js +11 -0
- package/dist/chunks/hasSignatureBytes-D2wO_Myl.js.map +1 -0
- package/dist/chunks/keyboardConstants-BZKskWsm.js +6 -0
- package/dist/chunks/keyboardConstants-BZKskWsm.js.map +1 -0
- package/dist/chunks/media-imBOXWwa.js +192 -0
- package/dist/chunks/media-imBOXWwa.js.map +1 -0
- package/dist/chunks/mimeTypeConstants-BzONV-b1.js +6 -0
- package/dist/chunks/mimeTypeConstants-BzONV-b1.js.map +1 -0
- package/dist/chunks/{query-client-CVRfrYZM.js → query-client-D0HQZ84w.js} +142 -142
- package/dist/chunks/query-client-D0HQZ84w.js.map +1 -0
- package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js +766 -0
- package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js.map +1 -0
- package/dist/chunks/scalarTypeConstants-CnSsjpGO.js +6 -0
- package/dist/chunks/scalarTypeConstants-CnSsjpGO.js.map +1 -0
- package/dist/chunks/utils-DW0Yso1Q.js +210 -0
- package/dist/chunks/utils-DW0Yso1Q.js.map +1 -0
- package/dist/chunks/{uuid-CUJPAbRY.js → uuid-izDzLv18.js} +1 -2
- package/dist/chunks/uuid-izDzLv18.js.map +1 -0
- package/dist/chunks/validate-8URYKKly.js +613 -0
- package/dist/chunks/validate-8URYKKly.js.map +1 -0
- package/dist/copy/index.js +5 -5
- package/dist/copy/index.js.map +1 -1
- package/dist/copy/useCopyFeedback.d.ts.map +1 -1
- package/dist/crypto/hashString.d.ts.map +1 -1
- package/dist/crypto/hexadecimalConstants.d.ts +3 -0
- package/dist/crypto/hexadecimalConstants.d.ts.map +1 -0
- package/dist/crypto/index.js +25 -24
- package/dist/crypto/index.js.map +1 -1
- package/dist/crypto/uuid.d.ts.map +1 -1
- package/dist/date-segments/index.js +81 -81
- package/dist/date-segments/index.js.map +1 -1
- package/dist/date-segments/mask.d.ts +13 -3
- package/dist/date-segments/mask.d.ts.map +1 -1
- package/dist/decimal/decimalConstants.d.ts +3 -0
- package/dist/decimal/decimalConstants.d.ts.map +1 -0
- package/dist/decimal/index.js +0 -2
- package/dist/decimal/index.js.map +1 -1
- package/dist/decimal/normalizeDecimal.d.ts.map +1 -1
- package/dist/decimal/normalizeDecimalLiteral.d.ts.map +1 -1
- package/dist/decimal/resolveDecimalMaxLength.d.ts.map +1 -1
- package/dist/decimal/sumDecimals.d.ts.map +1 -1
- package/dist/decimal/writeDecimalParts.d.ts.map +1 -1
- package/dist/dom/document-scroll/acquireDocumentScrollLock.d.ts.map +1 -1
- package/dist/dom/document-scroll/attachDocumentTouchScrollGuard.d.ts.map +1 -1
- package/dist/dom/document-scroll/canConsumeVerticalTouchScroll.d.ts.map +1 -1
- package/dist/dom/domEventConstants.d.ts +4 -0
- package/dist/dom/domEventConstants.d.ts.map +1 -0
- package/dist/dom/domScrollConstants.d.ts +3 -0
- package/dist/dom/domScrollConstants.d.ts.map +1 -0
- package/dist/dom/index.js +1 -1
- package/dist/dom/installFaviconOverride.d.ts.map +1 -1
- package/dist/dom/overlayFocusConstants.d.ts +4 -0
- package/dist/dom/overlayFocusConstants.d.ts.map +1 -0
- package/dist/dom/scroll-anchor/captureScrollAnchor.d.ts.map +1 -1
- package/dist/dom/useClickOutside.d.ts +1 -1
- package/dist/dom/useClickOutside.d.ts.map +1 -1
- package/dist/dom/useEscapeDismiss.d.ts +1 -1
- package/dist/dom/useEscapeDismiss.d.ts.map +1 -1
- package/dist/dom/useFocusTrap.d.ts.map +1 -1
- package/dist/dom/useIsTouchDevice.d.ts.map +1 -1
- package/dist/dom/useOverlayFocus.d.ts +3 -2
- package/dist/dom/useOverlayFocus.d.ts.map +1 -1
- package/dist/dom/visual-viewport/attachVisualViewportFrame.d.ts.map +1 -1
- package/dist/error-report/breadcrumbs.d.ts.map +1 -1
- package/dist/error-report/capture.d.ts.map +1 -1
- package/dist/error-report/captureOptions.d.ts +3 -2
- package/dist/error-report/captureOptions.d.ts.map +1 -1
- package/dist/error-report/capturePolicyConstants.d.ts +4 -0
- package/dist/error-report/capturePolicyConstants.d.ts.map +1 -0
- package/dist/error-report/dataPreview.d.ts.map +1 -1
- package/dist/error-report/diagnostics.d.ts.map +1 -1
- package/dist/error-report/drafts.d.ts.map +1 -1
- package/dist/error-report/environment.d.ts.map +1 -1
- package/dist/error-report/errorInfo.d.ts.map +1 -1
- package/dist/error-report/errorReportCaptureLimits.d.ts +26 -0
- package/dist/error-report/errorReportCaptureLimits.d.ts.map +1 -0
- package/dist/error-report/errorReportContractConstants.d.ts +32 -0
- package/dist/error-report/errorReportContractConstants.d.ts.map +1 -0
- package/dist/error-report/index.js +586 -587
- package/dist/error-report/index.js.map +1 -1
- package/dist/error-report/payload.d.ts.map +1 -1
- package/dist/error-report/queue.d.ts.map +1 -1
- package/dist/error-report/queueContract.d.ts +7 -6
- package/dist/error-report/queueContract.d.ts.map +1 -1
- package/dist/error-report/queueRecord.d.ts.map +1 -1
- package/dist/error-report/queueResultConstants.d.ts +14 -0
- package/dist/error-report/queueResultConstants.d.ts.map +1 -0
- package/dist/error-report/runtimeDeduplication.d.ts +2 -1
- package/dist/error-report/runtimeDeduplication.d.ts.map +1 -1
- package/dist/error-report/safeValue.d.ts.map +1 -1
- package/dist/error-report/safeValueMarkerConstants.d.ts +16 -0
- package/dist/error-report/safeValueMarkerConstants.d.ts.map +1 -0
- package/dist/error-report/schema.d.ts.map +1 -1
- package/dist/error-report/types.d.ts +10 -8
- package/dist/error-report/types.d.ts.map +1 -1
- package/dist/error-report-source-maps/archive.d.ts.map +1 -1
- package/dist/error-report-source-maps/artifact.d.ts.map +1 -1
- package/dist/error-report-source-maps/index.js +238 -238
- package/dist/error-report-source-maps/index.js.map +1 -1
- package/dist/error-report-source-maps/manifest.d.ts.map +1 -1
- package/dist/error-report-source-maps/package.d.ts.map +1 -1
- package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts +11 -0
- package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts.map +1 -0
- package/dist/error-report-source-maps/symbolicate.d.ts.map +1 -1
- package/dist/error-report-source-maps/symbolicationResultConstants.d.ts +6 -0
- package/dist/error-report-source-maps/symbolicationResultConstants.d.ts.map +1 -0
- package/dist/error-report-source-maps/types.d.ts +4 -2
- package/dist/error-report-source-maps/types.d.ts.map +1 -1
- package/dist/excel/excel.d.ts.map +1 -1
- package/dist/excel/excelWorkbookConstants.d.ts +6 -0
- package/dist/excel/excelWorkbookConstants.d.ts.map +1 -0
- package/dist/excel/index.js +121 -120
- package/dist/excel/index.js.map +1 -1
- package/dist/excel/matrixWorkbook.d.ts +6 -1
- package/dist/excel/matrixWorkbook.d.ts.map +1 -1
- package/dist/excel/tableExport.d.ts +2 -2
- package/dist/excel/tableExport.d.ts.map +1 -1
- package/dist/file/checkFileSignature.d.ts.map +1 -1
- package/dist/file/contentDisposition.d.ts.map +1 -1
- package/dist/file/fileSignatureConstants.d.ts +14 -18
- package/dist/file/fileSignatureConstants.d.ts.map +1 -1
- package/dist/file/fileSignatureTypes.d.ts +3 -3
- package/dist/file/fileSignatureTypes.d.ts.map +1 -1
- package/dist/file/image/imageReadConstants.d.ts +3 -0
- package/dist/file/image/imageReadConstants.d.ts.map +1 -0
- package/dist/file/image/readImageFile.d.ts +3 -2
- package/dist/file/image/readImageFile.d.ts.map +1 -1
- package/dist/file/image/types.d.ts +5 -3
- package/dist/file/image/types.d.ts.map +1 -1
- package/dist/file/index.js +139 -165
- package/dist/file/index.js.map +1 -1
- package/dist/file/mimeType.d.ts.map +1 -1
- package/dist/file/mimeTypeConstants.d.ts +18 -0
- package/dist/file/mimeTypeConstants.d.ts.map +1 -0
- package/dist/file/read-file/assert.d.ts.map +1 -1
- package/dist/file/read-file/readFile.d.ts +3 -11
- package/dist/file/read-file/readFile.d.ts.map +1 -1
- package/dist/file/read-file/readFileConstants.d.ts +13 -0
- package/dist/file/read-file/readFileConstants.d.ts.map +1 -0
- package/dist/file/read-file/types.d.ts +7 -6
- package/dist/file/read-file/types.d.ts.map +1 -1
- package/dist/file/signature/checkArchiveSignature.d.ts.map +1 -1
- package/dist/file-system/fileSystemConstants.d.ts +5 -0
- package/dist/file-system/fileSystemConstants.d.ts.map +1 -0
- package/dist/file-system/fileSystemTypes.d.ts +2 -1
- package/dist/file-system/fileSystemTypes.d.ts.map +1 -1
- package/dist/file-system/index.js +11 -10
- package/dist/file-system/index.js.map +1 -1
- package/dist/file-system/resolvePathInsideRoot.d.ts.map +1 -1
- package/dist/formatters/boolean/parseAbapBoolean.d.ts.map +1 -1
- package/dist/formatters/boolean/toAbapBoolean.d.ts.map +1 -1
- package/dist/formatters/date/calendarDate.d.ts.map +1 -1
- package/dist/formatters/date/calendarDateConstants.d.ts +13 -0
- package/dist/formatters/date/calendarDateConstants.d.ts.map +1 -0
- package/dist/formatters/date/calendarPeriod.d.ts +11 -2
- package/dist/formatters/date/calendarPeriod.d.ts.map +1 -1
- package/dist/formatters/date/dateFormatConstants.d.ts +17 -0
- package/dist/formatters/date/dateFormatConstants.d.ts.map +1 -0
- package/dist/formatters/date/datePatternConstants.d.ts +16 -0
- package/dist/formatters/date/datePatternConstants.d.ts.map +1 -0
- package/dist/formatters/date/datePresetNameConstants.d.ts +27 -0
- package/dist/formatters/date/datePresetNameConstants.d.ts.map +1 -0
- package/dist/formatters/date/dateRange.d.ts +3 -1
- package/dist/formatters/date/dateRange.d.ts.map +1 -1
- package/dist/formatters/date/dateValueConstants.d.ts +15 -0
- package/dist/formatters/date/dateValueConstants.d.ts.map +1 -0
- package/dist/formatters/date/educationDate.d.ts.map +1 -1
- package/dist/formatters/date/formatDate.d.ts.map +1 -1
- package/dist/formatters/date/formatInstantDateTime.d.ts.map +1 -1
- package/dist/formatters/date/parseDate.d.ts.map +1 -1
- package/dist/formatters/date/pattern.d.ts.map +1 -1
- package/dist/formatters/date/presets.d.ts.map +1 -1
- package/dist/formatters/date/types.d.ts +8 -6
- package/dist/formatters/date/types.d.ts.map +1 -1
- package/dist/formatters/formatDurationMinutes.d.ts.map +1 -1
- package/dist/formatters/formatFileSize.d.ts.map +1 -1
- package/dist/formatters/formatPhone.d.ts.map +1 -1
- package/dist/formatters/index.js +6 -5
- package/dist/formatters/normalizeLeadingZeros.d.ts.map +1 -1
- package/dist/formatters/number/compact.d.ts.map +1 -1
- package/dist/formatters/number/formatCompactNumber.d.ts.map +1 -1
- package/dist/formatters/number/formatNumber.d.ts.map +1 -1
- package/dist/formatters/number/numberFormatConstants.d.ts +11 -0
- package/dist/formatters/number/numberFormatConstants.d.ts.map +1 -0
- package/dist/formatters/number/numberPresetNameConstants.d.ts +16 -0
- package/dist/formatters/number/numberPresetNameConstants.d.ts.map +1 -0
- package/dist/formatters/number/parseNumber.d.ts.map +1 -1
- package/dist/formatters/number/presets.d.ts.map +1 -1
- package/dist/formatters/number/types.d.ts +2 -1
- package/dist/formatters/number/types.d.ts.map +1 -1
- package/dist/formatters/pipeline/clone.d.ts.map +1 -1
- package/dist/formatters/pipeline/definitions.d.ts.map +1 -1
- package/dist/formatters/pipeline/dependencies.d.ts.map +1 -1
- package/dist/formatters/pipeline/execute.d.ts +4 -1
- package/dist/formatters/pipeline/execute.d.ts.map +1 -1
- package/dist/formatters/pipeline/formattersPipelineConstants.d.ts +19 -0
- package/dist/formatters/pipeline/formattersPipelineConstants.d.ts.map +1 -0
- package/dist/formatters/pipeline/normalize.d.ts.map +1 -1
- package/dist/formatters/pipeline/pipelineValidationConstants.d.ts +40 -0
- package/dist/formatters/pipeline/pipelineValidationConstants.d.ts.map +1 -0
- package/dist/formatters/pipeline/registry.d.ts +1 -1
- package/dist/formatters/pipeline/registry.d.ts.map +1 -1
- package/dist/formatters/pipeline/rekey.d.ts.map +1 -1
- package/dist/formatters/pipeline/runtime.d.ts.map +1 -1
- package/dist/formatters/pipeline/types.d.ts +28 -25
- package/dist/formatters/pipeline/types.d.ts.map +1 -1
- package/dist/formatters/pipeline/validate.d.ts +2 -1
- package/dist/formatters/pipeline/validate.d.ts.map +1 -1
- package/dist/formatters/strings/spaceCharacterConstants.d.ts +5 -0
- package/dist/formatters/strings/spaceCharacterConstants.d.ts.map +1 -0
- package/dist/formatters/strings/stripInnerSpaces.d.ts.map +1 -1
- package/dist/formatters/strings/stripLeadingZeros.d.ts.map +1 -1
- package/dist/formatters/valueState/fixedValueStateResolver.d.ts.map +1 -1
- package/dist/formatters/valueState/presentation.d.ts.map +1 -1
- package/dist/formatters/valueState/resolveValueStateClassName.d.ts.map +1 -1
- package/dist/formatters/valueState/thresholdValueStateResolver.d.ts.map +1 -1
- package/dist/formatters/valueState/types.d.ts +2 -1
- package/dist/formatters/valueState/types.d.ts.map +1 -1
- package/dist/formatters/valueState/valueStateRegistry.d.ts.map +1 -1
- package/dist/formatters/valueState/valueStateResolverConstants.d.ts +6 -0
- package/dist/formatters/valueState/valueStateResolverConstants.d.ts.map +1 -0
- package/dist/formulas/execute.d.ts +3 -2
- package/dist/formulas/execute.d.ts.map +1 -1
- package/dist/formulas/index.js +1 -1
- package/dist/formulas/isTableFormulaDependency.d.ts.map +1 -1
- package/dist/formulas/tableFormulaConstants.d.ts +12 -0
- package/dist/formulas/tableFormulaConstants.d.ts.map +1 -0
- package/dist/formulas/types.d.ts +2 -1
- package/dist/formulas/types.d.ts.map +1 -1
- package/dist/formulas/validate.d.ts +2 -1
- package/dist/formulas/validate.d.ts.map +1 -1
- package/dist/hooks/index.js +110 -107
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useBlockBrowserZoom.d.ts.map +1 -1
- package/dist/hooks/useDndSortableSensors.d.ts.map +1 -1
- package/dist/hooks/useFloatingListbox.d.ts +15 -33
- package/dist/hooks/useFloatingListbox.d.ts.map +1 -1
- package/dist/http/index.js +8 -7
- package/dist/http/index.js.map +1 -1
- package/dist/http/textResponse.d.ts.map +1 -1
- package/dist/indexed-records/createIndexedRecordsSchema.d.ts.map +1 -1
- package/dist/indexed-records/schema.js +24 -23
- package/dist/indexed-records/schema.js.map +1 -1
- package/dist/media/breakpointConstants.d.ts +5 -0
- package/dist/media/breakpointConstants.d.ts.map +1 -0
- package/dist/media/breakpoints.d.ts +2 -1
- package/dist/media/breakpoints.d.ts.map +1 -1
- package/dist/media/createNotificationTonePlayer.d.ts.map +1 -1
- package/dist/media/getCurrentFontSize.d.ts.map +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/mediaQueryConstants.d.ts +3 -0
- package/dist/media/mediaQueryConstants.d.ts.map +1 -0
- package/dist/media/responsive.d.ts +1 -1
- package/dist/media/responsive.d.ts.map +1 -1
- package/dist/media/useMatchMedia.d.ts.map +1 -1
- package/dist/media/useMediaQuery.d.ts.map +1 -1
- package/dist/metadata/baseMetaTypes.d.ts +7 -0
- package/dist/metadata/baseMetaTypes.d.ts.map +1 -0
- package/dist/metadata/metadataTypes.d.ts +17 -0
- package/dist/metadata/metadataTypes.d.ts.map +1 -0
- package/dist/metadata/scalarTypeClassification.d.ts +8 -0
- package/dist/metadata/scalarTypeClassification.d.ts.map +1 -0
- package/dist/metadata/scalarTypeConstants.d.ts +21 -0
- package/dist/metadata/scalarTypeConstants.d.ts.map +1 -0
- package/dist/notifications/index.js +62 -62
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/notificationTypeConstants.d.ts +6 -0
- package/dist/notifications/notificationTypeConstants.d.ts.map +1 -0
- package/dist/notifications/notify.d.ts.map +1 -1
- package/dist/notifications/store.d.ts.map +1 -1
- package/dist/notifications/types.d.ts +2 -1
- package/dist/notifications/types.d.ts.map +1 -1
- package/dist/number-scale/index.js +47 -46
- package/dist/number-scale/index.js.map +1 -1
- package/dist/number-scale/marksPositionConstants.d.ts +4 -0
- package/dist/number-scale/marksPositionConstants.d.ts.map +1 -0
- package/dist/number-scale/numberScale.d.ts +1 -1
- package/dist/number-scale/numberScale.d.ts.map +1 -1
- package/dist/number-scale/types.d.ts +2 -1
- package/dist/number-scale/types.d.ts.map +1 -1
- package/dist/odata-service/baseTypes.d.ts +1 -5
- package/dist/odata-service/baseTypes.d.ts.map +1 -1
- package/dist/odata-service/builder.d.ts.map +1 -1
- package/dist/odata-service/columns.d.ts.map +1 -1
- package/dist/odata-service/entityOperationConstants.d.ts +4 -0
- package/dist/odata-service/entityOperationConstants.d.ts.map +1 -0
- package/dist/odata-service/filterDefinitionConstants.d.ts +24 -0
- package/dist/odata-service/filterDefinitionConstants.d.ts.map +1 -0
- package/dist/odata-service/filterDefinitions.d.ts +19 -17
- package/dist/odata-service/filterDefinitions.d.ts.map +1 -1
- package/dist/odata-service/filterOperationConstants.d.ts +14 -0
- package/dist/odata-service/filterOperationConstants.d.ts.map +1 -0
- package/dist/odata-service/filters.d.ts.map +1 -1
- package/dist/odata-service/formatters.d.ts +1 -2
- package/dist/odata-service/formatters.d.ts.map +1 -1
- package/dist/odata-service/index.js +1317 -2
- package/dist/odata-service/index.js.map +1 -0
- package/dist/odata-service/odataMetadataConstants.d.ts +8 -0
- package/dist/odata-service/odataMetadataConstants.d.ts.map +1 -0
- package/dist/odata-service/parser.d.ts +1 -3
- package/dist/odata-service/parser.d.ts.map +1 -1
- package/dist/odata-service/schema.d.ts.map +1 -1
- package/dist/odata-service/sorts.d.ts.map +1 -1
- package/dist/odata-service/sqlFilters.d.ts +10 -5
- package/dist/odata-service/sqlFilters.d.ts.map +1 -1
- package/dist/odata-service/types.d.ts +13 -14
- package/dist/odata-service/types.d.ts.map +1 -1
- package/dist/odata-service/typesValidation.d.ts +1 -5
- package/dist/odata-service/typesValidation.d.ts.map +1 -1
- package/dist/pwa/index.js +72 -71
- package/dist/pwa/index.js.map +1 -1
- package/dist/pwa/sw-cache-policy.js +47 -47
- package/dist/pwa/sw-cache-policy.js.map +1 -1
- package/dist/pwa/swCachePolicy.d.ts +5 -1
- package/dist/pwa/swCachePolicy.d.ts.map +1 -1
- package/dist/pwa/useBrowserOnlineStatus.d.ts.map +1 -1
- package/dist/query-client/broadcast.d.ts +4 -3
- package/dist/query-client/broadcast.d.ts.map +1 -1
- package/dist/query-client/createQueryRestoreSchedulerGuard.d.ts.map +1 -1
- package/dist/query-client/createQueryRestoreStorage.d.ts.map +1 -1
- package/dist/query-client/index.js +1 -1
- package/dist/query-client/invalidationBroadcast.d.ts +2 -1
- package/dist/query-client/invalidationBroadcast.d.ts.map +1 -1
- package/dist/query-client/persistence.d.ts +9 -6
- package/dist/query-client/persistence.d.ts.map +1 -1
- package/dist/query-client/queryCacheEventConstants.d.ts +11 -0
- package/dist/query-client/queryCacheEventConstants.d.ts.map +1 -0
- package/dist/query-client/queryClient.d.ts +2 -1
- package/dist/query-client/queryClient.d.ts.map +1 -1
- package/dist/query-client/queryMeta.d.ts.map +1 -1
- package/dist/query-client/sessionPersistenceConstants.d.ts +5 -0
- package/dist/query-client/sessionPersistenceConstants.d.ts.map +1 -0
- package/dist/query-client/sessionScoped.d.ts.map +1 -1
- package/dist/query-client/sessionScopedResetConstants.d.ts +4 -0
- package/dist/query-client/sessionScopedResetConstants.d.ts.map +1 -0
- package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts +2 -1
- package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts.map +1 -1
- package/dist/seo/index.js +0 -1
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/seo.d.ts +3 -2
- package/dist/seo/seo.d.ts.map +1 -1
- package/dist/seo/seoContentTypeConstants.d.ts +6 -0
- package/dist/seo/seoContentTypeConstants.d.ts.map +1 -0
- package/dist/seo/types.d.ts +2 -1
- package/dist/seo/types.d.ts.map +1 -1
- package/dist/session-storage/index.js +1 -1
- package/dist/table/cellSelection.d.ts.map +1 -1
- package/dist/table/index.js +83 -79
- package/dist/table/index.js.map +1 -1
- package/dist/table/odataAdapter.d.ts +3 -3
- package/dist/table/odataAdapter.d.ts.map +1 -1
- package/dist/table/selection.d.ts +2 -2
- package/dist/table/selection.d.ts.map +1 -1
- package/dist/table/tableColumnConstants.d.ts +5 -0
- package/dist/table/tableColumnConstants.d.ts.map +1 -0
- package/dist/table/tableSelectionConstants.d.ts +8 -0
- package/dist/table/tableSelectionConstants.d.ts.map +1 -0
- package/dist/table/tanStackFeatures.d.ts +8 -8
- package/dist/table/types.d.ts +5 -3
- package/dist/table/types.d.ts.map +1 -1
- package/dist/table/useTableRowSelection.d.ts +2 -2
- package/dist/table/useTableRowSelection.d.ts.map +1 -1
- package/dist/table-document/index.js +88 -87
- package/dist/table-document/index.js.map +1 -1
- package/dist/table-document/insertTableDocumentAxis.d.ts +2 -1
- package/dist/table-document/insertTableDocumentAxis.d.ts.map +1 -1
- package/dist/table-document/tableDocument.d.ts +2 -1
- package/dist/table-document/tableDocument.d.ts.map +1 -1
- package/dist/table-document/tableDocumentAxisGroups.d.ts +4 -3
- package/dist/table-document/tableDocumentAxisGroups.d.ts.map +1 -1
- package/dist/table-document/tableDocumentConstants.d.ts +8 -0
- package/dist/table-document/tableDocumentConstants.d.ts.map +1 -0
- package/dist/table-document/tableDocumentGeometry.d.ts.map +1 -1
- package/dist/three-scene/index.js +32 -32
- package/dist/three-scene/index.js.map +1 -1
- package/dist/three-scene/threeSceneAvailability.d.ts +4 -3
- package/dist/three-scene/threeSceneAvailability.d.ts.map +1 -1
- package/dist/three-scene/threeSceneConstants.d.ts +14 -0
- package/dist/three-scene/threeSceneConstants.d.ts.map +1 -0
- package/dist/three-scene/useThreeSceneAvailability.d.ts.map +1 -1
- package/dist/tree-table/index.js +1 -1
- package/dist/types/abapBooleanConstants.d.ts +4 -0
- package/dist/types/abapBooleanConstants.d.ts.map +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/types.d.ts +4 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/valueStateConstants.d.ts +8 -0
- package/dist/types/valueStateConstants.d.ts.map +1 -0
- package/dist/utils/cloneFunctionStrategyConstants.d.ts +4 -0
- package/dist/utils/cloneFunctionStrategyConstants.d.ts.map +1 -0
- package/dist/utils/createLazyComponent.d.ts.map +1 -1
- package/dist/utils/deepCloneWithoutFunctions.d.ts +2 -1
- package/dist/utils/deepCloneWithoutFunctions.d.ts.map +1 -1
- package/dist/utils/deepCopyWithoutFunctions.d.ts +2 -1
- package/dist/utils/deepCopyWithoutFunctions.d.ts.map +1 -1
- package/dist/utils/index.js +2 -209
- package/dist/utils/keyboard.d.ts +2 -1
- package/dist/utils/keyboard.d.ts.map +1 -1
- package/dist/utils/keyboardConstants.d.ts +16 -0
- package/dist/utils/keyboardConstants.d.ts.map +1 -0
- package/dist/validators/index.js +3 -3
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/validateUrl.d.ts.map +1 -1
- package/dist/value-transformers/execute.d.ts.map +1 -1
- package/dist/value-transformers/index.js +9 -6
- package/dist/value-transformers/index.js.map +1 -1
- package/dist/value-transformers/types.d.ts +3 -2
- package/dist/value-transformers/types.d.ts.map +1 -1
- package/dist/value-transformers/valueTransformerConstants.d.ts +4 -0
- package/dist/value-transformers/valueTransformerConstants.d.ts.map +1 -0
- package/package.json +6 -5
- package/src/binary/README.mdx +1 -1
- package/src/dom/README.mdx +1 -1
- package/src/formatters/README.mdx +5 -0
- package/src/foundationLib.mdx +8 -0
- package/src/metadata/README.md +35 -0
- package/src/odata-service/README.mdx +36 -1
- package/src/query-client/README.mdx +4 -4
- package/dist/chunks/dom-BK22UmgF.js.map +0 -1
- package/dist/chunks/formatters-CZnnbdud.js.map +0 -1
- package/dist/chunks/formulas-BXT_XBWI.js.map +0 -1
- package/dist/chunks/media-WK38KtMl.js +0 -191
- package/dist/chunks/media-WK38KtMl.js.map +0 -1
- package/dist/chunks/odata-service-tp2U5yIr.js +0 -2211
- package/dist/chunks/odata-service-tp2U5yIr.js.map +0 -1
- package/dist/chunks/query-client-CVRfrYZM.js.map +0 -1
- package/dist/chunks/uuid-CUJPAbRY.js.map +0 -1
- package/dist/chunks/validate-CEQHqevt.js +0 -608
- package/dist/chunks/validate-CEQHqevt.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mimeTypeConstants-BzONV-b1.js","names":[],"sources":["../../src/file/mimeTypeConstants.ts"],"sourcesContent":["/** MIME-значения общие для extension lookup, бинарного определения типа и HTTP-заголовков. */\nexport const MIME_TYPE_OCTET_STREAM = \"application/octet-stream\";\nexport const MIME_TYPE_PDF = \"application/pdf\";\nexport const MIME_TYPE_MSWORD = \"application/msword\";\nexport const MIME_TYPE_DOCX = \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\";\nexport const MIME_TYPE_XLS = \"application/vnd.ms-excel\";\nexport const MIME_TYPE_XLSX = \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\";\nexport const MIME_TYPE_PPT = \"application/vnd.ms-powerpoint\";\nexport const MIME_TYPE_PPTX = \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\nexport const MIME_TYPE_ZIP = \"application/zip\";\nexport const MIME_TYPE_XML = \"application/xml\";\nexport const MIME_TYPE_TEXT_PLAIN_UTF8 = \"text/plain; charset=UTF-8\";\nexport const MIME_TYPE_IMAGE_JPEG = \"image/jpeg\";\nexport const MIME_TYPE_IMAGE_PNG = \"image/png\";\nexport const MIME_TYPE_IMAGE_GIF = \"image/gif\";\nexport const MIME_TYPE_IMAGE_WEBP = \"image/webp\";\nexport const MIME_TYPE_IMAGE_TIFF = \"image/tiff\";\n"],"mappings":";AACA,IAAa,IAAyB,4BACzB,IAAgB,mBAChB,IAAmB,sBACnB,IAAiB,2EACjB,IAAgB,4BAChB,IAAiB,qEACjB,IAAgB,iCAChB,IAAiB,6EACjB,IAAgB,mBAChB,IAAgB,mBAChB,IAA4B,6BAC5B,IAAuB,cACvB,IAAsB,aACtB,IAAsB,aACtB,IAAuB,cACvB,IAAuB"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { i as e } from "./isRecord-DXDTW-jA.js";
|
|
2
|
-
import { t } from "./uuid-
|
|
2
|
+
import { t } from "./uuid-izDzLv18.js";
|
|
3
3
|
import { broadcastQueryClient as n } from "@tanstack/query-broadcast-client-experimental";
|
|
4
4
|
import { experimental_createQueryPersister as r } from "@tanstack/query-persist-client-core";
|
|
5
5
|
import { CancelledError as i, MutationCache as a, QueryCache as o, QueryClient as s, isCancelledError as c } from "@tanstack/react-query";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
l = e;
|
|
6
|
+
var l = "invalidate", u = "query.invalidate", d = "none", f = "active", p = null;
|
|
7
|
+
function m(e) {
|
|
8
|
+
p = e;
|
|
10
9
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
10
|
+
function h(e) {
|
|
11
|
+
p?.(e);
|
|
13
12
|
}
|
|
14
|
-
function
|
|
13
|
+
function g(e, r) {
|
|
15
14
|
if (typeof window > "u") return {
|
|
16
15
|
broadcast: () => {},
|
|
17
16
|
cleanup: () => {}
|
|
@@ -20,15 +19,15 @@ function f(e, r) {
|
|
|
20
19
|
queryClient: e,
|
|
21
20
|
broadcastChannel: r.queriesChannel
|
|
22
21
|
}), o = t(), s = new BroadcastChannel(r.eventsChannel), c = e.getQueryCache().subscribe((e) => {
|
|
23
|
-
i || e.type === "updated" && e.action.type === "invalidate" &&
|
|
24
|
-
type:
|
|
22
|
+
i || e.type === "updated" && e.action.type === "invalidate" && u({
|
|
23
|
+
type: l,
|
|
25
24
|
keys: [e.query.queryKey],
|
|
26
|
-
refetchType:
|
|
25
|
+
refetchType: d
|
|
27
26
|
});
|
|
28
27
|
});
|
|
29
28
|
s.onmessage = (t) => {
|
|
30
29
|
let n = t.data;
|
|
31
|
-
if (!
|
|
30
|
+
if (!_(n) || n.tabId === o) return;
|
|
32
31
|
let r = n.event;
|
|
33
32
|
i = !0;
|
|
34
33
|
try {
|
|
@@ -48,7 +47,7 @@ function f(e, r) {
|
|
|
48
47
|
i = !1;
|
|
49
48
|
}
|
|
50
49
|
};
|
|
51
|
-
function
|
|
50
|
+
function u(e) {
|
|
52
51
|
let t = {
|
|
53
52
|
tabId: o,
|
|
54
53
|
event: e
|
|
@@ -56,31 +55,31 @@ function f(e, r) {
|
|
|
56
55
|
s.postMessage(t);
|
|
57
56
|
}
|
|
58
57
|
return {
|
|
59
|
-
broadcast:
|
|
58
|
+
broadcast: u,
|
|
60
59
|
cleanup: () => {
|
|
61
60
|
c(), a(), s.close();
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
return !e(t) || typeof t.tabId != "string" || !("event" in t) ? !1 :
|
|
64
|
+
function _(t) {
|
|
65
|
+
return !e(t) || typeof t.tabId != "string" || !("event" in t) ? !1 : ee(t.event);
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function ee(t) {
|
|
69
68
|
return e(t) ? t.type === "invalidate" ? Array.isArray(t.keys) ? t.refetchType === void 0 || t.refetchType === "none" || t.refetchType === "active" || t.refetchType === "inactive" || t.refetchType === "all" : !1 : t.type === "setQueryData" && "key" in t && "data" in t : !1;
|
|
70
69
|
}
|
|
71
70
|
//#endregion
|
|
72
71
|
//#region src/query-client/invalidationBroadcast.ts
|
|
73
|
-
function
|
|
72
|
+
function te(t) {
|
|
74
73
|
return e(t) && t.type === "query.invalidate" && typeof t.senderId == "string" && Array.isArray(t.queryKey);
|
|
75
74
|
}
|
|
76
|
-
function
|
|
75
|
+
function ne(e, n) {
|
|
77
76
|
if (typeof window > "u" || typeof BroadcastChannel > "u") return {
|
|
78
77
|
broadcast: () => void 0,
|
|
79
78
|
cleanup: () => void 0
|
|
80
79
|
};
|
|
81
80
|
let r = t(), i = new BroadcastChannel(n.channelName), a = !1, o = !1, s = (e) => {
|
|
82
81
|
o || !n.matchesQuery(e) || i.postMessage({
|
|
83
|
-
type:
|
|
82
|
+
type: u,
|
|
84
83
|
senderId: r,
|
|
85
84
|
queryKey: e
|
|
86
85
|
});
|
|
@@ -89,7 +88,7 @@ function g(e, n) {
|
|
|
89
88
|
});
|
|
90
89
|
return i.onmessage = (t) => {
|
|
91
90
|
let i = t.data;
|
|
92
|
-
if (!(o || !
|
|
91
|
+
if (!(o || !te(i) || i.senderId === r || !n.matchesQuery(i.queryKey))) {
|
|
93
92
|
a = !0;
|
|
94
93
|
try {
|
|
95
94
|
e.cancelQueries({
|
|
@@ -113,7 +112,8 @@ function g(e, n) {
|
|
|
113
112
|
}
|
|
114
113
|
//#endregion
|
|
115
114
|
//#region src/query-client/createQueryRestoreSchedulerGuard.ts
|
|
116
|
-
|
|
115
|
+
var v = "setState", re = "fetch";
|
|
116
|
+
function ie({ query: e, assertCurrentRestore: t }) {
|
|
117
117
|
let n = () => {
|
|
118
118
|
try {
|
|
119
119
|
return t(), !0;
|
|
@@ -125,15 +125,16 @@ function _({ query: e, assertCurrentRestore: t }) {
|
|
|
125
125
|
n() && e.setState(...t);
|
|
126
126
|
}, i = (...t) => n() ? e.fetch(...t) : Promise.resolve();
|
|
127
127
|
return new Proxy(e, { get: (e, t) => {
|
|
128
|
-
if (t ===
|
|
129
|
-
if (t ===
|
|
128
|
+
if (t === v) return r;
|
|
129
|
+
if (t === re) return i;
|
|
130
130
|
let n = Reflect.get(e, t, e);
|
|
131
131
|
return typeof n == "function" ? n.bind(e) : n;
|
|
132
132
|
} });
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/query-client/createQueryRestoreStorage.ts
|
|
136
|
-
|
|
136
|
+
var y = "Parser восстановленных Query data должен синхронно вернуть значение.";
|
|
137
|
+
function ae({ storage: e, queryHash: t, prefix: n, buster: r, maxAge: i, parser: a, assertCurrentRestore: o }) {
|
|
137
138
|
return {
|
|
138
139
|
...e,
|
|
139
140
|
removeItem: (t) => {
|
|
@@ -153,8 +154,8 @@ function ee({ storage: e, queryHash: t, prefix: n, buster: r, maxAge: i, parser:
|
|
|
153
154
|
if (!l || Date.now() - l > i || c.buster !== r) return c;
|
|
154
155
|
if (typeof l != "number" || !Number.isFinite(l)) throw Error("Persisted запись содержит некорректное время обновления.");
|
|
155
156
|
let u = a(c.state.data);
|
|
156
|
-
if ((typeof u == "object" || typeof u == "function") && u !== null && typeof Reflect.get(u, "then") == "function") throw Promise.resolve(u).catch(() => void 0), TypeError(
|
|
157
|
-
if (u === void 0) throw TypeError(
|
|
157
|
+
if ((typeof u == "object" || typeof u == "function") && u !== null && typeof Reflect.get(u, "then") == "function") throw Promise.resolve(u).catch(() => void 0), TypeError(y);
|
|
158
|
+
if (u === void 0) throw TypeError(y);
|
|
158
159
|
return o(), {
|
|
159
160
|
...c,
|
|
160
161
|
state: {
|
|
@@ -165,16 +166,14 @@ function ee({ storage: e, queryHash: t, prefix: n, buster: r, maxAge: i, parser:
|
|
|
165
166
|
}
|
|
166
167
|
};
|
|
167
168
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
var v = Symbol("query-restored-data-parser"), y = { persist: !0 }, te = { sessionScoped: !0 };
|
|
171
|
-
function ne(e) {
|
|
169
|
+
var b = /^[a-z0-9][a-z0-9_-]{0,63}$/u, x = /^[A-Za-z][A-Za-z0-9_]{0,63}$/u, S = Symbol("query-restored-data-parser"), oe = { persist: !0 }, se = { sessionScoped: !0 };
|
|
170
|
+
function C(e) {
|
|
172
171
|
let t = e.cacheName.trim();
|
|
173
|
-
if (
|
|
172
|
+
if (!b.test(t)) throw Error("Имя session query cache должно содержать только строчные латинские буквы, цифры, _ и -");
|
|
174
173
|
if (!Number.isSafeInteger(e.maxEntries) || e.maxEntries < 1 || e.maxEntries > 5e3) throw Error("Лимит session query cache должен быть целым числом от 1 до 5000");
|
|
175
174
|
if (e.refetchOnRestore !== void 0 && typeof e.refetchOnRestore != "boolean") throw Error("Политика refetch после восстановления должна быть boolean");
|
|
176
175
|
let n = e.monotonicRevisionField?.trim();
|
|
177
|
-
if (n !== void 0 &&
|
|
176
|
+
if (n !== void 0 && !x.test(n)) throw Error("Имя поля монотонной ревизии должно быть JavaScript-идентификатором длиной до 64 символов");
|
|
178
177
|
return {
|
|
179
178
|
sessionScoped: !0,
|
|
180
179
|
sessionPersistence: {
|
|
@@ -187,17 +186,17 @@ function ne(e) {
|
|
|
187
186
|
}
|
|
188
187
|
//#endregion
|
|
189
188
|
//#region src/query-client/queryPersistenceAdapter.ts
|
|
190
|
-
var
|
|
191
|
-
function
|
|
192
|
-
|
|
189
|
+
var w = {};
|
|
190
|
+
function ce(e) {
|
|
191
|
+
w = e;
|
|
193
192
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
193
|
+
function T() {
|
|
194
|
+
return w;
|
|
196
195
|
}
|
|
197
196
|
//#endregion
|
|
198
197
|
//#region src/query-client/persistence.ts
|
|
199
|
-
var
|
|
200
|
-
function
|
|
198
|
+
var le = "queries", ue = "session", de = "keep", E = "set", fe = "remove", D = "readwrite", O = "readonly", pe = 1, k = __REACT_QUERY_PERSISTENCE_BUSTER__, A = 7776e6, j = null;
|
|
199
|
+
function me(e) {
|
|
201
200
|
if (e) return e;
|
|
202
201
|
try {
|
|
203
202
|
return globalThis.indexedDB;
|
|
@@ -205,93 +204,93 @@ function ae(e) {
|
|
|
205
204
|
return;
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
|
-
function
|
|
207
|
+
function he(e) {
|
|
209
208
|
return new Promise((t, n) => {
|
|
210
209
|
e.onsuccess = () => t(e.result), e.onerror = () => n(e.error);
|
|
211
210
|
});
|
|
212
211
|
}
|
|
213
|
-
function
|
|
212
|
+
function M() {
|
|
214
213
|
if (__DEV__) return `dev:${__APP_ID__}`;
|
|
215
|
-
let e =
|
|
214
|
+
let e = T().resolveSystemIdentifier?.();
|
|
216
215
|
if (e) return e;
|
|
217
216
|
let t = typeof window > "u" ? "server" : window.location.hostname;
|
|
218
217
|
return `${__APP_ID__}:${t}`;
|
|
219
218
|
}
|
|
220
|
-
function
|
|
221
|
-
return `${
|
|
219
|
+
function N() {
|
|
220
|
+
return `${M()}`;
|
|
222
221
|
}
|
|
223
|
-
function
|
|
222
|
+
function P(e) {
|
|
224
223
|
return encodeURIComponent(e);
|
|
225
224
|
}
|
|
226
|
-
function
|
|
227
|
-
return `${
|
|
225
|
+
function F() {
|
|
226
|
+
return `${N()}-${ue}-`;
|
|
228
227
|
}
|
|
229
|
-
function
|
|
230
|
-
return `${
|
|
228
|
+
function I(e) {
|
|
229
|
+
return `${F()}${P(e)}-`;
|
|
231
230
|
}
|
|
232
|
-
function
|
|
233
|
-
return `${
|
|
231
|
+
function ge(e, t) {
|
|
232
|
+
return `${I(e)}${P(t)}`;
|
|
234
233
|
}
|
|
235
|
-
function
|
|
234
|
+
function L(e) {
|
|
236
235
|
return !!e?.id.trim() && Number.isFinite(Date.parse(e?.expiresAt ?? "")) && Date.parse(e?.expiresAt ?? "") > Date.now();
|
|
237
236
|
}
|
|
238
|
-
function
|
|
239
|
-
return
|
|
237
|
+
function R() {
|
|
238
|
+
return L(j) ? j : null;
|
|
240
239
|
}
|
|
241
|
-
async function
|
|
242
|
-
let t =
|
|
240
|
+
async function z(e) {
|
|
241
|
+
let t = W();
|
|
243
242
|
if (!t?.entries) return;
|
|
244
243
|
let n = await t.entries();
|
|
245
244
|
await Promise.all(n.filter(([t]) => e(t)).map(([e]) => t.removeItem(e)));
|
|
246
245
|
}
|
|
247
|
-
async function
|
|
248
|
-
let t = e === void 0 ?
|
|
249
|
-
await
|
|
246
|
+
async function B(e) {
|
|
247
|
+
let t = e === void 0 ? F() : I(e);
|
|
248
|
+
await z((e) => e.startsWith(t));
|
|
250
249
|
}
|
|
251
|
-
async function
|
|
252
|
-
let t = e &&
|
|
250
|
+
async function _e(e) {
|
|
251
|
+
let t = e && L(e) ? {
|
|
253
252
|
id: e.id.trim(),
|
|
254
253
|
expiresAt: e.expiresAt
|
|
255
254
|
} : null;
|
|
256
|
-
if (
|
|
257
|
-
await
|
|
255
|
+
if (j = t, !t) {
|
|
256
|
+
await B();
|
|
258
257
|
return;
|
|
259
258
|
}
|
|
260
|
-
let n =
|
|
261
|
-
await
|
|
259
|
+
let n = I(t.id);
|
|
260
|
+
await z((e) => e.startsWith(F()) && !e.startsWith(n));
|
|
262
261
|
}
|
|
263
|
-
function
|
|
262
|
+
function V(e) {
|
|
264
263
|
return e.meta?.persist === !0 && e.meta.sessionScoped !== !0;
|
|
265
264
|
}
|
|
266
|
-
function
|
|
265
|
+
function H(e) {
|
|
267
266
|
let t = e.meta?.sessionPersistence;
|
|
268
|
-
if (e.meta?.sessionScoped !== !0 || !t || typeof t != "object" || !("cacheName" in t) || !("maxEntries" in t) || typeof t.cacheName != "string" ||
|
|
267
|
+
if (e.meta?.sessionScoped !== !0 || !t || typeof t != "object" || !("cacheName" in t) || !("maxEntries" in t) || typeof t.cacheName != "string" || !b.test(t.cacheName) || !Number.isSafeInteger(t.maxEntries) || t.maxEntries < 1 || t.maxEntries > 5e3) return null;
|
|
269
268
|
let n = "refetchOnRestore" in t ? t.refetchOnRestore : void 0;
|
|
270
269
|
if (n !== void 0 && typeof n != "boolean") return null;
|
|
271
270
|
let r = "monotonicRevisionField" in t ? t.monotonicRevisionField : void 0;
|
|
272
|
-
return r !== void 0 && (typeof r != "string" ||
|
|
271
|
+
return r !== void 0 && (typeof r != "string" || !x.test(r)) ? null : {
|
|
273
272
|
cacheName: t.cacheName,
|
|
274
273
|
maxEntries: t.maxEntries,
|
|
275
274
|
refetchOnRestore: n,
|
|
276
275
|
monotonicRevisionField: r
|
|
277
276
|
};
|
|
278
277
|
}
|
|
279
|
-
function
|
|
278
|
+
function U(e, t) {
|
|
280
279
|
let n = e.state.data;
|
|
281
280
|
if (typeof n != "object" || !n || Array.isArray(n)) return null;
|
|
282
281
|
let r = Reflect.get(n, t);
|
|
283
282
|
return typeof r != "string" || !/^\d+$/u.test(r) ? null : r.replace(/^0+(?=\d)/u, "");
|
|
284
283
|
}
|
|
285
|
-
function
|
|
284
|
+
function ve(e, t) {
|
|
286
285
|
return e.length === t.length ? e === t ? 0 : e < t ? -1 : 1 : e.length - t.length;
|
|
287
286
|
}
|
|
288
|
-
function
|
|
289
|
-
let t =
|
|
287
|
+
function W(e = {}) {
|
|
288
|
+
let t = me(e.indexedDB);
|
|
290
289
|
if (!t) return;
|
|
291
|
-
let n = t, r = e.dbName ??
|
|
290
|
+
let n = t, r = e.dbName ?? M(), i = e.storeName ?? le, a = null;
|
|
292
291
|
function o() {
|
|
293
292
|
return a || (a = new Promise((e, t) => {
|
|
294
|
-
let a = n.open(r,
|
|
293
|
+
let a = n.open(r, pe);
|
|
295
294
|
a.onupgradeneeded = () => {
|
|
296
295
|
let e = a.result;
|
|
297
296
|
e.objectStoreNames.contains(i) || e.createObjectStore(i);
|
|
@@ -299,7 +298,7 @@ function z(e = {}) {
|
|
|
299
298
|
}), a);
|
|
300
299
|
}
|
|
301
300
|
async function s(e, t) {
|
|
302
|
-
return
|
|
301
|
+
return he(t((await o()).transaction(i, e).objectStore(i)));
|
|
303
302
|
}
|
|
304
303
|
async function c(e, t) {
|
|
305
304
|
let n = await o();
|
|
@@ -316,7 +315,7 @@ function z(e = {}) {
|
|
|
316
315
|
async function l(e, t) {
|
|
317
316
|
let n = await o();
|
|
318
317
|
return new Promise((r, a) => {
|
|
319
|
-
let o = n.transaction(i,
|
|
318
|
+
let o = n.transaction(i, D), s = o.objectStore(i), c = s.get(e), l, u = !1;
|
|
320
319
|
o.oncomplete = () => {
|
|
321
320
|
u ? r(l) : a(/* @__PURE__ */ Error("IndexedDB-транзакция завершилась без результата обновления"));
|
|
322
321
|
}, o.onerror = () => a(o.error), o.onabort = () => a(o.error), c.onerror = () => {
|
|
@@ -324,7 +323,7 @@ function z(e = {}) {
|
|
|
324
323
|
}, c.onsuccess = () => {
|
|
325
324
|
try {
|
|
326
325
|
let n = t(c.result);
|
|
327
|
-
l = n.result, u = !0, n.action ===
|
|
326
|
+
l = n.result, u = !0, n.action === E ? s.put(n.value, e) : n.action === fe && s.delete(e);
|
|
328
327
|
} catch (e) {
|
|
329
328
|
o.abort(), a(e);
|
|
330
329
|
}
|
|
@@ -332,14 +331,14 @@ function z(e = {}) {
|
|
|
332
331
|
});
|
|
333
332
|
}
|
|
334
333
|
return {
|
|
335
|
-
getItem: (e) => s(
|
|
336
|
-
setItem: (e, t) => c(
|
|
337
|
-
removeItem: (e) => c(
|
|
334
|
+
getItem: (e) => s(O, (t) => t.get(e)),
|
|
335
|
+
setItem: (e, t) => c(D, (n) => n.put(t, e)),
|
|
336
|
+
removeItem: (e) => c(D, (t) => t.delete(e)),
|
|
338
337
|
updateItem: l,
|
|
339
338
|
entries: async () => {
|
|
340
339
|
let e = await o();
|
|
341
340
|
return new Promise((t, n) => {
|
|
342
|
-
let r = e.transaction(i,
|
|
341
|
+
let r = e.transaction(i, O), a = r.objectStore(i).openCursor(), o = [];
|
|
343
342
|
r.oncomplete = () => t(o), r.onerror = () => n(r.error), r.onabort = () => n(r.error), a.onsuccess = () => {
|
|
344
343
|
let e = a.result;
|
|
345
344
|
e && (o.push([String(e.key), e.value]), e.continue());
|
|
@@ -348,39 +347,39 @@ function z(e = {}) {
|
|
|
348
347
|
}
|
|
349
348
|
};
|
|
350
349
|
}
|
|
351
|
-
function
|
|
352
|
-
let e =
|
|
350
|
+
function G() {
|
|
351
|
+
let e = W();
|
|
353
352
|
if (!e) return;
|
|
354
353
|
let t = e, n = r({
|
|
355
354
|
storage: t,
|
|
356
355
|
serialize: (e) => e,
|
|
357
356
|
deserialize: (e) => e,
|
|
358
|
-
prefix:
|
|
359
|
-
buster:
|
|
360
|
-
maxAge:
|
|
357
|
+
prefix: N(),
|
|
358
|
+
buster: T().persistenceBuster ?? k,
|
|
359
|
+
maxAge: A,
|
|
361
360
|
refetchOnRestore: !0,
|
|
362
|
-
filters: { predicate:
|
|
361
|
+
filters: { predicate: V }
|
|
363
362
|
}), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new WeakMap();
|
|
364
363
|
function s(e, n, i, o = !0, s) {
|
|
365
|
-
let c =
|
|
364
|
+
let c = ge(e.id, n), l = `${c}:${i}:${o}:${s ?? ""}:${e.expiresAt}`, u = a.get(l);
|
|
366
365
|
if (u) return u;
|
|
367
366
|
let d = Promise.resolve(), f = {
|
|
368
|
-
getItem: (n) =>
|
|
367
|
+
getItem: (n) => R()?.id === e.id ? t.getItem(n) : void 0,
|
|
369
368
|
removeItem: (e) => t.removeItem(e),
|
|
370
369
|
entries: () => t.entries(),
|
|
371
370
|
setItem: async (n, r) => {
|
|
372
|
-
|
|
371
|
+
R()?.id === e.id && (s === void 0 ? await t.setItem(n, r) : await t.updateItem(n, (e) => {
|
|
373
372
|
if (!e || e.buster !== r.buster) return {
|
|
374
|
-
action:
|
|
373
|
+
action: E,
|
|
375
374
|
value: r,
|
|
376
375
|
result: void 0
|
|
377
376
|
};
|
|
378
|
-
let t =
|
|
379
|
-
return t !== null && n !== null &&
|
|
380
|
-
action:
|
|
377
|
+
let t = U(e, s), n = U(r, s);
|
|
378
|
+
return t !== null && n !== null && ve(t, n) > 0 ? {
|
|
379
|
+
action: de,
|
|
381
380
|
result: void 0
|
|
382
381
|
} : {
|
|
383
|
-
action:
|
|
382
|
+
action: E,
|
|
384
383
|
value: r,
|
|
385
384
|
result: void 0
|
|
386
385
|
};
|
|
@@ -395,10 +394,10 @@ function B() {
|
|
|
395
394
|
serialize: (e) => e,
|
|
396
395
|
deserialize: (e) => e,
|
|
397
396
|
prefix: c,
|
|
398
|
-
buster:
|
|
399
|
-
maxAge:
|
|
397
|
+
buster: T().persistenceBuster ?? k,
|
|
398
|
+
maxAge: A,
|
|
400
399
|
refetchOnRestore: o,
|
|
401
|
-
filters: { predicate: (e) =>
|
|
400
|
+
filters: { predicate: (e) => H(e)?.cacheName === n }
|
|
402
401
|
}),
|
|
403
402
|
storage: f,
|
|
404
403
|
prefix: c
|
|
@@ -408,55 +407,56 @@ function B() {
|
|
|
408
407
|
return {
|
|
409
408
|
...n,
|
|
410
409
|
async persisterFn(e, a, c) {
|
|
411
|
-
let l =
|
|
410
|
+
let l = H(c), u = R();
|
|
412
411
|
if (l && !u) return Promise.resolve(e(a));
|
|
413
412
|
let d = l && u ? s(u, l.cacheName, l.maxEntries, l.refetchOnRestore, l.monotonicRevisionField) : {
|
|
414
413
|
persister: n,
|
|
415
414
|
storage: t,
|
|
416
|
-
prefix:
|
|
417
|
-
}, f = c.meta?.[
|
|
415
|
+
prefix: N()
|
|
416
|
+
}, f = c.meta?.[S];
|
|
418
417
|
if (f === void 0) return o.delete(c), d.persister.persisterFn(e, a, c);
|
|
419
418
|
if (typeof f != "function") throw TypeError("Parser восстановленных Query data должен быть функцией.");
|
|
420
419
|
let p = {};
|
|
421
420
|
o.set(c, p);
|
|
422
421
|
let m = () => {
|
|
423
|
-
if (a.signal.aborted || o.get(c) !== p || l &&
|
|
424
|
-
}, h =
|
|
422
|
+
if (a.signal.aborted || o.get(c) !== p || l && R()?.id !== u?.id) throw new i({ revert: !0 });
|
|
423
|
+
}, h = T().persistenceBuster ?? k, g = ae({
|
|
425
424
|
storage: d.storage,
|
|
426
425
|
queryHash: c.queryHash,
|
|
427
426
|
prefix: d.prefix,
|
|
428
427
|
buster: h,
|
|
429
|
-
maxAge:
|
|
428
|
+
maxAge: A,
|
|
430
429
|
parser: f,
|
|
431
430
|
assertCurrentRestore: m
|
|
432
|
-
}),
|
|
431
|
+
}), _ = await r({
|
|
433
432
|
storage: g,
|
|
434
433
|
serialize: (e) => e,
|
|
435
434
|
deserialize: (e) => e,
|
|
436
435
|
prefix: d.prefix,
|
|
437
436
|
buster: h,
|
|
438
|
-
maxAge:
|
|
437
|
+
maxAge: A,
|
|
439
438
|
refetchOnRestore: l?.refetchOnRestore ?? !0,
|
|
440
|
-
filters: l ? { predicate: (e) =>
|
|
441
|
-
}).persisterFn((t) => (m(), e(t)), a,
|
|
439
|
+
filters: l ? { predicate: (e) => H(e)?.cacheName === l.cacheName } : { predicate: V }
|
|
440
|
+
}).persisterFn((t) => (m(), e(t)), a, ie({
|
|
442
441
|
query: c,
|
|
443
442
|
assertCurrentRestore: m
|
|
444
443
|
}));
|
|
445
|
-
return m(),
|
|
444
|
+
return m(), _;
|
|
446
445
|
}
|
|
447
446
|
};
|
|
448
447
|
}
|
|
449
448
|
//#endregion
|
|
450
449
|
//#region src/query-client/queryClient.ts
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
var ye = 6e5, be = 18e5;
|
|
451
|
+
function xe({ onQueryError: e, onMutationError: t }) {
|
|
452
|
+
let n = G();
|
|
453
453
|
return new s({
|
|
454
454
|
queryCache: new o({ onError: e }),
|
|
455
455
|
mutationCache: new a({ onError: t }),
|
|
456
456
|
defaultOptions: {
|
|
457
457
|
queries: {
|
|
458
|
-
staleTime:
|
|
459
|
-
gcTime:
|
|
458
|
+
staleTime: ye,
|
|
459
|
+
gcTime: be,
|
|
460
460
|
throwOnError: !1,
|
|
461
461
|
retry: !1,
|
|
462
462
|
...n ? { persister: n.persisterFn } : {}
|
|
@@ -468,44 +468,44 @@ function V({ onQueryError: e, onMutationError: t }) {
|
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
async function
|
|
471
|
+
async function Se(e, t, n) {
|
|
472
472
|
await e.cancelQueries({ queryKey: t });
|
|
473
473
|
let r = e.getQueryData(t);
|
|
474
474
|
return e.setQueryData(t, n), { previous: r };
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Ce(e, t, n) {
|
|
477
477
|
n?.previous !== void 0 && e.setQueryData(t, n.previous);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function we(e, t, n, r) {
|
|
480
480
|
e.setQueryData(t, (e) => r(e, n));
|
|
481
481
|
}
|
|
482
|
-
async function
|
|
483
|
-
let r = n?.refetchType ?? "none", i =
|
|
482
|
+
async function Te(e, t, n) {
|
|
483
|
+
let r = n?.refetchType ?? "none", i = Ee(t) ? t : [t];
|
|
484
484
|
await Promise.all(i.map((t) => e.invalidateQueries({
|
|
485
485
|
queryKey: t,
|
|
486
486
|
refetchType: r
|
|
487
487
|
})));
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Ee(e) {
|
|
490
490
|
return Array.isArray(e) ? Array.isArray(e[0]) : !1;
|
|
491
491
|
}
|
|
492
492
|
//#endregion
|
|
493
|
-
//#region src/query-client/
|
|
494
|
-
var
|
|
495
|
-
function
|
|
496
|
-
let t =
|
|
493
|
+
//#region src/query-client/sessionScopedResetConstants.ts
|
|
494
|
+
var De = "completed", Oe = "failed", K = /* @__PURE__ */ new WeakMap();
|
|
495
|
+
function q(e) {
|
|
496
|
+
let t = K.get(e);
|
|
497
497
|
if (t) return t;
|
|
498
498
|
let n = {
|
|
499
499
|
registrations: /* @__PURE__ */ new Set(),
|
|
500
500
|
activeResets: 0
|
|
501
501
|
};
|
|
502
|
-
return
|
|
503
|
-
}
|
|
504
|
-
function q(e, t) {
|
|
505
|
-
t.activeResets === 0 && t.registrations.size === 0 && G.get(e) === t && G.delete(e);
|
|
502
|
+
return K.set(e, n), n;
|
|
506
503
|
}
|
|
507
504
|
function J(e, t) {
|
|
508
|
-
|
|
505
|
+
t.activeResets === 0 && t.registrations.size === 0 && K.get(e) === t && K.delete(e);
|
|
506
|
+
}
|
|
507
|
+
function ke(e, t) {
|
|
508
|
+
let n = q(e);
|
|
509
509
|
if (n.activeResets > 0) throw Error("Lifecycle session-scoped Query нельзя установить во время сброса");
|
|
510
510
|
let r = {
|
|
511
511
|
beforeReset: t.beforeReset,
|
|
@@ -514,11 +514,11 @@ function J(e, t) {
|
|
|
514
514
|
n.registrations.add(r);
|
|
515
515
|
let i = !1;
|
|
516
516
|
return { cleanup() {
|
|
517
|
-
i || (i = !0, n.registrations.delete(r),
|
|
517
|
+
i || (i = !0, n.registrations.delete(r), J(e, n));
|
|
518
518
|
} };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
let t =
|
|
520
|
+
function Ae(e) {
|
|
521
|
+
let t = q(e);
|
|
522
522
|
t.activeResets += 1;
|
|
523
523
|
let n = [...t.registrations], r = n.map(({ beforeReset: e }) => {
|
|
524
524
|
try {
|
|
@@ -539,7 +539,7 @@ function de(e) {
|
|
|
539
539
|
}
|
|
540
540
|
}));
|
|
541
541
|
} finally {
|
|
542
|
-
--t.activeResets,
|
|
542
|
+
--t.activeResets, J(e, t);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
};
|
|
@@ -554,7 +554,7 @@ function Q(e) {
|
|
|
554
554
|
return e.meta?.sessionScoped === !0;
|
|
555
555
|
}
|
|
556
556
|
async function $(e, t = {}) {
|
|
557
|
-
let n =
|
|
557
|
+
let n = Ae(e), r = { predicate: Q }, i = [];
|
|
558
558
|
try {
|
|
559
559
|
n.retirement && i.push(...await n.retirement);
|
|
560
560
|
try {
|
|
@@ -578,24 +578,24 @@ async function $(e, t = {}) {
|
|
|
578
578
|
}
|
|
579
579
|
i.length === 0 && (await e.refetchQueries({
|
|
580
580
|
predicate: (e) => Q(e) && e.getObserversCount() > 0,
|
|
581
|
-
type:
|
|
581
|
+
type: f
|
|
582
582
|
}, { cancelRefetch: !0 }), t.broadcast !== !1 && Z?.());
|
|
583
583
|
} catch (e) {
|
|
584
584
|
i.push(e);
|
|
585
585
|
} finally {
|
|
586
|
-
i.push(...await n.complete({ status: i.length === 0 ?
|
|
586
|
+
i.push(...await n.complete({ status: i.length === 0 ? De : Oe }));
|
|
587
587
|
}
|
|
588
588
|
if (i.length === 1) throw i[0];
|
|
589
589
|
if (i.length > 1) throw AggregateError(i, "Не удалось завершить сброс session-scoped Query");
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function je(e, t) {
|
|
592
592
|
if (typeof window > "u" || typeof BroadcastChannel > "u") return { cleanup: () => void 0 };
|
|
593
593
|
let n = new BroadcastChannel(t.channelName), r = () => {
|
|
594
594
|
let e = { type: X };
|
|
595
595
|
n.postMessage(e);
|
|
596
596
|
};
|
|
597
597
|
Z = r, n.onmessage = (n) => {
|
|
598
|
-
|
|
598
|
+
Me(n.data) && $(e, { broadcast: !1 }).catch(async (e) => {
|
|
599
599
|
if (!t.onError) {
|
|
600
600
|
console.error("Не удалось обработать межвкладочный сброс session-scoped Query", e);
|
|
601
601
|
return;
|
|
@@ -612,10 +612,10 @@ function fe(e, t) {
|
|
|
612
612
|
i || (i = !0, n.onmessage = null, n.close(), Z === r && (Z = void 0));
|
|
613
613
|
} };
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Me(e) {
|
|
616
616
|
return typeof e == "object" && !!e && "type" in e && e.type === X;
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
|
-
export {
|
|
619
|
+
export { se as C, m as D, g as E, oe as S, h as T, V as _, xe as a, S as b, Te as c, A as d, B as f, _e as g, R as h, ke as i, we as l, G as m, Q as n, Ce as o, W as p, $ as r, Se as s, je as t, k as u, ce as v, ne as w, C as x, T as y };
|
|
620
620
|
|
|
621
|
-
//# sourceMappingURL=query-client-
|
|
621
|
+
//# sourceMappingURL=query-client-D0HQZ84w.js.map
|