dhx-chart 8.2.4 → 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 +14 -14
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +3 -3
- 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/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 +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ISpacer, ISeparator, IMenuItem, NavigationBarEvents, DataEvents, INavbar, INavbarEventHandlersMap, ITitle, ICustomHTML, INavItem } from "../../ts-navbar";
|
|
2
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
3
|
+
import { IDataEventsHandlersMap, TreeCollection } from "../../ts-data";
|
|
4
|
+
import { ScrollView } from "../../ts-common/ScrollView";
|
|
5
|
+
export interface ISidebarConfig {
|
|
6
|
+
css?: string;
|
|
7
|
+
menuCss?: string;
|
|
8
|
+
data?: any[] | TreeCollection<ISidebarElement>;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
minWidth?: number | string;
|
|
11
|
+
collapsed?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type ISidebarElement = ISeparator | ISpacer | ITitle | INavItem | IMenuItem | ICustomHTML;
|
|
14
|
+
export interface ISidebar extends INavbar {
|
|
15
|
+
config: ISidebarConfig;
|
|
16
|
+
events: IEventSystem<DataEvents | NavigationBarEvents, IDataEventsHandlersMap & INavbarEventHandlersMap & SidebarEvents & ISidebarEventHandlersMap>;
|
|
17
|
+
toggle(): void;
|
|
18
|
+
isCollapsed(): boolean;
|
|
19
|
+
expand(): void;
|
|
20
|
+
collapse(): void;
|
|
21
|
+
}
|
|
22
|
+
export interface IProSidebar extends ISidebar {
|
|
23
|
+
scrollView: ScrollView;
|
|
24
|
+
}
|
|
25
|
+
export declare enum SidebarEvents {
|
|
26
|
+
beforeCollapse = "beforeCollapse",
|
|
27
|
+
afterCollapse = "afterCollapse",
|
|
28
|
+
beforeExpand = "beforeExpand",
|
|
29
|
+
afterExpand = "afterExpand",
|
|
30
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
31
|
+
toggle = "toggle"
|
|
32
|
+
}
|
|
33
|
+
export interface ISidebarEventHandlersMap {
|
|
34
|
+
[key: string]: (...args: any[]) => any;
|
|
35
|
+
[SidebarEvents.beforeCollapse]: () => boolean | void;
|
|
36
|
+
[SidebarEvents.afterCollapse]: () => void;
|
|
37
|
+
[SidebarEvents.beforeExpand]: () => boolean | void;
|
|
38
|
+
[SidebarEvents.afterExpand]: () => void;
|
|
39
|
+
[SidebarEvents.toggle]: () => any;
|
|
40
|
+
}
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Direction = "vertical" | "horizontal";
|
|
2
|
+
export type ActiveSlider = "tooltip" | "extraTooltip" | "none";
|
|
3
3
|
export interface ISlider {
|
|
4
4
|
config: ISliderConfig;
|
|
5
5
|
paint(): void;
|
|
@@ -31,7 +31,7 @@ export interface ISliderEventHandlersMap {
|
|
|
31
31
|
[SliderEvents.mousedown]: (event: Event) => void;
|
|
32
32
|
[SliderEvents.mouseup]: (event: Event) => void;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export type ILabelPosition = "left" | "top";
|
|
35
35
|
export interface ISliderConfig {
|
|
36
36
|
min?: number;
|
|
37
37
|
max?: number;
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventSystem } from "../../ts-common/events";
|
|
2
|
+
import { Layout, LayoutEvents, ILayoutEventHandlersMap } from "../../ts-layout";
|
|
3
|
+
import { ITabbarConfig, TabbarEvents, ITabbarEventHandlersMap, ITabbar, ITab } from "./types";
|
|
4
|
+
export declare class Tabbar extends Layout implements ITabbar {
|
|
5
|
+
config: ITabbarConfig;
|
|
6
|
+
events: EventSystem<TabbarEvents | LayoutEvents, ITabbarEventHandlersMap | ILayoutEventHandlersMap>;
|
|
7
|
+
private _tabsContainer;
|
|
8
|
+
protected _cells: ITab[];
|
|
9
|
+
private _beforeScrollSize;
|
|
10
|
+
private _afterScrollSize;
|
|
11
|
+
private _keyManager;
|
|
12
|
+
private _tabFontSize;
|
|
13
|
+
constructor(container: any, config: ITabbarConfig);
|
|
14
|
+
toVDOM(): any;
|
|
15
|
+
destructor(): void;
|
|
16
|
+
getWidget(): any;
|
|
17
|
+
setActive(id: string): void;
|
|
18
|
+
getActive(): string;
|
|
19
|
+
addTab(config: ITabbarConfig, index: number): void;
|
|
20
|
+
removeTab(id: string): void;
|
|
21
|
+
disableTab(id: string): boolean;
|
|
22
|
+
enableTab(id: string): void;
|
|
23
|
+
isDisabled(id?: string): boolean;
|
|
24
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
25
|
+
removeCell(id: string): void;
|
|
26
|
+
protected _initHandlers(): void;
|
|
27
|
+
private _isHorizontalMode;
|
|
28
|
+
private _focusTab;
|
|
29
|
+
private _getEnableTabs;
|
|
30
|
+
private _getIndicatorPosition;
|
|
31
|
+
private _drawTabs;
|
|
32
|
+
private _getSizes;
|
|
33
|
+
private _normalizeSize;
|
|
34
|
+
private _getTabAutoWidth;
|
|
35
|
+
private _getTabAutoHeight;
|
|
36
|
+
private _getTabContainer;
|
|
37
|
+
private _initHotkeys;
|
|
38
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ILayoutConfig, LayoutEvents, ILayoutEventHandlersMap, ICellConfig, ICell } from "../../ts-layout";
|
|
2
|
+
import { EventSystem } from "../../ts-common/events";
|
|
3
|
+
import { Position } from "../../ts-common/html";
|
|
4
|
+
export interface ITabbarConfig extends ILayoutConfig {
|
|
5
|
+
mode?: Position;
|
|
6
|
+
noContent?: boolean;
|
|
7
|
+
css?: string;
|
|
8
|
+
disabled?: string | string[];
|
|
9
|
+
closable?: boolean | string[];
|
|
10
|
+
activeTab?: string;
|
|
11
|
+
tabAutoWidth?: boolean;
|
|
12
|
+
tabAutoHeight?: boolean;
|
|
13
|
+
tabWidth?: number | string;
|
|
14
|
+
tabHeight?: number | string;
|
|
15
|
+
tabAlign?: "left" | "start" | "center" | "middle" | "right" | "end";
|
|
16
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
17
|
+
closeButtons?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ITab extends ICell {
|
|
20
|
+
config: ITabConfig;
|
|
21
|
+
}
|
|
22
|
+
export interface ITabConfig extends ICellConfig {
|
|
23
|
+
tabAutoWidth?: boolean;
|
|
24
|
+
tabAutoHeight?: boolean;
|
|
25
|
+
tabWidth?: number | string;
|
|
26
|
+
tabHeight?: number | string;
|
|
27
|
+
}
|
|
28
|
+
export declare enum TabbarEvents {
|
|
29
|
+
beforeChange = "beforeChange",
|
|
30
|
+
change = "change",
|
|
31
|
+
beforeClose = "beforeClose",
|
|
32
|
+
afterClose = "afterClose",
|
|
33
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
34
|
+
close = "close"
|
|
35
|
+
}
|
|
36
|
+
export interface ITabbar {
|
|
37
|
+
config: ITabbarConfig;
|
|
38
|
+
events: EventSystem<TabbarEvents | LayoutEvents, ITabbarEventHandlersMap | ILayoutEventHandlersMap>;
|
|
39
|
+
toVDOM(nodes?: any[]): any;
|
|
40
|
+
paint(): void;
|
|
41
|
+
destructor(): void;
|
|
42
|
+
getId(index: number): string;
|
|
43
|
+
getCell(id: string): ICell;
|
|
44
|
+
setActive(id: string): void;
|
|
45
|
+
getWidget(): any;
|
|
46
|
+
getActive(): string;
|
|
47
|
+
removeTab(id: string): void;
|
|
48
|
+
addTab(config: ITabbarConfig, index: number): void;
|
|
49
|
+
disableTab(id: string): boolean;
|
|
50
|
+
enableTab(id: string): void;
|
|
51
|
+
isDisabled(id?: string): boolean;
|
|
52
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
53
|
+
removeCell(id: string): void;
|
|
54
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
55
|
+
addCell(config: ITabbarConfig, index: number): any;
|
|
56
|
+
}
|
|
57
|
+
export interface ITabbarEventHandlersMap {
|
|
58
|
+
[key: string]: (...args: any[]) => any;
|
|
59
|
+
[TabbarEvents.beforeChange]: (id: string, prev: string) => boolean | void;
|
|
60
|
+
[TabbarEvents.change]: (id: string, prev: string) => void;
|
|
61
|
+
[TabbarEvents.beforeClose]: (id: string) => boolean | void;
|
|
62
|
+
[TabbarEvents.afterClose]: (id: string) => void;
|
|
63
|
+
[TabbarEvents.close]: (id: string) => any;
|
|
64
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Toolbar, IToolbar } from "./Toolbar";
|
|
2
|
+
import { ScrollView } from "../../ts-common/ScrollView";
|
|
3
|
+
export interface IProToolbar extends IToolbar {
|
|
4
|
+
scrollView: ScrollView;
|
|
5
|
+
}
|
|
6
|
+
export declare class ProToolbar extends Toolbar implements IProToolbar {
|
|
7
|
+
scrollView: ScrollView;
|
|
8
|
+
constructor(element?: string | HTMLElement, config?: any);
|
|
9
|
+
protected _draw(element: any): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Id } from "../../ts-common/types";
|
|
2
|
+
import { TreeCollection } from "../../ts-data";
|
|
3
|
+
import { IState, Navbar, INavbar, IButton, IImageButton, ISelectButton, IInput, ISeparator, ISpacer, ITitle, ICustomHTML, INavItem, IMenuItem, IDatePicker } from "../../ts-navbar";
|
|
4
|
+
export interface IToolbarConfig {
|
|
5
|
+
css?: string;
|
|
6
|
+
menuCss?: string;
|
|
7
|
+
data?: any[] | TreeCollection<IToolbarElement>;
|
|
8
|
+
}
|
|
9
|
+
export interface IToolbar extends INavbar {
|
|
10
|
+
data: TreeCollection<IToolbarElement>;
|
|
11
|
+
config: IToolbarConfig;
|
|
12
|
+
getState(id?: Id): IState;
|
|
13
|
+
setState(state: IState): void;
|
|
14
|
+
}
|
|
15
|
+
export type IToolbarElement = IButton | IImageButton | ISelectButton | IInput | ISeparator | ISpacer | ITitle | ICustomHTML | INavItem | IMenuItem | IDatePicker;
|
|
16
|
+
export declare class Toolbar extends Navbar<IToolbarElement> implements IToolbar {
|
|
17
|
+
data: TreeCollection<IToolbarElement>;
|
|
18
|
+
config: IToolbarConfig;
|
|
19
|
+
constructor(element?: string | HTMLElement, config?: any);
|
|
20
|
+
getState(id?: Id): IState;
|
|
21
|
+
setState(state: IState): void;
|
|
22
|
+
setFocus(id: Id): void;
|
|
23
|
+
protected _customHandlers(): {
|
|
24
|
+
input: (e: Event) => void;
|
|
25
|
+
tooltip: (e: MouseEvent) => void;
|
|
26
|
+
};
|
|
27
|
+
protected _getFactory(): any;
|
|
28
|
+
protected _draw(element: any): any;
|
|
29
|
+
protected _getMode(item: any, root: any): "right" | "bottom";
|
|
30
|
+
protected _close(e: MouseEvent): void;
|
|
31
|
+
protected _setRoot(id: Id): void;
|
|
32
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VNode } from "../../ts-common/dom";
|
|
2
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
3
|
+
export declare enum EditorMode {
|
|
4
|
+
editText = "text",
|
|
5
|
+
selectItem = "select"
|
|
6
|
+
}
|
|
7
|
+
export declare enum EditorEvents {
|
|
8
|
+
begin = "begin",
|
|
9
|
+
end = "end"
|
|
10
|
+
}
|
|
11
|
+
export interface IEditorConfig {
|
|
12
|
+
item?: any;
|
|
13
|
+
mode: EditorMode;
|
|
14
|
+
options?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface IEditor {
|
|
17
|
+
config: IEditorConfig;
|
|
18
|
+
events: IEventSystem<EditorEvents>;
|
|
19
|
+
edit(targetId: string, config: IEditorConfig): VNode;
|
|
20
|
+
isEditable(): boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class Editor implements IEditor {
|
|
23
|
+
config: IEditorConfig;
|
|
24
|
+
events: IEventSystem<EditorEvents>;
|
|
25
|
+
private _item;
|
|
26
|
+
private _handlers;
|
|
27
|
+
private _currentValue;
|
|
28
|
+
private _active;
|
|
29
|
+
private _targetId;
|
|
30
|
+
private _documentClick;
|
|
31
|
+
private _keyManager;
|
|
32
|
+
constructor();
|
|
33
|
+
edit(targetId: string, config: IEditorConfig): any;
|
|
34
|
+
isEditable(): boolean;
|
|
35
|
+
private _draw;
|
|
36
|
+
private _addHotkeys;
|
|
37
|
+
private _removeHotkeys;
|
|
38
|
+
private _finishEdit;
|
|
39
|
+
private _clear;
|
|
40
|
+
private _initOuterClick;
|
|
41
|
+
private _removeClickListener;
|
|
42
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { Id } from "../../ts-common/types";
|
|
3
|
+
import { View } from "../../ts-common/view";
|
|
4
|
+
import { Selection, TreeCollection, DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap } from "../../ts-data";
|
|
5
|
+
import { IEditorConfig } from "./Editor";
|
|
6
|
+
import { ITree, ITreeConfig, ITreeState, TreeEvents, ITreeEventHandlersMap, ITreeItem } from "./types";
|
|
7
|
+
export declare class Tree<T extends object = object> extends View implements ITree {
|
|
8
|
+
config: ITreeConfig;
|
|
9
|
+
data: TreeCollection<T & ITreeItem>;
|
|
10
|
+
events: IEventSystem<DataEvents | TreeEvents | DragEvents, IDataEventsHandlersMap & ITreeEventHandlersMap & IDragEventsHandlersMap>;
|
|
11
|
+
selection: Selection;
|
|
12
|
+
private _editor;
|
|
13
|
+
private _handlers;
|
|
14
|
+
private _isSelectionActive;
|
|
15
|
+
private _root;
|
|
16
|
+
private _focusId;
|
|
17
|
+
private _right;
|
|
18
|
+
private _keyManager;
|
|
19
|
+
private _touch;
|
|
20
|
+
private _isDraget;
|
|
21
|
+
constructor(container: HTMLElement | string, config?: ITreeConfig);
|
|
22
|
+
focusItem(id: Id): void;
|
|
23
|
+
destructor(): void;
|
|
24
|
+
editItem(id: Id, config?: IEditorConfig): void;
|
|
25
|
+
getState(): ITreeState;
|
|
26
|
+
setState(state: ITreeState): void;
|
|
27
|
+
toggle(id: Id): void;
|
|
28
|
+
getChecked(): Id[];
|
|
29
|
+
checkItem(id: Id): void;
|
|
30
|
+
collapse(id: Id): void;
|
|
31
|
+
collapseAll(): void;
|
|
32
|
+
expand(id: Id): void;
|
|
33
|
+
expandAll(): void;
|
|
34
|
+
uncheckItem(id: Id): void;
|
|
35
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
36
|
+
close(id: Id): void;
|
|
37
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
38
|
+
closeAll(): void;
|
|
39
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
40
|
+
open(id: Id): void;
|
|
41
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
42
|
+
openAll(): void;
|
|
43
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
44
|
+
unCheckItem(id: Id): void;
|
|
45
|
+
private _draw;
|
|
46
|
+
private _initEvents;
|
|
47
|
+
private _autoScroll;
|
|
48
|
+
private _scrollTo;
|
|
49
|
+
private _initHandlers;
|
|
50
|
+
private _dblClick;
|
|
51
|
+
private _clearTouchTimer;
|
|
52
|
+
private _dragStart;
|
|
53
|
+
private _getRightPos;
|
|
54
|
+
private _drawItems;
|
|
55
|
+
private _updateItemCheck;
|
|
56
|
+
private _updateParents;
|
|
57
|
+
private _initHotkeys;
|
|
58
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { Id } from "../../ts-common/types";
|
|
3
|
+
import { TreeCollection, DataEvents, DragEvents, IDragConfig, IDataItem, IDragEventsHandlersMap, Selection } from "../../ts-data";
|
|
4
|
+
import { IEditorConfig } from "./Editor";
|
|
5
|
+
export interface ITreeState {
|
|
6
|
+
[id: string]: {
|
|
7
|
+
selected: SelectStatus;
|
|
8
|
+
open: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface ITreeItem extends IDataItem {
|
|
12
|
+
parent: string;
|
|
13
|
+
opened?: boolean;
|
|
14
|
+
$mark?: SelectStatus;
|
|
15
|
+
checkbox?: boolean;
|
|
16
|
+
$autoload?: boolean;
|
|
17
|
+
$selected?: boolean;
|
|
18
|
+
$editor?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ITreeCustomIcon {
|
|
21
|
+
file?: string;
|
|
22
|
+
folder?: string;
|
|
23
|
+
openFolder?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare enum SelectStatus {
|
|
26
|
+
unselected = 0,
|
|
27
|
+
selected = 1,
|
|
28
|
+
indeterminate = 2
|
|
29
|
+
}
|
|
30
|
+
export type ItemIcon = "file" | "folder" | "openFolder";
|
|
31
|
+
export interface ITreeConfig extends IDragConfig {
|
|
32
|
+
data?: TreeCollection<any> | any[];
|
|
33
|
+
css?: string;
|
|
34
|
+
keyNavigation?: boolean;
|
|
35
|
+
autoload?: string;
|
|
36
|
+
checkbox?: boolean;
|
|
37
|
+
isFolder?: (obj: any) => boolean;
|
|
38
|
+
icon?: ITreeCustomIcon;
|
|
39
|
+
editable?: boolean;
|
|
40
|
+
selection?: boolean;
|
|
41
|
+
rootId?: Id;
|
|
42
|
+
itemHeight?: number | string;
|
|
43
|
+
template?: (item: ITreeItem, isFolder: boolean) => string;
|
|
44
|
+
eventHandlers?: {
|
|
45
|
+
[eventName: string]: {
|
|
46
|
+
[className: string]: (event: Event, item: ITree) => void | boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
collapsed?: boolean;
|
|
50
|
+
$editable?: boolean;
|
|
51
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
52
|
+
editing?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface ITree {
|
|
55
|
+
data: TreeCollection;
|
|
56
|
+
events: IEventSystem<DataEvents | DragEvents | TreeEvents>;
|
|
57
|
+
selection: Selection;
|
|
58
|
+
config: ITreeConfig;
|
|
59
|
+
paint(): void;
|
|
60
|
+
destructor(): void;
|
|
61
|
+
editItem(id: Id, config: IEditorConfig): void;
|
|
62
|
+
getState(): ITreeState;
|
|
63
|
+
setState(state: ITreeState): void;
|
|
64
|
+
focusItem(id: Id): void;
|
|
65
|
+
toggle(id: Id): void;
|
|
66
|
+
getChecked(): Id[];
|
|
67
|
+
checkItem(id: Id): void;
|
|
68
|
+
collapse(id: Id): void;
|
|
69
|
+
collapseAll(): void;
|
|
70
|
+
expand(id: Id): void;
|
|
71
|
+
expandAll(): void;
|
|
72
|
+
uncheckItem(id: Id): void;
|
|
73
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
74
|
+
close(id: Id): void;
|
|
75
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
76
|
+
closeAll(): void;
|
|
77
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
78
|
+
open(id: Id): void;
|
|
79
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
80
|
+
openAll(): void;
|
|
81
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
82
|
+
unCheckItem(id: Id): void;
|
|
83
|
+
}
|
|
84
|
+
export declare enum TreeEvents {
|
|
85
|
+
itemClick = "itemclick",
|
|
86
|
+
itemDblClick = "itemdblclick",
|
|
87
|
+
itemRightClick = "itemrightclick",
|
|
88
|
+
beforeCollapse = "beforeCollapse",
|
|
89
|
+
afterCollapse = "afterCollapse",
|
|
90
|
+
beforeExpand = "beforeExpand",
|
|
91
|
+
afterExpand = "afterExpand",
|
|
92
|
+
beforeEditStart = "beforeEditStart",
|
|
93
|
+
afterEditStart = "afterEditStart",
|
|
94
|
+
beforeEditEnd = "beforeEditEnd",
|
|
95
|
+
afterEditEnd = "afterEditEnd",
|
|
96
|
+
focusChange = "focusChange",
|
|
97
|
+
beforeCheck = "beforeCheck",
|
|
98
|
+
afterCheck = "afterCheck",
|
|
99
|
+
/** @deprecated See a documentation: https://docs.dhtmlx.com/ */
|
|
100
|
+
itemContextMenu = "itemcontextmenu"
|
|
101
|
+
}
|
|
102
|
+
export interface ITreeEventHandlersMap extends IDragEventsHandlersMap {
|
|
103
|
+
[key: string]: (...args: any[]) => any;
|
|
104
|
+
[TreeEvents.itemClick]: (id: Id, e: Event) => any;
|
|
105
|
+
[TreeEvents.itemRightClick]: (id: Id, e: Event) => void;
|
|
106
|
+
[TreeEvents.itemDblClick]: (id: Id, e: Event) => void;
|
|
107
|
+
[TreeEvents.beforeCollapse]: (id: Id) => boolean | void;
|
|
108
|
+
[TreeEvents.afterCollapse]: (id: Id) => void;
|
|
109
|
+
[TreeEvents.beforeExpand]: (id: Id) => boolean | void;
|
|
110
|
+
[TreeEvents.afterExpand]: (id: Id) => void;
|
|
111
|
+
[TreeEvents.beforeEditStart]: (value: string, id: Id) => boolean | void;
|
|
112
|
+
[TreeEvents.afterEditStart]: (value: string, id: Id) => void;
|
|
113
|
+
[TreeEvents.beforeEditEnd]: (value: string, id: Id) => boolean | void;
|
|
114
|
+
[TreeEvents.afterEditEnd]: (value: string, id: Id) => void;
|
|
115
|
+
[TreeEvents.focusChange]: (index: number, id: Id) => void;
|
|
116
|
+
[TreeEvents.beforeCheck]: (index: number, id: Id) => boolean | void;
|
|
117
|
+
[TreeEvents.afterCheck]: (index: number, id: Id, value: boolean) => void;
|
|
118
|
+
[TreeEvents.itemContextMenu]: (id: Id, e: Event) => any;
|
|
119
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GridEvents, IEventHandlersMap, ProGrid, ICellRect, IColumnsWidth, ISpan, IAdjustColumns } from "../../ts-grid";
|
|
2
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
3
|
+
import { DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap, IDataItem } from "../../ts-data";
|
|
4
|
+
import { TreeGridCollection } from "./TreeGridCollection";
|
|
5
|
+
import { ITreeEventHandlersMap, ITreeGrid, ITreeGridConfig, TreeGridEvents } from "./types";
|
|
6
|
+
import { Id } from "../../ts-common/types";
|
|
7
|
+
export declare class TreeGrid extends ProGrid implements ITreeGrid {
|
|
8
|
+
config: ITreeGridConfig;
|
|
9
|
+
data: TreeGridCollection;
|
|
10
|
+
events: IEventSystem<DataEvents | GridEvents | DragEvents | TreeGridEvents, IEventHandlersMap & IDataEventsHandlersMap & IDragEventsHandlersMap & ITreeEventHandlersMap>;
|
|
11
|
+
private _pregroupData;
|
|
12
|
+
constructor(container: HTMLElement, config: ITreeGridConfig);
|
|
13
|
+
scrollTo(rowId: Id, colId: Id): void;
|
|
14
|
+
expand(rowId: Id): void;
|
|
15
|
+
collapse(rowId: Id): void;
|
|
16
|
+
expandAll(): void;
|
|
17
|
+
collapseAll(): void;
|
|
18
|
+
groupBy(property: string | ((item: IDataItem) => string)): void;
|
|
19
|
+
ungroup(): void;
|
|
20
|
+
showRow(rowId: Id): void;
|
|
21
|
+
hideRow(rowId: Id): void;
|
|
22
|
+
getCellRect(rowId: Id, colId: Id): ICellRect;
|
|
23
|
+
getSpan(rowId: Id, colId: Id): ISpan;
|
|
24
|
+
protected _adjustColumnsWidth({ rows, cols, totalCols, adjust, }: IAdjustColumns): IColumnsWidth;
|
|
25
|
+
protected _createCollection(prep: (data: any[]) => any[]): void;
|
|
26
|
+
protected _getRowIndex(rowId: Id): number;
|
|
27
|
+
protected _setEventHandlers(): void;
|
|
28
|
+
private _groupBy;
|
|
29
|
+
private _serialize;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { DataCallback, DataDriver, DataEvents, IDataItem, TreeCollection } from "../../ts-data";
|
|
3
|
+
import { TreeGridEvents } from "./types";
|
|
4
|
+
import { Id } from "../../ts-common/types";
|
|
5
|
+
export declare class TreeGridCollection extends TreeCollection {
|
|
6
|
+
constructor(config?: any, events?: IEventSystem<DataEvents | TreeGridEvents>);
|
|
7
|
+
eachChild(id: Id, cb: any, direct?: boolean, checkItem?: (item: IDataItem) => boolean): void;
|
|
8
|
+
getMaxLevel(): number;
|
|
9
|
+
getLevel(id: Id): number;
|
|
10
|
+
serialize(driver?: DataDriver): any[];
|
|
11
|
+
getPlainIndex(id: Id): number;
|
|
12
|
+
map(cb: DataCallback<IDataItem>, parent?: Id, direct?: boolean): IDataItem[];
|
|
13
|
+
mapVisible(cb: DataCallback<IDataItem>, parent?: Id, direct?: boolean): IDataItem[];
|
|
14
|
+
protected _parse_data(data: any, parent?: Id): void;
|
|
15
|
+
protected _copy(id: Id, index: number, target?: TreeGridCollection, targetId?: Id, key?: number): Id;
|
|
16
|
+
protected _addToOrder(_order: any, obj: any, index: number): void;
|
|
17
|
+
protected _removeCore(id: Id): void;
|
|
18
|
+
protected _setParent(item: IDataItem, parent: Id): void;
|
|
19
|
+
private _checkItems;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../styles/grid.scss";
|
|
2
|
+
import "../../styles/themes.scss";
|
|
3
|
+
export { cssManager } from "../../ts-common/CssManager";
|
|
4
|
+
export { awaitRedraw, setTheme } from "../../ts-common/dom";
|
|
5
|
+
export { TreeGridCollection } from "./TreeGridCollection";
|
|
6
|
+
export { TreeGrid } from "./TreeGrid";
|
|
7
|
+
export declare const i18n: any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap, IDataItem } from "../../ts-data";
|
|
2
|
+
import { GridEvents, IEventHandlersMap, IGrid, IGridConfig } from "../../ts-grid";
|
|
3
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
4
|
+
import { Id } from "../../ts-common/types";
|
|
5
|
+
export interface ITreeGridConfig extends IGridConfig {
|
|
6
|
+
rootParent?: Id;
|
|
7
|
+
dragExpand?: boolean;
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ITreeGrid extends IGrid {
|
|
11
|
+
events: IEventSystem<DataEvents | GridEvents | DragEvents | TreeGridEvents, IEventHandlersMap & IDataEventsHandlersMap & IDragEventsHandlersMap & ITreeEventHandlersMap>;
|
|
12
|
+
scrollTo(rowId: Id, colId: Id): void;
|
|
13
|
+
expand(rowId: Id): void;
|
|
14
|
+
collapse(rowId: Id): void;
|
|
15
|
+
expandAll(): void;
|
|
16
|
+
collapseAll(): void;
|
|
17
|
+
groupBy(property: string | ((item: IDataItem) => string)): void;
|
|
18
|
+
ungroup(): void;
|
|
19
|
+
}
|
|
20
|
+
export declare enum TreeGridEvents {
|
|
21
|
+
beforeCollapse = "beforeCollapse",
|
|
22
|
+
afterCollapse = "afterCollapse",
|
|
23
|
+
beforeExpand = "beforeExpand",
|
|
24
|
+
afterExpand = "afterExpand"
|
|
25
|
+
}
|
|
26
|
+
export interface ITreeEventHandlersMap {
|
|
27
|
+
[key: string]: (...args: any[]) => any;
|
|
28
|
+
[TreeGridEvents.beforeCollapse]: (rowId: Id) => boolean | void;
|
|
29
|
+
[TreeGridEvents.afterCollapse]: (rowId: Id) => any;
|
|
30
|
+
[TreeGridEvents.beforeExpand]: (rowId: Id) => boolean | void;
|
|
31
|
+
[TreeGridEvents.afterExpand]: (rowId: Id) => any;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|