@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,34 +1,36 @@
|
|
|
1
|
-
import { _ as e, r as t, x as n } from "./array-
|
|
2
|
-
import { r } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
1
|
+
import { _ as e, r as t, x as n } from "./array-bd7LYFto.js";
|
|
2
|
+
import { N as r, _ as i, d as a, o, ot as s, rt as c, t as l } from "./scalarTypeClassification-D4YcGxtQ.js";
|
|
3
|
+
import { f as u, r as d } from "./formulas-Y0HOcFhe.js";
|
|
4
|
+
import { i as f } from "./isRecord-DXDTW-jA.js";
|
|
5
|
+
import { t as p } from "./formatDate-CNPcfNte.js";
|
|
6
|
+
import { $ as ee, A as te, B as ne, D as re, F as ie, G as ae, I as oe, J as se, K as ce, L as le, O as ue, P as de, Q as fe, S as pe, T as me, W as he, X as ge, Y as _e, Z as ve, at as ye, b as m, c as be, et as xe, h as Se, j as Ce, k as we, n as Te, nt as Ee, p as De, q as Oe, t as h, tt as ke, u as Ae, v as g, w as je, x as _, y as v, z as Me } from "./validate-8URYKKly.js";
|
|
7
|
+
import "./scalarTypeConstants-CnSsjpGO.js";
|
|
8
|
+
import { isSafe as Ne } from "../validators/index.js";
|
|
9
|
+
import { t as Pe } from "./string-comparison-BKT7PXmq.js";
|
|
10
|
+
import { t as Fe } from "./uuid-izDzLv18.js";
|
|
9
11
|
//#region src/formatters/strings/formatRussianPlural.ts
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
+
var Ie = new Intl.PluralRules("ru-RU");
|
|
13
|
+
function Le(e, t) {
|
|
12
14
|
if (!Number.isFinite(e)) throw RangeError("Количество должно быть конечным числом.");
|
|
13
|
-
switch (
|
|
15
|
+
switch (Ie.select(e)) {
|
|
14
16
|
case "one": return t.one;
|
|
15
17
|
case "few": return t.few;
|
|
16
18
|
case "many": return t.many;
|
|
17
19
|
default: return t.other ?? t.few;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
function
|
|
21
|
-
return `${e} ${
|
|
22
|
+
function Re(e, t) {
|
|
23
|
+
return `${e} ${Le(e, t)}`;
|
|
22
24
|
}
|
|
23
25
|
//#endregion
|
|
24
26
|
//#region src/formatters/strings/startsWithIgnoringZeros.ts
|
|
25
|
-
function
|
|
27
|
+
function ze(e, t) {
|
|
26
28
|
let n = (e || "").toLowerCase().replace(/^0+/, ""), r = (t || "").toLowerCase().replace(/^0+/, "");
|
|
27
29
|
return n.startsWith(r);
|
|
28
30
|
}
|
|
29
31
|
//#endregion
|
|
30
32
|
//#region src/formatters/strings/stripInnerSpaces.ts
|
|
31
|
-
function
|
|
33
|
+
function Be(e) {
|
|
32
34
|
let t = "", n = !1;
|
|
33
35
|
for (let r = 0; r < e.length; r++) {
|
|
34
36
|
let i = e.charCodeAt(r);
|
|
@@ -42,57 +44,58 @@ function de(e) {
|
|
|
42
44
|
}
|
|
43
45
|
//#endregion
|
|
44
46
|
//#region src/formatters/strings/stripLeadingZeros.ts
|
|
45
|
-
|
|
47
|
+
var Ve = "0";
|
|
48
|
+
function He(e) {
|
|
46
49
|
if (e == null) return "";
|
|
47
50
|
let t = e.trim();
|
|
48
|
-
if (t === "") return
|
|
51
|
+
if (t === "") return Ve;
|
|
49
52
|
let n = t.startsWith("-"), r = n ? t.slice(1) : t;
|
|
50
53
|
if (!/^\d+$/.test(r)) return t;
|
|
51
|
-
let i = r.replace(/^0+/, ""), a = i === "" ?
|
|
54
|
+
let i = r.replace(/^0+/, ""), a = i === "" ? Ve : i;
|
|
52
55
|
return n ? `-${a}` : a;
|
|
53
56
|
}
|
|
54
57
|
//#endregion
|
|
55
58
|
//#region src/formatters/strings/truncateText.ts
|
|
56
|
-
function
|
|
59
|
+
function Ue(t, n) {
|
|
57
60
|
let r = e(t);
|
|
58
61
|
if (r) return r.length > n ? `${r.slice(0, n)}...` : r;
|
|
59
62
|
}
|
|
60
63
|
//#endregion
|
|
61
64
|
//#region src/formatters/boolean/toAbapBoolean.ts
|
|
62
|
-
function
|
|
65
|
+
function We(e) {
|
|
63
66
|
return typeof e == "string" && (e = e !== "0"), e ? "X" : " ";
|
|
64
67
|
}
|
|
65
68
|
//#endregion
|
|
66
69
|
//#region src/formatters/formatName.ts
|
|
67
|
-
function
|
|
70
|
+
function Ge(e) {
|
|
68
71
|
if (!e) return "";
|
|
69
72
|
let t = e.trim().replace(/\s+/g, " ").replace(/\s*\./, " ").replace(/\s*\.\s*/g, ". ").toLowerCase().split(" ");
|
|
70
73
|
if (t.length === 0) return "";
|
|
71
|
-
let n =
|
|
74
|
+
let n = y(t[0]);
|
|
72
75
|
if (t.length === 1) return n;
|
|
73
|
-
let r = t[1].includes(".") ?
|
|
74
|
-
return t.length === 2 ? `${n} ${r}` : `${n} ${r} ${t[2].includes(".") ?
|
|
76
|
+
let r = t[1].includes(".") ? qe(t[1]) : y(t[1]);
|
|
77
|
+
return t.length === 2 ? `${n} ${r}` : `${n} ${r} ${t[2].includes(".") ? qe(t[2]) : y(t[2])}`;
|
|
75
78
|
}
|
|
76
|
-
function
|
|
79
|
+
function Ke(e) {
|
|
77
80
|
if (!e) return "";
|
|
78
81
|
let t = e.trim().replace(/\s+/g, " ").replace(/\s*\.\s*/g, ".").toLowerCase().split(" ");
|
|
79
82
|
if (t.length === 0) return "";
|
|
80
|
-
let n =
|
|
83
|
+
let n = y(t[0]);
|
|
81
84
|
if (t.length === 1) return n;
|
|
82
85
|
let r = t[1].startsWith(".") ? t[1][1] : t[1][0];
|
|
83
86
|
if (t.length === 2) return t[1].includes("."), `${n} ${r.toUpperCase()}.`;
|
|
84
87
|
let i = t[2].startsWith(".") ? t[2][1] : t[2][0];
|
|
85
88
|
return `${n} ${r.toUpperCase()}.${i.toUpperCase()}.`;
|
|
86
89
|
}
|
|
87
|
-
function
|
|
90
|
+
function y(e) {
|
|
88
91
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
89
92
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
93
|
+
function qe(e) {
|
|
94
|
+
return y(e);
|
|
92
95
|
}
|
|
93
96
|
//#endregion
|
|
94
97
|
//#region src/formatters/number/compact.ts
|
|
95
|
-
var
|
|
98
|
+
var Je = [
|
|
96
99
|
{
|
|
97
100
|
value: 0xe8d4a51000,
|
|
98
101
|
suffix: "трлн"
|
|
@@ -109,56 +112,52 @@ var ve = [
|
|
|
109
112
|
value: 1e3,
|
|
110
113
|
suffix: "тыс"
|
|
111
114
|
}
|
|
112
|
-
],
|
|
113
|
-
|
|
114
|
-
roundingMode: "trunc",
|
|
115
|
-
suffixSeparator: " "
|
|
116
|
-
}, ye = ",";
|
|
117
|
-
function be(e, t) {
|
|
115
|
+
], Ye = 1e3, Xe = 1e3, Ze = 10, Qe = ",";
|
|
116
|
+
function $e(e, t) {
|
|
118
117
|
switch (t) {
|
|
119
|
-
case
|
|
120
|
-
case
|
|
121
|
-
case
|
|
122
|
-
case
|
|
118
|
+
case ke: return Math.round(e);
|
|
119
|
+
case xe: return Math.floor(e);
|
|
120
|
+
case ee: return Math.ceil(e);
|
|
121
|
+
case Ee: return Math.trunc(e);
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
|
-
function
|
|
126
|
-
if (t === 0) return
|
|
124
|
+
function et(e, t, n) {
|
|
125
|
+
if (t === 0) return $e(e, n);
|
|
127
126
|
let r = 10 ** t;
|
|
128
|
-
return
|
|
127
|
+
return $e(e * r, n) / r;
|
|
129
128
|
}
|
|
130
|
-
function
|
|
131
|
-
return e >=
|
|
129
|
+
function tt(e) {
|
|
130
|
+
return e >= Ze ? 0 : 1;
|
|
132
131
|
}
|
|
133
|
-
function
|
|
132
|
+
function nt(e, t) {
|
|
134
133
|
if (t === 0) return 0;
|
|
135
134
|
let n = e.toFixed(t), r = n.indexOf(".");
|
|
136
135
|
return r === -1 ? 0 : n.slice(r + 1).replace(/0+$/, "").length;
|
|
137
136
|
}
|
|
138
|
-
function
|
|
137
|
+
function rt(e, t) {
|
|
139
138
|
return t.findIndex((t) => e >= t.value);
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function it(e, t) {
|
|
142
141
|
return {
|
|
143
142
|
name: e.name,
|
|
144
143
|
decimals: t,
|
|
145
|
-
decimalSeparator: t > 0 ? e.decimalSeparator ||
|
|
144
|
+
decimalSeparator: t > 0 ? e.decimalSeparator || Qe : e.decimalSeparator,
|
|
146
145
|
grouping: e.grouping,
|
|
147
146
|
groupingSeparator: e.groupingSeparator,
|
|
148
147
|
groupingSize: e.groupingSize
|
|
149
148
|
};
|
|
150
149
|
}
|
|
151
|
-
function
|
|
150
|
+
function at(e, t, n, r, i) {
|
|
152
151
|
let a = n.units[t];
|
|
153
152
|
if (!a) return i(e, r);
|
|
154
|
-
let o = e / a.value, s = n.maxDecimals ??
|
|
155
|
-
return c >=
|
|
153
|
+
let o = e / a.value, s = n.maxDecimals ?? tt(o), c = et(o, s, n.roundingMode);
|
|
154
|
+
return c >= Xe && t > 0 ? at(e, t - 1, n, r, i) : `${i(c, it(r, nt(c, s)))}${n.suffixSeparator}${a.suffix}`;
|
|
156
155
|
}
|
|
157
|
-
function
|
|
158
|
-
let { minCompactValue: t =
|
|
156
|
+
function ot(e) {
|
|
157
|
+
let { minCompactValue: t = Ye, roundingMode: n = Ee, suffixSeparator: r = " ", maxDecimals: i, units: a = Je } = e.options, o = Math.abs(e.value);
|
|
159
158
|
if (o < t) return e.formatPlainNumber(e.value, e.preset);
|
|
160
|
-
let s =
|
|
161
|
-
return s === -1 ? e.formatPlainNumber(e.value, e.preset) : `${e.value < 0 ? "-" : ""}${
|
|
159
|
+
let s = rt(o, a);
|
|
160
|
+
return s === -1 ? e.formatPlainNumber(e.value, e.preset) : `${e.value < 0 ? "-" : ""}${at(o, s, {
|
|
162
161
|
roundingMode: n,
|
|
163
162
|
suffixSeparator: r,
|
|
164
163
|
maxDecimals: i,
|
|
@@ -167,138 +166,138 @@ function De(e) {
|
|
|
167
166
|
}
|
|
168
167
|
//#endregion
|
|
169
168
|
//#region src/formatters/number/isZeroValue.ts
|
|
170
|
-
function
|
|
171
|
-
let t =
|
|
169
|
+
function b(e) {
|
|
170
|
+
let t = s(e);
|
|
172
171
|
return typeof t == "number" ? t === 0 : typeof t == "bigint" && t === 0n;
|
|
173
172
|
}
|
|
174
173
|
//#endregion
|
|
175
174
|
//#region src/formatters/number/formatNumber.ts
|
|
176
|
-
var
|
|
177
|
-
function
|
|
175
|
+
var st = /* @__PURE__ */ new Map();
|
|
176
|
+
function ct(e, t) {
|
|
178
177
|
if (t === 0) return Math.trunc(e);
|
|
179
178
|
let n = 10 ** t;
|
|
180
179
|
return Math.trunc(e * n) / n;
|
|
181
180
|
}
|
|
182
181
|
function x(e, t) {
|
|
183
|
-
let n = `${e}:${+!!t}`, r =
|
|
184
|
-
return r || (r = new Intl.NumberFormat(
|
|
182
|
+
let n = `${e}:${+!!t}`, r = st.get(n);
|
|
183
|
+
return r || (r = new Intl.NumberFormat(ye, {
|
|
185
184
|
minimumFractionDigits: e,
|
|
186
185
|
maximumFractionDigits: e,
|
|
187
186
|
useGrouping: t
|
|
188
|
-
}),
|
|
187
|
+
}), st.set(n, r)), r;
|
|
189
188
|
}
|
|
190
|
-
function
|
|
191
|
-
return e.groupingSize === 3 && (e.groupingSeparator ===
|
|
189
|
+
function lt(e) {
|
|
190
|
+
return e.groupingSize === 3 && (e.groupingSeparator === Me.groupingSeparator || !e.grouping) && (e.decimalSeparator === "," || e.decimals === 0);
|
|
192
191
|
}
|
|
193
|
-
function
|
|
192
|
+
function ut(e, t, n) {
|
|
194
193
|
return x(t, n).format(e);
|
|
195
194
|
}
|
|
196
|
-
function
|
|
195
|
+
function dt(e, t) {
|
|
197
196
|
let n = x(t.decimals, t.grouping).formatToParts(e), r = "";
|
|
198
197
|
for (let e of n) e.type === "group" ? r += t.groupingSeparator : e.type === "decimal" ? r += t.decimalSeparator : r += e.value;
|
|
199
198
|
return r;
|
|
200
199
|
}
|
|
201
|
-
function
|
|
200
|
+
function ft(e, t) {
|
|
202
201
|
let n = x(t.decimals, !1).format(e), r = n.indexOf(","), i = r === -1 ? n : n.slice(0, r), a = r === -1 ? null : n.slice(r + 1), o = i.startsWith("-"), s = o ? i.slice(1) : i, c = t.groupingSize, l = [];
|
|
203
202
|
for (let e = s.length; e > 0; e -= c) l.unshift(s.slice(Math.max(0, e - c), e));
|
|
204
203
|
let u = (o ? "-" : "") + l.join(t.groupingSeparator);
|
|
205
204
|
return a !== null && (u += t.decimalSeparator + a), u;
|
|
206
205
|
}
|
|
207
|
-
function
|
|
208
|
-
return
|
|
206
|
+
function pt(e, t) {
|
|
207
|
+
return lt(t) ? ut(e, t.decimals, t.grouping) : t.groupingSize === 3 || !t.grouping ? dt(e, t) : ft(e, t);
|
|
209
208
|
}
|
|
210
|
-
function
|
|
209
|
+
function S(e, t) {
|
|
211
210
|
if (typeof e == "string" && e.trim() === "") return "0";
|
|
212
211
|
let n = Number(e);
|
|
213
212
|
if (!Number.isFinite(n)) return "0";
|
|
214
|
-
let r =
|
|
215
|
-
return r.compact ?
|
|
213
|
+
let r = he(t);
|
|
214
|
+
return r.compact ? ot({
|
|
216
215
|
value: n,
|
|
217
216
|
preset: r,
|
|
218
217
|
options: r.compact,
|
|
219
|
-
formatPlainNumber:
|
|
220
|
-
}) :
|
|
218
|
+
formatPlainNumber: pt
|
|
219
|
+
}) : pt(n, r);
|
|
221
220
|
}
|
|
222
|
-
function
|
|
223
|
-
return
|
|
221
|
+
function C(e) {
|
|
222
|
+
return S(e, _e);
|
|
224
223
|
}
|
|
225
|
-
function
|
|
226
|
-
return
|
|
224
|
+
function mt(e) {
|
|
225
|
+
return S(e, ae);
|
|
227
226
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
227
|
+
function ht(e) {
|
|
228
|
+
return S(e, ce);
|
|
230
229
|
}
|
|
231
|
-
function
|
|
232
|
-
return
|
|
230
|
+
function gt(e) {
|
|
231
|
+
return S(e, Oe);
|
|
233
232
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
233
|
+
function _t(e) {
|
|
234
|
+
return S(e, se);
|
|
236
235
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
236
|
+
function vt(e) {
|
|
237
|
+
return S(e, ge);
|
|
239
238
|
}
|
|
240
|
-
function
|
|
241
|
-
return
|
|
239
|
+
function yt(e) {
|
|
240
|
+
return S(e, ve);
|
|
242
241
|
}
|
|
243
|
-
function
|
|
244
|
-
return
|
|
242
|
+
function bt(e) {
|
|
243
|
+
return S(e, fe);
|
|
245
244
|
}
|
|
246
|
-
function
|
|
247
|
-
return
|
|
245
|
+
function xt(e) {
|
|
246
|
+
return b(e) ? "" : S(e, _e);
|
|
248
247
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
248
|
+
function St(e) {
|
|
249
|
+
return b(e) ? "" : S(e, ae);
|
|
251
250
|
}
|
|
252
|
-
function
|
|
253
|
-
return
|
|
251
|
+
function Ct(e) {
|
|
252
|
+
return b(e) ? "" : S(e, ce);
|
|
254
253
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
254
|
+
function wt(e) {
|
|
255
|
+
return b(e) ? "" : S(e, Oe);
|
|
257
256
|
}
|
|
258
|
-
function
|
|
259
|
-
return
|
|
257
|
+
function Tt(e) {
|
|
258
|
+
return b(e) ? "" : S(e, se);
|
|
260
259
|
}
|
|
261
|
-
function
|
|
262
|
-
return
|
|
260
|
+
function Et(e) {
|
|
261
|
+
return b(e) ? "" : S(e, ge);
|
|
263
262
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
263
|
+
function Dt(e) {
|
|
264
|
+
return b(e) ? "" : S(e, ve);
|
|
266
265
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
266
|
+
function Ot(e) {
|
|
267
|
+
return b(e) ? "" : S(e, fe);
|
|
269
268
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
269
|
+
function kt() {
|
|
270
|
+
st.clear();
|
|
272
271
|
}
|
|
273
272
|
//#endregion
|
|
274
273
|
//#region src/formatters/formatFileSize.ts
|
|
275
|
-
var
|
|
276
|
-
...
|
|
274
|
+
var w = 1024, T = {
|
|
275
|
+
...Me,
|
|
277
276
|
name: "file-size",
|
|
278
277
|
decimals: 0,
|
|
279
278
|
compact: {
|
|
280
279
|
minCompactValue: 1,
|
|
281
280
|
maxDecimals: 2,
|
|
282
|
-
roundingMode:
|
|
281
|
+
roundingMode: ke,
|
|
283
282
|
units: [
|
|
284
283
|
{
|
|
285
|
-
value:
|
|
284
|
+
value: w ** 5,
|
|
286
285
|
suffix: "ПиБ"
|
|
287
286
|
},
|
|
288
287
|
{
|
|
289
|
-
value:
|
|
288
|
+
value: w ** 4,
|
|
290
289
|
suffix: "ТиБ"
|
|
291
290
|
},
|
|
292
291
|
{
|
|
293
|
-
value:
|
|
292
|
+
value: w ** 3,
|
|
294
293
|
suffix: "ГиБ"
|
|
295
294
|
},
|
|
296
295
|
{
|
|
297
|
-
value:
|
|
296
|
+
value: w ** 2,
|
|
298
297
|
suffix: "МиБ"
|
|
299
298
|
},
|
|
300
299
|
{
|
|
301
|
-
value:
|
|
300
|
+
value: w,
|
|
302
301
|
suffix: "КиБ"
|
|
303
302
|
},
|
|
304
303
|
{
|
|
@@ -308,234 +307,235 @@ var T = 1024, E = {
|
|
|
308
307
|
]
|
|
309
308
|
}
|
|
310
309
|
};
|
|
311
|
-
function
|
|
310
|
+
function At(e) {
|
|
312
311
|
if (!Number.isSafeInteger(e) || e < 0) throw RangeError("Размер файла должен быть неотрицательным безопасным целым числом.");
|
|
313
312
|
if (e === 0) return "0 Б";
|
|
314
|
-
let t =
|
|
315
|
-
return
|
|
316
|
-
...
|
|
313
|
+
let t = T.compact?.units?.find(({ value: t }) => e >= t);
|
|
314
|
+
return S(e, {
|
|
315
|
+
...T,
|
|
317
316
|
compact: {
|
|
318
|
-
...
|
|
317
|
+
...T.compact,
|
|
319
318
|
units: t ? [t] : []
|
|
320
319
|
}
|
|
321
320
|
});
|
|
322
321
|
}
|
|
323
322
|
//#endregion
|
|
324
323
|
//#region src/formatters/formatDurationMinutes.ts
|
|
325
|
-
var
|
|
326
|
-
function
|
|
324
|
+
var E = 60, jt = 24, Mt = 1440;
|
|
325
|
+
function Nt(e) {
|
|
327
326
|
if (!Number.isSafeInteger(e) || e < 0) throw RangeError("Длительность должна быть неотрицательным безопасным целым числом минут.");
|
|
328
|
-
let t = `${
|
|
329
|
-
if (e <
|
|
330
|
-
let n = `${
|
|
331
|
-
return e <
|
|
327
|
+
let t = `${C(e % E)} мин`;
|
|
328
|
+
if (e < E) return t;
|
|
329
|
+
let n = `${C(Math.floor(e / E) % jt)} ч`;
|
|
330
|
+
return e < Mt ? `${n} ${t}` : `${C(Math.floor(e / Mt))} дн ${n} ${t}`;
|
|
332
331
|
}
|
|
333
332
|
//#endregion
|
|
334
333
|
//#region src/formatters/formatPhone.ts
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
var Pt = 11;
|
|
335
|
+
function Ft(e) {
|
|
336
|
+
let t = It(e).match(/^(\+7)(\d{3})(\d{3})(\d{2})(\d{2})$/);
|
|
337
337
|
return t ? `+7 (${t[2]}) ${t[3]}-${t[4]}-${t[5]}` : e;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return `+7${e.replace(/\D/g, "").slice(0,
|
|
339
|
+
function It(e) {
|
|
340
|
+
return `+7${e.replace(/\D/g, "").slice(0, Pt).replace(/^(7|8)/, "")}`;
|
|
341
341
|
}
|
|
342
342
|
//#endregion
|
|
343
343
|
//#region src/formatters/date/calendarDate.ts
|
|
344
|
-
function
|
|
344
|
+
function D(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
345
345
|
return new Date(e, t, n, r, i, a, o);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
347
|
+
function O(e) {
|
|
348
|
+
return D(e.getFullYear(), e.getMonth(), e.getDate(), 0, 0, 0, 0);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function k(e) {
|
|
351
|
+
return D(e.getFullYear(), e.getMonth(), e.getDate(), 23, 59, 59, 0);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return
|
|
353
|
+
function A(e) {
|
|
354
|
+
return D(e.getFullYear(), e.getMonth(), 1, 0, 0, 0, 0);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
return
|
|
356
|
+
function Lt(e) {
|
|
357
|
+
return D(e.getFullYear(), 0, 1, 0, 0, 0, 0);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
let n = Number.isInteger(t) ? (t % 7 + 7) % 7 : 1, r =
|
|
361
|
-
return
|
|
359
|
+
function Rt(e, t = 1) {
|
|
360
|
+
let n = Number.isInteger(t) ? (t % 7 + 7) % 7 : 1, r = O(e);
|
|
361
|
+
return j(r, -((r.getDay() - n + 7) % 7));
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
363
|
+
function j(e, t) {
|
|
364
|
+
return D(e.getFullYear(), e.getMonth(), e.getDate() + t, 0, 0, 0, 0);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
366
|
+
function zt(e, t) {
|
|
367
|
+
return D(e.getFullYear(), e.getMonth() + t, e.getDate(), 0, 0, 0, 0);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return
|
|
369
|
+
function Bt(e, t) {
|
|
370
|
+
return D(e.getFullYear() + t, e.getMonth(), e.getDate(), 0, 0, 0, 0);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Vt(e, t) {
|
|
373
373
|
return !(e instanceof Date) || !(t instanceof Date) ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
374
374
|
}
|
|
375
375
|
//#endregion
|
|
376
376
|
//#region src/formatters/date/calendarPeriod.ts
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
var Ht = 11, Ut = 31, Wt = "day", Gt = "week", Kt = "month", qt = "year", Jt = "friday", Yt = "saturday", Xt = "sunday", Zt = {
|
|
378
|
+
[Jt]: 4,
|
|
379
|
+
[Yt]: 5,
|
|
380
|
+
[Xt]: 6
|
|
381
381
|
};
|
|
382
|
-
function
|
|
382
|
+
function Qt(e) {
|
|
383
383
|
return e instanceof Date && Number.isFinite(e.getTime());
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return e ??
|
|
385
|
+
function $t(e) {
|
|
386
|
+
return e ?? Xt;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return e ??
|
|
390
|
-
}
|
|
391
|
-
function
|
|
392
|
-
if (!
|
|
393
|
-
switch (
|
|
394
|
-
case
|
|
395
|
-
start:
|
|
396
|
-
end:
|
|
388
|
+
function en(e) {
|
|
389
|
+
return e ?? Wt;
|
|
390
|
+
}
|
|
391
|
+
function tn(e, t = {}) {
|
|
392
|
+
if (!Qt(e)) return null;
|
|
393
|
+
switch (en(t.selectionMode)) {
|
|
394
|
+
case Wt: return {
|
|
395
|
+
start: O(e),
|
|
396
|
+
end: k(e)
|
|
397
397
|
};
|
|
398
|
-
case
|
|
399
|
-
let n =
|
|
398
|
+
case Gt: {
|
|
399
|
+
let n = Rt(e), r = Zt[$t(t.weekEndDay)];
|
|
400
400
|
return {
|
|
401
401
|
start: n,
|
|
402
|
-
end:
|
|
402
|
+
end: k(j(n, r))
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
case
|
|
406
|
-
start:
|
|
407
|
-
end:
|
|
405
|
+
case Kt: return {
|
|
406
|
+
start: A(e),
|
|
407
|
+
end: k(D(e.getFullYear(), e.getMonth() + 1, 0))
|
|
408
408
|
};
|
|
409
|
-
case
|
|
410
|
-
start:
|
|
411
|
-
end:
|
|
409
|
+
case qt: return {
|
|
410
|
+
start: Lt(e),
|
|
411
|
+
end: k(D(e.getFullYear(), Ht, Ut))
|
|
412
412
|
};
|
|
413
413
|
default: return null;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
if (!
|
|
418
|
-
let n =
|
|
416
|
+
function nn(e, t) {
|
|
417
|
+
if (!Qt(e) || !t) return !1;
|
|
418
|
+
let n = O(e).getTime();
|
|
419
419
|
return n >= t.start.getTime() && n <= t.end.getTime();
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
return !(!e || t.minDate && e.start.getTime() <
|
|
421
|
+
function rn(e, t = {}) {
|
|
422
|
+
return !(!e || t.minDate && e.start.getTime() < O(t.minDate).getTime() || t.maxDate && e.end.getTime() > k(t.maxDate).getTime());
|
|
423
423
|
}
|
|
424
424
|
//#endregion
|
|
425
425
|
//#region src/formatters/date/dateRange.ts
|
|
426
|
-
var
|
|
427
|
-
function
|
|
426
|
+
var an = "preserve";
|
|
427
|
+
function M(e) {
|
|
428
428
|
return e instanceof Date && Number.isFinite(e.getTime());
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function on(e) {
|
|
431
431
|
return Array.isArray(e);
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function N(e) {
|
|
434
434
|
return new Date(e.getTime());
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function sn(e, t) {
|
|
437
437
|
return e.getTime() <= t.getTime() ? [e, t] : [t, e];
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
if (
|
|
441
|
-
let [t, n] = e, r =
|
|
442
|
-
return r && i ?
|
|
439
|
+
function cn(e) {
|
|
440
|
+
if (on(e)) {
|
|
441
|
+
let [t, n] = e, r = M(t), i = M(n);
|
|
442
|
+
return r && i ? sn(t, n) : r ? [t, t] : i ? [n, n] : null;
|
|
443
443
|
}
|
|
444
|
-
return
|
|
444
|
+
return M(e) ? [e, e] : null;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
let n =
|
|
446
|
+
function P(e, t = {}) {
|
|
447
|
+
let n = cn(e);
|
|
448
448
|
if (!n) return null;
|
|
449
449
|
let [r, i] = n;
|
|
450
|
-
return t.timeMode ===
|
|
450
|
+
return t.timeMode === an ? [N(r), N(i)] : [O(r), k(i)];
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
let n =
|
|
452
|
+
function ln(e, t) {
|
|
453
|
+
let n = P(e, t);
|
|
454
454
|
if (!n) throw Error("Диапазон дат не задан");
|
|
455
455
|
return n;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function un(e) {
|
|
458
458
|
return Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
let t =
|
|
460
|
+
function dn(e) {
|
|
461
|
+
let t = P(e);
|
|
462
462
|
if (!t) return null;
|
|
463
463
|
let [n, r] = t;
|
|
464
|
-
return Math.floor((
|
|
464
|
+
return Math.floor((un(r) - un(n)) / c) + 1;
|
|
465
465
|
}
|
|
466
466
|
//#endregion
|
|
467
467
|
//#region src/formatters/date/educationDate.ts
|
|
468
|
-
var
|
|
469
|
-
function
|
|
468
|
+
var fn = /^(\d{4})-(\d{2})-(\d{2})$/, pn = /^(\d{2}):(\d{2})(?::(\d{2}))?$/, mn = 8, hn = 1, gn = 7, _n = 31, vn = 6;
|
|
469
|
+
function F(e, t) {
|
|
470
470
|
return Number.isInteger(e) && e >= 0 && e <= t;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
let t = e?.match(
|
|
472
|
+
function I(e) {
|
|
473
|
+
let t = e?.match(fn);
|
|
474
474
|
if (!t) return null;
|
|
475
|
-
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a =
|
|
475
|
+
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = D(n, r - 1, i);
|
|
476
476
|
return a.getFullYear() === n && a.getMonth() === r - 1 && a.getDate() === i ? a : null;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function L(e) {
|
|
479
479
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function yn(e) {
|
|
482
482
|
return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
let n =
|
|
484
|
+
function bn(e, t) {
|
|
485
|
+
let n = I(e), r = t.match(pn);
|
|
486
486
|
if (!n || !r) return null;
|
|
487
487
|
let i = Number(r[1]), a = Number(r[2]), o = Number(r[3] ?? 0);
|
|
488
|
-
return !
|
|
488
|
+
return !F(i, 23) || !F(a, 59) || !F(o, 59) ? null : D(n.getFullYear(), n.getMonth(), n.getDate(), i, a, o);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return e.getMonth() <
|
|
490
|
+
function xn(e = /* @__PURE__ */ new Date()) {
|
|
491
|
+
return e.getMonth() < mn ? e.getFullYear() - 1 : e.getFullYear();
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
let t =
|
|
493
|
+
function Sn(e = /* @__PURE__ */ new Date()) {
|
|
494
|
+
let t = xn(e);
|
|
495
495
|
return {
|
|
496
496
|
year: t,
|
|
497
|
-
start:
|
|
498
|
-
end:
|
|
497
|
+
start: D(t, mn, hn),
|
|
498
|
+
end: D(t + 1, gn, _n)
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
let n =
|
|
501
|
+
function R(e, t = /* @__PURE__ */ new Date()) {
|
|
502
|
+
let n = O(e), { start: r, end: i } = Sn(t);
|
|
503
503
|
return n >= r && n <= i;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
let t =
|
|
507
|
-
return
|
|
505
|
+
function z(e) {
|
|
506
|
+
let t = O(e), n = (t.getDay() + 6) % 7;
|
|
507
|
+
return j(t, n === 6 ? 1 : -n);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
let t =
|
|
509
|
+
function Cn(e) {
|
|
510
|
+
let t = z(e);
|
|
511
511
|
return {
|
|
512
512
|
start: t,
|
|
513
|
-
end:
|
|
513
|
+
end: j(t, 5)
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
let t = typeof e == "string" ?
|
|
518
|
-
return Array.from({ length:
|
|
516
|
+
function wn(e) {
|
|
517
|
+
let t = typeof e == "string" ? I(e) ?? z(/* @__PURE__ */ new Date()) : z(e);
|
|
518
|
+
return Array.from({ length: vn }, (e, n) => L(j(t, n)));
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
return
|
|
520
|
+
function B(e = /* @__PURE__ */ new Date()) {
|
|
521
|
+
return L(z(e));
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
let n =
|
|
525
|
-
if (!n || !
|
|
526
|
-
let r =
|
|
527
|
-
return
|
|
523
|
+
function Tn(e, t = /* @__PURE__ */ new Date()) {
|
|
524
|
+
let n = I(e);
|
|
525
|
+
if (!n || !R(n, t)) return;
|
|
526
|
+
let r = z(n);
|
|
527
|
+
return R(r, t) ? L(r) : void 0;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
529
|
+
function En(e, t = /* @__PURE__ */ new Date()) {
|
|
530
|
+
return Tn(e, t) ?? B(t);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
return
|
|
532
|
+
function Dn(e, t = /* @__PURE__ */ new Date()) {
|
|
533
|
+
return En(e, t) === B(t);
|
|
534
534
|
}
|
|
535
535
|
//#endregion
|
|
536
536
|
//#region src/formatters/date/formatInstantDateTime.ts
|
|
537
|
-
function
|
|
538
|
-
let n =
|
|
537
|
+
function On(e, t) {
|
|
538
|
+
let n = a(e), r = t.fallback ?? "";
|
|
539
539
|
if (!n || n.kind !== "date-time") return r;
|
|
540
540
|
try {
|
|
541
541
|
return new Intl.DateTimeFormat(t.locale ?? "ru-RU", {
|
|
@@ -549,94 +549,95 @@ function Mt(e, t) {
|
|
|
549
549
|
}
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region src/formatters/date/relativeRanges.ts
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function V(e) {
|
|
553
|
+
return O(e);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
let t =
|
|
557
|
-
return [n,
|
|
555
|
+
function kn({ referenceDate: e }) {
|
|
556
|
+
let t = V(e), n = A(t), r = j(t, -1);
|
|
557
|
+
return [n, k(r < n ? n : r)];
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
let t =
|
|
561
|
-
return [
|
|
559
|
+
function An({ referenceDate: e }) {
|
|
560
|
+
let t = V(e);
|
|
561
|
+
return [A(t), k(t)];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
let t =
|
|
565
|
-
return [t,
|
|
563
|
+
function jn({ referenceDate: e }) {
|
|
564
|
+
let t = V(e);
|
|
565
|
+
return [t, k(t)];
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
let t =
|
|
569
|
-
return [t,
|
|
567
|
+
function Mn({ referenceDate: e }) {
|
|
568
|
+
let t = j(V(e), -1);
|
|
569
|
+
return [t, k(t)];
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
let t =
|
|
573
|
-
return [
|
|
571
|
+
function Nn({ referenceDate: e }) {
|
|
572
|
+
let t = V(e);
|
|
573
|
+
return [O(zt(t, -1)), k(t)];
|
|
574
574
|
}
|
|
575
575
|
//#endregion
|
|
576
576
|
//#region src/formatters/normalizeLeadingZeros.ts
|
|
577
|
-
|
|
577
|
+
var Pn = 43, Fn = 44, In = 45, Ln = 46, Rn = 48, zn = 57, H = "0";
|
|
578
|
+
function Bn(e, t) {
|
|
578
579
|
let n = typeof e == "number" ? e : Number(e);
|
|
579
580
|
if (!Number.isFinite(n)) return e;
|
|
580
581
|
let r = String(n);
|
|
581
582
|
if (typeof t == "number" && t > 0) {
|
|
582
583
|
let e = 0, n = "", i = r.charCodeAt(0);
|
|
583
|
-
(i ===
|
|
584
|
+
(i === In || i === Pn) && (n = r[0], e = 1);
|
|
584
585
|
let a = r.indexOf(".", e), o = a === -1 ? r.length : a, s = r.slice(e, o), c = a === -1 ? "" : r.slice(a);
|
|
585
|
-
s ||=
|
|
586
|
+
s ||= H;
|
|
586
587
|
let l = s.length;
|
|
587
|
-
return l < t && (s =
|
|
588
|
+
return l < t && (s = H.repeat(t - l) + s), n + s + c;
|
|
588
589
|
}
|
|
589
590
|
return r;
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
+
function Vn(e, t) {
|
|
592
593
|
if (!t || !Number.isFinite(t)) return e;
|
|
593
594
|
if (typeof e == "number") {
|
|
594
595
|
if (!Number.isFinite(e)) return e;
|
|
595
|
-
let n =
|
|
596
|
+
let n = Hn(String(e), t), r = Number(n);
|
|
596
597
|
return Number.isFinite(r) ? r : e;
|
|
597
598
|
}
|
|
598
599
|
if (typeof e == "string") {
|
|
599
600
|
let n = !1;
|
|
600
601
|
for (let t = 0; t < e.length; t++) {
|
|
601
602
|
let r = e.charCodeAt(t);
|
|
602
|
-
if (r >=
|
|
603
|
+
if (r >= Rn && r <= zn) {
|
|
603
604
|
n = !0;
|
|
604
605
|
break;
|
|
605
606
|
}
|
|
606
607
|
}
|
|
607
|
-
return !n ||
|
|
608
|
+
return !n || s(e) === void 0 ? e : Hn(e, t);
|
|
608
609
|
}
|
|
609
610
|
return e;
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
+
function Hn(e, t) {
|
|
612
613
|
let n = e.trim();
|
|
613
614
|
if (!n) return e;
|
|
614
615
|
let r = 0, i = "", a = n.charCodeAt(0);
|
|
615
|
-
(a ===
|
|
616
|
+
(a === In || a === Pn) && (i = n[0], r = 1);
|
|
616
617
|
let o = -1;
|
|
617
618
|
for (let e = r; e < n.length; e++) {
|
|
618
619
|
let t = n.charCodeAt(e);
|
|
619
|
-
if (t ===
|
|
620
|
+
if (t === Ln || t === Fn) {
|
|
620
621
|
o = e;
|
|
621
622
|
break;
|
|
622
623
|
}
|
|
623
624
|
}
|
|
624
625
|
let s = o === -1 ? n.length : o, c = o === -1 ? "" : n.slice(o), l = n.slice(r, s);
|
|
625
|
-
l =
|
|
626
|
+
l = Be(l), l.length === 0 && (l = H);
|
|
626
627
|
let u = t | 0;
|
|
627
628
|
if (u <= 0) {
|
|
628
629
|
let e = 0;
|
|
629
|
-
for (; e < l.length && l.charCodeAt(e) ===
|
|
630
|
-
l = e === l.length ?
|
|
630
|
+
for (; e < l.length && l.charCodeAt(e) === Rn;) e++;
|
|
631
|
+
l = e === l.length ? H : l.slice(e);
|
|
631
632
|
} else if (u > 0) {
|
|
632
633
|
let e = l.length;
|
|
633
|
-
e < u && (l =
|
|
634
|
+
e < u && (l = H.repeat(u - e) + l);
|
|
634
635
|
}
|
|
635
636
|
return i + l + c;
|
|
636
637
|
}
|
|
637
638
|
//#endregion
|
|
638
639
|
//#region src/formatters/pipeline/dependencies.ts
|
|
639
|
-
function
|
|
640
|
+
function Un(e) {
|
|
640
641
|
let n = h(e);
|
|
641
642
|
if (!n.ok || !n.plan) return [];
|
|
642
643
|
let r = [], i = /* @__PURE__ */ new Set();
|
|
@@ -655,7 +656,7 @@ function Vt(e) {
|
|
|
655
656
|
}
|
|
656
657
|
return r;
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
+
function Wn(e, n) {
|
|
659
660
|
let r = [], i = [], a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = (e) => {
|
|
660
661
|
let s = e?.trim();
|
|
661
662
|
if (s) {
|
|
@@ -670,7 +671,7 @@ function Ht(e, n) {
|
|
|
670
671
|
let e = n[t];
|
|
671
672
|
if (e) {
|
|
672
673
|
for (let t of Object.values(e.cellRenderer?.bindings ?? {})) s(t);
|
|
673
|
-
for (let t of
|
|
674
|
+
for (let t of Un(e.formattersPipeline)) s(t);
|
|
674
675
|
}
|
|
675
676
|
}
|
|
676
677
|
return {
|
|
@@ -679,48 +680,49 @@ function Ht(e, n) {
|
|
|
679
680
|
};
|
|
680
681
|
}
|
|
681
682
|
//#endregion
|
|
682
|
-
//#region src/
|
|
683
|
-
var K = /* @__PURE__ */ new Map(),
|
|
684
|
-
function
|
|
685
|
-
let t =
|
|
686
|
-
for (let n = 0; n < e.length; n++) t = (t <<
|
|
687
|
-
return "id_" + t.toString(
|
|
688
|
-
}
|
|
689
|
-
function
|
|
690
|
-
let n =
|
|
683
|
+
//#region src/types/valueStateConstants.ts
|
|
684
|
+
var U = "none", W = "information", G = "success", K = "warning", q = "error", Gn = 5381, Kn = 5, qn = 36, J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
685
|
+
function Jn(e) {
|
|
686
|
+
let t = Gn;
|
|
687
|
+
for (let n = 0; n < e.length; n++) t = (t << Kn) + t + e.charCodeAt(n) >>> 0;
|
|
688
|
+
return "id_" + t.toString(qn);
|
|
689
|
+
}
|
|
690
|
+
function X(e, t) {
|
|
691
|
+
let n = Y.get(e);
|
|
691
692
|
if (n) return {
|
|
692
693
|
id: n,
|
|
693
694
|
isNew: !1
|
|
694
695
|
};
|
|
695
|
-
let r =
|
|
696
|
-
return
|
|
696
|
+
let r = Jn(e), i = t();
|
|
697
|
+
return J.set(r, i), Y.set(e, r), {
|
|
697
698
|
id: r,
|
|
698
699
|
isNew: !0
|
|
699
700
|
};
|
|
700
701
|
}
|
|
701
|
-
function
|
|
702
|
-
let t =
|
|
703
|
-
if (t) return
|
|
702
|
+
function Z(e) {
|
|
703
|
+
let t = Y.get(e);
|
|
704
|
+
if (t) return J.get(t);
|
|
704
705
|
}
|
|
705
|
-
function
|
|
706
|
-
let n =
|
|
707
|
-
return n ? n(t) :
|
|
706
|
+
function Yn(e, t) {
|
|
707
|
+
let n = J.get(e);
|
|
708
|
+
return n ? n(t) : U;
|
|
708
709
|
}
|
|
709
|
-
function
|
|
710
|
-
return
|
|
710
|
+
function Xn(e) {
|
|
711
|
+
return J.get(e);
|
|
711
712
|
}
|
|
712
|
-
function
|
|
713
|
-
return Array.from(
|
|
713
|
+
function Zn() {
|
|
714
|
+
return Array.from(J.keys());
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
-
|
|
716
|
+
function Qn() {
|
|
717
|
+
J.clear(), Y.clear();
|
|
717
718
|
}
|
|
718
719
|
//#endregion
|
|
719
720
|
//#region src/formatters/valueState/fixedValueStateResolver.ts
|
|
720
|
-
function
|
|
721
|
-
|
|
721
|
+
function $n(e, t) {
|
|
722
|
+
let n = e.map(([e, t]) => `${e}:${t}`).join(",");
|
|
723
|
+
return `${oe}|${n}|${t}`;
|
|
722
724
|
}
|
|
723
|
-
function
|
|
725
|
+
function er(e, t) {
|
|
724
726
|
let n = new Map(Object.entries(e));
|
|
725
727
|
return (e) => {
|
|
726
728
|
if (e == null) return t;
|
|
@@ -728,43 +730,44 @@ function Jt(e, t) {
|
|
|
728
730
|
return n.get(r) ?? t;
|
|
729
731
|
};
|
|
730
732
|
}
|
|
731
|
-
function
|
|
732
|
-
let t = e.fallbackState ?? "none", n =
|
|
733
|
+
function tr(e) {
|
|
734
|
+
let t = e.fallbackState ?? "none", n = $n(Object.entries(e.entries).sort(([e], [t]) => Pe(e, t)), t);
|
|
733
735
|
return {
|
|
734
736
|
entries: e.entries,
|
|
735
737
|
fallbackState: t,
|
|
736
738
|
canonicalKey: n
|
|
737
739
|
};
|
|
738
740
|
}
|
|
739
|
-
function
|
|
740
|
-
let { entries: t, fallbackState: n, canonicalKey: r } =
|
|
741
|
+
function nr(e) {
|
|
742
|
+
let { entries: t, fallbackState: n, canonicalKey: r } = tr(e), { id: i } = X(r, () => er(t, n));
|
|
741
743
|
return i;
|
|
742
744
|
}
|
|
743
|
-
function
|
|
744
|
-
let { entries: t, fallbackState: n, canonicalKey: r } =
|
|
745
|
-
return
|
|
745
|
+
function rr(e) {
|
|
746
|
+
let { entries: t, fallbackState: n, canonicalKey: r } = tr(e);
|
|
747
|
+
return Z(r) || (X(r, () => er(t, n)), Z(r));
|
|
746
748
|
}
|
|
747
749
|
//#endregion
|
|
748
750
|
//#region src/formatters/valueState/thresholdValueStateResolver.ts
|
|
749
|
-
function
|
|
751
|
+
function ir(e) {
|
|
750
752
|
return typeof e == "number" ? {
|
|
751
753
|
value: e,
|
|
752
|
-
boundary:
|
|
754
|
+
boundary: ie
|
|
753
755
|
} : {
|
|
754
756
|
value: e.value,
|
|
755
757
|
boundary: e.boundary ?? "upper"
|
|
756
758
|
};
|
|
757
759
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
760
|
+
function ar(e, t, n) {
|
|
761
|
+
let r = e.map((e) => `${e.value}:${e.boundary}`).join(",");
|
|
762
|
+
return `${le}|${r}|${t.join(",")}|${n}`;
|
|
760
763
|
}
|
|
761
|
-
function
|
|
764
|
+
function or(e, t) {
|
|
762
765
|
if (t.length !== e.length + 1) throw Error(`Количество состояний (${t.length}) должно быть равно количеству порогов + 1 (${e.length + 1})`);
|
|
763
766
|
let n = /* @__PURE__ */ new Set();
|
|
764
767
|
for (let t of e) n.has(t.value) && console.warn(`Дублирующееся пороговое значение: ${t.value}`), n.add(t.value);
|
|
765
768
|
}
|
|
766
|
-
function
|
|
767
|
-
let r = e.map((e) => e.value), i = e.map((e) => e.boundary ===
|
|
769
|
+
function sr(e, t, n) {
|
|
770
|
+
let r = e.map((e) => e.value), i = e.map((e) => e.boundary === de), a = [...t];
|
|
768
771
|
return (e) => {
|
|
769
772
|
if (e === "" || e == null) return n;
|
|
770
773
|
let t = +e;
|
|
@@ -773,135 +776,132 @@ function tn(e, t, n) {
|
|
|
773
776
|
return a[a.length - 1];
|
|
774
777
|
};
|
|
775
778
|
}
|
|
776
|
-
function
|
|
777
|
-
let t = e.invalidState ?? "none", n = e.thresholds.map(
|
|
778
|
-
return
|
|
779
|
+
function cr(e) {
|
|
780
|
+
let t = e.invalidState ?? "none", n = e.thresholds.map(ir).sort((e, t) => e.value - t.value);
|
|
781
|
+
return or(n, e.states), {
|
|
779
782
|
sortedThresholds: n,
|
|
780
783
|
invalidState: t,
|
|
781
|
-
canonicalKey:
|
|
784
|
+
canonicalKey: ar(n, e.states, t),
|
|
782
785
|
states: e.states
|
|
783
786
|
};
|
|
784
787
|
}
|
|
785
|
-
function
|
|
786
|
-
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } =
|
|
788
|
+
function lr(e) {
|
|
789
|
+
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } = cr(e), { id: a } = X(r, () => sr(t, i, n));
|
|
787
790
|
return a;
|
|
788
791
|
}
|
|
789
|
-
function
|
|
790
|
-
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } =
|
|
791
|
-
return
|
|
792
|
+
function ur(e) {
|
|
793
|
+
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } = cr(e);
|
|
794
|
+
return Z(r) || (X(r, () => sr(t, i, n)), Z(r));
|
|
792
795
|
}
|
|
793
796
|
//#endregion
|
|
794
797
|
//#region src/formatters/pipeline/execute.ts
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
if (i === "number") {
|
|
803
|
-
let t = r?.numberPresetName?.trim();
|
|
804
|
-
return C(e, t && ie(t) ? t : on.number);
|
|
798
|
+
var dr = "pipeline_invalid", fr = "row_based_formula_not_found", pr = "value_state_formula_not_found";
|
|
799
|
+
function mr(e, t, a) {
|
|
800
|
+
if (!Ne(e)) return "";
|
|
801
|
+
let s = l(t.type);
|
|
802
|
+
if (s === "number") {
|
|
803
|
+
let t = a?.numberPresetName?.trim();
|
|
804
|
+
return S(e, t && ne(t) ? t : ce);
|
|
805
805
|
}
|
|
806
|
-
if (
|
|
807
|
-
let t =
|
|
808
|
-
return
|
|
806
|
+
if (s === "date") {
|
|
807
|
+
let t = a?.datePresetName?.trim(), n = t && i(t) ? t : r;
|
|
808
|
+
return p(o(e), n);
|
|
809
809
|
}
|
|
810
810
|
return n(e);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function hr(e) {
|
|
813
813
|
if (e === "success" || e === "warning" || e === "error" || e === "information") return e;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function gr(e, t) {
|
|
816
816
|
switch (e.rowKind) {
|
|
817
|
-
case
|
|
818
|
-
case
|
|
819
|
-
case
|
|
820
|
-
case
|
|
817
|
+
case ue:
|
|
818
|
+
case we:
|
|
819
|
+
case Ce: return !0;
|
|
820
|
+
case te: return t === re;
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function _r(e) {
|
|
824
824
|
let t = h(e.config);
|
|
825
825
|
if (!t.ok || !t.plan) return t.errors.some((e) => e.code === "step_value_state_formula_not_found") ? {
|
|
826
826
|
ok: !1,
|
|
827
|
-
reason:
|
|
827
|
+
reason: pr
|
|
828
828
|
} : t.errors.some((e) => e.code === "step_row_based_override_formula_not_found") ? {
|
|
829
829
|
ok: !1,
|
|
830
|
-
reason:
|
|
830
|
+
reason: fr
|
|
831
831
|
} : {
|
|
832
832
|
ok: !1,
|
|
833
|
-
reason:
|
|
833
|
+
reason: dr
|
|
834
834
|
};
|
|
835
|
-
let { steps: n } = t.plan,
|
|
836
|
-
formulaId:
|
|
837
|
-
keys:
|
|
835
|
+
let { steps: n } = t.plan, r = n.some((e) => e.type === m), i = n.some((e) => e.type === _), a = n.find((e) => e.type === v), o = a?.config.valueSource, s = o?.kind === "formula" ? d({
|
|
836
|
+
formulaId: o.formulaId,
|
|
837
|
+
keys: o.dependencyIds
|
|
838
838
|
}) : void 0;
|
|
839
|
-
if (
|
|
839
|
+
if (s && !s.ok) return {
|
|
840
840
|
ok: !1,
|
|
841
|
-
reason:
|
|
841
|
+
reason: pr
|
|
842
842
|
};
|
|
843
|
-
let
|
|
844
|
-
entries:
|
|
845
|
-
fallbackState:
|
|
846
|
-
}) :
|
|
847
|
-
thresholds:
|
|
848
|
-
states:
|
|
849
|
-
invalidState:
|
|
850
|
-
}) : void 0,
|
|
851
|
-
return
|
|
843
|
+
let c = a?.config.resolver.kind === "fixed" ? nr({
|
|
844
|
+
entries: a.config.resolver.entries,
|
|
845
|
+
fallbackState: a.config.resolver.fallbackState
|
|
846
|
+
}) : a?.config.resolver.kind === "threshold" ? lr({
|
|
847
|
+
thresholds: a.config.resolver.thresholds,
|
|
848
|
+
states: a.config.resolver.states,
|
|
849
|
+
invalidState: a.config.resolver.invalidState
|
|
850
|
+
}) : void 0, l = n.find((e) => e.type === m), u = l?.config.mode === "formula" ? be(l.config.formulaId) : void 0;
|
|
851
|
+
return l?.config.mode === "formula" && !u ? {
|
|
852
852
|
ok: !1,
|
|
853
|
-
reason:
|
|
853
|
+
reason: fr
|
|
854
854
|
} : {
|
|
855
855
|
ok: !0,
|
|
856
856
|
executor: {
|
|
857
|
-
hasRowBasedOverride:
|
|
858
|
-
hasTypedValueFormat:
|
|
857
|
+
hasRowBasedOverride: r,
|
|
858
|
+
hasTypedValueFormat: i,
|
|
859
859
|
execute: (t) => {
|
|
860
|
-
let r = t.value,
|
|
861
|
-
for (let
|
|
862
|
-
case
|
|
863
|
-
r =
|
|
860
|
+
let r = t.value, a = U, l = !1, d = !0, f = pe, p;
|
|
861
|
+
for (let i of n) switch (i.type) {
|
|
862
|
+
case g:
|
|
863
|
+
r = Bn(r, i.config?.fixed);
|
|
864
864
|
break;
|
|
865
|
-
case
|
|
866
|
-
if (!
|
|
867
|
-
if (
|
|
868
|
-
let e = t.rowData[
|
|
869
|
-
if (e == null &&
|
|
865
|
+
case m:
|
|
866
|
+
if (!gr(t, i.config.mode)) break;
|
|
867
|
+
if (i.config.mode === "field") {
|
|
868
|
+
let e = t.rowData[i.config.fieldKey];
|
|
869
|
+
if (e == null && i.config.fallbackToRaw !== !1) break;
|
|
870
870
|
r = e;
|
|
871
871
|
break;
|
|
872
872
|
}
|
|
873
|
-
if (!
|
|
873
|
+
if (!u) break;
|
|
874
874
|
try {
|
|
875
|
-
let e =
|
|
875
|
+
let e = u.fn(Ae({
|
|
876
876
|
rowData: t.rowData,
|
|
877
877
|
rawValue: r,
|
|
878
878
|
columnId: t.columnId,
|
|
879
|
-
keys:
|
|
879
|
+
keys: i.config.dependencyIds
|
|
880
880
|
}));
|
|
881
|
-
if (e == null &&
|
|
881
|
+
if (e == null && i.config.fallbackToRaw !== !1) break;
|
|
882
882
|
r = e;
|
|
883
883
|
} catch {
|
|
884
|
-
|
|
884
|
+
i.config.fallbackToRaw === !1 && (r = void 0);
|
|
885
885
|
}
|
|
886
886
|
break;
|
|
887
|
-
case
|
|
888
|
-
if (!
|
|
889
|
-
if (
|
|
890
|
-
let e = t.valueStateFormulaRowData ?? t.rowData, n =
|
|
891
|
-
|
|
892
|
-
} else
|
|
893
|
-
|
|
887
|
+
case v:
|
|
888
|
+
if (!c) break;
|
|
889
|
+
if (o?.kind === "formula") {
|
|
890
|
+
let e = t.valueStateFormulaRowData ?? t.rowData, n = o.dependencyIds.every((t) => Object.hasOwn(e, t) && e[t] != null && (typeof e[t] != "string" || e[t].trim() !== "")) && s?.ok ? s.execute(e) : void 0;
|
|
891
|
+
a = n?.ok ? Yn(c, n.value) : U;
|
|
892
|
+
} else a = Yn(c, r);
|
|
893
|
+
l = i.config.icon?.enabled ?? !1, d = i.config.icon?.showValue ?? !0, f = i.config.icon?.position ?? "left", p = l ? hr(a) : void 0, o?.kind === "formula" && a === "none" && (l = !1);
|
|
894
894
|
break;
|
|
895
|
-
case
|
|
895
|
+
case _: r = mr(r, e.column, i.config);
|
|
896
896
|
}
|
|
897
897
|
return {
|
|
898
898
|
value: r,
|
|
899
|
-
state:
|
|
899
|
+
state: a,
|
|
900
900
|
icon: p,
|
|
901
|
-
showIcon:
|
|
902
|
-
showValue:
|
|
901
|
+
showIcon: l,
|
|
902
|
+
showValue: d,
|
|
903
903
|
iconPosition: f,
|
|
904
|
-
hasTypedValueFormat:
|
|
904
|
+
hasTypedValueFormat: i
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
}
|
|
@@ -909,117 +909,117 @@ function ln(e) {
|
|
|
909
909
|
}
|
|
910
910
|
//#endregion
|
|
911
911
|
//#region src/formatters/pipeline/normalize.ts
|
|
912
|
-
var
|
|
912
|
+
var vr = [
|
|
913
913
|
"",
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
914
|
+
U,
|
|
915
|
+
W,
|
|
916
|
+
G,
|
|
917
|
+
K,
|
|
918
|
+
q
|
|
919
919
|
];
|
|
920
920
|
function Q(e) {
|
|
921
|
-
return typeof e == "string" &&
|
|
921
|
+
return typeof e == "string" && vr.some((t) => t === e);
|
|
922
922
|
}
|
|
923
923
|
function $(e) {
|
|
924
924
|
return e === void 0 || typeof e == "boolean";
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function yr(e) {
|
|
927
927
|
return e === void 0 || typeof e == "string";
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
return e === void 0 ? !0 :
|
|
929
|
+
function br(e) {
|
|
930
|
+
return e === void 0 ? !0 : f(e) ? yr(e.numberPresetName) && yr(e.datePresetName) : !1;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
933
|
-
return
|
|
932
|
+
function xr(e) {
|
|
933
|
+
return f(e) ? e.mode === "field" ? typeof e.fieldKey == "string" && $(e.fallbackToRaw) : e.mode === "formula" && typeof e.formulaId == "string" && (e.dependencyIds === void 0 || Array.isArray(e.dependencyIds) && e.dependencyIds.every((e) => typeof e == "string")) && $(e.fallbackToRaw) : !1;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
return typeof e == "number" ||
|
|
935
|
+
function Sr(e) {
|
|
936
|
+
return typeof e == "number" || f(e) && typeof e.value == "number" && (e.boundary === void 0 || e.boundary === "lower" || e.boundary === "upper");
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
if (!
|
|
940
|
-
let { resolver: t, icon: n } = e, r = e.valueSource,
|
|
941
|
-
return !(n === void 0 ||
|
|
938
|
+
function Cr(e) {
|
|
939
|
+
if (!f(e) || !f(e.resolver)) return !1;
|
|
940
|
+
let { resolver: t, icon: n } = e, r = e.valueSource, i = r === void 0 || f(r) && (r.kind === "value" || r.kind === "formula" && typeof r.formulaId == "string" && Array.isArray(r.dependencyIds) && r.dependencyIds.every((e) => typeof e == "string"));
|
|
941
|
+
return !(n === void 0 || f(n) && $(n.enabled) && $(n.showValue) && (n.position === void 0 || n.position === "left" || n.position === "right")) || !i ? !1 : t.kind === "fixed" ? f(t.entries) && Object.values(t.entries).every(Q) && (t.fallbackState === void 0 || Q(t.fallbackState)) : t.kind === "threshold" && Array.isArray(t.thresholds) && t.thresholds.every(Sr) && Array.isArray(t.states) && t.states.every(Q) && (t.invalidState === void 0 || Q(t.invalidState));
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
return !
|
|
943
|
+
function wr(e) {
|
|
944
|
+
return !f(e) || typeof e.id != "string" ? !1 : e.type === "normalizeLeadingZeros" ? e.config === void 0 || f(e.config) && (e.config.fixed === void 0 || typeof e.config.fixed == "number") : e.type === "rowBasedOverride" ? xr(e.config) : e.type === "resolveValueState" ? Cr(e.config) : e.type === "typedValueFormat" && br(e.config);
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
return
|
|
946
|
+
function Tr(e) {
|
|
947
|
+
return f(e) && Array.isArray(e.steps) && e.steps.every(wr);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
949
|
+
function Er(e) {
|
|
950
|
+
return f(e) && typeof e.x == "number" && typeof e.y == "number";
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
return !
|
|
952
|
+
function Dr(e) {
|
|
953
|
+
return !f(e) || typeof e.id != "string" || !Er(e.position) ? !1 : e.type === "source" || e.type === "sink" || wr(e);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
return
|
|
955
|
+
function Or(e) {
|
|
956
|
+
return f(e) && typeof e.id == "string" && typeof e.source == "string" && typeof e.target == "string";
|
|
957
957
|
}
|
|
958
|
-
function
|
|
959
|
-
return
|
|
958
|
+
function kr(e) {
|
|
959
|
+
return f(e) && Array.isArray(e.nodes) && e.nodes.every(Dr) && Array.isArray(e.edges) && e.edges.every(Or);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
961
|
+
function Ar(e) {
|
|
962
|
+
return f(e) && e.version === 1 && (e.plan === void 0 || Tr(e.plan)) && (e.graph === void 0 || kr(e.graph)) && (Tr(e.plan) || kr(e.graph));
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
if (
|
|
964
|
+
function jr(e) {
|
|
965
|
+
if (Ar(e) && h(e).ok) return De(e);
|
|
966
966
|
}
|
|
967
967
|
//#endregion
|
|
968
968
|
//#region src/formatters/pipeline/definitions.ts
|
|
969
|
-
var
|
|
969
|
+
var Mr = Object.freeze([
|
|
970
970
|
{
|
|
971
|
-
id:
|
|
971
|
+
id: g,
|
|
972
972
|
name: "Нормализация ведущих нулей",
|
|
973
973
|
description: "Нормализует числовое значение по правилам fixed."
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
|
-
id:
|
|
976
|
+
id: m,
|
|
977
977
|
name: "Контекстная формула",
|
|
978
978
|
description: "Подменяет значение из другого поля текущей строки или отдельной формулы."
|
|
979
979
|
},
|
|
980
980
|
{
|
|
981
|
-
id:
|
|
981
|
+
id: v,
|
|
982
982
|
name: "Определение состояния значения",
|
|
983
983
|
description: "Вычисляет value state и опционально настраивает отображение статусной иконки."
|
|
984
984
|
},
|
|
985
985
|
{
|
|
986
|
-
id:
|
|
986
|
+
id: _,
|
|
987
987
|
name: "Типизированное форматирование",
|
|
988
988
|
description: "Формирует итоговый внешний вид значения по типу и роли столбца."
|
|
989
989
|
}
|
|
990
|
-
]),
|
|
991
|
-
function
|
|
992
|
-
return
|
|
990
|
+
]), Nr = new Map(Mr.map((e) => [e.id, e]));
|
|
991
|
+
function Pr() {
|
|
992
|
+
return Mr;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
return
|
|
994
|
+
function Fr(e) {
|
|
995
|
+
return Nr.get(e);
|
|
996
996
|
}
|
|
997
997
|
//#endregion
|
|
998
998
|
//#region src/formatters/pipeline/rekey.ts
|
|
999
|
-
function
|
|
999
|
+
function Ir(e) {
|
|
1000
1000
|
return e.type === "source" || e.type === "sink";
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Lr(e, t) {
|
|
1003
1003
|
switch (e.type) {
|
|
1004
|
-
case
|
|
1005
|
-
case
|
|
1004
|
+
case me:
|
|
1005
|
+
case je: return {
|
|
1006
1006
|
...e,
|
|
1007
1007
|
id: t,
|
|
1008
1008
|
position: { ...e.position }
|
|
1009
1009
|
};
|
|
1010
|
-
case
|
|
1010
|
+
case _: return {
|
|
1011
1011
|
...e,
|
|
1012
1012
|
id: t,
|
|
1013
1013
|
position: { ...e.position },
|
|
1014
1014
|
config: e.config ? { ...e.config } : void 0
|
|
1015
1015
|
};
|
|
1016
|
-
case
|
|
1016
|
+
case g: return {
|
|
1017
1017
|
...e,
|
|
1018
1018
|
id: t,
|
|
1019
1019
|
position: { ...e.position },
|
|
1020
1020
|
config: e.config ? { ...e.config } : void 0
|
|
1021
1021
|
};
|
|
1022
|
-
case
|
|
1022
|
+
case m: return {
|
|
1023
1023
|
...e,
|
|
1024
1024
|
id: t,
|
|
1025
1025
|
position: { ...e.position },
|
|
@@ -1028,42 +1028,42 @@ function kn(e, t) {
|
|
|
1028
1028
|
dependencyIds: e.config.dependencyIds ? [...e.config.dependencyIds] : void 0
|
|
1029
1029
|
} : { ...e.config }
|
|
1030
1030
|
};
|
|
1031
|
-
case
|
|
1031
|
+
case v: return {
|
|
1032
1032
|
...e,
|
|
1033
1033
|
id: t,
|
|
1034
1034
|
position: { ...e.position },
|
|
1035
|
-
config:
|
|
1035
|
+
config: Se(e.config)
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Rr(e, t) {
|
|
1040
1040
|
let n = /* @__PURE__ */ new Map();
|
|
1041
|
-
for (let r of e.nodes) n.set(r.id,
|
|
1041
|
+
for (let r of e.nodes) n.set(r.id, Ir(r) ? r.id : t());
|
|
1042
1042
|
let r = e.edges.map((e) => ({
|
|
1043
1043
|
id: t(),
|
|
1044
1044
|
source: n.get(e.source) ?? e.source,
|
|
1045
1045
|
target: n.get(e.target) ?? e.target
|
|
1046
1046
|
}));
|
|
1047
1047
|
return {
|
|
1048
|
-
nodes: e.nodes.map((e) =>
|
|
1048
|
+
nodes: e.nodes.map((e) => Lr(e, n.get(e.id) ?? e.id)),
|
|
1049
1049
|
edges: r,
|
|
1050
1050
|
viewport: e.viewport ? { ...e.viewport } : void 0
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function zr(e, t) {
|
|
1054
1054
|
return { steps: e.steps.map((e) => {
|
|
1055
1055
|
switch (e.type) {
|
|
1056
|
-
case
|
|
1056
|
+
case _: return {
|
|
1057
1057
|
...e,
|
|
1058
1058
|
id: t(),
|
|
1059
1059
|
config: e.config ? { ...e.config } : void 0
|
|
1060
1060
|
};
|
|
1061
|
-
case
|
|
1061
|
+
case g: return {
|
|
1062
1062
|
...e,
|
|
1063
1063
|
id: t(),
|
|
1064
1064
|
config: e.config ? { ...e.config } : void 0
|
|
1065
1065
|
};
|
|
1066
|
-
case
|
|
1066
|
+
case m: return {
|
|
1067
1067
|
...e,
|
|
1068
1068
|
id: t(),
|
|
1069
1069
|
config: e.config.mode === "formula" ? {
|
|
@@ -1071,51 +1071,51 @@ function jn(e, t) {
|
|
|
1071
1071
|
dependencyIds: e.config.dependencyIds ? [...e.config.dependencyIds] : void 0
|
|
1072
1072
|
} : { ...e.config }
|
|
1073
1073
|
};
|
|
1074
|
-
case
|
|
1074
|
+
case v: return {
|
|
1075
1075
|
...e,
|
|
1076
1076
|
id: t(),
|
|
1077
|
-
config:
|
|
1077
|
+
config: Se(e.config)
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
1080
|
}) };
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Br(e, t = Fe) {
|
|
1083
1083
|
if (!e) return;
|
|
1084
|
-
let n = e.graph ?
|
|
1084
|
+
let n = e.graph ? Rr(e.graph, t) : void 0, r = n ? Te(n) : void 0;
|
|
1085
1085
|
return {
|
|
1086
1086
|
version: e.version,
|
|
1087
1087
|
graph: n,
|
|
1088
|
-
plan: r?.ok && r.plan ? r.plan : e.plan ?
|
|
1088
|
+
plan: r?.ok && r.plan ? r.plan : e.plan ? zr(e.plan, t) : void 0
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
//#endregion
|
|
1092
1092
|
//#region src/formatters/pipeline/runtime.ts
|
|
1093
|
-
var
|
|
1093
|
+
var Vr = () => ({
|
|
1094
1094
|
ok: !1,
|
|
1095
|
-
reason:
|
|
1095
|
+
reason: u
|
|
1096
1096
|
});
|
|
1097
|
-
function
|
|
1097
|
+
function Hr(e, t) {
|
|
1098
1098
|
return {
|
|
1099
1099
|
value: e,
|
|
1100
|
-
state:
|
|
1100
|
+
state: U,
|
|
1101
1101
|
showIcon: !1,
|
|
1102
1102
|
showValue: !0,
|
|
1103
|
-
iconPosition:
|
|
1103
|
+
iconPosition: pe,
|
|
1104
1104
|
overflowTooltip: t
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return t ?
|
|
1107
|
+
function Ur(e, t) {
|
|
1108
|
+
return t ? mr(e, t) : n(e);
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function Wr(e) {
|
|
1111
1111
|
if (!e.formulaId) return;
|
|
1112
|
-
let t =
|
|
1112
|
+
let t = d({
|
|
1113
1113
|
formulaId: e.formulaId,
|
|
1114
1114
|
keys: e.formulaDependencies
|
|
1115
1115
|
});
|
|
1116
|
-
return t.ok ? t.execute :
|
|
1116
|
+
return t.ok ? t.execute : Vr;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function Gr(e, t, n) {
|
|
1119
1119
|
if (!n.formulaId) return {
|
|
1120
1120
|
value: e,
|
|
1121
1121
|
shouldRenderEmpty: !1
|
|
@@ -1133,22 +1133,22 @@ function Ln(e, t, n) {
|
|
|
1133
1133
|
shouldRenderEmpty: n.purelyDerived === !0
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Kr(e, t, n) {
|
|
1137
1137
|
let r = n.formattersPipelineExecutor;
|
|
1138
|
-
if (!r) return
|
|
1138
|
+
if (!r) return Hr(Ur(t, n), n.overflowTooltip === !0);
|
|
1139
1139
|
let i = r.execute({
|
|
1140
1140
|
value: t,
|
|
1141
1141
|
rowData: e.rowData,
|
|
1142
1142
|
valueStateFormulaRowData: e.valueStateFormulaRowData,
|
|
1143
1143
|
rowKind: e.rowKind,
|
|
1144
|
-
isGroupRow: e.rowKind ===
|
|
1145
|
-
isTotalsRow: e.rowKind ===
|
|
1144
|
+
isGroupRow: e.rowKind === ue,
|
|
1145
|
+
isTotalsRow: e.rowKind === te,
|
|
1146
1146
|
rowLevel: e.rowLevel ?? 0,
|
|
1147
1147
|
groupingIds: e.groupingIds ?? [],
|
|
1148
1148
|
columnId: n.id
|
|
1149
1149
|
});
|
|
1150
1150
|
return {
|
|
1151
|
-
value: i.hasTypedValueFormat ? i.value :
|
|
1151
|
+
value: i.hasTypedValueFormat ? i.value : Ur(i.value, n),
|
|
1152
1152
|
state: i.state,
|
|
1153
1153
|
icon: i.icon,
|
|
1154
1154
|
showIcon: i.showIcon,
|
|
@@ -1157,40 +1157,40 @@ function Rn(e, t, n) {
|
|
|
1157
1157
|
overflowTooltip: n.overflowTooltip === !0
|
|
1158
1158
|
};
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return t.shouldRenderEmpty || n.emptyWhenZero &&
|
|
1160
|
+
function qr(e, t, n) {
|
|
1161
|
+
return t.shouldRenderEmpty || n.emptyWhenZero && b(t.value) ? {
|
|
1162
1162
|
...e,
|
|
1163
1163
|
value: ""
|
|
1164
1164
|
} : e;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1167
|
-
let t =
|
|
1166
|
+
function Jr(e) {
|
|
1167
|
+
let t = Wr(e);
|
|
1168
1168
|
if (t ? e.formulaExecutor = t : delete e.formulaExecutor, !e.formattersPipeline) return delete e.formattersPipelineExecutor, e;
|
|
1169
|
-
let n =
|
|
1169
|
+
let n = _r({
|
|
1170
1170
|
config: e.formattersPipeline,
|
|
1171
1171
|
column: e
|
|
1172
1172
|
});
|
|
1173
1173
|
return n.ok ? e.formattersPipelineExecutor = n.executor : delete e.formattersPipelineExecutor, e;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Yr(e) {
|
|
1176
1176
|
let t = {};
|
|
1177
|
-
for (let [n, r] of Object.entries(e)) r && (t[n] =
|
|
1177
|
+
for (let [n, r] of Object.entries(e)) r && (t[n] = Jr(r));
|
|
1178
1178
|
return t;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
if (!e.field) return
|
|
1182
|
-
let t =
|
|
1183
|
-
return
|
|
1180
|
+
function Xr(e) {
|
|
1181
|
+
if (!e.field) return Hr(n(e.rawValue), !1);
|
|
1182
|
+
let t = Gr(e.rawValue, e.rowData, e.field);
|
|
1183
|
+
return qr(Kr(e, t.value, e.field), t, e.field);
|
|
1184
1184
|
}
|
|
1185
1185
|
//#endregion
|
|
1186
1186
|
//#region src/formatters/valueState/presentation.ts
|
|
1187
|
-
var
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
],
|
|
1187
|
+
var Zr = [
|
|
1188
|
+
U,
|
|
1189
|
+
W,
|
|
1190
|
+
G,
|
|
1191
|
+
K,
|
|
1192
|
+
q
|
|
1193
|
+
], Qr = {
|
|
1194
1194
|
"": "transparent",
|
|
1195
1195
|
none: "var(--content-1)",
|
|
1196
1196
|
information: "var(--info-text)",
|
|
@@ -1200,16 +1200,16 @@ var Un = [
|
|
|
1200
1200
|
};
|
|
1201
1201
|
//#endregion
|
|
1202
1202
|
//#region src/formatters/valueState/resolveValueStateClassName.ts
|
|
1203
|
-
function
|
|
1203
|
+
function $r(e, t) {
|
|
1204
1204
|
switch (e) {
|
|
1205
|
-
case
|
|
1206
|
-
case
|
|
1207
|
-
case
|
|
1208
|
-
case
|
|
1205
|
+
case G: return "statusSuccess";
|
|
1206
|
+
case K: return "statusWarning";
|
|
1207
|
+
case q: return "statusError";
|
|
1208
|
+
case W: return "statusInfo";
|
|
1209
1209
|
default: return t;
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
1212
|
//#endregion
|
|
1213
|
-
export {
|
|
1213
|
+
export { P as $, An as A, C as At, Cn as B, Ge as Bt, Yn as C, St as Ct, Vn as D, _t as Dt, Bn as E, wt as Et, bn as F, Dt as Ft, R as G, Be as Gt, xn as H, We as Ht, L as I, bt as It, En as J, Le as Jt, Tn as K, ze as Kt, yn as L, Ot as Lt, jn as M, vt as Mt, Mn as N, Et as Nt, V as O, Tt as Ot, On as P, yt as Pt, M as Q, B as R, ct as Rt, Qn as S, mt as St, Wn as T, gt as Tt, Sn as U, Ue as Ut, z as V, Ke as Vt, Dn as W, He as Wt, dn as X, N as Y, on as Z, Jn as _, Ft as _t, Yr as a, nn as at, Zn as b, kt as bt, Fr as c, Bt as ct, _r as d, O as dt, sn as et, mr as f, A as ft, nr as g, It as gt, rr as h, Vt as ht, Jr as i, rn as it, kn as j, xt as jt, Nn as k, Ct as kt, Pr as l, D as lt, lr as m, Lt as mt, Zr as n, cn as nt, Xr as o, j as ot, ur as p, Rt as pt, I as q, Re as qt, Qr as r, tn as rt, Br as s, zt as st, $r as t, ln as tt, jr as u, k as ut, Z as v, Nt as vt, Un as w, ht as wt, X as x, S as xt, Xn as y, At as yt, wn as z, b as zt };
|
|
1214
1214
|
|
|
1215
|
-
//# sourceMappingURL=formatters-
|
|
1215
|
+
//# sourceMappingURL=formatters-CO40zvVB.js.map
|