@tetacom/ng-components 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +1 -1
- package/docs/accordionDocs.mdx +1 -1
- package/docs/avatarDocs.mdx +1 -1
- package/docs/badgeDocs.mdx +1 -1
- package/docs/buttonDocs.mdx +1 -1
- package/docs/checkboxDocs.mdx +1 -1
- package/docs/chipDocs.mdx +1 -1
- package/docs/datePickerDocs.mdx +1 -1
- package/docs/dateRangeDocs.mdx +1 -1
- package/docs/delimiterDocs.mdx +1 -1
- package/docs/dropdownDocs.mdx +1 -1
- package/docs/expandCardlDocs.mdx +1 -1
- package/docs/expandPanelDocs.mdx +1 -1
- package/docs/fileAreaDocs.mdx +1 -1
- package/docs/iconDocs.mdx +1 -1
- package/docs/inputDocs.mdx +1 -1
- package/docs/listDocs.mdx +1 -1
- package/docs/messageDocs.mdx +1 -1
- package/docs/modalDocs.mdx +1 -1
- package/docs/progressBarDocs.mdx +1 -1
- package/docs/propertyGridDocs.mdx +1 -1
- package/docs/radioDocs.mdx +1 -1
- package/docs/resizePanelDocs.mdx +1 -1
- package/docs/selectDocs.mdx +1 -1
- package/docs/stepperDocs.mdx +1 -1
- package/docs/switchDocs.mdx +1 -1
- package/docs/tableDocs.mdx +1 -1
- package/docs/tabsDocs.mdx +1 -1
- package/docs/tagDocs.mdx +1 -1
- package/docs/toggleDocs.mdx +1 -1
- package/docs/toolbarDocs.mdx +1 -1
- package/docs/treeDocs.mdx +1 -1
- package/fesm2022/tetacom-ng-components.mjs +869 -932
- package/fesm2022/tetacom-ng-components.mjs.map +1 -1
- package/package.json +7 -6
- package/types/tetacom-ng-components.d.ts +3600 -0
- package/common/contract/auto-close-ignore-case.d.ts +0 -1
- package/common/contract/constructor-type.d.ts +0 -1
- package/common/contract/dynamic-data.d.ts +0 -6
- package/common/contract/i-dictionary.d.ts +0 -3
- package/common/contract/i-id-name.d.ts +0 -6
- package/common/contract/i-id.d.ts +0 -3
- package/common/contract/i-rect.d.ts +0 -8
- package/common/contract/i-tree-data.d.ts +0 -4
- package/common/contract/public-api.d.ts +0 -9
- package/common/contract/teta-content-ref.d.ts +0 -7
- package/common/enum/align.enum.d.ts +0 -11
- package/common/enum/public-api.d.ts +0 -3
- package/common/enum/teta-size.enum.d.ts +0 -7
- package/common/enum/vertical-align.enum.d.ts +0 -9
- package/common/model/public-api.d.ts +0 -1
- package/common/model/view-type.model.d.ts +0 -1
- package/common/public-api.d.ts +0 -5
- package/common/service/click.service.d.ts +0 -10
- package/common/service/dynamic-component.service.d.ts +0 -21
- package/common/service/overlay-container.service.d.ts +0 -14
- package/common/service/public-api.d.ts +0 -3
- package/common/util/array-util.d.ts +0 -9
- package/common/util/dom-util.d.ts +0 -5
- package/common/util/position-util.d.ts +0 -9
- package/common/util/public-api.d.ts +0 -3
- package/component/accordion/accordion/accordion.component.d.ts +0 -6
- package/component/accordion/accordion-content.directive.d.ts +0 -8
- package/component/accordion/accordion-head/accordion-head.component.d.ts +0 -15
- package/component/accordion/accordion-item/accordion-item.component.d.ts +0 -21
- package/component/accordion/public-api.d.ts +0 -4
- package/component/autocomplete/autocomplete/autocomplete.component.d.ts +0 -8
- package/component/autocomplete/public-api.d.ts +0 -1
- package/component/avatar/avatar/avatar.component.d.ts +0 -17
- package/component/avatar/model/avatar-color.enum.d.ts +0 -20
- package/component/avatar/public-api.d.ts +0 -1
- package/component/button/button/button.component.d.ts +0 -15
- package/component/button/public-api.d.ts +0 -1
- package/component/chart-3d/chart3d/chart3d.component.d.ts +0 -61
- package/component/chart-3d/model/base-3d-point.d.ts +0 -6
- package/component/chart-3d/model/chart-3d-options.d.ts +0 -11
- package/component/chart-3d/model/chart3d-tooltip.d.ts +0 -22
- package/component/chart-3d/model/public-api.d.ts +0 -2
- package/component/chart-3d/model/series-3d.d.ts +0 -11
- package/component/chart-3d/public-api.d.ts +0 -2
- package/component/chart-3d/services/chart3d-tooltip.service.d.ts +0 -15
- package/component/checkbox/checkbox/checkbox.component.d.ts +0 -47
- package/component/checkbox/public-api.d.ts +0 -1
- package/component/date-picker/base-calendar.d.ts +0 -50
- package/component/date-picker/base-picker.d.ts +0 -62
- package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +0 -21
- package/component/date-picker/date-picker/date-picker.component.d.ts +0 -61
- package/component/date-picker/date-range/date-range.component.d.ts +0 -51
- package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +0 -40
- package/component/date-picker/day-picker/day-item/day-item.component.d.ts +0 -9
- package/component/date-picker/day-picker/day-picker.component.d.ts +0 -32
- package/component/date-picker/model/date-period.d.ts +0 -5
- package/component/date-picker/model/date-picker-mode.enum.d.ts +0 -5
- package/component/date-picker/model/day-model.d.ts +0 -16
- package/component/date-picker/model/from-to.model.d.ts +0 -4
- package/component/date-picker/model/min-max-date.model.d.ts +0 -4
- package/component/date-picker/model/public-api.d.ts +0 -5
- package/component/date-picker/month-picker/month-picker.component.d.ts +0 -19
- package/component/date-picker/public-api.d.ts +0 -5
- package/component/date-picker/year-picker/scroll-to-selected-year.directive.d.ts +0 -11
- package/component/date-picker/year-picker/year-picker.component.d.ts +0 -23
- package/component/delimiter/delimiter/delimiter.component.d.ts +0 -19
- package/component/delimiter/public-api.d.ts +0 -1
- package/component/divider/divider/divider.component.d.ts +0 -10
- package/component/divider/public-api.d.ts +0 -1
- package/component/dropdown/dropdown/dropdown.component.d.ts +0 -15
- package/component/dropdown/dropdown-base.d.ts +0 -45
- package/component/dropdown/dropdown-content.directive.d.ts +0 -9
- package/component/dropdown/dropdown-head.directive.d.ts +0 -8
- package/component/dropdown/dropdown.directive.d.ts +0 -16
- package/component/dropdown/public-api.d.ts +0 -4
- package/component/dynamic-component/popup-content/popup-content.component.d.ts +0 -13
- package/component/dynamic-component/public-api.d.ts +0 -1
- package/component/expand-card/expand-card/expand-card.component.d.ts +0 -13
- package/component/expand-card/expand-item/expand-item.component.d.ts +0 -9
- package/component/expand-card/public-api.d.ts +0 -2
- package/component/expand-panel/expand-panel/expand-panel.component.d.ts +0 -21
- package/component/expand-panel/expand-panel-content.directive.d.ts +0 -8
- package/component/expand-panel/expand-panel-head.directive.d.ts +0 -8
- package/component/expand-panel/public-api.d.ts +0 -3
- package/component/file-upload/file-item/file-item.component.d.ts +0 -8
- package/component/file-upload/file-upload-area/file-upload-area.component.d.ts +0 -22
- package/component/file-upload/public-api.d.ts +0 -2
- package/component/filter/base/filter-base.d.ts +0 -10
- package/component/filter/base/filter-component-base.d.ts +0 -12
- package/component/filter/boolean-filter/boolean-filter.component.d.ts +0 -30
- package/component/filter/contarct/boolean-filter.d.ts +0 -8
- package/component/filter/contarct/date-filter-value.d.ts +0 -14
- package/component/filter/contarct/date-filter.d.ts +0 -9
- package/component/filter/contarct/filter-component-map.d.ts +0 -3
- package/component/filter/contarct/filter-item.d.ts +0 -78
- package/component/filter/contarct/filter-state.d.ts +0 -30
- package/component/filter/contarct/i-filter.d.ts +0 -5
- package/component/filter/contarct/list-filter.d.ts +0 -11
- package/component/filter/contarct/numeric-filter-value.d.ts +0 -19
- package/component/filter/contarct/numeric-filter.d.ts +0 -11
- package/component/filter/contarct/sort-param.d.ts +0 -22
- package/component/filter/contarct/string-filter.d.ts +0 -11
- package/component/filter/date-filter/date-filter.component.d.ts +0 -30
- package/component/filter/enum/filter-type.enum.d.ts +0 -9
- package/component/filter/enum/list-filter-type.enum.d.ts +0 -4
- package/component/filter/enum/string-filter-type.enum.d.ts +0 -18
- package/component/filter/filter-host/filter-host.component.d.ts +0 -26
- package/component/filter/list-filter/list-filter.component.d.ts +0 -36
- package/component/filter/numeric-filter/numeric-filter.component.d.ts +0 -30
- package/component/filter/public-api.d.ts +0 -22
- package/component/filter/string-filter/string-filter.component.d.ts +0 -30
- package/component/icon/icon/icon.component.d.ts +0 -12
- package/component/icon/icon-file/icon-file.component.d.ts +0 -12
- package/component/icon/icon-sprite.directive.d.ts +0 -12
- package/component/icon/icon.service.d.ts +0 -19
- package/component/icon/public-api.d.ts +0 -4
- package/component/input/color-input/color-input.component.d.ts +0 -22
- package/component/input/form-group-title/form-group-title.component.d.ts +0 -9
- package/component/input/input/input.component.d.ts +0 -14
- package/component/input/public-api.d.ts +0 -5
- package/component/input/text-field/text-field.component.d.ts +0 -28
- package/component/message/message/message.component.d.ts +0 -19
- package/component/message/message-host/message-host.component.d.ts +0 -25
- package/component/message/message.service.d.ts +0 -15
- package/component/message/model/message.d.ts +0 -24
- package/component/message/public-api.d.ts +0 -4
- package/component/modal/dialog/dialog.component.d.ts +0 -21
- package/component/modal/dialog.service.d.ts +0 -13
- package/component/modal/modal-container/modal-container.component.d.ts +0 -17
- package/component/modal/modal.module.d.ts +0 -10
- package/component/modal/modal.service.d.ts +0 -23
- package/component/modal/model/current-modal.d.ts +0 -4
- package/component/modal/model/dialog-data.d.ts +0 -11
- package/component/modal/model/i-modal-config.d.ts +0 -11
- package/component/modal/model/i-modal-result.d.ts +0 -12
- package/component/modal/model/modal-close-reason.enum.d.ts +0 -6
- package/component/modal/model/modal-instance.d.ts +0 -16
- package/component/modal/public-api.d.ts +0 -10
- package/component/pager/model/pager-state.d.ts +0 -40
- package/component/pager/pager/pager.component.d.ts +0 -8
- package/component/pager/public-api.d.ts +0 -3
- package/component/pager/util/pager-util.d.ts +0 -4
- package/component/panel/panel/panel.component.d.ts +0 -12
- package/component/panel/public-api.d.ts +0 -1
- package/component/progress-bar/progress-bar/progress-bar.component.d.ts +0 -46
- package/component/progress-bar/public-api.d.ts +0 -1
- package/component/property-grid/property-grid/property-grid-group/property-grid-group.component.d.ts +0 -17
- package/component/property-grid/property-grid/property-grid-item/property-grid-item.component.d.ts +0 -37
- package/component/property-grid/property-grid/property-grid-item-description.directive.d.ts +0 -9
- package/component/property-grid/property-grid/property-grid.component.d.ts +0 -25
- package/component/property-grid/public-api.d.ts +0 -3
- package/component/public-api.d.ts +0 -36
- package/component/radio/public-api.d.ts +0 -2
- package/component/radio/radio/radio.component.d.ts +0 -45
- package/component/radio/radio-button/radio-button.component.d.ts +0 -20
- package/component/resize-panel/public-api.d.ts +0 -1
- package/component/resize-panel/resize-panel/resize-panel.component.d.ts +0 -37
- package/component/select/public-api.d.ts +0 -3
- package/component/select/select/select.component.d.ts +0 -72
- package/component/select/select-option.directive.d.ts +0 -8
- package/component/select/select-value.directive.d.ts +0 -8
- package/component/sidebar/public-api.d.ts +0 -2
- package/component/sidebar/sidebar/sidebar.component.d.ts +0 -17
- package/component/sidebar/sidebar-position.enum.d.ts +0 -6
- package/component/stepper/public-api.d.ts +0 -1
- package/component/stepper/stepper/stepper.component.d.ts +0 -10
- package/component/switch/public-api.d.ts +0 -2
- package/component/switch/switch/switch.component.d.ts +0 -25
- package/component/switch/switch-button/switch-button.component.d.ts +0 -18
- package/component/switch/switch.service.d.ts +0 -10
- package/component/table/base/cell-component-base.d.ts +0 -42
- package/component/table/base/detail-component-base.d.ts +0 -11
- package/component/table/base/head-cell-component-base.d.ts +0 -9
- package/component/table/cell/cell.component.d.ts +0 -14
- package/component/table/cell-host/cell-host.component.d.ts +0 -20
- package/component/table/contract/cell-components-map.d.ts +0 -3
- package/component/table/contract/column-reorder-event.d.ts +0 -6
- package/component/table/contract/column-resize-event.d.ts +0 -6
- package/component/table/contract/head-dropdown-tab.d.ts +0 -13
- package/component/table/contract/i-cell-coordinates.d.ts +0 -4
- package/component/table/contract/i-cell-event.d.ts +0 -4
- package/component/table/contract/i-cell-instance.d.ts +0 -16
- package/component/table/contract/i-cell-value.d.ts +0 -4
- package/component/table/contract/public-api.d.ts +0 -12
- package/component/table/contract/sort-event.d.ts +0 -6
- package/component/table/contract/table-column-store.d.ts +0 -15
- package/component/table/contract/table-column.d.ts +0 -141
- package/component/table/contract/table-row.d.ts +0 -8
- package/component/table/default/boolean-cell/boolean-cell.component.d.ts +0 -16
- package/component/table/default/color-cell/color-cell.component.d.ts +0 -20
- package/component/table/default/date-cell/date-cell.component.d.ts +0 -18
- package/component/table/default/date-time-cell/date-time-cell.component.d.ts +0 -18
- package/component/table/default/default-head-cell/default-head-cell.component.d.ts +0 -20
- package/component/table/default/list-cell/list-cell.component.d.ts +0 -23
- package/component/table/default/numeric-cell/numeric-cell.component.d.ts +0 -16
- package/component/table/default/string-cell/string-cell.component.d.ts +0 -18
- package/component/table/enum/aggregation-type.enum.d.ts +0 -7
- package/component/table/enum/edit-event.enum.d.ts +0 -5
- package/component/table/enum/edit-type.enum.d.ts +0 -5
- package/component/table/enum/public-api.d.ts +0 -4
- package/component/table/enum/select-type.enum.d.ts +0 -5
- package/component/table/head-cell/head-cell.component.d.ts +0 -52
- package/component/table/head-cell-dropdown/head-cell-dropdown.component.d.ts +0 -25
- package/component/table/head-cell-host/head-cell-host.component.d.ts +0 -21
- package/component/table/public-api.d.ts +0 -42
- package/component/table/selection-cell/selection-cell.component.d.ts +0 -15
- package/component/table/selection-head-cell/selection-head-cell.component.d.ts +0 -16
- package/component/table/service/table.service.d.ts +0 -140
- package/component/table/table/table.component.d.ts +0 -87
- package/component/table/table-body/table-body.component.d.ts +0 -67
- package/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.d.ts +0 -31
- package/component/table/table-head/main-dropdown-tab/main-dropdown-tab.component.d.ts +0 -42
- package/component/table/table-head/table-head.component.d.ts +0 -31
- package/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.d.ts +0 -44
- package/component/table/table-head-group/table-head-group.component.d.ts +0 -24
- package/component/table/table-row/table-row.component.d.ts +0 -14
- package/component/table/util/color-util.d.ts +0 -3
- package/component/table/util/public-api.d.ts +0 -3
- package/component/table/util/state-util.d.ts +0 -17
- package/component/table/util/table-util.d.ts +0 -20
- package/component/tabs/public-api.d.ts +0 -10
- package/component/tabs/tab/tab.component.d.ts +0 -23
- package/component/tabs/tab-content.directive.d.ts +0 -8
- package/component/tabs/tab-title.directive.d.ts +0 -8
- package/component/tabs/tabs/tabs.component.d.ts +0 -43
- package/component/theme-switch/public-api.d.ts +0 -2
- package/component/theme-switch/theme-switch/theme-switch.component.d.ts +0 -16
- package/component/theme-switch/theme-switch.service.d.ts +0 -12
- package/component/toggle/public-api.d.ts +0 -1
- package/component/toggle/toggle/toggle.component.d.ts +0 -32
- package/component/toolbar/public-api.d.ts +0 -4
- package/component/toolbar/toolbar/toolbar.component.d.ts +0 -10
- package/component/tree/public-api.d.ts +0 -3
- package/component/tree/tree/tree.component.d.ts +0 -38
- package/component/tree/tree-item/tree-item.component.d.ts +0 -25
- package/component/tree/tree-item-toggle/tree-item-toggle.component.d.ts +0 -13
- package/component/tree/tree.service.d.ts +0 -17
- package/directive/auto-position/auto-position.directive.d.ts +0 -18
- package/directive/auto-position/public-api.d.ts +0 -1
- package/directive/click-outside/click-outside.directive.d.ts +0 -18
- package/directive/click-outside/public-api.d.ts +0 -1
- package/directive/context-menu/context-menu.directive.d.ts +0 -34
- package/directive/context-menu/public-api.d.ts +0 -1
- package/directive/disable-control/disable-control.directive.d.ts +0 -13
- package/directive/disable-control/public-api.d.ts +0 -1
- package/directive/drag-drop/drag-container.directive.d.ts +0 -32
- package/directive/drag-drop/drag-drop.service.d.ts +0 -40
- package/directive/drag-drop/drag-placeholder.directive.d.ts +0 -6
- package/directive/drag-drop/drag-preview.directive.d.ts +0 -8
- package/directive/drag-drop/drag.directive.d.ts +0 -33
- package/directive/drag-drop/model/drag-container-instance.d.ts +0 -11
- package/directive/drag-drop/model/drag-instance.d.ts +0 -9
- package/directive/drag-drop/model/drag-process.d.ts +0 -4
- package/directive/drag-drop/model/drag-selection.d.ts +0 -6
- package/directive/drag-drop/model/drop-event.d.ts +0 -8
- package/directive/drag-drop/model/drop-target.d.ts +0 -3
- package/directive/drag-drop/model/point.d.ts +0 -4
- package/directive/drag-drop/model/public-api.d.ts +0 -7
- package/directive/drag-drop/public-api.d.ts +0 -6
- package/directive/drag-sort/drag-sort-container.directive.d.ts +0 -16
- package/directive/drag-sort/drag-sort-event.d.ts +0 -7
- package/directive/drag-sort/drag-sort-item.directive.d.ts +0 -30
- package/directive/drag-sort/public-api.d.ts +0 -3
- package/directive/dynamic-content-base.directive.d.ts +0 -33
- package/directive/full-screen/full-screen-toggle.directive.d.ts +0 -7
- package/directive/full-screen/full-screen.directive.d.ts +0 -12
- package/directive/full-screen/full-screen.service.d.ts +0 -9
- package/directive/highlight/highlight.directive.d.ts +0 -12
- package/directive/highlight/public-api.d.ts +0 -1
- package/directive/hint/hint.directive.d.ts +0 -36
- package/directive/hint/public-api.d.ts +0 -1
- package/directive/let/let.directive.d.ts +0 -18
- package/directive/let/public-api.d.ts +0 -1
- package/directive/loader/loader.directive.d.ts +0 -24
- package/directive/loader/public-api.d.ts +0 -1
- package/directive/no-autofill/no-autofill.directive.d.ts +0 -10
- package/directive/no-autofill/public-api.d.ts +0 -1
- package/directive/only-number/only-number.directive.d.ts +0 -28
- package/directive/only-number/public-api.d.ts +0 -1
- package/directive/public-api.d.ts +0 -21
- package/directive/resize-drag/public-api.d.ts +0 -1
- package/directive/resize-drag/resize-drag.directive.d.ts +0 -20
- package/directive/scroll-into-view/public-api.d.ts +0 -1
- package/directive/scroll-into-view/scroll-into-view.directive.d.ts +0 -13
- package/directive/scrollable/public-api.d.ts +0 -2
- package/directive/scrollable/scrollable/scrollable.component.d.ts +0 -34
- package/directive/scrollable/scrollable.directive.d.ts +0 -6
- package/directive/teta-template/public-api.d.ts +0 -1
- package/directive/teta-template/teta-template.directive.d.ts +0 -10
- package/directive/tooltip/public-api.d.ts +0 -1
- package/directive/tooltip/tooltip.directive.d.ts +0 -31
- package/index.d.ts +0 -19
- package/locale/en.d.ts +0 -2
- package/locale/public-api.d.ts +0 -4
- package/locale/ru.d.ts +0 -2
- package/locale/teta-config.service.d.ts +0 -11
- package/locale/teta-localisation.d.ts +0 -36
- package/observable/animation-frame.d.ts +0 -4
- package/observable/public-api.d.ts +0 -2
- package/observable/zone-observable.d.ts +0 -5
- package/pipe/date-pipe/public-api.d.ts +0 -1
- package/pipe/date-pipe/teta-date.pipe.d.ts +0 -11
- package/pipe/number-pipe/number.pipe.d.ts +0 -7
- package/pipe/number-pipe/public-api.d.ts +0 -1
- package/pipe/prepend-zero/prepend-zero.pipe.d.ts +0 -7
- package/pipe/prepend-zero/public-api.d.ts +0 -1
- package/pipe/public-api.d.ts +0 -4
- package/pipe/util/number-helper.d.ts +0 -3
- package/util/bool-or-func.d.ts +0 -1
- package/util/date-util.d.ts +0 -43
- package/util/export-dom-image.d.ts +0 -12
- package/util/forms-util.d.ts +0 -15
- package/util/is-function.d.ts +0 -1
- package/util/public-api.d.ts +0 -6
- package/util/string-util.d.ts +0 -4
|
@@ -0,0 +1,3600 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges, NgZone, Renderer2, ViewContainerRef, RendererFactory2, ViewRef, ComponentRef, ComponentFactoryResolver, ApplicationRef, Type, Injector, AfterContentChecked, QueryList, Signal, PipeTransform, Provider, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { Observable, ReplaySubject, BehaviorSubject, MonoTypeOperatorFunction } from 'rxjs';
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
import { ControlValueAccessor, FormControl, FormGroup, ValidatorFn, ControlContainer, NgControl, UntypedFormGroup, AbstractControl, ValidationErrors, UntypedFormControl } from '@angular/forms';
|
|
7
|
+
import * as i1 from '@angular/common';
|
|
8
|
+
import { DatePipe } from '@angular/common';
|
|
9
|
+
import { MaskitoOptions } from '@maskito/core';
|
|
10
|
+
import { Dayjs } from 'dayjs';
|
|
11
|
+
import { HttpBackend, HttpClient } from '@angular/common/http';
|
|
12
|
+
import * as i2 from '@jsverse/transloco';
|
|
13
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
14
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
15
|
+
|
|
16
|
+
declare class AccordionComponent {
|
|
17
|
+
readonly accordionClassName = true;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "teta-accordion", never, {}, {}, never, ["*"], true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class AccordionContentDirective {
|
|
23
|
+
template: TemplateRef<any>;
|
|
24
|
+
constructor(template: TemplateRef<any>);
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionContentDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionContentDirective, "[tetaAccordionContent]", never, {}, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type viewType = 'brick' | 'rounded' | 'circle';
|
|
30
|
+
|
|
31
|
+
declare class AccordionItemComponent {
|
|
32
|
+
accordion: AccordionComponent;
|
|
33
|
+
private cdr$;
|
|
34
|
+
content?: AccordionContentDirective;
|
|
35
|
+
open: boolean;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
readonly accordionItemClass = true;
|
|
38
|
+
divider: boolean;
|
|
39
|
+
get dividerClass(): boolean;
|
|
40
|
+
viewType: viewType;
|
|
41
|
+
get class(): string;
|
|
42
|
+
private readonly accordion$;
|
|
43
|
+
constructor();
|
|
44
|
+
toggle(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "teta-accordion-item", never, { "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; }, {}, ["content"], ["teta-accordion-head"], true, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class AccordionHeadComponent implements OnInit {
|
|
50
|
+
accordionItem: AccordionItemComponent;
|
|
51
|
+
readonly accordionHeadClass = true;
|
|
52
|
+
showToggle: boolean;
|
|
53
|
+
private readonly accordionItem$;
|
|
54
|
+
constructor();
|
|
55
|
+
toggle(): void;
|
|
56
|
+
get open(): boolean;
|
|
57
|
+
get disabled(): boolean;
|
|
58
|
+
ngOnInit(): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionHeadComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionHeadComponent, "teta-accordion-head", never, { "showToggle": { "alias": "showToggle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare enum AvatarColorEnum {
|
|
64
|
+
vibrant = 0,
|
|
65
|
+
nebula = 1,
|
|
66
|
+
gorgonzola = 2,
|
|
67
|
+
lagoon = 3,
|
|
68
|
+
lime = 4,
|
|
69
|
+
pumpkin = 5,
|
|
70
|
+
vanity = 6,
|
|
71
|
+
navy = 7,
|
|
72
|
+
turquoise = 8,
|
|
73
|
+
greyish = 9,
|
|
74
|
+
heart = 10,
|
|
75
|
+
gloomy = 11,
|
|
76
|
+
rockman = 12,
|
|
77
|
+
hair = 13,
|
|
78
|
+
cerise = 14,
|
|
79
|
+
iris = 15,
|
|
80
|
+
caribbean = 16,
|
|
81
|
+
poisonous = 17
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class AvatarComponent implements OnInit {
|
|
85
|
+
photo?: string | ArrayBuffer;
|
|
86
|
+
name?: string;
|
|
87
|
+
id?: number;
|
|
88
|
+
viewType?: viewType;
|
|
89
|
+
size?: '24' | '28' | '32' | '44' | '64' | '128' | '200';
|
|
90
|
+
get avatar(): string;
|
|
91
|
+
colorMap: Map<AvatarColorEnum, string>;
|
|
92
|
+
constructor();
|
|
93
|
+
ngOnInit(): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "teta-avatar", never, { "photo": { "alias": "photo"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare class AutocompleteComponent implements OnInit {
|
|
99
|
+
constructor();
|
|
100
|
+
ngOnInit(): void;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "teta-autocomplete", never, {}, {}, never, never, true, never>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare enum TetaSize {
|
|
106
|
+
XS = 0,
|
|
107
|
+
S = 1,
|
|
108
|
+
M = 2,
|
|
109
|
+
L = 3,
|
|
110
|
+
XL = 4
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type ButtonViewType = 'primary' | 'outline' | 'ghost';
|
|
114
|
+
declare class ButtonComponent {
|
|
115
|
+
palette: string;
|
|
116
|
+
class: any;
|
|
117
|
+
view: ButtonViewType;
|
|
118
|
+
square: boolean;
|
|
119
|
+
viewType: viewType;
|
|
120
|
+
size: TetaSize;
|
|
121
|
+
private get getClass();
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[teta-button], teta-button", never, { "palette": { "alias": "palette"; "required": false; }; "class": { "alias": "class"; "required": false; }; "view": { "alias": "view"; "required": false; }; "square": { "alias": "square"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface Base3dPoint {
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
z: number;
|
|
130
|
+
md?: number;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare class Series3d<T extends Base3dPoint> {
|
|
134
|
+
name?: string;
|
|
135
|
+
color?: string;
|
|
136
|
+
points: T[];
|
|
137
|
+
constructor(options?: {
|
|
138
|
+
name?: string;
|
|
139
|
+
color?: string;
|
|
140
|
+
points: T[];
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class Chart3dOptions {
|
|
145
|
+
axes?: {
|
|
146
|
+
min?: number;
|
|
147
|
+
max?: number;
|
|
148
|
+
};
|
|
149
|
+
unit?: string;
|
|
150
|
+
series: Series3d<Base3dPoint>[];
|
|
151
|
+
constructor(options?: Chart3dOptions);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare class ThemeSwitchService {
|
|
155
|
+
theme: Observable<boolean>;
|
|
156
|
+
private theme$;
|
|
157
|
+
constructor();
|
|
158
|
+
switchTheme(): void;
|
|
159
|
+
saveTheme(value: boolean): void;
|
|
160
|
+
restoreTheme(): boolean;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeSwitchService, never>;
|
|
162
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeSwitchService>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface WellMeshData {
|
|
166
|
+
mesh: THREE.Mesh;
|
|
167
|
+
series: Series3d<Base3dPoint>;
|
|
168
|
+
scale: {
|
|
169
|
+
x: any;
|
|
170
|
+
y: any;
|
|
171
|
+
z: any;
|
|
172
|
+
};
|
|
173
|
+
curve: THREE.CatmullRomCurve3;
|
|
174
|
+
points: Base3dPoint[];
|
|
175
|
+
}
|
|
176
|
+
interface IntersectionResult {
|
|
177
|
+
wellData: WellMeshData;
|
|
178
|
+
intersectionPoint: THREE.Vector3;
|
|
179
|
+
closestCurvePoint: THREE.Vector3;
|
|
180
|
+
closestDataPoint: Base3dPoint;
|
|
181
|
+
md: number;
|
|
182
|
+
tvd: number;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare class Chart3dTooltipService {
|
|
186
|
+
private _raycaster;
|
|
187
|
+
private _mouse;
|
|
188
|
+
findClosestPointOnCurveLocal(point: THREE.Vector3, curve: THREE.CatmullRomCurve3): THREE.Vector3;
|
|
189
|
+
constructor();
|
|
190
|
+
findIntersection(event: MouseEvent, canvas: HTMLCanvasElement, camera: THREE.Camera, wellMeshes: WellMeshData[]): IntersectionResult | null;
|
|
191
|
+
private findClosestPointOnCurveToRay;
|
|
192
|
+
private findClosestDataPoint;
|
|
193
|
+
private calculateTVD;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Chart3dTooltipService, never>;
|
|
195
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Chart3dTooltipService>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare class Chart3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
199
|
+
private _elementRef;
|
|
200
|
+
private _themeService;
|
|
201
|
+
private _cdr;
|
|
202
|
+
private _tooltipService;
|
|
203
|
+
canvasRef: ElementRef;
|
|
204
|
+
tooltipRef: ElementRef;
|
|
205
|
+
private _scene;
|
|
206
|
+
private _camera;
|
|
207
|
+
private _renderer;
|
|
208
|
+
private _controls;
|
|
209
|
+
private _obs;
|
|
210
|
+
private _config;
|
|
211
|
+
private _animationFrameId;
|
|
212
|
+
private SIDE_SIZE;
|
|
213
|
+
private gridColor;
|
|
214
|
+
private axesColor;
|
|
215
|
+
private _alive;
|
|
216
|
+
tooltipVisible: boolean;
|
|
217
|
+
tooltipX: number;
|
|
218
|
+
tooltipY: number;
|
|
219
|
+
tooltipWellName: string;
|
|
220
|
+
tooltipMD: string;
|
|
221
|
+
tooltipTVD: string;
|
|
222
|
+
tooltipUnit: string;
|
|
223
|
+
private _wellMeshes;
|
|
224
|
+
private _tooltipMarker;
|
|
225
|
+
private _mouseMoveHandler;
|
|
226
|
+
private _mouseLeaveHandler;
|
|
227
|
+
constructor(_elementRef: ElementRef, _themeService: ThemeSwitchService, _cdr: ChangeDetectorRef, _tooltipService: Chart3dTooltipService);
|
|
228
|
+
set config(config: Chart3dOptions);
|
|
229
|
+
get config(): Chart3dOptions;
|
|
230
|
+
private get canvas();
|
|
231
|
+
ngOnInit(): void;
|
|
232
|
+
ngAfterViewInit(): void;
|
|
233
|
+
ngOnDestroy(): void;
|
|
234
|
+
private init;
|
|
235
|
+
private createScene;
|
|
236
|
+
private setSize;
|
|
237
|
+
private render;
|
|
238
|
+
private startRenderingLoop;
|
|
239
|
+
private addResizeObserver;
|
|
240
|
+
private removeResizeObserver;
|
|
241
|
+
private makeSprite;
|
|
242
|
+
private drawTicks;
|
|
243
|
+
private getScales;
|
|
244
|
+
private addMouseMoveListener;
|
|
245
|
+
private handleMouseMove;
|
|
246
|
+
private showTooltip;
|
|
247
|
+
private hideTooltip;
|
|
248
|
+
private removeMouseListeners;
|
|
249
|
+
private disposeThreeResources;
|
|
250
|
+
private updateTooltipMarker;
|
|
251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Chart3dComponent, never>;
|
|
252
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Chart3dComponent, "teta-chart3d", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
declare const CHECKBOX_CONTROL_VALUE_ACCESSOR: any;
|
|
256
|
+
declare class CheckboxComponent implements ControlValueAccessor, OnInit {
|
|
257
|
+
private cdr;
|
|
258
|
+
tabindex: number;
|
|
259
|
+
class: any;
|
|
260
|
+
private get getClass();
|
|
261
|
+
palette: string;
|
|
262
|
+
noLabel: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* компонент неактивен
|
|
265
|
+
*/
|
|
266
|
+
disabled: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* true/false или list
|
|
269
|
+
*/
|
|
270
|
+
value: any;
|
|
271
|
+
/**
|
|
272
|
+
* true/false или list
|
|
273
|
+
*/
|
|
274
|
+
binary: boolean;
|
|
275
|
+
labelPosition: 'left' | 'right';
|
|
276
|
+
allowNull: boolean;
|
|
277
|
+
checked: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Значение
|
|
280
|
+
*/
|
|
281
|
+
private model$;
|
|
282
|
+
get model(): any;
|
|
283
|
+
set model(v: any);
|
|
284
|
+
constructor(cdr: ChangeDetectorRef);
|
|
285
|
+
changeValue(): void;
|
|
286
|
+
writeValue(model: any): void;
|
|
287
|
+
isChecked(): boolean;
|
|
288
|
+
removeValue(): void;
|
|
289
|
+
addValue(): void;
|
|
290
|
+
ngOnInit(): void;
|
|
291
|
+
onChange(_: any): void;
|
|
292
|
+
onTouched(): void;
|
|
293
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
294
|
+
registerOnTouched(fn: () => void): void;
|
|
295
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
297
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "teta-checkbox", never, { "class": { "alias": "class"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "binary": { "alias": "binary"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
declare enum Align {
|
|
301
|
+
left = 0,
|
|
302
|
+
right = 1,
|
|
303
|
+
center = 2,
|
|
304
|
+
auto = 3,
|
|
305
|
+
fitWidth = 4,
|
|
306
|
+
minWidth = 5,
|
|
307
|
+
outerLeft = 6,
|
|
308
|
+
outerRight = 7,
|
|
309
|
+
outerAuto = 8
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare enum VerticalAlign {
|
|
313
|
+
top = 0,
|
|
314
|
+
bottom = 1,
|
|
315
|
+
center = 2,
|
|
316
|
+
auto = 3,
|
|
317
|
+
innerTop = 4,
|
|
318
|
+
innerBottom = 5,
|
|
319
|
+
innerAuto = 6
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
interface DateFromToModel {
|
|
323
|
+
from: Date | string | number;
|
|
324
|
+
to: Date | string | number;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface TetaLocalisation {
|
|
328
|
+
apply: string;
|
|
329
|
+
cancel: string;
|
|
330
|
+
clear: string;
|
|
331
|
+
dateRangeMask: string;
|
|
332
|
+
dateMask: string;
|
|
333
|
+
dateTimeMask: string;
|
|
334
|
+
pin: string;
|
|
335
|
+
unpin: string;
|
|
336
|
+
sortAsc: string;
|
|
337
|
+
sortDesc: string;
|
|
338
|
+
clearSort: string;
|
|
339
|
+
clearAllSort: string;
|
|
340
|
+
clearFilter: string;
|
|
341
|
+
clearAllFilters: string;
|
|
342
|
+
autosizeColumn: string;
|
|
343
|
+
autosizeAll: string;
|
|
344
|
+
resetColumnsSize: string;
|
|
345
|
+
from: string;
|
|
346
|
+
to: string;
|
|
347
|
+
all: string;
|
|
348
|
+
min: string;
|
|
349
|
+
max: string;
|
|
350
|
+
sum: string;
|
|
351
|
+
avg: string;
|
|
352
|
+
search: string;
|
|
353
|
+
selectYear: string;
|
|
354
|
+
selected: string;
|
|
355
|
+
notFound: string;
|
|
356
|
+
notSelected: string;
|
|
357
|
+
yes: string;
|
|
358
|
+
no: string;
|
|
359
|
+
months: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
360
|
+
days: [string, string, string, string, string, string, string];
|
|
361
|
+
daysShort: [string, string, string, string, string, string, string];
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare class TetaConfigService {
|
|
365
|
+
private defaultLocale;
|
|
366
|
+
private locale$;
|
|
367
|
+
locale: rxjs.Observable<TetaLocalisation>;
|
|
368
|
+
constructor();
|
|
369
|
+
setLocale(newLocale: TetaLocalisation): void;
|
|
370
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TetaConfigService, never>;
|
|
371
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TetaConfigService>;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare abstract class BasePicker {
|
|
375
|
+
protected _elementRef: ElementRef<any>;
|
|
376
|
+
protected _cdr: ChangeDetectorRef;
|
|
377
|
+
protected datePipe: DatePipe;
|
|
378
|
+
protected localeService: TetaConfigService;
|
|
379
|
+
abstract mask: string;
|
|
380
|
+
abstract date: any;
|
|
381
|
+
abstract locale: Observable<TetaLocalisation>;
|
|
382
|
+
abstract showTime: boolean;
|
|
383
|
+
abstract minDate: Date | string | number;
|
|
384
|
+
abstract maxDate: Date | string | number;
|
|
385
|
+
abstract invalid: boolean;
|
|
386
|
+
abstract disabled: boolean;
|
|
387
|
+
abstract align: Align;
|
|
388
|
+
abstract verticalAlign: VerticalAlign;
|
|
389
|
+
abstract viewType: viewType;
|
|
390
|
+
abstract appendToBody: boolean;
|
|
391
|
+
abstract backdrop: boolean;
|
|
392
|
+
abstract allowNull: boolean;
|
|
393
|
+
abstract input: ElementRef;
|
|
394
|
+
abstract selectDate: EventEmitter<Date> | EventEmitter<DateFromToModel>;
|
|
395
|
+
open: boolean;
|
|
396
|
+
abstract selectedDate: ReplaySubject<any>;
|
|
397
|
+
placeholder: string;
|
|
398
|
+
inputText: string;
|
|
399
|
+
maskitoOptions: MaskitoOptions;
|
|
400
|
+
protected constructor();
|
|
401
|
+
abstract onChange(date: Date): any;
|
|
402
|
+
abstract prepareInput(): any;
|
|
403
|
+
abstract onBlur(): any;
|
|
404
|
+
abstract setDate(date: any): any;
|
|
405
|
+
changeInput(v: any): void;
|
|
406
|
+
changePlaceholder(value: string): void;
|
|
407
|
+
openChange(e: boolean): void;
|
|
408
|
+
checkNull(): string;
|
|
409
|
+
openPicker: (show: boolean) => void;
|
|
410
|
+
changeSelectedDate(date: any, selectedDate?: any): void;
|
|
411
|
+
emitValue(value: any): void;
|
|
412
|
+
isValueChange(value: any): boolean;
|
|
413
|
+
checkEnter(e: any): void;
|
|
414
|
+
isAvailableLength(val: string, length: number): boolean;
|
|
415
|
+
getDateFromStr(str: string, separator?: string): {
|
|
416
|
+
day: number;
|
|
417
|
+
month: number;
|
|
418
|
+
year: number;
|
|
419
|
+
};
|
|
420
|
+
getTimeFromStr(str: string, separator?: string): {
|
|
421
|
+
hours: number;
|
|
422
|
+
mins: number;
|
|
423
|
+
};
|
|
424
|
+
focus(): void;
|
|
425
|
+
getLocaleString(date: Date | number | string): string;
|
|
426
|
+
getAvailableDate(min: Date | number | string, max: Date | number | string, date: Date | number | string): Date;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare class DatePeriod {
|
|
430
|
+
start: Date;
|
|
431
|
+
end: Date;
|
|
432
|
+
constructor(start: Date, end: Date);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
declare const DATE_PICKER_CONTROL_VALUE_ACCESSOR: any;
|
|
436
|
+
declare class DatePickerComponent extends BasePicker implements OnInit, ControlValueAccessor, OnChanges {
|
|
437
|
+
date: Date | string | number;
|
|
438
|
+
locale: Observable<TetaLocalisation>;
|
|
439
|
+
showTime: boolean;
|
|
440
|
+
minDate: Date | string | number;
|
|
441
|
+
maxDate: Date | string | number;
|
|
442
|
+
invalid: boolean;
|
|
443
|
+
disabled: boolean;
|
|
444
|
+
align: Align;
|
|
445
|
+
verticalAlign: VerticalAlign;
|
|
446
|
+
viewType: viewType;
|
|
447
|
+
appendToBody: boolean;
|
|
448
|
+
backdrop: boolean;
|
|
449
|
+
allowNull: boolean;
|
|
450
|
+
open: boolean;
|
|
451
|
+
firstDayOfWeek: number;
|
|
452
|
+
disabledDates: Date[];
|
|
453
|
+
disabledPeriods: DatePeriod[];
|
|
454
|
+
disabledDays: number[];
|
|
455
|
+
minYearDate: Date;
|
|
456
|
+
maxYearDate: Date;
|
|
457
|
+
input: ElementRef;
|
|
458
|
+
selectDate: EventEmitter<Date>;
|
|
459
|
+
selectedDate: ReplaySubject<Date | string | number>;
|
|
460
|
+
mask: string;
|
|
461
|
+
readonly classDatepicker = true;
|
|
462
|
+
get dateTimeClass(): boolean;
|
|
463
|
+
readonly tabindex = 0;
|
|
464
|
+
constructor();
|
|
465
|
+
ngOnInit(): void;
|
|
466
|
+
prepareInput(isFirstRender?: boolean): Promise<void>;
|
|
467
|
+
onBlur(event?: FocusEvent): void;
|
|
468
|
+
setDate(date: any): void;
|
|
469
|
+
onChange(date: Date): void;
|
|
470
|
+
registerOnChange(fn: (date: Date) => any): void;
|
|
471
|
+
registerOnTouched(fn: any): void;
|
|
472
|
+
writeValue(obj: Date | string | number): void;
|
|
473
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
474
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
475
|
+
changeInput(v: any): void;
|
|
476
|
+
private updateCalendarSelection;
|
|
477
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
478
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "teta-date-picker", never, { "date": { "alias": "date"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "open": { "alias": "open"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "disabledPeriods": { "alias": "disabledPeriods"; "required": false; }; "disabledDays": { "alias": "disabledDays"; "required": false; }; "minYearDate": { "alias": "minYearDate"; "required": false; }; "maxYearDate": { "alias": "maxYearDate"; "required": false; }; }, { "selectDate": "selectDate"; }, never, never, true, never>;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare class DayModel {
|
|
482
|
+
disabled: boolean;
|
|
483
|
+
isCurrentMonth: boolean;
|
|
484
|
+
today: boolean;
|
|
485
|
+
selected: boolean;
|
|
486
|
+
date: Date;
|
|
487
|
+
weekend: boolean;
|
|
488
|
+
constructor(options?: {
|
|
489
|
+
disabled?: boolean;
|
|
490
|
+
isCurrentMonth?: boolean;
|
|
491
|
+
today?: boolean;
|
|
492
|
+
selected?: boolean;
|
|
493
|
+
date: Date;
|
|
494
|
+
weekend?: boolean;
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
interface MinMaxDateModel {
|
|
499
|
+
min: Date | string | number;
|
|
500
|
+
max: Date | string | number;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare abstract class BaseCalendar implements OnChanges, OnDestroy {
|
|
504
|
+
protected _cdr: ChangeDetectorRef;
|
|
505
|
+
abstract selectedDate: any;
|
|
506
|
+
abstract locale: TetaLocalisation;
|
|
507
|
+
abstract open: boolean;
|
|
508
|
+
abstract viewType: viewType;
|
|
509
|
+
abstract min: Date | string | number;
|
|
510
|
+
abstract isDateNull: boolean;
|
|
511
|
+
abstract max: Date | string | number;
|
|
512
|
+
abstract setDate: EventEmitter<Date>;
|
|
513
|
+
currentMonth: ReplaySubject<number>;
|
|
514
|
+
minMax: ReplaySubject<MinMaxDateModel>;
|
|
515
|
+
currentYear: ReplaySubject<number>;
|
|
516
|
+
selectedPicker: BehaviorSubject<'day' | 'month' | 'year'>;
|
|
517
|
+
abstract calendar: DayModel[] | {
|
|
518
|
+
currentMonth: DayModel[];
|
|
519
|
+
nextMonth: DayModel[];
|
|
520
|
+
};
|
|
521
|
+
alive: boolean;
|
|
522
|
+
protected constructor(_cdr: ChangeDetectorRef);
|
|
523
|
+
generateCalendar(selectedDate: Dayjs, year: number, month: number, minMax: MinMaxDateModel): DayModel[];
|
|
524
|
+
isSuitableMinDate(d: Date, minDate: Date | string | number): boolean;
|
|
525
|
+
isSuitableMaxDate(d: Date, maxDate: Date | string | number): boolean;
|
|
526
|
+
isSelected(date: Date, selectedDate: Date): boolean;
|
|
527
|
+
ngOnDestroy(): void;
|
|
528
|
+
selectPicker(entity: 'day' | 'month' | 'year'): void;
|
|
529
|
+
selectMonth(month: number): void;
|
|
530
|
+
selectYear(year: number): void;
|
|
531
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
532
|
+
changeCalendarData(selectedDate: Date | number | string): void;
|
|
533
|
+
setYear(year: number): void;
|
|
534
|
+
changeMonth(month: number, year: number): void;
|
|
535
|
+
getAvailableMonthYear(month: number, year: number): {
|
|
536
|
+
availableMonth: number;
|
|
537
|
+
availableYear: number;
|
|
538
|
+
};
|
|
539
|
+
getMothName(month: number): string;
|
|
540
|
+
selectDate(date: Date): void;
|
|
541
|
+
scrollMonth: (e: any, month: number, year: number) => void;
|
|
542
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseCalendar, never>;
|
|
543
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseCalendar, "ng-component", never, {}, {}, never, never, false, never>;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
declare class DateCalendarComponent extends BaseCalendar implements OnChanges, OnDestroy {
|
|
547
|
+
_cdr: ChangeDetectorRef;
|
|
548
|
+
selectedDate: Date | string | number;
|
|
549
|
+
open: boolean;
|
|
550
|
+
locale: TetaLocalisation;
|
|
551
|
+
viewType: viewType;
|
|
552
|
+
min: Date | string | number;
|
|
553
|
+
isDateNull: boolean;
|
|
554
|
+
max: Date | string | number;
|
|
555
|
+
setDate: EventEmitter<Date>;
|
|
556
|
+
calendar: DayModel[];
|
|
557
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
558
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateCalendarComponent, never>;
|
|
559
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateCalendarComponent, "teta-date-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "open": { "alias": "open"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "min": { "alias": "min"; "required": false; }; "isDateNull": { "alias": "isDateNull"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "setDate": "setDate"; }, never, never, true, never>;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare const DATE_Range_CONTROL_VALUE_ACCESSOR: any;
|
|
563
|
+
declare class DateRangeComponent extends BasePicker implements OnInit, ControlValueAccessor {
|
|
564
|
+
date: DateFromToModel;
|
|
565
|
+
locale: Observable<TetaLocalisation>;
|
|
566
|
+
showTime: boolean;
|
|
567
|
+
minDate: Date | string | number;
|
|
568
|
+
maxDate: Date | string | number;
|
|
569
|
+
invalid: boolean;
|
|
570
|
+
disabled: boolean;
|
|
571
|
+
align: Align;
|
|
572
|
+
verticalAlign: VerticalAlign;
|
|
573
|
+
viewType: viewType;
|
|
574
|
+
appendToBody: boolean;
|
|
575
|
+
backdrop: boolean;
|
|
576
|
+
allowNull: boolean;
|
|
577
|
+
input: ElementRef;
|
|
578
|
+
selectDate: EventEmitter<DateFromToModel>;
|
|
579
|
+
mask: string;
|
|
580
|
+
selectedDate: ReplaySubject<DateFromToModel>;
|
|
581
|
+
readonly classDaterange = true;
|
|
582
|
+
constructor();
|
|
583
|
+
changeSelectedDate(date: Date, selectedDate: DateFromToModel): void;
|
|
584
|
+
checkNull(): string;
|
|
585
|
+
prepareInput(): Promise<void>;
|
|
586
|
+
onBlur(): void;
|
|
587
|
+
setDate(range: DateFromToModel): void;
|
|
588
|
+
writeValue(obj: DateFromToModel): void;
|
|
589
|
+
isValueChange(value: any): boolean;
|
|
590
|
+
registerOnChange(fn: any): void;
|
|
591
|
+
registerOnTouched(fn: any): void;
|
|
592
|
+
ngOnInit(): void;
|
|
593
|
+
onChange(date: any): void;
|
|
594
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeComponent, never>;
|
|
595
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "teta-date-range", never, { "date": { "alias": "date"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; }, { "selectDate": "selectDate"; }, never, never, true, never>;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
declare class RangeCalendarComponent extends BaseCalendar implements OnChanges, OnDestroy {
|
|
599
|
+
_cdr: ChangeDetectorRef;
|
|
600
|
+
locale: TetaLocalisation;
|
|
601
|
+
open: boolean;
|
|
602
|
+
date: DateFromToModel;
|
|
603
|
+
viewType: viewType;
|
|
604
|
+
allowNull: boolean;
|
|
605
|
+
selectedDate: DateFromToModel;
|
|
606
|
+
min: Date | string | number;
|
|
607
|
+
isDateNull: boolean;
|
|
608
|
+
max: Date | string | number;
|
|
609
|
+
hoveredDateChange: EventEmitter<Date>;
|
|
610
|
+
setDate: EventEmitter<Date>;
|
|
611
|
+
calendar: {
|
|
612
|
+
currentMonth: DayModel[];
|
|
613
|
+
nextMonth: DayModel[];
|
|
614
|
+
};
|
|
615
|
+
_hoveredDate: Date;
|
|
616
|
+
get hoveredDate(): Date;
|
|
617
|
+
set hoveredDate(e: Date);
|
|
618
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
619
|
+
getFromTo(): {
|
|
620
|
+
from: any;
|
|
621
|
+
to: any;
|
|
622
|
+
};
|
|
623
|
+
isSelected(d: Date, selectedDate: Date): boolean;
|
|
624
|
+
checkSelected(date: Date, selectedDate: Date): boolean;
|
|
625
|
+
isFirstDaySuitable(m: number, y: number, max: string | number | Date): boolean;
|
|
626
|
+
isLastDaySuitable(m: number, y: number, min: string | number | Date): boolean;
|
|
627
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
628
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeCalendarComponent, never>;
|
|
629
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RangeCalendarComponent, "teta-range-calendar", never, { "locale": { "alias": "locale"; "required": false; }; "open": { "alias": "open"; "required": false; }; "date": { "alias": "date"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "min": { "alias": "min"; "required": false; }; "isDateNull": { "alias": "isDateNull"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "hoveredDateChange": "hoveredDateChange"; "setDate": "setDate"; }, never, never, true, never>;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
declare enum DatePickerMode {
|
|
633
|
+
date = 0,
|
|
634
|
+
month = 1,
|
|
635
|
+
year = 2
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
declare class DelimiterComponent implements OnInit {
|
|
639
|
+
direction: 'vertical' | 'horizontal';
|
|
640
|
+
palette: string;
|
|
641
|
+
height: number;
|
|
642
|
+
verticalMargin: number;
|
|
643
|
+
horizontalMargin: number;
|
|
644
|
+
class: any;
|
|
645
|
+
private get getClass();
|
|
646
|
+
private get getHeight();
|
|
647
|
+
private get getWidth();
|
|
648
|
+
private get getMargin();
|
|
649
|
+
constructor();
|
|
650
|
+
getBgColor(): string;
|
|
651
|
+
ngOnInit(): void;
|
|
652
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DelimiterComponent, never>;
|
|
653
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DelimiterComponent, "teta-delimiter", never, { "direction": { "alias": "direction"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "height": { "alias": "height"; "required": false; }; "verticalMargin": { "alias": "verticalMargin"; "required": false; }; "horizontalMargin": { "alias": "horizontalMargin"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
type AutoCloseIgnoreCase = 'esc' | 'enter' | 'inside' | 'outside';
|
|
657
|
+
|
|
658
|
+
declare class DropdownContentDirective {
|
|
659
|
+
private _elementRef;
|
|
660
|
+
nativeElement: HTMLElement;
|
|
661
|
+
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
662
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContentDirective, never>;
|
|
663
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownContentDirective, "[tetaDropdownContent]", never, {}, {}, never, never, true, never>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare class DropdownBase {
|
|
667
|
+
protected _cdr: ChangeDetectorRef;
|
|
668
|
+
protected _document: any;
|
|
669
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
670
|
+
protected _zone: NgZone;
|
|
671
|
+
protected _renderer: Renderer2;
|
|
672
|
+
align: Align;
|
|
673
|
+
verticalAlign: VerticalAlign;
|
|
674
|
+
appendToBody: boolean;
|
|
675
|
+
disabled: boolean;
|
|
676
|
+
backdrop: boolean;
|
|
677
|
+
className: string | string[];
|
|
678
|
+
viewType: viewType;
|
|
679
|
+
set open(val: boolean);
|
|
680
|
+
get open(): boolean;
|
|
681
|
+
get container(): any;
|
|
682
|
+
openChange: EventEmitter<boolean>;
|
|
683
|
+
autoClose: boolean;
|
|
684
|
+
autoCloseIgnore: Array<AutoCloseIgnoreCase>;
|
|
685
|
+
protected _head: ElementRef;
|
|
686
|
+
protected _content: DropdownContentDirective;
|
|
687
|
+
protected _body: HTMLElement | null;
|
|
688
|
+
protected _backdrop: HTMLElement | null;
|
|
689
|
+
protected _open: boolean;
|
|
690
|
+
protected _alive: boolean;
|
|
691
|
+
constructor(_cdr: ChangeDetectorRef, _document: any, _elementRef: ElementRef<HTMLElement>, _zone: NgZone, _renderer: Renderer2);
|
|
692
|
+
click(event: MouseEvent): void;
|
|
693
|
+
documentClick(event: MouseEvent): void;
|
|
694
|
+
keyUp(event: KeyboardEvent): void;
|
|
695
|
+
protected addScrollListener(): void;
|
|
696
|
+
protected removeScrollListener(): void;
|
|
697
|
+
private scrollListener;
|
|
698
|
+
protected closeDropdown(): void;
|
|
699
|
+
private openDropdown;
|
|
700
|
+
private setPosition;
|
|
701
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownBase, never>;
|
|
702
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownBase, never, never, { "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "className": { "alias": "className"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "open": { "alias": "open"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "autoCloseIgnore": { "alias": "autoCloseIgnore"; "required": false; }; }, { "openChange": "openChange"; }, ["_head", "_content"], never, true, never>;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
declare class DropdownComponent extends DropdownBase implements OnInit, OnDestroy {
|
|
706
|
+
protected _cdr: ChangeDetectorRef;
|
|
707
|
+
protected _document: any;
|
|
708
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
709
|
+
protected _zone: NgZone;
|
|
710
|
+
protected _renderer: Renderer2;
|
|
711
|
+
constructor(_cdr: ChangeDetectorRef, _document: any, _elementRef: ElementRef<HTMLElement>, _zone: NgZone, _renderer: Renderer2);
|
|
712
|
+
ngOnInit(): void;
|
|
713
|
+
ngOnDestroy(): void;
|
|
714
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
715
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "teta-dropdown", ["dropdown"], {}, {}, never, ["[tetaDropdownHead]"], true, never>;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
declare class DropdownHeadDirective {
|
|
719
|
+
template: TemplateRef<any>;
|
|
720
|
+
constructor(template: TemplateRef<any>);
|
|
721
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownHeadDirective, [{ optional: true; }]>;
|
|
722
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownHeadDirective, "[tetaDropdownHead]", never, {}, {}, never, never, true, never>;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare class DropdownDirective extends DropdownBase implements OnInit, OnDestroy, AfterViewInit {
|
|
726
|
+
protected _cdr: ChangeDetectorRef;
|
|
727
|
+
protected _document: any;
|
|
728
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
729
|
+
protected _zone: NgZone;
|
|
730
|
+
protected _renderer: Renderer2;
|
|
731
|
+
constructor(_cdr: ChangeDetectorRef, _document: any, _elementRef: ElementRef<HTMLElement>, _zone: NgZone, _renderer: Renderer2);
|
|
732
|
+
ngOnInit(): void;
|
|
733
|
+
ngOnDestroy(): void;
|
|
734
|
+
ngAfterViewInit(): void;
|
|
735
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, never>;
|
|
736
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[tetaDropdown]", never, {}, {}, never, never, true, never>;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
declare class PopupContentComponent implements OnInit, OnDestroy {
|
|
740
|
+
dialog: boolean;
|
|
741
|
+
className: string | string[];
|
|
742
|
+
private get getClass();
|
|
743
|
+
constructor();
|
|
744
|
+
addClass(className: string): void;
|
|
745
|
+
ngOnInit(): void;
|
|
746
|
+
ngOnDestroy(): void;
|
|
747
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupContentComponent, never>;
|
|
748
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupContentComponent, "teta-popup-content", never, { "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
declare class ExpandCardComponent implements OnInit {
|
|
752
|
+
open: boolean;
|
|
753
|
+
openChange: EventEmitter<boolean>;
|
|
754
|
+
showCross: boolean;
|
|
755
|
+
crossClick: EventEmitter<MouseEvent>;
|
|
756
|
+
constructor();
|
|
757
|
+
ngOnInit(): void;
|
|
758
|
+
setOpen(): void;
|
|
759
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandCardComponent, never>;
|
|
760
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandCardComponent, "teta-expand-card", ["expand-card"], { "open": { "alias": "open"; "required": false; }; "showCross": { "alias": "showCross"; "required": false; }; }, { "openChange": "openChange"; "crossClick": "crossClick"; }, never, ["head", "*"], true, never>;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
declare class ExpandItemComponent {
|
|
764
|
+
open: boolean;
|
|
765
|
+
openChange: EventEmitter<boolean>;
|
|
766
|
+
setOpen(): void;
|
|
767
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandItemComponent, never>;
|
|
768
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandItemComponent, "teta-expand-item", ["expand-item"], { "open": { "alias": "open"; "required": false; }; }, { "openChange": "openChange"; }, never, ["head", "*"], true, never>;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
declare class ExpandPanelContentDirective {
|
|
772
|
+
template: TemplateRef<any>;
|
|
773
|
+
constructor(template: TemplateRef<any>);
|
|
774
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandPanelContentDirective, never>;
|
|
775
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandPanelContentDirective, "[tetaExpandPanelContent]", never, {}, {}, never, never, true, never>;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
declare class ExpandPanelHeadDirective {
|
|
779
|
+
template: TemplateRef<any>;
|
|
780
|
+
constructor(template: TemplateRef<any>);
|
|
781
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandPanelHeadDirective, never>;
|
|
782
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandPanelHeadDirective, "[tetaExpandPanelHead]", never, {}, {}, never, never, true, never>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
declare class ExpandPanelComponent implements OnInit {
|
|
786
|
+
content: ExpandPanelContentDirective;
|
|
787
|
+
head: ExpandPanelHeadDirective;
|
|
788
|
+
placeholder: string;
|
|
789
|
+
open: boolean;
|
|
790
|
+
openChange: EventEmitter<boolean>;
|
|
791
|
+
cookieName: string;
|
|
792
|
+
direction: 'left' | 'right';
|
|
793
|
+
constructor();
|
|
794
|
+
openPanel(): void;
|
|
795
|
+
closePanel(): void;
|
|
796
|
+
ngOnInit(): void;
|
|
797
|
+
private saveCookie;
|
|
798
|
+
private restoreCookie;
|
|
799
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandPanelComponent, never>;
|
|
800
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandPanelComponent, "teta-expand-panel", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "open": { "alias": "open"; "required": false; }; "cookieName": { "alias": "cookieName"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, { "openChange": "openChange"; }, ["content", "head"], never, true, never>;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
declare class FileUploadAreaComponent {
|
|
804
|
+
fileUpload: boolean;
|
|
805
|
+
get fileUploadActive(): boolean;
|
|
806
|
+
multiple: boolean;
|
|
807
|
+
disabled: boolean;
|
|
808
|
+
accept: string[];
|
|
809
|
+
upload: EventEmitter<FileList>;
|
|
810
|
+
input?: ElementRef;
|
|
811
|
+
buttonTemplate?: TemplateRef<any>;
|
|
812
|
+
files: any;
|
|
813
|
+
private _asActive;
|
|
814
|
+
dragEnter(event: DragEvent): void;
|
|
815
|
+
dragOver(event: DragEvent): void;
|
|
816
|
+
dragLeave(event: DragEvent): void;
|
|
817
|
+
drop(event: DragEvent): void;
|
|
818
|
+
fileChanged(event: any): void;
|
|
819
|
+
private preventDefaults;
|
|
820
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadAreaComponent, never>;
|
|
821
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadAreaComponent, "teta-file-upload-area", never, { "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "upload": "upload"; }, ["buttonTemplate"], ["*"], true, never>;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare class FileItemComponent implements OnInit {
|
|
825
|
+
constructor();
|
|
826
|
+
ngOnInit(): void;
|
|
827
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileItemComponent, never>;
|
|
828
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileItemComponent, "teta-file-item", never, {}, {}, never, never, true, never>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
declare class DateFilterValue {
|
|
832
|
+
/**
|
|
833
|
+
* Значение должно быть меньше чем
|
|
834
|
+
*/
|
|
835
|
+
lessThan: Date | undefined | null;
|
|
836
|
+
/**
|
|
837
|
+
* Значение должно быть больше чем
|
|
838
|
+
*/
|
|
839
|
+
greaterThan: Date | undefined | null;
|
|
840
|
+
constructor(options?: {
|
|
841
|
+
lessThan?: Date | undefined | null;
|
|
842
|
+
greaterThan?: Date | undefined | null;
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
interface IFilter<T> {
|
|
847
|
+
name: string;
|
|
848
|
+
field: string;
|
|
849
|
+
value: T;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
declare class FilterBase<T> implements IFilter<T> {
|
|
853
|
+
field: string;
|
|
854
|
+
name: string;
|
|
855
|
+
value: T;
|
|
856
|
+
constructor(options?: {
|
|
857
|
+
field: string;
|
|
858
|
+
name: string;
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
declare class DateFilter extends FilterBase<DateFilterValue> {
|
|
863
|
+
constructor(options?: {
|
|
864
|
+
value?: DateFilterValue;
|
|
865
|
+
field: string;
|
|
866
|
+
name: string;
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
declare enum StringFilterType {
|
|
871
|
+
/**
|
|
872
|
+
* Строгое совпадение
|
|
873
|
+
*/
|
|
874
|
+
Equals = 1,
|
|
875
|
+
/**
|
|
876
|
+
* Начинается с указанной подстроки
|
|
877
|
+
*/
|
|
878
|
+
StartsWith = 2,
|
|
879
|
+
/**
|
|
880
|
+
* Оканчивается указанной подстрокой
|
|
881
|
+
*/
|
|
882
|
+
EndsWith = 3,
|
|
883
|
+
/**
|
|
884
|
+
* Содержит указанную подстроку
|
|
885
|
+
*/
|
|
886
|
+
Contains = 4
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
declare class StringFilter extends FilterBase<string> {
|
|
890
|
+
type: StringFilterType;
|
|
891
|
+
constructor(options?: {
|
|
892
|
+
value?: string;
|
|
893
|
+
type?: StringFilterType;
|
|
894
|
+
field: string;
|
|
895
|
+
name: string;
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
declare class NumericFilterValue {
|
|
900
|
+
/**
|
|
901
|
+
* Значение должно быть меньше чем
|
|
902
|
+
*/
|
|
903
|
+
lessThan: number | null | undefined;
|
|
904
|
+
/**
|
|
905
|
+
* Значение должно быть больше чем
|
|
906
|
+
*/
|
|
907
|
+
greaterThan: number | null | undefined;
|
|
908
|
+
/**
|
|
909
|
+
* Значение должно быть равно
|
|
910
|
+
*/
|
|
911
|
+
equalsTo: number | null | undefined;
|
|
912
|
+
constructor(options?: {
|
|
913
|
+
lessThan?: number | null | undefined;
|
|
914
|
+
greaterThan?: number | null | undefined;
|
|
915
|
+
equalsTo?: number | null | undefined;
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
declare class NumericFilter extends FilterBase<NumericFilterValue> {
|
|
920
|
+
strict: boolean;
|
|
921
|
+
constructor(options?: {
|
|
922
|
+
value?: NumericFilterValue;
|
|
923
|
+
strict?: boolean;
|
|
924
|
+
field: string;
|
|
925
|
+
name: string;
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
declare enum ListFilterType {
|
|
930
|
+
None = 0,
|
|
931
|
+
Excluded = 1
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
declare class ListFilter extends FilterBase<any[]> {
|
|
935
|
+
type: ListFilterType;
|
|
936
|
+
constructor(options?: {
|
|
937
|
+
value?: any[];
|
|
938
|
+
type?: ListFilterType;
|
|
939
|
+
field: string;
|
|
940
|
+
name: string;
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare class SortParam {
|
|
945
|
+
/**
|
|
946
|
+
* Поле сортировки
|
|
947
|
+
*/
|
|
948
|
+
field: string;
|
|
949
|
+
/**
|
|
950
|
+
* Направление (true: Asc, false: Desc)
|
|
951
|
+
*/
|
|
952
|
+
asc: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* Порядок сортировки
|
|
955
|
+
*/
|
|
956
|
+
order: number;
|
|
957
|
+
/**
|
|
958
|
+
* Инициализация из анонимного объекта
|
|
959
|
+
*/
|
|
960
|
+
constructor(options?: {
|
|
961
|
+
field?: string;
|
|
962
|
+
asc?: boolean;
|
|
963
|
+
order?: number;
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
declare class BooleanFilter extends FilterBase<boolean> {
|
|
968
|
+
constructor(options?: {
|
|
969
|
+
value?: boolean;
|
|
970
|
+
field: string;
|
|
971
|
+
name: string;
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
declare class FilterState {
|
|
976
|
+
stringFilters: StringFilter[];
|
|
977
|
+
numericFilters: NumericFilter[];
|
|
978
|
+
dateFilters: DateFilter[];
|
|
979
|
+
listFilters: ListFilter[];
|
|
980
|
+
booleanFilters: BooleanFilter[];
|
|
981
|
+
sortParams: SortParam[];
|
|
982
|
+
constructor(options?: {
|
|
983
|
+
stringFilters?: any[];
|
|
984
|
+
booleanFilters?: any[];
|
|
985
|
+
numericFilters?: any[];
|
|
986
|
+
dateFilters?: any[];
|
|
987
|
+
listFilters?: any[];
|
|
988
|
+
sortParams?: any[];
|
|
989
|
+
});
|
|
990
|
+
static restore(cookie: string): any;
|
|
991
|
+
save(cookieName: string): void;
|
|
992
|
+
addListFilter(value: ListFilter): ListFilter;
|
|
993
|
+
addDateFilter(value: DateFilter): DateFilter;
|
|
994
|
+
addStringFilter(value: StringFilter): StringFilter;
|
|
995
|
+
addBooleanFilter(value: BooleanFilter): BooleanFilter;
|
|
996
|
+
addNumericFilter(value: NumericFilter): NumericFilter;
|
|
997
|
+
clear(): void;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
declare enum FilterType {
|
|
1001
|
+
string = 0,
|
|
1002
|
+
number = 1,
|
|
1003
|
+
date = 2,
|
|
1004
|
+
list = 3,
|
|
1005
|
+
boolean = 4,
|
|
1006
|
+
color = 5,
|
|
1007
|
+
custom = 6
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
interface IFilterItemOptions {
|
|
1011
|
+
sortOrder?: number;
|
|
1012
|
+
name?: string;
|
|
1013
|
+
caption?: string;
|
|
1014
|
+
hint?: string;
|
|
1015
|
+
sortable?: boolean;
|
|
1016
|
+
sortField?: string;
|
|
1017
|
+
filterable?: boolean;
|
|
1018
|
+
filterField?: string;
|
|
1019
|
+
filterType?: FilterType | null;
|
|
1020
|
+
stringFilterType?: StringFilterType;
|
|
1021
|
+
listFilterType?: ListFilterType;
|
|
1022
|
+
strict?: boolean;
|
|
1023
|
+
filterComponent?: any;
|
|
1024
|
+
columns?: FilterItem[];
|
|
1025
|
+
}
|
|
1026
|
+
declare class FilterItem {
|
|
1027
|
+
/**
|
|
1028
|
+
* Порядковый номер
|
|
1029
|
+
*/
|
|
1030
|
+
sortOrder: number;
|
|
1031
|
+
/**
|
|
1032
|
+
* Название столбца для заголовка таблицы
|
|
1033
|
+
*/
|
|
1034
|
+
caption: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Подсказка
|
|
1037
|
+
*/
|
|
1038
|
+
hint: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* Название столбца в строке результатов
|
|
1041
|
+
*/
|
|
1042
|
+
name: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* Возможность сортировать поле
|
|
1045
|
+
*/
|
|
1046
|
+
sortable: boolean;
|
|
1047
|
+
/**
|
|
1048
|
+
* Возможность фильтровать поле
|
|
1049
|
+
*/
|
|
1050
|
+
filterable: boolean;
|
|
1051
|
+
/**
|
|
1052
|
+
* Поле для сортировки
|
|
1053
|
+
*/
|
|
1054
|
+
sortField: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* Поле для фильтрации
|
|
1057
|
+
*/
|
|
1058
|
+
filterField: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* Тип фильтра
|
|
1061
|
+
*/
|
|
1062
|
+
filterType: FilterType | null;
|
|
1063
|
+
/**
|
|
1064
|
+
* Тип сравнения строкового фильтра
|
|
1065
|
+
*/
|
|
1066
|
+
stringFilterType: StringFilterType;
|
|
1067
|
+
/**
|
|
1068
|
+
* Тип сравнения строкового фильтра
|
|
1069
|
+
*/
|
|
1070
|
+
listFilterType: ListFilterType;
|
|
1071
|
+
/**
|
|
1072
|
+
* Строгое сравнение
|
|
1073
|
+
*/
|
|
1074
|
+
strict: boolean;
|
|
1075
|
+
/**
|
|
1076
|
+
* Компонент для рендера фильтра
|
|
1077
|
+
*/
|
|
1078
|
+
filterComponent: any;
|
|
1079
|
+
/**
|
|
1080
|
+
* Дочерние элементы
|
|
1081
|
+
*/
|
|
1082
|
+
columns: FilterItem[];
|
|
1083
|
+
constructor(options?: IFilterItemOptions);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
interface IIdName<T> {
|
|
1087
|
+
[key: string]: any;
|
|
1088
|
+
id: T;
|
|
1089
|
+
name: string;
|
|
1090
|
+
parentId?: T;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
declare abstract class FilterComponentBase<T> {
|
|
1094
|
+
abstract column: FilterItem;
|
|
1095
|
+
abstract state: FilterState;
|
|
1096
|
+
abstract data: T[];
|
|
1097
|
+
abstract filterOptions: IIdName<any>[];
|
|
1098
|
+
abstract filterChanged: EventEmitter<IFilter<any>>;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
declare class DateFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
|
|
1102
|
+
private changeDetector;
|
|
1103
|
+
private _config;
|
|
1104
|
+
column: FilterItem;
|
|
1105
|
+
data: T[];
|
|
1106
|
+
filterOptions: IIdName<any>[];
|
|
1107
|
+
filterChanged: EventEmitter<FilterBase<DateFilterValue>>;
|
|
1108
|
+
filter: DateFilter;
|
|
1109
|
+
state$: FilterState;
|
|
1110
|
+
set state(val: FilterState);
|
|
1111
|
+
get state(): FilterState;
|
|
1112
|
+
locale: Observable<TetaLocalisation>;
|
|
1113
|
+
constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
|
|
1114
|
+
ngOnInit(): void;
|
|
1115
|
+
private getFilter;
|
|
1116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent<any>, never>;
|
|
1117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent<any>, "teta-date-filter", never, { "column": { "alias": "column"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
declare class ListFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
|
|
1121
|
+
private changeDetector;
|
|
1122
|
+
private _config;
|
|
1123
|
+
column: FilterItem;
|
|
1124
|
+
data: T[];
|
|
1125
|
+
filterOptions: IIdName<any>[];
|
|
1126
|
+
filterChanged: EventEmitter<FilterBase<any[]>>;
|
|
1127
|
+
filter: ListFilter;
|
|
1128
|
+
state$: FilterState;
|
|
1129
|
+
search: string;
|
|
1130
|
+
locale: Observable<TetaLocalisation>;
|
|
1131
|
+
get visibleOptions(): IIdName<any>[];
|
|
1132
|
+
set state(val: FilterState);
|
|
1133
|
+
get state(): FilterState;
|
|
1134
|
+
excluded: boolean;
|
|
1135
|
+
constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
|
|
1136
|
+
ngOnInit(): void;
|
|
1137
|
+
all(): boolean;
|
|
1138
|
+
setAll(value: boolean): void;
|
|
1139
|
+
setType(): void;
|
|
1140
|
+
setFilter(value: any[]): void;
|
|
1141
|
+
private getFilter;
|
|
1142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListFilterComponent<any>, never>;
|
|
1143
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListFilterComponent<any>, "teta-list-filter", never, { "column": { "alias": "column"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
declare class NumericFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
|
|
1147
|
+
private changeDetector;
|
|
1148
|
+
private _config;
|
|
1149
|
+
column: FilterItem;
|
|
1150
|
+
data: T[];
|
|
1151
|
+
filterOptions: IIdName<any>[];
|
|
1152
|
+
filterChanged: EventEmitter<FilterBase<NumericFilterValue>>;
|
|
1153
|
+
filter: NumericFilter;
|
|
1154
|
+
private state$;
|
|
1155
|
+
set state(val: FilterState);
|
|
1156
|
+
get state(): FilterState;
|
|
1157
|
+
locale: Observable<TetaLocalisation>;
|
|
1158
|
+
constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
|
|
1159
|
+
ngOnInit(): void;
|
|
1160
|
+
private getFilter;
|
|
1161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericFilterComponent<any>, never>;
|
|
1162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterComponent<any>, "teta-numeric-filter", never, { "column": { "alias": "column"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
declare class StringFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
|
|
1166
|
+
private changeDetector;
|
|
1167
|
+
private _config;
|
|
1168
|
+
column: FilterItem;
|
|
1169
|
+
data: T[];
|
|
1170
|
+
filterOptions: IIdName<any>[];
|
|
1171
|
+
filterChanged: EventEmitter<FilterBase<string>>;
|
|
1172
|
+
filter: StringFilter;
|
|
1173
|
+
state$: FilterState;
|
|
1174
|
+
set state(val: FilterState);
|
|
1175
|
+
get state(): FilterState;
|
|
1176
|
+
locale: Observable<TetaLocalisation>;
|
|
1177
|
+
constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
|
|
1178
|
+
ngOnInit(): void;
|
|
1179
|
+
setFilter(): void;
|
|
1180
|
+
private getFilter;
|
|
1181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringFilterComponent<any>, never>;
|
|
1182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringFilterComponent<any>, "teta-string-filter", never, { "column": { "alias": "column"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
declare class BooleanFilterComponent<T> extends FilterComponentBase<T> implements OnInit {
|
|
1186
|
+
private changeDetector;
|
|
1187
|
+
private _config;
|
|
1188
|
+
column: FilterItem;
|
|
1189
|
+
data: T[];
|
|
1190
|
+
filterOptions: IIdName<any>[];
|
|
1191
|
+
filterChanged: EventEmitter<FilterBase<boolean>>;
|
|
1192
|
+
filter: BooleanFilter;
|
|
1193
|
+
state$: FilterState;
|
|
1194
|
+
set state(val: FilterState);
|
|
1195
|
+
get state(): FilterState;
|
|
1196
|
+
locale: Observable<TetaLocalisation>;
|
|
1197
|
+
constructor(changeDetector: ChangeDetectorRef, _config: TetaConfigService);
|
|
1198
|
+
ngOnInit(): void;
|
|
1199
|
+
setFilter(): void;
|
|
1200
|
+
private getFilter;
|
|
1201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFilterComponent<any>, never>;
|
|
1202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanFilterComponent<any>, "teta-boolean-filter", never, { "column": { "alias": "column"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
declare class FilterHostComponent<T> implements OnInit, OnDestroy {
|
|
1206
|
+
private viewContainerRef;
|
|
1207
|
+
set column(val: FilterItem);
|
|
1208
|
+
set state(val: FilterState);
|
|
1209
|
+
set data(data: T[]);
|
|
1210
|
+
set filterOptions(val: IIdName<any>[]);
|
|
1211
|
+
filterChanged: EventEmitter<FilterBase<any>>;
|
|
1212
|
+
private _alive;
|
|
1213
|
+
private _column;
|
|
1214
|
+
private _state;
|
|
1215
|
+
private _data;
|
|
1216
|
+
private _filterOptions;
|
|
1217
|
+
private _componentRef;
|
|
1218
|
+
private _init;
|
|
1219
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
1220
|
+
ngOnInit(): void;
|
|
1221
|
+
ngOnDestroy(): void;
|
|
1222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterHostComponent<any>, never>;
|
|
1223
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterHostComponent<any>, "teta-filter-host", never, { "column": { "alias": "column"; "required": false; }; "state": { "alias": "state"; "required": false; }; "data": { "alias": "data"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
declare class IconService {
|
|
1227
|
+
protected _document: any;
|
|
1228
|
+
private _rendererFactory;
|
|
1229
|
+
private _httpBackend;
|
|
1230
|
+
private _http;
|
|
1231
|
+
private static _loaded;
|
|
1232
|
+
private static _pending;
|
|
1233
|
+
private _renderer;
|
|
1234
|
+
constructor(_document: any, _rendererFactory: RendererFactory2, _httpBackend: HttpBackend, _http: HttpClient);
|
|
1235
|
+
addSprite(url: string, bypassInterceptors?: boolean): void;
|
|
1236
|
+
private getSVG;
|
|
1237
|
+
private svgElementFromString;
|
|
1238
|
+
private cloneSVG;
|
|
1239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
1240
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
declare class IconSpriteDirective implements OnInit {
|
|
1244
|
+
private _iconService;
|
|
1245
|
+
tetaIconSprite: string | string[];
|
|
1246
|
+
bypassInterceptors: boolean;
|
|
1247
|
+
constructor(_iconService: IconService);
|
|
1248
|
+
ngOnInit(): void;
|
|
1249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconSpriteDirective, never>;
|
|
1250
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IconSpriteDirective, "[tetaIconSprite]", never, { "tetaIconSprite": { "alias": "tetaIconSprite"; "required": false; }; "bypassInterceptors": { "alias": "bypassInterceptors"; "required": false; }; }, {}, never, never, true, never>;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
declare class IconComponent {
|
|
1254
|
+
name: string;
|
|
1255
|
+
size: TetaSize;
|
|
1256
|
+
palette: string;
|
|
1257
|
+
class: any;
|
|
1258
|
+
private get getClass();
|
|
1259
|
+
getName(): string;
|
|
1260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
1261
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "teta-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
declare class IconFileComponent implements OnInit {
|
|
1265
|
+
name: string;
|
|
1266
|
+
class: any;
|
|
1267
|
+
private get getClass();
|
|
1268
|
+
constructor();
|
|
1269
|
+
ngOnInit(): void;
|
|
1270
|
+
getName(): string;
|
|
1271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconFileComponent, never>;
|
|
1272
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconFileComponent, "teta-icon-file", never, { "name": { "alias": "name"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
declare class ColorInputComponent implements ControlValueAccessor {
|
|
1276
|
+
private _cdr;
|
|
1277
|
+
private elementRef;
|
|
1278
|
+
disabled: boolean;
|
|
1279
|
+
input: ElementRef;
|
|
1280
|
+
value: string;
|
|
1281
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
1282
|
+
onFocus(): void;
|
|
1283
|
+
emitBlur(): void;
|
|
1284
|
+
registerOnChange(fn: any): void;
|
|
1285
|
+
registerOnTouched(fn: any): void;
|
|
1286
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
1287
|
+
writeValue(input: string): void;
|
|
1288
|
+
onChange(input: string): void;
|
|
1289
|
+
onTouched(): void;
|
|
1290
|
+
getHexColor(color: string): string;
|
|
1291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorInputComponent, never>;
|
|
1292
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorInputComponent, "teta-color-input", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
declare class InputComponent {
|
|
1296
|
+
label?: string;
|
|
1297
|
+
hint?: string;
|
|
1298
|
+
viewType: viewType;
|
|
1299
|
+
horizontal: boolean;
|
|
1300
|
+
required: boolean;
|
|
1301
|
+
get column(): boolean;
|
|
1302
|
+
align: typeof Align;
|
|
1303
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
1304
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "teta-input", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "horizontal": { "alias": "horizontal"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, ["*", "message"], true, never>;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
declare class TextFieldComponent implements ControlValueAccessor {
|
|
1308
|
+
private _cdr;
|
|
1309
|
+
placeholder: string;
|
|
1310
|
+
leftIconName?: string;
|
|
1311
|
+
disabled: boolean;
|
|
1312
|
+
onlyNumber: boolean;
|
|
1313
|
+
decimalPart: number;
|
|
1314
|
+
invalid: boolean;
|
|
1315
|
+
input: ElementRef;
|
|
1316
|
+
inputFocused: boolean;
|
|
1317
|
+
readonly textField = true;
|
|
1318
|
+
value: string;
|
|
1319
|
+
onFocus(): void;
|
|
1320
|
+
keyPress(event: KeyboardEvent): void;
|
|
1321
|
+
emitBlur(): void;
|
|
1322
|
+
registerOnChange(fn: any): void;
|
|
1323
|
+
registerOnTouched(fn: any): void;
|
|
1324
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
1325
|
+
writeValue(input: string): void;
|
|
1326
|
+
onChange(input: string): void;
|
|
1327
|
+
onTouched(): void;
|
|
1328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldComponent, never>;
|
|
1329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldComponent, "teta-text-field", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "leftIconName": { "alias": "leftIconName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "onlyNumber": { "alias": "onlyNumber"; "required": false; }; "decimalPart": { "alias": "decimalPart"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, {}, never, never, true, never>;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
declare class FormGroupTitleComponent {
|
|
1333
|
+
readonly className = true;
|
|
1334
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupTitleComponent, never>;
|
|
1335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupTitleComponent, "teta-form-group-title", never, {}, {}, never, ["*"], true, never>;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
declare class Message {
|
|
1339
|
+
name: string | null | undefined;
|
|
1340
|
+
title: string | null | undefined;
|
|
1341
|
+
text: string | null | undefined;
|
|
1342
|
+
infinite: boolean;
|
|
1343
|
+
viewType?: viewType;
|
|
1344
|
+
duration: number;
|
|
1345
|
+
className: string[] | null | undefined;
|
|
1346
|
+
palette: string;
|
|
1347
|
+
template: TemplateRef<any>;
|
|
1348
|
+
constructor(options?: {
|
|
1349
|
+
name?: string;
|
|
1350
|
+
title: string;
|
|
1351
|
+
text?: string;
|
|
1352
|
+
infinite?: boolean;
|
|
1353
|
+
duration?: number;
|
|
1354
|
+
viewType?: viewType;
|
|
1355
|
+
palette?: string;
|
|
1356
|
+
className?: string[];
|
|
1357
|
+
template?: TemplateRef<any>;
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
declare class MessageService {
|
|
1362
|
+
message: Observable<Message>;
|
|
1363
|
+
clear: Observable<string>;
|
|
1364
|
+
private _message;
|
|
1365
|
+
private _clear;
|
|
1366
|
+
constructor();
|
|
1367
|
+
add(message: Message): void;
|
|
1368
|
+
addMultiple(messages: Message[]): void;
|
|
1369
|
+
clearMessages(name: string): void;
|
|
1370
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
|
|
1371
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
declare class MessageComponent implements AfterViewInit, OnDestroy {
|
|
1375
|
+
message: Message;
|
|
1376
|
+
index: number;
|
|
1377
|
+
closed: EventEmitter<any>;
|
|
1378
|
+
class: any;
|
|
1379
|
+
private get getClass();
|
|
1380
|
+
timeout: any;
|
|
1381
|
+
constructor();
|
|
1382
|
+
init(): void;
|
|
1383
|
+
reset(): void;
|
|
1384
|
+
closeMe(event: MouseEvent): void;
|
|
1385
|
+
ngAfterViewInit(): void;
|
|
1386
|
+
ngOnDestroy(): void;
|
|
1387
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
|
|
1388
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "teta-message", never, { "message": { "alias": "message"; "required": false; }; "index": { "alias": "index"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
declare class MessageHostComponent implements OnInit, OnDestroy {
|
|
1392
|
+
private _svc;
|
|
1393
|
+
private _cdr;
|
|
1394
|
+
class: any;
|
|
1395
|
+
align: Align;
|
|
1396
|
+
verticalAlign: VerticalAlign;
|
|
1397
|
+
itemClose: EventEmitter<any>;
|
|
1398
|
+
messages: Message[];
|
|
1399
|
+
private readonly _alignMap;
|
|
1400
|
+
private readonly _valignMap;
|
|
1401
|
+
private get getClass();
|
|
1402
|
+
private _alive;
|
|
1403
|
+
constructor(_svc: MessageService, _cdr: ChangeDetectorRef);
|
|
1404
|
+
ngOnInit(): void;
|
|
1405
|
+
closedItem(event: any): void;
|
|
1406
|
+
ngOnDestroy(): void;
|
|
1407
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageHostComponent, never>;
|
|
1408
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageHostComponent, "teta-message-host", never, { "class": { "alias": "class"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; }, { "itemClose": "itemClose"; }, never, never, true, never>;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
interface IModalConfig {
|
|
1412
|
+
backdrop?: boolean;
|
|
1413
|
+
closeOnBackdropClick?: boolean;
|
|
1414
|
+
resizable?: boolean;
|
|
1415
|
+
draggable?: boolean;
|
|
1416
|
+
class?: string[];
|
|
1417
|
+
esc?: boolean;
|
|
1418
|
+
beforeClose?: Observable<any>;
|
|
1419
|
+
beforeOpen?: Observable<any>;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
declare enum ModalCloseReason {
|
|
1423
|
+
resolve = 0,
|
|
1424
|
+
exit = 1,
|
|
1425
|
+
backdrop = 2,
|
|
1426
|
+
esc = 3
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
interface IModalResult<T = any> {
|
|
1430
|
+
/**
|
|
1431
|
+
* Любые другие данные которые пользователь желает вернуть при закрытии окна
|
|
1432
|
+
*/
|
|
1433
|
+
[key: string]: any;
|
|
1434
|
+
data?: T;
|
|
1435
|
+
/**
|
|
1436
|
+
* Причина закрытия окна
|
|
1437
|
+
*/
|
|
1438
|
+
reason: ModalCloseReason;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
declare class ModalContainerComponent {
|
|
1442
|
+
private elRef$;
|
|
1443
|
+
config: IModalConfig;
|
|
1444
|
+
closeEvent: EventEmitter<IModalResult<any>>;
|
|
1445
|
+
tabindex: number;
|
|
1446
|
+
dialog: boolean;
|
|
1447
|
+
get classList(): string;
|
|
1448
|
+
constructor(elRef$: ElementRef);
|
|
1449
|
+
keyup(event: KeyboardEvent): void;
|
|
1450
|
+
click(event: MouseEvent): void;
|
|
1451
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
|
|
1452
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "teta-modal-container", never, { "config": { "alias": "config"; "required": false; }; }, { "closeEvent": "closeEvent"; }, never, ["*"], true, never>;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
declare class CurrentModal {
|
|
1456
|
+
close: (result?: IModalResult) => void;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
interface DialogButtonType {
|
|
1460
|
+
text: string;
|
|
1461
|
+
palette?: string;
|
|
1462
|
+
icon?: string;
|
|
1463
|
+
}
|
|
1464
|
+
interface DialogDataType {
|
|
1465
|
+
title: string;
|
|
1466
|
+
text?: string;
|
|
1467
|
+
confirm?: DialogButtonType;
|
|
1468
|
+
decline?: DialogButtonType;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
declare class DialogComponent {
|
|
1472
|
+
modal: CurrentModal;
|
|
1473
|
+
title: string;
|
|
1474
|
+
private _text;
|
|
1475
|
+
get text(): string;
|
|
1476
|
+
set text(value: string);
|
|
1477
|
+
private _confirm;
|
|
1478
|
+
get confirm(): DialogButtonType;
|
|
1479
|
+
set confirm(value: DialogButtonType);
|
|
1480
|
+
private _decline;
|
|
1481
|
+
get decline(): null | DialogButtonType;
|
|
1482
|
+
set decline(value: null | DialogButtonType);
|
|
1483
|
+
constructor(modal: CurrentModal);
|
|
1484
|
+
cancel(): void;
|
|
1485
|
+
ok(): void;
|
|
1486
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
1487
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "teta-dialog", never, { "title": { "alias": "title"; "required": true; }; "text": { "alias": "text"; "required": false; }; "confirm": { "alias": "confirm"; "required": false; }; "decline": { "alias": "decline"; "required": false; }; }, {}, never, never, true, never>;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
declare class ModalModule {
|
|
1491
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalModule, never>;
|
|
1492
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ModalModule, never, [typeof i1.CommonModule, typeof i2.TranslocoModule, typeof ModalContainerComponent, typeof DialogComponent], [typeof ModalContainerComponent, typeof DialogComponent]>;
|
|
1493
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ModalModule>;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
declare class TetaContentRef {
|
|
1497
|
+
nodes: any[];
|
|
1498
|
+
viewRef?: ViewRef;
|
|
1499
|
+
componentRef?: ComponentRef<any>;
|
|
1500
|
+
constructor(nodes: any[], viewRef?: ViewRef, componentRef?: ComponentRef<any>);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
declare class ModalInstance<T = any> {
|
|
1504
|
+
private _window;
|
|
1505
|
+
private _content;
|
|
1506
|
+
onClose: Observable<IModalResult<T>>;
|
|
1507
|
+
private _onClose;
|
|
1508
|
+
constructor(_window: ComponentRef<ModalContainerComponent>, _content: TetaContentRef);
|
|
1509
|
+
get window(): ComponentRef<ModalContainerComponent>;
|
|
1510
|
+
get component(): ComponentRef<any> | null;
|
|
1511
|
+
close: (event?: IModalResult) => void;
|
|
1512
|
+
private destroy;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
declare class DynamicData {
|
|
1516
|
+
[key: string]: any;
|
|
1517
|
+
constructor(value: {
|
|
1518
|
+
[key: string]: any;
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
declare class DynamicComponentService {
|
|
1523
|
+
private _componentFactoryResolver;
|
|
1524
|
+
private _rendererFactory;
|
|
1525
|
+
private _appRef;
|
|
1526
|
+
private _renderer;
|
|
1527
|
+
constructor(_componentFactoryResolver: ComponentFactoryResolver, _rendererFactory: RendererFactory2, _appRef: ApplicationRef);
|
|
1528
|
+
createComponent<T>(component: Type<T>, contentRef: TetaContentRef, injector: Injector, container: any): ComponentRef<T>;
|
|
1529
|
+
createContent(content: string | TemplateRef<any> | Type<any> | null | undefined, injector: Injector, context?: any): TetaContentRef;
|
|
1530
|
+
destroy<T>(component: ComponentRef<T> | null | undefined, content: TetaContentRef | null, container: HTMLElement): void;
|
|
1531
|
+
getContext(content: string | TemplateRef<any> | Type<any> | null | undefined, context: any): any;
|
|
1532
|
+
getInjector(data: DynamicData, parent: Injector): Injector;
|
|
1533
|
+
private fromString;
|
|
1534
|
+
private fromTemplate;
|
|
1535
|
+
private fromComponent;
|
|
1536
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService, never>;
|
|
1537
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService>;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
declare class ModalService {
|
|
1541
|
+
private _document;
|
|
1542
|
+
private _injector;
|
|
1543
|
+
private _factory;
|
|
1544
|
+
private _stack;
|
|
1545
|
+
private _modalChanged;
|
|
1546
|
+
private readonly _container;
|
|
1547
|
+
constructor(_document: any, _injector: Injector, _factory: DynamicComponentService);
|
|
1548
|
+
closeAll(): void;
|
|
1549
|
+
create<T = any>(content: string | TemplateRef<any> | Type<any>, data?: any, config?: IModalConfig, injector?: Injector): ModalInstance<T>;
|
|
1550
|
+
private getContext;
|
|
1551
|
+
private getInjector;
|
|
1552
|
+
private register;
|
|
1553
|
+
private unregister;
|
|
1554
|
+
private focus;
|
|
1555
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
1556
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
declare class DialogService {
|
|
1560
|
+
private _modal;
|
|
1561
|
+
constructor(_modal: ModalService);
|
|
1562
|
+
alert(title: string): void;
|
|
1563
|
+
confirm(confirmDialogData: DialogDataType): Observable<boolean>;
|
|
1564
|
+
private createDialog;
|
|
1565
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
1566
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
declare class PagerComponent implements OnInit {
|
|
1570
|
+
constructor();
|
|
1571
|
+
ngOnInit(): void;
|
|
1572
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PagerComponent, never>;
|
|
1573
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PagerComponent, "teta-pager", never, {}, {}, never, never, true, never>;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
declare class PagerState {
|
|
1577
|
+
/**
|
|
1578
|
+
* Текущая страница
|
|
1579
|
+
*/
|
|
1580
|
+
page: number;
|
|
1581
|
+
/**
|
|
1582
|
+
* Количество записей на странице
|
|
1583
|
+
*/
|
|
1584
|
+
pageSize: number;
|
|
1585
|
+
/**
|
|
1586
|
+
* Количество страниц
|
|
1587
|
+
*/
|
|
1588
|
+
count: number;
|
|
1589
|
+
/**
|
|
1590
|
+
* Количество записей
|
|
1591
|
+
*/
|
|
1592
|
+
totalCount: number;
|
|
1593
|
+
/**
|
|
1594
|
+
* первая видимая страница
|
|
1595
|
+
*/
|
|
1596
|
+
start: number;
|
|
1597
|
+
/**
|
|
1598
|
+
* Последняя видимая страница
|
|
1599
|
+
*/
|
|
1600
|
+
end: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* Список страниц
|
|
1603
|
+
*/
|
|
1604
|
+
pages: number[];
|
|
1605
|
+
/**
|
|
1606
|
+
* Инициализация из анонимного объекта
|
|
1607
|
+
*/
|
|
1608
|
+
constructor(options?: {
|
|
1609
|
+
page?: number;
|
|
1610
|
+
pageSize?: number;
|
|
1611
|
+
count?: number;
|
|
1612
|
+
totalCount?: number;
|
|
1613
|
+
});
|
|
1614
|
+
createPages(): void;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
declare class PagerUtil {
|
|
1618
|
+
static getPage<T>(data: T[], paging: PagerState): T[];
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
declare class PanelComponent implements OnInit {
|
|
1622
|
+
width: number;
|
|
1623
|
+
private get panel();
|
|
1624
|
+
readonly column = true;
|
|
1625
|
+
readonly auto = true;
|
|
1626
|
+
constructor();
|
|
1627
|
+
ngOnInit(): void;
|
|
1628
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelComponent, never>;
|
|
1629
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PanelComponent, "teta-panel", never, { "width": { "alias": "width"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
declare const SLIDER_CONTROL_VALUE_ACCESSOR: any;
|
|
1633
|
+
declare class ProgressBarComponent implements ControlValueAccessor {
|
|
1634
|
+
private _elementRef;
|
|
1635
|
+
private _renderer;
|
|
1636
|
+
private _cdr;
|
|
1637
|
+
private _document;
|
|
1638
|
+
min: number;
|
|
1639
|
+
max: number;
|
|
1640
|
+
step: number;
|
|
1641
|
+
private readonly slider;
|
|
1642
|
+
readonly progressBar = true;
|
|
1643
|
+
percent: number;
|
|
1644
|
+
moving: boolean;
|
|
1645
|
+
set value(value: number);
|
|
1646
|
+
get value(): number;
|
|
1647
|
+
get containerPosition(): {
|
|
1648
|
+
min: any;
|
|
1649
|
+
max: any;
|
|
1650
|
+
};
|
|
1651
|
+
private _value;
|
|
1652
|
+
mouseup(): void;
|
|
1653
|
+
click: (event: MouseEvent) => void;
|
|
1654
|
+
onChange(_: any): void;
|
|
1655
|
+
onTouched(): void;
|
|
1656
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
1657
|
+
registerOnTouched(fn: () => void): void;
|
|
1658
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1659
|
+
writeValue(value: number): void;
|
|
1660
|
+
mousedown: () => void;
|
|
1661
|
+
private mousemove;
|
|
1662
|
+
private getMousePositionInPercents;
|
|
1663
|
+
private setValue;
|
|
1664
|
+
private getValueFromPercent;
|
|
1665
|
+
private preventGlobalMouseEvents;
|
|
1666
|
+
private restoreGlobalMouseEvents;
|
|
1667
|
+
private addListener;
|
|
1668
|
+
private removeListener;
|
|
1669
|
+
private setPercentFromValue;
|
|
1670
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
1671
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "teta-progress-bar", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
interface IDictionary<T> {
|
|
1675
|
+
[key: string]: T;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
interface ICellCoordinates {
|
|
1679
|
+
row: number;
|
|
1680
|
+
column: string;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
declare class TableRow<T> {
|
|
1684
|
+
valid: boolean;
|
|
1685
|
+
data: T;
|
|
1686
|
+
constructor(options?: {
|
|
1687
|
+
valid?: boolean;
|
|
1688
|
+
data: T;
|
|
1689
|
+
});
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
declare class ColumnResizeEvent {
|
|
1693
|
+
column: TableColumn;
|
|
1694
|
+
newWidth: number;
|
|
1695
|
+
constructor(column: TableColumn, newWidth: number);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
interface ICellEvent extends ICellCoordinates {
|
|
1699
|
+
event: Event;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
interface IColumnRow<T> {
|
|
1703
|
+
row?: T;
|
|
1704
|
+
column: TableColumn;
|
|
1705
|
+
}
|
|
1706
|
+
interface ICellInstance<T> {
|
|
1707
|
+
row?: TableRow<T>;
|
|
1708
|
+
column: TableColumn;
|
|
1709
|
+
}
|
|
1710
|
+
interface ICellInstanceEvent<T> extends ICellInstance<T> {
|
|
1711
|
+
event: Event;
|
|
1712
|
+
}
|
|
1713
|
+
interface ICellInstanceValue<T> extends ICellInstance<T> {
|
|
1714
|
+
value: any;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
interface ICellValue extends ICellCoordinates {
|
|
1718
|
+
value: any;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
declare class SortEvent {
|
|
1722
|
+
column: TableColumn;
|
|
1723
|
+
shiftKey: boolean;
|
|
1724
|
+
constructor(column: TableColumn, shiftKey: boolean);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
declare class TableColumnStore {
|
|
1728
|
+
width: number;
|
|
1729
|
+
flex: number;
|
|
1730
|
+
locked: boolean;
|
|
1731
|
+
name: string;
|
|
1732
|
+
columns: TableColumnStore[];
|
|
1733
|
+
constructor(options?: {
|
|
1734
|
+
width?: number;
|
|
1735
|
+
flex?: number;
|
|
1736
|
+
sortOrder?: number;
|
|
1737
|
+
locked?: boolean;
|
|
1738
|
+
name?: string;
|
|
1739
|
+
columns?: any[];
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
declare enum EditEvent {
|
|
1744
|
+
click = 0,
|
|
1745
|
+
focus = 1,
|
|
1746
|
+
doubleClick = 2
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
declare enum EditType {
|
|
1750
|
+
none = 0,
|
|
1751
|
+
cell = 1,
|
|
1752
|
+
row = 2
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
declare enum SelectType {
|
|
1756
|
+
none = 0,
|
|
1757
|
+
checkBox = 1,
|
|
1758
|
+
mouse = 2
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
declare class TableService<T> {
|
|
1762
|
+
columns: Observable<TableColumn[]>;
|
|
1763
|
+
displayData: Observable<TableRow<T>[]>;
|
|
1764
|
+
dict: Observable<IDictionary<IIdName<any>[]>>;
|
|
1765
|
+
filterOptions: Observable<IDictionary<IIdName<any>[]>>;
|
|
1766
|
+
state: Observable<FilterState>;
|
|
1767
|
+
selectType: SelectType;
|
|
1768
|
+
editRowStart: Observable<ICellEvent | null>;
|
|
1769
|
+
editRowStop: Observable<ICellCoordinates | null>;
|
|
1770
|
+
editCellStart: Observable<ICellEvent | null>;
|
|
1771
|
+
editCellStop: Observable<ICellCoordinates | null>;
|
|
1772
|
+
valueChanged: Observable<ICellCoordinates | null>;
|
|
1773
|
+
valueSet: Observable<ICellValue>;
|
|
1774
|
+
stateChanged: Observable<FilterState>;
|
|
1775
|
+
filterClear: Observable<TableColumn>;
|
|
1776
|
+
selectedRows: Observable<T[]>;
|
|
1777
|
+
activeRow: Observable<T | null>;
|
|
1778
|
+
hiddenColumns: Observable<string[]>;
|
|
1779
|
+
scrollIndex: Observable<number>;
|
|
1780
|
+
editType: EditType;
|
|
1781
|
+
editEvent: EditEvent;
|
|
1782
|
+
rowEditable?: boolean | ((row: T) => boolean);
|
|
1783
|
+
trackRow: (index: number, row: T) => any;
|
|
1784
|
+
get dragSource(): TableColumn;
|
|
1785
|
+
private initialColumnsHash;
|
|
1786
|
+
private initialColumns;
|
|
1787
|
+
private displayColumns;
|
|
1788
|
+
private _columns;
|
|
1789
|
+
private _hiddenColumns;
|
|
1790
|
+
private _displayData;
|
|
1791
|
+
private _dict;
|
|
1792
|
+
private _filterOptions;
|
|
1793
|
+
private _state;
|
|
1794
|
+
private _cookieName?;
|
|
1795
|
+
private _hiddenCookieName?;
|
|
1796
|
+
private _columnsCookieName?;
|
|
1797
|
+
private _editRowStart;
|
|
1798
|
+
private _editRowStop;
|
|
1799
|
+
private _editCellStart;
|
|
1800
|
+
private _editCellStop;
|
|
1801
|
+
private _valueChanged;
|
|
1802
|
+
private _valueSet;
|
|
1803
|
+
private _stateChanged;
|
|
1804
|
+
private _filterClear;
|
|
1805
|
+
private _dragSource?;
|
|
1806
|
+
private _selectedRows;
|
|
1807
|
+
private _activeRow;
|
|
1808
|
+
private _scrollIndex;
|
|
1809
|
+
private _currentEditCell?;
|
|
1810
|
+
get currentEditCell(): ICellCoordinates;
|
|
1811
|
+
constructor();
|
|
1812
|
+
setData(data: T[]): void;
|
|
1813
|
+
setDict(dict: IDictionary<IIdName<any>[]>): void;
|
|
1814
|
+
setFilterOptions(filterOptions: IDictionary<IIdName<any>[]>): void;
|
|
1815
|
+
setColumns(columns: TableColumn[]): void;
|
|
1816
|
+
restoreDefaultColumns(): void;
|
|
1817
|
+
updateColumns(columns: TableColumn[]): void;
|
|
1818
|
+
saveColumnsState(): void;
|
|
1819
|
+
clearColumnsState(): void;
|
|
1820
|
+
setDisplayColumns(columns: TableColumn[]): void;
|
|
1821
|
+
restoreColumns(): TableColumn[];
|
|
1822
|
+
restoreColumnsState(columns: TableColumnStore[]): TableColumn[];
|
|
1823
|
+
setState(state: FilterState): void;
|
|
1824
|
+
setCookieName(name: string): void;
|
|
1825
|
+
restoreState(): void;
|
|
1826
|
+
saveHiddenColumns(hiddenColumns: string[]): void;
|
|
1827
|
+
restoreHiddenColumns(): void;
|
|
1828
|
+
sortAsc(sortEvent: SortEvent): void;
|
|
1829
|
+
sortDesc(sortEvent: SortEvent): void;
|
|
1830
|
+
clearSort(column: TableColumn): void;
|
|
1831
|
+
clearAllSort(): void;
|
|
1832
|
+
clearFilter(column: TableColumn): void;
|
|
1833
|
+
clearAllFilters(): void;
|
|
1834
|
+
pinColumn(column: TableColumn): void;
|
|
1835
|
+
dragStart(column: TableColumn): void;
|
|
1836
|
+
lockPreviousColumns(column: TableColumn, element: HTMLElement): void;
|
|
1837
|
+
resizeColumn(event: ColumnResizeEvent): void;
|
|
1838
|
+
autosizeColumn(column: TableColumn, target: HTMLElement): void;
|
|
1839
|
+
autosizeAllColumns(target: HTMLElement): void;
|
|
1840
|
+
reorderColumn(column: TableColumn, insertBefore: boolean): void;
|
|
1841
|
+
getColumnParent(column: TableColumn): TableColumn;
|
|
1842
|
+
startEditRow(cellEvent: ICellEvent): void;
|
|
1843
|
+
startEditCell(cellEvent: ICellEvent): void;
|
|
1844
|
+
setActiveRow(row: T): void;
|
|
1845
|
+
selectRows(rows: T[]): void;
|
|
1846
|
+
selectOrDeselectRow(row: T): void;
|
|
1847
|
+
selectRange(row: T): void;
|
|
1848
|
+
selectRow(row: T): void;
|
|
1849
|
+
deselectRow(row: T): void;
|
|
1850
|
+
selectAll(): void;
|
|
1851
|
+
deselectAll(): void;
|
|
1852
|
+
allRowsSelected(): boolean | null;
|
|
1853
|
+
setHiddenColumns(value: string[]): void;
|
|
1854
|
+
columnIsHidden(column: TableColumn): boolean;
|
|
1855
|
+
changeValue(coordinates: ICellCoordinates): void;
|
|
1856
|
+
setValue(cellValue: ICellValue): void;
|
|
1857
|
+
setValue(cellValue: ICellInstanceValue<T>): void;
|
|
1858
|
+
getRowByIndex(rowIndex?: number): TableRow<T> | undefined;
|
|
1859
|
+
getRowIndex(row: T): number;
|
|
1860
|
+
getEventCell(event: Event): HTMLElement | null;
|
|
1861
|
+
getEventRow(event: Event): HTMLElement | null;
|
|
1862
|
+
getNextEditableCell(coords: ICellCoordinates): ICellCoordinates | null;
|
|
1863
|
+
getPreviousEditableCell(coords: ICellCoordinates): ICellCoordinates | null;
|
|
1864
|
+
getNextCell(coords: ICellCoordinates): ICellCoordinates | null;
|
|
1865
|
+
getPreviousCell(coords: ICellCoordinates): ICellCoordinates | null;
|
|
1866
|
+
getNextRowCell(coords: ICellCoordinates): ICellCoordinates | null;
|
|
1867
|
+
getPreviousRowCell(coords: ICellCoordinates): {
|
|
1868
|
+
column: any;
|
|
1869
|
+
row: number;
|
|
1870
|
+
};
|
|
1871
|
+
getColumnByName(columnName: string): any;
|
|
1872
|
+
scrollToIndex(index: number): void;
|
|
1873
|
+
getVisibleColumns(): any[];
|
|
1874
|
+
getCellInstance(coords: ICellCoordinates): ICellInstance<T> | null;
|
|
1875
|
+
private getFlatColumns;
|
|
1876
|
+
private findParent;
|
|
1877
|
+
private findParentColumn;
|
|
1878
|
+
getTableElement(element: HTMLElement): Element;
|
|
1879
|
+
private setColumnAutoWidth;
|
|
1880
|
+
private clearValue;
|
|
1881
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableService<any>, never>;
|
|
1882
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TableService<any>>;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
declare abstract class CellComponentBase<T> implements OnInit, OnDestroy {
|
|
1886
|
+
protected svc: TableService<T>;
|
|
1887
|
+
protected cdr: ChangeDetectorRef;
|
|
1888
|
+
private _formGroup;
|
|
1889
|
+
readonly cellClass = true;
|
|
1890
|
+
get cellInvalid(): boolean;
|
|
1891
|
+
get control(): FormControl;
|
|
1892
|
+
protected _column: TableColumn;
|
|
1893
|
+
set column(column: TableColumn);
|
|
1894
|
+
get column(): TableColumn;
|
|
1895
|
+
protected _row: TableRow<T>;
|
|
1896
|
+
set row(row: TableRow<T>);
|
|
1897
|
+
get row(): TableRow<T>;
|
|
1898
|
+
filterOptions: IIdName<any>[];
|
|
1899
|
+
dict: IDictionary<IIdName<any>[]>;
|
|
1900
|
+
get formGroup(): FormGroup;
|
|
1901
|
+
protected _edit: boolean;
|
|
1902
|
+
get edit(): boolean;
|
|
1903
|
+
get editable(): boolean;
|
|
1904
|
+
get index(): number;
|
|
1905
|
+
protected _alive: boolean;
|
|
1906
|
+
ngOnDestroy(): void;
|
|
1907
|
+
ngOnInit(): void;
|
|
1908
|
+
private init;
|
|
1909
|
+
abstract startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
1910
|
+
abstract stopEdit(): void;
|
|
1911
|
+
private setupControl;
|
|
1912
|
+
private start;
|
|
1913
|
+
private stop;
|
|
1914
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellComponentBase<any>, never>;
|
|
1915
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CellComponentBase<any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
declare enum AggregationType {
|
|
1919
|
+
none = 0,
|
|
1920
|
+
sum = 1,
|
|
1921
|
+
avg = 2,
|
|
1922
|
+
min = 3,
|
|
1923
|
+
max = 4
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
interface HeadDropdownTabConfig {
|
|
1927
|
+
strategy: 'merge' | 'replace';
|
|
1928
|
+
tabs?: HeadDropdownTab[];
|
|
1929
|
+
}
|
|
1930
|
+
interface HeadDropdownTab {
|
|
1931
|
+
title?: string;
|
|
1932
|
+
icon?: string;
|
|
1933
|
+
template?: TemplateRef<any>;
|
|
1934
|
+
order?: number;
|
|
1935
|
+
showTab: (column: TableColumn) => boolean;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
interface ITableColumnOptions extends IFilterItemOptions {
|
|
1939
|
+
width?: number;
|
|
1940
|
+
flex?: number;
|
|
1941
|
+
sortOrder?: number;
|
|
1942
|
+
locked?: boolean;
|
|
1943
|
+
name?: string;
|
|
1944
|
+
parentName?: string;
|
|
1945
|
+
caption?: string;
|
|
1946
|
+
hint?: string;
|
|
1947
|
+
unit?: string;
|
|
1948
|
+
unitMeasureParameterId?: number;
|
|
1949
|
+
unitId?: number;
|
|
1950
|
+
sortable?: boolean;
|
|
1951
|
+
sortField?: string;
|
|
1952
|
+
filterable?: boolean;
|
|
1953
|
+
filterField?: string;
|
|
1954
|
+
filterType?: FilterType | null;
|
|
1955
|
+
stringFilterType?: StringFilterType;
|
|
1956
|
+
listFilterType?: ListFilterType;
|
|
1957
|
+
strict?: boolean;
|
|
1958
|
+
headCellClass?: string[];
|
|
1959
|
+
cellClass?: string[];
|
|
1960
|
+
data?: any;
|
|
1961
|
+
editable?: boolean | ((coordinates: IColumnRow<any>) => boolean);
|
|
1962
|
+
objectType?: boolean;
|
|
1963
|
+
cellComponent?: Type<CellComponentBase<any>>;
|
|
1964
|
+
headCellComponent?: any;
|
|
1965
|
+
headDropdownConfig?: HeadDropdownTabConfig;
|
|
1966
|
+
filterComponent?: any;
|
|
1967
|
+
columns?: any[];
|
|
1968
|
+
aggregate?: AggregationType;
|
|
1969
|
+
defaultValue?: any;
|
|
1970
|
+
maxValue?: number;
|
|
1971
|
+
minValue?: number;
|
|
1972
|
+
maxLength?: number;
|
|
1973
|
+
required?: boolean;
|
|
1974
|
+
decimalLength?: number;
|
|
1975
|
+
validators?: ValidatorFn[];
|
|
1976
|
+
}
|
|
1977
|
+
declare class TableColumn extends FilterItem {
|
|
1978
|
+
/**
|
|
1979
|
+
* Ширина
|
|
1980
|
+
*/
|
|
1981
|
+
width: number;
|
|
1982
|
+
/**
|
|
1983
|
+
* Коэффициент растяжения ячейки
|
|
1984
|
+
*/
|
|
1985
|
+
flex: number;
|
|
1986
|
+
/**
|
|
1987
|
+
* Стобец закреплен
|
|
1988
|
+
*/
|
|
1989
|
+
locked: boolean;
|
|
1990
|
+
/**
|
|
1991
|
+
* Название столбца родителя
|
|
1992
|
+
*/
|
|
1993
|
+
parentName: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* Единицы измерения
|
|
1996
|
+
*/
|
|
1997
|
+
unit: string;
|
|
1998
|
+
unitMeasureParameterId: number;
|
|
1999
|
+
unitId: number;
|
|
2000
|
+
/**
|
|
2001
|
+
* список style классов для шапки таблицы
|
|
2002
|
+
*/
|
|
2003
|
+
headCellClass: string[];
|
|
2004
|
+
/**
|
|
2005
|
+
* список style классов для ячейки таблицы
|
|
2006
|
+
*/
|
|
2007
|
+
cellClass: string[];
|
|
2008
|
+
/**
|
|
2009
|
+
* Дополнительные данные, свободное описание, доступны внутри компонета ячейки, можно прокинуть callback например
|
|
2010
|
+
*/
|
|
2011
|
+
data: any;
|
|
2012
|
+
/**
|
|
2013
|
+
* Колонка доступна для редактирования
|
|
2014
|
+
*/
|
|
2015
|
+
editable: boolean | ((coordinates: IColumnRow<any>) => boolean);
|
|
2016
|
+
/**
|
|
2017
|
+
* Компонент для рендера ячейки
|
|
2018
|
+
*/
|
|
2019
|
+
cellComponent: any;
|
|
2020
|
+
/**
|
|
2021
|
+
* Компонент для рендера заголовка столбца ячейки
|
|
2022
|
+
*/
|
|
2023
|
+
headCellComponent: any;
|
|
2024
|
+
/**
|
|
2025
|
+
* Custom head dropdown for column
|
|
2026
|
+
*/
|
|
2027
|
+
headDropdownConfig: HeadDropdownTabConfig;
|
|
2028
|
+
/**
|
|
2029
|
+
* Дочерние колонки
|
|
2030
|
+
*/
|
|
2031
|
+
columns: TableColumn[];
|
|
2032
|
+
/**
|
|
2033
|
+
* Aggregate type
|
|
2034
|
+
*/
|
|
2035
|
+
aggregate: AggregationType;
|
|
2036
|
+
/**
|
|
2037
|
+
* Значение по умолчанию при создании записи
|
|
2038
|
+
*/
|
|
2039
|
+
defaultValue: any;
|
|
2040
|
+
/**
|
|
2041
|
+
* Значение по умолчанию при создании записи
|
|
2042
|
+
*/
|
|
2043
|
+
maxValue: number;
|
|
2044
|
+
/**
|
|
2045
|
+
* Значение по умолчанию при создании записи
|
|
2046
|
+
*/
|
|
2047
|
+
minValue: number;
|
|
2048
|
+
/**
|
|
2049
|
+
* Максимальная длина
|
|
2050
|
+
*/
|
|
2051
|
+
maxLength: number;
|
|
2052
|
+
/**
|
|
2053
|
+
* Поле обязательно для заполнения
|
|
2054
|
+
*/
|
|
2055
|
+
required: boolean;
|
|
2056
|
+
/**
|
|
2057
|
+
* Размер дробной части для числовых полей
|
|
2058
|
+
*/
|
|
2059
|
+
decimalLength?: number;
|
|
2060
|
+
/**
|
|
2061
|
+
* Функции валидации
|
|
2062
|
+
*/
|
|
2063
|
+
validators: ValidatorFn[];
|
|
2064
|
+
/**
|
|
2065
|
+
* Инициализация из анонимного объекта
|
|
2066
|
+
*/
|
|
2067
|
+
constructor(options?: ITableColumnOptions);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
declare class PropertyGridItemDescriptionDirective {
|
|
2071
|
+
template: TemplateRef<any>;
|
|
2072
|
+
name: string;
|
|
2073
|
+
constructor(template: TemplateRef<any>);
|
|
2074
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyGridItemDescriptionDirective, never>;
|
|
2075
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PropertyGridItemDescriptionDirective, "[tetaPropertyGridItemDescription]", never, { "name": { "alias": "tetaPropertyGridItemDescription"; "required": false; }; }, {}, never, never, true, never>;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
declare class PropertyGridComponent<T> {
|
|
2079
|
+
private _formGroup;
|
|
2080
|
+
formClass: boolean;
|
|
2081
|
+
itemTemplates: i0.Signal<readonly PropertyGridItemDescriptionDirective[]>;
|
|
2082
|
+
hideNonEditable: i0.InputSignal<boolean>;
|
|
2083
|
+
columns: i0.InputSignal<TableColumn[]>;
|
|
2084
|
+
dict: i0.InputSignal<IDictionary<IIdName<any>[]>>;
|
|
2085
|
+
item: i0.InputSignal<T>;
|
|
2086
|
+
horizontal: i0.InputSignal<boolean>;
|
|
2087
|
+
decimalPart: i0.InputSignal<number>;
|
|
2088
|
+
controlValueChange: i0.OutputEmitterRef<IIdName<any>>;
|
|
2089
|
+
get formGroup(): FormGroup;
|
|
2090
|
+
constructor(_formGroup: ControlContainer);
|
|
2091
|
+
getEditable(column: TableColumn): boolean;
|
|
2092
|
+
onControlValueChange(event: IIdName<any>): void;
|
|
2093
|
+
private getDictValue;
|
|
2094
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyGridComponent<any>, [{ optional: true; }]>;
|
|
2095
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PropertyGridComponent<any>, "teta-property-grid", never, { "hideNonEditable": { "alias": "hideNonEditable"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "dict": { "alias": "dict"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; "decimalPart": { "alias": "decimalPart"; "required": false; "isSignal": true; }; }, { "controlValueChange": "controlValueChange"; }, ["itemTemplates"], never, true, never>;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
declare class PropertyGridItemComponent<T> implements OnDestroy, OnChanges {
|
|
2099
|
+
private transloco;
|
|
2100
|
+
private _formGroup;
|
|
2101
|
+
column: i0.InputSignal<TableColumn>;
|
|
2102
|
+
hideNonEditable: i0.InputSignal<boolean>;
|
|
2103
|
+
dict: i0.InputSignal<IDictionary<IIdName<any>[]>>;
|
|
2104
|
+
decimalPart: i0.InputSignal<number>;
|
|
2105
|
+
item: i0.InputSignal<T>;
|
|
2106
|
+
itemTemplates: i0.InputSignal<readonly PropertyGridItemDescriptionDirective[]>;
|
|
2107
|
+
template: i0.Signal<PropertyGridItemDescriptionDirective>;
|
|
2108
|
+
get formGroup(): FormGroup;
|
|
2109
|
+
editable: i0.Signal<boolean>;
|
|
2110
|
+
horizontal: i0.InputSignal<boolean>;
|
|
2111
|
+
controlValueChange: i0.OutputEmitterRef<IIdName<any>>;
|
|
2112
|
+
align: typeof Align;
|
|
2113
|
+
filterTypeEnum: typeof FilterType;
|
|
2114
|
+
private _formSub;
|
|
2115
|
+
caption: i0.Signal<string>;
|
|
2116
|
+
hint: i0.Signal<string>;
|
|
2117
|
+
private _alive;
|
|
2118
|
+
getDict(): IIdName<any>[];
|
|
2119
|
+
controlIsInvalid(controlName: string): boolean;
|
|
2120
|
+
getError(column: TableColumn): string;
|
|
2121
|
+
ngOnDestroy(): void;
|
|
2122
|
+
ngOnChanges(): void;
|
|
2123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyGridItemComponent<any>, never>;
|
|
2124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PropertyGridItemComponent<any>, "teta-property-grid-item", never, { "column": { "alias": "column"; "required": false; "isSignal": true; }; "hideNonEditable": { "alias": "hideNonEditable"; "required": false; "isSignal": true; }; "dict": { "alias": "dict"; "required": false; "isSignal": true; }; "decimalPart": { "alias": "decimalPart"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "itemTemplates": { "alias": "itemTemplates"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; }, { "controlValueChange": "controlValueChange"; }, never, never, true, never>;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
declare class RadioButtonComponent implements OnInit, OnDestroy {
|
|
2128
|
+
private container;
|
|
2129
|
+
radio: RadioComponent;
|
|
2130
|
+
radioButton: boolean;
|
|
2131
|
+
selected: boolean;
|
|
2132
|
+
checked: boolean;
|
|
2133
|
+
disabled: boolean;
|
|
2134
|
+
set value(val: any);
|
|
2135
|
+
get value(): any;
|
|
2136
|
+
private _value;
|
|
2137
|
+
constructor(container: ViewContainerRef, radio: RadioComponent);
|
|
2138
|
+
hostClick(): void;
|
|
2139
|
+
ngOnInit(): void;
|
|
2140
|
+
ngOnDestroy(): void;
|
|
2141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [null, { host: true; }]>;
|
|
2142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "teta-radio-button", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
declare class RadioComponent implements ControlValueAccessor {
|
|
2146
|
+
private _cdr;
|
|
2147
|
+
tabindex: number;
|
|
2148
|
+
radioClass: boolean;
|
|
2149
|
+
/** Менять значение при изменении выбранного */
|
|
2150
|
+
inline: boolean;
|
|
2151
|
+
checkChangeSelected: boolean;
|
|
2152
|
+
set disabled(val: boolean);
|
|
2153
|
+
get disabled(): boolean;
|
|
2154
|
+
get value(): any;
|
|
2155
|
+
set value(val: any);
|
|
2156
|
+
private buttons$;
|
|
2157
|
+
private checkedButton$;
|
|
2158
|
+
private selectedButton$;
|
|
2159
|
+
private disabled$;
|
|
2160
|
+
constructor(_cdr: ChangeDetectorRef);
|
|
2161
|
+
focusHandler(event: FocusEvent): void;
|
|
2162
|
+
focusoutHandler(event: FocusEvent): void;
|
|
2163
|
+
keyEvent(event: KeyboardEvent): boolean;
|
|
2164
|
+
selectFirst(): boolean;
|
|
2165
|
+
_setChecked(btn: RadioButtonComponent): void;
|
|
2166
|
+
_addButton(btn: RadioButtonComponent): number;
|
|
2167
|
+
_removeButton(btn: RadioButtonComponent): void;
|
|
2168
|
+
/** Writes a new value to the element. */
|
|
2169
|
+
writeValue(obj: any): void;
|
|
2170
|
+
/** model callback вызовется когда модель измениться из ui */
|
|
2171
|
+
_onChange: (value: any) => void;
|
|
2172
|
+
/** Registers a callback function that should be called when the control's value changes in the UI */
|
|
2173
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
2174
|
+
_onTouched: () => void;
|
|
2175
|
+
/** Registers a callback function that should be called when the control receives a blur event. */
|
|
2176
|
+
registerOnTouched(fn: () => void): void;
|
|
2177
|
+
/** This function is called by the forms API when the control status changes to or from "DISABLED". */
|
|
2178
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
2179
|
+
private selectBtn;
|
|
2180
|
+
private selectNext;
|
|
2181
|
+
private selectPrevious;
|
|
2182
|
+
private checkSelected;
|
|
2183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
2184
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "teta-radio", never, { "inline": { "alias": "inline"; "required": false; }; "checkChangeSelected": { "alias": "checkChangeSelected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
declare class SelectOptionDirective {
|
|
2188
|
+
template: TemplateRef<any>;
|
|
2189
|
+
constructor(template: TemplateRef<any>);
|
|
2190
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDirective, never>;
|
|
2191
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective, "[tetaSelectOption]", never, {}, {}, never, never, true, never>;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
declare class SelectValueDirective {
|
|
2195
|
+
template: TemplateRef<any>;
|
|
2196
|
+
constructor(template: TemplateRef<any>);
|
|
2197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueDirective, never>;
|
|
2198
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectValueDirective, "[tetaSelectValue]", never, {}, {}, never, never, true, never>;
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
declare class SelectComponent implements ControlValueAccessor {
|
|
2202
|
+
private _cdr;
|
|
2203
|
+
private _elementRef;
|
|
2204
|
+
private _config;
|
|
2205
|
+
multiple: boolean;
|
|
2206
|
+
set options(options: any[]);
|
|
2207
|
+
get options(): any[];
|
|
2208
|
+
invalid: boolean;
|
|
2209
|
+
align: Align;
|
|
2210
|
+
verticalAlign: VerticalAlign;
|
|
2211
|
+
autoClose: boolean;
|
|
2212
|
+
autoCloseIgnore: Array<AutoCloseIgnoreCase>;
|
|
2213
|
+
disabled: boolean;
|
|
2214
|
+
itemSize: number;
|
|
2215
|
+
virtual: boolean;
|
|
2216
|
+
icon: string;
|
|
2217
|
+
placeholder: string;
|
|
2218
|
+
appendToBody: boolean;
|
|
2219
|
+
allowNull: boolean;
|
|
2220
|
+
viewType: viewType;
|
|
2221
|
+
notFoundText: string;
|
|
2222
|
+
valueRef: ((item: any) => any) | string;
|
|
2223
|
+
textRef: ((item: any) => string) | string;
|
|
2224
|
+
searchRef: string | ((item: any) => string);
|
|
2225
|
+
optionDirective: SelectOptionDirective;
|
|
2226
|
+
valueDirective: SelectValueDirective;
|
|
2227
|
+
searchInput: ElementRef;
|
|
2228
|
+
set open(value: boolean);
|
|
2229
|
+
get open(): boolean;
|
|
2230
|
+
readonly selectClass = true;
|
|
2231
|
+
private get tabindex();
|
|
2232
|
+
get isDisabled(): boolean;
|
|
2233
|
+
value: any | any[];
|
|
2234
|
+
searchText: string;
|
|
2235
|
+
locale: Observable<TetaLocalisation>;
|
|
2236
|
+
get visibleOptions(): any[];
|
|
2237
|
+
private _options;
|
|
2238
|
+
private _internalValue;
|
|
2239
|
+
private _open;
|
|
2240
|
+
constructor();
|
|
2241
|
+
clear(): void;
|
|
2242
|
+
clickOption(option: any, event: MouseEvent): void;
|
|
2243
|
+
itemSelected(option: any): boolean;
|
|
2244
|
+
removeItemClick(option: any, event: MouseEvent): void;
|
|
2245
|
+
removeItem(option: any): void;
|
|
2246
|
+
search(text: string): void;
|
|
2247
|
+
getText(option: any): string;
|
|
2248
|
+
getValue(option: any): any;
|
|
2249
|
+
getSearchString(option: any): string;
|
|
2250
|
+
focus(): void;
|
|
2251
|
+
writeValue(value: any | any[]): void;
|
|
2252
|
+
onChange: (value: any) => void;
|
|
2253
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
2254
|
+
onTouched: () => void;
|
|
2255
|
+
registerOnTouched(fn: () => void): void;
|
|
2256
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
2257
|
+
private getSelectedValue;
|
|
2258
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
2259
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "teta-select", never, { "multiple": { "alias": "multiple"; "required": false; }; "options": { "alias": "options"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "autoCloseIgnore": { "alias": "autoCloseIgnore"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "valueRef": { "alias": "valueRef"; "required": false; }; "textRef": { "alias": "textRef"; "required": false; }; "searchRef": { "alias": "searchRef"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, ["optionDirective", "valueDirective"], never, true, never>;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
declare enum SidebarPosition {
|
|
2263
|
+
left = 0,
|
|
2264
|
+
right = 1,
|
|
2265
|
+
bottom = 2,
|
|
2266
|
+
top = 3
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
declare class SidebarComponent implements OnInit {
|
|
2270
|
+
position: SidebarPosition;
|
|
2271
|
+
backdrop: boolean;
|
|
2272
|
+
open: boolean;
|
|
2273
|
+
openChange: EventEmitter<boolean>;
|
|
2274
|
+
className: string | string[];
|
|
2275
|
+
zIndex: number;
|
|
2276
|
+
sidebarPosition: typeof SidebarPosition;
|
|
2277
|
+
constructor();
|
|
2278
|
+
setOpen(value: boolean): void;
|
|
2279
|
+
ngOnInit(): void;
|
|
2280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
2281
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "teta-sidebar", never, { "position": { "alias": "position"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "open": { "alias": "open"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
declare class SwitchService {
|
|
2285
|
+
readonly value: Observable<any>;
|
|
2286
|
+
private readonly value$;
|
|
2287
|
+
constructor();
|
|
2288
|
+
setValue(value: any): void;
|
|
2289
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchService, never>;
|
|
2290
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SwitchService>;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
declare const SWITCH_CONTROL_VALUE_ACCESSOR: any;
|
|
2294
|
+
declare class SwitchComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
2295
|
+
private svc;
|
|
2296
|
+
private cdr;
|
|
2297
|
+
viewType: viewType;
|
|
2298
|
+
switchClass: boolean;
|
|
2299
|
+
get class(): string;
|
|
2300
|
+
private _alive;
|
|
2301
|
+
private _value;
|
|
2302
|
+
constructor(svc: SwitchService, cdr: ChangeDetectorRef);
|
|
2303
|
+
writeValue(model: any): void;
|
|
2304
|
+
onChange(_: any): void;
|
|
2305
|
+
onTouched(): void;
|
|
2306
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
2307
|
+
registerOnTouched(fn: () => void): void;
|
|
2308
|
+
ngOnInit(): void;
|
|
2309
|
+
ngOnDestroy(): void;
|
|
2310
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
2311
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "teta-switch", never, { "viewType": { "alias": "viewType"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
declare class SwitchButtonComponent implements OnInit, OnDestroy {
|
|
2315
|
+
private svc;
|
|
2316
|
+
private cdr;
|
|
2317
|
+
value: any;
|
|
2318
|
+
class: string;
|
|
2319
|
+
private get getClass();
|
|
2320
|
+
private svcValue;
|
|
2321
|
+
private _alive;
|
|
2322
|
+
constructor(svc: SwitchService, cdr: ChangeDetectorRef);
|
|
2323
|
+
click(event: MouseEvent): void;
|
|
2324
|
+
ngOnInit(): void;
|
|
2325
|
+
ngOnDestroy(): void;
|
|
2326
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchButtonComponent, never>;
|
|
2327
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchButtonComponent, "teta-switch-button", never, { "value": { "alias": "value"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
declare abstract class DetailComponentBase<T> {
|
|
2331
|
+
/**
|
|
2332
|
+
* The row details are displayed for
|
|
2333
|
+
*/
|
|
2334
|
+
abstract row: T;
|
|
2335
|
+
/**
|
|
2336
|
+
* displayed columns
|
|
2337
|
+
*/
|
|
2338
|
+
abstract columns: TableColumn[];
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
declare class TableComponent<T> implements OnInit, OnDestroy, AfterViewInit, OnChanges {
|
|
2342
|
+
private _svc;
|
|
2343
|
+
private _elementRef;
|
|
2344
|
+
data: T[];
|
|
2345
|
+
columns: TableColumn[];
|
|
2346
|
+
dict: IDictionary<IIdName<any>[]>;
|
|
2347
|
+
filterOptions: IDictionary<IIdName<any>[]>;
|
|
2348
|
+
set state(state: FilterState);
|
|
2349
|
+
cookieName: string;
|
|
2350
|
+
virtual: boolean;
|
|
2351
|
+
detailComponent: Type<DetailComponentBase<T>>;
|
|
2352
|
+
activeRow: T;
|
|
2353
|
+
selectedRows: T[];
|
|
2354
|
+
selectType: SelectType;
|
|
2355
|
+
aggregate: boolean;
|
|
2356
|
+
trackRow: (index: number, row: T) => any;
|
|
2357
|
+
trackColumns: (index: number, column: TableColumn) => any;
|
|
2358
|
+
editType: EditType;
|
|
2359
|
+
editEvent: EditEvent;
|
|
2360
|
+
rowEditable: boolean | ((row: T) => boolean);
|
|
2361
|
+
rowClass: (row: T, index?: number) => string;
|
|
2362
|
+
set scrollToIndex(index: number);
|
|
2363
|
+
showHeadCellMenu: boolean;
|
|
2364
|
+
contextMenu: TemplateRef<any>;
|
|
2365
|
+
contextMenuOpen: boolean;
|
|
2366
|
+
contextMenuOpenChange: EventEmitter<boolean>;
|
|
2367
|
+
stateChange: EventEmitter<FilterState>;
|
|
2368
|
+
bodyLeft: EventEmitter<T>;
|
|
2369
|
+
activeRowChange: EventEmitter<T>;
|
|
2370
|
+
selectedRowsChange: EventEmitter<T[]>;
|
|
2371
|
+
cellClick: EventEmitter<ICellInstanceEvent<T>>;
|
|
2372
|
+
cellDoubleClick: EventEmitter<ICellInstanceEvent<T>>;
|
|
2373
|
+
cellFocus: EventEmitter<ICellInstanceEvent<T>>;
|
|
2374
|
+
cellKeyDown: EventEmitter<ICellInstanceEvent<T>>;
|
|
2375
|
+
rowLeft: EventEmitter<T>;
|
|
2376
|
+
rowEditStart: EventEmitter<ICellInstance<T>>;
|
|
2377
|
+
rowEditEnd: EventEmitter<TableRow<T>>;
|
|
2378
|
+
cellEditStart: EventEmitter<ICellInstance<T>>;
|
|
2379
|
+
cellEditEnd: EventEmitter<ICellInstance<T>>;
|
|
2380
|
+
valueChange: EventEmitter<ICellInstance<T>>;
|
|
2381
|
+
tableService: EventEmitter<TableService<T>>;
|
|
2382
|
+
menu: ElementRef;
|
|
2383
|
+
readonly tableClass = true;
|
|
2384
|
+
rowHeight: i0.InputSignal<number>;
|
|
2385
|
+
selectedRowsList: T[];
|
|
2386
|
+
contextMenuRow: T;
|
|
2387
|
+
verticalAlign: typeof VerticalAlign;
|
|
2388
|
+
align: typeof Align;
|
|
2389
|
+
private _alive;
|
|
2390
|
+
private _headElement;
|
|
2391
|
+
private _state;
|
|
2392
|
+
constructor(_svc: TableService<T>, _elementRef: ElementRef);
|
|
2393
|
+
handleClickOutsideAnyRow(event: MouseEvent): void;
|
|
2394
|
+
focusIn(event: FocusEvent): void;
|
|
2395
|
+
dblclick(event: MouseEvent): void;
|
|
2396
|
+
keydown(event: KeyboardEvent): void;
|
|
2397
|
+
mousedown(event: MouseEvent): void;
|
|
2398
|
+
ngOnInit(): void;
|
|
2399
|
+
ngAfterViewInit(): void;
|
|
2400
|
+
ngOnDestroy(): void;
|
|
2401
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2402
|
+
setContextMenuOpen(value: boolean): void;
|
|
2403
|
+
setContextMenuRow(event: MouseEvent): void;
|
|
2404
|
+
private startEditRowOrCell;
|
|
2405
|
+
private getCellElement;
|
|
2406
|
+
private eventIsOnRow;
|
|
2407
|
+
private getCoordinates;
|
|
2408
|
+
private getRow;
|
|
2409
|
+
onScroll: (event: any) => void;
|
|
2410
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
2411
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "teta-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "dict": { "alias": "dict"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "state": { "alias": "state"; "required": false; }; "cookieName": { "alias": "cookieName"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "detailComponent": { "alias": "detailComponent"; "required": false; }; "activeRow": { "alias": "activeRow"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "selectType": { "alias": "selectType"; "required": false; }; "aggregate": { "alias": "aggregate"; "required": false; }; "trackRow": { "alias": "trackRow"; "required": false; }; "trackColumns": { "alias": "trackColumns"; "required": false; }; "editType": { "alias": "editType"; "required": false; }; "editEvent": { "alias": "editEvent"; "required": false; }; "rowEditable": { "alias": "rowEditable"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "scrollToIndex": { "alias": "scrollToIndex"; "required": false; }; "showHeadCellMenu": { "alias": "showHeadCellMenu"; "required": false; }; "contextMenu": { "alias": "contextMenu"; "required": false; }; "contextMenuOpen": { "alias": "contextMenuOpen"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; }, { "contextMenuOpenChange": "contextMenuOpenChange"; "stateChange": "stateChange"; "bodyLeft": "bodyLeft"; "activeRowChange": "activeRowChange"; "selectedRowsChange": "selectedRowsChange"; "cellClick": "cellClick"; "cellDoubleClick": "cellDoubleClick"; "cellFocus": "cellFocus"; "cellKeyDown": "cellKeyDown"; "rowLeft": "rowLeft"; "rowEditStart": "rowEditStart"; "rowEditEnd": "rowEditEnd"; "cellEditStart": "cellEditStart"; "cellEditEnd": "cellEditEnd"; "valueChange": "valueChange"; "tableService": "tableService"; }, never, ["*"], true, never>;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
declare class TableHeadComponent<T> implements OnInit, OnDestroy {
|
|
2415
|
+
private _svc;
|
|
2416
|
+
private _cdr;
|
|
2417
|
+
selectType: SelectType;
|
|
2418
|
+
showHeadCellMenu: boolean;
|
|
2419
|
+
readonly tableHeadClass = true;
|
|
2420
|
+
state: FilterState;
|
|
2421
|
+
selectTypeEnum: typeof SelectType;
|
|
2422
|
+
lockedFlex: number;
|
|
2423
|
+
lockedWidth: number;
|
|
2424
|
+
private _alive;
|
|
2425
|
+
private _columns;
|
|
2426
|
+
private _hiddenColumns;
|
|
2427
|
+
set columns(columns: TableColumn[]);
|
|
2428
|
+
get columns(): TableColumn[];
|
|
2429
|
+
get locked(): TableColumn[];
|
|
2430
|
+
get unlocked(): TableColumn[];
|
|
2431
|
+
data: T[];
|
|
2432
|
+
constructor(_svc: TableService<T>, _cdr: ChangeDetectorRef);
|
|
2433
|
+
track(index: number, item: TableColumn): any;
|
|
2434
|
+
ngOnInit(): void;
|
|
2435
|
+
ngOnDestroy(): void;
|
|
2436
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadComponent<any>, never>;
|
|
2437
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadComponent<any>, "teta-table-head", never, { "selectType": { "alias": "selectType"; "required": false; }; "showHeadCellMenu": { "alias": "showHeadCellMenu"; "required": false; }; }, {}, never, never, true, never>;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
declare class TableBodyComponent<T> implements OnInit, OnDestroy {
|
|
2441
|
+
private _svc;
|
|
2442
|
+
private _elementRef;
|
|
2443
|
+
private _config;
|
|
2444
|
+
private _cdr;
|
|
2445
|
+
virtual: boolean;
|
|
2446
|
+
activeRow: T;
|
|
2447
|
+
selectedRows: T[];
|
|
2448
|
+
additionalComponent: Type<DetailComponentBase<T>>;
|
|
2449
|
+
aggregate: boolean;
|
|
2450
|
+
selectType: SelectType;
|
|
2451
|
+
rowClass: (row: T, index?: number) => string;
|
|
2452
|
+
trackRow: (index: number, row: T) => any;
|
|
2453
|
+
trackColumns: (index: number, column: TableColumn) => any;
|
|
2454
|
+
viewport: CdkVirtualScrollViewport;
|
|
2455
|
+
rowHeight: i0.InputSignal<number>;
|
|
2456
|
+
readonly tableBodyClass = true;
|
|
2457
|
+
scrollChange: EventEmitter<Event>;
|
|
2458
|
+
set data(data: TableRow<T>[]);
|
|
2459
|
+
get data(): TableRow<T>[];
|
|
2460
|
+
dict: IDictionary<IIdName<any>[]>;
|
|
2461
|
+
locked: TableColumn[];
|
|
2462
|
+
unlocked: TableColumn[];
|
|
2463
|
+
selectTypeEnum: typeof SelectType;
|
|
2464
|
+
aggregationType: typeof AggregationType;
|
|
2465
|
+
lockedFlex: number;
|
|
2466
|
+
lockedWidth: number;
|
|
2467
|
+
totalFlex: number;
|
|
2468
|
+
totalWidth: number;
|
|
2469
|
+
private _columns;
|
|
2470
|
+
private _alive;
|
|
2471
|
+
private _data;
|
|
2472
|
+
private _hiddenColumns;
|
|
2473
|
+
private _obs;
|
|
2474
|
+
set columns(columns: TableColumn[]);
|
|
2475
|
+
get columns(): TableColumn[];
|
|
2476
|
+
locale: Observable<TetaLocalisation>;
|
|
2477
|
+
constructor(_svc: TableService<T>, _elementRef: ElementRef, _config: TetaConfigService, _cdr: ChangeDetectorRef);
|
|
2478
|
+
setActiveRow(row: T, event: MouseEvent): void;
|
|
2479
|
+
ngOnInit(): void;
|
|
2480
|
+
ngOnDestroy(): void;
|
|
2481
|
+
getAggregateValue(column: TableColumn): number;
|
|
2482
|
+
getAggregateText(column: TableColumn): string;
|
|
2483
|
+
emitScroll(event: any): void;
|
|
2484
|
+
trackTableRow: (index: number, row: TableRow<T>) => any;
|
|
2485
|
+
private addResizeObserver;
|
|
2486
|
+
private removeResizeObserver;
|
|
2487
|
+
private getSum;
|
|
2488
|
+
private getMin;
|
|
2489
|
+
private getMax;
|
|
2490
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, never>;
|
|
2491
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "teta-table-body", never, { "virtual": { "alias": "virtual"; "required": false; }; "activeRow": { "alias": "activeRow"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "additionalComponent": { "alias": "additionalComponent"; "required": false; }; "aggregate": { "alias": "aggregate"; "required": false; }; "selectType": { "alias": "selectType"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "trackRow": { "alias": "trackRow"; "required": false; }; "trackColumns": { "alias": "trackColumns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; }, { "scrollChange": "scrollChange"; }, never, ["*"], true, never>;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
declare class TableRowComponent<T> implements OnChanges {
|
|
2495
|
+
row: TableRow<T>;
|
|
2496
|
+
private _formGroup;
|
|
2497
|
+
get control(): FormControl;
|
|
2498
|
+
get formGroup(): FormGroup;
|
|
2499
|
+
constructor();
|
|
2500
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2501
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowComponent<any>, never>;
|
|
2502
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent<any>, "teta-table-row", never, { "row": { "alias": "row"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
declare class HeadCellHostComponent<T> implements OnInit {
|
|
2506
|
+
private viewContainerRef;
|
|
2507
|
+
private _column;
|
|
2508
|
+
private _columns;
|
|
2509
|
+
private _data;
|
|
2510
|
+
private componentRef;
|
|
2511
|
+
private init;
|
|
2512
|
+
set column(column: TableColumn);
|
|
2513
|
+
get column(): TableColumn;
|
|
2514
|
+
set columns(columns: TableColumn[]);
|
|
2515
|
+
get columns(): TableColumn[];
|
|
2516
|
+
set data(data: T[]);
|
|
2517
|
+
get data(): T[];
|
|
2518
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
2519
|
+
ngOnInit(): void;
|
|
2520
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellHostComponent<any>, never>;
|
|
2521
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellHostComponent<any>, "teta-head-cell-host", never, { "column": { "alias": "column"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
declare class CellComponent<T> {
|
|
2525
|
+
column: TableColumn;
|
|
2526
|
+
filterOptions: IIdName<any>[];
|
|
2527
|
+
dict: IDictionary<IIdName<any>[]>;
|
|
2528
|
+
row: TableRow<T>;
|
|
2529
|
+
readonly tableCellClass = true;
|
|
2530
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellComponent<any>, never>;
|
|
2531
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CellComponent<any>, "teta-cell", never, { "column": { "alias": "column"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "dict": { "alias": "dict"; "required": false; }; "row": { "alias": "row"; "required": false; }; }, {}, never, never, true, never>;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
declare class CellHostComponent<T> implements OnInit, OnChanges {
|
|
2535
|
+
private viewContainerRef;
|
|
2536
|
+
column: TableColumn;
|
|
2537
|
+
row: TableRow<T>;
|
|
2538
|
+
filterOptions: IIdName<any>[];
|
|
2539
|
+
dict: IDictionary<IIdName<any>[]>;
|
|
2540
|
+
private _init;
|
|
2541
|
+
private _componentRef;
|
|
2542
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
2543
|
+
ngOnInit(): void;
|
|
2544
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2545
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellHostComponent<any>, never>;
|
|
2546
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CellHostComponent<any>, "teta-cell-host", never, { "column": { "alias": "column"; "required": false; }; "row": { "alias": "row"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "dict": { "alias": "dict"; "required": false; }; }, {}, never, never, true, never>;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
declare class DateCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2550
|
+
input: DatePickerComponent;
|
|
2551
|
+
open: i0.WritableSignal<boolean>;
|
|
2552
|
+
ngOnInit(): void;
|
|
2553
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2554
|
+
stopEdit(): void;
|
|
2555
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateCellComponent<any>, never>;
|
|
2556
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateCellComponent<any>, "teta-date-cell", never, {}, {}, never, never, true, never>;
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
declare class BooleanCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2560
|
+
input: ElementRef;
|
|
2561
|
+
ngOnInit(): void;
|
|
2562
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2563
|
+
stopEdit(): void;
|
|
2564
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCellComponent<any>, never>;
|
|
2565
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCellComponent<any>, "teta-boolean-cell", never, {}, {}, never, never, true, never>;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
declare class ColorCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2569
|
+
input: ElementRef;
|
|
2570
|
+
readonly tabindex = 0;
|
|
2571
|
+
focus(event: any): void;
|
|
2572
|
+
setValue(): void;
|
|
2573
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2574
|
+
stopEdit(): void;
|
|
2575
|
+
getHexColor(color: string): string;
|
|
2576
|
+
ngOnInit(): void;
|
|
2577
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorCellComponent<any>, never>;
|
|
2578
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorCellComponent<any>, "teta-color-cell", never, {}, {}, never, never, true, never>;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
declare class DateTimeCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2582
|
+
input: DatePickerComponent;
|
|
2583
|
+
open: i0.WritableSignal<boolean>;
|
|
2584
|
+
ngOnInit(): void;
|
|
2585
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2586
|
+
stopEdit(): void;
|
|
2587
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeCellComponent<any>, never>;
|
|
2588
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeCellComponent<any>, "teta-date-time-cell", never, {}, {}, never, never, true, never>;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
declare class ListCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2592
|
+
open: i0.WritableSignal<boolean>;
|
|
2593
|
+
get displayFilterOptions(): IIdName<any>[];
|
|
2594
|
+
input: SelectComponent;
|
|
2595
|
+
verticalAlign: typeof VerticalAlign;
|
|
2596
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2597
|
+
stopEdit(): void;
|
|
2598
|
+
ngOnInit(): void;
|
|
2599
|
+
protected getValue(value: any): string;
|
|
2600
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListCellComponent<any>, never>;
|
|
2601
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListCellComponent<any>, "teta-list-cell", never, {}, {}, never, never, true, never>;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
declare class NumericCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2605
|
+
input: ElementRef;
|
|
2606
|
+
ngOnInit(): void;
|
|
2607
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2608
|
+
stopEdit(): void;
|
|
2609
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericCellComponent<any>, never>;
|
|
2610
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericCellComponent<any>, "teta-numeric-cell", never, {}, {}, never, never, true, never>;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
declare class StringCellComponent<T> extends CellComponentBase<T> implements OnInit {
|
|
2614
|
+
align: typeof Align;
|
|
2615
|
+
input: ElementRef;
|
|
2616
|
+
ngOnInit(): void;
|
|
2617
|
+
startEdit(initiator: ICellCoordinates, type: 'cell' | 'row'): void;
|
|
2618
|
+
stopEdit(): void;
|
|
2619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringCellComponent<any>, never>;
|
|
2620
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringCellComponent<any>, "teta-string-cell", never, {}, {}, never, never, true, never>;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
declare abstract class HeadCellComponentBase<T> {
|
|
2624
|
+
abstract column: TableColumn;
|
|
2625
|
+
abstract columns: TableColumn[];
|
|
2626
|
+
abstract data: T[];
|
|
2627
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeadCellComponentBase<any>, never>;
|
|
2628
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeadCellComponentBase<any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
declare const getCellComponent: (column: TableColumn) => Type<any>;
|
|
2632
|
+
|
|
2633
|
+
declare class ColumnReorderEvent {
|
|
2634
|
+
source: TableColumn;
|
|
2635
|
+
target: TableColumn;
|
|
2636
|
+
constructor(source: TableColumn, target: TableColumn);
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
declare class ColorUtil {
|
|
2640
|
+
static getHexColor(color: string): string;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
declare class StateUtil {
|
|
2644
|
+
static hasSortedColumns(state: FilterState): boolean;
|
|
2645
|
+
static hasFilteredColumns(state: FilterState): boolean;
|
|
2646
|
+
static getSortState(state: FilterState, column: TableColumn): SortParam | null;
|
|
2647
|
+
static isColumnFiltered(state: FilterState, column: TableColumn): boolean;
|
|
2648
|
+
static sortColumn(sortEvent: SortEvent, state: FilterState): FilterState;
|
|
2649
|
+
static sortAsc(sortEvent: SortEvent, state: FilterState): FilterState;
|
|
2650
|
+
static sortDesc(sortEvent: SortEvent, state: FilterState): FilterState;
|
|
2651
|
+
static sort(sortEvent: SortEvent, state: FilterState, asc: boolean): FilterState;
|
|
2652
|
+
static clearSortParam(sort: SortParam, sortParams: SortParam[]): SortParam[];
|
|
2653
|
+
static clearSort(column: TableColumn, state: FilterState): FilterState;
|
|
2654
|
+
static clearAllSort(state: FilterState): FilterState;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
declare class TableUtil {
|
|
2658
|
+
static getColumnLeaves(column: TableColumn): TableColumn[] | null;
|
|
2659
|
+
static getData<T>(data: T[], state: FilterState): T[];
|
|
2660
|
+
static sortData<T>(data: T[], state: FilterState): T[];
|
|
2661
|
+
static filterData<T>(data: T[], state: FilterState): T[];
|
|
2662
|
+
static filterString<T>(data: T[], filter: StringFilter): T[];
|
|
2663
|
+
static filterDate<T>(data: T[], filter: DateFilter): T[];
|
|
2664
|
+
static filterNumber<T>(data: T[], filter: NumericFilter): T[];
|
|
2665
|
+
static filterList<T>(data: T[], filter: ListFilter): T[];
|
|
2666
|
+
static sort<T>(data: T[], sortParam: SortParam): T[];
|
|
2667
|
+
static desc(field: string): (a: any, b: any) => 1 | -1;
|
|
2668
|
+
static asc(field: string): (a: any, b: any) => 1 | -1;
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
declare class TabContentDirective {
|
|
2672
|
+
template: TemplateRef<any>;
|
|
2673
|
+
constructor(template: TemplateRef<any>);
|
|
2674
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabContentDirective, never>;
|
|
2675
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentDirective, "[tetaTabContent]", never, {}, {}, never, never, true, never>;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
declare class TabTitleDirective {
|
|
2679
|
+
template: TemplateRef<any>;
|
|
2680
|
+
constructor(template: TemplateRef<any>);
|
|
2681
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabTitleDirective, never>;
|
|
2682
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabTitleDirective, "[tetaTabTitle]", never, {}, {}, never, never, true, never>;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
declare class TabComponent implements AfterContentChecked {
|
|
2686
|
+
/**
|
|
2687
|
+
* Unique tab identifier. Must be unique for the entire document for proper accessibility support.
|
|
2688
|
+
*/
|
|
2689
|
+
id: string;
|
|
2690
|
+
/**
|
|
2691
|
+
* Simple (string only) title. Use the "ItskTabTitleDirective" directive for more complex use-cases.
|
|
2692
|
+
*/
|
|
2693
|
+
title: string;
|
|
2694
|
+
/**
|
|
2695
|
+
* Allows toggling disabled state of a given state. Disabled tabs can't be selected.
|
|
2696
|
+
*/
|
|
2697
|
+
disabled: boolean;
|
|
2698
|
+
titleTpl: TabTitleDirective;
|
|
2699
|
+
contentTpl: TabContentDirective;
|
|
2700
|
+
ngAfterContentChecked(): void;
|
|
2701
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
2702
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "teta-tab", never, { "id": { "alias": "id"; "required": false; }; "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["titleTpl", "contentTpl"], never, true, never>;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
interface ITabChangeEvent {
|
|
2706
|
+
activeId: string | null;
|
|
2707
|
+
nextId: string;
|
|
2708
|
+
preventDefault: () => void;
|
|
2709
|
+
}
|
|
2710
|
+
declare class TabsComponent implements AfterContentChecked {
|
|
2711
|
+
classTabs: boolean;
|
|
2712
|
+
get verticalClassTabs(): boolean;
|
|
2713
|
+
/**
|
|
2714
|
+
* An identifier of an initially selected (active) tab. Use the "select" method to switch a tab programmatically.
|
|
2715
|
+
*/
|
|
2716
|
+
activeId: string | null;
|
|
2717
|
+
/**
|
|
2718
|
+
* Tabs direction
|
|
2719
|
+
*/
|
|
2720
|
+
direction: 'horizontal' | 'vertical';
|
|
2721
|
+
/**
|
|
2722
|
+
* Tabs size
|
|
2723
|
+
*/
|
|
2724
|
+
size: 's' | 'm';
|
|
2725
|
+
/**
|
|
2726
|
+
* Whether the closed tabs should be hidden without destroying them
|
|
2727
|
+
*/
|
|
2728
|
+
destroyOnHide: boolean;
|
|
2729
|
+
/**
|
|
2730
|
+
* A tab change event fired right before the tab selection happens. See NgbTabChangeEvent for payload details
|
|
2731
|
+
*/
|
|
2732
|
+
tabChange: EventEmitter<ITabChangeEvent>;
|
|
2733
|
+
tabs: QueryList<TabComponent>;
|
|
2734
|
+
constructor();
|
|
2735
|
+
/**
|
|
2736
|
+
* Selects the tab with the given id and shows its associated pane.
|
|
2737
|
+
* Any other tab that was previously selected becomes unselected and its associated pane is hidden.
|
|
2738
|
+
*/
|
|
2739
|
+
select(tabId: string): void;
|
|
2740
|
+
ngAfterContentChecked(): void;
|
|
2741
|
+
private _getTabById;
|
|
2742
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
2743
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "teta-tabs", never, { "activeId": { "alias": "activeId"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "size": { "alias": "size"; "required": false; }; "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; }, { "tabChange": "tabChange"; }, ["tabs"], ["*"], true, never>;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
declare class ThemeSwitchComponent implements OnInit {
|
|
2747
|
+
private _svc;
|
|
2748
|
+
palette: string;
|
|
2749
|
+
view: ButtonViewType;
|
|
2750
|
+
theme: Observable<boolean>;
|
|
2751
|
+
constructor(_svc: ThemeSwitchService);
|
|
2752
|
+
ngOnInit(): void;
|
|
2753
|
+
switchTheme(): void;
|
|
2754
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeSwitchComponent, never>;
|
|
2755
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThemeSwitchComponent, "teta-theme-switch", never, { "palette": { "alias": "palette"; "required": false; }; "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
declare const TOGGLE_CONTROL_VALUE_ACCESSOR: any;
|
|
2759
|
+
declare class ToggleComponent implements ControlValueAccessor {
|
|
2760
|
+
private cdr;
|
|
2761
|
+
tabindex: number;
|
|
2762
|
+
toggleClass: boolean;
|
|
2763
|
+
get paletteClass(): string;
|
|
2764
|
+
palette: string;
|
|
2765
|
+
noLabel: boolean;
|
|
2766
|
+
/**
|
|
2767
|
+
* компонент неактивен
|
|
2768
|
+
*/
|
|
2769
|
+
disabled: boolean;
|
|
2770
|
+
/**
|
|
2771
|
+
* Значение
|
|
2772
|
+
*/
|
|
2773
|
+
private model$;
|
|
2774
|
+
get model(): any;
|
|
2775
|
+
set model(v: any);
|
|
2776
|
+
constructor(cdr: ChangeDetectorRef);
|
|
2777
|
+
changeValue(): void;
|
|
2778
|
+
writeValue(model: boolean): void;
|
|
2779
|
+
onChange(_: any): void;
|
|
2780
|
+
onTouched(): void;
|
|
2781
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
2782
|
+
registerOnTouched(fn: () => void): void;
|
|
2783
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
2784
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
2785
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "teta-toggle", never, { "palette": { "alias": "palette"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
declare class ToolbarComponent implements OnInit {
|
|
2789
|
+
palette: string;
|
|
2790
|
+
class: any;
|
|
2791
|
+
private get getClass();
|
|
2792
|
+
ngOnInit(): void;
|
|
2793
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
2794
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "teta-toolbar", never, { "palette": { "alias": "palette"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
interface ITreeData {
|
|
2798
|
+
children?: ITreeData[] | undefined | null;
|
|
2799
|
+
[key: string]: any;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
declare class TreeService {
|
|
2803
|
+
openItems: Observable<ITreeData[]>;
|
|
2804
|
+
scrollToIndex: Observable<number>;
|
|
2805
|
+
private _openItems;
|
|
2806
|
+
private _scrollToIndex;
|
|
2807
|
+
constructor();
|
|
2808
|
+
compareItems: (item: ITreeData) => any;
|
|
2809
|
+
openItem(item: ITreeData): void;
|
|
2810
|
+
setOpenItems(items: ITreeData[]): void;
|
|
2811
|
+
scrollTo(index: number): void;
|
|
2812
|
+
private addOrRemove;
|
|
2813
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeService, never>;
|
|
2814
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TreeService>;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
declare class TetaTemplateDirective {
|
|
2818
|
+
template: TemplateRef<any>;
|
|
2819
|
+
id: string;
|
|
2820
|
+
constructor(template: TemplateRef<any>);
|
|
2821
|
+
getId(): string;
|
|
2822
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TetaTemplateDirective, never>;
|
|
2823
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TetaTemplateDirective, "[tetaTemplate]", never, { "id": { "alias": "tetaTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
declare class TreeComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
2827
|
+
private treeService;
|
|
2828
|
+
private elementRef;
|
|
2829
|
+
private ngZone;
|
|
2830
|
+
data: i0.InputSignal<ITreeData[]>;
|
|
2831
|
+
padding: i0.InputSignal<number>;
|
|
2832
|
+
childNodeName: i0.InputSignal<string>;
|
|
2833
|
+
virtual: i0.InputSignal<boolean>;
|
|
2834
|
+
height: i0.InputSignal<number>;
|
|
2835
|
+
openItems: i0.ModelSignal<ITreeData[]>;
|
|
2836
|
+
service: EventEmitter<TreeService>;
|
|
2837
|
+
viewport: CdkVirtualScrollViewport;
|
|
2838
|
+
template: TetaTemplateDirective;
|
|
2839
|
+
childPadding: i0.Signal<boolean>;
|
|
2840
|
+
displayData: i0.Signal<ITreeData[]>;
|
|
2841
|
+
private _alive;
|
|
2842
|
+
private _obs;
|
|
2843
|
+
constructor();
|
|
2844
|
+
set compareItems(func: (item: ITreeData) => any);
|
|
2845
|
+
get compareItems(): (item: ITreeData) => any;
|
|
2846
|
+
readonly treeClass = true;
|
|
2847
|
+
ngOnInit(): void;
|
|
2848
|
+
ngOnChanges(): void;
|
|
2849
|
+
ngOnDestroy(): void;
|
|
2850
|
+
ngAfterViewInit(): void;
|
|
2851
|
+
trackRow: (index: number, item: ITreeData) => any;
|
|
2852
|
+
private getDisplayData;
|
|
2853
|
+
private addResizeObserver;
|
|
2854
|
+
private removeResizeObserver;
|
|
2855
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent, never>;
|
|
2856
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent, "teta-tree", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "childNodeName": { "alias": "childNodeName"; "required": false; "isSignal": true; }; "virtual": { "alias": "virtual"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "openItems": { "alias": "openItems"; "required": false; "isSignal": true; }; "compareItems": { "alias": "compareItems"; "required": false; }; }, { "openItems": "openItemsChange"; "service": "service"; }, ["template"], never, true, never>;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
declare class TreeItemToggleComponent {
|
|
2860
|
+
treeService: TreeService;
|
|
2861
|
+
item: i0.InputSignal<ITreeData>;
|
|
2862
|
+
open: Signal<boolean>;
|
|
2863
|
+
openItems: Signal<ITreeData[]>;
|
|
2864
|
+
constructor();
|
|
2865
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeItemToggleComponent, never>;
|
|
2866
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemToggleComponent, "teta-tree-item-toggle", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
declare class StepperComponent {
|
|
2870
|
+
steps: i0.InputSignal<IIdName<number>[]>;
|
|
2871
|
+
currentStepId: i0.InputSignal<number>;
|
|
2872
|
+
currentIndex: Signal<number>;
|
|
2873
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, never>;
|
|
2874
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "app-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "currentStepId": { "alias": "currentStepId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
declare class DividerComponent implements OnInit {
|
|
2878
|
+
label: any;
|
|
2879
|
+
template: TemplateRef<any>;
|
|
2880
|
+
constructor();
|
|
2881
|
+
ngOnInit(): void;
|
|
2882
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
2883
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "teta-divider", never, { "label": { "alias": "label"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never>;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
declare class ResizePanelComponent implements OnInit, OnDestroy {
|
|
2887
|
+
private _elementRef;
|
|
2888
|
+
private _renderer;
|
|
2889
|
+
private _document;
|
|
2890
|
+
size: number;
|
|
2891
|
+
set direction(val: 'vertical' | 'horizontal');
|
|
2892
|
+
get direction(): "vertical" | "horizontal";
|
|
2893
|
+
get icon(): "moreHorizontal" | "moreVertical";
|
|
2894
|
+
set grabPosition(val: 'top' | 'left' | 'bottom' | 'right');
|
|
2895
|
+
get grabPosition(): "top" | "left" | "bottom" | "right";
|
|
2896
|
+
name: string;
|
|
2897
|
+
minSize: number;
|
|
2898
|
+
maxSize: number;
|
|
2899
|
+
readonly resizePanelClass = true;
|
|
2900
|
+
private _direction;
|
|
2901
|
+
private _grabPosition;
|
|
2902
|
+
private _startSize;
|
|
2903
|
+
private _startPosition;
|
|
2904
|
+
private _positionMap;
|
|
2905
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2, _document: any);
|
|
2906
|
+
resizeStart(event: MouseEvent): void;
|
|
2907
|
+
resizeProcess(event: MouseEvent): void;
|
|
2908
|
+
resizeEnd(event: MouseEvent): void;
|
|
2909
|
+
ngOnInit(): void;
|
|
2910
|
+
ngOnDestroy(): void;
|
|
2911
|
+
getClassName(): string;
|
|
2912
|
+
private setStartPosition;
|
|
2913
|
+
private manageHorizontal;
|
|
2914
|
+
private manageVertical;
|
|
2915
|
+
private restore;
|
|
2916
|
+
private restorePosition;
|
|
2917
|
+
private save;
|
|
2918
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizePanelComponent, never>;
|
|
2919
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResizePanelComponent, "teta-resize-panel", never, { "size": { "alias": "size"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "grabPosition": { "alias": "grabPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
declare class AutoPositionDirective implements AfterViewInit, OnDestroy {
|
|
2923
|
+
private _elementRef;
|
|
2924
|
+
private _zone;
|
|
2925
|
+
align: Align;
|
|
2926
|
+
verticalAlign: VerticalAlign;
|
|
2927
|
+
fixed: string;
|
|
2928
|
+
private _alive;
|
|
2929
|
+
constructor(_elementRef: ElementRef, _zone: NgZone);
|
|
2930
|
+
ngAfterViewInit(): void;
|
|
2931
|
+
ngOnDestroy(): void;
|
|
2932
|
+
private setPosition;
|
|
2933
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoPositionDirective, never>;
|
|
2934
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoPositionDirective, "[tetaAutoPosition]", never, { "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; }, {}, never, never, true, never>;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
declare class ClickOutsideDirective implements OnDestroy {
|
|
2938
|
+
private _elementRef;
|
|
2939
|
+
private _ngZone;
|
|
2940
|
+
clickOutside: EventEmitter<MouseEvent>;
|
|
2941
|
+
rightClick: boolean;
|
|
2942
|
+
private _handleEvents;
|
|
2943
|
+
set tetaClickOutside(val: boolean);
|
|
2944
|
+
get tetaClickOutside(): boolean;
|
|
2945
|
+
constructor(_elementRef: ElementRef, _ngZone: NgZone);
|
|
2946
|
+
ngOnDestroy(): void;
|
|
2947
|
+
private addListener;
|
|
2948
|
+
private removeListener;
|
|
2949
|
+
private listener;
|
|
2950
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
2951
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[tetaClickOutside]", never, { "rightClick": { "alias": "rightClick"; "required": false; }; "tetaClickOutside": { "alias": "tetaClickOutside"; "required": false; }; }, { "clickOutside": "clickOutside"; }, never, never, true, never>;
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
declare abstract class DynamicContentBaseDirective implements OnDestroy {
|
|
2955
|
+
protected _document: Document;
|
|
2956
|
+
protected _elementRef: ElementRef<any>;
|
|
2957
|
+
protected _service: DynamicComponentService;
|
|
2958
|
+
protected _injector: Injector;
|
|
2959
|
+
protected _zone: NgZone;
|
|
2960
|
+
protected _cdr: ChangeDetectorRef;
|
|
2961
|
+
data: any;
|
|
2962
|
+
className?: string | string[];
|
|
2963
|
+
align: Align;
|
|
2964
|
+
verticalAlign: VerticalAlign;
|
|
2965
|
+
appendToBody: boolean;
|
|
2966
|
+
set open(open: boolean);
|
|
2967
|
+
openChange: EventEmitter<boolean>;
|
|
2968
|
+
protected _alive: boolean;
|
|
2969
|
+
protected _componentRef?: ComponentRef<any> | null;
|
|
2970
|
+
protected _content?: TetaContentRef;
|
|
2971
|
+
protected _open: boolean;
|
|
2972
|
+
protected abstract get _dynamicContent(): string | TemplateRef<any> | Type<any> | null | undefined;
|
|
2973
|
+
protected constructor();
|
|
2974
|
+
ngOnDestroy(): void;
|
|
2975
|
+
protected createContentRef<T>(className?: string | string[]): ComponentRef<T>;
|
|
2976
|
+
protected destroyContentRef(): void;
|
|
2977
|
+
protected abstract setPosition(): void;
|
|
2978
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentBaseDirective, never>;
|
|
2979
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicContentBaseDirective, never, never, { "data": { "alias": "data"; "required": false; }; "className": { "alias": "className"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, { "openChange": "openChange"; }, never, never, true, never>;
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
declare class ContextMenuDirective extends DynamicContentBaseDirective implements OnDestroy {
|
|
2983
|
+
private _click;
|
|
2984
|
+
/**
|
|
2985
|
+
* Строка, шаблон или компонент для создания контекстного меню
|
|
2986
|
+
*/
|
|
2987
|
+
tetaContextMenu: string | TemplateRef<any> | Type<any>;
|
|
2988
|
+
autoCloseIgnore: AutoCloseIgnoreCase[];
|
|
2989
|
+
get _dynamicContent(): string | Type<any> | TemplateRef<any>;
|
|
2990
|
+
private _eventPoint;
|
|
2991
|
+
constructor();
|
|
2992
|
+
showContent(event: MouseEvent): void;
|
|
2993
|
+
click(event: MouseEvent): void;
|
|
2994
|
+
documentClick(event: MouseEvent): void;
|
|
2995
|
+
protected addScrollListener(): void;
|
|
2996
|
+
protected removeScrollListener(): void;
|
|
2997
|
+
private scrollListener;
|
|
2998
|
+
ngOnDestroy(): void;
|
|
2999
|
+
protected setPosition(): void;
|
|
3000
|
+
private createMenu;
|
|
3001
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuDirective, never>;
|
|
3002
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[tetaContextMenu]", never, { "tetaContextMenu": { "alias": "tetaContextMenu"; "required": false; }; "autoCloseIgnore": { "alias": "autoCloseIgnore"; "required": false; }; }, {}, never, never, true, never>;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
declare class DisableControlDirective implements OnInit {
|
|
3006
|
+
private ngControl;
|
|
3007
|
+
private disabled;
|
|
3008
|
+
set tetaDisableControl(val: boolean);
|
|
3009
|
+
constructor(ngControl: NgControl);
|
|
3010
|
+
ngOnInit(): void;
|
|
3011
|
+
private toggleControl;
|
|
3012
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisableControlDirective, never>;
|
|
3013
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DisableControlDirective, "[tetaDisableControl]", never, { "tetaDisableControl": { "alias": "tetaDisableControl"; "required": false; }; }, {}, never, never, true, never>;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
declare class DragContainerInstance<T> {
|
|
3017
|
+
data: T[];
|
|
3018
|
+
previewTemplate: TemplateRef<any>;
|
|
3019
|
+
viewContainer: ViewContainerRef;
|
|
3020
|
+
constructor(options: {
|
|
3021
|
+
data: T[];
|
|
3022
|
+
previewTemplate: TemplateRef<any>;
|
|
3023
|
+
viewContainer: ViewContainerRef;
|
|
3024
|
+
});
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
declare class DragInstance<T> {
|
|
3028
|
+
container: DragContainerInstance<T>;
|
|
3029
|
+
data: T;
|
|
3030
|
+
constructor(options?: {
|
|
3031
|
+
container: DragContainerInstance<T>;
|
|
3032
|
+
data: T;
|
|
3033
|
+
});
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
interface DragSelection<T> {
|
|
3037
|
+
container: DragContainerInstance<T>;
|
|
3038
|
+
items: DragInstance<T>[];
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
type DropTarget<T> = DragInstance<T> | DragContainerInstance<T>;
|
|
3042
|
+
|
|
3043
|
+
interface DropEvent<T> {
|
|
3044
|
+
container: DragContainerInstance<T>;
|
|
3045
|
+
target: DropTarget<T>;
|
|
3046
|
+
data: DragInstance<T>[];
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
declare class DragDirective<T> implements OnInit, OnDestroy {
|
|
3050
|
+
private readonly _container;
|
|
3051
|
+
private readonly _dragService;
|
|
3052
|
+
private readonly _zone;
|
|
3053
|
+
private readonly _cdr;
|
|
3054
|
+
data: T;
|
|
3055
|
+
allowDrag: boolean;
|
|
3056
|
+
allowDrop: boolean;
|
|
3057
|
+
allowDropPredicate: (data: DragSelection<T>, target: T) => boolean;
|
|
3058
|
+
tetaDragEnter: EventEmitter<DragInstance<T>>;
|
|
3059
|
+
tetaDrop: EventEmitter<DropEvent<T>>;
|
|
3060
|
+
dropTarget: DropTarget<T>;
|
|
3061
|
+
instance: DragInstance<T>;
|
|
3062
|
+
get selection(): boolean;
|
|
3063
|
+
get isDropTarget(): boolean;
|
|
3064
|
+
private _alive;
|
|
3065
|
+
mousedown(event: MouseEvent | TouchEvent): void;
|
|
3066
|
+
mouseenter(event: MouseEvent): void;
|
|
3067
|
+
mouseleave(event: any): void;
|
|
3068
|
+
ngOnInit(): void;
|
|
3069
|
+
ngOnDestroy(): void;
|
|
3070
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragDirective<any>, never>;
|
|
3071
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDirective<any>, "[tetaDrag]", ["drag"], { "data": { "alias": "tetaDrag"; "required": false; }; "allowDrag": { "alias": "allowDrag"; "required": false; }; "allowDrop": { "alias": "allowDrop"; "required": false; }; "allowDropPredicate": { "alias": "allowDropPredicate"; "required": false; }; }, { "tetaDragEnter": "tetaDragEnter"; "tetaDrop": "tetaDrop"; }, never, never, true, never>;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
interface Point {
|
|
3075
|
+
x: number;
|
|
3076
|
+
y: number;
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
interface DragProcess<T> {
|
|
3080
|
+
selection: DragSelection<T>;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
declare class DragDropService<T> {
|
|
3084
|
+
private _document;
|
|
3085
|
+
private _rendererFactory;
|
|
3086
|
+
selection: DragSelection<T>;
|
|
3087
|
+
startPosition: Point;
|
|
3088
|
+
dragProcess: DragProcess<T>;
|
|
3089
|
+
dropTarget: Observable<DropTarget<T>>;
|
|
3090
|
+
dropped: Observable<DropEvent<T>>;
|
|
3091
|
+
private dropTarget$;
|
|
3092
|
+
private _delta;
|
|
3093
|
+
private _renderer;
|
|
3094
|
+
private _preview;
|
|
3095
|
+
private _previewRef;
|
|
3096
|
+
private dropped$;
|
|
3097
|
+
constructor(_document: Document, _rendererFactory: RendererFactory2);
|
|
3098
|
+
setDropTarget(target: DropTarget<T>): void;
|
|
3099
|
+
setStartPosition(point: Point): void;
|
|
3100
|
+
setSelection(instance: DragInstance<T>, container: DragContainerInstance<T>): void;
|
|
3101
|
+
addSelection(instance: DragInstance<T>, container: DragContainerInstance<T>): void;
|
|
3102
|
+
clearSelection(): void;
|
|
3103
|
+
cancelDrag(): void;
|
|
3104
|
+
startProcess(): void;
|
|
3105
|
+
stopProcess(): void;
|
|
3106
|
+
private getDelta;
|
|
3107
|
+
private createPreview;
|
|
3108
|
+
private movePreview;
|
|
3109
|
+
private destroyPreview;
|
|
3110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropService<any>, never>;
|
|
3111
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DragDropService<any>>;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
declare class DragContainerDirective<T> implements OnInit, OnDestroy {
|
|
3115
|
+
private _dragService;
|
|
3116
|
+
private _elementRef;
|
|
3117
|
+
private _viewContainerRef;
|
|
3118
|
+
private _zone;
|
|
3119
|
+
private _cdr;
|
|
3120
|
+
data: T[];
|
|
3121
|
+
multiple: boolean;
|
|
3122
|
+
allowDrop: boolean;
|
|
3123
|
+
tetaDrop: EventEmitter<DropEvent<T>>;
|
|
3124
|
+
tetaDragEnter: EventEmitter<DragInstance<T>>;
|
|
3125
|
+
private _previewTemplate;
|
|
3126
|
+
instance: DragContainerInstance<T>;
|
|
3127
|
+
dropTarget: DropTarget<T>;
|
|
3128
|
+
private _alive;
|
|
3129
|
+
get isDropTarget(): boolean;
|
|
3130
|
+
mouseleave(event: any): void;
|
|
3131
|
+
mouseover(event: any): void;
|
|
3132
|
+
escape(event: any): void;
|
|
3133
|
+
constructor(_dragService: DragDropService<T>, _elementRef: ElementRef, _viewContainerRef: ViewContainerRef, _zone: NgZone, _cdr: ChangeDetectorRef);
|
|
3134
|
+
ngOnInit(): void;
|
|
3135
|
+
ngOnDestroy(): void;
|
|
3136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragContainerDirective<any>, never>;
|
|
3137
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragContainerDirective<any>, "[tetaDragContainer]", ["dragContainer"], { "data": { "alias": "tetaDragContainer"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "allowDrop": { "alias": "allowDrop"; "required": false; }; }, { "tetaDrop": "tetaDrop"; "tetaDragEnter": "tetaDragEnter"; }, ["_previewTemplate"], never, true, never>;
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
declare class DragPlaceholderDirective {
|
|
3141
|
+
constructor();
|
|
3142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragPlaceholderDirective, never>;
|
|
3143
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragPlaceholderDirective, "[tetaDragPlaceholder]", never, {}, {}, never, never, true, never>;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
declare class DragPreviewDirective {
|
|
3147
|
+
templateRef: TemplateRef<any>;
|
|
3148
|
+
constructor(templateRef: TemplateRef<any>);
|
|
3149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragPreviewDirective, never>;
|
|
3150
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragPreviewDirective, "[tetaDragPreview]", never, {}, {}, never, never, true, never>;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
interface DragSortEvent<T> {
|
|
3154
|
+
previousIndex: number;
|
|
3155
|
+
newIndex: number;
|
|
3156
|
+
source: T;
|
|
3157
|
+
target: T;
|
|
3158
|
+
list: T[];
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
declare class DragSortContainerDirective<T> {
|
|
3162
|
+
dragSortList: T[];
|
|
3163
|
+
dragSorted: EventEmitter<DragSortEvent<T>>;
|
|
3164
|
+
private _dragItem;
|
|
3165
|
+
drop(event: DragEvent): void;
|
|
3166
|
+
setDragItem(item: T | null): void;
|
|
3167
|
+
getDragItem(): T | null;
|
|
3168
|
+
getList(): T[];
|
|
3169
|
+
setList(list: T[]): void;
|
|
3170
|
+
updateSortOrder(source: T, target: T, insertBefore: boolean): void;
|
|
3171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragSortContainerDirective<any>, never>;
|
|
3172
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragSortContainerDirective<any>, "[tetaDragSortContainer]", never, { "dragSortList": { "alias": "dragSortList"; "required": false; }; }, { "dragSorted": "dragSorted"; }, never, never, true, never>;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
declare class DragSortItemDirective<T> implements OnInit, OnDestroy {
|
|
3176
|
+
private readonly _container;
|
|
3177
|
+
private readonly _elementRef;
|
|
3178
|
+
private readonly _renderer;
|
|
3179
|
+
tetaDragSortItem: T;
|
|
3180
|
+
dragSortDirection: 'horizontal' | 'vertical';
|
|
3181
|
+
readonly draggable = true;
|
|
3182
|
+
readonly relative = true;
|
|
3183
|
+
private _dragElement;
|
|
3184
|
+
private rect;
|
|
3185
|
+
dragstart(event: DragEvent): void;
|
|
3186
|
+
dragenter(event: DragEvent): void;
|
|
3187
|
+
dragover(event: DragEvent): void;
|
|
3188
|
+
dragleave(event: DragEvent): void;
|
|
3189
|
+
dragend(event: DragEvent): void;
|
|
3190
|
+
drop(event: DragEvent): void;
|
|
3191
|
+
ngOnInit(): void;
|
|
3192
|
+
ngOnDestroy(): void;
|
|
3193
|
+
private showDrag;
|
|
3194
|
+
private hideDrag;
|
|
3195
|
+
private createDrag;
|
|
3196
|
+
private destroyDrag;
|
|
3197
|
+
private getDropPosition;
|
|
3198
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragSortItemDirective<any>, never>;
|
|
3199
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragSortItemDirective<any>, "[tetaDragSortItem]", never, { "tetaDragSortItem": { "alias": "tetaDragSortItem"; "required": false; }; "dragSortDirection": { "alias": "dragSortDirection"; "required": false; }; }, {}, never, never, true, never>;
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
declare class FullScreenDirective {
|
|
3203
|
+
private service;
|
|
3204
|
+
elementRef: ElementRef<any>;
|
|
3205
|
+
enter(): Promise<void>;
|
|
3206
|
+
exit(): Promise<void>;
|
|
3207
|
+
toggle(): Promise<void>;
|
|
3208
|
+
onEsc(ev: Event): Promise<void>;
|
|
3209
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenDirective, never>;
|
|
3210
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FullScreenDirective, "[tetaFullScreen]", never, {}, {}, never, never, true, never>;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
declare class FullScreenService {
|
|
3214
|
+
private active?;
|
|
3215
|
+
enter(el: Element): Promise<void>;
|
|
3216
|
+
exit(): Promise<void>;
|
|
3217
|
+
toggle(el: Element): Promise<void>;
|
|
3218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenService, never>;
|
|
3219
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FullScreenService>;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
declare class FullScreenToggleDirective {
|
|
3223
|
+
private fullScreen;
|
|
3224
|
+
onClick(): Promise<void>;
|
|
3225
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenToggleDirective, never>;
|
|
3226
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FullScreenToggleDirective, "[tetaFullScreenToggle]", never, {}, {}, never, never, true, never>;
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
declare class HighlightDirective {
|
|
3230
|
+
private elementRef;
|
|
3231
|
+
set tetaHighlight(text: string);
|
|
3232
|
+
private _initialElement;
|
|
3233
|
+
constructor(elementRef: ElementRef);
|
|
3234
|
+
private recursiveReplaceNode;
|
|
3235
|
+
private wrapNode;
|
|
3236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightDirective, never>;
|
|
3237
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightDirective, "[tetaHighlight]", never, { "tetaHighlight": { "alias": "tetaHighlight"; "required": false; }; }, {}, never, never, true, never>;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
declare class HintDirective extends DynamicContentBaseDirective implements OnDestroy {
|
|
3241
|
+
/**
|
|
3242
|
+
* Строка, шаблон или компонент для создания контекстного меню
|
|
3243
|
+
*/
|
|
3244
|
+
tetaHint?: string | TemplateRef<any> | Type<any>;
|
|
3245
|
+
align: Align;
|
|
3246
|
+
verticalAlign: VerticalAlign;
|
|
3247
|
+
delay: number;
|
|
3248
|
+
viewType: viewType;
|
|
3249
|
+
overflownOnly: boolean;
|
|
3250
|
+
get _dynamicContent(): string | Type<any> | TemplateRef<any>;
|
|
3251
|
+
private _timeout?;
|
|
3252
|
+
private _componentRect;
|
|
3253
|
+
constructor();
|
|
3254
|
+
mouseenter(): void;
|
|
3255
|
+
mouseleave(): void;
|
|
3256
|
+
click(event: MouseEvent): void;
|
|
3257
|
+
protected setPosition(): void;
|
|
3258
|
+
private createHint;
|
|
3259
|
+
ngOnDestroy(): void;
|
|
3260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HintDirective, never>;
|
|
3261
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HintDirective, "[tetaHint]", never, { "tetaHint": { "alias": "tetaHint"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "overflownOnly": { "alias": "overflownOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
declare class LoaderDirective implements OnDestroy {
|
|
3265
|
+
private _elementRef;
|
|
3266
|
+
private _renderer;
|
|
3267
|
+
private _document;
|
|
3268
|
+
protected _zone: NgZone;
|
|
3269
|
+
appendToBody: boolean;
|
|
3270
|
+
mask: boolean;
|
|
3271
|
+
set tetaLoader(value: boolean);
|
|
3272
|
+
get tetaLoader(): boolean;
|
|
3273
|
+
private _element;
|
|
3274
|
+
private _loader;
|
|
3275
|
+
private _mask;
|
|
3276
|
+
private _alive;
|
|
3277
|
+
private _loading;
|
|
3278
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2, _document: any, _zone: NgZone);
|
|
3279
|
+
ngOnDestroy(): void;
|
|
3280
|
+
private show;
|
|
3281
|
+
private hide;
|
|
3282
|
+
private setPosition;
|
|
3283
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderDirective, never>;
|
|
3284
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LoaderDirective, "[tetaLoader]", never, { "appendToBody": { "alias": "appendToBody"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "tetaLoader": { "alias": "tetaLoader"; "required": false; }; }, {}, never, never, true, never>;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
declare class OnlyNumberDirective {
|
|
3288
|
+
private _elementRef;
|
|
3289
|
+
private _control;
|
|
3290
|
+
tetaOnlyNumber: boolean;
|
|
3291
|
+
allowDecimals: boolean;
|
|
3292
|
+
allowSign: boolean;
|
|
3293
|
+
decimalSeparator: string;
|
|
3294
|
+
commaSeparator: string;
|
|
3295
|
+
onlyPositive: boolean;
|
|
3296
|
+
private _previousValue;
|
|
3297
|
+
private _integerUnsigned;
|
|
3298
|
+
private _integerSigned;
|
|
3299
|
+
private _decimalUnsigned;
|
|
3300
|
+
private _decimalSigned;
|
|
3301
|
+
private readonly _minusSign;
|
|
3302
|
+
constructor(_elementRef: ElementRef<HTMLInputElement>, _control: NgControl);
|
|
3303
|
+
onChange(e: any): void;
|
|
3304
|
+
onBlur(e: any): void;
|
|
3305
|
+
dblclick(e: any): void;
|
|
3306
|
+
onPaste(e: any): void;
|
|
3307
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
3308
|
+
validateValue(value: string): void;
|
|
3309
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumberDirective, never>;
|
|
3310
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumberDirective, "[tetaOnlyNumber]", never, { "tetaOnlyNumber": { "alias": "tetaOnlyNumber"; "required": false; }; "allowDecimals": { "alias": "allowDecimals"; "required": false; }; "allowSign": { "alias": "allowSign"; "required": false; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; }; "commaSeparator": { "alias": "commaSeparator"; "required": false; }; "onlyPositive": { "alias": "onlyPositive"; "required": false; }; }, {}, never, never, true, never>;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
declare class TooltipDirective extends DynamicContentBaseDirective implements OnDestroy, OnInit {
|
|
3314
|
+
private _click;
|
|
3315
|
+
/**
|
|
3316
|
+
* Строка, шаблон или компонент для создания контекстного меню
|
|
3317
|
+
*/
|
|
3318
|
+
tetaTooltip?: string | TemplateRef<any> | Type<any> | null | undefined;
|
|
3319
|
+
align: Align;
|
|
3320
|
+
verticalAlign: VerticalAlign;
|
|
3321
|
+
private _componentRect;
|
|
3322
|
+
get _dynamicContent(): string | Type<any> | TemplateRef<any>;
|
|
3323
|
+
showContent(event: MouseEvent): void;
|
|
3324
|
+
ngOnInit(): void;
|
|
3325
|
+
protected setPosition(): void;
|
|
3326
|
+
private createTooltip;
|
|
3327
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
3328
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tetaTooltip]", never, { "tetaTooltip": { "alias": "tetaTooltip"; "required": false; }; "align": { "alias": "align"; "required": false; }; "verticalAlign": { "alias": "verticalAlign"; "required": false; }; }, {}, never, never, true, never>;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
declare class NoAutofillDirective implements OnInit {
|
|
3332
|
+
private _renderer;
|
|
3333
|
+
private _elementRef;
|
|
3334
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
3335
|
+
ngOnInit(): void;
|
|
3336
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoAutofillDirective, never>;
|
|
3337
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NoAutofillDirective, "[tetaNoAutofill]", never, {}, {}, never, never, true, never>;
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
declare class ResizeDragDirective {
|
|
3341
|
+
private _document;
|
|
3342
|
+
tetaResizeDrag: 'horizontal' | 'vertical';
|
|
3343
|
+
resizeStart: EventEmitter<MouseEvent>;
|
|
3344
|
+
resizeProcess: EventEmitter<MouseEvent>;
|
|
3345
|
+
resizeEnd: EventEmitter<MouseEvent>;
|
|
3346
|
+
_active: boolean;
|
|
3347
|
+
get horizontal(): boolean;
|
|
3348
|
+
get vertical(): boolean;
|
|
3349
|
+
mouseDown(event: MouseEvent): void;
|
|
3350
|
+
private addListeners;
|
|
3351
|
+
private removeListeners;
|
|
3352
|
+
private handleMouseUp;
|
|
3353
|
+
private handleMouseMove;
|
|
3354
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeDragDirective, never>;
|
|
3355
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeDragDirective, "[tetaResizeDrag]", never, { "tetaResizeDrag": { "alias": "tetaResizeDrag"; "required": false; }; }, { "resizeStart": "resizeStart"; "resizeProcess": "resizeProcess"; "resizeEnd": "resizeEnd"; }, never, never, true, never>;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
declare class LetDirective<T> {
|
|
3359
|
+
tetaLet: T;
|
|
3360
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>);
|
|
3361
|
+
static ngTemplateContextGuard<T>(_dir: LetDirective<T>, _ctx: any): _ctx is LetDirective<Exclude<T, null | undefined>>;
|
|
3362
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
|
|
3363
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[tetaLet]", never, { "tetaLet": { "alias": "tetaLet"; "required": false; }; }, {}, never, never, true, never>;
|
|
3364
|
+
}
|
|
3365
|
+
declare class LetContext<T> implements ContextWithImplicit<T> {
|
|
3366
|
+
private readonly internalDirectiveInstance;
|
|
3367
|
+
constructor(internalDirectiveInstance: LetDirective<T>);
|
|
3368
|
+
get $implicit(): T;
|
|
3369
|
+
get tetaLet(): T;
|
|
3370
|
+
}
|
|
3371
|
+
interface ContextWithImplicit<T> {
|
|
3372
|
+
$implicit: T;
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
declare class ScrollableDirective {
|
|
3376
|
+
readonly hideScrollClass = true;
|
|
3377
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableDirective, never>;
|
|
3378
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableDirective, "[tetaScrollable]", never, {}, {}, never, never, true, never>;
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
type ScrollDimensions = {
|
|
3382
|
+
clientHeight: number;
|
|
3383
|
+
clientWidth: number;
|
|
3384
|
+
scrollHeight: number;
|
|
3385
|
+
scrollWidth: number;
|
|
3386
|
+
};
|
|
3387
|
+
declare class ScrollableComponent implements OnInit, OnDestroy {
|
|
3388
|
+
private _scrollDirective;
|
|
3389
|
+
private _scrollableWrapper;
|
|
3390
|
+
private _scrollbarVertical;
|
|
3391
|
+
private _scrollbarHorizontal;
|
|
3392
|
+
direction: 'row' | 'column';
|
|
3393
|
+
showScrollbars: boolean;
|
|
3394
|
+
contentClass: string | string[];
|
|
3395
|
+
scroll: EventEmitter<Event>;
|
|
3396
|
+
private _scrollSize;
|
|
3397
|
+
scrollSize: Observable<ScrollDimensions>;
|
|
3398
|
+
private _container;
|
|
3399
|
+
private _alive;
|
|
3400
|
+
private resizeObserver;
|
|
3401
|
+
private mutationObserver;
|
|
3402
|
+
constructor();
|
|
3403
|
+
private _observe;
|
|
3404
|
+
scrollVertical(event: any): void;
|
|
3405
|
+
scrollHorizontal(event: any): void;
|
|
3406
|
+
ngOnInit(): void;
|
|
3407
|
+
ngOnDestroy(): void;
|
|
3408
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableComponent, never>;
|
|
3409
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "teta-scrollable", never, { "direction": { "alias": "direction"; "required": false; }; "showScrollbars": { "alias": "showScrollbars"; "required": false; }; "contentClass": { "alias": "contentClass"; "required": false; }; }, { "scroll": "scroll"; }, ["_scrollDirective"], ["*"], true, never>;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
declare class ScrollIntoViewDirective implements OnChanges {
|
|
3413
|
+
private platformId;
|
|
3414
|
+
private elementRef;
|
|
3415
|
+
tetaScrollIntoView: boolean | undefined;
|
|
3416
|
+
behavior: ScrollBehavior;
|
|
3417
|
+
block: ScrollLogicalPosition;
|
|
3418
|
+
constructor(platformId: any, elementRef: ElementRef);
|
|
3419
|
+
ngOnChanges(simpleChange: SimpleChanges): void;
|
|
3420
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollIntoViewDirective, never>;
|
|
3421
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollIntoViewDirective, "[tetaScrollIntoView]", never, { "tetaScrollIntoView": { "alias": "tetaScrollIntoView"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "block": { "alias": "block"; "required": false; }; }, {}, never, never, true, never>;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
declare class NumberPipe implements PipeTransform {
|
|
3425
|
+
transform(value: number | string | null | undefined, decimalLength?: number, chunkDelimiter?: string, decimalDelimiter?: string, chunkLength?: number): string;
|
|
3426
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberPipe, never>;
|
|
3427
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumberPipe, "tetaNumber", true>;
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
declare class PrependZeroPipe implements PipeTransform {
|
|
3431
|
+
transform(value: number, length: number): string;
|
|
3432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrependZeroPipe, never>;
|
|
3433
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PrependZeroPipe, "tetaPrependZero", true>;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
declare class TetaDatePipe implements PipeTransform {
|
|
3437
|
+
private _transloco;
|
|
3438
|
+
dateFormatMap: Map<string, string>;
|
|
3439
|
+
constructor(_transloco: TranslocoService);
|
|
3440
|
+
transform(value: Date, format?: string, timez?: string, locale?: string): string;
|
|
3441
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TetaDatePipe, never>;
|
|
3442
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TetaDatePipe, "tetaDate", true>;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
declare const getPrecision: (a: number) => number;
|
|
3446
|
+
declare const formatNumber: (value: any, decimalLength: number, chunkDelimiter: string, decimalDelimiter: string, chunkLength: number) => string;
|
|
3447
|
+
declare const prependZero: (input: number, length: number) => string;
|
|
3448
|
+
|
|
3449
|
+
type Ctor<T> = new (...params: any[]) => T;
|
|
3450
|
+
|
|
3451
|
+
interface IId {
|
|
3452
|
+
id: any;
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
interface IRect {
|
|
3456
|
+
top?: number;
|
|
3457
|
+
bottom?: number;
|
|
3458
|
+
left?: number;
|
|
3459
|
+
right?: number;
|
|
3460
|
+
maxHeight?: number;
|
|
3461
|
+
minWidth?: number;
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
declare class ClickService {
|
|
3465
|
+
protected _document: any;
|
|
3466
|
+
click: Observable<MouseEvent>;
|
|
3467
|
+
contextMenu: Observable<MouseEvent>;
|
|
3468
|
+
constructor(_document: any);
|
|
3469
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickService, never>;
|
|
3470
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClickService>;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
declare class OverlayContainerService implements OnDestroy {
|
|
3474
|
+
private document$;
|
|
3475
|
+
private _containerClass;
|
|
3476
|
+
private _container?;
|
|
3477
|
+
constructor(document$: any);
|
|
3478
|
+
getContainer(): HTMLElement | undefined;
|
|
3479
|
+
private createContainer;
|
|
3480
|
+
private removeContainer;
|
|
3481
|
+
ngOnDestroy(): void;
|
|
3482
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainerService, never>;
|
|
3483
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainerService>;
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
declare class ArrayUtil {
|
|
3487
|
+
static asArray<T>(value: T | T[]): T[];
|
|
3488
|
+
static flatten(data: any[], children?: string | ((item: any) => any[]), onlyLeafs?: boolean): any[];
|
|
3489
|
+
static findRecursive(tree: any[], comparer: (iterableNode: any) => boolean, children?: string): any;
|
|
3490
|
+
static filterRecursive(array: any[], filter: (item: any) => boolean, children?: string, keepChildren?: boolean, fullscanChildren?: boolean): any;
|
|
3491
|
+
static distinct<T>(array: T[], comparator: (item: T) => any): T[];
|
|
3492
|
+
static findParents(tree: any[], item: any): any[] | null;
|
|
3493
|
+
static moveItem(list: any[], sourceIndex: number, targetIndex: number): any[];
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
declare class DomUtil {
|
|
3497
|
+
static clickedInside(target: HTMLElement | undefined | null, event: MouseEvent): boolean;
|
|
3498
|
+
static findTransformedParent(node: HTMLElement): HTMLElement;
|
|
3499
|
+
static isOverflown(element: HTMLElement): boolean;
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3502
|
+
declare class PositionUtil {
|
|
3503
|
+
static getPosition(containerPosition: IRect, elementPosition: IRect, align: Align, verticalAlign: VerticalAlign, margin?: number, verticalMargin?: number, transformedParentRect?: IRect): IRect;
|
|
3504
|
+
static setElementPosition(element: HTMLElement, rect: IRect): void;
|
|
3505
|
+
static getMaxHeight(position: IRect): number | null;
|
|
3506
|
+
static getMaxWidth(position: IRect): number | null;
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
declare function boolOrFuncCallback<M>(variable: boolean | ((row: M | undefined) => boolean)): (args: M) => boolean;
|
|
3510
|
+
|
|
3511
|
+
declare class DateUtil {
|
|
3512
|
+
/**
|
|
3513
|
+
* Вычесть n-дней
|
|
3514
|
+
*/
|
|
3515
|
+
static subtractDays(date: Date, days?: number): Date | null;
|
|
3516
|
+
/**
|
|
3517
|
+
* Добавить n-дней
|
|
3518
|
+
*/
|
|
3519
|
+
static addDays(date: Date, days?: number): Date | null;
|
|
3520
|
+
/**
|
|
3521
|
+
* Получить дату из строки
|
|
3522
|
+
*/
|
|
3523
|
+
static parseString(dat: string): Date | null;
|
|
3524
|
+
/**
|
|
3525
|
+
* Привести дату к строке
|
|
3526
|
+
*/
|
|
3527
|
+
static toString(dat: Date): string;
|
|
3528
|
+
/**
|
|
3529
|
+
* Привести дату к строке без часов и минут
|
|
3530
|
+
*/
|
|
3531
|
+
static toShortString(dat: Date): string;
|
|
3532
|
+
/**
|
|
3533
|
+
* Подготовка даты к отправке на сервер, чтобы небыло смещения часов
|
|
3534
|
+
*/
|
|
3535
|
+
static convertUTC2DateLocal(date?: Date): Date | null;
|
|
3536
|
+
/**
|
|
3537
|
+
* Подготовка даты к отправке на сервер, чтобы небыло смещения часов
|
|
3538
|
+
*/
|
|
3539
|
+
static convertDateLocal2UTC(date?: Date): Date | null;
|
|
3540
|
+
static convertDateStringsToDates(input: any): any;
|
|
3541
|
+
static convertDates(input: any | any[]): any | any[];
|
|
3542
|
+
static getMonthDaysCount(date: Date): number;
|
|
3543
|
+
static getRangeOfMonths(start: Date, end: Date): Date[];
|
|
3544
|
+
static truncateToMonth(date: Date): Date;
|
|
3545
|
+
static truncateToDay(date: Date): Date;
|
|
3546
|
+
static truncateToHour(date: Date): Date;
|
|
3547
|
+
static toISOString(date: number): string;
|
|
3548
|
+
static isValidDate(date: any): boolean;
|
|
3549
|
+
static millisecondToHumanFormat(milliSeconds: number, maxValue?: number, showDays?: boolean): string;
|
|
3550
|
+
private static fillConvertDates;
|
|
3551
|
+
private static fillConvertDateStringsToDates;
|
|
3552
|
+
private static convertStringToLocalDate;
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
declare enum ExportType {
|
|
3556
|
+
png = 0,
|
|
3557
|
+
svg = 1,
|
|
3558
|
+
jpeg = 2,
|
|
3559
|
+
blob = 3,
|
|
3560
|
+
canvas = 4,
|
|
3561
|
+
pixelData = 5
|
|
3562
|
+
}
|
|
3563
|
+
type ExportOptions = {
|
|
3564
|
+
filter: (node: HTMLElement) => boolean;
|
|
3565
|
+
};
|
|
3566
|
+
declare const exportDomToImage: (node: HTMLElement, type?: ExportType, options?: ExportOptions) => any;
|
|
3567
|
+
|
|
3568
|
+
declare class FormsUtil {
|
|
3569
|
+
static validateAllFormFields(formGroup: UntypedFormGroup): void;
|
|
3570
|
+
static controlIsInvalid(formGroup: UntypedFormGroup, controlName: string): boolean;
|
|
3571
|
+
static getControlErrors(formGroup: UntypedFormGroup, controlName: string): string[];
|
|
3572
|
+
static matchValuesValidator(matchTo: string): (control: AbstractControl) => ValidationErrors | null;
|
|
3573
|
+
static requiredIf(value: boolean): (control: AbstractControl) => ValidationErrors | null;
|
|
3574
|
+
static initFormFromColumns(columns: TableColumn[], dataItem: any): UntypedFormGroup;
|
|
3575
|
+
static initControlFromColumn(column: TableColumn, dataItem: any): UntypedFormControl;
|
|
3576
|
+
static getValidators(column: TableColumn): any[];
|
|
3577
|
+
static validatorNotEmpty(control: AbstractControl): ValidationErrors | null;
|
|
3578
|
+
static formProvider: Provider;
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
declare function isFunction(obj: any): boolean;
|
|
3582
|
+
|
|
3583
|
+
declare class StringUtil {
|
|
3584
|
+
static firstLetterToLower(input: string): string;
|
|
3585
|
+
static firstLetterToUpper(input: string): string;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
declare const ruLocale: TetaLocalisation;
|
|
3589
|
+
|
|
3590
|
+
declare const enLocale: TetaLocalisation;
|
|
3591
|
+
|
|
3592
|
+
declare const ANIMATION_FRAME: InjectionToken<Observable<number>>;
|
|
3593
|
+
declare const WINDOW: InjectionToken<Window>;
|
|
3594
|
+
|
|
3595
|
+
declare function tetaZoneFull<T>(ngZone: NgZone): MonoTypeOperatorFunction<T>;
|
|
3596
|
+
declare function tetaZoneFree<T>(ngZone: NgZone): MonoTypeOperatorFunction<T>;
|
|
3597
|
+
declare function tetaZoneOptimized<T>(ngZone: NgZone): MonoTypeOperatorFunction<T>;
|
|
3598
|
+
|
|
3599
|
+
export { ANIMATION_FRAME, AccordionComponent, AccordionContentDirective, AccordionHeadComponent, AccordionItemComponent, AggregationType, Align, ArrayUtil, AutoPositionDirective, AutocompleteComponent, AvatarComponent, BooleanCellComponent, BooleanFilter, BooleanFilterComponent, ButtonComponent, CHECKBOX_CONTROL_VALUE_ACCESSOR, CellComponent, CellComponentBase, CellHostComponent, Chart3dComponent, Chart3dOptions, CheckboxComponent, ClickOutsideDirective, ClickService, ColorCellComponent, ColorInputComponent, ColorUtil, ColumnReorderEvent, ColumnResizeEvent, ContextMenuDirective, CurrentModal, DATE_PICKER_CONTROL_VALUE_ACCESSOR, DATE_Range_CONTROL_VALUE_ACCESSOR, DateCalendarComponent, DateCellComponent, DateFilter, DateFilterComponent, DateFilterValue, DatePeriod, DatePickerComponent, DatePickerMode, DateRangeComponent, DateTimeCellComponent, DateUtil, DayModel, DelimiterComponent, DetailComponentBase, DialogComponent, DialogService, DisableControlDirective, DividerComponent, DomUtil, DragContainerDirective, DragContainerInstance, DragDirective, DragDropService, DragInstance, DragPlaceholderDirective, DragPreviewDirective, DragSortContainerDirective, DragSortItemDirective, DropdownComponent, DropdownContentDirective, DropdownDirective, DropdownHeadDirective, DynamicComponentService, DynamicContentBaseDirective, DynamicData, EditEvent, EditType, ExpandCardComponent, ExpandItemComponent, ExpandPanelComponent, ExpandPanelContentDirective, ExpandPanelHeadDirective, ExportType, FileItemComponent, FileUploadAreaComponent, FilterBase, FilterComponentBase, FilterHostComponent, FilterItem, FilterState, FilterType, FormGroupTitleComponent, FormsUtil, FullScreenDirective, FullScreenService, FullScreenToggleDirective, HeadCellComponentBase, HeadCellHostComponent, HighlightDirective, HintDirective, IconComponent, IconFileComponent, IconService, IconSpriteDirective, InputComponent, LetContext, LetDirective, ListCellComponent, ListFilter, ListFilterComponent, ListFilterType, LoaderDirective, Message, MessageComponent, MessageHostComponent, MessageService, ModalCloseReason, ModalContainerComponent, ModalInstance, ModalModule, ModalService, NoAutofillDirective, NumberPipe, NumericCellComponent, NumericFilter, NumericFilterComponent, NumericFilterValue, OnlyNumberDirective, OverlayContainerService, PagerComponent, PagerState, PagerUtil, PanelComponent, PopupContentComponent, PositionUtil, PrependZeroPipe, ProgressBarComponent, PropertyGridComponent, PropertyGridItemComponent, PropertyGridItemDescriptionDirective, RadioButtonComponent, RadioComponent, RangeCalendarComponent, ResizeDragDirective, ResizePanelComponent, SLIDER_CONTROL_VALUE_ACCESSOR, SWITCH_CONTROL_VALUE_ACCESSOR, ScrollIntoViewDirective, ScrollableComponent, ScrollableDirective, SelectComponent, SelectOptionDirective, SelectType, SelectValueDirective, Series3d, SidebarComponent, SidebarPosition, SortEvent, SortParam, StateUtil, StepperComponent, StringCellComponent, StringFilter, StringFilterComponent, StringFilterType, StringUtil, SwitchButtonComponent, SwitchComponent, TOGGLE_CONTROL_VALUE_ACCESSOR, TabComponent, TabContentDirective, TabTitleDirective, TableBodyComponent, TableColumn, TableColumnStore, TableComponent, TableHeadComponent, TableRow, TableRowComponent, TableService, TableUtil, TabsComponent, TetaConfigService, TetaContentRef, TetaDatePipe, TetaSize, TetaTemplateDirective, TextFieldComponent, ThemeSwitchComponent, ThemeSwitchService, ToggleComponent, ToolbarComponent, TooltipDirective, TreeComponent, TreeItemToggleComponent, TreeService, VerticalAlign, WINDOW, boolOrFuncCallback, enLocale, exportDomToImage, formatNumber, getCellComponent, getPrecision, isFunction, prependZero, ruLocale, tetaZoneFree, tetaZoneFull, tetaZoneOptimized };
|
|
3600
|
+
export type { AutoCloseIgnoreCase, Base3dPoint, ButtonViewType, ContextWithImplicit, Ctor, DateFromToModel, DragProcess, DragSelection, DragSortEvent, DropEvent, DropTarget, ExportOptions, HeadDropdownTab, HeadDropdownTabConfig, ICellCoordinates, ICellEvent, ICellInstance, ICellInstanceEvent, ICellInstanceValue, ICellValue, IColumnRow, IDictionary, IFilter, IFilterItemOptions, IId, IIdName, IModalConfig, IModalResult, IRect, ITabChangeEvent, ITableColumnOptions, ITreeData, IntersectionResult, MinMaxDateModel, Point, TetaLocalisation, WellMeshData, viewType };
|