@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,13 +1,15 @@
|
|
|
1
|
-
import { ct as e, dt as t, ft as n, lt as r, mt as i, ot as a, pt as o, st as s } from "../chunks/formatters-
|
|
2
|
-
import { a as c, y as l } from "../chunks/array-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ct as e, dt as t, ft as n, lt as r, mt as i, ot as a, pt as o, st as s } from "../chunks/formatters-CO40zvVB.js";
|
|
2
|
+
import { a as c, y as l } from "../chunks/array-bd7LYFto.js";
|
|
3
|
+
import { c as u, o as d } from "../chunks/scalarTypeClassification-D4YcGxtQ.js";
|
|
4
|
+
import { r as f } from "../chunks/formulas-Y0HOcFhe.js";
|
|
5
|
+
import { a as p } from "../chunks/utils-DW0Yso1Q.js";
|
|
6
|
+
import { o as m, y as h } from "../chunks/formatDate-CNPcfNte.js";
|
|
7
7
|
import { t as g } from "../chunks/string-comparison-BKT7PXmq.js";
|
|
8
8
|
import { buildTreeTableRows as _ } from "../tree-table/index.js";
|
|
9
|
+
var v = "group", y = "grand";
|
|
10
|
+
//#endregion
|
|
9
11
|
//#region src/analytical-table/runtime/aggregation.ts
|
|
10
|
-
function
|
|
12
|
+
function b(e, t) {
|
|
11
13
|
let n = e.filter((e) => e != null && e !== "");
|
|
12
14
|
if (t === "count") return n.length;
|
|
13
15
|
let r = 0, i = 0, a = Infinity, o = -Infinity;
|
|
@@ -22,7 +24,7 @@ function v(e, t) {
|
|
|
22
24
|
}
|
|
23
25
|
//#endregion
|
|
24
26
|
//#region src/analytical-table/definition/calculations.ts
|
|
25
|
-
function
|
|
27
|
+
function x(e, t = e.map((e) => e.id)) {
|
|
26
28
|
let n = new Map(e.map((e) => [e.id, e]));
|
|
27
29
|
if (n.size !== e.length) throw Error("Идентификаторы аналитических столбцов должны быть уникальны.");
|
|
28
30
|
let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = [], o = [], s = (e) => {
|
|
@@ -35,7 +37,7 @@ function y(e, t = e.map((e) => e.id)) {
|
|
|
35
37
|
let l = c(t.formula?.dependencies ?? t.calculate?.dependencies ?? []);
|
|
36
38
|
for (let e of l) s(e);
|
|
37
39
|
if (t.formula) {
|
|
38
|
-
let n =
|
|
40
|
+
let n = f({
|
|
39
41
|
formulaId: t.formula.formulaId,
|
|
40
42
|
keys: t.formula.dependencies
|
|
41
43
|
});
|
|
@@ -62,15 +64,15 @@ function y(e, t = e.map((e) => e.id)) {
|
|
|
62
64
|
requiredColumnIds: a
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
|
-
function
|
|
67
|
+
function S(e, t) {
|
|
66
68
|
let n = { ...e };
|
|
67
69
|
for (let e of t.steps) n[e.columnId] = e.compute(n);
|
|
68
70
|
return n;
|
|
69
71
|
}
|
|
70
72
|
//#endregion
|
|
71
73
|
//#region src/analytical-table/definition/compileAnalyticalTableDefinition.ts
|
|
72
|
-
function
|
|
73
|
-
let t = [...e.columns, ...e.dataFields ?? []], n =
|
|
74
|
+
function C(e) {
|
|
75
|
+
let t = [...e.columns, ...e.dataFields ?? []], n = x(t);
|
|
74
76
|
return {
|
|
75
77
|
columns: e.columns,
|
|
76
78
|
fieldsById: new Map(t.map((e) => [e.id, e])),
|
|
@@ -84,7 +86,7 @@ function x(e) {
|
|
|
84
86
|
}
|
|
85
87
|
//#endregion
|
|
86
88
|
//#region src/analytical-table/definition/validateAnalyticalView.ts
|
|
87
|
-
function
|
|
89
|
+
function w(e, t) {
|
|
88
90
|
for (let n of [...t.sorting ?? [], ...t.filters ?? []]) if (!e.fieldsById.has(n.id)) throw Error(`Неизвестный аналитический столбец: ${n.id}`);
|
|
89
91
|
let n = /* @__PURE__ */ new Set();
|
|
90
92
|
for (let e of t.grouping ?? []) {
|
|
@@ -94,8 +96,11 @@ function S(e, t) {
|
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
//#endregion
|
|
99
|
+
//#region src/analytical-table/runtime/analyticalViewConstants.ts
|
|
100
|
+
var ee = "equals", te = "notEquals", T = "contains", E = "startsWith", ne = "between", D = "empty", O = "notEmpty";
|
|
101
|
+
//#endregion
|
|
97
102
|
//#region src/analytical-table/projections/indexAnalyticalRows.ts
|
|
98
|
-
function
|
|
103
|
+
function k(e) {
|
|
99
104
|
let t = [], n = [], r = /* @__PURE__ */ new Map(), i = [{
|
|
100
105
|
rows: e,
|
|
101
106
|
visible: !0,
|
|
@@ -122,16 +127,16 @@ function C(e) {
|
|
|
122
127
|
}
|
|
123
128
|
//#endregion
|
|
124
129
|
//#region src/analytical-table/projections/resolveRowsProjection.ts
|
|
125
|
-
function
|
|
130
|
+
function A(e, t) {
|
|
126
131
|
return t === e.rows ? e : {
|
|
127
132
|
...e,
|
|
128
133
|
rows: t,
|
|
129
|
-
...
|
|
134
|
+
...k(t)
|
|
130
135
|
};
|
|
131
136
|
}
|
|
132
137
|
//#endregion
|
|
133
138
|
//#region src/analytical-table/projections/expansion.ts
|
|
134
|
-
function
|
|
139
|
+
function j(e, t) {
|
|
135
140
|
let n;
|
|
136
141
|
for (let r = 0; r < e.length; r++) {
|
|
137
142
|
let i = t.get(e[r]);
|
|
@@ -139,21 +144,24 @@ function T(e, t) {
|
|
|
139
144
|
}
|
|
140
145
|
return n ?? e;
|
|
141
146
|
}
|
|
142
|
-
function
|
|
147
|
+
function M(e, t) {
|
|
143
148
|
let n = t === "all", r = new Set(n ? [] : t), i = /* @__PURE__ */ new Map();
|
|
144
149
|
for (let t = e.flatRows.length - 1; t >= 0; t--) {
|
|
145
|
-
let a = e.flatRows[t], o =
|
|
150
|
+
let a = e.flatRows[t], o = j(a.children, i), s = a.isExpandable && (n || r.has(a.id));
|
|
146
151
|
(s !== a.isExpanded || o !== a.children) && i.set(a, {
|
|
147
152
|
...a,
|
|
148
153
|
isExpanded: s,
|
|
149
154
|
children: o
|
|
150
155
|
});
|
|
151
156
|
}
|
|
152
|
-
return i.size === 0 ? e :
|
|
157
|
+
return i.size === 0 ? e : A(e, j(e.rows, i));
|
|
153
158
|
}
|
|
154
159
|
//#endregion
|
|
160
|
+
//#region src/analytical-table/runtime/analyticalRowConstants.ts
|
|
161
|
+
var re = "data", N = "group";
|
|
162
|
+
//#endregion
|
|
155
163
|
//#region src/analytical-table/runtime/totals.ts
|
|
156
|
-
function
|
|
164
|
+
function P(e, t) {
|
|
157
165
|
let n = [], r = (e) => {
|
|
158
166
|
e.sourceRow && t.has(e.id) && n.push(e.sourceRow);
|
|
159
167
|
for (let t of e.children) r(t);
|
|
@@ -161,25 +169,25 @@ function D(e, t) {
|
|
|
161
169
|
for (let t of e) r(t);
|
|
162
170
|
return n;
|
|
163
171
|
}
|
|
164
|
-
function
|
|
172
|
+
function F(e) {
|
|
165
173
|
let { definition: t, nodes: n, aggregateRowIds: r, scope: i, groupingPath: a = {} } = e, o = {
|
|
166
174
|
scope: i,
|
|
167
|
-
rows:
|
|
175
|
+
rows: P(n, r),
|
|
168
176
|
groupingPath: a
|
|
169
177
|
}, s = { ...a };
|
|
170
178
|
for (let e of t.aggregateFields) {
|
|
171
179
|
let t = e.aggregate;
|
|
172
|
-
t !== void 0 && (s[e.id] = typeof t == "function" ? t(o) :
|
|
180
|
+
t !== void 0 && (s[e.id] = typeof t == "function" ? t(o) : b(o.rows.map((t) => t.values[e.id]), t));
|
|
173
181
|
}
|
|
174
|
-
return Object.assign(s, t.aggregate?.(o)),
|
|
182
|
+
return Object.assign(s, t.aggregate?.(o)), S(s, {
|
|
175
183
|
...t.calculations,
|
|
176
184
|
steps: t.calculations.steps.filter((e) => !Object.hasOwn(s, e.columnId))
|
|
177
185
|
});
|
|
178
186
|
}
|
|
179
187
|
//#endregion
|
|
180
188
|
//#region src/analytical-table/runtime/valueComparison.ts
|
|
181
|
-
function
|
|
182
|
-
return
|
|
189
|
+
function I(e, t) {
|
|
190
|
+
return p(t.map((t) => {
|
|
183
191
|
let n = e[t];
|
|
184
192
|
return [
|
|
185
193
|
t,
|
|
@@ -188,26 +196,26 @@ function k(e, t) {
|
|
|
188
196
|
];
|
|
189
197
|
}));
|
|
190
198
|
}
|
|
191
|
-
function
|
|
199
|
+
function L(e, t, n) {
|
|
192
200
|
if (Object.is(e, t)) return 0;
|
|
193
201
|
if (e == null) return 1;
|
|
194
202
|
if (t == null) return -1;
|
|
195
203
|
if (n?.compare) return n.compare(e, t);
|
|
196
204
|
if (n?.valueType === "date") {
|
|
197
|
-
let n =
|
|
205
|
+
let n = d(e), r = d(t);
|
|
198
206
|
if (n && r) return n.getTime() - r.getTime();
|
|
199
207
|
}
|
|
200
208
|
return typeof e == "number" && typeof t == "number" ? e - t : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : g(String(e), String(t));
|
|
201
209
|
}
|
|
202
210
|
//#endregion
|
|
203
211
|
//#region src/analytical-table/runtime/grouping.ts
|
|
204
|
-
function
|
|
212
|
+
function ie(e) {
|
|
205
213
|
let { grouping: t, definition: n, source: r } = e, i = (e, a, o, s) => {
|
|
206
214
|
let c = t[a];
|
|
207
215
|
if (!c) return e;
|
|
208
216
|
let l = /* @__PURE__ */ new Map();
|
|
209
217
|
for (let t of e) {
|
|
210
|
-
let e =
|
|
218
|
+
let e = I(t.values, c.keyColumnIds), n = l.get(e);
|
|
211
219
|
n ? n.push(t) : l.set(e, [t]);
|
|
212
220
|
}
|
|
213
221
|
return Array.from(l, ([e, t]) => {
|
|
@@ -215,22 +223,22 @@ function j(e) {
|
|
|
215
223
|
...s,
|
|
216
224
|
c.id,
|
|
217
225
|
e
|
|
218
|
-
], u = `analytical-group:${
|
|
226
|
+
], u = `analytical-group:${p(l)}`;
|
|
219
227
|
if (r.sourceRowIds.has(u)) throw Error(`Идентификатор исходной строки совпал с группой: ${u}`);
|
|
220
|
-
let
|
|
221
|
-
for (let e of [...c.keyColumnIds, ...c.displayColumnIds ?? []])
|
|
228
|
+
let d = { ...o };
|
|
229
|
+
for (let e of [...c.keyColumnIds, ...c.displayColumnIds ?? []]) d[e] = t[0].values[e];
|
|
222
230
|
return {
|
|
223
231
|
id: u,
|
|
224
|
-
kind:
|
|
232
|
+
kind: N,
|
|
225
233
|
groupingLevelId: c.id,
|
|
226
|
-
values:
|
|
234
|
+
values: F({
|
|
227
235
|
definition: n,
|
|
228
236
|
nodes: t,
|
|
229
237
|
aggregateRowIds: r.aggregateRowIds,
|
|
230
|
-
scope:
|
|
231
|
-
groupingPath:
|
|
238
|
+
scope: v,
|
|
239
|
+
groupingPath: d
|
|
232
240
|
}),
|
|
233
|
-
children: i(t, a + 1,
|
|
241
|
+
children: i(t, a + 1, d, l)
|
|
234
242
|
};
|
|
235
243
|
});
|
|
236
244
|
};
|
|
@@ -238,7 +246,7 @@ function j(e) {
|
|
|
238
246
|
}
|
|
239
247
|
//#endregion
|
|
240
248
|
//#region src/analytical-table/runtime/buildGroupedModel.ts
|
|
241
|
-
function
|
|
249
|
+
function R(e, t = null, n = 0) {
|
|
242
250
|
return e.map((e) => ({
|
|
243
251
|
id: e.id,
|
|
244
252
|
parentId: t,
|
|
@@ -247,63 +255,63 @@ function M(e, t = null, n = 0) {
|
|
|
247
255
|
original: e.sourceRow?.original,
|
|
248
256
|
values: e.values,
|
|
249
257
|
level: n,
|
|
250
|
-
children:
|
|
258
|
+
children: R(e.children, e.id, n + 1),
|
|
251
259
|
isExpandable: e.children.length > 0,
|
|
252
260
|
isExpanded: !1,
|
|
253
261
|
groupingLevelId: e.groupingLevelId
|
|
254
262
|
}));
|
|
255
263
|
}
|
|
256
|
-
function
|
|
257
|
-
let { definition: t, source: n, filteredRows: r, grouping: i } = e, a =
|
|
264
|
+
function ae(e) {
|
|
265
|
+
let { definition: t, source: n, filteredRows: r, grouping: i } = e, a = R(ie({
|
|
258
266
|
rows: r,
|
|
259
267
|
grouping: i,
|
|
260
268
|
definition: t,
|
|
261
269
|
source: n
|
|
262
|
-
})), o = t.grandTotals ?
|
|
270
|
+
})), o = t.grandTotals ? F({
|
|
263
271
|
definition: t,
|
|
264
272
|
nodes: t.grandTotalsScope === "all" ? n.rows : r,
|
|
265
273
|
aggregateRowIds: n.aggregateRowIds,
|
|
266
|
-
scope:
|
|
274
|
+
scope: y
|
|
267
275
|
}) : null;
|
|
268
276
|
return {
|
|
269
277
|
columns: t.columns,
|
|
270
278
|
rows: a,
|
|
271
|
-
...
|
|
279
|
+
...k(a),
|
|
272
280
|
grandTotals: o,
|
|
273
281
|
diagnostics: n.diagnostics
|
|
274
282
|
};
|
|
275
283
|
}
|
|
276
284
|
//#endregion
|
|
277
285
|
//#region src/analytical-table/runtime/filtering.ts
|
|
278
|
-
function
|
|
286
|
+
function oe(e, t, n) {
|
|
279
287
|
let r = e.values[t.id];
|
|
280
288
|
if (n?.filter) return n.filter(r, t, e);
|
|
281
|
-
let i = t.value, a = (e) =>
|
|
289
|
+
let i = t.value, a = (e) => L(r, e, n), o = r == null || r === "";
|
|
282
290
|
switch (t.operator ?? "equals") {
|
|
283
|
-
case
|
|
284
|
-
case
|
|
285
|
-
case
|
|
286
|
-
case
|
|
291
|
+
case ee: return a(i) === 0;
|
|
292
|
+
case te: return a(i) !== 0;
|
|
293
|
+
case T: return l(String(r ?? "")).includes(l(String(i ?? "")));
|
|
294
|
+
case E: return l(String(r ?? "")).startsWith(l(String(i ?? "")));
|
|
287
295
|
case "in": return Array.isArray(i) && i.some((e) => a(e) === 0);
|
|
288
|
-
case
|
|
296
|
+
case ne: return Array.isArray(i) && i.length === 2 && !o && a(i[0]) >= 0 && a(i[1]) <= 0;
|
|
289
297
|
case "gt": return !o && a(i) > 0;
|
|
290
298
|
case "gte": return !o && a(i) >= 0;
|
|
291
299
|
case "lt": return !o && a(i) < 0;
|
|
292
300
|
case "lte": return !o && a(i) <= 0;
|
|
293
|
-
case
|
|
294
|
-
case
|
|
301
|
+
case D: return o;
|
|
302
|
+
case O: return !o;
|
|
295
303
|
}
|
|
296
304
|
}
|
|
297
|
-
function
|
|
305
|
+
function z(e, t, n) {
|
|
298
306
|
if (t.length === 0) return e;
|
|
299
307
|
let r = [];
|
|
300
308
|
for (let i of e) {
|
|
301
309
|
let e = i.sourceRow;
|
|
302
|
-
if (e && t.every((t) =>
|
|
310
|
+
if (e && t.every((t) => oe(e, t, n.get(t.id)))) {
|
|
303
311
|
r.push(i);
|
|
304
312
|
continue;
|
|
305
313
|
}
|
|
306
|
-
let a =
|
|
314
|
+
let a = z(i.children, t, n);
|
|
307
315
|
a.length > 0 && r.push({
|
|
308
316
|
...i,
|
|
309
317
|
children: a
|
|
@@ -313,17 +321,17 @@ function F(e, t, n) {
|
|
|
313
321
|
}
|
|
314
322
|
//#endregion
|
|
315
323
|
//#region src/analytical-table/runtime/hierarchy.ts
|
|
316
|
-
function
|
|
324
|
+
function B(e, t) {
|
|
317
325
|
if (e.rows.some((e) => e.id.length === 0)) throw Error("Идентификатор аналитической строки не может быть пустым.");
|
|
318
326
|
let n = e.rows.map((e) => ({
|
|
319
327
|
...e,
|
|
320
|
-
values:
|
|
328
|
+
values: S(e.values, t.calculations)
|
|
321
329
|
})), r = _(n, {
|
|
322
330
|
getRowId: (e) => e.id,
|
|
323
331
|
getParentRowId: (e) => e.parentId
|
|
324
332
|
}), i = (e) => ({
|
|
325
333
|
id: e.id,
|
|
326
|
-
kind:
|
|
334
|
+
kind: re,
|
|
327
335
|
sourceRow: r.rowById.get(e.id),
|
|
328
336
|
values: e.values,
|
|
329
337
|
children: (e.children ?? []).map(i)
|
|
@@ -341,11 +349,11 @@ function I(e, t) {
|
|
|
341
349
|
}
|
|
342
350
|
//#endregion
|
|
343
351
|
//#region src/analytical-table/runtime/sorting.ts
|
|
344
|
-
function
|
|
352
|
+
function V(e, t, n) {
|
|
345
353
|
if (t.length === 0) return e;
|
|
346
354
|
let r = (e, r) => {
|
|
347
355
|
for (let i of t) {
|
|
348
|
-
let t =
|
|
356
|
+
let t = L(e.values[i.id], r.values[i.id], n.get(i.id));
|
|
349
357
|
if (t !== 0) return i.desc ? -t : t;
|
|
350
358
|
}
|
|
351
359
|
return 0;
|
|
@@ -360,21 +368,21 @@ function L(e, t, n) {
|
|
|
360
368
|
});
|
|
361
369
|
return t.sort(r), t.every((t, n) => t === e[n]) ? e : t;
|
|
362
370
|
};
|
|
363
|
-
return
|
|
371
|
+
return A(e, i(e.rows));
|
|
364
372
|
}
|
|
365
373
|
//#endregion
|
|
366
374
|
//#region src/analytical-table/runtime/createAnalyticalTableRuntime.ts
|
|
367
|
-
var
|
|
368
|
-
function
|
|
369
|
-
let { definition: t, snapshot: n } = e, r =
|
|
370
|
-
return { getModel(e =
|
|
371
|
-
|
|
372
|
-
let n = e.filters ??
|
|
375
|
+
var H = {}, U = Object.freeze([]);
|
|
376
|
+
function W(e) {
|
|
377
|
+
let { definition: t, snapshot: n } = e, r = B(n, t), i = H, a = r.rows, o, s, c;
|
|
378
|
+
return { getModel(e = H) {
|
|
379
|
+
w(t, e);
|
|
380
|
+
let n = e.filters ?? U, l = e.grouping ?? U, u = e.sorting ?? U, d = e.expandedRowIds ?? U, f = !o || n !== (i.filters ?? U), p = !o || l !== (i.grouping ?? U), m = u !== (i.sorting ?? U), h = d !== (i.expandedRowIds ?? U), g = f ? z(r.rows, n, t.fieldsById) : a, _ = !o || f || p, v = _ ? ae({
|
|
373
381
|
definition: t,
|
|
374
382
|
source: r,
|
|
375
383
|
filteredRows: g,
|
|
376
384
|
grouping: l
|
|
377
|
-
}) : o, y = !s || _ || m, b = y ?
|
|
385
|
+
}) : o, y = !s || _ || m, b = y ? V(v, u, t.fieldsById) : s, x = !c || y || h ? M(y ? b : c ?? b, d) : c;
|
|
378
386
|
return a = g, o = v, s = b, c = x, i = {
|
|
379
387
|
filters: n,
|
|
380
388
|
grouping: l,
|
|
@@ -385,50 +393,51 @@ function B(e) {
|
|
|
385
393
|
}
|
|
386
394
|
//#endregion
|
|
387
395
|
//#region src/analytical-table/buildAnalyticalTableModel.ts
|
|
388
|
-
function
|
|
389
|
-
return
|
|
390
|
-
definition:
|
|
396
|
+
function G(e) {
|
|
397
|
+
return W({
|
|
398
|
+
definition: C(e),
|
|
391
399
|
snapshot: e.snapshot
|
|
392
400
|
}).getModel(e.state);
|
|
393
401
|
}
|
|
394
402
|
//#endregion
|
|
395
|
-
//#region src/analytical-table/dynamic-columns/
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
403
|
+
//#region src/analytical-table/dynamic-columns/analyticalDateColumnConstants.ts
|
|
404
|
+
var K = "week", q = "month", J = "quarter", Y = "year", se = 10, ce = 7, X = 3, le = 366;
|
|
405
|
+
function Z(e) {
|
|
406
|
+
if (typeof e != "string" || e.length !== se) return null;
|
|
407
|
+
let t = u(e, "yyyy-MM-dd");
|
|
399
408
|
return t?.kind === "date-time" ? t.date : null;
|
|
400
409
|
}
|
|
401
|
-
function
|
|
410
|
+
function Q(e, a) {
|
|
402
411
|
switch (a) {
|
|
403
412
|
case "day": return t(e);
|
|
404
|
-
case
|
|
405
|
-
case
|
|
406
|
-
case
|
|
407
|
-
case
|
|
413
|
+
case K: return o(e, 1);
|
|
414
|
+
case q: return n(e);
|
|
415
|
+
case J: return r(e.getFullYear(), Math.floor(e.getMonth() / X) * X, 1);
|
|
416
|
+
case Y: return i(e);
|
|
408
417
|
}
|
|
409
418
|
}
|
|
410
|
-
function
|
|
419
|
+
function ue(t, n) {
|
|
411
420
|
switch (n) {
|
|
412
421
|
case "day": return a(t, 1);
|
|
413
|
-
case
|
|
414
|
-
case
|
|
415
|
-
case
|
|
416
|
-
case
|
|
422
|
+
case K: return a(t, ce);
|
|
423
|
+
case q: return s(t, 1);
|
|
424
|
+
case J: return s(t, X);
|
|
425
|
+
case Y: return e(t, 1);
|
|
417
426
|
}
|
|
418
427
|
}
|
|
419
|
-
function
|
|
420
|
-
let t =
|
|
421
|
-
if (!t || !n ||
|
|
422
|
-
let r = e.maxColumns ??
|
|
428
|
+
function de(e) {
|
|
429
|
+
let t = Z(e.from), n = Z(e.to);
|
|
430
|
+
if (!t || !n || h(t) !== e.from || h(n) !== e.to || e.from > e.to) throw Error("Некорректный календарный диапазон аналитических столбцов.");
|
|
431
|
+
let r = e.maxColumns ?? le;
|
|
423
432
|
if (!Number.isSafeInteger(r) || r < 1) throw Error("Лимит динамических столбцов должен быть положительным целым числом.");
|
|
424
433
|
if (!e.id || e.identityColumnIds.length === 0) throw Error("Динамическим столбцам нужны идентификатор и ключи сопоставления фактов.");
|
|
425
|
-
let i = [], o =
|
|
434
|
+
let i = [], o = Q(t, e.granularity);
|
|
426
435
|
for (; o <= n;) {
|
|
427
436
|
if (i.length >= r) throw Error(`Превышен лимит динамических столбцов: ${r}`);
|
|
428
|
-
let t =
|
|
437
|
+
let t = ue(o, e.granularity), n = h(o), s = h(a(t, -1));
|
|
429
438
|
i.push({
|
|
430
439
|
id: `${e.id}:${e.granularity}:${n}`,
|
|
431
|
-
label: e.granularity === "day" ?
|
|
440
|
+
label: e.granularity === "day" ? m(o) : `${n} — ${s}`,
|
|
432
441
|
from: n < e.from ? e.from : n,
|
|
433
442
|
to: s > e.to ? e.to : s
|
|
434
443
|
}), o = t;
|
|
@@ -441,33 +450,33 @@ function G(e) {
|
|
|
441
450
|
columns: i
|
|
442
451
|
};
|
|
443
452
|
}
|
|
444
|
-
function
|
|
453
|
+
function $(e, t) {
|
|
445
454
|
if (t.options.identityColumnIds.some((t) => e[t] === void 0 || e[t] === null)) return;
|
|
446
|
-
let n =
|
|
455
|
+
let n = Z(e[t.options.dateColumnId]);
|
|
447
456
|
if (!n) return;
|
|
448
|
-
let r =
|
|
449
|
-
if (!(r < t.options.from || r > t.options.to)) return `${t.options.id}:${t.options.granularity}:${
|
|
457
|
+
let r = h(n);
|
|
458
|
+
if (!(r < t.options.from || r > t.options.to)) return `${t.options.id}:${t.options.granularity}:${h(Q(n, t.options.granularity))}`;
|
|
450
459
|
}
|
|
451
|
-
function
|
|
460
|
+
function fe(e, t) {
|
|
452
461
|
let n = /* @__PURE__ */ new Map();
|
|
453
462
|
for (let r of e) {
|
|
454
|
-
let e =
|
|
463
|
+
let e = $(r, t);
|
|
455
464
|
if (!e) continue;
|
|
456
|
-
let i =
|
|
465
|
+
let i = I(r, t.options.identityColumnIds), a = n.get(i);
|
|
457
466
|
a || (a = /* @__PURE__ */ new Map(), n.set(i, a));
|
|
458
467
|
let o = a.get(e);
|
|
459
468
|
o ? o.push(r[t.options.measureColumnId]) : a.set(e, [r[t.options.measureColumnId]]);
|
|
460
469
|
}
|
|
461
470
|
return n;
|
|
462
471
|
}
|
|
463
|
-
function
|
|
464
|
-
let { rows: t, facts: n, plan: r } = e, i =
|
|
472
|
+
function pe(e) {
|
|
473
|
+
let { rows: t, facts: n, plan: r } = e, i = fe(n, r);
|
|
465
474
|
return t.map((e) => {
|
|
466
|
-
let t = i.get(
|
|
475
|
+
let t = i.get(I(e.values, r.options.identityColumnIds)), n = { ...e.values };
|
|
467
476
|
for (let e of r.columns) {
|
|
468
477
|
if (Object.hasOwn(n, e.id)) throw Error(`Динамический столбец перезаписывает исходное поле: ${e.id}`);
|
|
469
478
|
let i = t?.get(e.id);
|
|
470
|
-
n[e.id] = i ?
|
|
479
|
+
n[e.id] = i ? b(i, r.options.aggregation) : null;
|
|
471
480
|
}
|
|
472
481
|
return {
|
|
473
482
|
...e,
|
|
@@ -475,27 +484,28 @@ function J(e) {
|
|
|
475
484
|
};
|
|
476
485
|
});
|
|
477
486
|
}
|
|
478
|
-
function
|
|
487
|
+
function me(e, t) {
|
|
479
488
|
let n = /* @__PURE__ */ new Map();
|
|
480
489
|
for (let r of e) {
|
|
481
|
-
let e =
|
|
490
|
+
let e = $(r, t);
|
|
482
491
|
if (!e) continue;
|
|
483
492
|
let i = n.get(e);
|
|
484
493
|
i ? i.push(r[t.options.measureColumnId]) : n.set(e, [r[t.options.measureColumnId]]);
|
|
485
494
|
}
|
|
486
495
|
return Object.fromEntries(t.columns.map((e) => {
|
|
487
496
|
let r = n.get(e.id);
|
|
488
|
-
return [e.id, r ?
|
|
497
|
+
return [e.id, r ? b(r, t.options.aggregation) : null];
|
|
489
498
|
}));
|
|
490
499
|
}
|
|
500
|
+
var he = "grand";
|
|
491
501
|
//#endregion
|
|
492
502
|
//#region src/analytical-table/projections/exportProjection.ts
|
|
493
|
-
function
|
|
503
|
+
function ge(e) {
|
|
494
504
|
let t = "analytical-grand-total", n = t, r = 1;
|
|
495
505
|
for (; e.rowById.has(n);) n = `${t}:${r++}`;
|
|
496
506
|
return n;
|
|
497
507
|
}
|
|
498
|
-
function
|
|
508
|
+
function _e(e) {
|
|
499
509
|
let { model: t, scope: n = "all", includeGroups: r = !0, includeGrandTotals: i = !1 } = e, a = e.columns ?? t.columns, o = new Set(e.selectedRowIds ?? []), s = n === "visible" ? t.visibleRows : t.flatRows, c = [];
|
|
500
510
|
for (let e of s) !r && e.kind === "group" || n === "selected" && !o.has(e.id) || c.push({
|
|
501
511
|
id: e.id,
|
|
@@ -506,9 +516,9 @@ function Z(e) {
|
|
|
506
516
|
if (i && t.grandTotals) {
|
|
507
517
|
let e = t.grandTotals;
|
|
508
518
|
c.push({
|
|
509
|
-
id:
|
|
519
|
+
id: ge(t),
|
|
510
520
|
level: 0,
|
|
511
|
-
kind:
|
|
521
|
+
kind: he,
|
|
512
522
|
values: a.map((t) => t.formatTotal ? t.formatTotal(e[t.id]) : e[t.id])
|
|
513
523
|
});
|
|
514
524
|
}
|
|
@@ -521,6 +531,6 @@ function Z(e) {
|
|
|
521
531
|
};
|
|
522
532
|
}
|
|
523
533
|
//#endregion
|
|
524
|
-
export {
|
|
534
|
+
export { me as aggregateAnalyticalDateFacts, b as aggregateAnalyticalValues, G as buildAnalyticalTableModel, S as calculateAnalyticalValues, C as compileAnalyticalTableDefinition, x as createAnalyticalCalculationPlan, de as createAnalyticalDateColumnsPlan, W as createAnalyticalTableRuntime, pe as projectAnalyticalDateFacts, M as projectAnalyticalTableExpansion, _e as projectAnalyticalTableExport };
|
|
525
535
|
|
|
526
536
|
//# sourceMappingURL=index.js.map
|