@devexpress/analytics-core 20.2.2-alpha-20232-1710 → 20.2.5
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/accessibility/_accordionKeyboardHelper.d.ts +20 -0
- package/accessibility/_accordionKeyboardHelper.js +74 -0
- package/accessibility/_controlElementBase.d.ts +17 -0
- package/accessibility/_controlElementBase.js +58 -0
- package/accessibility/_controlElementWithParentHighlight.d.ts +17 -0
- package/accessibility/_controlElementWithParentHighlight.js +50 -0
- package/accessibility/_internal.d.ts +9 -0
- package/accessibility/_internal.js +14 -0
- package/accessibility/_keyboardHelperBase.d.ts +62 -0
- package/accessibility/_keyboardHelperBase.js +258 -0
- package/accessibility/_keyboardHelperWithArrowButtonBase.d.ts +14 -0
- package/accessibility/_keyboardHelperWithArrowButtonBase.js +50 -0
- package/accessibility/_listKeyboardHelper.d.ts +15 -0
- package/accessibility/_listKeyboardHelper.js +45 -0
- package/accessibility/_rightPanelKeyboardHelper.d.ts +19 -0
- package/accessibility/_rightPanelKeyboardHelper.js +58 -0
- package/accessibility/_toolbarKeyboardHelper.d.ts +37 -0
- package/accessibility/_toolbarKeyboardHelper.js +118 -0
- package/accessibility/_treeListKeyboardHelper.d.ts +22 -0
- package/accessibility/_treeListKeyboardHelper.js +98 -0
- package/analytics-criteria-utils.d.ts +3 -3
- package/analytics-criteria-utils.js +3 -3
- package/analytics-criteria.d.ts +3 -3
- package/analytics-criteria.js +3 -3
- package/analytics-data-internal.d.ts +3 -3
- package/analytics-data-internal.js +3 -3
- package/analytics-data-metadata.d.ts +3 -3
- package/analytics-data-metadata.js +3 -3
- package/analytics-data-utils.d.ts +3 -3
- package/analytics-data-utils.js +3 -3
- package/analytics-data.d.ts +3 -3
- package/analytics-data.js +3 -3
- package/{diagram.d.ts → analytics-diagram.d.ts} +4 -4
- package/{diagram.js → analytics-diagram.js} +4 -4
- package/analytics-elements-metadata.d.ts +3 -3
- package/analytics-elements-metadata.js +3 -3
- package/analytics-elements.d.ts +3 -3
- package/analytics-elements.js +3 -3
- package/analytics-internal.d.ts +27 -3
- package/analytics-internal.js +26 -3
- package/analytics-localization.d.ts +3 -3
- package/analytics-localization.js +3 -3
- package/analytics-tools.d.ts +3 -3
- package/analytics-tools.js +3 -3
- package/analytics-utils.d.ts +5 -3
- package/analytics-utils.js +5 -3
- package/analytics-widgets-ace.d.ts +13 -0
- package/analytics-widgets-ace.js +12 -0
- package/analytics-widgets-filtering.d.ts +3 -3
- package/analytics-widgets-filtering.js +3 -3
- package/analytics-widgets-internal.d.ts +8 -9
- package/analytics-widgets-internal.js +8 -7
- package/analytics-widgets-metadata.d.ts +3 -3
- package/analytics-widgets-metadata.js +3 -3
- package/analytics-widgets-treeList.d.ts +3 -3
- package/analytics-widgets-treeList.js +3 -3
- package/analytics-widgets.d.ts +5 -5
- package/analytics-widgets.js +9 -5
- package/analytics-wizard-internal.d.ts +3 -3
- package/analytics-wizard-internal.js +3 -3
- package/analytics-wizard.d.ts +3 -3
- package/analytics-wizard.js +3 -3
- package/bundle/_add-analytics-to-bundle.d.ts +8 -0
- package/bundle/_add-analytics-to-bundle.js +42 -0
- package/bundle/_add-devextreme-to-bundle.d.ts +8 -0
- package/bundle/_add-devextreme-to-bundle.js +27 -0
- package/bundle/_add-querybuilder-to-bundle.d.ts +8 -0
- package/bundle/_add-querybuilder-to-bundle.js +44 -0
- package/bundle/_add-to-context.d.ts +8 -0
- package/bundle/_add-to-context.js +25 -0
- package/bundle/analytic-core-bundle.d.ts +9 -0
- package/bundle/analytic-core-bundle.js +12 -0
- package/bundle/query-builder-bundle.d.ts +12 -0
- package/bundle/query-builder-bundle.js +15 -0
- package/core/_actionProvider.d.ts +3 -3
- package/core/_actionProvider.js +3 -3
- package/core/_bindings.d.ts +3 -3
- package/core/_bindings.js +82 -45
- package/core/_legacy.d.ts +3 -3
- package/core/_legacy.js +3 -3
- package/core/_metadata.d.ts +3 -3
- package/core/_metadata.js +7 -7
- package/core/binding/_jsDesignerBindingCommon.d.ts +8 -7
- package/core/binding/_jsDesignerBindingCommon.js +5 -6
- package/core/binding/_jsDesignerBindingCommonOptions.d.ts +14 -0
- package/core/binding/_jsDesignerBindingCommonOptions.js +9 -0
- package/core/binding/_requestHelper.d.ts +3 -3
- package/core/binding/_requestHelper.js +4 -4
- package/core/dragDrop/_dragDropHandler.d.ts +3 -3
- package/core/dragDrop/_dragDropHandler.js +5 -6
- package/core/dragDrop/_dragHelperContent.d.ts +3 -3
- package/core/dragDrop/_dragHelperContent.js +3 -3
- package/core/dragDrop/_selectionDragDropHandler.d.ts +3 -3
- package/core/dragDrop/_selectionDragDropHandler.js +10 -10
- package/core/dragDrop/_toolboxDragDropHandler.d.ts +3 -3
- package/core/dragDrop/_toolboxDragDropHandler.js +7 -7
- package/core/elements/baseSurface.d.ts +3 -3
- package/core/elements/baseSurface.js +10 -11
- package/core/elements/elementViewModel.d.ts +3 -3
- package/core/elements/elementViewModel.js +23 -23
- package/core/elements/margins.d.ts +3 -3
- package/core/elements/margins.js +6 -6
- package/core/elements/paddingModel.d.ts +3 -3
- package/core/elements/paddingModel.js +12 -12
- package/core/elements/paddingModelMetaData.d.ts +3 -3
- package/core/elements/paddingModelMetaData.js +5 -5
- package/core/elements/point.d.ts +3 -3
- package/core/elements/point.js +6 -6
- package/core/elements/rectangle.d.ts +3 -3
- package/core/elements/rectangle.js +4 -4
- package/core/elements/serializableModel.d.ts +3 -3
- package/core/elements/serializableModel.js +3 -3
- package/core/elements/size.d.ts +3 -3
- package/core/elements/size.js +8 -8
- package/core/internal/_ajaxSetup.d.ts +3 -3
- package/core/internal/_ajaxSetup.js +3 -3
- package/core/internal/_controlsHelper.d.ts +4 -3
- package/core/internal/_controlsHelper.js +11 -10
- package/core/internal/_cssCalculator.d.ts +3 -3
- package/core/internal/_cssCalculator.js +117 -117
- package/core/internal/_editorTypeMapper.d.ts +3 -3
- package/core/internal/_editorTypeMapper.js +22 -23
- package/core/internal/_getNameHelpers.d.ts +3 -3
- package/core/internal/_getNameHelpers.js +12 -13
- package/core/internal/_globalize.d.ts +3 -3
- package/core/internal/_globalize.js +4 -4
- package/core/internal/_hoverInfo.d.ts +3 -3
- package/core/internal/_hoverInfo.js +3 -3
- package/core/internal/_inlineTextEdit.d.ts +3 -3
- package/core/internal/_inlineTextEdit.js +9 -8
- package/core/internal/_objectStructureControllers.d.ts +3 -3
- package/core/internal/_objectStructureControllers.js +4 -4
- package/core/internal/_objectStructureProviders.d.ts +3 -3
- package/core/internal/_objectStructureProviders.js +21 -21
- package/core/internal/_papperKindMapper.d.ts +3 -3
- package/core/internal/_papperKindMapper.js +3 -3
- package/core/internal/_processError.d.ts +3 -3
- package/core/internal/_processError.js +4 -4
- package/core/internal/_resizable.d.ts +3 -3
- package/core/internal/_resizable.js +36 -36
- package/core/internal/_stores.d.ts +3 -3
- package/core/internal/_stores.js +3 -3
- package/core/internal/_surfaceHelpers.d.ts +3 -3
- package/core/internal/_surfaceHelpers.js +13 -13
- package/core/internal/_utils.d.ts +3 -3
- package/core/internal/_utils.js +6 -6
- package/core/internal/_validation.d.ts +3 -3
- package/core/internal/_validation.js +7 -7
- package/core/internal/ajaxSetup.d.ts +3 -3
- package/core/internal/ajaxSetup.js +3 -3
- package/core/selection/_combinedObj.d.ts +3 -3
- package/core/selection/_combinedObj.js +15 -15
- package/core/selection/_selection.d.ts +3 -3
- package/core/selection/_selection.js +6 -6
- package/core/selection/_selectionHelpers.d.ts +3 -3
- package/core/selection/_selectionHelpers.js +3 -3
- package/core/snapLines/_snapLineSurface.d.ts +3 -3
- package/core/snapLines/_snapLineSurface.js +4 -4
- package/core/snapLines/_snapLinesCollector.d.ts +3 -3
- package/core/snapLines/_snapLinesCollector.js +4 -4
- package/core/snapLines/_snapLinesHelper.d.ts +3 -3
- package/core/snapLines/_snapLinesHelper.js +3 -3
- package/core/tools/_actionList.d.ts +3 -3
- package/core/tools/_actionList.js +48 -48
- package/core/tools/_copyPaste.d.ts +3 -3
- package/core/tools/_copyPaste.js +4 -4
- package/core/tools/_keyboardHelper.d.ts +15 -10
- package/core/tools/_keyboardHelper.js +59 -27
- package/core/tools/_tabInfoWithPropertyGrid.d.ts +13 -0
- package/core/tools/_tabInfoWithPropertyGrid.js +41 -0
- package/core/tools/actionId.d.ts +3 -3
- package/core/tools/actionId.js +12 -12
- package/core/tools/tabPanel.d.ts +12 -4
- package/core/tools/tabPanel.js +41 -22
- package/core/tools/toolbox.d.ts +4 -4
- package/core/tools/toolbox.js +5 -5
- package/core/utils/_arrayutils.d.ts +3 -3
- package/core/utils/_arrayutils.js +11 -11
- package/core/utils/_designerCreator.d.ts +3 -3
- package/core/utils/_designerCreator.js +43 -41
- package/core/utils/_designerInitializer.d.ts +21 -0
- package/core/utils/_designerInitializer.js +114 -0
- package/core/utils/_fieldListProvider.d.ts +3 -3
- package/core/utils/_fieldListProvider.js +4 -4
- package/core/utils/_infoMessageHelpers.d.ts +3 -3
- package/core/utils/_infoMessageHelpers.js +14 -14
- package/core/utils/_units.d.ts +4 -3
- package/core/utils/_units.js +14 -9
- package/core/utils/_utils.d.ts +14 -19
- package/core/utils/_utils.js +69 -145
- package/core/utils/_visitors.d.ts +3 -3
- package/core/utils/_visitors.js +6 -6
- package/core/utils/controlsFactory.d.ts +3 -3
- package/core/utils/controlsFactory.js +8 -7
- package/core/utils/parsers.d.ts +3 -3
- package/core/utils/parsers.js +16 -16
- package/core/widgets/_buttonInlineEditor.d.ts +3 -3
- package/core/widgets/_buttonInlineEditor.js +13 -13
- package/core/widgets/_dataMemberEditor.d.ts +3 -3
- package/core/widgets/_dataMemberEditor.js +6 -6
- package/core/widgets/_fieldlistpicker.d.ts +7 -4
- package/core/widgets/_fieldlistpicker.js +54 -54
- package/core/widgets/_requiredNullableEditor.d.ts +3 -3
- package/core/widgets/_requiredNullableEditor.js +4 -4
- package/core/widgets/bordereditor/_binding.d.ts +3 -3
- package/core/widgets/bordereditor/_binding.js +5 -5
- package/core/widgets/bordereditor/_bordereditor.d.ts +3 -3
- package/core/widgets/bordereditor/_bordereditor.js +16 -16
- package/core/widgets/colorPickerEditor.d.ts +3 -3
- package/core/widgets/colorPickerEditor.js +7 -7
- package/core/widgets/dataMemberEditor.d.ts +3 -3
- package/core/widgets/dataMemberEditor.js +3 -3
- package/core/widgets/fieldListEditor.d.ts +3 -3
- package/core/widgets/fieldListEditor.js +4 -4
- package/core/widgets/propertygrid/_controlProperties.d.ts +3 -3
- package/core/widgets/propertygrid/_controlProperties.js +6 -6
- package/core/widgets/propertygrid/_group.d.ts +3 -3
- package/core/widgets/propertygrid/_group.js +3 -3
- package/core/widgets/registerDesignerEditors.d.ts +8 -0
- package/core/widgets/registerDesignerEditors.js +42 -0
- package/diagram/_legacy.d.ts +3 -3
- package/diagram/_legacy.js +3 -3
- package/diagram/bindings.d.ts +3 -3
- package/diagram/bindings.js +9 -9
- package/diagram/controlsFactory.d.ts +3 -3
- package/diagram/controlsFactory.js +79 -79
- package/diagram/dragDrop/connectingPointDragHandler.d.ts +3 -3
- package/diagram/dragDrop/connectingPointDragHandler.js +8 -8
- package/diagram/dragDrop/connectionPointDragHandler.d.ts +3 -3
- package/diagram/dragDrop/connectionPointDragHandler.js +7 -7
- package/diagram/elements/connectingPointModel.d.ts +3 -3
- package/diagram/elements/connectingPointModel.js +6 -6
- package/diagram/elements/connectingPointSurface.d.ts +3 -3
- package/diagram/elements/connectingPointSurface.js +6 -6
- package/diagram/elements/connectors/connectionPointModel.d.ts +3 -3
- package/diagram/elements/connectors/connectionPointModel.js +5 -5
- package/diagram/elements/connectors/connectionPointSurface.d.ts +3 -3
- package/diagram/elements/connectors/connectionPointSurface.js +5 -5
- package/diagram/elements/connectors/connectorModel.d.ts +3 -3
- package/diagram/elements/connectors/connectorModel.js +6 -6
- package/diagram/elements/connectors/connectorSurface.d.ts +3 -3
- package/diagram/elements/connectors/connectorSurface.js +5 -5
- package/diagram/elements/connectors/routedConnectorModel.d.ts +3 -3
- package/diagram/elements/connectors/routedConnectorModel.js +4 -4
- package/diagram/elements/connectors/routedConnectorSurface.d.ts +3 -3
- package/diagram/elements/connectors/routedConnectorSurface.js +7 -7
- package/diagram/elements/diagramElementModel.d.ts +3 -3
- package/diagram/elements/diagramElementModel.js +5 -5
- package/diagram/elements/diagramElementSurface.d.ts +3 -3
- package/diagram/elements/diagramElementSurface.js +10 -10
- package/diagram/elements/diagramModel.d.ts +3 -3
- package/diagram/elements/diagramModel.js +9 -9
- package/diagram/elements/diagramSurface.d.ts +3 -3
- package/diagram/elements/diagramSurface.js +7 -7
- package/diagram/initializer.d.ts +3 -3
- package/diagram/initializer.js +10 -10
- package/diagram/metadata.d.ts +3 -3
- package/diagram/metadata.js +7 -7
- package/diagram/utils.d.ts +3 -3
- package/diagram/utils.js +3 -3
- package/dist/css/dx-analytics.carmine.compact.css +10 -3
- package/dist/css/dx-analytics.carmine.css +10 -3
- package/dist/css/dx-analytics.common.css +23 -18
- package/dist/css/dx-analytics.contrast.compact.css +10 -3
- package/dist/css/dx-analytics.contrast.css +10 -3
- package/dist/css/dx-analytics.dark.compact.css +10 -3
- package/dist/css/dx-analytics.dark.css +10 -3
- package/dist/css/dx-analytics.darkmoon.compact.css +10 -3
- package/dist/css/dx-analytics.darkmoon.css +10 -3
- package/dist/css/dx-analytics.darkviolet.compact.css +10 -3
- package/dist/css/dx-analytics.darkviolet.css +10 -3
- package/dist/css/dx-analytics.greenmist.compact.css +10 -3
- package/dist/css/dx-analytics.greenmist.css +10 -3
- package/dist/css/dx-analytics.light.compact.css +10 -3
- package/dist/css/dx-analytics.light.css +10 -3
- package/dist/css/dx-analytics.softblue.compact.css +10 -3
- package/dist/css/dx-analytics.softblue.css +10 -3
- package/dist/css/dx-querybuilder.css +8 -3
- package/dist/js/dx-analytics-core.d.ts +7835 -8366
- package/dist/js/dx-analytics-core.js +10684 -9470
- package/dist/js/dx-analytics-core.min.js +4 -4
- package/dist/js/dx-querybuilder.js +2757 -2408
- package/dist/js/dx-querybuilder.min.js +4 -4
- package/{imports.d.ts → dx-analytics-core-imports.d.ts} +4 -8
- package/{imports.js → dx-analytics-core-imports.js} +4 -8
- package/dx-analytics-core-svg-templates.d.ts +3 -3
- package/dx-analytics-core-svg-templates.js +3 -3
- package/dx-analytics-core-templates.d.ts +3 -3
- package/dx-analytics-core-templates.js +101 -101
- package/dx-analytics-core.d.ts +26 -0
- package/dx-analytics-core.js +28 -0
- package/dx-query-builder-templates.d.ts +8 -0
- package/dx-query-builder-templates.js +101 -0
- package/dx-querybuilder-imports.d.ts +11 -0
- package/dx-querybuilder-imports.js +13 -0
- package/dx-querybuilder.d.ts +20 -0
- package/dx-querybuilder.js +22 -0
- package/index.d.ts +5 -31
- package/index.js +5 -31
- package/less/common.less +1 -0
- package/less/dx-variable-style.less +9 -0
- package/package.json +2 -2
- package/property-grid/_legacy.d.ts +3 -3
- package/property-grid/_legacy.js +3 -3
- package/property-grid/_propertiesAccessibilityProvider.d.ts +3 -3
- package/property-grid/_propertiesAccessibilityProvider.js +3 -3
- package/property-grid/bindings.d.ts +3 -3
- package/property-grid/bindings.js +28 -27
- package/property-grid/internal/_addon.d.ts +3 -3
- package/property-grid/internal/_addon.js +8 -8
- package/property-grid/internal/_codeResolver.d.ts +3 -3
- package/property-grid/internal/_codeResolver.js +3 -3
- package/property-grid/internal/_popupService.d.ts +3 -3
- package/property-grid/internal/_popupService.js +3 -3
- package/property-grid/localization/_localization.d.ts +3 -3
- package/property-grid/localization/_localization.js +16 -16
- package/property-grid/localization/_localizationStringIds.d.ts +3 -3
- package/property-grid/localization/_localizationStringIds.js +7 -7
- package/property-grid/localization/localization.d.ts +3 -3
- package/property-grid/localization/localization.js +3 -3
- package/property-grid/localization/localization_utils.d.ts +3 -3
- package/property-grid/localization/localization_utils.js +3 -4
- package/property-grid/propertygrid.d.ts +3 -3
- package/property-grid/propertygrid.js +5 -10
- package/property-grid/widgets/collectioneditor/_bindings.d.ts +3 -3
- package/property-grid/widgets/collectioneditor/_bindings.js +8 -8
- package/property-grid/widgets/collectioneditor/_editor.d.ts +3 -3
- package/property-grid/widgets/collectioneditor/_editor.js +16 -16
- package/property-grid/widgets/editor.d.ts +6 -3
- package/property-grid/widgets/editor.js +22 -11
- package/property-grid/widgets/editorValidator.d.ts +3 -3
- package/property-grid/widgets/editorValidator.js +7 -7
- package/property-grid/widgets/editorsInfo.d.ts +17 -6
- package/property-grid/widgets/editorsInfo.js +39 -24
- package/property-grid/widgets/ellipsiseditor/_editor.d.ts +9 -4
- package/property-grid/widgets/ellipsiseditor/_editor.js +49 -31
- package/property-grid/widgets/fileimageeditor/_editor.d.ts +3 -3
- package/property-grid/widgets/fileimageeditor/_editor.js +25 -25
- package/property-grid/widgets/fonteditor/_fonts.d.ts +3 -3
- package/property-grid/widgets/fonteditor/_fonts.js +4 -22
- package/property-grid/widgets/fonteditor/_model.d.ts +3 -3
- package/property-grid/widgets/fonteditor/_model.js +21 -21
- package/property-grid/widgets/fonteditor/editor.d.ts +3 -3
- package/property-grid/widgets/fonteditor/editor.js +3 -5
- package/property-grid/widgets/fonteditor/metadata.d.ts +3 -3
- package/property-grid/widgets/fonteditor/metadata.js +8 -8
- package/property-grid/widgets/guideditor.d.ts +3 -3
- package/property-grid/widgets/guideditor.js +3 -3
- package/property-grid/widgets/internal/_extendedSvgTemplates.d.ts +3 -3
- package/property-grid/widgets/internal/_extendedSvgTemplates.js +3 -3
- package/property-grid/widgets/internal/_internal.d.ts +4 -4
- package/property-grid/widgets/internal/_internal.js +7 -6
- package/property-grid/widgets/internal/_svgTemplateEngine.d.ts +5 -5
- package/property-grid/widgets/internal/_svgTemplateEngine.js +17 -17
- package/property-grid/widgets/internal/_utils.d.ts +38 -4
- package/property-grid/widgets/internal/_utils.js +58 -23
- package/property-grid/widgets/registerBaseEdtior.d.ts +8 -0
- package/property-grid/widgets/registerBaseEdtior.js +31 -0
- package/property-grid/widgets/templateUtils.d.ts +9 -0
- package/property-grid/widgets/templateUtils.js +20 -0
- package/query-builder/_accordionTabInfo.d.ts +3 -3
- package/query-builder/_accordionTabInfo.js +41 -41
- package/query-builder/_bindings.d.ts +3 -3
- package/query-builder/_bindings.js +18 -30
- package/query-builder/_initializer.d.ts +10 -16
- package/query-builder/_initializer.js +101 -75
- package/query-builder/_legacy.d.ts +3 -3
- package/query-builder/_legacy.js +3 -3
- package/query-builder/_queryBuilderModel.d.ts +42 -0
- package/query-builder/_queryBuilderModel.js +9 -0
- package/query-builder/binding/eventGenerator.d.ts +11 -0
- package/query-builder/binding/eventGenerator.js +58 -0
- package/query-builder/binding/jsQueryBuilder.d.ts +28 -0
- package/query-builder/binding/jsQueryBuilder.js +65 -0
- package/query-builder/binding/jsQueryBuilderBinding.d.ts +24 -0
- package/query-builder/binding/jsQueryBuilderBinding.js +114 -0
- package/query-builder/binding/jsQueryBuilderBindingOptions.d.ts +32 -0
- package/query-builder/binding/jsQueryBuilderBindingOptions.js +9 -0
- package/query-builder/dataSource/_dbSchema.d.ts +3 -3
- package/query-builder/dataSource/_dbSchema.js +3 -3
- package/query-builder/dataSource/_dbSchemaProvider.d.ts +3 -3
- package/query-builder/dataSource/_dbSchemaProvider.js +3 -3
- package/query-builder/dataSource/_utils.d.ts +3 -3
- package/query-builder/dataSource/_utils.js +4 -4
- package/query-builder/dataSource/dataSourceParameter.d.ts +3 -3
- package/query-builder/dataSource/dataSourceParameter.js +29 -29
- package/query-builder/dataSource/dataSourceParameterMeta.d.ts +4 -4
- package/query-builder/dataSource/dataSourceParameterMeta.js +35 -35
- package/query-builder/dataSource/dbColumn.d.ts +3 -3
- package/query-builder/dataSource/dbColumn.js +49 -49
- package/query-builder/dataSource/dbForeignKey.d.ts +3 -3
- package/query-builder/dataSource/dbForeignKey.js +7 -7
- package/query-builder/dataSource/dbSchema.d.ts +3 -3
- package/query-builder/dataSource/dbSchema.js +6 -6
- package/query-builder/dataSource/dbSchemaProvider.d.ts +3 -3
- package/query-builder/dataSource/dbSchemaProvider.js +9 -9
- package/query-builder/dataSource/dbStoredProcedure.d.ts +3 -3
- package/query-builder/dataSource/dbStoredProcedure.js +8 -8
- package/query-builder/dataSource/dbTable.d.ts +3 -3
- package/query-builder/dataSource/dbTable.js +7 -7
- package/query-builder/dataSource/json/_jsonSchemaProvider.d.ts +3 -3
- package/query-builder/dataSource/json/_jsonSchemaProvider.js +4 -4
- package/query-builder/dataSource/json/jsonAuthenticationInfo.d.ts +3 -3
- package/query-builder/dataSource/json/jsonAuthenticationInfo.js +5 -5
- package/query-builder/dataSource/json/jsonDataSource.d.ts +3 -3
- package/query-builder/dataSource/json/jsonDataSource.js +8 -8
- package/query-builder/dataSource/json/jsonParameter.d.ts +3 -3
- package/query-builder/dataSource/json/jsonParameter.js +17 -17
- package/query-builder/dataSource/json/jsonSchemaNode.d.ts +3 -3
- package/query-builder/dataSource/json/jsonSchemaNode.js +18 -18
- package/query-builder/dataSource/json/jsonSchemaProvider.d.ts +3 -3
- package/query-builder/dataSource/json/jsonSchemaProvider.js +5 -5
- package/query-builder/dataSource/json/jsonSource.d.ts +3 -3
- package/query-builder/dataSource/json/jsonSource.js +21 -21
- package/query-builder/dataSource/object/objectDataSource.d.ts +3 -3
- package/query-builder/dataSource/object/objectDataSource.js +4 -4
- package/query-builder/dataSource/object/objectSchema.d.ts +3 -3
- package/query-builder/dataSource/object/objectSchema.js +4 -4
- package/query-builder/dataSource/resultSet.d.ts +4 -4
- package/query-builder/dataSource/resultSet.js +8 -8
- package/query-builder/dataSource/resultTable.d.ts +3 -3
- package/query-builder/dataSource/resultTable.js +7 -7
- package/query-builder/dataSource/sql/connectionOptions.d.ts +3 -3
- package/query-builder/dataSource/sql/connectionOptions.js +5 -5
- package/query-builder/dataSource/sql/customSqlQuery.d.ts +3 -3
- package/query-builder/dataSource/sql/customSqlQuery.js +6 -6
- package/query-builder/dataSource/sql/customSqlQueryMeta.d.ts +3 -3
- package/query-builder/dataSource/sql/customSqlQueryMeta.js +8 -8
- package/query-builder/dataSource/sql/masterDetailRelation.d.ts +3 -3
- package/query-builder/dataSource/sql/masterDetailRelation.js +5 -5
- package/query-builder/dataSource/sql/masterDetailRelationMeta.d.ts +3 -3
- package/query-builder/dataSource/sql/masterDetailRelationMeta.js +11 -11
- package/query-builder/dataSource/sql/sqlDataConnection.d.ts +3 -3
- package/query-builder/dataSource/sql/sqlDataConnection.js +6 -6
- package/query-builder/dataSource/sql/sqlDataSource.d.ts +3 -3
- package/query-builder/dataSource/sql/sqlDataSource.js +20 -20
- package/query-builder/dataSource/sql/storedProcQuery.d.ts +3 -3
- package/query-builder/dataSource/sql/storedProcQuery.js +8 -8
- package/query-builder/dataSource/sql/storedProcQueryMeta.d.ts +3 -3
- package/query-builder/dataSource/sql/storedProcQueryMeta.js +8 -8
- package/query-builder/dataSource/sql/tableQuery.d.ts +3 -3
- package/query-builder/dataSource/sql/tableQuery.js +7 -7
- package/query-builder/dataSource/sql/tableQueryMeta.d.ts +3 -3
- package/query-builder/dataSource/sql/tableQueryMeta.js +12 -12
- package/query-builder/dataSource/utils.d.ts +3 -3
- package/query-builder/dataSource/utils.js +9 -9
- package/query-builder/dragDrop/_columnDragHandler.d.ts +4 -4
- package/query-builder/dragDrop/_columnDragHandler.js +9 -9
- package/query-builder/dragDrop/_dbObjectDragDropHandler.d.ts +5 -5
- package/query-builder/dragDrop/_dbObjectDragDropHandler.js +9 -9
- package/query-builder/elements/allColumnsModel.d.ts +3 -3
- package/query-builder/elements/allColumnsModel.js +7 -7
- package/query-builder/elements/allColumnsModelMeta.d.ts +3 -3
- package/query-builder/elements/allColumnsModelMeta.js +3 -3
- package/query-builder/elements/allColumnsSurface.d.ts +3 -3
- package/query-builder/elements/allColumnsSurface.js +4 -4
- package/query-builder/elements/columnExpression.d.ts +3 -3
- package/query-builder/elements/columnExpression.js +4 -4
- package/query-builder/elements/columnExpressionMeta.d.ts +3 -3
- package/query-builder/elements/columnExpressionMeta.js +14 -14
- package/query-builder/elements/columnModel.d.ts +3 -3
- package/query-builder/elements/columnModel.js +16 -16
- package/query-builder/elements/columnModelMeta.d.ts +3 -3
- package/query-builder/elements/columnModelMeta.js +28 -28
- package/query-builder/elements/columnSurface.d.ts +3 -3
- package/query-builder/elements/columnSurface.js +6 -6
- package/query-builder/elements/joinConditionModel.d.ts +3 -3
- package/query-builder/elements/joinConditionModel.js +4 -4
- package/query-builder/elements/joinConditionModelMeta.d.ts +3 -3
- package/query-builder/elements/joinConditionModelMeta.js +32 -32
- package/query-builder/elements/joinConditionSurface.d.ts +3 -3
- package/query-builder/elements/joinConditionSurface.js +4 -4
- package/query-builder/elements/parameterModel.d.ts +3 -3
- package/query-builder/elements/parameterModel.js +4 -4
- package/query-builder/elements/parameterModelMeta.d.ts +3 -3
- package/query-builder/elements/parameterModelMeta.js +6 -6
- package/query-builder/elements/queryElementModel.d.ts +3 -3
- package/query-builder/elements/queryElementModel.js +3 -3
- package/query-builder/elements/queryElementSurface.d.ts +3 -3
- package/query-builder/elements/queryElementSurface.js +6 -6
- package/query-builder/elements/queryModel.d.ts +4 -4
- package/query-builder/elements/queryModel.js +39 -39
- package/query-builder/elements/queryModelMeta.d.ts +3 -3
- package/query-builder/elements/queryModelMeta.js +22 -22
- package/query-builder/elements/querySurface.d.ts +3 -3
- package/query-builder/elements/querySurface.js +6 -6
- package/query-builder/elements/relationModel.d.ts +3 -3
- package/query-builder/elements/relationModel.js +5 -5
- package/query-builder/elements/relationModelMeta.d.ts +3 -3
- package/query-builder/elements/relationModelMeta.js +8 -8
- package/query-builder/elements/relationSurface.d.ts +3 -3
- package/query-builder/elements/relationSurface.js +5 -5
- package/query-builder/elements/tableModel.d.ts +3 -3
- package/query-builder/elements/tableModel.js +6 -6
- package/query-builder/elements/tableModelMeta.d.ts +3 -3
- package/query-builder/elements/tableModelMeta.js +4 -4
- package/query-builder/elements/tableSurface.d.ts +3 -3
- package/query-builder/elements/tableSurface.js +5 -5
- package/query-builder/initializer.d.ts +4 -5
- package/query-builder/initializer.js +8 -8
- package/query-builder/metadata.d.ts +3 -3
- package/query-builder/metadata.js +9 -9
- package/query-builder/utils/_callbacks.d.ts +14 -0
- package/query-builder/utils/_callbacks.js +9 -0
- package/query-builder/utils/_columnExpressionCollectionHelper.d.ts +3 -3
- package/query-builder/utils/_columnExpressionCollectionHelper.js +6 -6
- package/query-builder/utils/_controlsFactory.d.ts +3 -3
- package/query-builder/utils/_controlsFactory.js +13 -13
- package/query-builder/utils/_queryBuilderTreeListController.d.ts +4 -4
- package/query-builder/utils/_queryBuilderTreeListController.js +3 -3
- package/query-builder/utils/_requestwrapper.d.ts +4 -3
- package/query-builder/utils/_requestwrapper.js +13 -3
- package/query-builder/utils/controlsFactory.d.ts +3 -3
- package/query-builder/utils/controlsFactory.js +3 -3
- package/query-builder/utils/requestwrapper.d.ts +3 -4
- package/query-builder/utils/requestwrapper.js +20 -28
- package/query-builder/widgets/_undoEditor.d.ts +3 -3
- package/query-builder/widgets/_undoEditor.js +3 -3
- package/query-builder/widgets/ace/_ace-mode-sql.d.ts +3 -3
- package/query-builder/widgets/ace/_ace-mode-sql.js +81 -81
- package/query-builder/widgets/ace/_options.d.ts +4 -4
- package/query-builder/widgets/ace/_options.js +4 -4
- package/query-builder/widgets/editorTemplates.d.ts +7 -35
- package/query-builder/widgets/editorTemplates.js +5 -13
- package/query-builder/widgets/expressionFunctions.d.ts +3 -3
- package/query-builder/widgets/expressionFunctions.js +5 -5
- package/query-builder/widgets/filterEditor/_groupFilterEditorSerializer.d.ts +3 -3
- package/query-builder/widgets/filterEditor/_groupFilterEditorSerializer.js +6 -6
- package/query-builder/widgets/filterEditor/_operandParameterQBSurface.d.ts +3 -3
- package/query-builder/widgets/filterEditor/_operandParameterQBSurface.js +9 -9
- package/query-builder/widgets/filterEditor/_operandPropertyQBSurface.d.ts +3 -3
- package/query-builder/widgets/filterEditor/_operandPropertyQBSurface.js +3 -3
- package/query-builder/widgets/filterEditor/_qbFilterEditorHelper.d.ts +3 -3
- package/query-builder/widgets/filterEditor/_qbFilterEditorHelper.js +6 -6
- package/query-builder/widgets/filterEditor/_qbFilterStringOptions.d.ts +3 -3
- package/query-builder/widgets/filterEditor/_qbFilterStringOptions.js +3 -3
- package/query-builder/widgets/filterEditor/_queryBuilderObjectsProvider.d.ts +3 -3
- package/query-builder/widgets/filterEditor/_queryBuilderObjectsProvider.js +9 -9
- package/query-builder/widgets/masterdetaileditor/_keyColumnSurface.d.ts +3 -3
- package/query-builder/widgets/masterdetaileditor/_keyColumnSurface.js +5 -5
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditor.d.ts +3 -3
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditor.js +9 -9
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditorPopupManager.d.ts +3 -3
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditorPopupManager.js +8 -8
- package/query-builder/widgets/masterdetaileditor/_masterDetailRelationSurface.d.ts +3 -3
- package/query-builder/widgets/masterdetaileditor/_masterDetailRelationSurface.js +3 -3
- package/query-builder/widgets/masterdetaileditor/_masterQuerySurface.d.ts +3 -3
- package/query-builder/widgets/masterdetaileditor/_masterQuerySurface.js +5 -5
- package/query-builder/widgets/registerEditorTemplates.d.ts +8 -0
- package/query-builder/widgets/registerEditorTemplates.js +23 -0
- package/query-builder/wizard/chooseAvailablePage.d.ts +3 -3
- package/query-builder/wizard/chooseAvailablePage.js +5 -5
- package/query-builder/wizard/dataSourceWizard.d.ts +3 -3
- package/query-builder/wizard/dataSourceWizard.js +5 -5
- package/query-builder/wizard/dataSourceWizardState.d.ts +3 -3
- package/query-builder/wizard/dataSourceWizardState.js +12 -12
- package/query-builder/wizard/fullscreen/fullscreenMultiQueryDataSourceWizard.d.ts +3 -3
- package/query-builder/wizard/fullscreen/fullscreenMultiQueryDataSourceWizard.js +5 -5
- package/query-builder/wizard/fullscreen/fullscreenWizard.d.ts +3 -3
- package/query-builder/wizard/fullscreen/fullscreenWizard.js +6 -6
- package/query-builder/wizard/fullscreen/fullscreenWizardNavigation.d.ts +3 -3
- package/query-builder/wizard/fullscreen/fullscreenWizardNavigation.js +3 -3
- package/query-builder/wizard/fullscreen/fullscreenWizardPageFactory.d.ts +3 -3
- package/query-builder/wizard/fullscreen/fullscreenWizardPageFactory.js +3 -3
- package/query-builder/wizard/fullscreen/pages/fullscreenWizardPage.d.ts +5 -5
- package/query-builder/wizard/fullscreen/pages/fullscreenWizardPage.js +9 -9
- package/query-builder/wizard/fullscreen/pages/specifyJsonDataSourceSettingsPage.d.ts +3 -3
- package/query-builder/wizard/fullscreen/pages/specifyJsonDataSourceSettingsPage.js +7 -7
- package/query-builder/wizard/fullscreen/pages/specifyObjectDataSourceSettingsPage.d.ts +3 -3
- package/query-builder/wizard/fullscreen/pages/specifyObjectDataSourceSettingsPage.js +11 -10
- package/query-builder/wizard/fullscreen/pages/specifySqlDataSourceSettingsPage.d.ts +3 -3
- package/query-builder/wizard/fullscreen/pages/specifySqlDataSourceSettingsPage.js +13 -13
- package/query-builder/wizard/internal/_configureParametersUtils.d.ts +4 -4
- package/query-builder/wizard/internal/_configureParametersUtils.js +13 -13
- package/query-builder/wizard/internal/_dbSchemaItemsProvider.d.ts +3 -3
- package/query-builder/wizard/internal/_dbSchemaItemsProvider.js +18 -18
- package/query-builder/wizard/internal/_dbSchemaTreeListController.d.ts +3 -3
- package/query-builder/wizard/internal/_dbSchemaTreeListController.js +3 -3
- package/query-builder/wizard/internal/_jsonDataSourceWidgets.d.ts +3 -3
- package/query-builder/wizard/internal/_jsonDataSourceWidgets.js +12 -12
- package/query-builder/wizard/internal/_jsonSourceSettings.d.ts +3 -3
- package/query-builder/wizard/internal/_jsonSourceSettings.js +58 -60
- package/query-builder/wizard/internal/_jsonTreeNodeItemsProvider.d.ts +3 -3
- package/query-builder/wizard/internal/_jsonTreeNodeItemsProvider.js +4 -4
- package/query-builder/wizard/internal/_queryBuilderPopup.d.ts +7 -6
- package/query-builder/wizard/internal/_queryBuilderPopup.js +13 -14
- package/query-builder/wizard/internal/_selectQuerySqlTextProvider.d.ts +3 -3
- package/query-builder/wizard/internal/_selectQuerySqlTextProvider.js +5 -5
- package/query-builder/wizard/internal/_selectStatementQueryControl.d.ts +4 -4
- package/query-builder/wizard/internal/_selectStatementQueryControl.js +9 -9
- package/query-builder/wizard/internal/_storedProceduresQueryControl.d.ts +4 -4
- package/query-builder/wizard/internal/_storedProceduresQueryControl.js +14 -12
- package/query-builder/wizard/internal/_treeListNode.d.ts +3 -3
- package/query-builder/wizard/internal/_treeListNode.js +19 -19
- package/query-builder/wizard/internal/_treeNodeItemsProvider.d.ts +3 -3
- package/query-builder/wizard/internal/_treeNodeItemsProvider.js +6 -6
- package/query-builder/wizard/internal/_utils.d.ts +3 -3
- package/query-builder/wizard/internal/_utils.js +15 -15
- package/query-builder/wizard/internal/_wizardAction.d.ts +3 -3
- package/query-builder/wizard/internal/_wizardAction.js +3 -3
- package/query-builder/wizard/internal/_wizardPageProcessor.d.ts +3 -3
- package/query-builder/wizard/internal/_wizardPageProcessor.js +15 -15
- package/query-builder/wizard/internal/_wizardPageSectionFactory.d.ts +3 -3
- package/query-builder/wizard/internal/_wizardPageSectionFactory.js +4 -4
- package/query-builder/wizard/internal/_wizardPageSectionIterator.d.ts +3 -3
- package/query-builder/wizard/internal/_wizardPageSectionIterator.js +6 -6
- package/query-builder/wizard/internal/_wrappedWizardPageSection.d.ts +3 -3
- package/query-builder/wizard/internal/_wrappedWizardPageSection.js +3 -3
- package/query-builder/wizard/internal/initializer.d.ts +3 -3
- package/query-builder/wizard/internal/initializer.js +3 -3
- package/query-builder/wizard/internal/jsonSourceSettings.d.ts +3 -3
- package/query-builder/wizard/internal/jsonSourceSettings.js +6 -6
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectDataMembers.d.ts +3 -3
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectDataMembers.js +3 -4
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectParameters.d.ts +3 -3
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectParameters.js +13 -13
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectTypes.d.ts +3 -3
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectTypes.js +6 -6
- package/query-builder/wizard/internal/objectDataSource/_objectSchemaProvider.d.ts +3 -3
- package/query-builder/wizard/internal/objectDataSource/_objectSchemaProvider.js +8 -8
- package/query-builder/wizard/internal/wizardPageSectionMetadata.d.ts +3 -3
- package/query-builder/wizard/internal/wizardPageSectionMetadata.js +3 -3
- package/query-builder/wizard/multiQueryDataSourceWizard.d.ts +3 -3
- package/query-builder/wizard/multiQueryDataSourceWizard.js +5 -5
- package/query-builder/wizard/pageFactory.d.ts +3 -3
- package/query-builder/wizard/pageFactory.js +3 -3
- package/query-builder/wizard/pageId.d.ts +3 -3
- package/query-builder/wizard/pageId.js +20 -20
- package/query-builder/wizard/pageIterator.d.ts +3 -3
- package/query-builder/wizard/pageIterator.js +4 -4
- package/query-builder/wizard/pages/chooseDataSourceTypePage.d.ts +3 -3
- package/query-builder/wizard/pages/chooseDataSourceTypePage.js +8 -8
- package/query-builder/wizard/pages/chooseSqlConnectionPage.d.ts +3 -3
- package/query-builder/wizard/pages/chooseSqlConnectionPage.js +6 -6
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonConnectionPage.d.ts +3 -3
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonConnectionPage.js +10 -8
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSchemaPage.d.ts +3 -3
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSchemaPage.js +13 -13
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSourcePage.d.ts +3 -3
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSourcePage.js +11 -11
- package/query-builder/wizard/pages/jsonDataSourceWizard/specifyJsonConnectionPage.d.ts +3 -3
- package/query-builder/wizard/pages/jsonDataSourceWizard/specifyJsonConnectionPage.js +6 -6
- package/query-builder/wizard/pages/multiQueryWizard/configureMasterDetailRelationshipsPage.d.ts +3 -3
- package/query-builder/wizard/pages/multiQueryWizard/configureMasterDetailRelationshipsPage.js +7 -7
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigurePage.d.ts +3 -4
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigurePage.js +44 -46
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigureParametersPage.d.ts +3 -3
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigureParametersPage.js +21 -21
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceDataMembersPage.d.ts +3 -3
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceDataMembersPage.js +5 -5
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceTypesPage.d.ts +3 -3
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceTypesPage.js +5 -5
- package/query-builder/wizard/pages/objectDataSourceWizard/configureObjectDataSourceParametersPage.d.ts +3 -3
- package/query-builder/wizard/pages/objectDataSourceWizard/configureObjectDataSourceParametersPage.js +5 -5
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureParametersPage.d.ts +3 -3
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureParametersPage.js +15 -15
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureQueryPage.d.ts +4 -4
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureQueryPage.js +18 -18
- package/query-builder/wizard/pages/wizardPage.d.ts +3 -3
- package/query-builder/wizard/pages/wizardPage.js +3 -3
- package/query-builder/wizard/pages/wizardPageMetadata.d.ts +3 -3
- package/query-builder/wizard/pages/wizardPageMetadata.js +3 -3
- package/query-builder/wizard/popupWizard.d.ts +3 -3
- package/query-builder/wizard/popupWizard.js +11 -11
- package/query-builder/wizard/stateManager.d.ts +3 -3
- package/query-builder/wizard/stateManager.js +3 -3
- package/query-builder/wizard/wizard.d.ts +3 -3
- package/query-builder/wizard/wizard.js +13 -13
- package/query-builder/wizard/wizardEventManager.d.ts +10 -10
- package/query-builder/wizard/wizardEventManager.js +3 -3
- package/queryBuilder-elements-metadata.d.ts +3 -3
- package/queryBuilder-elements-metadata.js +3 -3
- package/queryBuilder-elements.d.ts +3 -3
- package/queryBuilder-elements.js +3 -3
- package/queryBuilder-internal.d.ts +8 -5
- package/queryBuilder-internal.js +6 -4
- package/queryBuilder-metadata.d.ts +3 -3
- package/queryBuilder-metadata.js +3 -3
- package/queryBuilder-utils.d.ts +5 -3
- package/queryBuilder-utils.js +5 -3
- package/queryBuilder-widgets-internal.d.ts +5 -3
- package/queryBuilder-widgets-internal.js +7 -3
- package/queryBuilder-widgets.d.ts +3 -3
- package/queryBuilder-widgets.js +3 -3
- package/querybuilder.d.ts +15 -0
- package/querybuilder.js +19 -0
- package/serializer/_internal.d.ts +4 -3
- package/serializer/_internal.js +14 -6
- package/serializer/_legacy.d.ts +3 -3
- package/serializer/_legacy.js +3 -3
- package/serializer/_utils.d.ts +3 -3
- package/serializer/_utils.js +13 -14
- package/serializer/eventManager.d.ts +3 -3
- package/serializer/eventManager.js +3 -3
- package/serializer/serializationInfo.d.ts +3 -3
- package/serializer/serializationInfo.js +3 -3
- package/serializer/serializer.d.ts +3 -3
- package/serializer/serializer.js +21 -22
- package/serializer/utils.d.ts +3 -3
- package/serializer/utils.js +8 -8
- package/undo-engine/_legacy.d.ts +3 -3
- package/undo-engine/_legacy.js +3 -3
- package/undo-engine/_utils.d.ts +3 -3
- package/undo-engine/_utils.js +7 -7
- package/undo-engine/undoengine.d.ts +3 -3
- package/undo-engine/undoengine.js +27 -27
- package/utils/20.2/convert.js +82 -0
- package/utils/analytics-core-namespaces.js +1 -0
- package/utils/converter.js +5 -88
- package/utils/theme-builder.js +3 -3
- package/widgets/_legacy.d.ts +3 -3
- package/widgets/_legacy.js +3 -3
- package/widgets/_searchHighlighting.d.ts +3 -3
- package/widgets/_searchHighlighting.js +12 -12
- package/widgets/_utils.d.ts +4 -4
- package/widgets/_utils.js +22 -22
- package/widgets/ace/_ace-available.d.ts +8 -0
- package/widgets/ace/_ace-available.js +11 -0
- package/widgets/ace/_ace-mode-criteria.d.ts +3 -3
- package/widgets/ace/_ace-mode-criteria.js +33 -33
- package/widgets/ace/_ace-mode-doc-comment.d.ts +3 -3
- package/widgets/ace/_ace-mode-doc-comment.js +21 -21
- package/widgets/ace/_binding.d.ts +3 -4
- package/widgets/ace/_binding.js +23 -19
- package/widgets/bindings.d.ts +3 -3
- package/widgets/bindings.js +8 -8
- package/widgets/common/_codeCompletor.d.ts +3 -3
- package/widgets/common/_codeCompletor.js +67 -67
- package/widgets/common/_displayNameProvider.d.ts +3 -3
- package/widgets/common/_displayNameProvider.js +6 -6
- package/widgets/common/displayNameProvider.d.ts +3 -3
- package/widgets/common/displayNameProvider.js +3 -3
- package/widgets/common/pathRequest.d.ts +3 -3
- package/widgets/common/pathRequest.js +4 -4
- package/widgets/criteria/criteriaOperatorPreprocessor.d.ts +3 -3
- package/widgets/criteria/criteriaOperatorPreprocessor.js +15 -15
- package/widgets/criteria/operators/aggregate.d.ts +3 -3
- package/widgets/criteria/operators/aggregate.js +4 -4
- package/widgets/criteria/operators/between.d.ts +3 -3
- package/widgets/criteria/operators/between.js +6 -6
- package/widgets/criteria/operators/binary.d.ts +3 -3
- package/widgets/criteria/operators/binary.js +4 -4
- package/widgets/criteria/operators/constant.d.ts +3 -3
- package/widgets/criteria/operators/constant.js +3 -3
- package/widgets/criteria/operators/criteriaOperator.d.ts +3 -3
- package/widgets/criteria/operators/criteriaOperator.js +14 -15
- package/widgets/criteria/operators/function.d.ts +3 -3
- package/widgets/criteria/operators/function.js +6 -6
- package/widgets/criteria/operators/group.d.ts +3 -3
- package/widgets/criteria/operators/group.js +9 -9
- package/widgets/criteria/operators/in.d.ts +3 -3
- package/widgets/criteria/operators/in.js +6 -6
- package/widgets/criteria/operators/join.d.ts +3 -3
- package/widgets/criteria/operators/join.js +6 -6
- package/widgets/criteria/operators/parameter.d.ts +3 -3
- package/widgets/criteria/operators/parameter.js +5 -5
- package/widgets/criteria/operators/property.d.ts +3 -3
- package/widgets/criteria/operators/property.js +5 -5
- package/widgets/criteria/operators/unary.d.ts +3 -3
- package/widgets/criteria/operators/unary.js +4 -4
- package/widgets/criteria/operators/value.d.ts +3 -3
- package/widgets/criteria/operators/value.js +13 -12
- package/widgets/criteria/parser/criteriaparser.d.ts +3 -3
- package/widgets/criteria/parser/criteriaparser.js +3 -3
- package/widgets/criteria/utils.d.ts +11 -11
- package/widgets/criteria/utils.js +14 -14
- package/widgets/expressioneditor/_expressioneditor.d.ts +3 -3
- package/widgets/expressioneditor/_expressioneditor.js +5 -5
- package/widgets/expressioneditor/bindings.d.ts +3 -3
- package/widgets/expressioneditor/bindings.js +6 -6
- package/widgets/expressioneditor/expressioneditor.d.ts +3 -3
- package/widgets/expressioneditor/expressioneditor.js +29 -26
- package/widgets/expressioneditor/tools/_functions.d.ts +4 -5
- package/widgets/expressioneditor/tools/_functions.js +135 -135
- package/widgets/expressioneditor/tools/_operatorNames.d.ts +3 -3
- package/widgets/expressioneditor/tools/_operatorNames.js +24 -24
- package/widgets/expressioneditor/tools/_tools.d.ts +3 -3
- package/widgets/expressioneditor/tools/_tools.js +20 -20
- package/widgets/expressioneditor/tools/_treeListControllers.d.ts +3 -3
- package/widgets/expressioneditor/tools/_treeListControllers.js +5 -5
- package/widgets/filtereditor/filtereditor.d.ts +3 -3
- package/widgets/filtereditor/filtereditor.js +28 -27
- package/widgets/filtereditor/filtereditoroptions.d.ts +3 -3
- package/widgets/filtereditor/filtereditoroptions.js +7 -7
- package/widgets/filtereditor/helpers/_addon.d.ts +3 -3
- package/widgets/filtereditor/helpers/_addon.js +9 -9
- package/widgets/filtereditor/helpers/_codeCompletor.d.ts +3 -3
- package/widgets/filtereditor/helpers/_codeCompletor.js +5 -5
- package/widgets/filtereditor/helpers/_helper.d.ts +3 -3
- package/widgets/filtereditor/helpers/_helper.js +3 -3
- package/widgets/filtereditor/helpers/_serializer.d.ts +19 -19
- package/widgets/filtereditor/helpers/_serializer.js +33 -33
- package/widgets/filtereditor/helpers/_treelistController.d.ts +3 -3
- package/widgets/filtereditor/helpers/_treelistController.js +5 -5
- package/widgets/filtereditor/helpers/_validator.d.ts +3 -3
- package/widgets/filtereditor/helpers/_validator.js +3 -3
- package/widgets/filtereditor/helpers/helper.d.ts +3 -3
- package/widgets/filtereditor/helpers/helper.js +90 -90
- package/widgets/filtereditor/operators/aggregateOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/aggregateOperandSurface.js +7 -7
- package/widgets/filtereditor/operators/betweenOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/betweenOperandSurface.js +4 -4
- package/widgets/filtereditor/operators/binaryOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/binaryOperandSurface.js +4 -4
- package/widgets/filtereditor/operators/criteriaOperatorSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/criteriaOperatorSurface.js +12 -12
- package/widgets/filtereditor/operators/functionOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/functionOperandSurface.js +6 -6
- package/widgets/filtereditor/operators/groupOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/groupOperandSurface.js +10 -10
- package/widgets/filtereditor/operators/inOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/inOperandSurface.js +4 -4
- package/widgets/filtereditor/operators/operandParameterSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/operandParameterSurface.js +6 -6
- package/widgets/filtereditor/operators/operandPropertySurface.d.ts +3 -3
- package/widgets/filtereditor/operators/operandPropertySurface.js +15 -15
- package/widgets/filtereditor/operators/operandSurfaceBase.d.ts +3 -3
- package/widgets/filtereditor/operators/operandSurfaceBase.js +10 -10
- package/widgets/filtereditor/operators/operandValueSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/operandValueSurface.js +14 -12
- package/widgets/filtereditor/operators/unaryOperandSurface.d.ts +3 -3
- package/widgets/filtereditor/operators/unaryOperandSurface.js +5 -5
- package/widgets/formatstring/_patterns.d.ts +3 -3
- package/widgets/formatstring/_patterns.js +3 -3
- package/widgets/formatstring/binding.d.ts +3 -3
- package/widgets/formatstring/binding.js +6 -6
- package/widgets/formatstring/formatstringeditor.d.ts +3 -3
- package/widgets/formatstring/formatstringeditor.js +28 -28
- package/widgets/internal/_popupwithautoheight.d.ts +3 -3
- package/widgets/internal/_popupwithautoheight.js +6 -6
- package/widgets/internal/_valueEditorHelper.d.ts +16 -16
- package/widgets/internal/_valueEditorHelper.js +67 -67
- package/widgets/treelist/_binding.d.ts +3 -3
- package/widgets/treelist/_binding.js +8 -8
- package/widgets/treelist/_treeListSearchViewModel.d.ts +3 -3
- package/widgets/treelist/_treeListSearchViewModel.js +24 -17
- package/widgets/treelist/_treelistController.d.ts +3 -3
- package/widgets/treelist/_treelistController.js +4 -4
- package/widgets/treelist/_treelistItem.d.ts +4 -5
- package/widgets/treelist/_treelistItem.js +35 -38
- package/widgets/treelist/options.d.ts +4 -5
- package/widgets/treelist/options.js +5 -5
- package/widgets/utils.d.ts +3 -3
- package/widgets/utils.js +3 -3
- package/core/widgets/editorsInfo.d.ts +0 -95
- package/core/widgets/editorsInfo.js +0 -40
- package/dx-querybuilder-templates.d.ts +0 -8
- package/dx-querybuilder-templates.js +0 -101
- package/utils/analytics-namespaces.js +0 -1
package/widgets/ace/_binding.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\ace\_binding.js)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -12,14 +12,15 @@ var $ = require("jquery");
|
|
|
12
12
|
var _utils_1 = require("../_utils");
|
|
13
13
|
var _internal_1 = require("../../serializer/_internal");
|
|
14
14
|
var ace_1 = require("ace-builds/src-noconflict/ace");
|
|
15
|
+
var _ace_available_1 = require("./_ace-available");
|
|
15
16
|
var ext_language_tools_1 = require("ace-builds/src-noconflict/ext-language_tools");
|
|
16
17
|
var mode_sql_1 = require("ace-builds/src-noconflict/mode-sql");
|
|
17
18
|
var mode_text_1 = require("ace-builds/src-noconflict/mode-text");
|
|
18
19
|
var mode_json_1 = require("ace-builds/src-noconflict/mode-json");
|
|
19
20
|
var theme_ambiance_1 = require("ace-builds/src-noconflict/theme-ambiance");
|
|
20
21
|
var theme_dreamweaver_1 = require("ace-builds/src-noconflict/theme-dreamweaver");
|
|
21
|
-
|
|
22
|
-
if (!window[
|
|
22
|
+
_ace_available_1.aceAvailable(!!ace_1.default);
|
|
23
|
+
if (!window['ace'] && _ace_available_1.aceAvailable()) {
|
|
23
24
|
ace_1.default.config.setModuleUrl('ace/ext/language_tools', ext_language_tools_1.default);
|
|
24
25
|
ace_1.default.config.setModuleUrl('ace/mode/sql', mode_sql_1.default);
|
|
25
26
|
ace_1.default.config.setModuleUrl('ace/mode/text', mode_text_1.default);
|
|
@@ -29,11 +30,11 @@ if (!window["ace"] && exports.aceAvailable) {
|
|
|
29
30
|
}
|
|
30
31
|
require("./_ace-mode-doc-comment");
|
|
31
32
|
require("./_ace-mode-criteria");
|
|
32
|
-
ko.bindingHandlers[
|
|
33
|
+
ko.bindingHandlers['dxAceEditor'] = {
|
|
33
34
|
init: function (element, valueAccessor, allBindings, viewModel, bindingContext) {
|
|
34
35
|
var values = valueAccessor(), text = values.value, editorContainer = values.editorContainer, editor, shouldProcessOnChangeEvent = true, _setEditorText = function (editorInstance, text) {
|
|
35
36
|
shouldProcessOnChangeEvent = false;
|
|
36
|
-
editorInstance.getSession().setValue((text && text.toString()) ||
|
|
37
|
+
editorInstance.getSession().setValue((text && text.toString()) || '');
|
|
37
38
|
editorInstance.clearSelection();
|
|
38
39
|
editorInstance.getSession().getUndoManager().reset();
|
|
39
40
|
shouldProcessOnChangeEvent = true;
|
|
@@ -41,12 +42,12 @@ ko.bindingHandlers["dxAceEditor"] = {
|
|
|
41
42
|
if (ace_1.default) {
|
|
42
43
|
var showGutter = values.options.showGutter != undefined ? values.options.showGutter : true;
|
|
43
44
|
var additionalOptions = values.additionalOptions;
|
|
44
|
-
var langTools = ace_1.default.require(
|
|
45
|
+
var langTools = ace_1.default.require('ace/ext/language_tools');
|
|
45
46
|
editor = ace_1.default.edit(element);
|
|
46
47
|
var guid = ko.observable(null);
|
|
47
48
|
var theme = values.theme;
|
|
48
49
|
if (!theme)
|
|
49
|
-
theme = _utils_1.isDarkTheme() ?
|
|
50
|
+
theme = _utils_1.isDarkTheme() ? 'ace/theme/ambiance' : 'ace/theme/dreamweaver';
|
|
50
51
|
editor.setTheme(theme);
|
|
51
52
|
editor.$blockScrolling = Infinity;
|
|
52
53
|
var languageMode = viewModel.languageHelper.getLanguageMode();
|
|
@@ -73,7 +74,7 @@ ko.bindingHandlers["dxAceEditor"] = {
|
|
|
73
74
|
}, additionalOptions && additionalOptions.changeTimeout || 1000);
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
session.on(
|
|
77
|
+
session.on('change', onChange);
|
|
77
78
|
}
|
|
78
79
|
if (additionalOptions.overrideEditorFocus) {
|
|
79
80
|
editor.focus = function (a, e) {
|
|
@@ -82,7 +83,7 @@ ko.bindingHandlers["dxAceEditor"] = {
|
|
|
82
83
|
}
|
|
83
84
|
if (additionalOptions.onFocus) {
|
|
84
85
|
onFocus = function () { additionalOptions.onFocus(session); };
|
|
85
|
-
editor.on(
|
|
86
|
+
editor.on('focus', onFocus);
|
|
86
87
|
}
|
|
87
88
|
if (additionalOptions.onBlur) {
|
|
88
89
|
onBlur = function () {
|
|
@@ -94,21 +95,21 @@ ko.bindingHandlers["dxAceEditor"] = {
|
|
|
94
95
|
onChangeAnnotation = function (a, e) {
|
|
95
96
|
additionalOptions.onChangeAnnotation(e);
|
|
96
97
|
};
|
|
97
|
-
session.on(
|
|
98
|
+
session.on('changeAnnotation', onChangeAnnotation);
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
|
-
editor.on(
|
|
101
|
+
editor.on('blur', onBlur);
|
|
101
102
|
var completers = viewModel.languageHelper.createCompleters(editor, bindingContext, viewModel);
|
|
102
103
|
langTools.setCompleters(completers);
|
|
103
104
|
editor.setOptions(values.options);
|
|
104
|
-
if (additionalOptions &&
|
|
105
|
+
if (additionalOptions && 'setUseWrapMode' in additionalOptions) {
|
|
105
106
|
editor.getSession().setUseWrapMode(additionalOptions.setUseWrapMode);
|
|
106
107
|
}
|
|
107
108
|
if (!showGutter) {
|
|
108
109
|
editor.renderer.setShowGutter(showGutter);
|
|
109
110
|
}
|
|
110
111
|
if (editor.renderer.$gutter) {
|
|
111
|
-
var gutterClassName = editor.renderer.$gutter.className +
|
|
112
|
+
var gutterClassName = editor.renderer.$gutter.className + ' dxd-border-primary dxd-text-primary dxd-back-primary';
|
|
112
113
|
editor.renderer.$gutter.className = gutterClassName;
|
|
113
114
|
}
|
|
114
115
|
var oldMouseMove = editor._defaultHandlers.guttermousemove;
|
|
@@ -135,14 +136,17 @@ ko.bindingHandlers["dxAceEditor"] = {
|
|
|
135
136
|
}, 10);
|
|
136
137
|
};
|
|
137
138
|
_internal_1.addDisposeCallback(element, function () {
|
|
139
|
+
editor.completers && editor.completers.splice(0);
|
|
140
|
+
editor._defaultHandlers.guttermousemove = oldMouseMove;
|
|
138
141
|
subscription.dispose();
|
|
139
142
|
if (values.callbacks)
|
|
140
143
|
values.callbacks.focus = $.noop;
|
|
141
144
|
completers.forEach(function (x) { return x.dispose && x.dispose(); });
|
|
142
|
-
onBlur && editor.off(
|
|
143
|
-
onFocus && editor.off(
|
|
144
|
-
onChange && session.off(
|
|
145
|
-
onChangeAnnotation && session.off(
|
|
145
|
+
onBlur && editor.off('blur', onBlur);
|
|
146
|
+
onFocus && editor.off('focus', onFocus);
|
|
147
|
+
onChange && session.off('change', onChange);
|
|
148
|
+
onChangeAnnotation && session.off('changeAnnotation', onChangeAnnotation);
|
|
149
|
+
editor.destroy();
|
|
146
150
|
});
|
|
147
151
|
}
|
|
148
152
|
if (ko.isObservable(editorContainer)) {
|
package/widgets/bindings.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\bindings.d.ts)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
export {};
|
package/widgets/bindings.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\bindings.js)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -10,13 +10,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var ko = require("knockout");
|
|
11
11
|
var $ = require("jquery");
|
|
12
12
|
var _internal_1 = require("../serializer/_internal");
|
|
13
|
-
ko.bindingHandlers[
|
|
13
|
+
ko.bindingHandlers['focus'] = {
|
|
14
14
|
init: function (element, valueAccessor) {
|
|
15
15
|
var visible = valueAccessor().on || valueAccessor();
|
|
16
16
|
var subscription = visible.subscribe(function (newVal) {
|
|
17
17
|
if (newVal) {
|
|
18
18
|
setTimeout(function () {
|
|
19
|
-
$(element).find(
|
|
19
|
+
$(element).find(':input').focus();
|
|
20
20
|
}, 1);
|
|
21
21
|
}
|
|
22
22
|
});
|
|
@@ -25,9 +25,9 @@ ko.bindingHandlers["focus"] = {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
ko.bindingHandlers[
|
|
28
|
+
ko.bindingHandlers['svgAttrs'] = {
|
|
29
29
|
update: function (element, valueAccessor, allBindingsAccessor, viewModel) {
|
|
30
|
-
element.setAttribute('xmlns',
|
|
31
|
-
element.setAttribute('xmlns:xlink',
|
|
30
|
+
element.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
31
|
+
element.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\common\_codeCompletor.d.ts)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
import * as ko from 'knockout';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\common\_codeCompletor.js)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -37,13 +37,13 @@ var CodeCompletor = (function (_super) {
|
|
|
37
37
|
_this._options = _options;
|
|
38
38
|
_this._contextPath = null;
|
|
39
39
|
_this._isInContext = function () { return _this._contextPath !== null; };
|
|
40
|
-
_this._getPath = function () { return _this._contextPath ? _this._path() +
|
|
40
|
+
_this._getPath = function () { return _this._contextPath ? _this._path() + '.' + _this._contextPath : _this._path(); };
|
|
41
41
|
_this.identifierRegexps = [/\./, /\[/];
|
|
42
42
|
_this._fieldListProvider = _options.fieldListProvider;
|
|
43
43
|
_this._path = _options.path;
|
|
44
44
|
_this._editor = _options.editor;
|
|
45
|
-
_this._functions = ko.computed(function () { return ko.unwrap(_options.functions) || _functions_1.functionDisplay; });
|
|
46
|
-
_this._rootItems = _options.rootItems || [{ name:
|
|
45
|
+
_this._functions = ko.computed(function () { return ko.unwrap(_options.functions) || _functions_1.functionDisplay(); });
|
|
46
|
+
_this._rootItems = _options.rootItems || [{ name: 'Parameters', needPrefix: true }];
|
|
47
47
|
_this._disposables.push(_this._functions);
|
|
48
48
|
return _this;
|
|
49
49
|
}
|
|
@@ -53,22 +53,22 @@ var CodeCompletor = (function (_super) {
|
|
|
53
53
|
};
|
|
54
54
|
CodeCompletor.prototype.beforeInsertMatch = function (editor, token, parentPrefix) {
|
|
55
55
|
var cursorPosition = editor.getCursorPosition();
|
|
56
|
-
if (parentPrefix ===
|
|
57
|
-
token = token || !this[
|
|
56
|
+
if (parentPrefix === 'Parameters.') {
|
|
57
|
+
token = token || !this['_isInContext']() && editor.session.getTokenAt(cursorPosition.row, cursorPosition.column);
|
|
58
58
|
if (token) {
|
|
59
|
-
if ((token.type ===
|
|
59
|
+
if ((token.type === 'support.variable.other' || token.type === 'support.function')) {
|
|
60
60
|
editor.session.remove({
|
|
61
61
|
start: { column: token.start - 1 || 0, row: cursorPosition.row },
|
|
62
62
|
end: { column: Math.max(token.start + token.value.length || 0, cursorPosition.column), row: cursorPosition.row }
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
else if (token.type ===
|
|
65
|
+
else if (token.type === 'support.variable.parameter') {
|
|
66
66
|
editor.session.remove({
|
|
67
67
|
start: { column: token.start || 0, row: cursorPosition.row },
|
|
68
68
|
end: { column: Math.max(token.start + token.value.length + 1 || 0, cursorPosition.column), row: cursorPosition.row }
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
else if (token.type ===
|
|
71
|
+
else if (token.type === 'text' && token.value[token.value.length - 1] === '?') {
|
|
72
72
|
editor.session.remove({
|
|
73
73
|
start: { column: token.start + token.value.length - 1 || 0, row: cursorPosition.row },
|
|
74
74
|
end: { column: token.start + token.value.length || 0, row: cursorPosition.row },
|
|
@@ -81,10 +81,10 @@ var CodeCompletor = (function (_super) {
|
|
|
81
81
|
if (!token)
|
|
82
82
|
return;
|
|
83
83
|
var endColumn = null;
|
|
84
|
-
if (token.type ===
|
|
84
|
+
if (token.type === 'support.variable.other' || token.type === 'support.function') {
|
|
85
85
|
endColumn = Math.max(token.start + token.value.length || 0, cursorPosition.column);
|
|
86
86
|
}
|
|
87
|
-
else if (token.type ===
|
|
87
|
+
else if (token.type === 'support.context.start' && cursorPosition.column < token.start + token.value.length) {
|
|
88
88
|
endColumn = token.start + token.value.length - 1 || 0;
|
|
89
89
|
}
|
|
90
90
|
if (endColumn !== null)
|
|
@@ -95,28 +95,28 @@ var CodeCompletor = (function (_super) {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
CodeCompletor.prototype.insertMatch = function (editor, parentPrefix, fieldName) {
|
|
98
|
-
if (parentPrefix ===
|
|
99
|
-
editor.insert(
|
|
98
|
+
if (parentPrefix === 'Parameters.') {
|
|
99
|
+
editor.insert('?' + fieldName);
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
|
-
editor.insert(
|
|
102
|
+
editor.insert('[' + (parentPrefix || '') + fieldName + ']');
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
CodeCompletor.prototype.generateFieldDisplayName = function (parentPrefix, displayName) {
|
|
106
|
-
if (parentPrefix ===
|
|
107
|
-
return
|
|
106
|
+
if (parentPrefix === 'Parameters.') {
|
|
107
|
+
return '?' + displayName;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return '[' + displayName + ']';
|
|
110
110
|
};
|
|
111
111
|
CodeCompletor.prototype._convertDataMemberInfoToCompletions = function (fields, token, parentPrefix) {
|
|
112
112
|
var _this = this;
|
|
113
|
-
if (parentPrefix === void 0) { parentPrefix =
|
|
113
|
+
if (parentPrefix === void 0) { parentPrefix = ''; }
|
|
114
114
|
return (fields || []).map(function (field) {
|
|
115
115
|
var displayName = _this.generateFieldDisplayName(parentPrefix, field.displayName);
|
|
116
116
|
return {
|
|
117
117
|
caption: field.displayName || field.name,
|
|
118
118
|
snippet: displayName,
|
|
119
|
-
meta: _utils_1.isList(field) && localization_utils_1.getLocalization(
|
|
119
|
+
meta: _utils_1.isList(field) && localization_utils_1.getLocalization('list', 'DxDesignerStringId.CodeCompletion_List') || localization_utils_1.getLocalization('field', 'DxDesignerStringId.CodeCompletion_Field'),
|
|
120
120
|
score: _utils_1.isList(field) && 200 || 100,
|
|
121
121
|
completer: {
|
|
122
122
|
insertMatch: function (editor, data) {
|
|
@@ -140,14 +140,14 @@ var CodeCompletor = (function (_super) {
|
|
|
140
140
|
};
|
|
141
141
|
CodeCompletor.prototype._getParentPrefix = function (token) {
|
|
142
142
|
var position = this._editor.getCursorPosition().column - token.start - 1;
|
|
143
|
-
var dotIndex = token.value.lastIndexOf(
|
|
144
|
-
var closeIndex = token.value.lastIndexOf(
|
|
143
|
+
var dotIndex = token.value.lastIndexOf('.', position);
|
|
144
|
+
var closeIndex = token.value.lastIndexOf(']', position);
|
|
145
145
|
dotIndex = Math.max(closeIndex, dotIndex);
|
|
146
|
-
var startIndex = token.type ===
|
|
146
|
+
var startIndex = token.type === 'support.variable.other' || token.type === 'support.context.start' ? 1 : 0;
|
|
147
147
|
var parentPrefix = token.value.substring(startIndex, dotIndex);
|
|
148
|
-
if (parentPrefix[0] ===
|
|
148
|
+
if (parentPrefix[0] === '[')
|
|
149
149
|
parentPrefix = parentPrefix.substr(1);
|
|
150
|
-
if (parentPrefix[parentPrefix.length - 1] ===
|
|
150
|
+
if (parentPrefix[parentPrefix.length - 1] === ']')
|
|
151
151
|
parentPrefix = parentPrefix.substring(0, parentPrefix.length - 1);
|
|
152
152
|
return parentPrefix;
|
|
153
153
|
};
|
|
@@ -172,13 +172,13 @@ var CodeCompletor = (function (_super) {
|
|
|
172
172
|
if (ignorePrefix === void 0) { ignorePrefix = false; }
|
|
173
173
|
var $deferred = $.Deferred();
|
|
174
174
|
var parentPrefix = undefined;
|
|
175
|
-
if (token && (token.type ===
|
|
175
|
+
if (token && (token.type === 'support.variable.other' || token.type === 'support.function' || token.type === 'support.context.start')) {
|
|
176
176
|
parentPrefix = this._getParentPrefix(token);
|
|
177
177
|
}
|
|
178
178
|
this._getRealPath(this._combinePath(parentPrefix)).done(function (path) {
|
|
179
179
|
var $fields = ko.unwrap(_this._fieldListProvider).getItems(new pathRequest_1.PathRequest(path))
|
|
180
180
|
.done(function (fields) {
|
|
181
|
-
completions.push.apply(completions, _this._convertDataMemberInfoToCompletions(CodeCompletor._cleanupFields(fields), token, ignorePrefix ? null : parentPrefix && parentPrefix +
|
|
181
|
+
completions.push.apply(completions, _this._convertDataMemberInfoToCompletions(CodeCompletor._cleanupFields(fields), token, ignorePrefix ? null : parentPrefix && parentPrefix + '.'));
|
|
182
182
|
});
|
|
183
183
|
var $deferreds = [$fields];
|
|
184
184
|
var rootPathRequests = [];
|
|
@@ -189,7 +189,7 @@ var CodeCompletor = (function (_super) {
|
|
|
189
189
|
rootPathRequests.push(path);
|
|
190
190
|
$deferreds.push(ko.unwrap(_this._fieldListProvider).getItems(new pathRequest_1.PathRequest(path))
|
|
191
191
|
.done(function (fields) {
|
|
192
|
-
_this._processFields($deferreds, fields, completions, path, token, item.needPrefix ? item.name +
|
|
192
|
+
_this._processFields($deferreds, fields, completions, path, token, item.needPrefix ? item.name + '.' : '', true);
|
|
193
193
|
}));
|
|
194
194
|
}
|
|
195
195
|
});
|
|
@@ -200,18 +200,18 @@ var CodeCompletor = (function (_super) {
|
|
|
200
200
|
};
|
|
201
201
|
CodeCompletor._cleanupFields = function (fields) {
|
|
202
202
|
if (fields === void 0) { fields = []; }
|
|
203
|
-
return fields.filter(function (x) { return x.specifics !==
|
|
203
|
+
return fields.filter(function (x) { return x.specifics !== 'parameters' && x.specifics !== 'none'; });
|
|
204
204
|
};
|
|
205
205
|
CodeCompletor.prototype._processFields = function ($deferreds, fields, completions, path, token, parentPrefix, needCleanup) {
|
|
206
206
|
var _this = this;
|
|
207
|
-
if (parentPrefix === void 0) { parentPrefix =
|
|
207
|
+
if (parentPrefix === void 0) { parentPrefix = ''; }
|
|
208
208
|
if (needCleanup === void 0) { needCleanup = false; }
|
|
209
209
|
var pushToCompletions = function (fields) {
|
|
210
210
|
completions.push.apply(completions, _this._convertDataMemberInfoToCompletions(needCleanup ? CodeCompletor._cleanupFields(fields) : fields, token, parentPrefix));
|
|
211
211
|
};
|
|
212
212
|
fields.forEach(function (item) {
|
|
213
213
|
if (item.specifics === _expressioneditor_1.RangeSpecific && _utils_1.isList(item)) {
|
|
214
|
-
$deferreds.push(ko.unwrap(_this._fieldListProvider).getItems(new pathRequest_1.PathRequest(path +
|
|
214
|
+
$deferreds.push(ko.unwrap(_this._fieldListProvider).getItems(new pathRequest_1.PathRequest(path + '.' + item.name))
|
|
215
215
|
.done(function (subFields) {
|
|
216
216
|
pushToCompletions(subFields);
|
|
217
217
|
})
|
|
@@ -226,7 +226,7 @@ var CodeCompletor = (function (_super) {
|
|
|
226
226
|
};
|
|
227
227
|
CodeCompletor.prototype.getFunctionsCompletions = function () {
|
|
228
228
|
var functions = [];
|
|
229
|
-
var functionsWithoutAggregates = ko.unwrap(this._functions).filter(function (fnDisplay) { return fnDisplay.category !==
|
|
229
|
+
var functionsWithoutAggregates = ko.unwrap(this._functions).filter(function (fnDisplay) { return fnDisplay.category !== 'Aggregate'; });
|
|
230
230
|
functionsWithoutAggregates.forEach(function (fnDisplay) {
|
|
231
231
|
Object.keys(fnDisplay.items).forEach(function (fnKey) {
|
|
232
232
|
if (fnDisplay.items[fnKey]) {
|
|
@@ -238,18 +238,18 @@ var CodeCompletor = (function (_super) {
|
|
|
238
238
|
};
|
|
239
239
|
CodeCompletor.prototype.getAggregateCompletions = function () {
|
|
240
240
|
var functions = [];
|
|
241
|
-
var aggregates = ko.unwrap(this._functions).filter(function (fnDisplay) { return fnDisplay.category ===
|
|
241
|
+
var aggregates = ko.unwrap(this._functions).filter(function (fnDisplay) { return fnDisplay.category === 'Aggregate'; })[0];
|
|
242
242
|
if (aggregates)
|
|
243
243
|
Object.keys(aggregates.items).forEach(function (fnKey) {
|
|
244
244
|
if (aggregates.items[fnKey]) {
|
|
245
|
-
functions.push(createFunctionCompletion(aggregates.items[fnKey][0], fnKey, fnKey +
|
|
245
|
+
functions.push(createFunctionCompletion(aggregates.items[fnKey][0], fnKey, fnKey + '()'));
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
248
|
return functions;
|
|
249
249
|
};
|
|
250
250
|
CodeCompletor.prototype.getOperatorCompletions = function (prefix) {
|
|
251
251
|
return _operatorNames_1.operatorNames.map(function (operator) {
|
|
252
|
-
return { caption: operator.text, snippet: prefix + operator.text, meta: localization_utils_1.getLocalization(
|
|
252
|
+
return { caption: operator.text, snippet: prefix + operator.text, meta: localization_utils_1.getLocalization('operator', 'DxDesignerStringId.CodeCompletion_Operator') };
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
255
|
CodeCompletor.prototype._addFunctions = function (completions) {
|
|
@@ -259,17 +259,17 @@ var CodeCompletor = (function (_super) {
|
|
|
259
259
|
completions.push.apply(completions, this.getAggregateCompletions());
|
|
260
260
|
};
|
|
261
261
|
CodeCompletor.prototype._addOperators = function (completions, text) {
|
|
262
|
-
var prefix = /\s/.test(text[text.length - 1]) ?
|
|
262
|
+
var prefix = /\s/.test(text[text.length - 1]) ? '' : ' ';
|
|
263
263
|
completions.push.apply(completions, this.getOperatorCompletions(prefix));
|
|
264
264
|
};
|
|
265
265
|
CodeCompletor.prototype._addParameterOperators = function (completions, token) {
|
|
266
266
|
var _this = this;
|
|
267
267
|
var $deferred = $.Deferred();
|
|
268
268
|
var $parametersPromises = [];
|
|
269
|
-
var paramPath =
|
|
270
|
-
$parametersPromises.push(ko.unwrap(this[
|
|
269
|
+
var paramPath = 'Parameters';
|
|
270
|
+
$parametersPromises.push(ko.unwrap(this['_fieldListProvider']).getItems(new pathRequest_1.PathRequest(paramPath))
|
|
271
271
|
.done(function (fields) {
|
|
272
|
-
_this._processFields($parametersPromises, fields, completions, paramPath, token, paramPath +
|
|
272
|
+
_this._processFields($parametersPromises, fields, completions, paramPath, token, paramPath + '.');
|
|
273
273
|
}));
|
|
274
274
|
$.when($parametersPromises).always(function () { $deferred.resolve(completions); });
|
|
275
275
|
return $deferred.promise();
|
|
@@ -290,10 +290,10 @@ var CodeCompletor = (function (_super) {
|
|
|
290
290
|
}
|
|
291
291
|
var trimmedText = text.trim();
|
|
292
292
|
var lastNonSpaceSymbol = trimmedText[trimmedText.length - 1];
|
|
293
|
-
if (lastNonSpaceSymbol === '?' && text[text.length - 1] !==
|
|
293
|
+
if (lastNonSpaceSymbol === '?' && text[text.length - 1] !== ' ') {
|
|
294
294
|
this._addParameterOperators(completions, token);
|
|
295
295
|
}
|
|
296
|
-
else if (!exceptionInfo && trimmedText || (lastNonSpaceSymbol ===
|
|
296
|
+
else if (!exceptionInfo && trimmedText || (lastNonSpaceSymbol === ']' || lastNonSpaceSymbol === ')')) {
|
|
297
297
|
this._addOperators(completions, text);
|
|
298
298
|
}
|
|
299
299
|
else {
|
|
@@ -304,10 +304,10 @@ var CodeCompletor = (function (_super) {
|
|
|
304
304
|
var blocks = 0;
|
|
305
305
|
var path = [];
|
|
306
306
|
for (var i = index; i > -1; i--) {
|
|
307
|
-
if (tokens[i].type ===
|
|
307
|
+
if (tokens[i].type === 'support.context.end') {
|
|
308
308
|
blocks++;
|
|
309
309
|
}
|
|
310
|
-
else if (tokens[i].type ===
|
|
310
|
+
else if (tokens[i].type === 'support.context.start') {
|
|
311
311
|
if (blocks > 0)
|
|
312
312
|
blocks--;
|
|
313
313
|
else
|
|
@@ -317,9 +317,9 @@ var CodeCompletor = (function (_super) {
|
|
|
317
317
|
};
|
|
318
318
|
CodeCompletor.prototype._findOpenedStartContext = function (tokens, index) {
|
|
319
319
|
var openedContextIndexes = [];
|
|
320
|
-
var contextItems = tokens.filter(function (token, tokenIndex) { return (token.type ===
|
|
320
|
+
var contextItems = tokens.filter(function (token, tokenIndex) { return (token.type === 'support.context.start' || token.type === 'support.context.end') && tokenIndex < index; });
|
|
321
321
|
for (var i = 0; i < contextItems.length; i++) {
|
|
322
|
-
if (contextItems[i].type ===
|
|
322
|
+
if (contextItems[i].type === 'support.context.start') {
|
|
323
323
|
openedContextIndexes.push(tokens.indexOf(contextItems[i]));
|
|
324
324
|
}
|
|
325
325
|
else {
|
|
@@ -330,7 +330,7 @@ var CodeCompletor = (function (_super) {
|
|
|
330
330
|
};
|
|
331
331
|
CodeCompletor.prototype._findOpenedAggregates = function (tokens, index) {
|
|
332
332
|
var openedAggregatesIndexes = [];
|
|
333
|
-
var aggregates = tokens.filter(function (token, tokenIndex) { return token.type ===
|
|
333
|
+
var aggregates = tokens.filter(function (token, tokenIndex) { return token.type === 'support.other.aggregate' && tokenIndex < index; });
|
|
334
334
|
if (aggregates.length > 0) {
|
|
335
335
|
var currentToken = tokens[index];
|
|
336
336
|
var currentCursorPosition = this._editor.getCursorPosition().column - (currentToken && currentToken.start || 0);
|
|
@@ -339,17 +339,17 @@ var CodeCompletor = (function (_super) {
|
|
|
339
339
|
var openBrace = 0;
|
|
340
340
|
var closeBrace = 0;
|
|
341
341
|
var isClosedAggregate = false;
|
|
342
|
-
if (aggregateIndex + 1 === index && tokens[aggregateIndex + 1].value.substr(0, currentCursorPosition).indexOf(
|
|
343
|
-
aggregateIndex + 1 < index && tokens[aggregateIndex + 1].value.indexOf(
|
|
342
|
+
if (aggregateIndex + 1 === index && tokens[aggregateIndex + 1].value.substr(0, currentCursorPosition).indexOf('()') !== -1 ||
|
|
343
|
+
aggregateIndex + 1 < index && tokens[aggregateIndex + 1].value.indexOf('()') !== -1) {
|
|
344
344
|
isClosedAggregate = true;
|
|
345
345
|
index = aggregateIndex;
|
|
346
346
|
continue;
|
|
347
347
|
}
|
|
348
348
|
for (var j = aggregateIndex; j < index; j++) {
|
|
349
|
-
if (tokens[j].value.trim() ===
|
|
349
|
+
if (tokens[j].value.trim() === '(') {
|
|
350
350
|
openBrace++;
|
|
351
351
|
}
|
|
352
|
-
else if (tokens[j].value.trim() ===
|
|
352
|
+
else if (tokens[j].value.trim() === ')') {
|
|
353
353
|
closeBrace++;
|
|
354
354
|
}
|
|
355
355
|
if (openBrace === closeBrace && openBrace !== 0) {
|
|
@@ -371,13 +371,13 @@ var CodeCompletor = (function (_super) {
|
|
|
371
371
|
var contextPath = openedContextPositions.concat.apply(openedContextPositions, openedAggregatePositions).sort(function (a, b) { return a - b; });
|
|
372
372
|
if (contextPath.length > 0) {
|
|
373
373
|
for (var i = 0; i < contextPath.length; i++) {
|
|
374
|
-
if (tokens[contextPath[i]].type ===
|
|
375
|
-
if (tokens[contextPath[i] - 1].type ===
|
|
374
|
+
if (tokens[contextPath[i]].type === 'support.other.aggregate') {
|
|
375
|
+
if (tokens[contextPath[i] - 1].type === 'support.context.end') {
|
|
376
376
|
var startContextToken = this._findStartContextTokenPosition(tokens, contextPath[i] - 2);
|
|
377
377
|
var member = trimBrackets(tokens[startContextToken].value.match(/^\[(?:[^\]\)])*\]/)[0]);
|
|
378
378
|
path.push(member);
|
|
379
379
|
}
|
|
380
|
-
else if (tokens[contextPath[i] - 1].type ===
|
|
380
|
+
else if (tokens[contextPath[i] - 1].type === 'support.variable.other') {
|
|
381
381
|
path.push(trimBrackets(tokens[contextPath[i] - 1].value));
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -400,7 +400,7 @@ var CodeCompletor = (function (_super) {
|
|
|
400
400
|
if (!currentToken) {
|
|
401
401
|
$deferred = this._getOperands();
|
|
402
402
|
}
|
|
403
|
-
else if (currentToken.type ===
|
|
403
|
+
else if (currentToken.type === 'support.context.start') {
|
|
404
404
|
var ignorePrefix = this._editor.getCursorPosition().column - currentToken.start === currentToken.value.length;
|
|
405
405
|
if (ignorePrefix) {
|
|
406
406
|
var functions = [];
|
|
@@ -408,27 +408,27 @@ var CodeCompletor = (function (_super) {
|
|
|
408
408
|
}
|
|
409
409
|
$deferred = this._getFields(currentToken, functions, ignorePrefix);
|
|
410
410
|
}
|
|
411
|
-
else if (currentToken.type ===
|
|
411
|
+
else if (currentToken.type === 'string.quoted.single') {
|
|
412
412
|
}
|
|
413
|
-
else if (currentToken.type.indexOf(
|
|
413
|
+
else if (currentToken.type.indexOf('support.variable') === 0) {
|
|
414
414
|
$deferred = this._getFields(currentToken);
|
|
415
415
|
}
|
|
416
|
-
else if (currentToken.type ===
|
|
416
|
+
else if (currentToken.type === 'support.function') {
|
|
417
417
|
$deferred = this.defaultProcess(currentToken, text.substring(0, currentToken.start), completions);
|
|
418
418
|
}
|
|
419
|
-
else if (currentToken.type ===
|
|
419
|
+
else if (currentToken.type === 'support.other.aggregate') {
|
|
420
420
|
var previousToken = tokens[currentTokenIndex - 1];
|
|
421
421
|
this._addAggregates(completions);
|
|
422
422
|
if (previousToken && trimBrackets(previousToken.value).trim()) {
|
|
423
423
|
$deferred = this._getFields({
|
|
424
|
-
start: (currentToken.start - (previousToken.value ||
|
|
424
|
+
start: (currentToken.start - (previousToken.value || '').length) || 0,
|
|
425
425
|
value: previousToken.value + currentToken.value,
|
|
426
|
-
type:
|
|
426
|
+
type: 'support.function'
|
|
427
427
|
}, completions);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
else {
|
|
431
|
-
if (!(currentToken.type.indexOf(
|
|
431
|
+
if (!(currentToken.type.indexOf('comment') === 0)) {
|
|
432
432
|
$deferred = this.defaultProcess(currentToken, text, completions);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
@@ -446,7 +446,7 @@ var CodeCompletor = (function (_super) {
|
|
|
446
446
|
if (item.tooltip && !item.docHTML) {
|
|
447
447
|
item.docHTML = [
|
|
448
448
|
item.tooltip
|
|
449
|
-
].join(
|
|
449
|
+
].join('');
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
452
|
return CodeCompletor;
|
|
@@ -458,7 +458,7 @@ function createFunctionCompletion(fnInfo, name, insertValue) {
|
|
|
458
458
|
return {
|
|
459
459
|
caption: name,
|
|
460
460
|
snippet: insertValue,
|
|
461
|
-
meta: localization_utils_1.getLocalization(
|
|
461
|
+
meta: localization_utils_1.getLocalization('function', 'DxDesignerStringId.CodeCompletion_Function'),
|
|
462
462
|
tooltip: fnInfo.description || localization_utils_1.getLocalization(fnInfo.text, fnInfo.descriptionStringId) || null,
|
|
463
463
|
score: 10,
|
|
464
464
|
completer: {
|
|
@@ -471,11 +471,11 @@ function createFunctionCompletion(fnInfo, name, insertValue) {
|
|
|
471
471
|
editor.session.remove(range);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
if (insertValue.substr(0, 3) ===
|
|
474
|
+
if (insertValue.substr(0, 3) === '[].') {
|
|
475
475
|
var ranges = editor.selection.getAllRanges();
|
|
476
476
|
for (var i = 0, range; range = ranges[i]; i++) {
|
|
477
477
|
range.start.column -= 2;
|
|
478
|
-
if (editor.session.getTextRange(range) ===
|
|
478
|
+
if (editor.session.getTextRange(range) === '].')
|
|
479
479
|
insertValue = insertValue.substr(3);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
@@ -487,6 +487,6 @@ function createFunctionCompletion(fnInfo, name, insertValue) {
|
|
|
487
487
|
}
|
|
488
488
|
exports.createFunctionCompletion = createFunctionCompletion;
|
|
489
489
|
function trimBrackets(value) {
|
|
490
|
-
return value.substring(value[0] ===
|
|
490
|
+
return value.substring(value[0] === '[' ? 1 : 0, value[value.length - 1] === ']' ? value.length - 1 : value.length);
|
|
491
491
|
}
|
|
492
492
|
exports.trimBrackets = trimBrackets;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\common\_displayNameProvider.d.ts)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
import { IDisplayExpressionConverter, IDisplayNameProvider } from './displayNameProvider';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (widgets\common\_displayNameProvider.js)
|
|
3
|
-
* Version: 20.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 20.2.5
|
|
4
|
+
* Build date: Jan 18, 2021
|
|
5
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -20,7 +20,7 @@ var DisplayExpressionConverter = (function () {
|
|
|
20
20
|
var _this = this;
|
|
21
21
|
var def = $.Deferred();
|
|
22
22
|
if (!expression)
|
|
23
|
-
return def.resolve(
|
|
23
|
+
return def.resolve('').promise();
|
|
24
24
|
try {
|
|
25
25
|
var expressionCriteria = criteriaOperator_1.CriteriaOperator.parse(expression, true);
|
|
26
26
|
}
|
|
@@ -32,13 +32,13 @@ var DisplayExpressionConverter = (function () {
|
|
|
32
32
|
var serializer = new _serializer_1.FilterEditorSerializer();
|
|
33
33
|
utils_1.criteriaForEach(expressionCriteria, function (operator, innerPath) {
|
|
34
34
|
if (operator instanceof property_1.OperandProperty) {
|
|
35
|
-
var isContainsParentRelationshipTraversalOperator = operator.propertyName.indexOf(
|
|
35
|
+
var isContainsParentRelationshipTraversalOperator = operator.propertyName.indexOf('^.') === 0;
|
|
36
36
|
var propertyName = isContainsParentRelationshipTraversalOperator ? operator.propertyName.substring(2) : operator.propertyName;
|
|
37
37
|
propertyName = innerPath ? [innerPath, propertyName].join('.') : propertyName;
|
|
38
38
|
var request = getDisplayExpression ? _this.displayNameProvider.getDisplayNameByPath(path, propertyName) :
|
|
39
39
|
_this.displayNameProvider.getRealName(path, propertyName);
|
|
40
40
|
requests.push(request.done(function (data) {
|
|
41
|
-
var convertedName = isContainsParentRelationshipTraversalOperator ?
|
|
41
|
+
var convertedName = isContainsParentRelationshipTraversalOperator ? '^.' + data : data;
|
|
42
42
|
convertedName = innerPath ? convertedName.split('.').slice(innerPath.split('.').length).join('.') : convertedName;
|
|
43
43
|
result.push({
|
|
44
44
|
operand: operator,
|