@seniorsistemas/data-seniorx-core 2.3.0 → 3.0.0
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/core/constants/autocomplete.const.d.ts +4 -0
- package/core/constants/context-selector.const.d.ts +1 -0
- package/core/constants/gantt.const.d.ts +7 -0
- package/core/constants/hyperlink.const.d.ts +1 -0
- package/core/constants/inline-edit.const.d.ts +4 -0
- package/core/constants/kanban.const.d.ts +2 -0
- package/core/constants/pin-code-field.const.d.ts +5 -0
- package/core/constants/rating-scale.const.d.ts +1 -0
- package/core/constants/spotlight.const.d.ts +8 -0
- package/core/constants/star-rating.const.d.ts +4 -0
- package/core/constants/stepper.const.d.ts +1 -0
- package/core/constants/tiered-menu.const.d.ts +3 -0
- package/core/types/autocomplete.type.d.ts +9 -0
- package/core/types/chat.type.d.ts +12 -0
- package/core/types/checkbox-list.type.d.ts +12 -0
- package/core/types/gantt.type.d.ts +22 -0
- package/core/types/grid-menu.type.d.ts +13 -0
- package/core/types/hyperlink.type.d.ts +1 -0
- package/core/types/image-cropper.type.d.ts +20 -0
- package/core/types/inline-edit.type.d.ts +26 -0
- package/core/types/kanban.type.d.ts +36 -0
- package/core/types/panel.type.d.ts +16 -0
- package/core/types/profile-picture-picker.type.d.ts +9 -0
- package/core/types/rating-scale.type.d.ts +5 -0
- package/core/types/select-button.type.d.ts +1 -0
- package/core/types/spotlight.type.d.ts +34 -0
- package/core/types/star-rating.type.d.ts +1 -0
- package/core/types/stepper.type.d.ts +20 -0
- package/core/types/table-column.type.d.ts +3 -1
- package/core/types/table-options.type.d.ts +8 -2
- package/core/types/table.type.d.ts +1 -1
- package/core/types/tiered-menu.type.d.ts +16 -0
- package/core/types/tree.type.d.ts +25 -0
- package/core/types/workspace-switch.type.d.ts +6 -0
- package/core/utils/body-scroll.util.d.ts +2 -0
- package/core/utils/roving-focus.util.d.ts +2 -0
- package/core/utils/selection.util.d.ts +3 -0
- package/core/utils/tree.util.d.ts +4 -0
- package/esm2022/core/constants/autocomplete.const.mjs +5 -0
- package/esm2022/core/constants/context-selector.const.mjs +2 -0
- package/esm2022/core/constants/gantt.const.mjs +7 -0
- package/esm2022/core/constants/hyperlink.const.mjs +2 -1
- package/esm2022/core/constants/inline-edit.const.mjs +5 -0
- package/esm2022/core/constants/kanban.const.mjs +3 -0
- package/esm2022/core/constants/pin-code-field.const.mjs +6 -0
- package/esm2022/core/constants/rating-scale.const.mjs +2 -0
- package/esm2022/core/constants/spotlight.const.mjs +9 -0
- package/esm2022/core/constants/star-rating.const.mjs +5 -0
- package/esm2022/core/constants/stepper.const.mjs +2 -0
- package/esm2022/core/constants/table.const.mjs +2 -2
- package/esm2022/core/constants/tiered-menu.const.mjs +4 -0
- package/esm2022/core/types/autocomplete.type.mjs +2 -0
- package/esm2022/core/types/chat.type.mjs +2 -0
- package/esm2022/core/types/checkbox-list.type.mjs +2 -0
- package/esm2022/core/types/gantt.type.mjs +2 -0
- package/esm2022/core/types/grid-menu.type.mjs +2 -0
- package/esm2022/core/types/hyperlink.type.mjs +1 -1
- package/esm2022/core/types/image-cropper.type.mjs +2 -0
- package/esm2022/core/types/inline-edit.type.mjs +2 -0
- package/esm2022/core/types/kanban.type.mjs +2 -0
- package/esm2022/core/types/panel.type.mjs +9 -0
- package/esm2022/core/types/profile-picture-picker.type.mjs +2 -0
- package/esm2022/core/types/rating-scale.type.mjs +2 -0
- package/esm2022/core/types/select-button.type.mjs +1 -1
- package/esm2022/core/types/spotlight.type.mjs +2 -0
- package/esm2022/core/types/star-rating.type.mjs +2 -0
- package/esm2022/core/types/stepper.type.mjs +7 -0
- package/esm2022/core/types/table-column.type.mjs +1 -1
- package/esm2022/core/types/table-options.type.mjs +1 -1
- package/esm2022/core/types/table.type.mjs +1 -1
- package/esm2022/core/types/tiered-menu.type.mjs +2 -0
- package/esm2022/core/types/tree.type.mjs +2 -0
- package/esm2022/core/types/workspace-switch.type.mjs +2 -0
- package/esm2022/core/utils/body-scroll.util.mjs +19 -0
- package/esm2022/core/utils/combobox.util.mjs +3 -2
- package/esm2022/core/utils/roving-focus.util.mjs +20 -0
- package/esm2022/core/utils/selection.util.mjs +13 -0
- package/esm2022/core/utils/string.util.mjs +8 -3
- package/esm2022/core/utils/tree.util.mjs +23 -0
- package/esm2022/features/accordion/accordion.component.mjs +2 -2
- package/esm2022/features/accordion/{accordion-item.component.mjs → components/accordion-item/accordion-item.component.mjs} +7 -7
- package/esm2022/features/autocomplete/autocomplete.component.mjs +501 -0
- package/esm2022/features/autocomplete/components/autocomplete-chip/autocomplete-chip.component.mjs +30 -0
- package/esm2022/features/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2022/features/card-list/card/card.component.mjs +63 -99
- package/esm2022/features/chat/chat.component.mjs +126 -0
- package/esm2022/features/checkbox-list/checkbox-list.component.mjs +125 -0
- package/esm2022/features/combobox/combobox.component.mjs +20 -8
- package/esm2022/features/context-selector/context-selector.component.mjs +198 -0
- package/esm2022/features/filters/filters.component.mjs +1 -1
- package/esm2022/features/gantt/components/gantt-side-table/gantt-side-table.component.mjs +17 -0
- package/esm2022/features/gantt/gantt-date.utils.mjs +97 -0
- package/esm2022/features/gantt/gantt.component.mjs +89 -0
- package/esm2022/features/gantt/gantt.engine.mjs +662 -0
- package/esm2022/features/grid-menu/grid-menu.component.mjs +104 -0
- package/esm2022/features/hyperlink/hyperlink.component.mjs +7 -4
- package/esm2022/features/icon-picker/icon-picker.component.mjs +3 -3
- package/esm2022/features/image-cropper/image-cropper.component.mjs +218 -0
- package/esm2022/features/image-cropper/services/image-cropper.service.mjs +50 -0
- package/esm2022/features/infinite-scroll/infinite-scroll.directive.mjs +89 -0
- package/esm2022/features/info-sign/info-sign.component.mjs +3 -3
- package/esm2022/features/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.mjs +38 -0
- package/esm2022/features/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.mjs +29 -0
- package/esm2022/features/inline-edit/components/fields/inline-edit-textarea/inline-edit-textarea.component.mjs +29 -0
- package/esm2022/features/inline-edit/components/inline-edit-item/inline-edit-item.component.mjs +131 -0
- package/esm2022/features/inline-edit/fields/inline-edit-field.mjs +17 -0
- package/esm2022/features/inline-edit/fields/inline-edit-number-field.mjs +15 -0
- package/esm2022/features/inline-edit/fields/inline-edit-text-field.mjs +11 -0
- package/esm2022/features/inline-edit/fields/inline-edit-textarea-field.mjs +15 -0
- package/esm2022/features/inline-edit/inline-edit.component.mjs +27 -0
- package/esm2022/features/interactive-content/interactive-content.directive.mjs +140 -0
- package/esm2022/features/kanban/components/kanban-column/kanban-column.component.mjs +88 -0
- package/esm2022/features/kanban/components/kanban-item/kanban-item.component.mjs +72 -0
- package/esm2022/features/kanban/components/kanban-item-dragging/kanban-item-dragging.component.mjs +19 -0
- package/esm2022/features/kanban/directives/kanban-template.directive.mjs +22 -0
- package/esm2022/features/kanban/kanban.component.mjs +198 -0
- package/esm2022/features/kanban/services/kanban-event.service.mjs +27 -0
- package/esm2022/features/loading-state/loading-state.component.mjs +3 -62
- package/esm2022/features/mouse-events/directives/double-click.directive.mjs +34 -0
- package/esm2022/features/mouse-events/directives/long-press.directive.mjs +61 -0
- package/esm2022/features/paginator/paginator.component.mjs +8 -3
- package/esm2022/features/panel/panel.component.mjs +43 -11
- package/esm2022/features/pin-code-field/pin-code-field.component.mjs +234 -0
- package/esm2022/features/profile-picture-picker/profile-picture-picker.component.mjs +330 -0
- package/esm2022/features/rating-scale/rating-scale.component.mjs +86 -0
- package/esm2022/features/row-card-list/row-card/row-card.component.mjs +3 -3
- package/esm2022/features/scaffold/scaffold.component.mjs +4 -6
- package/esm2022/features/select-button/select-button.component.mjs +7 -4
- package/esm2022/features/speech-recognition/services/speech-recognition.service.mjs +148 -0
- package/esm2022/features/speech-recognition/services/text-to-speech.service.mjs +88 -0
- package/esm2022/features/speech-recognition/speech-recognition.component.mjs +243 -0
- package/esm2022/features/spotlight/components/spotlight-overlay/spotlight-overlay.component.mjs +521 -0
- package/esm2022/features/spotlight/directives/spotlight-step.directive.mjs +38 -0
- package/esm2022/features/spotlight/services/spotlight-tour.service.mjs +179 -0
- package/esm2022/features/spotlight/spotlight.component.mjs +160 -0
- package/esm2022/features/star-rating/star-rating.component.mjs +95 -0
- package/esm2022/features/stepper/stepper.component.mjs +86 -0
- package/esm2022/features/switch/switch.component.mjs +12 -8
- package/esm2022/features/tab/{tab-item.component.mjs → components/tab-item/tab-item.component.mjs} +1 -1
- package/esm2022/features/tab/tab.component.mjs +4 -4
- package/esm2022/features/table/components/table-cell-content.component.mjs +14 -5
- package/esm2022/features/table/table.component.mjs +220 -29
- package/esm2022/features/table/utils/table-data.util.mjs +71 -8
- package/esm2022/features/table/utils/table-layout.util.mjs +21 -1
- package/esm2022/features/tiered-menu/components/tiered-menu/tiered-menu.component.mjs +367 -0
- package/esm2022/features/tiered-menu/components/tiered-menu-divider/tiered-menu-divider.component.mjs +11 -0
- package/esm2022/features/tiered-menu/components/tiered-menu-item/tiered-menu-item.component.mjs +97 -0
- package/esm2022/features/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.mjs +181 -0
- package/esm2022/features/tiered-menu/directives/tiered-menu.directive.mjs +246 -0
- package/esm2022/features/tiered-menu/services/tiered-menu.event.service.mjs +16 -0
- package/esm2022/features/tiered-menu/services/tiered-menu.global.service.mjs +12 -0
- package/esm2022/features/tiered-menu/services/tiered-menu.service.mjs +49 -0
- package/esm2022/features/tree/components/tree-node-item/tree-node-item.component.mjs +169 -0
- package/esm2022/features/tree/tree.component.mjs +211 -0
- package/esm2022/features/visual-sql-editor/components/visual-sql-editor-field-modal/visual-sql-editor-field-modal.component.mjs +41 -0
- package/esm2022/features/visual-sql-editor/components/visual-sql-editor-filter-modal/visual-sql-editor-filter-modal.component.mjs +38 -0
- package/esm2022/features/visual-sql-editor/components/visual-sql-editor-join-modal/visual-sql-editor-join-modal.component.mjs +29 -0
- package/esm2022/features/visual-sql-editor/components/visual-sql-editor-sort-modal/visual-sql-editor-sort-modal.component.mjs +29 -0
- package/esm2022/features/visual-sql-editor/components/visual-sql-editor-source-modal/visual-sql-editor-source-modal.component.mjs +35 -0
- package/esm2022/features/visual-sql-editor/services/visual-sql-editor-flow.service.mjs +106 -0
- package/esm2022/features/visual-sql-editor/services/visual-sql-editor-state.service.mjs +230 -0
- package/esm2022/features/visual-sql-editor/types/visual-sql-editor.types.mjs +2 -0
- package/esm2022/features/visual-sql-editor/utils/visual-sql-editor-sanitize.util.mjs +72 -0
- package/esm2022/features/visual-sql-editor/utils/visual-sql-editor-sql.util.mjs +281 -0
- package/esm2022/features/visual-sql-editor/utils/visual-sql-editor-text.util.mjs +37 -0
- package/esm2022/features/visual-sql-editor/utils/visual-sql-editor.constants.mjs +89 -0
- package/esm2022/features/visual-sql-editor/visual-sql-editor.component.mjs +172 -630
- package/esm2022/locales/en.json +351 -3
- package/esm2022/locales/es-CO.json +351 -3
- package/esm2022/locales/pt.json +351 -3
- package/esm2022/providers/features.provider.mjs +40 -4
- package/esm2022/public-api.mjs +56 -3
- package/features/accordion/accordion.component.d.ts +1 -1
- package/features/accordion/{accordion-item.component.d.ts → components/accordion-item/accordion-item.component.d.ts} +1 -1
- package/features/autocomplete/autocomplete.component.d.ts +102 -0
- package/features/autocomplete/components/autocomplete-chip/autocomplete-chip.component.d.ts +11 -0
- package/features/card-list/card/card.component.d.ts +14 -34
- package/features/chat/chat.component.d.ts +31 -0
- package/features/checkbox-list/checkbox-list.component.d.ts +26 -0
- package/features/combobox/combobox.component.d.ts +2 -1
- package/features/context-selector/context-selector.component.d.ts +37 -0
- package/features/gantt/components/gantt-side-table/gantt-side-table.component.d.ts +8 -0
- package/features/gantt/gantt-date.utils.d.ts +36 -0
- package/features/gantt/gantt.component.d.ts +24 -0
- package/features/gantt/gantt.engine.d.ts +52 -0
- package/features/grid-menu/grid-menu.component.d.ts +29 -0
- package/features/hyperlink/hyperlink.component.d.ts +2 -1
- package/features/image-cropper/image-cropper.component.d.ts +43 -0
- package/features/image-cropper/services/image-cropper.service.d.ts +13 -0
- package/features/infinite-scroll/infinite-scroll.directive.d.ts +25 -0
- package/features/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.d.ts +13 -0
- package/features/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.d.ts +13 -0
- package/features/inline-edit/components/fields/inline-edit-textarea/inline-edit-textarea.component.d.ts +13 -0
- package/features/inline-edit/components/inline-edit-item/inline-edit-item.component.d.ts +37 -0
- package/features/inline-edit/fields/inline-edit-field.d.ts +12 -0
- package/features/inline-edit/fields/inline-edit-number-field.d.ts +9 -0
- package/features/inline-edit/fields/inline-edit-text-field.d.ts +7 -0
- package/features/inline-edit/fields/inline-edit-textarea-field.d.ts +9 -0
- package/features/inline-edit/inline-edit.component.d.ts +13 -0
- package/features/interactive-content/interactive-content.directive.d.ts +31 -0
- package/features/kanban/components/kanban-column/kanban-column.component.d.ts +22 -0
- package/features/kanban/components/kanban-item/kanban-item.component.d.ts +23 -0
- package/features/kanban/components/kanban-item-dragging/kanban-item-dragging.component.d.ts +8 -0
- package/features/kanban/directives/kanban-template.directive.d.ts +10 -0
- package/features/kanban/kanban.component.d.ts +32 -0
- package/features/kanban/services/kanban-event.service.d.ts +15 -0
- package/features/loading-state/loading-state.component.d.ts +0 -2
- package/features/mouse-events/directives/double-click.directive.d.ts +11 -0
- package/features/mouse-events/directives/long-press.directive.d.ts +14 -0
- package/features/panel/panel.component.d.ts +12 -3
- package/features/pin-code-field/pin-code-field.component.d.ts +44 -0
- package/features/profile-picture-picker/profile-picture-picker.component.d.ts +77 -0
- package/features/rating-scale/rating-scale.component.d.ts +24 -0
- package/features/select-button/select-button.component.d.ts +2 -1
- package/features/speech-recognition/services/speech-recognition.service.d.ts +29 -0
- package/features/speech-recognition/services/text-to-speech.service.d.ts +24 -0
- package/features/speech-recognition/speech-recognition.component.d.ts +50 -0
- package/features/spotlight/components/spotlight-overlay/spotlight-overlay.component.d.ts +59 -0
- package/features/spotlight/directives/spotlight-step.directive.d.ts +13 -0
- package/features/spotlight/services/spotlight-tour.service.d.ts +46 -0
- package/features/spotlight/spotlight.component.d.ts +59 -0
- package/features/star-rating/star-rating.component.d.ts +26 -0
- package/features/stepper/stepper.component.d.ts +23 -0
- package/features/switch/switch.component.d.ts +2 -1
- package/features/tab/tab.component.d.ts +1 -1
- package/features/table/components/table-cell-content.component.d.ts +4 -3
- package/features/table/table.component.d.ts +40 -5
- package/features/table/utils/table-data.util.d.ts +1 -0
- package/features/table/utils/table-layout.util.d.ts +1 -0
- package/features/tiered-menu/components/tiered-menu/tiered-menu.component.d.ts +49 -0
- package/features/tiered-menu/components/tiered-menu-divider/tiered-menu-divider.component.d.ts +5 -0
- package/features/tiered-menu/components/tiered-menu-item/tiered-menu-item.component.d.ts +19 -0
- package/features/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.d.ts +26 -0
- package/features/tiered-menu/directives/tiered-menu.directive.d.ts +44 -0
- package/features/tiered-menu/services/tiered-menu.event.service.d.ts +13 -0
- package/features/tiered-menu/services/tiered-menu.global.service.d.ts +7 -0
- package/features/tiered-menu/services/tiered-menu.service.d.ts +14 -0
- package/features/tree/components/tree-node-item/tree-node-item.component.d.ts +37 -0
- package/features/tree/tree.component.d.ts +37 -0
- package/features/visual-sql-editor/components/visual-sql-editor-field-modal/visual-sql-editor-field-modal.component.d.ts +18 -0
- package/features/visual-sql-editor/components/visual-sql-editor-filter-modal/visual-sql-editor-filter-modal.component.d.ts +17 -0
- package/features/visual-sql-editor/components/visual-sql-editor-join-modal/visual-sql-editor-join-modal.component.d.ts +13 -0
- package/features/visual-sql-editor/components/visual-sql-editor-sort-modal/visual-sql-editor-sort-modal.component.d.ts +13 -0
- package/features/visual-sql-editor/components/visual-sql-editor-source-modal/visual-sql-editor-source-modal.component.d.ts +15 -0
- package/features/visual-sql-editor/services/visual-sql-editor-flow.service.d.ts +26 -0
- package/features/visual-sql-editor/services/visual-sql-editor-state.service.d.ts +72 -0
- package/features/visual-sql-editor/types/visual-sql-editor.types.d.ts +182 -0
- package/features/visual-sql-editor/utils/visual-sql-editor-sanitize.util.d.ts +14 -0
- package/features/visual-sql-editor/utils/visual-sql-editor-sql.util.d.ts +81 -0
- package/features/visual-sql-editor/utils/visual-sql-editor-text.util.d.ts +15 -0
- package/features/visual-sql-editor/utils/visual-sql-editor.constants.d.ts +36 -0
- package/features/visual-sql-editor/visual-sql-editor.component.d.ts +37 -199
- package/fesm2022/seniorsistemas-data-seniorx-core.mjs +14883 -6353
- package/fesm2022/seniorsistemas-data-seniorx-core.mjs.map +1 -1
- package/package.json +8 -8
- package/public-api.d.ts +72 -2
- package/src/locales/en.json +353 -15
- package/src/locales/es-CO.json +352 -14
- package/src/locales/pt.json +352 -14
- package/styles/sdc-global-variables.scss +1 -1
- package/styles.css +1 -1
- /package/features/tab/{tab-item.component.d.ts → components/tab-item/tab-item.component.d.ts} +0 -0
|
@@ -1,181 +1,18 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
2
|
import { TranslateService } from "@ngx-translate/core";
|
|
3
|
-
import type { BadgeColor } from "../../core/types/badge.type";
|
|
4
3
|
import type { SelectButtonItem } from "../../core/types/select-button.type";
|
|
5
|
-
import type { PicklistRecord } from "../../core/types/picklist.type";
|
|
6
4
|
import type { TimelineItem, TimelineStepSelectEvent } from "../../core/types/timeline.type";
|
|
7
|
-
import type { DynamicViewBuilderColumnOption, DynamicViewBuilderConfig, DynamicViewBuilderField,
|
|
5
|
+
import type { DynamicViewBuilderColumnOption, DynamicViewBuilderConfig, DynamicViewBuilderField, DynamicViewBuilderOption, DynamicViewBuilderTableOption } from "../../core/types/dynamic-view-builder.type";
|
|
8
6
|
import type { RowBase, TableColumn, TableOptions } from "../../core/types/table.type";
|
|
7
|
+
import type { SelectionModalMode, BuilderLayoutMode, SourceModalStep, FieldModalStep, FilterModalStep, FilterModalMode, SelectionRow, SourceViewItem, SourceModalDraft, SourceConfiguredItem, JoinViewItem, SimpleViewItem, FieldViewItem, SortViewItem, SortSelectableItem, FilterViewItem, FilterReviewItem, FieldModalConfiguredItem, BuilderFlowArrow, ColumnPicklistItem, SortPicklistItem, TablePicklistItem } from "./types/visual-sql-editor.types";
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
type SelectionModalMode = "tables" | "fields" | "groupBy";
|
|
11
|
-
type BuilderLayoutMode = "stacked" | "split";
|
|
12
|
-
type SourceModalStep = "select" | "configure";
|
|
13
|
-
type FieldModalStep = "select" | "configure";
|
|
14
|
-
type FilterModalStep = "select" | "configure" | "review";
|
|
15
|
-
type FilterModalMode = "condition" | "domain";
|
|
16
|
-
interface SelectionRow {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
meta: string;
|
|
20
|
-
selected: boolean;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
dbLabel?: string;
|
|
23
|
-
tableLabel?: string;
|
|
24
|
-
pathType?: "table" | "column";
|
|
25
|
-
prefix?: string;
|
|
26
|
-
note?: string;
|
|
27
|
-
}
|
|
28
|
-
interface SourceViewItem {
|
|
29
|
-
id: string;
|
|
30
|
-
dbLabel: string;
|
|
31
|
-
tableLabel: string;
|
|
32
|
-
alias: string;
|
|
33
|
-
hasCustomAlias: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface SourceModalDraft {
|
|
36
|
-
table: string;
|
|
37
|
-
alias: string;
|
|
38
|
-
}
|
|
39
|
-
interface SourceConfiguredItem {
|
|
40
|
-
id: string;
|
|
41
|
-
table: string;
|
|
42
|
-
dbLabel: string;
|
|
43
|
-
tableLabel: string;
|
|
44
|
-
alias: string;
|
|
45
|
-
}
|
|
46
|
-
interface JoinViewItem {
|
|
47
|
-
id: string;
|
|
48
|
-
sourceTable: string;
|
|
49
|
-
sourceField: string;
|
|
50
|
-
operator: string;
|
|
51
|
-
targetTable: string;
|
|
52
|
-
targetField: string;
|
|
53
|
-
}
|
|
54
|
-
interface SimpleViewItem {
|
|
55
|
-
id: string;
|
|
56
|
-
dbLabel: string;
|
|
57
|
-
tableLabel: string;
|
|
58
|
-
fieldLabel: string;
|
|
59
|
-
}
|
|
60
|
-
interface FieldViewItem {
|
|
61
|
-
id: string;
|
|
62
|
-
sourceIndex: number;
|
|
63
|
-
column: string;
|
|
64
|
-
orderLabel: string;
|
|
65
|
-
dbLabel: string;
|
|
66
|
-
tableLabel: string;
|
|
67
|
-
fieldLabel: string;
|
|
68
|
-
alias: string;
|
|
69
|
-
width: string;
|
|
70
|
-
functionName: string;
|
|
71
|
-
functionLabel: string;
|
|
72
|
-
functionAlias: string;
|
|
73
|
-
hasCustomConfig: boolean;
|
|
74
|
-
order: number;
|
|
75
|
-
}
|
|
76
|
-
interface SortViewItem {
|
|
77
|
-
id: string;
|
|
78
|
-
dbLabel: string;
|
|
79
|
-
tableLabel: string;
|
|
80
|
-
fieldLabel: string;
|
|
81
|
-
functionName: string;
|
|
82
|
-
functionLabel: string;
|
|
83
|
-
direction: string;
|
|
84
|
-
}
|
|
85
|
-
interface SortSelectableItem {
|
|
86
|
-
id: string;
|
|
87
|
-
column: string;
|
|
88
|
-
functionName: string;
|
|
89
|
-
tableLabel: string;
|
|
90
|
-
fieldLabel: string;
|
|
91
|
-
meta: string;
|
|
92
|
-
}
|
|
93
|
-
interface FilterViewItem {
|
|
94
|
-
id: string;
|
|
95
|
-
dbLabel: string;
|
|
96
|
-
tableLabel: string;
|
|
97
|
-
fieldLabel: string;
|
|
98
|
-
operatorLabel: string;
|
|
99
|
-
subtitle: string;
|
|
100
|
-
optional: boolean;
|
|
101
|
-
isDomain: boolean;
|
|
102
|
-
}
|
|
103
|
-
interface FilterReviewItem {
|
|
104
|
-
id: string;
|
|
105
|
-
label: string;
|
|
106
|
-
value: string;
|
|
107
|
-
emphasize?: "path" | "code" | "default";
|
|
108
|
-
}
|
|
109
|
-
interface FieldModalConfiguredItem {
|
|
110
|
-
id: string;
|
|
111
|
-
column: string;
|
|
112
|
-
tableLabel: string;
|
|
113
|
-
fieldLabel: string;
|
|
114
|
-
alias: string;
|
|
115
|
-
width: string;
|
|
116
|
-
functionName: string;
|
|
117
|
-
functionLabel: string;
|
|
118
|
-
functionAlias: string;
|
|
119
|
-
}
|
|
120
|
-
interface BuilderFlowArrow {
|
|
121
|
-
id: string;
|
|
122
|
-
direction: "right" | "down";
|
|
123
|
-
left: number;
|
|
124
|
-
top: number;
|
|
125
|
-
}
|
|
126
|
-
interface ColumnPicklistItem extends PicklistRecord {
|
|
127
|
-
id: number;
|
|
128
|
-
title: string;
|
|
129
|
-
titlePrefix: string;
|
|
130
|
-
titleSuffix: string;
|
|
131
|
-
titlePrefixColor: string;
|
|
132
|
-
titleSuffixColor: string;
|
|
133
|
-
badge: string;
|
|
134
|
-
badgeColor: BadgeColor;
|
|
135
|
-
column: string;
|
|
136
|
-
}
|
|
137
|
-
interface SortPicklistItem extends PicklistRecord {
|
|
138
|
-
id: number;
|
|
139
|
-
title: string;
|
|
140
|
-
titlePrefix: string;
|
|
141
|
-
titleSuffix: string;
|
|
142
|
-
titlePrefixColor: string;
|
|
143
|
-
titleSuffixColor: string;
|
|
144
|
-
badge: string;
|
|
145
|
-
badgeColor: BadgeColor;
|
|
146
|
-
selectionId: string;
|
|
147
|
-
column: string;
|
|
148
|
-
}
|
|
149
|
-
interface TablePicklistItem extends PicklistRecord {
|
|
150
|
-
id: number;
|
|
151
|
-
title: string;
|
|
152
|
-
titlePrefix: string;
|
|
153
|
-
titleSuffix: string;
|
|
154
|
-
titlePrefixColor: string;
|
|
155
|
-
titleSuffixColor: string;
|
|
156
|
-
badge: string;
|
|
157
|
-
badgeColor: BadgeColor;
|
|
158
|
-
table: string;
|
|
159
|
-
}
|
|
160
|
-
type DynamicModalDimension = {
|
|
161
|
-
width: string;
|
|
162
|
-
height: string;
|
|
163
|
-
};
|
|
164
|
-
type DynamicModalDimensionsMap = {
|
|
165
|
-
source: DynamicModalDimension;
|
|
166
|
-
selection: DynamicModalDimension;
|
|
167
|
-
join: DynamicModalDimension;
|
|
168
|
-
sort: DynamicModalDimension;
|
|
169
|
-
filter: DynamicModalDimension;
|
|
170
|
-
field: DynamicModalDimension;
|
|
171
|
-
};
|
|
172
9
|
export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestroy {
|
|
173
10
|
private readonly translate;
|
|
174
11
|
private readonly changeDetectorRef;
|
|
12
|
+
private readonly flowService;
|
|
13
|
+
private readonly stateService;
|
|
175
14
|
private internalConfig;
|
|
176
15
|
private readonly sectionOrder;
|
|
177
|
-
private refreshFlowArrowsFrame;
|
|
178
|
-
private refreshFlowArrowsTimeout;
|
|
179
16
|
readonly layoutModeItems: SelectButtonItem<BuilderLayoutMode>[];
|
|
180
17
|
readonly filterModeItems: SelectButtonItem<FilterModalMode>[];
|
|
181
18
|
readonly selectedFilterModeItems: SelectButtonItem<FilterModalMode>[];
|
|
@@ -198,55 +35,60 @@ export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestro
|
|
|
198
35
|
dragPreviewIndex: number | null;
|
|
199
36
|
readonly overlayAppendTarget = "body";
|
|
200
37
|
readonly overlayZIndex: number;
|
|
201
|
-
readonly modalDimensions: DynamicModalDimensionsMap;
|
|
38
|
+
readonly modalDimensions: import("./types/visual-sql-editor.types").DynamicModalDimensionsMap;
|
|
202
39
|
readonly fieldPicklistRows = 8;
|
|
203
40
|
readonly filterPicklistRows = 9;
|
|
204
|
-
sourceModalVisible: boolean;
|
|
205
|
-
sourceModalStep: SourceModalStep;
|
|
206
|
-
sourceModalDrafts: SourceModalDraft[];
|
|
207
41
|
selectionModalVisible: boolean;
|
|
208
42
|
selectionModalMode: SelectionModalMode;
|
|
209
43
|
selectionModalIds: string[];
|
|
210
44
|
selectionModalSearch: string;
|
|
211
|
-
joinModalVisible: boolean;
|
|
212
|
-
joinEditIndex: number | null;
|
|
213
45
|
joinSourceSearch: string;
|
|
214
46
|
joinTargetSearch: string;
|
|
215
|
-
|
|
47
|
+
sortSearch: string;
|
|
48
|
+
fieldModalSearch: string;
|
|
49
|
+
filterSearch: string;
|
|
50
|
+
get sourceModalVisible(): boolean;
|
|
51
|
+
set sourceModalVisible(value: boolean);
|
|
52
|
+
get sourceModalStep(): SourceModalStep;
|
|
53
|
+
get sourceModalDrafts(): SourceModalDraft[];
|
|
54
|
+
get joinModalVisible(): boolean;
|
|
55
|
+
set joinModalVisible(value: boolean);
|
|
56
|
+
get joinEditIndex(): number | null;
|
|
57
|
+
get joinDraft(): {
|
|
216
58
|
sourceColumn: string;
|
|
217
59
|
targetColumn: string;
|
|
218
60
|
operator: string;
|
|
219
61
|
};
|
|
220
|
-
sortModalVisible: boolean;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
sortDraft: {
|
|
62
|
+
get sortModalVisible(): boolean;
|
|
63
|
+
set sortModalVisible(value: boolean);
|
|
64
|
+
get sortEditIndex(): number | null;
|
|
65
|
+
get sortDraft(): {
|
|
224
66
|
column: string;
|
|
225
67
|
functionName: string;
|
|
226
68
|
direction: string;
|
|
227
69
|
};
|
|
228
|
-
fieldModalVisible: boolean;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
fieldModalDrafts: DynamicViewBuilderField[];
|
|
232
|
-
fieldFunctionEditColumn: string | null;
|
|
233
|
-
fieldFunctionDraft: {
|
|
70
|
+
get fieldModalVisible(): boolean;
|
|
71
|
+
set fieldModalVisible(value: boolean);
|
|
72
|
+
get fieldModalStep(): FieldModalStep;
|
|
73
|
+
get fieldModalDrafts(): DynamicViewBuilderField[];
|
|
74
|
+
get fieldFunctionEditColumn(): string | null;
|
|
75
|
+
get fieldFunctionDraft(): {
|
|
234
76
|
column: string;
|
|
235
77
|
functionName: string;
|
|
236
78
|
functionAlias: string;
|
|
237
79
|
};
|
|
238
|
-
filterModalVisible: boolean;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
filterDraft: {
|
|
80
|
+
get filterModalVisible(): boolean;
|
|
81
|
+
set filterModalVisible(value: boolean);
|
|
82
|
+
get filterEditIndex(): number | null;
|
|
83
|
+
get filterModalStep(): FilterModalStep;
|
|
84
|
+
get filterModalMode(): FilterModalMode;
|
|
85
|
+
get filterDraft(): {
|
|
244
86
|
mode: FilterModalMode;
|
|
245
87
|
column: string;
|
|
246
88
|
operator: string;
|
|
247
|
-
connector: DynamicViewBuilderFilterConnector;
|
|
89
|
+
connector: import("../../core/types/dynamic-view-builder.type").DynamicViewBuilderFilterConnector;
|
|
248
90
|
optional: boolean;
|
|
249
|
-
valueType: DynamicViewBuilderFilterValueType;
|
|
91
|
+
valueType: import("../../core/types/dynamic-view-builder.type").DynamicViewBuilderFilterValueType;
|
|
250
92
|
value: string;
|
|
251
93
|
valuesText: string;
|
|
252
94
|
betweenStart: string;
|
|
@@ -255,6 +97,7 @@ export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestro
|
|
|
255
97
|
domainExpression: string;
|
|
256
98
|
};
|
|
257
99
|
constructor(translate: TranslateService, changeDetectorRef: ChangeDetectorRef);
|
|
100
|
+
private get flowContext();
|
|
258
101
|
ngAfterViewInit(): void;
|
|
259
102
|
ngOnDestroy(): void;
|
|
260
103
|
onWindowResize(): void;
|
|
@@ -485,9 +328,9 @@ export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestro
|
|
|
485
328
|
private normalize;
|
|
486
329
|
private toggleMultipleValue;
|
|
487
330
|
private filterFunctionSelectableColumns;
|
|
488
|
-
private filterOperatorsForColumn;
|
|
489
331
|
private isNumericType;
|
|
490
332
|
private isDateType;
|
|
333
|
+
private filterOperatorsForColumn;
|
|
491
334
|
private resolveTableOption;
|
|
492
335
|
private resolveColumnOption;
|
|
493
336
|
private resolveTableLabel;
|
|
@@ -514,12 +357,10 @@ export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestro
|
|
|
514
357
|
private buildOrderBySql;
|
|
515
358
|
private resolveSourceSql;
|
|
516
359
|
private resolveJoinSql;
|
|
517
|
-
private resolveJoinedTableSql;
|
|
518
360
|
private resolveColumnSql;
|
|
519
361
|
private resolveFieldSql;
|
|
520
362
|
private resolveFunctionSql;
|
|
521
363
|
private resolveSortSql;
|
|
522
|
-
private resolveJoinOperatorSql;
|
|
523
364
|
private resolveFilterSql;
|
|
524
365
|
private resolveFilterOperatorSql;
|
|
525
366
|
private resolveFilterValueSql;
|
|
@@ -532,6 +373,7 @@ export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestro
|
|
|
532
373
|
private syncSelectedFilterModeItems;
|
|
533
374
|
private syncSelectedSortDirectionItems;
|
|
534
375
|
private get filterSequenceIndex();
|
|
376
|
+
private getSqlContext;
|
|
535
377
|
private parseMultiValueText;
|
|
536
378
|
private buildAliasForTable;
|
|
537
379
|
private resolveDefaultSourceAlias;
|
|
@@ -550,10 +392,6 @@ export declare class VisualSqlEditorComponent implements AfterViewInit, OnDestro
|
|
|
550
392
|
private buildFilterFromDraft;
|
|
551
393
|
private resolveFilterDraftSqlPreview;
|
|
552
394
|
private resolveFilterDraftDisplayValue;
|
|
553
|
-
private scheduleFlowArrowRefresh;
|
|
554
|
-
private refreshFlowArrows;
|
|
555
|
-
private refreshMeasuredPreviewHeight;
|
|
556
|
-
private buildFlowArrows;
|
|
557
395
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisualSqlEditorComponent, never>;
|
|
558
396
|
static ɵcmp: i0.ɵɵComponentDeclaration<VisualSqlEditorComponent, "sdc-visual-sql-editor", never, { "loading": { "alias": "loading"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "configChange": "configChange"; "save": "save"; "cancel": "cancel"; }, never, never, true, never>;
|
|
559
397
|
}
|