@ryuzaki13/react-foundation-lib 2.31.1 → 2.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -114
- 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-rxriDRPk.js → formatters-CO40zvVB.js} +496 -497
- 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 +117 -116
- 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.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 -6
- 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 +24 -21
- 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.map +1 -1
- package/dist/metadata/metadataTypes.d.ts +8 -7
- package/dist/metadata/metadataTypes.d.ts.map +1 -1
- package/dist/metadata/scalarTypeClassification.d.ts.map +1 -1
- 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/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.map +1 -1
- package/dist/odata-service/index.js +439 -433
- package/dist/odata-service/index.js.map +1 -1
- 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 +5 -3
- package/dist/odata-service/types.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/query-client/README.mdx +4 -4
- package/dist/chunks/dom-BK22UmgF.js.map +0 -1
- package/dist/chunks/formatDate-BUvpRI7H.js +0 -133
- package/dist/chunks/formatDate-BUvpRI7H.js.map +0 -1
- package/dist/chunks/formatters-rxriDRPk.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/query-client-CVRfrYZM.js.map +0 -1
- package/dist/chunks/scalarTypeClassification-BZcFmIyR.js +0 -764
- package/dist/chunks/scalarTypeClassification-BZcFmIyR.js.map +0 -1
- package/dist/chunks/uuid-CUJPAbRY.js.map +0 -1
- package/dist/chunks/validate-DsUR-bFF.js +0 -608
- package/dist/chunks/validate-DsUR-bFF.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,764 +0,0 @@
|
|
|
1
|
-
//#region src/formatters/number/parseNumber.ts
|
|
2
|
-
function e(e) {
|
|
3
|
-
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
|
|
4
|
-
if (typeof e != "string") return;
|
|
5
|
-
let t = e.trim();
|
|
6
|
-
if (!t) return;
|
|
7
|
-
let n = Number(t);
|
|
8
|
-
if (Number.isFinite(n)) return n;
|
|
9
|
-
let r = "";
|
|
10
|
-
for (let e = 0; e < t.length; e++) {
|
|
11
|
-
let n = t.charCodeAt(e);
|
|
12
|
-
n !== 32 && n !== 160 && n !== 8239 && n !== 39 && (r += t[e]);
|
|
13
|
-
}
|
|
14
|
-
let i = r.indexOf(",") !== -1, a = r.indexOf(".") !== -1;
|
|
15
|
-
i && a ? r = r.replace(/,/g, "") : i && (r = r.replace(/,/g, "."));
|
|
16
|
-
let o = Number(r);
|
|
17
|
-
return Number.isFinite(o) ? o : void 0;
|
|
18
|
-
}
|
|
19
|
-
function t(t) {
|
|
20
|
-
return e(t) ?? 0;
|
|
21
|
-
}
|
|
22
|
-
function n(t) {
|
|
23
|
-
let n = e(t);
|
|
24
|
-
return n ? n > 0 : !1;
|
|
25
|
-
}
|
|
26
|
-
function r(t) {
|
|
27
|
-
let n = e(t);
|
|
28
|
-
if (!(n === void 0 || !Number.isInteger(n) || n <= 0)) return n;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/formatters/date/pattern.ts
|
|
32
|
-
var i = Object.freeze([
|
|
33
|
-
"dd",
|
|
34
|
-
"MM",
|
|
35
|
-
"yyyy",
|
|
36
|
-
"yy"
|
|
37
|
-
]), a = Object.freeze([
|
|
38
|
-
"HH",
|
|
39
|
-
"mm",
|
|
40
|
-
"ss"
|
|
41
|
-
]), o = Object.freeze([...i, ...a]), s = /(yyyy|yy|MM|dd|HH|mm|ss)/g, c = new Set(o), l = Object.freeze({
|
|
42
|
-
day: new Set(o),
|
|
43
|
-
month: /* @__PURE__ */ new Set([
|
|
44
|
-
"MM",
|
|
45
|
-
"yyyy",
|
|
46
|
-
"yy"
|
|
47
|
-
]),
|
|
48
|
-
year: /* @__PURE__ */ new Set(["yyyy", "yy"])
|
|
49
|
-
});
|
|
50
|
-
function u(e) {
|
|
51
|
-
return c.has(e);
|
|
52
|
-
}
|
|
53
|
-
function d(e, t) {
|
|
54
|
-
return t.some((t) => e.includes(t));
|
|
55
|
-
}
|
|
56
|
-
function f(e) {
|
|
57
|
-
return s.lastIndex = 0, s.test(e);
|
|
58
|
-
}
|
|
59
|
-
function p(e) {
|
|
60
|
-
return l[e];
|
|
61
|
-
}
|
|
62
|
-
function m(e, t) {
|
|
63
|
-
if (t === "day") return e;
|
|
64
|
-
let n = p(t), r = [], i = "", a = !1, o = 0, c = 0, l;
|
|
65
|
-
for (s.lastIndex = 0; l = s.exec(e);) {
|
|
66
|
-
let t = e.slice(c, l.index), s = l[0];
|
|
67
|
-
a && (i += t), n.has(s) && (a && r.push(i), r.push(s), i = "", a = !0, o += 1), c = l.index + s.length;
|
|
68
|
-
}
|
|
69
|
-
return o === 0 ? e : r.join("");
|
|
70
|
-
}
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region src/formatters/date/presets.ts
|
|
73
|
-
var h = "ru-RU", g = Object.freeze([
|
|
74
|
-
"short",
|
|
75
|
-
"medium",
|
|
76
|
-
"long"
|
|
77
|
-
]), _ = Object.freeze([
|
|
78
|
-
"day",
|
|
79
|
-
"month",
|
|
80
|
-
"year"
|
|
81
|
-
]), v = {
|
|
82
|
-
locale: h,
|
|
83
|
-
intlOptions: {
|
|
84
|
-
day: "2-digit",
|
|
85
|
-
month: "2-digit",
|
|
86
|
-
year: "numeric"
|
|
87
|
-
},
|
|
88
|
-
invalidFallback: ""
|
|
89
|
-
}, y = Object.freeze({
|
|
90
|
-
date: "date",
|
|
91
|
-
dateShort: "date-short",
|
|
92
|
-
dateMedium: "date-medium",
|
|
93
|
-
dateLong: "date-long",
|
|
94
|
-
monthShort: "month-short",
|
|
95
|
-
monthMedium: "month-medium",
|
|
96
|
-
monthLong: "month-long",
|
|
97
|
-
monthYearMedium: "month-year-medium",
|
|
98
|
-
monthYearLong: "month-year-long",
|
|
99
|
-
datetime: "datetime",
|
|
100
|
-
datetimeSeconds: "datetime-seconds",
|
|
101
|
-
datetimeShort: "datetime-short",
|
|
102
|
-
datetimeMedium: "datetime-medium",
|
|
103
|
-
datetimeLong: "datetime-long",
|
|
104
|
-
time: "time",
|
|
105
|
-
timeSeconds: "time-seconds",
|
|
106
|
-
timeShort: "time-short",
|
|
107
|
-
timeMedium: "time-medium",
|
|
108
|
-
timeLong: "time-long",
|
|
109
|
-
odataDate: "odata-date",
|
|
110
|
-
odataDatetime: "odata-datetime",
|
|
111
|
-
abapDatetime: "abap-datetime",
|
|
112
|
-
abapDate: "abap-date",
|
|
113
|
-
abapMonth: "abap-month",
|
|
114
|
-
abapYear: "abap-year"
|
|
115
|
-
}), b = Object.freeze({
|
|
116
|
-
short: y.dateShort,
|
|
117
|
-
medium: y.dateMedium,
|
|
118
|
-
long: y.dateLong
|
|
119
|
-
}), x = /* @__PURE__ */ new Map(), ee = [
|
|
120
|
-
{
|
|
121
|
-
name: y.date,
|
|
122
|
-
intlOptions: {
|
|
123
|
-
day: "2-digit",
|
|
124
|
-
month: "2-digit",
|
|
125
|
-
year: "numeric"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: y.datetime,
|
|
130
|
-
intlDateOptions: {
|
|
131
|
-
day: "2-digit",
|
|
132
|
-
month: "2-digit",
|
|
133
|
-
year: "numeric"
|
|
134
|
-
},
|
|
135
|
-
intlTimeOptions: {
|
|
136
|
-
hour: "2-digit",
|
|
137
|
-
minute: "2-digit",
|
|
138
|
-
hourCycle: "h23"
|
|
139
|
-
},
|
|
140
|
-
intlJoiner: " "
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: y.datetimeSeconds,
|
|
144
|
-
intlDateOptions: {
|
|
145
|
-
day: "2-digit",
|
|
146
|
-
month: "2-digit",
|
|
147
|
-
year: "numeric"
|
|
148
|
-
},
|
|
149
|
-
intlTimeOptions: {
|
|
150
|
-
hour: "2-digit",
|
|
151
|
-
minute: "2-digit",
|
|
152
|
-
second: "2-digit",
|
|
153
|
-
hourCycle: "h23"
|
|
154
|
-
},
|
|
155
|
-
intlJoiner: " "
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: y.time,
|
|
159
|
-
intlOptions: {
|
|
160
|
-
hour: "2-digit",
|
|
161
|
-
minute: "2-digit",
|
|
162
|
-
hourCycle: "h23"
|
|
163
|
-
},
|
|
164
|
-
durationPattern: "HH:mm"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
name: y.timeSeconds,
|
|
168
|
-
intlOptions: {
|
|
169
|
-
hour: "2-digit",
|
|
170
|
-
minute: "2-digit",
|
|
171
|
-
second: "2-digit",
|
|
172
|
-
hourCycle: "h23"
|
|
173
|
-
},
|
|
174
|
-
durationPattern: "HH:mm:ss"
|
|
175
|
-
},
|
|
176
|
-
...g.map((e) => ({
|
|
177
|
-
name: `date-${e}`,
|
|
178
|
-
intlOptions: w(e)
|
|
179
|
-
})),
|
|
180
|
-
...g.map((e) => ({
|
|
181
|
-
name: `month-${e}`,
|
|
182
|
-
intlOptions: ne(e)
|
|
183
|
-
})),
|
|
184
|
-
{
|
|
185
|
-
name: y.monthYearMedium,
|
|
186
|
-
intlOptions: {
|
|
187
|
-
month: "short",
|
|
188
|
-
year: "numeric"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: y.monthYearLong,
|
|
193
|
-
intlOptions: {
|
|
194
|
-
month: "long",
|
|
195
|
-
year: "numeric"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
...g.map((e) => ({
|
|
199
|
-
name: `time-${e}`,
|
|
200
|
-
intlOptions: T(e),
|
|
201
|
-
durationPattern: e === "short" ? "HH:mm" : "HH:mm:ss"
|
|
202
|
-
})),
|
|
203
|
-
...g.map((e) => ({
|
|
204
|
-
name: `datetime-${e}`,
|
|
205
|
-
intlDateOptions: w(e),
|
|
206
|
-
intlTimeOptions: T(e),
|
|
207
|
-
intlJoiner: ", "
|
|
208
|
-
})),
|
|
209
|
-
{
|
|
210
|
-
name: y.odataDate,
|
|
211
|
-
pattern: "yyyy-MM-dd"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: y.odataDatetime,
|
|
215
|
-
pattern: "yyyy-MM-ddTHH:mm:ss"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: y.abapDatetime,
|
|
219
|
-
pattern: "yyyyMMddHHmmss"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: y.abapDate,
|
|
223
|
-
pattern: "yyyyMMdd"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: y.abapMonth,
|
|
227
|
-
pattern: "yyyyMM"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: y.abapYear,
|
|
231
|
-
pattern: "yyyy"
|
|
232
|
-
}
|
|
233
|
-
], te = /* @__PURE__ */ new Map([[y.monthYearMedium, "short"], [y.monthYearLong, "long"]]), S = /* @__PURE__ */ new Map();
|
|
234
|
-
function C(e, t = 2) {
|
|
235
|
-
return String(e).padStart(t, "0");
|
|
236
|
-
}
|
|
237
|
-
function w(e, t = "day") {
|
|
238
|
-
return t === "year" ? { year: "numeric" } : t === "month" ? e === "short" ? {
|
|
239
|
-
month: "2-digit",
|
|
240
|
-
year: "numeric"
|
|
241
|
-
} : e === "medium" ? {
|
|
242
|
-
month: "short",
|
|
243
|
-
year: "numeric"
|
|
244
|
-
} : {
|
|
245
|
-
month: "long",
|
|
246
|
-
year: "numeric"
|
|
247
|
-
} : e === "short" ? {
|
|
248
|
-
day: "2-digit",
|
|
249
|
-
month: "2-digit",
|
|
250
|
-
year: "numeric"
|
|
251
|
-
} : e === "medium" ? {
|
|
252
|
-
day: "numeric",
|
|
253
|
-
month: "short",
|
|
254
|
-
year: "numeric"
|
|
255
|
-
} : {
|
|
256
|
-
day: "numeric",
|
|
257
|
-
month: "long",
|
|
258
|
-
year: "numeric"
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
function ne(e) {
|
|
262
|
-
return e === "short" ? {
|
|
263
|
-
day: "2-digit",
|
|
264
|
-
month: "2-digit"
|
|
265
|
-
} : e === "medium" ? {
|
|
266
|
-
day: "numeric",
|
|
267
|
-
month: "short"
|
|
268
|
-
} : {
|
|
269
|
-
day: "numeric",
|
|
270
|
-
month: "long"
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
function T(e) {
|
|
274
|
-
return e === "short" ? {
|
|
275
|
-
hour: "2-digit",
|
|
276
|
-
minute: "2-digit",
|
|
277
|
-
hourCycle: "h23"
|
|
278
|
-
} : {
|
|
279
|
-
hour: "2-digit",
|
|
280
|
-
minute: "2-digit",
|
|
281
|
-
second: "2-digit",
|
|
282
|
-
hourCycle: "h23"
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
function E(e) {
|
|
286
|
-
let { timeZone: t, timeZoneName: n, ...r } = e;
|
|
287
|
-
return r;
|
|
288
|
-
}
|
|
289
|
-
function re(e) {
|
|
290
|
-
return !!(e.dateStyle || e.year || e.month || e.day);
|
|
291
|
-
}
|
|
292
|
-
function D(e, t) {
|
|
293
|
-
let n = E(e);
|
|
294
|
-
return t === "day" || !re(n) ? n : n.dateStyle ? w(n.dateStyle === "short" || n.dateStyle === "medium" ? n.dateStyle : "long", t) : t === "year" ? { year: n.year ?? "numeric" } : {
|
|
295
|
-
month: n.month ?? "2-digit",
|
|
296
|
-
year: n.year ?? "numeric"
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
function O(e, t) {
|
|
300
|
-
let n = E(t), r = /* @__PURE__ */ new Map();
|
|
301
|
-
if (n.timeStyle) {
|
|
302
|
-
let t = T(n.timeStyle === "short" ? "short" : "medium");
|
|
303
|
-
if (n.dateStyle) {
|
|
304
|
-
let i = new Intl.DateTimeFormat(e, { dateStyle: n.dateStyle }), a = new Intl.DateTimeFormat(e, t);
|
|
305
|
-
return (t, o = "day") => {
|
|
306
|
-
if (o === "day") return `${i.format(t)}, ${a.format(t)}`;
|
|
307
|
-
let s = D({ dateStyle: n.dateStyle }, o), c = r.get(o);
|
|
308
|
-
return c || (c = new Intl.DateTimeFormat(e, s), r.set(o, c)), c.format(t);
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
return new Intl.DateTimeFormat(e, t).format;
|
|
312
|
-
}
|
|
313
|
-
let i = new Intl.DateTimeFormat(e, n);
|
|
314
|
-
return (t, a = "day") => {
|
|
315
|
-
if (a === "day") return i.format(t);
|
|
316
|
-
let o = r.get(a);
|
|
317
|
-
return o || (o = new Intl.DateTimeFormat(e, D(n, a)), r.set(a, o)), o.format(t);
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function ie(e, t) {
|
|
321
|
-
let n = String(t.getFullYear());
|
|
322
|
-
switch (e) {
|
|
323
|
-
case "yyyy": return n;
|
|
324
|
-
case "yy": return n.slice(-2);
|
|
325
|
-
case "MM": return C(t.getMonth() + 1);
|
|
326
|
-
case "dd": return C(t.getDate());
|
|
327
|
-
case "HH": return C(t.getHours());
|
|
328
|
-
case "mm": return C(t.getMinutes());
|
|
329
|
-
case "ss": return C(t.getSeconds());
|
|
330
|
-
default: return e;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
function ae(e) {
|
|
334
|
-
switch (e) {
|
|
335
|
-
case "yyyyMMdd": return (e) => `${e.getFullYear()}${C(e.getMonth() + 1)}${C(e.getDate())}`;
|
|
336
|
-
case "yyyyMMddHHmmss": return (e) => `${e.getFullYear()}${C(e.getMonth() + 1)}${C(e.getDate())}${C(e.getHours())}${C(e.getMinutes())}${C(e.getSeconds())}`;
|
|
337
|
-
case "yyyy-MM-dd": return (e) => `${e.getFullYear()}-${C(e.getMonth() + 1)}-${C(e.getDate())}`;
|
|
338
|
-
case "yyyy-MM-ddTHH:mm:ss": return (e) => `${e.getFullYear()}-${C(e.getMonth() + 1)}-${C(e.getDate())}T${C(e.getHours())}:${C(e.getMinutes())}:${C(e.getSeconds())}`;
|
|
339
|
-
default: return se(e);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
function oe(e) {
|
|
343
|
-
let t = /* @__PURE__ */ new Map();
|
|
344
|
-
return (n, r = "day") => {
|
|
345
|
-
let i = t.get(r);
|
|
346
|
-
return i || (i = ae(m(e, r)), t.set(r, i)), i(n, "day");
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function se(e) {
|
|
350
|
-
let t = [], n = 0, r;
|
|
351
|
-
for (s.lastIndex = 0; r = s.exec(e);) r.index > n && t.push(e.slice(n, r.index)), t.push(r[0]), n = r.index + r[0].length;
|
|
352
|
-
return n < e.length && t.push(e.slice(n)), (e) => {
|
|
353
|
-
let n = "";
|
|
354
|
-
for (let r of t) n += u(r) ? ie(r, e) : r;
|
|
355
|
-
return n;
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
function ce(e, t, n) {
|
|
359
|
-
if (d(t, i) || !d(t, a)) return n;
|
|
360
|
-
let r = e < 0 ? "-" : "", o = Math.trunc(Math.abs(e) / 1e3), s = Math.trunc(o / 3600), c = Math.trunc(o % 3600 / 60), l = o % 60;
|
|
361
|
-
return t === "HH:mm" ? `${r}${C(s)}:${C(c)}` : t === "HH:mm:ss" ? `${r}${C(s)}:${C(c)}:${C(l)}` : r + t.replaceAll("HH", C(s)).replaceAll("mm", C(c)).replaceAll("ss", C(l));
|
|
362
|
-
}
|
|
363
|
-
function k(e) {
|
|
364
|
-
let t = {
|
|
365
|
-
...v,
|
|
366
|
-
...e
|
|
367
|
-
}, n = le(t), r = t.durationPattern ?? t.pattern, i = {
|
|
368
|
-
...t,
|
|
369
|
-
formatDateTime: n
|
|
370
|
-
};
|
|
371
|
-
return r && (i.formatDuration = (e, t) => ce(e, r, t)), i;
|
|
372
|
-
}
|
|
373
|
-
function le(e) {
|
|
374
|
-
if (e.pattern) return oe(e.pattern);
|
|
375
|
-
if (e.intlDateOptions && e.intlTimeOptions) {
|
|
376
|
-
let t = O(e.locale, e.intlDateOptions), n = O(e.locale, e.intlTimeOptions), r = e.intlJoiner ?? " ";
|
|
377
|
-
return (e, i = "day") => i === "day" ? `${t(e)}${r}${n(e)}` : t(e, i);
|
|
378
|
-
}
|
|
379
|
-
return O(e.locale, e.intlOptions ?? v.intlOptions);
|
|
380
|
-
}
|
|
381
|
-
function ue(e, t) {
|
|
382
|
-
let n = new Intl.DateTimeFormat(e, t === "short" ? {
|
|
383
|
-
day: "numeric",
|
|
384
|
-
month: t,
|
|
385
|
-
year: "numeric"
|
|
386
|
-
} : {
|
|
387
|
-
month: t,
|
|
388
|
-
year: "numeric"
|
|
389
|
-
}), r = new Intl.DateTimeFormat(e, { month: "long" }), i = new Intl.DateTimeFormat(e, { year: "numeric" });
|
|
390
|
-
return (e, a = "day") => {
|
|
391
|
-
let o = (a === "year" ? i : n).formatToParts(e), s = o.find((e) => e.type === "year")?.value ?? "";
|
|
392
|
-
if (a === "year") return s;
|
|
393
|
-
let c = o.find((e) => e.type === "month")?.value ?? "";
|
|
394
|
-
return `${t === "short" && !c.endsWith(".") ? r.formatToParts(e).find((e) => e.type === "month")?.value ?? c : c} ${s}`;
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
function de(e) {
|
|
398
|
-
let t = k(e), n = te.get(e.name);
|
|
399
|
-
return n ? {
|
|
400
|
-
...t,
|
|
401
|
-
formatDateTime: ue(t.locale, n)
|
|
402
|
-
} : t;
|
|
403
|
-
}
|
|
404
|
-
function fe() {
|
|
405
|
-
for (let e of ee) S.set(e.name, de(e));
|
|
406
|
-
}
|
|
407
|
-
fe();
|
|
408
|
-
function A(e) {
|
|
409
|
-
return S.get(e);
|
|
410
|
-
}
|
|
411
|
-
function pe(e) {
|
|
412
|
-
return S.get(e);
|
|
413
|
-
}
|
|
414
|
-
function me() {
|
|
415
|
-
return Array.from(S.keys());
|
|
416
|
-
}
|
|
417
|
-
function j(e) {
|
|
418
|
-
return g.includes(e);
|
|
419
|
-
}
|
|
420
|
-
function he(e) {
|
|
421
|
-
return _.includes(e);
|
|
422
|
-
}
|
|
423
|
-
function M(e, t = y.date) {
|
|
424
|
-
let n = e?.trim();
|
|
425
|
-
return n ? j(n) ? b[n] : n : t;
|
|
426
|
-
}
|
|
427
|
-
function ge(e, t, n, r) {
|
|
428
|
-
let i = `${t}\u0000${n}\u0000${r}\u0000${e}`, a = x.get(i);
|
|
429
|
-
if (a) return a;
|
|
430
|
-
let o = {
|
|
431
|
-
name: `${t}:${e}`,
|
|
432
|
-
pattern: e,
|
|
433
|
-
locale: n,
|
|
434
|
-
invalidFallback: r
|
|
435
|
-
};
|
|
436
|
-
return x.set(i, o), o;
|
|
437
|
-
}
|
|
438
|
-
function _e(e, { defaultFormat: t = y.date, patternPresetName: n = "__date_pattern__", locale: r = h, invalidFallback: i = "" } = {}) {
|
|
439
|
-
let a = M(e, t);
|
|
440
|
-
return A(a) ? a : ge(a, n, r, i);
|
|
441
|
-
}
|
|
442
|
-
function ve(e) {
|
|
443
|
-
let t = k(e);
|
|
444
|
-
return S.set(t.name, t), t;
|
|
445
|
-
}
|
|
446
|
-
function ye() {
|
|
447
|
-
S.clear(), fe();
|
|
448
|
-
}
|
|
449
|
-
//#endregion
|
|
450
|
-
//#region src/formatters/date/parseDate.ts
|
|
451
|
-
var be = /^\/Date\((-?\d+)([+-]\d{4})?\)\/$/, xe = /^(datetimeoffset|datetime)'(.+)'$/i, Se = /^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2})(?::(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?)?)?$/, Ce = /(Z|([+-])(\d{2}):?(\d{2}))$/i, we = /^\d{8}$/, Te = /^\d{14,}$/, Ee = /^(\d{2})\.(\d{2})\.(\d{4})$/, De = /^(\d{2})\/(\d{2})\/(\d{4})$/, Oe = /^([+-])?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:\.(\d+))?S)?)?$/, N = /* @__PURE__ */ new Set([
|
|
452
|
-
"",
|
|
453
|
-
"null",
|
|
454
|
-
"undefined"
|
|
455
|
-
]), ke = 1e3, P = 6e4, F = 36e5, I = 864e5, Ae = 30, je = 365, Me = 70, L = "floating", Ne = Object.freeze({
|
|
456
|
-
[y.date]: Object.freeze(["dd.MM.yyyy"]),
|
|
457
|
-
[y.dateShort]: Object.freeze(["dd.MM.yyyy"]),
|
|
458
|
-
[y.datetime]: Object.freeze(["dd.MM.yyyy HH:mm"]),
|
|
459
|
-
[y.datetimeSeconds]: Object.freeze(["dd.MM.yyyy HH:mm:ss"]),
|
|
460
|
-
[y.datetimeShort]: Object.freeze(["dd.MM.yyyy, HH:mm"])
|
|
461
|
-
}), Pe = /^(\d{1,2})\s+([\p{L}.]+)\s+(\d{4})(?:\s*[\p{L}.]+)?(?:,?\s+(\d{1,2}):(\d{2})(?::(\d{2}))?)?$/iu, Fe = /^(\d{1,2})\.(\d{1,2})$/u, Ie = /^(\d{1,2})\s+([\p{L}.]+)$/iu, Le = /^([\p{L}.]+)\s+(\d{4})(?:\s*[\p{L}.]+)?$/iu, Re = /^(\d{4})(?:\s*[\p{L}.]+)?$/iu, R = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Set([
|
|
462
|
-
y.monthShort,
|
|
463
|
-
y.monthMedium,
|
|
464
|
-
y.monthLong
|
|
465
|
-
]), Be = /* @__PURE__ */ new Set([y.monthYearMedium, y.monthYearLong]);
|
|
466
|
-
function z(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
467
|
-
let s = new Date(e, t - 1, n, r, i, a, o);
|
|
468
|
-
return s.getFullYear() === e && s.getMonth() === t - 1 && s.getDate() === n && s.getHours() === r && s.getMinutes() === i && s.getSeconds() === a ? s : null;
|
|
469
|
-
}
|
|
470
|
-
function B(e, t) {
|
|
471
|
-
return e.toLocaleLowerCase(t).replace(/\.$/, "");
|
|
472
|
-
}
|
|
473
|
-
function V(e, t, n, r) {
|
|
474
|
-
e.set(B(t, r), n);
|
|
475
|
-
}
|
|
476
|
-
function H(e, t, n, r, i) {
|
|
477
|
-
let a = t.formatToParts(n).find((e) => e.type === "month");
|
|
478
|
-
a && V(e, a.value, r, i);
|
|
479
|
-
}
|
|
480
|
-
function U(e) {
|
|
481
|
-
let t = R.get(e);
|
|
482
|
-
if (t) return t;
|
|
483
|
-
let n = /* @__PURE__ */ new Map(), r = new Intl.DateTimeFormat(e, { month: "short" }), i = new Intl.DateTimeFormat(e, { month: "long" }), a = new Intl.DateTimeFormat(e, {
|
|
484
|
-
day: "numeric",
|
|
485
|
-
month: "short",
|
|
486
|
-
year: "numeric"
|
|
487
|
-
}), o = new Intl.DateTimeFormat(e, {
|
|
488
|
-
day: "numeric",
|
|
489
|
-
month: "long",
|
|
490
|
-
year: "numeric"
|
|
491
|
-
});
|
|
492
|
-
for (let t = 0; t < 12; t += 1) {
|
|
493
|
-
let s = new Date(2026, t, 1);
|
|
494
|
-
V(n, r.format(s), t, e), V(n, i.format(s), t, e), H(n, a, s, t, e), H(n, o, s, t, e);
|
|
495
|
-
}
|
|
496
|
-
return R.set(e, n), n;
|
|
497
|
-
}
|
|
498
|
-
function Ve(e, t) {
|
|
499
|
-
let n = Pe.exec(e.trim());
|
|
500
|
-
if (!n) return null;
|
|
501
|
-
let r = Number(n[1]), i = U(t).get(B(n[2], t)), a = Number(n[3]), o = Number(n[4] ?? 0), s = Number(n[5] ?? 0), c = Number(n[6] ?? 0);
|
|
502
|
-
if (i === void 0 || !Number.isFinite(r) || !Number.isFinite(a) || !Number.isFinite(o) || !Number.isFinite(s) || !Number.isFinite(c)) return null;
|
|
503
|
-
let l = z(a, i + 1, r, o, s, c);
|
|
504
|
-
return l ? K(l, "iso-local") : null;
|
|
505
|
-
}
|
|
506
|
-
function He(e, t, n) {
|
|
507
|
-
let r = Fe.exec(e.trim());
|
|
508
|
-
if (r) {
|
|
509
|
-
let e = Number(r[1]), t = z(n, Number(r[2]), e);
|
|
510
|
-
return t ? K(t, "iso-local") : null;
|
|
511
|
-
}
|
|
512
|
-
let i = Ie.exec(e.trim());
|
|
513
|
-
if (!i) return null;
|
|
514
|
-
let a = Number(i[1]), o = U(t).get(B(i[2], t));
|
|
515
|
-
if (o === void 0 || !Number.isFinite(a)) return null;
|
|
516
|
-
let s = z(n, o + 1, a);
|
|
517
|
-
return s ? K(s, "iso-local") : null;
|
|
518
|
-
}
|
|
519
|
-
function W(e, t) {
|
|
520
|
-
let n = Le.exec(e.trim());
|
|
521
|
-
if (!n) return null;
|
|
522
|
-
let r = U(t).get(B(n[1], t)), i = Number(n[2]);
|
|
523
|
-
if (r === void 0 || !Number.isFinite(i)) return null;
|
|
524
|
-
let a = z(i, r + 1, 1);
|
|
525
|
-
return a ? K(a, "iso-local") : null;
|
|
526
|
-
}
|
|
527
|
-
function Ue(e) {
|
|
528
|
-
let t = Re.exec(e.trim());
|
|
529
|
-
if (!t) return null;
|
|
530
|
-
let n = Number(t[1]);
|
|
531
|
-
if (!Number.isFinite(n)) return null;
|
|
532
|
-
let r = z(n, 1, 1);
|
|
533
|
-
return r ? K(r, "iso-local") : null;
|
|
534
|
-
}
|
|
535
|
-
function We(e, t, n) {
|
|
536
|
-
return n === "year" ? Ue(e) : n === "month" ? W(e, t) : Ve(e, t);
|
|
537
|
-
}
|
|
538
|
-
function Ge(e) {
|
|
539
|
-
return ze.has(e);
|
|
540
|
-
}
|
|
541
|
-
function Ke(e) {
|
|
542
|
-
return Be.has(e);
|
|
543
|
-
}
|
|
544
|
-
function qe(e) {
|
|
545
|
-
return e instanceof Date && !Number.isNaN(e.getTime()) ? e.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear();
|
|
546
|
-
}
|
|
547
|
-
function Je(e) {
|
|
548
|
-
return new Date(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
549
|
-
}
|
|
550
|
-
function G(e) {
|
|
551
|
-
return new Date(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds());
|
|
552
|
-
}
|
|
553
|
-
function K(e, t) {
|
|
554
|
-
return {
|
|
555
|
-
kind: "date-time",
|
|
556
|
-
source: t,
|
|
557
|
-
date: e
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
function q(e, t = L) {
|
|
561
|
-
if (!Number.isFinite(e)) return null;
|
|
562
|
-
let n = Math.abs(e) < 0xe8d4a51000 ? e * 1e3 : e, r = new Date(n);
|
|
563
|
-
return Number.isNaN(r.getTime()) ? null : K(t === "instant" ? r : G(r), "timestamp");
|
|
564
|
-
}
|
|
565
|
-
function Ye(e, t = L) {
|
|
566
|
-
let n = be.exec(e);
|
|
567
|
-
if (!n) return null;
|
|
568
|
-
let r = Number(n[1]);
|
|
569
|
-
if (!Number.isFinite(r)) return null;
|
|
570
|
-
if (t === "instant") {
|
|
571
|
-
let e = new Date(r);
|
|
572
|
-
return Number.isNaN(e.getTime()) ? null : K(e, "odata-ticks");
|
|
573
|
-
}
|
|
574
|
-
let i = n[2];
|
|
575
|
-
if (!i) return K(G(new Date(r)), "odata-ticks");
|
|
576
|
-
let a = i.startsWith("-") ? -1 : 1, o = Number(i.slice(1, 3)), s = Number(i.slice(3, 5));
|
|
577
|
-
if (!Number.isFinite(o) || !Number.isFinite(s)) return null;
|
|
578
|
-
let c = a * (o * F + s * P);
|
|
579
|
-
return K(G(new Date(r + c)), "odata-ticks");
|
|
580
|
-
}
|
|
581
|
-
function J(e) {
|
|
582
|
-
let t = Se.exec(e);
|
|
583
|
-
if (!t) return null;
|
|
584
|
-
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = Number(t[4] ?? 0), o = Number(t[5] ?? 0), s = Number(t[6] ?? 0), c = (t[7] ?? "").slice(0, 3).padEnd(3, "0"), l = z(n, r, i, a, o, s, Number(c || 0));
|
|
585
|
-
return l ? K(l, "iso-local") : null;
|
|
586
|
-
}
|
|
587
|
-
function Xe(e) {
|
|
588
|
-
if (e[1].toUpperCase() === "Z") return 0;
|
|
589
|
-
let t = e[2] === "-" ? -1 : 1, n = Number(e[3]), r = Number(e[4]);
|
|
590
|
-
return !Number.isFinite(n) || !Number.isFinite(r) || n > 23 || r > 59 ? null : t * (n * F + r * P);
|
|
591
|
-
}
|
|
592
|
-
function Ze(e, t = L) {
|
|
593
|
-
let n = Ce.exec(e);
|
|
594
|
-
if (!n) return null;
|
|
595
|
-
let r = J(e.slice(0, n.index));
|
|
596
|
-
if (!r) return null;
|
|
597
|
-
if (t === "floating") return K(r.date, "iso-zoned");
|
|
598
|
-
let i = Xe(n);
|
|
599
|
-
if (i === null) return null;
|
|
600
|
-
let a = r.date, o = Date.UTC(a.getFullYear(), a.getMonth(), a.getDate(), a.getHours(), a.getMinutes(), a.getSeconds(), a.getMilliseconds()) - i, s = new Date(o);
|
|
601
|
-
return Number.isNaN(s.getTime()) ? null : K(s, "iso-zoned");
|
|
602
|
-
}
|
|
603
|
-
function Qe(e) {
|
|
604
|
-
if (!we.test(e)) return null;
|
|
605
|
-
let t = z(Number(e.slice(0, 4)), Number(e.slice(4, 6)), Number(e.slice(6, 8)));
|
|
606
|
-
return t ? K(t, "abap-compact") : null;
|
|
607
|
-
}
|
|
608
|
-
function $e(e) {
|
|
609
|
-
if (!Te.test(e)) return null;
|
|
610
|
-
let t = z(Number(e.slice(0, 4)), Number(e.slice(4, 6)), Number(e.slice(6, 8)), Number(e.slice(8, 10)), Number(e.slice(10, 12)), Number(e.slice(12, 14)));
|
|
611
|
-
return t ? K(t, "abap-timestamp") : null;
|
|
612
|
-
}
|
|
613
|
-
function et(e) {
|
|
614
|
-
let t = Ee.exec(e);
|
|
615
|
-
if (!t) return null;
|
|
616
|
-
let n = Number(t[1]), r = Number(t[2]), i = z(Number(t[3]), r, n);
|
|
617
|
-
return i ? K(i, "abap-dotted") : null;
|
|
618
|
-
}
|
|
619
|
-
function tt(e) {
|
|
620
|
-
let t = De.exec(e);
|
|
621
|
-
if (!t) return null;
|
|
622
|
-
let n = Number(t[1]), r = Number(t[2]), i = z(Number(t[3]), n, r);
|
|
623
|
-
return i ? K(i, "slash-date") : null;
|
|
624
|
-
}
|
|
625
|
-
function nt(e, t = L) {
|
|
626
|
-
let n = xe.exec(e);
|
|
627
|
-
return n ? X(n[2].trim(), "odata-literal", t) : null;
|
|
628
|
-
}
|
|
629
|
-
function rt(e) {
|
|
630
|
-
let t = Oe.exec(e);
|
|
631
|
-
if (!t) return null;
|
|
632
|
-
let n = t[1] === "-" ? -1 : 1, r = Number(t[2] ?? 0), i = Number(t[3] ?? 0), a = Number(t[4] ?? 0), o = Number(t[5] ?? 0), s = Number(t[6] ?? 0), c = Number(t[7] ?? 0), l = (t[8] ?? "").slice(0, 3).padEnd(3, "0"), u = Number(l || 0);
|
|
633
|
-
return r || i || a || o || s || c || u ? {
|
|
634
|
-
kind: "duration",
|
|
635
|
-
source: "iso-duration",
|
|
636
|
-
durationMs: n * (r * je * I + i * Ae * I + a * I + o * F + s * P + c * ke + u)
|
|
637
|
-
} : null;
|
|
638
|
-
}
|
|
639
|
-
function Y(e, t) {
|
|
640
|
-
return t ? {
|
|
641
|
-
...e,
|
|
642
|
-
source: t
|
|
643
|
-
} : e;
|
|
644
|
-
}
|
|
645
|
-
function X(e, t, n = L) {
|
|
646
|
-
let r = Ze(e, n);
|
|
647
|
-
if (r) return Y(r, t);
|
|
648
|
-
let i = J(e);
|
|
649
|
-
if (i) return Y(i, t);
|
|
650
|
-
let a = et(e);
|
|
651
|
-
if (a) return Y(a, t);
|
|
652
|
-
let o = tt(e);
|
|
653
|
-
if (o) return Y(o, t);
|
|
654
|
-
let s = $e(e);
|
|
655
|
-
if (s) return Y(s, t);
|
|
656
|
-
let c = Qe(e);
|
|
657
|
-
if (c) return Y(c, t);
|
|
658
|
-
let l = Number(e);
|
|
659
|
-
if (/^-?\d+$/.test(e) && Number.isFinite(l)) {
|
|
660
|
-
let e = q(l, n);
|
|
661
|
-
if (e) return Y(e, t);
|
|
662
|
-
}
|
|
663
|
-
return null;
|
|
664
|
-
}
|
|
665
|
-
function Z(e) {
|
|
666
|
-
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
667
|
-
}
|
|
668
|
-
function it(e) {
|
|
669
|
-
return e < Me ? 2e3 + e : 1900 + e;
|
|
670
|
-
}
|
|
671
|
-
function Q(e, t = "dd.MM.yyyy", n = {}) {
|
|
672
|
-
if (typeof e != "string") return $(e);
|
|
673
|
-
let r = e.trim();
|
|
674
|
-
if (N.has(r.toLowerCase())) return null;
|
|
675
|
-
let i = n.precision ?? "day", a = m(t, i), o = [], c = 0, l = "^", u = null;
|
|
676
|
-
for (s.lastIndex = 0; (u = s.exec(a)) !== null;) l += Z(a.slice(c, u.index)), o.push(u[0]), u[0] === "yyyy" ? l += "(\\d{4})" : l += "(\\d{2})", c = u.index + u[0].length;
|
|
677
|
-
if (o.length === 0) return null;
|
|
678
|
-
l += `${Z(a.slice(c))}$`;
|
|
679
|
-
let d = new RegExp(l).exec(r);
|
|
680
|
-
if (!d) return null;
|
|
681
|
-
let f = null, p = null, h = null, g = 0, _ = 0, v = 0;
|
|
682
|
-
for (let e = 0; e < o.length; e += 1) {
|
|
683
|
-
let t = o[e], n = d[e + 1], r = Number(n);
|
|
684
|
-
if (!Number.isFinite(r)) return null;
|
|
685
|
-
t === "yyyy" && (f = r), t === "yy" && (f = it(r)), t === "MM" && (p = r), t === "dd" && (h = r), t === "HH" && (g = r), t === "mm" && (_ = r), t === "ss" && (v = r);
|
|
686
|
-
}
|
|
687
|
-
if (!f || i !== "year" && !p || i === "day" && !h) return null;
|
|
688
|
-
let y = z(f, p ?? 1, h ?? 1, g, _, v);
|
|
689
|
-
return y ? K(y, "iso-local") : null;
|
|
690
|
-
}
|
|
691
|
-
function at(e, t) {
|
|
692
|
-
let n = A(e), r = Ne[e];
|
|
693
|
-
return n?.pattern ? [m(n.pattern, t)] : r ? r.map((e) => m(e, t)) : !n && f(e) ? [m(e, t)] : [];
|
|
694
|
-
}
|
|
695
|
-
function ot(e, t, n = {}) {
|
|
696
|
-
if (typeof e != "string") {
|
|
697
|
-
let t = $(e);
|
|
698
|
-
return t?.kind === "date-time" ? t : null;
|
|
699
|
-
}
|
|
700
|
-
let r = e.trim();
|
|
701
|
-
if (N.has(r.toLowerCase())) return null;
|
|
702
|
-
let i = n.precision ?? "day", a = M(t, n.defaultFormat ?? y.date);
|
|
703
|
-
for (let e of at(a, i)) {
|
|
704
|
-
let t = Q(r, e, { precision: i });
|
|
705
|
-
if (t?.kind === "date-time") return t;
|
|
706
|
-
}
|
|
707
|
-
if (i === "day") {
|
|
708
|
-
let e = $(r);
|
|
709
|
-
if (e?.kind === "date-time") return e;
|
|
710
|
-
}
|
|
711
|
-
let o = A(a)?.locale ?? n.locale ?? v.locale;
|
|
712
|
-
if (i === "day" && Ge(a)) {
|
|
713
|
-
let e = He(r, o, qe(n.referenceDate));
|
|
714
|
-
if (e) return e;
|
|
715
|
-
}
|
|
716
|
-
return i !== "year" && Ke(a) ? W(r, o) : We(r, o, i);
|
|
717
|
-
}
|
|
718
|
-
function st(e, { mode: t = L } = {}) {
|
|
719
|
-
if (e == null) return null;
|
|
720
|
-
if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : K(t === "instant" ? new Date(e.getTime()) : Je(e), "date-object");
|
|
721
|
-
if (typeof e == "number") return q(e, t);
|
|
722
|
-
if (typeof e != "string") return null;
|
|
723
|
-
let n = e.trim();
|
|
724
|
-
return N.has(n.toLowerCase()) ? null : Ye(n, t) || nt(n, t) || rt(n) || X(n, void 0, t);
|
|
725
|
-
}
|
|
726
|
-
function $(e) {
|
|
727
|
-
return st(e);
|
|
728
|
-
}
|
|
729
|
-
function ct(e) {
|
|
730
|
-
return st(e, { mode: "instant" });
|
|
731
|
-
}
|
|
732
|
-
function lt(e) {
|
|
733
|
-
if (!e) return null;
|
|
734
|
-
if (e.kind === "date-time") return e.date;
|
|
735
|
-
let t = new Date(e.durationMs);
|
|
736
|
-
return Number.isNaN(t.getTime()) ? null : G(t);
|
|
737
|
-
}
|
|
738
|
-
function ut(e) {
|
|
739
|
-
return lt($(e));
|
|
740
|
-
}
|
|
741
|
-
function dt(e) {
|
|
742
|
-
return lt(ct(e));
|
|
743
|
-
}
|
|
744
|
-
//#endregion
|
|
745
|
-
//#region src/metadata/scalarTypeClassification.ts
|
|
746
|
-
function ft(e) {
|
|
747
|
-
return pt(e) ? "boolean" : mt(e) ? "number" : gt(e) ? "date" : "string";
|
|
748
|
-
}
|
|
749
|
-
function pt(e) {
|
|
750
|
-
return e === "boolean";
|
|
751
|
-
}
|
|
752
|
-
function mt(e) {
|
|
753
|
-
return e === "byte" || e === "int" || e === "long" || e === "float" || e === "decimal" || e === "double";
|
|
754
|
-
}
|
|
755
|
-
function ht(e) {
|
|
756
|
-
return e === "byte" || e === "int" || e === "long";
|
|
757
|
-
}
|
|
758
|
-
function gt(e) {
|
|
759
|
-
return e === "datetime" || e === "datetimeOffset" || e === "time";
|
|
760
|
-
}
|
|
761
|
-
//#endregion
|
|
762
|
-
export { t as A, M as C, o as D, a as E, r as M, s as O, ye as S, i as T, A as _, mt as a, j as b, Q as c, ct as d, v as f, pe as g, k as h, ht as i, e as j, n as k, dt as l, y as m, pt as n, ut as o, b as p, gt as r, ot as s, ft as t, $ as u, me as v, _e as w, ve as x, he as y };
|
|
763
|
-
|
|
764
|
-
//# sourceMappingURL=scalarTypeClassification-BZcFmIyR.js.map
|