dhx-chart 8.2.3 → 8.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/codebase/chart.d.ts +1 -1
- package/codebase/chart.min.css +1 -1
- package/codebase/chart.min.js +3 -3
- package/codebase/types/ts-all/sources/entry.d.ts +27 -0
- package/codebase/types/ts-all/sources/entry_pro.d.ts +17 -0
- package/codebase/types/ts-calendar/sources/entry.d.ts +7 -0
- package/codebase/types/ts-calendar/sources/types.d.ts +2 -2
- package/codebase/types/ts-calendar/tests/calendar/calendar.d.ts +1 -0
- package/codebase/types/ts-calendar/tests/suite.d.ts +1 -0
- package/codebase/types/ts-chart/index.d.ts +3 -0
- package/codebase/types/ts-chart/sources/ProChart.d.ts +7 -0
- package/codebase/types/ts-chart/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-chart/sources/helpers/circle.d.ts +2 -2
- package/codebase/types/ts-chart/sources/helpers/common.d.ts +1 -1
- package/codebase/types/ts-chart/sources/scales/SvgScales.d.ts +1 -1
- package/codebase/types/ts-chart/sources/shapes/line.d.ts +1 -1
- package/codebase/types/ts-chart/sources/types.d.ts +20 -20
- package/codebase/types/ts-chart/tests/Chart.d.ts +1 -0
- package/codebase/types/ts-chart/tests/suite.d.ts +1 -0
- package/codebase/types/ts-colorpicker/index.d.ts +5 -0
- package/codebase/types/ts-colorpicker/sources/Colorpicker.d.ts +40 -0
- package/codebase/types/ts-colorpicker/sources/colors.d.ts +2 -0
- package/codebase/types/ts-colorpicker/sources/entry.d.ts +4 -0
- package/codebase/types/ts-colorpicker/sources/helpers/calculations.d.ts +8 -0
- package/codebase/types/ts-colorpicker/sources/helpers/color.d.ts +16 -0
- package/codebase/types/ts-colorpicker/sources/locales/en.d.ts +8 -0
- package/codebase/types/ts-colorpicker/sources/picker.d.ts +4 -0
- package/codebase/types/ts-colorpicker/sources/types.d.ts +66 -0
- package/codebase/types/ts-colorpicker/tests/suite.d.ts +0 -0
- package/codebase/types/ts-combobox/sources/entry.d.ts +4 -0
- package/codebase/types/ts-combobox/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-combobox/sources/types.d.ts +2 -2
- package/codebase/types/ts-combobox/tests/suite.d.ts +0 -0
- package/codebase/types/ts-common/CssManager.d.ts +26 -0
- package/codebase/types/ts-common/core.d.ts +2 -2
- package/codebase/types/ts-common/dom.d.ts +2 -2
- package/codebase/types/ts-common/events.d.ts +2 -2
- package/codebase/types/ts-common/html.d.ts +4 -4
- package/codebase/types/ts-common/tests/core.d.ts +1 -0
- package/codebase/types/ts-common/tests/events.d.ts +1 -0
- package/codebase/types/ts-common/tests/html.d.ts +1 -0
- package/codebase/types/ts-common/tests/suite.d.ts +3 -0
- package/codebase/types/ts-common/types.d.ts +8 -8
- package/codebase/types/ts-data/sources/dataproxy.d.ts +1 -1
- package/codebase/types/ts-data/sources/entry.d.ts +5 -0
- package/codebase/types/ts-data/sources/types.d.ts +14 -14
- package/codebase/types/ts-data/tests/ajax.d.ts +1 -0
- package/codebase/types/ts-data/tests/drivers.d.ts +1 -0
- package/codebase/types/ts-data/tests/filter.d.ts +1 -0
- package/codebase/types/ts-data/tests/main.d.ts +1 -0
- package/codebase/types/ts-data/tests/move.d.ts +1 -0
- package/codebase/types/ts-data/tests/sort.d.ts +1 -0
- package/codebase/types/ts-data/tests/suite.d.ts +7 -0
- package/codebase/types/ts-data/tests/treecollection.d.ts +1 -0
- package/codebase/types/ts-dataview/index.d.ts +3 -0
- package/codebase/types/ts-dataview/sources/DataView.d.ts +41 -0
- package/codebase/types/ts-dataview/sources/ProDataView.d.ts +11 -0
- package/codebase/types/ts-dataview/sources/editors/InputEditor.d.ts +16 -0
- package/codebase/types/ts-dataview/sources/editors/editors.d.ts +4 -0
- package/codebase/types/ts-dataview/sources/entry.d.ts +3 -0
- package/codebase/types/ts-dataview/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-dataview/sources/types.d.ts +62 -0
- package/codebase/types/ts-dataview/tests/selections/Selections.d.ts +1 -0
- package/codebase/types/ts-dataview/tests/selections/stubs.d.ts +3 -0
- package/codebase/types/ts-dataview/tests/suite.d.ts +1 -0
- package/codebase/types/ts-diagram/index.d.ts +5 -0
- package/codebase/types/ts-diagram/sources/Diagram.d.ts +32 -0
- package/codebase/types/ts-diagram/sources/ShapesCollection.d.ts +16 -0
- package/codebase/types/ts-diagram/sources/Toolbar.d.ts +16 -0
- package/codebase/types/ts-diagram/sources/entry.d.ts +4 -0
- package/codebase/types/ts-diagram/sources/helpers/Export.d.ts +10 -0
- package/codebase/types/ts-diagram/sources/helpers/Selection.d.ts +14 -0
- package/codebase/types/ts-diagram/sources/helpers/linkPaths.d.ts +8 -0
- package/codebase/types/ts-diagram/sources/helpers/placement.d.ts +6 -0
- package/codebase/types/ts-diagram/sources/locales/en.d.ts +9 -0
- package/codebase/types/ts-diagram/sources/shapes/Base.d.ts +31 -0
- package/codebase/types/ts-diagram/sources/shapes/Connector/Line.d.ts +21 -0
- package/codebase/types/ts-diagram/sources/shapes/Diagram/DiagramCard.d.ts +13 -0
- package/codebase/types/ts-diagram/sources/shapes/Diagram/DiagramImgCard.d.ts +12 -0
- package/codebase/types/ts-diagram/sources/shapes/Diagram/DiagramSvgCard.d.ts +12 -0
- package/codebase/types/ts-diagram/sources/shapes/Diagram/templates.d.ts +4 -0
- package/codebase/types/ts-diagram/sources/shapes/FlowShape.d.ts +90 -0
- package/codebase/types/ts-diagram/sources/shapes/TextShape.d.ts +19 -0
- package/codebase/types/ts-diagram/sources/shapes/factory.d.ts +7 -0
- package/codebase/types/ts-diagram/sources/types.d.ts +161 -0
- package/codebase/types/ts-diagram/tests/stubs.d.ts +25 -0
- package/codebase/types/ts-diagram/tests/suite.d.ts +0 -0
- package/codebase/types/ts-form/index.d.ts +3 -0
- package/codebase/types/ts-form/sources/Form.d.ts +55 -0
- package/codebase/types/ts-form/sources/ProForm.d.ts +7 -0
- package/codebase/types/ts-form/sources/elements/ToggleButton.d.ts +77 -0
- package/codebase/types/ts-form/sources/elements/ToggleGroup.d.ts +95 -0
- package/codebase/types/ts-form/sources/elements/avatar.d.ts +119 -0
- package/codebase/types/ts-form/sources/elements/button.d.ts +70 -0
- package/codebase/types/ts-form/sources/elements/checkbox.d.ts +84 -0
- package/codebase/types/ts-form/sources/elements/checkboxGroup.d.ts +103 -0
- package/codebase/types/ts-form/sources/elements/colorpicker.d.ts +101 -0
- package/codebase/types/ts-form/sources/elements/combo.d.ts +101 -0
- package/codebase/types/ts-form/sources/elements/container.d.ts +52 -0
- package/codebase/types/ts-form/sources/elements/dateinput.d.ts +107 -0
- package/codebase/types/ts-form/sources/elements/fieldset.d.ts +64 -0
- package/codebase/types/ts-form/sources/elements/helper/label.d.ts +18 -0
- package/codebase/types/ts-form/sources/elements/input.d.ts +106 -0
- package/codebase/types/ts-form/sources/elements/proCombo.d.ts +5 -0
- package/codebase/types/ts-form/sources/elements/radioGroup.d.ts +99 -0
- package/codebase/types/ts-form/sources/elements/radiobutton.d.ts +41 -0
- package/codebase/types/ts-form/sources/elements/select.d.ts +94 -0
- package/codebase/types/ts-form/sources/elements/simplevault.d.ts +124 -0
- package/codebase/types/ts-form/sources/elements/sliderform.d.ts +84 -0
- package/codebase/types/ts-form/sources/elements/spacer.d.ts +40 -0
- package/codebase/types/ts-form/sources/elements/textarea.d.ts +69 -0
- package/codebase/types/ts-form/sources/elements/textinput.d.ts +39 -0
- package/codebase/types/ts-form/sources/elements/timeinput.d.ts +102 -0
- package/codebase/types/ts-form/sources/entry.d.ts +5 -0
- package/codebase/types/ts-form/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-form/sources/helper.d.ts +12 -0
- package/codebase/types/ts-form/sources/locales/en.d.ts +5 -0
- package/codebase/types/ts-form/sources/types.d.ts +180 -0
- package/codebase/types/ts-form/tests/elements/button.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/checkbox.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/colorpicker.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/combo.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/container.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/datepicker.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/input.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/radiogroup.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/select.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/simplevault.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/slider.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/textarea.d.ts +1 -0
- package/codebase/types/ts-form/tests/elements/timepicker.d.ts +1 -0
- package/codebase/types/ts-form/tests/form.d.ts +1 -0
- package/codebase/types/ts-form/tests/stubs/stubs.d.ts +4 -0
- package/codebase/types/ts-form/tests/stubs/stubsCheckbox.d.ts +3 -0
- package/codebase/types/ts-form/tests/stubs/stubsColorpicker.d.ts +3 -0
- package/codebase/types/ts-form/tests/stubs/stubsCombo.d.ts +4 -0
- package/codebase/types/ts-form/tests/stubs/stubsDatepicker.d.ts +3 -0
- package/codebase/types/ts-form/tests/stubs/stubsInput.d.ts +3 -0
- package/codebase/types/ts-form/tests/stubs/stubsRadiogroup.d.ts +3 -0
- package/codebase/types/ts-form/tests/stubs/stubsSelect.d.ts +3 -0
- package/codebase/types/ts-form/tests/stubs/stubsSlider.d.ts +4 -0
- package/codebase/types/ts-form/tests/stubs/stubsTimepicker.d.ts +4 -0
- package/codebase/types/ts-form/tests/suite.d.ts +14 -0
- package/codebase/types/ts-grid/sources/Grid.d.ts +1 -1
- package/codebase/types/ts-grid/sources/entry.d.ts +7 -0
- package/codebase/types/ts-grid/sources/entry_pro.d.ts +3 -0
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +2 -2
- package/codebase/types/ts-grid/sources/types.d.ts +15 -14
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +3 -3
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +1 -0
- package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +1 -1
- package/codebase/types/ts-grid/tests/Grid.d.ts +1 -0
- package/codebase/types/ts-grid/tests/TreeGrid.d.ts +1 -0
- package/codebase/types/ts-grid/tests/stubs.d.ts +84 -0
- package/codebase/types/ts-grid/tests/suite.d.ts +2 -0
- package/codebase/types/ts-helpers/entry.d.ts +0 -0
- package/codebase/types/ts-layout/sources/entry.d.ts +2 -0
- package/codebase/types/ts-layout/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-layout/sources/types.d.ts +3 -3
- package/codebase/types/ts-layout/tests/Layout.d.ts +1 -0
- package/codebase/types/ts-layout/tests/suite.d.ts +1 -0
- package/codebase/types/ts-list/sources/List.d.ts +1 -0
- package/codebase/types/ts-list/sources/entry.d.ts +3 -0
- package/codebase/types/ts-list/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-list/sources/helpers.d.ts +2 -0
- package/codebase/types/ts-list/sources/types.d.ts +1 -1
- package/codebase/types/ts-list/tests/selections/Selections.d.ts +1 -0
- package/codebase/types/ts-list/tests/selections/stubs.d.ts +3 -0
- package/codebase/types/ts-list/tests/suite.d.ts +1 -0
- package/codebase/types/ts-menu/index.d.ts +2 -0
- package/codebase/types/ts-menu/sources/ContextMenu.d.ts +11 -0
- package/codebase/types/ts-menu/sources/Menu.d.ts +6 -0
- package/codebase/types/ts-menu/sources/entry.d.ts +4 -0
- package/codebase/types/ts-menu/tests/suite.d.ts +0 -0
- package/codebase/types/ts-message/sources/entry.d.ts +6 -0
- package/codebase/types/ts-message/sources/tooltip.d.ts +1 -1
- package/codebase/types/ts-message/tests/suite.d.ts +0 -0
- package/codebase/types/ts-navbar/index.d.ts +3 -0
- package/codebase/types/ts-navbar/sources/Navbar.d.ts +62 -0
- package/codebase/types/ts-navbar/sources/elements/button.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/customHTMLButton.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/datePicker.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/helpers.d.ts +17 -0
- package/codebase/types/ts-navbar/sources/elements/imageButton.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/input.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/menuItem.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/navItem.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/separator.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/spacer.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/title.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/itemfactory.d.ts +10 -0
- package/codebase/types/ts-navbar/sources/types.d.ts +206 -0
- package/codebase/types/ts-navbar/tests/suite.d.ts +0 -0
- package/codebase/types/ts-optimus/index.d.ts +2 -0
- package/codebase/types/ts-optimus/sources/DHXApp.d.ts +12 -0
- package/codebase/types/ts-optimus/sources/DHXView.d.ts +11 -0
- package/codebase/types/ts-optimus/sources/EventSystem.d.ts +9 -0
- package/codebase/types/ts-optimus/sources/HTMLCell.d.ts +8 -0
- package/codebase/types/ts-optimus/sources/LocalSession.d.ts +5 -0
- package/codebase/types/ts-optimus/sources/types.d.ts +36 -0
- package/codebase/types/ts-pagination/index.d.ts +2 -0
- package/codebase/types/ts-pagination/sources/Pagination.d.ts +26 -0
- package/codebase/types/ts-pagination/sources/entry.d.ts +3 -0
- package/codebase/types/ts-pagination/sources/types.d.ts +27 -0
- package/codebase/types/ts-pagination/tests/suite.d.ts +0 -0
- package/codebase/types/ts-pivot/index.d.ts +1 -0
- package/codebase/types/ts-pivot/sources/DataPreprocessor.d.ts +29 -0
- package/codebase/types/ts-pivot/sources/DateFormatter.d.ts +29 -0
- package/codebase/types/ts-pivot/sources/Pivot.d.ts +52 -0
- package/codebase/types/ts-pivot/sources/configurator/Configurator.d.ts +40 -0
- package/codebase/types/ts-pivot/sources/entry.d.ts +9 -0
- package/codebase/types/ts-pivot/sources/filters/DateFilter.d.ts +17 -0
- package/codebase/types/ts-pivot/sources/filters/Filter.d.ts +72 -0
- package/codebase/types/ts-pivot/sources/filters/Filters.d.ts +13 -0
- package/codebase/types/ts-pivot/sources/filters/helpers.d.ts +2 -0
- package/codebase/types/ts-pivot/sources/group-module/DataGroup.d.ts +13 -0
- package/codebase/types/ts-pivot/sources/group-module/groupfuncs.d.ts +10 -0
- package/codebase/types/ts-pivot/sources/group-module/types.d.ts +19 -0
- package/codebase/types/ts-pivot/sources/helpers.d.ts +28 -0
- package/codebase/types/ts-pivot/sources/locales/en.d.ts +38 -0
- package/codebase/types/ts-pivot/sources/templates.d.ts +4 -0
- package/codebase/types/ts-pivot/sources/types.d.ts +180 -0
- package/codebase/types/ts-pivot/tests/DataPreprocessor.d.ts +1 -0
- package/codebase/types/ts-pivot/tests/Pivot.d.ts +1 -0
- package/codebase/types/ts-pivot/tests/config-module/Config.d.ts +1 -0
- package/codebase/types/ts-pivot/tests/config-module/stubs.d.ts +80 -0
- package/codebase/types/ts-pivot/tests/filter-module/Filter.d.ts +1 -0
- package/codebase/types/ts-pivot/tests/group-module/DataGroup.d.ts +1 -0
- package/codebase/types/ts-pivot/tests/group-module/groupfuncs.d.ts +1 -0
- package/codebase/types/ts-pivot/tests/group-module/stubs.d.ts +54 -0
- package/codebase/types/ts-pivot/tests/stubs.d.ts +107 -0
- package/codebase/types/ts-pivot/tests/suite.d.ts +6 -0
- package/codebase/types/ts-popup/sources/entry.d.ts +2 -0
- package/codebase/types/ts-popup/tests/suite.d.ts +0 -0
- package/codebase/types/ts-property/index.d.ts +2 -0
- package/codebase/types/ts-property/sources/Property.d.ts +16 -0
- package/codebase/types/ts-property/sources/entry.d.ts +2 -0
- package/codebase/types/ts-property/sources/items/BaseItem.d.ts +16 -0
- package/codebase/types/ts-property/sources/items/Checkbox.d.ts +7 -0
- package/codebase/types/ts-property/sources/items/Colorpicker.d.ts +10 -0
- package/codebase/types/ts-property/sources/items/Combo.d.ts +9 -0
- package/codebase/types/ts-property/sources/items/Label.d.ts +4 -0
- package/codebase/types/ts-property/sources/items/Select.d.ts +5 -0
- package/codebase/types/ts-property/sources/items/Text.d.ts +4 -0
- package/codebase/types/ts-property/sources/items/Textarea.d.ts +4 -0
- package/codebase/types/ts-property/sources/items/helpers.d.ts +2 -0
- package/codebase/types/ts-property/sources/items/index.d.ts +19 -0
- package/codebase/types/ts-property/sources/types.d.ts +47 -0
- package/codebase/types/ts-property/tests/suite.d.ts +0 -0
- package/codebase/types/ts-ribbon/index.d.ts +2 -0
- package/codebase/types/ts-ribbon/sources/ProRibbon.d.ts +10 -0
- package/codebase/types/ts-ribbon/sources/Ribbon.d.ts +43 -0
- package/codebase/types/ts-ribbon/sources/entry.d.ts +3 -0
- package/codebase/types/ts-ribbon/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-ribbon/tests/suite.d.ts +0 -0
- package/codebase/types/ts-richtext/index.d.ts +1 -0
- package/codebase/types/ts-richtext/sources/Manager.d.ts +16 -0
- package/codebase/types/ts-richtext/sources/Richtext.d.ts +36 -0
- package/codebase/types/ts-richtext/sources/SelectionHelper.d.ts +30 -0
- package/codebase/types/ts-richtext/sources/constants.d.ts +44 -0
- package/codebase/types/ts-richtext/sources/entry.d.ts +3 -0
- package/codebase/types/ts-richtext/sources/helpers/buffer.d.ts +10 -0
- package/codebase/types/ts-richtext/sources/helpers/composition.d.ts +2 -0
- package/codebase/types/ts-richtext/sources/helpers/link.d.ts +40 -0
- package/codebase/types/ts-richtext/sources/helpers/markdown.d.ts +2 -0
- package/codebase/types/ts-richtext/sources/helpers/minimizer.d.ts +19 -0
- package/codebase/types/ts-richtext/sources/helpers/other.d.ts +13 -0
- package/codebase/types/ts-richtext/sources/helpers/parser.d.ts +1 -0
- package/codebase/types/ts-richtext/sources/helpers/scroll.d.ts +10 -0
- package/codebase/types/ts-richtext/sources/helpers/selection.d.ts +10 -0
- package/codebase/types/ts-richtext/sources/helpers/serializer.d.ts +2 -0
- package/codebase/types/ts-richtext/sources/helpers/statistics.d.ts +7 -0
- package/codebase/types/ts-richtext/sources/helpers/styles.d.ts +10 -0
- package/codebase/types/ts-richtext/sources/helpers/toolbar.d.ts +21 -0
- package/codebase/types/ts-richtext/sources/keyhandler.d.ts +26 -0
- package/codebase/types/ts-richtext/sources/locales/en.d.ts +35 -0
- package/codebase/types/ts-richtext/sources/models/Block.d.ts +27 -0
- package/codebase/types/ts-richtext/sources/models/Editor.d.ts +61 -0
- package/codebase/types/ts-richtext/sources/models/TextNode.d.ts +16 -0
- package/codebase/types/ts-richtext/sources/types.d.ts +143 -0
- package/codebase/types/ts-richtext/tests/block.d.ts +1 -0
- package/codebase/types/ts-richtext/tests/editor.d.ts +1 -0
- package/codebase/types/ts-richtext/tests/suite.d.ts +3 -0
- package/codebase/types/ts-richtext/tests/textnode.d.ts +1 -0
- package/codebase/types/ts-samplegen/index.d.ts +1 -0
- package/codebase/types/ts-samplegen/sources/SampleGenerator.d.ts +20 -0
- package/codebase/types/ts-samplegen/sources/entry.d.ts +2 -0
- package/codebase/types/ts-samplegen/tests/suite.d.ts +0 -0
- package/codebase/types/ts-scheduler/index.d.ts +1 -0
- package/codebase/types/ts-scheduler/sources/Scheduler.d.ts +18 -0
- package/codebase/types/ts-scheduler/sources/entry.d.ts +2 -0
- package/codebase/types/ts-scheduler/sources/helpers/scales.d.ts +1 -0
- package/codebase/types/ts-scheduler/sources/helpers/topbar.d.ts +1 -0
- package/codebase/types/ts-scheduler/sources/views/Agenda.d.ts +6 -0
- package/codebase/types/ts-scheduler/sources/views/Base.d.ts +3 -0
- package/codebase/types/ts-scheduler/sources/views/Cols.d.ts +8 -0
- package/codebase/types/ts-scheduler/sources/views/Day.d.ts +4 -0
- package/codebase/types/ts-scheduler/sources/views/Month.d.ts +8 -0
- package/codebase/types/ts-scheduler/sources/views/Week.d.ts +4 -0
- package/codebase/types/ts-scheduler/sources/views/index.d.ts +11 -0
- package/codebase/types/ts-scheduler/tests/suite.d.ts +0 -0
- package/codebase/types/ts-sidebar/index.d.ts +3 -0
- package/codebase/types/ts-sidebar/sources/ProSidebar.d.ts +8 -0
- package/codebase/types/ts-sidebar/sources/Sidebar.d.ts +24 -0
- package/codebase/types/ts-sidebar/sources/entry.d.ts +3 -0
- package/codebase/types/ts-sidebar/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-sidebar/sources/types.d.ts +40 -0
- package/codebase/types/ts-sidebar/tests/suite.d.ts +0 -0
- package/codebase/types/ts-slider/sources/entry.d.ts +2 -0
- package/codebase/types/ts-slider/sources/types.d.ts +3 -3
- package/codebase/types/ts-slider/tests/suite.d.ts +0 -0
- package/codebase/types/ts-tabbar/index.d.ts +2 -0
- package/codebase/types/ts-tabbar/sources/Tabbar.d.ts +38 -0
- package/codebase/types/ts-tabbar/sources/entry.d.ts +2 -0
- package/codebase/types/ts-tabbar/sources/types.d.ts +64 -0
- package/codebase/types/ts-tabbar/tests/suite.d.ts +0 -0
- package/codebase/types/ts-theme/entry.d.ts +0 -0
- package/codebase/types/ts-timepicker/sources/entry.d.ts +3 -0
- package/codebase/types/ts-timepicker/tests/suite.d.ts +0 -0
- package/codebase/types/ts-toolbar/index.d.ts +2 -0
- package/codebase/types/ts-toolbar/sources/ProToolbar.d.ts +10 -0
- package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +32 -0
- package/codebase/types/ts-toolbar/sources/entry.d.ts +4 -0
- package/codebase/types/ts-toolbar/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-toolbar/tests/suite.d.ts +0 -0
- package/codebase/types/ts-tree/index.d.ts +3 -0
- package/codebase/types/ts-tree/sources/Editor.d.ts +42 -0
- package/codebase/types/ts-tree/sources/Tree.d.ts +58 -0
- package/codebase/types/ts-tree/sources/entry.d.ts +6 -0
- package/codebase/types/ts-tree/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-tree/sources/types.d.ts +119 -0
- package/codebase/types/ts-tree/tests/suite.d.ts +0 -0
- package/codebase/types/ts-treegrid/index.d.ts +3 -0
- package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +30 -0
- package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +20 -0
- package/codebase/types/ts-treegrid/sources/entry.d.ts +7 -0
- package/codebase/types/ts-treegrid/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-treegrid/sources/types.d.ts +32 -0
- package/codebase/types/ts-treegrid/tests/Grid.d.ts +1 -0
- package/codebase/types/ts-treegrid/tests/TreeGrid.d.ts +1 -0
- package/codebase/types/ts-treegrid/tests/stubs.d.ts +84 -0
- package/codebase/types/ts-treegrid/tests/suite.d.ts +2 -0
- package/codebase/types/ts-ui-kit/index.d.ts +0 -0
- package/codebase/types/ts-ui-kit/sources/entry.d.ts +1 -0
- package/codebase/types/ts-ui-kit/tests/suite.d.ts +0 -0
- package/codebase/types/ts-vault/index.d.ts +3 -0
- package/codebase/types/ts-vault/sources/ProgressBar.d.ts +12 -0
- package/codebase/types/ts-vault/sources/ReadStackPreview.d.ts +11 -0
- package/codebase/types/ts-vault/sources/Uploader.d.ts +26 -0
- package/codebase/types/ts-vault/sources/Vault.d.ts +33 -0
- package/codebase/types/ts-vault/sources/configs.d.ts +14 -0
- package/codebase/types/ts-vault/sources/entry.d.ts +6 -0
- package/codebase/types/ts-vault/sources/helper.d.ts +30 -0
- package/codebase/types/ts-vault/sources/locales/en.d.ts +18 -0
- package/codebase/types/ts-vault/sources/types.d.ts +107 -0
- package/codebase/types/ts-vault/tests/suite.d.ts +0 -0
- package/codebase/types/ts-window/index.d.ts +2 -0
- package/codebase/types/ts-window/sources/ProWindow.d.ts +11 -0
- package/codebase/types/ts-window/sources/Window.d.ts +55 -0
- package/codebase/types/ts-window/sources/WindowController.d.ts +10 -0
- package/codebase/types/ts-window/sources/entry.d.ts +2 -0
- package/codebase/types/ts-window/sources/entry_pro.d.ts +2 -0
- package/codebase/types/ts-window/sources/helpers.d.ts +1 -0
- package/codebase/types/ts-window/sources/types.d.ts +82 -0
- package/codebase/types/ts-window/tests/suite.d.ts +0 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +6 -0
|
@@ -6,7 +6,7 @@ export interface IDataProxy {
|
|
|
6
6
|
url: string;
|
|
7
7
|
config?: any;
|
|
8
8
|
updateUrl?: (url?: string, params?: any) => void;
|
|
9
|
-
load?: () => Promise<any[]>;
|
|
9
|
+
load?: () => Promise<any[] | void>;
|
|
10
10
|
save?: (data: any, mode: string) => Promise<any>;
|
|
11
11
|
}
|
|
12
12
|
export interface ILazyDataProxy extends IDataProxy {
|
|
@@ -24,7 +24,7 @@ export interface ISortMode {
|
|
|
24
24
|
as?: (a: any) => any;
|
|
25
25
|
rule?: (a: any, b: any) => number;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type IFilterCallback = (obj: any) => boolean;
|
|
28
28
|
export interface IFilterMode {
|
|
29
29
|
by?: Id;
|
|
30
30
|
match?: string | number | boolean;
|
|
@@ -122,7 +122,7 @@ export interface IDataCollection<T extends IDataItem = IDataItem> {
|
|
|
122
122
|
export interface IDataChangeStack {
|
|
123
123
|
order: IDataChange[];
|
|
124
124
|
}
|
|
125
|
-
export
|
|
125
|
+
export type Statuses = "add" | "update" | "remove" | string;
|
|
126
126
|
export interface IDataChange {
|
|
127
127
|
id: Id;
|
|
128
128
|
status: Statuses;
|
|
@@ -132,7 +132,7 @@ export interface IDataChange {
|
|
|
132
132
|
pending?: boolean;
|
|
133
133
|
error?: boolean;
|
|
134
134
|
}
|
|
135
|
-
export
|
|
135
|
+
export type RequestStatus = "saving" | "pending" | "error";
|
|
136
136
|
export interface IDir {
|
|
137
137
|
[key: string]: any;
|
|
138
138
|
asc: number;
|
|
@@ -158,8 +158,8 @@ export declare enum TreeFilterType {
|
|
|
158
158
|
level = "level",
|
|
159
159
|
leafs = "leafs"
|
|
160
160
|
}
|
|
161
|
-
export
|
|
162
|
-
export
|
|
161
|
+
export type DataCallback<T> = (item: T, index?: number, array?: T[]) => any;
|
|
162
|
+
export type ReduceCallBack<T, A> = (acc: A, item: T, index?: number) => A;
|
|
163
163
|
export interface ITreeCollection<T extends IDataItem = IDataItem> extends IDataCollection<T> {
|
|
164
164
|
add(newItem: IDataItem, index?: number, parent?: Id): Id;
|
|
165
165
|
add(newItem: IDataItem[], index?: number, parent?: Id): Id[];
|
|
@@ -192,7 +192,7 @@ export interface IDataItem {
|
|
|
192
192
|
id?: Id;
|
|
193
193
|
[key: string]: any;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type DropPosition = "top" | "bottom" | "in";
|
|
196
196
|
export interface IObjWithData {
|
|
197
197
|
data: TreeCollection | DataCollection;
|
|
198
198
|
events: IEventSystem<DragEvents, IDragEventsHandlersMap>;
|
|
@@ -276,8 +276,8 @@ export interface IDragInfo {
|
|
|
276
276
|
dropPosition?: DropPosition;
|
|
277
277
|
dragItem?: "row" | "column";
|
|
278
278
|
}
|
|
279
|
-
export
|
|
280
|
-
export
|
|
279
|
+
export type DragMode = "target" | "both" | "source";
|
|
280
|
+
export type DropBehaviour = "child" | "sibling" | "complex";
|
|
281
281
|
export interface IDragEventsHandlersMap {
|
|
282
282
|
[key: string]: (...args: any[]) => any;
|
|
283
283
|
[DragEvents.beforeDrag]: (data: IDragInfo, events: MouseEvent, ghost: HTMLElement) => void | boolean;
|
|
@@ -295,7 +295,7 @@ export declare enum DataDriver {
|
|
|
295
295
|
csv = "csv",
|
|
296
296
|
xml = "xml"
|
|
297
297
|
}
|
|
298
|
-
export
|
|
298
|
+
export type AjaxResponseType = "json" | "xml" | "text" | "raw";
|
|
299
299
|
export interface IAjaxHelperConfig {
|
|
300
300
|
headers: {
|
|
301
301
|
[key: string]: string;
|
|
@@ -305,14 +305,14 @@ export interface IAjaxHelperConfig {
|
|
|
305
305
|
export interface IAjaxHelper {
|
|
306
306
|
get<T>(url: string, data?: {
|
|
307
307
|
[key: string]: any;
|
|
308
|
-
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T>;
|
|
308
|
+
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T | void>;
|
|
309
309
|
post<T>(url: string, data?: {
|
|
310
310
|
[key: string]: any;
|
|
311
|
-
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T>;
|
|
311
|
+
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T | void>;
|
|
312
312
|
put<T>(url: string, data?: {
|
|
313
313
|
[key: string]: any;
|
|
314
|
-
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T>;
|
|
314
|
+
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T | void>;
|
|
315
315
|
delete<T>(url: string, data?: {
|
|
316
316
|
[key: string]: any;
|
|
317
|
-
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T>;
|
|
317
|
+
} | string, config?: Partial<IAjaxHelperConfig>): Promise<T | void>;
|
|
318
318
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { VNode } from "../../ts-common/dom";
|
|
2
|
+
import { List } from "../../ts-list";
|
|
3
|
+
import { Id, IHandlers } from "../../ts-common/types";
|
|
4
|
+
import { IDataViewConfig, IDataView } from "./types";
|
|
5
|
+
export declare class DataView extends List implements IDataView {
|
|
6
|
+
config: IDataViewConfig;
|
|
7
|
+
constructor(node: HTMLElement | string, config?: IDataViewConfig);
|
|
8
|
+
scrollTo(id: Id): void;
|
|
9
|
+
protected _scrollTo(id: Id, el: HTMLElement): void;
|
|
10
|
+
protected _didRedraw(vm: any): void;
|
|
11
|
+
protected _renderItem(item: any, index: number): VNode;
|
|
12
|
+
protected _renderList(): VNode;
|
|
13
|
+
protected _getHotkeys(): IHandlers;
|
|
14
|
+
protected getDataViewItemAriaAttrs(context: this, item: any): {
|
|
15
|
+
"aria-roledescription": string;
|
|
16
|
+
"aria-grabbed": string;
|
|
17
|
+
role: string;
|
|
18
|
+
"aria-selected": string;
|
|
19
|
+
} | {
|
|
20
|
+
"aria-roledescription"?: undefined;
|
|
21
|
+
"aria-grabbed": string;
|
|
22
|
+
role: string;
|
|
23
|
+
"aria-selected": string;
|
|
24
|
+
} | {
|
|
25
|
+
"aria-roledescription": string;
|
|
26
|
+
"aria-grabbed"?: undefined;
|
|
27
|
+
role: string;
|
|
28
|
+
"aria-selected": string;
|
|
29
|
+
} | {
|
|
30
|
+
"aria-roledescription"?: undefined;
|
|
31
|
+
"aria-grabbed"?: undefined;
|
|
32
|
+
role: string;
|
|
33
|
+
"aria-selected": string;
|
|
34
|
+
};
|
|
35
|
+
protected getDataViewAriaAttrs(config: any, itemsCount: any, rowsCount: any, itemsInRow: any): {
|
|
36
|
+
role: string;
|
|
37
|
+
"aria-label": string;
|
|
38
|
+
"aria-multiselectable": string;
|
|
39
|
+
"aria-readonly": string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ScrollView } from "../../ts-common/ScrollView";
|
|
2
|
+
import { IProDataView, IDataViewConfig } from "./types";
|
|
3
|
+
import { DataView } from "./DataView";
|
|
4
|
+
import { VNode } from "../../ts-common/dom";
|
|
5
|
+
export declare class ProDataView extends DataView implements IProDataView {
|
|
6
|
+
scrollView: ScrollView;
|
|
7
|
+
constructor(node: HTMLElement | string, config?: IDataViewConfig);
|
|
8
|
+
destructor(): void;
|
|
9
|
+
scrollTo(id: string): void;
|
|
10
|
+
protected _renderList(): VNode;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDataViewConfig, IDataViewItem } from "../types";
|
|
2
|
+
import { DataView } from "../DataView";
|
|
3
|
+
export declare class InputEditor {
|
|
4
|
+
protected _handlers: {
|
|
5
|
+
[key: string]: (...args: any[]) => void;
|
|
6
|
+
};
|
|
7
|
+
protected _mode: boolean;
|
|
8
|
+
protected _config: IDataViewConfig;
|
|
9
|
+
protected _dataView: DataView;
|
|
10
|
+
protected _item: IDataViewItem;
|
|
11
|
+
protected _input: HTMLInputElement;
|
|
12
|
+
constructor(item: IDataViewItem, dataView: DataView);
|
|
13
|
+
endEdit(): void;
|
|
14
|
+
toHTML(isLastItemInRow: boolean): any;
|
|
15
|
+
protected _initHandlers(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DataCollection, DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap } from "../../ts-data";
|
|
2
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
3
|
+
import { ISelection, MultiselectionMode, IListConfig, IListEventHandlersMap, ListEvents } from "../../ts-list";
|
|
4
|
+
import { ScrollView } from "../../ts-common/ScrollView";
|
|
5
|
+
import { Id } from "../../ts-common/types";
|
|
6
|
+
export interface IDataViewConfig extends IListConfig {
|
|
7
|
+
data?: DataCollection<any> | any[];
|
|
8
|
+
itemsInRow?: number;
|
|
9
|
+
height?: number | string;
|
|
10
|
+
itemHeight?: number | string;
|
|
11
|
+
gap?: number;
|
|
12
|
+
template?: (item: any) => string;
|
|
13
|
+
keyNavigation?: boolean | (() => boolean);
|
|
14
|
+
css?: string;
|
|
15
|
+
selection?: boolean;
|
|
16
|
+
multiselection?: boolean | MultiselectionMode;
|
|
17
|
+
editable?: boolean;
|
|
18
|
+
eventHandlers?: {
|
|
19
|
+
[eventName: string]: {
|
|
20
|
+
[className: string]: (event: Event, id: Id) => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
24
|
+
editing?: boolean;
|
|
25
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
26
|
+
multiselectionMode?: MultiselectionMode;
|
|
27
|
+
}
|
|
28
|
+
export interface IDataView<T = any> {
|
|
29
|
+
config: IDataViewConfig;
|
|
30
|
+
data: DataCollection<T>;
|
|
31
|
+
events: IEventSystem<DataEvents | DragEvents | ListEvents, IDataEventsHandlersMap & IDragEventsHandlersMap & IListEventHandlersMap>;
|
|
32
|
+
selection: ISelection;
|
|
33
|
+
paint(): void;
|
|
34
|
+
destructor(): void;
|
|
35
|
+
editItem(id: Id): void;
|
|
36
|
+
getFocusItem(): T;
|
|
37
|
+
setFocus(id: Id): void;
|
|
38
|
+
getFocus(): Id;
|
|
39
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
40
|
+
disableSelection(): void;
|
|
41
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
42
|
+
enableSelection(): void;
|
|
43
|
+
}
|
|
44
|
+
export interface IProDataView extends IDataView {
|
|
45
|
+
scrollView: ScrollView;
|
|
46
|
+
}
|
|
47
|
+
export declare enum DataViewEvents {
|
|
48
|
+
click = "click",
|
|
49
|
+
doubleClick = "doubleclick",
|
|
50
|
+
focusChange = "focuschange",
|
|
51
|
+
beforeEditStart = "beforeEditStart",
|
|
52
|
+
afterEditStart = "afterEditStart",
|
|
53
|
+
beforeEditEnd = "beforeEditEnd",
|
|
54
|
+
afterEditEnd = "afterEditEnd",
|
|
55
|
+
itemRightClick = "itemRightClick",
|
|
56
|
+
itemMouseOver = "itemMouseOver",
|
|
57
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
58
|
+
contextmenu = "contextmenu"
|
|
59
|
+
}
|
|
60
|
+
export interface IDataViewItem {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./selections/Selections";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { View } from "../../ts-common/view";
|
|
3
|
+
import { Exporter } from "./helpers/Export";
|
|
4
|
+
import { Selection } from "./helpers/Selection";
|
|
5
|
+
import { IShapeMap } from "./shapes/factory";
|
|
6
|
+
import { ShapesCollection } from "./ShapesCollection";
|
|
7
|
+
import { DataEvents } from "../../ts-data";
|
|
8
|
+
import { DiagramEvents, ICoords, IDiagram, IDiagramConfig, IShape, SelectionEvents } from "./types";
|
|
9
|
+
export declare class Diagram extends View implements IDiagram {
|
|
10
|
+
version: string;
|
|
11
|
+
config: IDiagramConfig;
|
|
12
|
+
events: IEventSystem<DataEvents | SelectionEvents | DiagramEvents>;
|
|
13
|
+
data: ShapesCollection;
|
|
14
|
+
selection: Selection;
|
|
15
|
+
export: Exporter;
|
|
16
|
+
shapes: IShapeMap;
|
|
17
|
+
private _htmlevents;
|
|
18
|
+
private _toolbar;
|
|
19
|
+
constructor(container: HTMLElement | any, config?: IDiagramConfig);
|
|
20
|
+
locate(ev: Event): IShape;
|
|
21
|
+
collapseItem(id: string): void;
|
|
22
|
+
expandItem(id: string): void;
|
|
23
|
+
getScrollState(): ICoords;
|
|
24
|
+
scrollTo(x: number, y: number): void;
|
|
25
|
+
showItem(id: string): void;
|
|
26
|
+
protected _render(vm: any): any;
|
|
27
|
+
protected _init_events(): void;
|
|
28
|
+
protected _set_defaults(): void;
|
|
29
|
+
protected _init_struct(): void;
|
|
30
|
+
private _getContent;
|
|
31
|
+
private _getPoint;
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { Id } from "../../ts-common/types";
|
|
3
|
+
import { DataCollection, DataEvents } from "../../ts-data";
|
|
4
|
+
import { IItemConfig } from "./types";
|
|
5
|
+
export declare class ShapesCollection extends DataCollection {
|
|
6
|
+
private _roots;
|
|
7
|
+
private _orgMode;
|
|
8
|
+
constructor(config: any, events: IEventSystem<DataEvents>);
|
|
9
|
+
getNearId(id: Id): Id;
|
|
10
|
+
mapVisible(handler: any): any[];
|
|
11
|
+
getRoots(): Id[];
|
|
12
|
+
protected _removeNested(obj: any): void;
|
|
13
|
+
protected _eachBranch(item: IItemConfig, handler: any, stack: any[]): void;
|
|
14
|
+
protected _parse_data(data: any[]): void;
|
|
15
|
+
protected _mark_chains(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { DiagramEvents, IButtonConfig, IItemConfig, SelectionEvents } from "./types";
|
|
3
|
+
import { DataEvents } from "../../ts-data";
|
|
4
|
+
export declare class Toolbar {
|
|
5
|
+
config: any;
|
|
6
|
+
private events;
|
|
7
|
+
private _pressCoords;
|
|
8
|
+
private _handlers;
|
|
9
|
+
constructor(events: IEventSystem<DataEvents | DiagramEvents | SelectionEvents>, icons: IButtonConfig[]);
|
|
10
|
+
toSVG(item: any, size: any): any;
|
|
11
|
+
protected _getIcons(item: IItemConfig, icons: IButtonConfig[]): any[];
|
|
12
|
+
protected _getCoords(target: IItemConfig, width: number, height: number, scale: number): {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View } from "../../../ts-common/view";
|
|
2
|
+
export declare class Exporter {
|
|
3
|
+
private _name;
|
|
4
|
+
private _version;
|
|
5
|
+
private _view;
|
|
6
|
+
constructor(_name: string, _version: string, _view: View);
|
|
7
|
+
pdf(config: any): void;
|
|
8
|
+
png(config: any): void;
|
|
9
|
+
protected _rawExport(config: any, mode: string, view: View): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IEventSystem } from "../../../ts-common/events";
|
|
2
|
+
import { Id } from "../../../ts-common/types";
|
|
3
|
+
import { DataCollection } from "../../../ts-data";
|
|
4
|
+
import { SelectionEvents } from "../types";
|
|
5
|
+
export declare class Selection {
|
|
6
|
+
events: IEventSystem<SelectionEvents>;
|
|
7
|
+
private _selected;
|
|
8
|
+
private _data;
|
|
9
|
+
constructor(_config: any, data?: DataCollection, events?: IEventSystem<any>);
|
|
10
|
+
getId(): Id;
|
|
11
|
+
getItem(): any;
|
|
12
|
+
remove(id?: Id): boolean;
|
|
13
|
+
add(id: Id): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IItemConfig, ILinkConfig } from "../types";
|
|
2
|
+
interface IPoint {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function nearestLinkPath(link: ILinkConfig, from: IItemConfig, to: IItemConfig, config: any): IPoint[];
|
|
7
|
+
export declare function directLinkPath(link: ILinkConfig, from: IItemConfig, to: IItemConfig, config: any): void;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Id } from "../../../ts-common/types";
|
|
2
|
+
import { ICoords, IItemConfig, IShape } from "../types";
|
|
3
|
+
export declare class BaseShape implements IShape {
|
|
4
|
+
config: IItemConfig;
|
|
5
|
+
id: Id;
|
|
6
|
+
constructor(config: IItemConfig);
|
|
7
|
+
isConnector(): boolean;
|
|
8
|
+
canResize(): boolean;
|
|
9
|
+
getCenter(): ICoords;
|
|
10
|
+
getBox(): {
|
|
11
|
+
left: number;
|
|
12
|
+
right: number;
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
};
|
|
16
|
+
getMetaInfo(): {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
type: string;
|
|
20
|
+
}[];
|
|
21
|
+
move(x: number, y: number): void;
|
|
22
|
+
resize(width: number, height: number): void;
|
|
23
|
+
rotate(angle: number): void;
|
|
24
|
+
update(conf: IItemConfig): void;
|
|
25
|
+
toSVG(): string;
|
|
26
|
+
getPoint(x: number, y: number): ICoords;
|
|
27
|
+
setCss(value: string): void;
|
|
28
|
+
protected getCss(): string;
|
|
29
|
+
protected setDefaults(config: IItemConfig): IItemConfig;
|
|
30
|
+
protected getCoords(conf: any): ICoords;
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IBoxSize, ICoords, ILinkConfig } from "../../types";
|
|
2
|
+
import { BaseShape } from "../Base";
|
|
3
|
+
export declare class Line extends BaseShape {
|
|
4
|
+
config: ILinkConfig;
|
|
5
|
+
constructor(config: ILinkConfig);
|
|
6
|
+
isConnector(): boolean;
|
|
7
|
+
getMetaInfo(): {
|
|
8
|
+
id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
label: string;
|
|
11
|
+
connector: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
setDefaults(config: ILinkConfig): ILinkConfig;
|
|
14
|
+
toSVG(): string;
|
|
15
|
+
getBox(): IBoxSize;
|
|
16
|
+
protected _getType(): string;
|
|
17
|
+
protected _getPoints(): string;
|
|
18
|
+
protected _getStringPoints(): string;
|
|
19
|
+
protected _getArrowLine(): any[];
|
|
20
|
+
protected _arrow(from: ICoords, to: ICoords): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IItemConfig } from "../../types";
|
|
2
|
+
import { BaseShape } from "../Base";
|
|
3
|
+
export declare class DiagramCard extends BaseShape {
|
|
4
|
+
toSVG(): any;
|
|
5
|
+
getMetaInfo(): {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}[];
|
|
10
|
+
protected getCss(): string;
|
|
11
|
+
protected setDefaults(obj: IItemConfig): IItemConfig;
|
|
12
|
+
protected text(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IItemConfig } from "../../types";
|
|
2
|
+
import { DiagramCard } from "./DiagramCard";
|
|
3
|
+
export declare class DiagramImgCard extends DiagramCard {
|
|
4
|
+
getMetaInfo(): {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
protected setDefaults(obj: IItemConfig): IItemConfig;
|
|
10
|
+
protected getCss(): string;
|
|
11
|
+
protected text(): any[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DiagramCard } from "./DiagramCard";
|
|
2
|
+
export declare class DiagramSvgCard extends DiagramCard {
|
|
3
|
+
toSVG(): any;
|
|
4
|
+
getMetaInfo(): {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
protected text(): string;
|
|
10
|
+
protected title(): string;
|
|
11
|
+
protected getCss(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { IItemConfig } from "../types";
|
|
2
|
+
import { BaseShape } from "./Base";
|
|
3
|
+
export declare const extraLines: {
|
|
4
|
+
database: (width: any, _height: any, part: any, config: any) => any;
|
|
5
|
+
internal: (width: any, height: any, part: any, config: any) => any;
|
|
6
|
+
offline: (width: any, height: any, part: any, config: any) => any;
|
|
7
|
+
subroutine: (width: any, height: any, part: any, config: any) => any;
|
|
8
|
+
or: (width: any, height: any, _part: any, config: any) => any;
|
|
9
|
+
junction: (width: any, height: any, _part: any, config: any) => any;
|
|
10
|
+
roll: (width: any, height: any, _part: any, config: any) => any;
|
|
11
|
+
};
|
|
12
|
+
declare function display(width: any, height: any): string;
|
|
13
|
+
declare function circle(width: any, height: any): string;
|
|
14
|
+
declare function triangle(width: any, height: any): string;
|
|
15
|
+
declare function document(width: any, height: any): string;
|
|
16
|
+
declare function data(width: any, height: any, part: any): string;
|
|
17
|
+
declare function database(width: any, height: any, part: any): string;
|
|
18
|
+
declare function delay(width: any, height: any): string;
|
|
19
|
+
declare function output(width: any, height: any, part: any): string;
|
|
20
|
+
declare function page(width: any, height: any): string;
|
|
21
|
+
declare function input(width: any, height: any): string;
|
|
22
|
+
declare function operation(width: any, height: any): string;
|
|
23
|
+
declare function punchcard(width: any, height: any): string;
|
|
24
|
+
declare function comment(width: any, height: any): string;
|
|
25
|
+
declare function storage(width: any, height: any): string;
|
|
26
|
+
declare function extract(width: any, height: any): string;
|
|
27
|
+
declare function decision(width: any, height: any): string;
|
|
28
|
+
declare function collate(width: any, height: any): string;
|
|
29
|
+
declare function keyring(width: any, height: any, part: any): string;
|
|
30
|
+
declare function start(width: any, height: any): string;
|
|
31
|
+
declare function rectangle(width: any, height: any): string;
|
|
32
|
+
declare function tape(width: any, height: any): string;
|
|
33
|
+
declare function preparation(width: any, height: any): string;
|
|
34
|
+
declare function endpoint(width: any, height: any): string;
|
|
35
|
+
export declare const renders: {
|
|
36
|
+
circle: typeof circle;
|
|
37
|
+
rectangle: typeof rectangle;
|
|
38
|
+
triangle: typeof triangle;
|
|
39
|
+
start: typeof start;
|
|
40
|
+
end: typeof start;
|
|
41
|
+
process: typeof rectangle;
|
|
42
|
+
output: typeof output;
|
|
43
|
+
decision: typeof decision;
|
|
44
|
+
display: typeof display;
|
|
45
|
+
document: typeof document;
|
|
46
|
+
data: typeof data;
|
|
47
|
+
database: typeof database;
|
|
48
|
+
internal: typeof rectangle;
|
|
49
|
+
offline: typeof storage;
|
|
50
|
+
delay: typeof delay;
|
|
51
|
+
page: typeof page;
|
|
52
|
+
input: typeof input;
|
|
53
|
+
operation: typeof operation;
|
|
54
|
+
punchcard: typeof punchcard;
|
|
55
|
+
subroutine: typeof rectangle;
|
|
56
|
+
comment: typeof comment;
|
|
57
|
+
storage: typeof storage;
|
|
58
|
+
extract: typeof extract;
|
|
59
|
+
collate: typeof collate;
|
|
60
|
+
or: typeof circle;
|
|
61
|
+
junction: typeof circle;
|
|
62
|
+
keyring: typeof keyring;
|
|
63
|
+
tape: typeof tape;
|
|
64
|
+
preparation: typeof preparation;
|
|
65
|
+
endpoint: typeof endpoint;
|
|
66
|
+
roll: typeof circle;
|
|
67
|
+
};
|
|
68
|
+
export declare class FlowShape extends BaseShape {
|
|
69
|
+
config: IItemConfig;
|
|
70
|
+
getMetaInfo(): ({
|
|
71
|
+
id: string;
|
|
72
|
+
type: string;
|
|
73
|
+
label: string;
|
|
74
|
+
hint: string;
|
|
75
|
+
value: string;
|
|
76
|
+
} | {
|
|
77
|
+
id: string;
|
|
78
|
+
label: string;
|
|
79
|
+
type: string;
|
|
80
|
+
hint?: undefined;
|
|
81
|
+
value?: undefined;
|
|
82
|
+
})[];
|
|
83
|
+
toSVG(): any;
|
|
84
|
+
protected setDefaults(obj: IItemConfig): IItemConfig;
|
|
85
|
+
private _shapeLine;
|
|
86
|
+
private _getPoints;
|
|
87
|
+
private _getExtraLines;
|
|
88
|
+
private _getText;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IItemConfig } from "../types";
|
|
2
|
+
import { BaseShape } from "./Base";
|
|
3
|
+
export declare class TextShape extends BaseShape {
|
|
4
|
+
toSVG(): any;
|
|
5
|
+
getMetaInfo(): ({
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
type: string;
|
|
9
|
+
alignments?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
id: string;
|
|
12
|
+
type: string;
|
|
13
|
+
label: string;
|
|
14
|
+
alignments: boolean;
|
|
15
|
+
})[];
|
|
16
|
+
canResize(): boolean;
|
|
17
|
+
protected setDefaults(obj: IItemConfig): IItemConfig;
|
|
18
|
+
private _getText;
|
|
19
|
+
}
|