@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
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type KeyboardEvent } from "react";
|
|
2
|
+
import { type Placement, type UseFloatingReturn, type UseInteractionsReturn } from "@floating-ui/react";
|
|
3
|
+
declare const FLOATING_LISTBOX_PLACEMENT_FLIP = "flip";
|
|
4
|
+
declare const FLOATING_LISTBOX_PLACEMENT_AUTO = "auto";
|
|
2
5
|
/** Геометрия, которую Floating UI вычислил для доступной стороны listbox. */
|
|
3
6
|
export type FloatingListboxSizeContext = {
|
|
4
7
|
availableWidth: number;
|
|
@@ -22,7 +25,7 @@ export type FloatingListboxSizeStyle = {
|
|
|
22
25
|
};
|
|
23
26
|
export type FloatingListboxSizeResolver = (context: FloatingListboxSizeContext) => FloatingListboxSizeStyle;
|
|
24
27
|
/** Стратегия выбора стороны для floating-элемента относительно reference. */
|
|
25
|
-
export type FloatingListboxPlacementStrategy =
|
|
28
|
+
export type FloatingListboxPlacementStrategy = typeof FLOATING_LISTBOX_PLACEMENT_FLIP | typeof FLOATING_LISTBOX_PLACEMENT_AUTO;
|
|
26
29
|
interface UseFloatingListboxParams<T> {
|
|
27
30
|
options: readonly T[];
|
|
28
31
|
selectedIndex: number;
|
|
@@ -40,38 +43,16 @@ interface UseFloatingListboxParams<T> {
|
|
|
40
43
|
restoreFocusOnClose?: boolean;
|
|
41
44
|
resolveFloatingSize?: FloatingListboxSizeResolver;
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Форма результата использует публичные типы Floating UI: декларации пакета не
|
|
48
|
+
* должны раскрывать пути его транзитивных зависимостей в конкретной установке.
|
|
49
|
+
*/
|
|
50
|
+
type UseFloatingListboxResult<T> = Pick<UseFloatingReturn, "refs" | "context" | "floatingStyles"> & Pick<UseInteractionsReturn, "getFloatingProps"> & {
|
|
44
51
|
open: boolean;
|
|
45
52
|
setOpen: (open: boolean) => void;
|
|
46
53
|
activeIndex: number;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
floating: React.MutableRefObject<HTMLElement | null>;
|
|
50
|
-
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
51
|
-
setFloating: (node: HTMLElement | null) => void;
|
|
52
|
-
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
53
|
-
context: {
|
|
54
|
-
x: number;
|
|
55
|
-
update: () => void;
|
|
56
|
-
y: number;
|
|
57
|
-
placement: Placement;
|
|
58
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
59
|
-
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
60
|
-
isPositioned: boolean;
|
|
61
|
-
floatingStyles: React.CSSProperties;
|
|
62
|
-
open: boolean;
|
|
63
|
-
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
64
|
-
events: import("@floating-ui/react").FloatingEvents;
|
|
65
|
-
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
66
|
-
nodeId: string | undefined;
|
|
67
|
-
floatingId: string | undefined;
|
|
68
|
-
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
69
|
-
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
70
|
-
};
|
|
71
|
-
floatingStyles: import("react").CSSProperties;
|
|
72
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
73
|
-
setReference: ((node: import("@floating-ui/react-dom").ReferenceType | null) => void) & ((node: import("@floating-ui/react").ReferenceType | null) => void);
|
|
74
|
-
setFloating: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
|
|
54
|
+
setReference: UseFloatingReturn["refs"]["setReference"];
|
|
55
|
+
setFloating: UseFloatingReturn["refs"]["setFloating"];
|
|
75
56
|
setOptionRef: (index: number, node: HTMLElement | null) => void;
|
|
76
57
|
close: () => void;
|
|
77
58
|
openList: () => void;
|
|
@@ -79,10 +60,11 @@ export declare function useFloatingListbox<T>({ options, selectedIndex, open, on
|
|
|
79
60
|
toggleOpen: () => void;
|
|
80
61
|
selectOption: (option: T) => void;
|
|
81
62
|
selectActiveOption: () => void;
|
|
82
|
-
handleReferenceKeyDown: (event:
|
|
83
|
-
handleFloatingKeyDown: (event:
|
|
63
|
+
handleReferenceKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
64
|
+
handleFloatingKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
84
65
|
getOptionId: (listId: string, index: number) => string;
|
|
85
66
|
getActiveOptionId: (listId: string) => string | undefined;
|
|
86
67
|
};
|
|
68
|
+
export declare function useFloatingListbox<T>({ options, selectedIndex, open, onOpenChange, getOptionDisabled, onSelect, disabled, placement, placementStrategy, closeOnSelect, focusFloatingOnOpen, allowOpenWithoutOptions, restoreFocusOnClose, resolveFloatingSize }: UseFloatingListboxParams<T>): UseFloatingListboxResult<T>;
|
|
87
69
|
export {};
|
|
88
70
|
//# sourceMappingURL=useFloatingListbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingListbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useFloatingListbox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFloatingListbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useFloatingListbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAgD,MAAM,OAAO,CAAC;AAEzF,OAAO,EAKN,KAAK,SAAS,EAKd,KAAK,iBAAiB,EAEtB,KAAK,qBAAqB,EAE1B,MAAM,oBAAoB,CAAC;AAa5B,QAAA,MAAM,+BAA+B,SAAS,CAAC;AAC/C,QAAA,MAAM,+BAA+B,SAAS,CAAC;AAM/C,6EAA6E;AAC7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG;IACH,CAAC,cAAc,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,0BAA0B,KAAK,wBAAwB,CAAC;AAE5G,6EAA6E;AAC7E,MAAM,MAAM,gCAAgC,GAAG,OAAO,+BAA+B,GAAG,OAAO,+BAA+B,CAAC;AA2B/H,UAAU,wBAAwB,CAAC,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,gCAAgC,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;CAClD;AAED;;;GAGG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,CAAC,GAChG,IAAI,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,GAAG;IACjD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAC;IACxD,WAAW,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACtD,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAChE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAClC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,sBAAsB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACpE,qBAAqB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnE,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EACrC,OAAO,EACP,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,SAA8C,EAC9C,iBAAmD,EACnD,aAAoB,EACpB,mBAA0B,EAC1B,uBAA+B,EAC/B,mBAA0B,EAC1B,mBAAmB,EACnB,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA2W3D"}
|
package/dist/http/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import { f as e } from "../chunks/mimeTypeConstants-BzONV-b1.js";
|
|
1
2
|
//#region src/http/httpHeaders.ts
|
|
2
|
-
function
|
|
3
|
+
function t(e) {
|
|
3
4
|
let t = new Headers(e);
|
|
4
5
|
return t.set("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate"), t.set("Pragma", "no-cache"), t.set("Expires", "0"), t;
|
|
5
6
|
}
|
|
6
7
|
//#endregion
|
|
7
8
|
//#region src/http/textResponse.ts
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
return
|
|
11
|
-
status:
|
|
12
|
-
headers:
|
|
9
|
+
function n({ status: n, text: r, headers: i }) {
|
|
10
|
+
let a = t(i);
|
|
11
|
+
return a.set("Content-Type", e), new Response(r, {
|
|
12
|
+
status: n,
|
|
13
|
+
headers: a
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export {
|
|
17
|
+
export { t as createNoStoreHeaders, n as createTextHttpResponse };
|
|
17
18
|
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/dist/http/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/http/httpHeaders.ts","../../src/http/textResponse.ts"],"sourcesContent":["export type NoStoreHeadersInit = HeadersInit | undefined;\n\nexport function createNoStoreHeaders(init?: NoStoreHeadersInit): Headers {\n\tconst headers = new Headers(init);\n\n\theaders.set(\"Cache-Control\", \"no-store, no-cache, must-revalidate, proxy-revalidate\");\n\theaders.set(\"Pragma\", \"no-cache\");\n\theaders.set(\"Expires\", \"0\");\n\n\treturn headers;\n}\n","import { createNoStoreHeaders } from \"./httpHeaders\";\n\nexport type TextHttpResponseOptions = {\n\treadonly status: number;\n\treadonly text: string;\n\treadonly headers?: HeadersInit;\n};\n\nexport function createTextHttpResponse({ status, text, headers }: TextHttpResponseOptions): Response {\n\tconst responseHeaders = createNoStoreHeaders(headers);\n\tresponseHeaders.set(\"Content-Type\",
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/http/httpHeaders.ts","../../src/http/textResponse.ts"],"sourcesContent":["export type NoStoreHeadersInit = HeadersInit | undefined;\n\nexport function createNoStoreHeaders(init?: NoStoreHeadersInit): Headers {\n\tconst headers = new Headers(init);\n\n\theaders.set(\"Cache-Control\", \"no-store, no-cache, must-revalidate, proxy-revalidate\");\n\theaders.set(\"Pragma\", \"no-cache\");\n\theaders.set(\"Expires\", \"0\");\n\n\treturn headers;\n}\n","import { MIME_TYPE_TEXT_PLAIN_UTF8 } from \"../file/mimeTypeConstants\";\n\nimport { createNoStoreHeaders } from \"./httpHeaders\";\n\nexport type TextHttpResponseOptions = {\n\treadonly status: number;\n\treadonly text: string;\n\treadonly headers?: HeadersInit;\n};\n\nexport function createTextHttpResponse({ status, text, headers }: TextHttpResponseOptions): Response {\n\tconst responseHeaders = createNoStoreHeaders(headers);\n\tresponseHeaders.set(\"Content-Type\", MIME_TYPE_TEXT_PLAIN_UTF8);\n\n\treturn new Response(text, {\n\t\tstatus,\n\t\theaders: responseHeaders\n\t});\n}\n"],"mappings":";;AAEA,SAAgB,EAAqB,GAAoC;CACxE,IAAM,IAAU,IAAI,QAAQ,CAAI;CAMhC,OAJA,EAAQ,IAAI,iBAAiB,uDAAuD,GACpF,EAAQ,IAAI,UAAU,UAAU,GAChC,EAAQ,IAAI,WAAW,GAAG,GAEnB;AACR;;;ACAA,SAAgB,EAAuB,EAAE,WAAQ,SAAM,cAA8C;CACpG,IAAM,IAAkB,EAAqB,CAAO;CAGpD,OAFA,EAAgB,IAAI,gBAAgB,CAAyB,GAEtD,IAAI,SAAS,GAAM;EACzB;EACA,SAAS;CACV,CAAC;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textResponse.d.ts","sourceRoot":"","sources":["../../src/http/textResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textResponse.d.ts","sourceRoot":"","sources":["../../src/http/textResponse.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,uBAAuB,GAAG;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,uBAAuB,GAAG,QAAQ,CAQnG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIndexedRecordsSchema.d.ts","sourceRoot":"","sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"createIndexedRecordsSchema.d.ts","sourceRoot":"","sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAiB5D;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAwDlI"}
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import { i as e, r as t } from "../chunks/isRecord-DXDTW-jA.js";
|
|
2
2
|
import { z as n } from "zod";
|
|
3
3
|
//#region src/indexed-records/createIndexedRecordsSchema.ts
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var r = "indexById", i = "custom";
|
|
5
|
+
function a(n) {
|
|
6
|
+
if (!e(n) || !t(n) || !Object.hasOwn(n, "items") || !Object.hasOwn(n, r)) return !1;
|
|
6
7
|
for (let e of Reflect.ownKeys(n)) {
|
|
7
8
|
let t = Object.getOwnPropertyDescriptor(n, e);
|
|
8
9
|
if (typeof e != "string" || !t?.enumerable || !("value" in t)) return !1;
|
|
9
10
|
}
|
|
10
11
|
return !0;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
return n.custom(
|
|
14
|
-
items:
|
|
13
|
+
function o({ itemsSchema: o, getId: s }) {
|
|
14
|
+
return n.custom(a, "Ожидалась структура индексированных записей без accessor и symbol.").pipe(n.strictObject({
|
|
15
|
+
items: o,
|
|
15
16
|
indexById: n.unknown()
|
|
16
|
-
})).transform((
|
|
17
|
-
if (!e(
|
|
18
|
-
code:
|
|
19
|
-
path: [
|
|
17
|
+
})).transform((a, o) => {
|
|
18
|
+
if (!e(a.indexById) || !t(a.indexById)) return o.addIssue({
|
|
19
|
+
code: i,
|
|
20
|
+
path: [r],
|
|
20
21
|
message: "Ожидался позиционный словарь записей."
|
|
21
22
|
}), n.NEVER;
|
|
22
|
-
let
|
|
23
|
-
for (let e of Reflect.ownKeys(
|
|
24
|
-
let t = Object.getOwnPropertyDescriptor(
|
|
25
|
-
if (typeof e != "string" || !t?.enumerable || !("value" in t) || typeof
|
|
26
|
-
code:
|
|
27
|
-
path: [
|
|
23
|
+
let c = Object.create(null), l = 0;
|
|
24
|
+
for (let e of Reflect.ownKeys(a.indexById)) {
|
|
25
|
+
let t = Object.getOwnPropertyDescriptor(a.indexById, e), u = t?.value;
|
|
26
|
+
if (typeof e != "string" || !t?.enumerable || !("value" in t) || typeof u != "number" || !Number.isSafeInteger(u) || u < 0 || u >= a.items.length || !Object.hasOwn(a.items, u) || s(a.items[u]) !== e) return o.addIssue({
|
|
27
|
+
code: i,
|
|
28
|
+
path: [r],
|
|
28
29
|
message: "Индекс не соответствует записям."
|
|
29
30
|
}), n.NEVER;
|
|
30
|
-
|
|
31
|
+
c[e] = u, l += 1;
|
|
31
32
|
}
|
|
32
|
-
return
|
|
33
|
-
items:
|
|
34
|
-
indexById: Object.freeze(
|
|
35
|
-
}) : (
|
|
36
|
-
code:
|
|
37
|
-
path: [
|
|
33
|
+
return l === a.items.length ? Object.freeze({
|
|
34
|
+
items: a.items,
|
|
35
|
+
indexById: Object.freeze(c)
|
|
36
|
+
}) : (o.addIssue({
|
|
37
|
+
code: i,
|
|
38
|
+
path: [r],
|
|
38
39
|
message: "Позиционный индекс неполон."
|
|
39
40
|
}), n.NEVER);
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
//#endregion
|
|
43
|
-
export {
|
|
44
|
+
export { o as createIndexedRecordsSchema };
|
|
44
45
|
|
|
45
46
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","names":[],"sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { isPlainObject, isRecord } from \"../validators/isRecord\";\n\nimport { type IndexedRecordsSchemaOptions } from \"./indexedRecordsSchemaTypes\";\nimport { type IndexedRecords } from \"./indexedRecordsTypes\";\n\n/** Не позволяет Zod прочитать accessor или проигнорировать symbol на wire-оболочке. */\nfunction hasIndexedRecordsWireDataProperties(value: unknown): value is Record<string, unknown> {\n\tif (!isRecord(value) || !isPlainObject(value)) return false;\n\tif (!Object.hasOwn(value, \"items\") || !Object.hasOwn(value,
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../src/indexed-records/createIndexedRecordsSchema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { isPlainObject, isRecord } from \"../validators/isRecord\";\n\nimport { type IndexedRecordsSchemaOptions } from \"./indexedRecordsSchemaTypes\";\nimport { type IndexedRecords } from \"./indexedRecordsTypes\";\n\n// Имена wire-полей и коды Zod сохраняются при разных причинах отказа одной схемы.\nconst INDEXED_RECORDS_INDEX_PROPERTY = \"indexById\";\nconst INDEXED_RECORDS_ISSUE_CUSTOM = \"custom\";\n\n/** Не позволяет Zod прочитать accessor или проигнорировать symbol на wire-оболочке. */\nfunction hasIndexedRecordsWireDataProperties(value: unknown): value is Record<string, unknown> {\n\tif (!isRecord(value) || !isPlainObject(value)) return false;\n\tif (!Object.hasOwn(value, \"items\") || !Object.hasOwn(value, INDEXED_RECORDS_INDEX_PROPERTY)) return false;\n\tfor (const key of Reflect.ownKeys(value)) {\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(value, key);\n\t\tif (typeof key !== \"string\" || !descriptor?.enumerable || !(\"value\" in descriptor)) return false;\n\t}\n\treturn true;\n}\n\n/**\n * Проверяет доставленный позиционный индекс, не восстанавливая его по items.\n * Предметная itemsSchema вызывается один раз и сохраняет свой порядок/ссылки;\n * она же обеспечивает неизменность массива, записей и вложенных значений.\n * Фабрика создаёт и замораживает только собственные оболочку и numeric index.\n */\nexport function createIndexedRecordsSchema<T>({ itemsSchema, getId }: IndexedRecordsSchemaOptions<T>): z.ZodType<IndexedRecords<T>> {\n\treturn z\n\t\t.custom<Record<string, unknown>>(\n\t\t\thasIndexedRecordsWireDataProperties,\n\t\t\t\"Ожидалась структура индексированных записей без accessor и symbol.\"\n\t\t)\n\t\t.pipe(z.strictObject({ items: itemsSchema, indexById: z.unknown() }))\n\t\t.transform((wire, context): IndexedRecords<T> => {\n\t\t\tif (!isRecord(wire.indexById) || !isPlainObject(wire.indexById)) {\n\t\t\t\tcontext.addIssue({\n\t\t\t\t\tcode: INDEXED_RECORDS_ISSUE_CUSTOM,\n\t\t\t\t\tpath: [INDEXED_RECORDS_INDEX_PROPERTY],\n\t\t\t\t\tmessage: \"Ожидался позиционный словарь записей.\"\n\t\t\t\t});\n\t\t\t\treturn z.NEVER;\n\t\t\t}\n\n\t\t\t// Проверка и копирование доставленных чисел происходят одним проходом.\n\t\t\t// z.record здесь не применяется: он удаляет собственный __proto__.\n\t\t\tconst indexById = Object.create(null) as Record<string, number>;\n\t\t\tlet entries = 0;\n\t\t\tfor (const id of Reflect.ownKeys(wire.indexById)) {\n\t\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(wire.indexById, id);\n\t\t\t\tconst position: unknown = descriptor?.value;\n\t\t\t\tif (\n\t\t\t\t\ttypeof id !== \"string\" ||\n\t\t\t\t\t!descriptor?.enumerable ||\n\t\t\t\t\t!(\"value\" in descriptor) ||\n\t\t\t\t\ttypeof position !== \"number\" ||\n\t\t\t\t\t!Number.isSafeInteger(position) ||\n\t\t\t\t\tposition < 0 ||\n\t\t\t\t\tposition >= wire.items.length ||\n\t\t\t\t\t!Object.hasOwn(wire.items, position) ||\n\t\t\t\t\tgetId(wire.items[position]) !== id\n\t\t\t\t) {\n\t\t\t\t\tcontext.addIssue({\n\t\t\t\t\t\tcode: INDEXED_RECORDS_ISSUE_CUSTOM,\n\t\t\t\t\t\tpath: [INDEXED_RECORDS_INDEX_PROPERTY],\n\t\t\t\t\t\tmessage: \"Индекс не соответствует записям.\"\n\t\t\t\t\t});\n\t\t\t\t\treturn z.NEVER;\n\t\t\t\t}\n\t\t\t\tindexById[id] = position;\n\t\t\t\tentries += 1;\n\t\t\t}\n\t\t\tif (entries !== wire.items.length) {\n\t\t\t\tcontext.addIssue({\n\t\t\t\t\tcode: INDEXED_RECORDS_ISSUE_CUSTOM,\n\t\t\t\t\tpath: [INDEXED_RECORDS_INDEX_PROPERTY],\n\t\t\t\t\tmessage: \"Позиционный индекс неполон.\"\n\t\t\t\t});\n\t\t\t\treturn z.NEVER;\n\t\t\t}\n\n\t\t\treturn Object.freeze({ items: wire.items, indexById: Object.freeze(indexById) });\n\t\t});\n}\n"],"mappings":";;;AAQA,IAAM,IAAiC,aACjC,IAA+B;AAGrC,SAAS,EAAoC,GAAkD;CAE9F,IADI,CAAC,EAAS,CAAK,KAAK,CAAC,EAAc,CAAK,KACxC,CAAC,OAAO,OAAO,GAAO,OAAO,KAAK,CAAC,OAAO,OAAO,GAAO,CAA8B,GAAG,OAAO;CACpG,KAAK,IAAM,KAAO,QAAQ,QAAQ,CAAK,GAAG;EACzC,IAAM,IAAa,OAAO,yBAAyB,GAAO,CAAG;EAC7D,IAAI,OAAO,KAAQ,YAAY,CAAC,GAAY,cAAc,EAAE,WAAW,IAAa,OAAO;CAC5F;CACA,OAAO;AACR;AAQA,SAAgB,EAA8B,EAAE,gBAAa,YAAuE;CACnI,OAAO,EACL,OACA,GACA,oEACD,CAAC,CACA,KAAK,EAAE,aAAa;EAAE,OAAO;EAAa,WAAW,EAAE,QAAQ;CAAE,CAAC,CAAC,CAAC,CACpE,WAAW,GAAM,MAA+B;EAChD,IAAI,CAAC,EAAS,EAAK,SAAS,KAAK,CAAC,EAAc,EAAK,SAAS,GAM7D,OALA,EAAQ,SAAS;GAChB,MAAM;GACN,MAAM,CAAC,CAA8B;GACrC,SAAS;EACV,CAAC,GACM,EAAE;EAKV,IAAM,IAAY,OAAO,OAAO,IAAI,GAChC,IAAU;EACd,KAAK,IAAM,KAAM,QAAQ,QAAQ,EAAK,SAAS,GAAG;GACjD,IAAM,IAAa,OAAO,yBAAyB,EAAK,WAAW,CAAE,GAC/D,IAAoB,GAAY;GACtC,IACC,OAAO,KAAO,YACd,CAAC,GAAY,cACb,EAAE,WAAW,MACb,OAAO,KAAa,YACpB,CAAC,OAAO,cAAc,CAAQ,KAC9B,IAAW,KACX,KAAY,EAAK,MAAM,UACvB,CAAC,OAAO,OAAO,EAAK,OAAO,CAAQ,KACnC,EAAM,EAAK,MAAM,EAAS,MAAM,GAOhC,OALA,EAAQ,SAAS;IAChB,MAAM;IACN,MAAM,CAAC,CAA8B;IACrC,SAAS;GACV,CAAC,GACM,EAAE;GAGV,AADA,EAAU,KAAM,GAChB,KAAW;EACZ;EAUA,OATI,MAAY,EAAK,MAAM,SASpB,OAAO,OAAO;GAAE,OAAO,EAAK;GAAO,WAAW,OAAO,OAAO,CAAS;EAAE,CAAC,KAR9E,EAAQ,SAAS;GAChB,MAAM;GACN,MAAM,CAAC,CAA8B;GACrC,SAAS;EACV,CAAC,GACM,EAAE;CAIX,CAAC;AACH"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Имена брейкпоинтов общие для типового контракта, responsive-значений и media store. */
|
|
2
|
+
export declare const BREAKPOINT_MOBILE = "mobile";
|
|
3
|
+
export declare const BREAKPOINT_TABLET = "tablet";
|
|
4
|
+
export declare const BREAKPOINT_LAPTOP = "laptop";
|
|
5
|
+
//# sourceMappingURL=breakpointConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpointConstants.d.ts","sourceRoot":"","sources":["../../src/media/breakpointConstants.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,iBAAiB,WAAW,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { type BREAKPOINT_MOBILE, type BREAKPOINT_TABLET, type BREAKPOINT_LAPTOP } from "./breakpointConstants";
|
|
1
2
|
export declare const BREAKPOINTS_EM: {
|
|
2
3
|
readonly mobileMax: number;
|
|
3
4
|
readonly tabletMin: number;
|
|
4
5
|
readonly tabletMax: number;
|
|
5
6
|
readonly laptopMin: number;
|
|
6
7
|
};
|
|
7
|
-
export type Breakpoint =
|
|
8
|
+
export type Breakpoint = typeof BREAKPOINT_MOBILE | typeof BREAKPOINT_TABLET | typeof BREAKPOINT_LAPTOP;
|
|
8
9
|
export type MediaMatches = Record<Breakpoint, boolean>;
|
|
9
10
|
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/media/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/media/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAK/G,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,iBAAiB,GAAG,OAAO,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AACxG,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNotificationTonePlayer.d.ts","sourceRoot":"","sources":["../../src/media/createNotificationTonePlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"createNotificationTonePlayer.d.ts","sourceRoot":"","sources":["../../src/media/createNotificationTonePlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAajG;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,GAAG,sBAAsB,CAmE3G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentFontSize.d.ts","sourceRoot":"","sources":["../../src/media/getCurrentFontSize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCurrentFontSize.d.ts","sourceRoot":"","sources":["../../src/media/getCurrentFontSize.ts"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAcvE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAezE;AAED,wBAAgB,gBAAgB,WAM/B"}
|
package/dist/media/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../chunks/media-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../chunks/media-imBOXWwa.js";
|
|
2
2
|
export { n as BREAKPOINTS_EM, u as createNotificationTonePlayer, c as getControlHeight, t as getCurrentFontSize, i as getCurrentLineHeight, s as isResponsiveMap, o as pxToEm, r as resolveProps, e as resolveResponsiveValue, l as useMatchMedia, a as useMediaQuery };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaQueryConstants.d.ts","sourceRoot":"","sources":["../../src/media/mediaQueryConstants.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/media/responsive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/media/responsive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC9B,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;CACX,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7E,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAK/E;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI;KAC5C,CAAC,IAAI,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,EAAE,UAAU,GAAG,CAAC,GAAG,SAAS,CAW9G;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,CAS/H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMatchMedia.d.ts","sourceRoot":"","sources":["../../src/media/useMatchMedia.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMatchMedia.d.ts","sourceRoot":"","sources":["../../src/media/useMatchMedia.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAInF;;;GAGG;AACH,KAAK,kBAAkB,GAAG;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,UAAU,CAAC;CAC7B,CAAC;AA2PF;;GAEG;AACH,wBAAgB,aAAa,uBAE5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/media/useMediaQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/media/useMediaQuery.ts"],"names":[],"mappings":"AAIA,KAAK,oBAAoB,GAAG;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAwBF;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,WAAmB,EAAE,GAAE,oBAAyB,WAM9F"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BaseMetaType } from "./metadataTypes";
|
|
2
|
+
/** Общая классификация контролов; не инициализирует схемы или состояние источника данных. */
|
|
3
|
+
export declare const BASE_META_TYPES: readonly ["string", "number", "boolean", "date"];
|
|
4
|
+
export declare const BASE_META_TYPE_LABELS: Readonly<Record<BaseMetaType, string>>;
|
|
5
|
+
export declare function isBaseMetaType(type: unknown): type is BaseMetaType;
|
|
6
|
+
export declare function resolveBaseTypeLabel(type: BaseMetaType): string;
|
|
7
|
+
//# sourceMappingURL=baseMetaTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseMetaTypes.d.ts","sourceRoot":"","sources":["../../src/metadata/baseMetaTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,6FAA6F;AAC7F,eAAO,MAAM,eAAe,kDAKiB,CAAC;AAI9C,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAKvE,CAAC;AAEH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAE/D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type BASE_META_TYPE_DATE, type BASE_META_TYPE_NUMBER, type SCALAR_ROLE_DIMENSION, type SCALAR_ROLE_MEASURE, type SCALAR_TYPE_BINARY, type SCALAR_TYPE_BOOLEAN, type SCALAR_TYPE_BYTE, type SCALAR_TYPE_DATETIME, type SCALAR_TYPE_DATETIME_OFFSET, type SCALAR_TYPE_DECIMAL, type SCALAR_TYPE_DOUBLE, type SCALAR_TYPE_FLOAT, type SCALAR_TYPE_GUID, type SCALAR_TYPE_INT, type SCALAR_TYPE_LONG, type SCALAR_TYPE_STRING, type SCALAR_TYPE_TIME } from "./scalarTypeConstants";
|
|
2
|
+
/**
|
|
3
|
+
* Внутренняя классификация скалярных значений таблиц, форм и экспорта. Здесь нет
|
|
4
|
+
* EDMX, литералов URL, Zod-схем и состояния OData: протокольные адаптеры зависят
|
|
5
|
+
* от этих типов, а общие сценарии не зависят от протокольной точки входа.
|
|
6
|
+
* Набор значений сохранён точно, поскольку он уже входит в опубликованные контракты.
|
|
7
|
+
*/
|
|
8
|
+
export type BaseMetaType = typeof SCALAR_TYPE_STRING | typeof BASE_META_TYPE_NUMBER | typeof SCALAR_TYPE_BOOLEAN | typeof BASE_META_TYPE_DATE;
|
|
9
|
+
export type BooleanMetaType = typeof SCALAR_TYPE_BOOLEAN;
|
|
10
|
+
export type NumericMetaType = typeof SCALAR_TYPE_BYTE | typeof SCALAR_TYPE_INT | typeof SCALAR_TYPE_LONG | typeof SCALAR_TYPE_FLOAT | typeof SCALAR_TYPE_DECIMAL | typeof SCALAR_TYPE_DOUBLE;
|
|
11
|
+
export type IntegerMetaType = Extract<NumericMetaType, typeof SCALAR_TYPE_BYTE | typeof SCALAR_TYPE_INT | typeof SCALAR_TYPE_LONG>;
|
|
12
|
+
export type DateMetaType = typeof SCALAR_TYPE_DATETIME | typeof SCALAR_TYPE_DATETIME_OFFSET | typeof SCALAR_TYPE_TIME;
|
|
13
|
+
export type StringMetaType = typeof SCALAR_TYPE_STRING | typeof SCALAR_TYPE_GUID | typeof SCALAR_TYPE_BINARY;
|
|
14
|
+
export type ScalarMetaType = BooleanMetaType | NumericMetaType | DateMetaType | StringMetaType;
|
|
15
|
+
/** Роль поля в аналитическом представлении не зависит от протокола получения данных. */
|
|
16
|
+
export type ColumnRole = typeof SCALAR_ROLE_MEASURE | typeof SCALAR_ROLE_DIMENSION;
|
|
17
|
+
//# sourceMappingURL=metadataTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadataTypes.d.ts","sourceRoot":"","sources":["../../src/metadata/metadataTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACvB,OAAO,kBAAkB,GAAG,OAAO,qBAAqB,GAAG,OAAO,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAEpH,MAAM,MAAM,eAAe,GAAG,OAAO,mBAAmB,CAAC;AACzD,MAAM,MAAM,eAAe,GACxB,OAAO,gBAAgB,GACvB,OAAO,eAAe,GACtB,OAAO,gBAAgB,GACvB,OAAO,iBAAiB,GACxB,OAAO,mBAAmB,GAC1B,OAAO,kBAAkB,CAAC;AAC7B,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,OAAO,gBAAgB,GAAG,OAAO,eAAe,GAAG,OAAO,gBAAgB,CAAC,CAAC;AACnI,MAAM,MAAM,YAAY,GAAG,OAAO,oBAAoB,GAAG,OAAO,2BAA2B,GAAG,OAAO,gBAAgB,CAAC;AACtH,MAAM,MAAM,cAAc,GAAG,OAAO,kBAAkB,GAAG,OAAO,gBAAgB,GAAG,OAAO,kBAAkB,CAAC;AAC7G,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;AAE/F,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG,OAAO,mBAAmB,GAAG,OAAO,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type BaseMetaType, type BooleanMetaType, type DateMetaType, type IntegerMetaType, type NumericMetaType, type ScalarMetaType } from "./metadataTypes";
|
|
2
|
+
/** Определяет базовый тип поля для UI и Excel без инициализации протокольных модулей. */
|
|
3
|
+
export declare function getBaseTypeFromScalarType<T extends ScalarMetaType>(type: T): BaseMetaType;
|
|
4
|
+
export declare function isScalarBooleanType(type: ScalarMetaType | undefined): type is BooleanMetaType;
|
|
5
|
+
export declare function isScalarNumericType(type: ScalarMetaType | undefined): type is NumericMetaType;
|
|
6
|
+
export declare function isScalarIntegerType(type: ScalarMetaType | undefined): type is IntegerMetaType;
|
|
7
|
+
export declare function isScalarDateType(type: ScalarMetaType | undefined): type is DateMetaType;
|
|
8
|
+
//# sourceMappingURL=scalarTypeClassification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalarTypeClassification.d.ts","sourceRoot":"","sources":["../../src/metadata/scalarTypeClassification.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,MAAM,iBAAiB,CAAC;AAiBzB,yFAAyF;AACzF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,CAAC,GAAG,YAAY,CAKzF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAE7F;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAS7F;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,eAAe,CAE7F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,IAAI,YAAY,CAEvF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Внутренние значения общей метамодели, независимые от OData и конкретных UI. */
|
|
2
|
+
export declare const SCALAR_TYPE_STRING = "string";
|
|
3
|
+
export declare const SCALAR_TYPE_BOOLEAN = "boolean";
|
|
4
|
+
export declare const SCALAR_TYPE_BYTE = "byte";
|
|
5
|
+
export declare const SCALAR_TYPE_INT = "int";
|
|
6
|
+
export declare const SCALAR_TYPE_LONG = "long";
|
|
7
|
+
export declare const SCALAR_TYPE_FLOAT = "float";
|
|
8
|
+
export declare const SCALAR_TYPE_DECIMAL = "decimal";
|
|
9
|
+
export declare const SCALAR_TYPE_DOUBLE = "double";
|
|
10
|
+
export declare const SCALAR_TYPE_DATETIME = "datetime";
|
|
11
|
+
export declare const SCALAR_TYPE_DATETIME_OFFSET = "datetimeOffset";
|
|
12
|
+
export declare const SCALAR_TYPE_TIME = "time";
|
|
13
|
+
export declare const SCALAR_TYPE_GUID = "guid";
|
|
14
|
+
export declare const SCALAR_TYPE_BINARY = "binary";
|
|
15
|
+
/** Базовая классификация объединяет конкретные скалярные типы для контролов. */
|
|
16
|
+
export declare const BASE_META_TYPE_NUMBER = "number";
|
|
17
|
+
export declare const BASE_META_TYPE_DATE = "date";
|
|
18
|
+
/** Аналитическая роль поля сохраняется общей для таблиц и протокольных адаптеров. */
|
|
19
|
+
export declare const SCALAR_ROLE_MEASURE = "measure";
|
|
20
|
+
export declare const SCALAR_ROLE_DIMENSION = "dimension";
|
|
21
|
+
//# sourceMappingURL=scalarTypeConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalarTypeConstants.d.ts","sourceRoot":"","sources":["../../src/metadata/scalarTypeConstants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,iBAAiB,UAAU,CAAC;AACzC,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAC/C,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAC5D,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,qBAAqB,cAAc,CAAC"}
|
|
@@ -1,133 +1,133 @@
|
|
|
1
1
|
import { createStore as e } from "zustand";
|
|
2
|
-
//#region src/notifications/
|
|
3
|
-
var t =
|
|
4
|
-
|
|
5
|
-
}),
|
|
6
|
-
if (!
|
|
7
|
-
return
|
|
8
|
-
},
|
|
9
|
-
push: (e) =>
|
|
10
|
-
upsert: (e) =>
|
|
11
|
-
update: (e, t) =>
|
|
12
|
-
dismiss: (e) =>
|
|
13
|
-
clear: () =>
|
|
14
|
-
clearHistory: () =>
|
|
15
|
-
success: (e, t) =>
|
|
16
|
-
type:
|
|
2
|
+
//#region src/notifications/notificationTypeConstants.ts
|
|
3
|
+
var t = "error", n = "warning", r = "info", i = "success", a = null, o = 2500, s = 5e3, c = (e) => (a = e, () => {
|
|
4
|
+
a === e && (a = null);
|
|
5
|
+
}), l = () => {
|
|
6
|
+
if (!a) throw Error("Notifications store is not bound. Wrap app with NotificationsProvider.");
|
|
7
|
+
return a;
|
|
8
|
+
}, u = Object.freeze({
|
|
9
|
+
push: (e) => l().getState().actions.push(e),
|
|
10
|
+
upsert: (e) => l().getState().actions.upsert(e),
|
|
11
|
+
update: (e, t) => l().getState().actions.update(e, t),
|
|
12
|
+
dismiss: (e) => l().getState().actions.dismiss(e),
|
|
13
|
+
clear: () => l().getState().actions.clear(),
|
|
14
|
+
clearHistory: () => l().getState().actions.clearHistory(),
|
|
15
|
+
success: (e, t) => l().getState().actions.push({
|
|
16
|
+
type: i,
|
|
17
17
|
message: e,
|
|
18
18
|
...t
|
|
19
19
|
}),
|
|
20
|
-
info: (e, t) =>
|
|
21
|
-
type:
|
|
20
|
+
info: (e, t) => l().getState().actions.push({
|
|
21
|
+
type: r,
|
|
22
22
|
message: e,
|
|
23
23
|
...t
|
|
24
24
|
}),
|
|
25
|
-
warning: (e, t) =>
|
|
26
|
-
type:
|
|
25
|
+
warning: (e, t) => l().getState().actions.push({
|
|
26
|
+
type: n,
|
|
27
27
|
message: e,
|
|
28
28
|
...t
|
|
29
29
|
}),
|
|
30
|
-
error: (e,
|
|
31
|
-
type:
|
|
30
|
+
error: (e, n) => l().getState().actions.push({
|
|
31
|
+
type: t,
|
|
32
32
|
message: e,
|
|
33
|
-
...
|
|
33
|
+
...n
|
|
34
34
|
}),
|
|
35
|
-
progress: (e,
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
id:
|
|
39
|
-
type:
|
|
40
|
-
title:
|
|
35
|
+
progress: (e, n) => {
|
|
36
|
+
let a = l(), c = n?.id;
|
|
37
|
+
c && a.getState().actions.upsert({
|
|
38
|
+
id: c,
|
|
39
|
+
type: r,
|
|
40
|
+
title: n?.title,
|
|
41
41
|
message: e,
|
|
42
42
|
dismissible: !1
|
|
43
43
|
});
|
|
44
|
-
let
|
|
44
|
+
let d = c ?? a.getState().actions.push({
|
|
45
45
|
type: "info",
|
|
46
|
-
title:
|
|
46
|
+
title: n?.title,
|
|
47
47
|
message: e,
|
|
48
48
|
dismissible: !1
|
|
49
49
|
});
|
|
50
50
|
return {
|
|
51
|
-
id:
|
|
52
|
-
update: (e) =>
|
|
53
|
-
success: (e, t =
|
|
54
|
-
type:
|
|
51
|
+
id: d,
|
|
52
|
+
update: (e) => u.update(d, { message: e }),
|
|
53
|
+
success: (e, t = o) => u.update(d, {
|
|
54
|
+
type: i,
|
|
55
55
|
message: e,
|
|
56
56
|
dismissible: !0,
|
|
57
57
|
ttlMs: t
|
|
58
58
|
}),
|
|
59
|
-
error: (e,
|
|
60
|
-
type:
|
|
59
|
+
error: (e, n = s) => u.update(d, {
|
|
60
|
+
type: t,
|
|
61
61
|
message: e,
|
|
62
62
|
dismissible: !0,
|
|
63
|
-
ttlMs:
|
|
63
|
+
ttlMs: n
|
|
64
64
|
}),
|
|
65
|
-
dismiss: () =>
|
|
65
|
+
dismiss: () => u.dismiss(d)
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
69
|
-
function
|
|
68
|
+
}), d = 36, f = () => `${Date.now().toString(d)}-${Math.random().toString(d).slice(2, 9)}`, p = 6, m = 1e4;
|
|
69
|
+
function h() {
|
|
70
70
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
71
71
|
let n = t.get(e);
|
|
72
72
|
n && (window.clearTimeout(n), t.delete(e));
|
|
73
|
-
}, r = (e, r, i =
|
|
73
|
+
}, r = (e, r, i = m) => {
|
|
74
74
|
if (n(r), i <= 0) return;
|
|
75
75
|
let a = window.setTimeout(() => {
|
|
76
76
|
e.getState().actions.dismiss(r);
|
|
77
77
|
}, i);
|
|
78
78
|
t.set(r, a);
|
|
79
|
-
}, i = e()((e,
|
|
79
|
+
}, i = e()((e, a) => ({
|
|
80
80
|
items: [],
|
|
81
81
|
history: [],
|
|
82
82
|
actions: {
|
|
83
83
|
push: (t) => {
|
|
84
|
-
let
|
|
85
|
-
id:
|
|
84
|
+
let o = t.id ?? f(), s = Date.now(), c = {
|
|
85
|
+
id: o,
|
|
86
86
|
type: t.type,
|
|
87
87
|
title: t.title,
|
|
88
88
|
message: t.message,
|
|
89
|
-
createdAt:
|
|
89
|
+
createdAt: s,
|
|
90
90
|
ttlMs: t.ttlMs,
|
|
91
91
|
dismissible: t.dismissible ?? !0,
|
|
92
92
|
actions: t.actions,
|
|
93
93
|
...t.retainInHistory === void 0 ? {} : { retainInHistory: t.retainInHistory }
|
|
94
|
-
},
|
|
95
|
-
return
|
|
96
|
-
|
|
94
|
+
}, l = a().items, u = [c, ...l.filter((e) => e.id !== o)].slice(0, p), d = new Set(u.map((e) => e.id));
|
|
95
|
+
return l.forEach((e) => {
|
|
96
|
+
d.has(e.id) || n(e.id);
|
|
97
97
|
}), e((e) => {
|
|
98
98
|
let t = e.history;
|
|
99
|
-
return
|
|
100
|
-
items:
|
|
99
|
+
return c.retainInHistory === !1 ? e.history.some((e) => e.id === o) && (t = e.history.filter((e) => e.id !== o)) : t = [c, ...e.history.filter((e) => e.id !== o)], {
|
|
100
|
+
items: u,
|
|
101
101
|
history: t
|
|
102
102
|
};
|
|
103
|
-
}), r(i,
|
|
103
|
+
}), r(i, o, c.ttlMs), o;
|
|
104
104
|
},
|
|
105
105
|
update: (t, n) => {
|
|
106
|
-
let
|
|
107
|
-
if (!
|
|
108
|
-
let { retainInHistory:
|
|
109
|
-
...
|
|
106
|
+
let o = a().items.find((e) => e.id === t);
|
|
107
|
+
if (!o) return !1;
|
|
108
|
+
let { retainInHistory: s, ...c } = n, l = {
|
|
109
|
+
...o,
|
|
110
110
|
...c,
|
|
111
|
-
...
|
|
112
|
-
id:
|
|
113
|
-
createdAt:
|
|
111
|
+
...s === void 0 ? {} : { retainInHistory: s },
|
|
112
|
+
id: o.id,
|
|
113
|
+
createdAt: o.createdAt
|
|
114
114
|
};
|
|
115
115
|
return e((e) => {
|
|
116
116
|
let n = e.history.some((e) => e.id === t), r = e.history;
|
|
117
|
-
return l.retainInHistory === !1 ? n && (r = e.history.filter((e) => e.id !== t)) : n ? r = e.history.map((e) => e.id === t ? l : e) :
|
|
117
|
+
return l.retainInHistory === !1 ? n && (r = e.history.filter((e) => e.id !== t)) : n ? r = e.history.map((e) => e.id === t ? l : e) : s === !0 && (r = [l, ...e.history]), {
|
|
118
118
|
items: e.items.map((e) => e.id === t ? l : e),
|
|
119
119
|
history: r
|
|
120
120
|
};
|
|
121
121
|
}), "ttlMs" in n && r(i, t, l.ttlMs), !0;
|
|
122
122
|
},
|
|
123
|
-
upsert: (e) =>
|
|
123
|
+
upsert: (e) => a().actions.update(e.id, {
|
|
124
124
|
type: e.type,
|
|
125
125
|
title: e.title,
|
|
126
126
|
message: e.message,
|
|
127
127
|
ttlMs: e.ttlMs,
|
|
128
128
|
dismissible: e.dismissible,
|
|
129
129
|
...e.retainInHistory === void 0 ? {} : { retainInHistory: e.retainInHistory }
|
|
130
|
-
}) ? e.id :
|
|
130
|
+
}) ? e.id : a().actions.push(e),
|
|
131
131
|
dismiss: (t) => {
|
|
132
132
|
n(t), e((e) => ({ items: e.items.filter((e) => e.id !== t) }));
|
|
133
133
|
},
|
|
@@ -142,6 +142,6 @@ function s() {
|
|
|
142
142
|
return i;
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
|
-
export {
|
|
145
|
+
export { c as bindNotifications, h as createNotificationsStore, u as notify };
|
|
146
146
|
|
|
147
147
|
//# sourceMappingURL=index.js.map
|