@finos/legend-query-builder 3.0.8 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts +20 -20
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTelemetryHelper.js +40 -40
- package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +51 -4
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryLoader.d.ts +30 -0
- package/lib/components/QueryLoader.d.ts.map +1 -0
- package/lib/components/QueryLoader.js +160 -0
- package/lib/components/QueryLoader.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +18 -0
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +152 -15
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +2 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +33 -0
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +34 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/graph-manager/QueryBuilderConst.d.ts +20 -0
- package/lib/graph-manager/QueryBuilderConst.d.ts.map +1 -0
- package/lib/graph-manager/QueryBuilderConst.js +21 -0
- package/lib/graph-manager/QueryBuilderConst.js.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +3 -2
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +27 -14
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderState.d.ts +2 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +7 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +11 -2
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.d.ts +32 -1
- package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.js +32 -0
- package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTextEditorState.js +12 -6
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +30 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.js +17 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/QueryLoaderState.d.ts +67 -0
- package/lib/stores/QueryLoaderState.d.ts.map +1 -0
- package/lib/stores/QueryLoaderState.js +205 -0
- package/lib/stores/QueryLoaderState.js.map +1 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +2 -2
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +14 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts +38 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js +54 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js +80 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +8 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +24 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +23 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts +22 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js +61 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts +28 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js +55 -0
- package/lib/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.js.map +1 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +9 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +3 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +7 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/package.json +8 -8
- package/src/__lib__/QueryBuilderTelemetryHelper.ts +40 -59
- package/src/components/QueryBuilder.tsx +79 -0
- package/src/components/QueryLoader.tsx +501 -0
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +456 -92
- package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +2 -1
- package/src/graph/QueryBuilderMetaModelConst.ts +34 -0
- package/src/graph-manager/QueryBuilderConst.ts +20 -0
- package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +10 -1
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +73 -28
- package/src/index.ts +3 -0
- package/src/stores/QueryBuilderState.ts +8 -0
- package/src/stores/QueryBuilderStateBuilder.ts +33 -2
- package/src/stores/QueryBuilderStateHashUtils.ts +33 -0
- package/src/stores/QueryBuilderTextEditorState.ts +21 -14
- package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +36 -0
- package/src/stores/QueryLoaderState.ts +298 -0
- package/src/stores/explorer/QueryBuilderExplorerState.ts +2 -1
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +1 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +22 -3
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunction.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateCalendarFunctionLoader.ts +83 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +31 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +41 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.ts +175 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Annualized.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cme.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cw_Fm.ts +99 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus2.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Cy_Minus3.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Mtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P12Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P4Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_P52Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pma.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pmtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pqtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorDay.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_PriorYear.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pw_Fm.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pwtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pymtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pyqtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pytd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywa.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Pywtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Qtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_ReportEndDay.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Wtd.ts +98 -0
- package/src/stores/fetch-structure/tds/aggregation/calendarFunctions/QueryBuilderAggregateCalendarFunction_Ytd.ts +98 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +18 -1
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +39 -2
- package/tsconfig.json +38 -0
@@ -0,0 +1,98 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type AbstractPropertyExpression,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
24
|
+
import {
|
25
|
+
type QueryBuilderProjectionColumnState,
|
26
|
+
QueryBuilderSimpleProjectionColumnState,
|
27
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
28
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
29
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
31
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
32
|
+
import {
|
33
|
+
updateAggregateColumnState,
|
34
|
+
buildCalendarFunctionExpression,
|
35
|
+
} from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
36
|
+
|
37
|
+
export class QueryBuilderAggregateCalendarFunction_Pywa
|
38
|
+
extends QueryBuilderAggregateCalendarFunction
|
39
|
+
implements Hashable
|
40
|
+
{
|
41
|
+
getLabel(): string {
|
42
|
+
return `Previous Year's Weekly Average`;
|
43
|
+
}
|
44
|
+
|
45
|
+
isCompatibleWithColumn(
|
46
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
47
|
+
): boolean {
|
48
|
+
if (
|
49
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
50
|
+
) {
|
51
|
+
const propertyType =
|
52
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
53
|
+
.value.genericType.value.rawType;
|
54
|
+
return (
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.NUMBER,
|
57
|
+
PRIMITIVE_TYPE.INTEGER,
|
58
|
+
PRIMITIVE_TYPE.DECIMAL,
|
59
|
+
PRIMITIVE_TYPE.FLOAT,
|
60
|
+
] as string[]
|
61
|
+
).includes(propertyType.path);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
}
|
65
|
+
|
66
|
+
buildCalendarFunctionExpression(
|
67
|
+
p: AbstractPropertyExpression,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildCalendarFunctionExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_PYWA,
|
71
|
+
this.dateColumn,
|
72
|
+
this.calendarType,
|
73
|
+
this.endDate,
|
74
|
+
p,
|
75
|
+
);
|
76
|
+
}
|
77
|
+
|
78
|
+
updateAggregateColumnState(
|
79
|
+
expression: SimpleFunctionExpression,
|
80
|
+
aggregationColumnState: QueryBuilderAggregateColumnState,
|
81
|
+
): void {
|
82
|
+
updateAggregateColumnState(
|
83
|
+
expression,
|
84
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_PYWA,
|
85
|
+
this,
|
86
|
+
aggregationColumnState,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
get hashCode(): string {
|
91
|
+
return hashArray([
|
92
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_PYWA,
|
93
|
+
this.dateColumn ?? '',
|
94
|
+
this.calendarType,
|
95
|
+
this.endDate,
|
96
|
+
]);
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type AbstractPropertyExpression,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
24
|
+
import {
|
25
|
+
type QueryBuilderProjectionColumnState,
|
26
|
+
QueryBuilderSimpleProjectionColumnState,
|
27
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
28
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
29
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
31
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
32
|
+
import {
|
33
|
+
updateAggregateColumnState,
|
34
|
+
buildCalendarFunctionExpression,
|
35
|
+
} from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
36
|
+
|
37
|
+
export class QueryBuilderAggregateCalendarFunction_Pywtd
|
38
|
+
extends QueryBuilderAggregateCalendarFunction
|
39
|
+
implements Hashable
|
40
|
+
{
|
41
|
+
getLabel(): string {
|
42
|
+
return `Previous Year's Week to Date`;
|
43
|
+
}
|
44
|
+
|
45
|
+
isCompatibleWithColumn(
|
46
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
47
|
+
): boolean {
|
48
|
+
if (
|
49
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
50
|
+
) {
|
51
|
+
const propertyType =
|
52
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
53
|
+
.value.genericType.value.rawType;
|
54
|
+
return (
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.NUMBER,
|
57
|
+
PRIMITIVE_TYPE.INTEGER,
|
58
|
+
PRIMITIVE_TYPE.DECIMAL,
|
59
|
+
PRIMITIVE_TYPE.FLOAT,
|
60
|
+
] as string[]
|
61
|
+
).includes(propertyType.path);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
}
|
65
|
+
|
66
|
+
buildCalendarFunctionExpression(
|
67
|
+
p: AbstractPropertyExpression,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildCalendarFunctionExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_PYWTD,
|
71
|
+
this.dateColumn,
|
72
|
+
this.calendarType,
|
73
|
+
this.endDate,
|
74
|
+
p,
|
75
|
+
);
|
76
|
+
}
|
77
|
+
|
78
|
+
updateAggregateColumnState(
|
79
|
+
expression: SimpleFunctionExpression,
|
80
|
+
aggregationColumnState: QueryBuilderAggregateColumnState,
|
81
|
+
): void {
|
82
|
+
updateAggregateColumnState(
|
83
|
+
expression,
|
84
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_PYWTD,
|
85
|
+
this,
|
86
|
+
aggregationColumnState,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
get hashCode(): string {
|
91
|
+
return hashArray([
|
92
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_PYWTD,
|
93
|
+
this.dateColumn ?? '',
|
94
|
+
this.calendarType,
|
95
|
+
this.endDate,
|
96
|
+
]);
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type AbstractPropertyExpression,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
24
|
+
import {
|
25
|
+
type QueryBuilderProjectionColumnState,
|
26
|
+
QueryBuilderSimpleProjectionColumnState,
|
27
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
28
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
29
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
31
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
32
|
+
import {
|
33
|
+
updateAggregateColumnState,
|
34
|
+
buildCalendarFunctionExpression,
|
35
|
+
} from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
36
|
+
|
37
|
+
export class QueryBuilderAggregateCalendarFunction_Qtd
|
38
|
+
extends QueryBuilderAggregateCalendarFunction
|
39
|
+
implements Hashable
|
40
|
+
{
|
41
|
+
getLabel(): string {
|
42
|
+
return 'Quarter to Date';
|
43
|
+
}
|
44
|
+
|
45
|
+
isCompatibleWithColumn(
|
46
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
47
|
+
): boolean {
|
48
|
+
if (
|
49
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
50
|
+
) {
|
51
|
+
const propertyType =
|
52
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
53
|
+
.value.genericType.value.rawType;
|
54
|
+
return (
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.NUMBER,
|
57
|
+
PRIMITIVE_TYPE.INTEGER,
|
58
|
+
PRIMITIVE_TYPE.DECIMAL,
|
59
|
+
PRIMITIVE_TYPE.FLOAT,
|
60
|
+
] as string[]
|
61
|
+
).includes(propertyType.path);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
}
|
65
|
+
|
66
|
+
buildCalendarFunctionExpression(
|
67
|
+
p: AbstractPropertyExpression,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildCalendarFunctionExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_QTD,
|
71
|
+
this.dateColumn,
|
72
|
+
this.calendarType,
|
73
|
+
this.endDate,
|
74
|
+
p,
|
75
|
+
);
|
76
|
+
}
|
77
|
+
|
78
|
+
updateAggregateColumnState(
|
79
|
+
expression: SimpleFunctionExpression,
|
80
|
+
aggregationColumnState: QueryBuilderAggregateColumnState,
|
81
|
+
): void {
|
82
|
+
updateAggregateColumnState(
|
83
|
+
expression,
|
84
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_QTD,
|
85
|
+
this,
|
86
|
+
aggregationColumnState,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
get hashCode(): string {
|
91
|
+
return hashArray([
|
92
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_QTD,
|
93
|
+
this.dateColumn ?? '',
|
94
|
+
this.calendarType,
|
95
|
+
this.endDate,
|
96
|
+
]);
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type AbstractPropertyExpression,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
24
|
+
import {
|
25
|
+
type QueryBuilderProjectionColumnState,
|
26
|
+
QueryBuilderSimpleProjectionColumnState,
|
27
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
28
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
29
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
31
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
32
|
+
import {
|
33
|
+
updateAggregateColumnState,
|
34
|
+
buildCalendarFunctionExpression,
|
35
|
+
} from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
36
|
+
|
37
|
+
export class QueryBuilderAggregateCalendarFunction_ReportEndDay
|
38
|
+
extends QueryBuilderAggregateCalendarFunction
|
39
|
+
implements Hashable
|
40
|
+
{
|
41
|
+
getLabel(): string {
|
42
|
+
return 'Report End Day';
|
43
|
+
}
|
44
|
+
|
45
|
+
isCompatibleWithColumn(
|
46
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
47
|
+
): boolean {
|
48
|
+
if (
|
49
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
50
|
+
) {
|
51
|
+
const propertyType =
|
52
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
53
|
+
.value.genericType.value.rawType;
|
54
|
+
return (
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.NUMBER,
|
57
|
+
PRIMITIVE_TYPE.INTEGER,
|
58
|
+
PRIMITIVE_TYPE.DECIMAL,
|
59
|
+
PRIMITIVE_TYPE.FLOAT,
|
60
|
+
] as string[]
|
61
|
+
).includes(propertyType.path);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
}
|
65
|
+
|
66
|
+
buildCalendarFunctionExpression(
|
67
|
+
p: AbstractPropertyExpression,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildCalendarFunctionExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_REPORT_END_DAY,
|
71
|
+
this.dateColumn,
|
72
|
+
this.calendarType,
|
73
|
+
this.endDate,
|
74
|
+
p,
|
75
|
+
);
|
76
|
+
}
|
77
|
+
|
78
|
+
updateAggregateColumnState(
|
79
|
+
expression: SimpleFunctionExpression,
|
80
|
+
aggregationColumnState: QueryBuilderAggregateColumnState,
|
81
|
+
): void {
|
82
|
+
updateAggregateColumnState(
|
83
|
+
expression,
|
84
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_REPORT_END_DAY,
|
85
|
+
this,
|
86
|
+
aggregationColumnState,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
get hashCode(): string {
|
91
|
+
return hashArray([
|
92
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_REPORT_END_DAY,
|
93
|
+
this.dateColumn ?? '',
|
94
|
+
this.calendarType,
|
95
|
+
this.endDate,
|
96
|
+
]);
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type AbstractPropertyExpression,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
24
|
+
import {
|
25
|
+
type QueryBuilderProjectionColumnState,
|
26
|
+
QueryBuilderSimpleProjectionColumnState,
|
27
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
28
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
29
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
31
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
32
|
+
import {
|
33
|
+
updateAggregateColumnState,
|
34
|
+
buildCalendarFunctionExpression,
|
35
|
+
} from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
36
|
+
|
37
|
+
export class QueryBuilderAggregateCalendarFunction_Wtd
|
38
|
+
extends QueryBuilderAggregateCalendarFunction
|
39
|
+
implements Hashable
|
40
|
+
{
|
41
|
+
getLabel(): string {
|
42
|
+
return 'Week to Date';
|
43
|
+
}
|
44
|
+
|
45
|
+
isCompatibleWithColumn(
|
46
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
47
|
+
): boolean {
|
48
|
+
if (
|
49
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
50
|
+
) {
|
51
|
+
const propertyType =
|
52
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
53
|
+
.value.genericType.value.rawType;
|
54
|
+
return (
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.NUMBER,
|
57
|
+
PRIMITIVE_TYPE.INTEGER,
|
58
|
+
PRIMITIVE_TYPE.DECIMAL,
|
59
|
+
PRIMITIVE_TYPE.FLOAT,
|
60
|
+
] as string[]
|
61
|
+
).includes(propertyType.path);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
}
|
65
|
+
|
66
|
+
buildCalendarFunctionExpression(
|
67
|
+
p: AbstractPropertyExpression,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildCalendarFunctionExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_WTD,
|
71
|
+
this.dateColumn,
|
72
|
+
this.calendarType,
|
73
|
+
this.endDate,
|
74
|
+
p,
|
75
|
+
);
|
76
|
+
}
|
77
|
+
|
78
|
+
updateAggregateColumnState(
|
79
|
+
expression: SimpleFunctionExpression,
|
80
|
+
aggregationColumnState: QueryBuilderAggregateColumnState,
|
81
|
+
): void {
|
82
|
+
updateAggregateColumnState(
|
83
|
+
expression,
|
84
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_WTD,
|
85
|
+
this,
|
86
|
+
aggregationColumnState,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
get hashCode(): string {
|
91
|
+
return hashArray([
|
92
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_WTD,
|
93
|
+
this.dateColumn ?? '',
|
94
|
+
this.calendarType,
|
95
|
+
this.endDate,
|
96
|
+
]);
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type AbstractPropertyExpression,
|
22
|
+
} from '@finos/legend-graph';
|
23
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
24
|
+
import {
|
25
|
+
type QueryBuilderProjectionColumnState,
|
26
|
+
QueryBuilderSimpleProjectionColumnState,
|
27
|
+
} from '../../projection/QueryBuilderProjectionColumnState.js';
|
28
|
+
import { QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
29
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
31
|
+
import { QueryBuilderAggregateCalendarFunction } from '../QueryBuilderAggregateCalendarFunction.js';
|
32
|
+
import {
|
33
|
+
updateAggregateColumnState,
|
34
|
+
buildCalendarFunctionExpression,
|
35
|
+
} from './QueryBuilderAggregateCalendarFunctionValueSpecificationBuilder.js';
|
36
|
+
|
37
|
+
export class QueryBuilderAggregateCalendarFunction_Ytd
|
38
|
+
extends QueryBuilderAggregateCalendarFunction
|
39
|
+
implements Hashable
|
40
|
+
{
|
41
|
+
getLabel(): string {
|
42
|
+
return 'Year to Date';
|
43
|
+
}
|
44
|
+
|
45
|
+
isCompatibleWithColumn(
|
46
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
47
|
+
): boolean {
|
48
|
+
if (
|
49
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
50
|
+
) {
|
51
|
+
const propertyType =
|
52
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
53
|
+
.value.genericType.value.rawType;
|
54
|
+
return (
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.NUMBER,
|
57
|
+
PRIMITIVE_TYPE.INTEGER,
|
58
|
+
PRIMITIVE_TYPE.DECIMAL,
|
59
|
+
PRIMITIVE_TYPE.FLOAT,
|
60
|
+
] as string[]
|
61
|
+
).includes(propertyType.path);
|
62
|
+
}
|
63
|
+
return true;
|
64
|
+
}
|
65
|
+
|
66
|
+
buildCalendarFunctionExpression(
|
67
|
+
p: AbstractPropertyExpression,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildCalendarFunctionExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_YTD,
|
71
|
+
this.dateColumn,
|
72
|
+
this.calendarType,
|
73
|
+
this.endDate,
|
74
|
+
p,
|
75
|
+
);
|
76
|
+
}
|
77
|
+
|
78
|
+
updateAggregateColumnState(
|
79
|
+
expression: SimpleFunctionExpression,
|
80
|
+
aggregationColumnState: QueryBuilderAggregateColumnState,
|
81
|
+
): void {
|
82
|
+
updateAggregateColumnState(
|
83
|
+
expression,
|
84
|
+
QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS.CALENDAR_YTD,
|
85
|
+
this,
|
86
|
+
aggregationColumnState,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
get hashCode(): string {
|
91
|
+
return hashArray([
|
92
|
+
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_CALENDAR_FUNCTION_YTD,
|
93
|
+
this.dateColumn ?? '',
|
94
|
+
this.calendarType,
|
95
|
+
this.endDate,
|
96
|
+
]);
|
97
|
+
}
|
98
|
+
}
|
package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts
CHANGED
@@ -274,8 +274,25 @@ export const appendProjection = (
|
|
274
274
|
aggregateColumnState.aggregationState.tdsState.queryBuilderState
|
275
275
|
.graphManagerState.graph,
|
276
276
|
);
|
277
|
+
let aggregateCalendarLambda;
|
278
|
+
const aggregateCalendarLambdaState =
|
279
|
+
aggregateColumnState.calendarFunction?.buildCalendarFunctionExpressionFromState(
|
280
|
+
aggregateColumnState,
|
281
|
+
);
|
282
|
+
if (
|
283
|
+
queryBuilderState.isCalendarEnabled &&
|
284
|
+
aggregateCalendarLambdaState !== undefined
|
285
|
+
) {
|
286
|
+
aggregateCalendarLambda = buildGenericLambdaFunctionInstanceValue(
|
287
|
+
guaranteeNonNullable(aggregateColumnState.calendarFunction)
|
288
|
+
.lambdaParameterName,
|
289
|
+
[aggregateCalendarLambdaState],
|
290
|
+
aggregateColumnState.aggregationState.tdsState.queryBuilderState
|
291
|
+
.graphManagerState.graph,
|
292
|
+
);
|
293
|
+
}
|
277
294
|
aggregateFunctionExpression.parametersValues = [
|
278
|
-
columnLambda,
|
295
|
+
aggregateCalendarLambda ?? columnLambda,
|
279
296
|
aggregateLambda,
|
280
297
|
];
|
281
298
|
aggregateLambdas.values.push(aggregateFunctionExpression);
|
@@ -16,10 +16,13 @@
|
|
16
16
|
|
17
17
|
import {
|
18
18
|
type PureModel,
|
19
|
-
|
19
|
+
type GraphManagerState,
|
20
20
|
type ValueSpecification,
|
21
21
|
type Type,
|
22
22
|
type Enum,
|
23
|
+
type ObserverContext,
|
24
|
+
type RawLambda,
|
25
|
+
VariableExpression,
|
23
26
|
CollectionInstanceValue,
|
24
27
|
Enumeration,
|
25
28
|
EnumValueExplicitReference,
|
@@ -32,7 +35,12 @@ import {
|
|
32
35
|
PRIMITIVE_TYPE,
|
33
36
|
INTERNAL__PropagatedValue,
|
34
37
|
SimpleFunctionExpression,
|
35
|
-
|
38
|
+
LambdaFunction,
|
39
|
+
FunctionType,
|
40
|
+
PackageableElementExplicitReference,
|
41
|
+
Multiplicity,
|
42
|
+
CORE_PURE_PATH,
|
43
|
+
buildRawLambdaFromLambdaFunction,
|
36
44
|
} from '@finos/legend-graph';
|
37
45
|
import { Randomizer, UnsupportedOperationError } from '@finos/legend-shared';
|
38
46
|
import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationHelper.js';
|
@@ -177,6 +185,35 @@ export const buildDefaultInstanceValue = (
|
|
177
185
|
}
|
178
186
|
};
|
179
187
|
|
188
|
+
export const buildDefaultEmptyStringLambda = (
|
189
|
+
graph: PureModel,
|
190
|
+
observerContext: ObserverContext,
|
191
|
+
): LambdaFunction => {
|
192
|
+
const lambdaFunction = new LambdaFunction(
|
193
|
+
new FunctionType(
|
194
|
+
PackageableElementExplicitReference.create(
|
195
|
+
graph.getType(CORE_PURE_PATH.ANY),
|
196
|
+
),
|
197
|
+
Multiplicity.ONE,
|
198
|
+
),
|
199
|
+
);
|
200
|
+
lambdaFunction.expressionSequence[0] = buildDefaultInstanceValue(
|
201
|
+
graph,
|
202
|
+
PrimitiveType.STRING,
|
203
|
+
observerContext,
|
204
|
+
);
|
205
|
+
return lambdaFunction;
|
206
|
+
};
|
207
|
+
|
208
|
+
export const buildDefaultEmptyStringRawLambda = (
|
209
|
+
graphState: GraphManagerState,
|
210
|
+
observerContext: ObserverContext,
|
211
|
+
): RawLambda =>
|
212
|
+
buildRawLambdaFromLambdaFunction(
|
213
|
+
buildDefaultEmptyStringLambda(graphState.graph, observerContext),
|
214
|
+
graphState,
|
215
|
+
);
|
216
|
+
|
180
217
|
export const generateVariableExpressionMockValue = (
|
181
218
|
parameter: VariableExpression,
|
182
219
|
graph: PureModel,
|