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