@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
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import type { ConnectedPosition, ScrollStrategy } from '@angular/cdk/overlay';
|
|
4
|
+
import type { AutocompleteCompleteEvent, AutocompleteLazyLoadEvent, AutocompleteWriteValue } from '../../core/types/autocomplete.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
type SuggestionWrapper<T> = {
|
|
7
|
+
data: T;
|
|
8
|
+
id: string;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare class AutocompleteComponent<T> implements ControlValueAccessor, OnChanges, OnDestroy {
|
|
12
|
+
private static nextId;
|
|
13
|
+
private static allocateComponentId;
|
|
14
|
+
private readonly cdr;
|
|
15
|
+
private readonly overlay;
|
|
16
|
+
private readonly inputSubject;
|
|
17
|
+
private readonly lazyLoadSubject;
|
|
18
|
+
private readonly subscriptions;
|
|
19
|
+
suggestions: T[];
|
|
20
|
+
placeholder: string;
|
|
21
|
+
suggestionValue?: keyof T;
|
|
22
|
+
suggestionLabel?: keyof T;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
emptyMessage: string;
|
|
25
|
+
delay: number;
|
|
26
|
+
invalid: boolean;
|
|
27
|
+
virtualScroll: boolean;
|
|
28
|
+
virtualScrollItemSize: number;
|
|
29
|
+
lazy: boolean;
|
|
30
|
+
dropdown: boolean;
|
|
31
|
+
forceSelection: boolean;
|
|
32
|
+
checkmark: boolean;
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
minLengthToSearch: number;
|
|
35
|
+
inputClass: string;
|
|
36
|
+
dataKey?: keyof T;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
lazyLoad: EventEmitter<AutocompleteLazyLoadEvent<T>>;
|
|
39
|
+
selected: EventEmitter<T>;
|
|
40
|
+
unselected: EventEmitter<T>;
|
|
41
|
+
blurred: EventEmitter<Event>;
|
|
42
|
+
cleared: EventEmitter<void>;
|
|
43
|
+
keyUp: EventEmitter<Event>;
|
|
44
|
+
focused: EventEmitter<Event>;
|
|
45
|
+
completeMethod: EventEmitter<AutocompleteCompleteEvent>;
|
|
46
|
+
protected containerDiv?: ElementRef<HTMLElement>;
|
|
47
|
+
protected inputEl?: ElementRef<HTMLInputElement>;
|
|
48
|
+
protected readonly componentId: string;
|
|
49
|
+
protected readonly scrollStrategy: ScrollStrategy;
|
|
50
|
+
protected readonly overlayPositions: ConnectedPosition[];
|
|
51
|
+
protected inputValue: string;
|
|
52
|
+
protected isOpen: boolean;
|
|
53
|
+
protected loading: boolean;
|
|
54
|
+
protected showEmptyMessage: boolean;
|
|
55
|
+
protected focusedIndex: number;
|
|
56
|
+
protected filteredSuggestions: SuggestionWrapper<T>[];
|
|
57
|
+
protected value: T | string | null;
|
|
58
|
+
protected values: T[];
|
|
59
|
+
private onChange;
|
|
60
|
+
private onTouched;
|
|
61
|
+
private lazyRequestId;
|
|
62
|
+
constructor();
|
|
63
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
writeValue(value: AutocompleteWriteValue<T>): void;
|
|
66
|
+
registerOnChange(onChange: (value: unknown) => void): void;
|
|
67
|
+
registerOnTouched(onTouched: () => void): void;
|
|
68
|
+
setDisabledState(isDisabled: boolean): void;
|
|
69
|
+
protected onInput(event: Event): void;
|
|
70
|
+
protected onInputBlur(event: Event): void;
|
|
71
|
+
protected onInputFocus(event: Event): void;
|
|
72
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
73
|
+
protected onKeyUp(event: Event): void;
|
|
74
|
+
protected onWindowResize(): void;
|
|
75
|
+
protected selectSuggestion(suggestion: T): void;
|
|
76
|
+
protected clear(): void;
|
|
77
|
+
protected toggleDropdown(): void;
|
|
78
|
+
protected removeSuggestion(suggestion: T): void;
|
|
79
|
+
protected trackBySuggestionId(_: number, item: SuggestionWrapper<T>): string;
|
|
80
|
+
protected isSuggestionSelected(suggestion: SuggestionWrapper<T>): boolean;
|
|
81
|
+
protected get activeDescendantId(): string | null;
|
|
82
|
+
protected openDropdownPanel(): void;
|
|
83
|
+
protected closeDropdownPanel(): void;
|
|
84
|
+
private refreshFilteredSuggestions;
|
|
85
|
+
private filterSuggestionsByQuery;
|
|
86
|
+
private markSelectedSuggestions;
|
|
87
|
+
private wrapSuggestion;
|
|
88
|
+
private getSuggestionIdentity;
|
|
89
|
+
private stringifyIdentityValue;
|
|
90
|
+
private handleClosedPanelKeyDown;
|
|
91
|
+
private moveFocusBy;
|
|
92
|
+
private selectFocusedSuggestion;
|
|
93
|
+
private getSuggestionResultValue;
|
|
94
|
+
protected toDisplayValue(value: T | string | null): string;
|
|
95
|
+
private normalizeMultipleValue;
|
|
96
|
+
private areSuggestionsEqual;
|
|
97
|
+
private findExactMatch;
|
|
98
|
+
private scrollFocusedSuggestionIntoView;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent<any>, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent<any>, "sdc-autocomplete", never, { "suggestions": { "alias": "suggestions"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestionValue": { "alias": "suggestionValue"; "required": false; }; "suggestionLabel": { "alias": "suggestionLabel"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; "dropdown": { "alias": "dropdown"; "required": false; }; "forceSelection": { "alias": "forceSelection"; "required": false; }; "checkmark": { "alias": "checkmark"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "minLengthToSearch": { "alias": "minLengthToSearch"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "lazyLoad": "lazyLoad"; "selected": "selected"; "unselected": "unselected"; "blurred": "blurred"; "cleared": "cleared"; "keyUp": "keyUp"; "focused": "focused"; "completeMethod": "completeMethod"; }, never, never, true, never>;
|
|
101
|
+
}
|
|
102
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AutocompleteChipComponent<T> {
|
|
4
|
+
suggestion: T;
|
|
5
|
+
suggestionLabel?: keyof T;
|
|
6
|
+
suggestionRemoved: EventEmitter<T>;
|
|
7
|
+
protected get label(): string;
|
|
8
|
+
protected removeSuggestion(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteChipComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteChipComponent<any>, "sdc-autocomplete-chip", never, { "suggestion": { "alias": "suggestion"; "required": true; }; "suggestionLabel": { "alias": "suggestionLabel"; "required": false; }; }, { "suggestionRemoved": "suggestionRemoved"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -1,52 +1,32 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Card, OptionsCard } from '../../../core/types/card.type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CardMiniComponent {
|
|
4
|
+
export declare class CardMiniComponent implements AfterViewInit, OnChanges {
|
|
5
5
|
private readonly cdr;
|
|
6
6
|
private readonly translate;
|
|
7
|
-
protected readonly showLessLabelKey = "platform.datacore.show_less";
|
|
8
|
-
protected readonly expandNameAriaLabelKey = "platform.datacore.card.expand_name";
|
|
9
|
-
protected readonly collapseNameAriaLabelKey = "platform.datacore.card.collapse_name";
|
|
10
|
-
protected readonly expandCategoryAriaLabelKey = "platform.datacore.card.expand_category";
|
|
11
|
-
protected readonly collapseCategoryAriaLabelKey = "platform.datacore.card.collapse_category";
|
|
12
|
-
protected readonly expandDescriptionAriaLabelKey = "platform.datacore.card.expand_description";
|
|
13
|
-
protected readonly collapseDescriptionAriaLabelKey = "platform.datacore.card.collapse_description";
|
|
14
7
|
data: Card;
|
|
15
8
|
options?: OptionsCard;
|
|
16
9
|
cardAction: EventEmitter<Card>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
private readonly nameTextRef?;
|
|
11
|
+
private readonly categoryTextRef?;
|
|
12
|
+
private readonly descriptionTextRef?;
|
|
13
|
+
protected showNameTitle: boolean;
|
|
14
|
+
protected showCategoryTitle: boolean;
|
|
15
|
+
protected showDescriptionTitle: boolean;
|
|
20
16
|
constructor();
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnChanges(_: SimpleChanges): void;
|
|
19
|
+
protected onWindowResize(): void;
|
|
21
20
|
protected get fullDescription(): string;
|
|
22
21
|
protected get fullName(): string;
|
|
23
22
|
protected get fullCategory(): string;
|
|
24
23
|
protected get descriptionLabel(): string;
|
|
25
24
|
protected get buttonLabelText(): string;
|
|
26
25
|
protected get buttonAriaLabel(): string;
|
|
27
|
-
protected get descriptionMaxLen(): number;
|
|
28
|
-
protected get nameMaxLen(): number;
|
|
29
|
-
protected get categoryMaxLen(): number;
|
|
30
|
-
protected get isDescriptionTruncated(): boolean;
|
|
31
|
-
protected get isNameTruncated(): boolean;
|
|
32
|
-
protected get isCategoryTruncated(): boolean;
|
|
33
|
-
protected get shortDescription(): string;
|
|
34
|
-
protected get shortName(): string;
|
|
35
|
-
protected get shortCategory(): string;
|
|
36
|
-
protected expandDescription(event?: Event): void;
|
|
37
|
-
protected collapseDescription(event?: Event): void;
|
|
38
|
-
protected expandName(event?: Event): void;
|
|
39
|
-
protected collapseName(event?: Event): void;
|
|
40
|
-
protected expandCategory(event?: Event): void;
|
|
41
|
-
protected collapseCategory(event?: Event): void;
|
|
42
|
-
protected onDescriptionEllipsisEnter(event: Event): void;
|
|
43
|
-
protected onDescriptionEllipsisSpace(event: Event): void;
|
|
44
|
-
protected onNameEllipsisEnter(event: Event): void;
|
|
45
|
-
protected onNameEllipsisSpace(event: Event): void;
|
|
46
|
-
protected onCategoryEllipsisEnter(event: Event): void;
|
|
47
|
-
protected onCategoryEllipsisSpace(event: Event): void;
|
|
48
26
|
private translateText;
|
|
49
|
-
private
|
|
27
|
+
private refreshNativeTitles;
|
|
28
|
+
private hasHorizontalOverflow;
|
|
29
|
+
private hasVerticalOverflow;
|
|
50
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardMiniComponent, never>;
|
|
51
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<CardMiniComponent, "sdc-card-mini", never, { "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "cardAction": "cardAction"; }, never, never, true, never>;
|
|
52
32
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import type { SdcChatMessage, SdcChatMessageStatus } from '../../core/types/chat.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChatComponent implements OnChanges {
|
|
5
|
+
private readonly translate;
|
|
6
|
+
private readonly cdr;
|
|
7
|
+
private messageListElement?;
|
|
8
|
+
messages: SdcChatMessage[];
|
|
9
|
+
autoScroll: boolean;
|
|
10
|
+
showAvatar: boolean;
|
|
11
|
+
showTimestamp: boolean;
|
|
12
|
+
emptyLabel?: string;
|
|
13
|
+
attachmentOpened: EventEmitter<SdcChatMessage>;
|
|
14
|
+
messageClicked: EventEmitter<SdcChatMessage>;
|
|
15
|
+
set messageList(value: ElementRef<HTMLDivElement> | undefined);
|
|
16
|
+
get messageList(): ElementRef<HTMLDivElement> | undefined;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnChanges(): void;
|
|
19
|
+
protected trackByMessageId(_index: number, message: SdcChatMessage): string;
|
|
20
|
+
protected get resolvedEmptyLabel(): string;
|
|
21
|
+
protected get initials(): (message: SdcChatMessage) => string;
|
|
22
|
+
protected handleMessageClick(message: SdcChatMessage): void;
|
|
23
|
+
protected handleAttachmentClick(message: SdcChatMessage, event: Event): void;
|
|
24
|
+
protected resolveAttachmentLabel(message: SdcChatMessage): string;
|
|
25
|
+
protected resolveStatusLabel(status: SdcChatMessageStatus | undefined): string | null;
|
|
26
|
+
protected resolveTimestamp(sentAt: Date | string | undefined): string | null;
|
|
27
|
+
private buildInitials;
|
|
28
|
+
private scheduleAutoScroll;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatComponent, "sdc-chat", never, { "messages": { "alias": "messages"; "required": false; }; "autoScroll": { "alias": "autoScroll"; "required": false; }; "showAvatar": { "alias": "showAvatar"; "required": false; }; "showTimestamp": { "alias": "showTimestamp"; "required": false; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; }; }, { "attachmentOpened": "attachmentOpened"; "messageClicked": "messageClicked"; }, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { CheckboxListData, CheckboxListState } from '../../core/types/checkbox-list.type';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CheckboxListComponent implements ControlValueAccessor, OnChanges {
|
|
6
|
+
private readonly cdr;
|
|
7
|
+
data: CheckboxListData;
|
|
8
|
+
protected state: CheckboxListState;
|
|
9
|
+
private onChange;
|
|
10
|
+
private onTouched;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
writeValue(value: CheckboxListState | null): void;
|
|
13
|
+
registerOnChange(onChange: (value: CheckboxListState) => void): void;
|
|
14
|
+
registerOnTouched(onTouched: () => void): void;
|
|
15
|
+
setDisabledState(isDisabled: boolean): void;
|
|
16
|
+
protected get renderType(): 'inline' | 'block';
|
|
17
|
+
protected ensureChildState(parentState: CheckboxListState, child: CheckboxListData): CheckboxListState;
|
|
18
|
+
protected onNodeCheckedChange(node: CheckboxListData, nodeState: CheckboxListState, event: Event): void;
|
|
19
|
+
private emitStateChange;
|
|
20
|
+
private buildState;
|
|
21
|
+
private cloneState;
|
|
22
|
+
private setBranchChecked;
|
|
23
|
+
private syncBranchState;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxListComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxListComponent, "sdc-checkbox-list", never, { "data": { "alias": "data"; "required": true; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -20,6 +20,7 @@ export declare class ComboboxComponent extends InputsComponent<OptionValue | Opt
|
|
|
20
20
|
overrideChipMessage?: string;
|
|
21
21
|
maxSelectedLabels: number;
|
|
22
22
|
showClear: boolean;
|
|
23
|
+
searchable: boolean;
|
|
23
24
|
iconSelector: boolean;
|
|
24
25
|
showIconClass: boolean;
|
|
25
26
|
infoTooltip: string | null;
|
|
@@ -166,5 +167,5 @@ export declare class ComboboxComponent extends InputsComponent<OptionValue | Opt
|
|
|
166
167
|
private scheduleVisibleOptionsSync;
|
|
167
168
|
private resetVirtualWindow;
|
|
168
169
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "sdc-combobox", never, { "multiple": { "alias": "multiple"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; "options": { "alias": "options"; "required": false; }; "overrideChipMessage": { "alias": "overrideChipMessage"; "required": false; }; "maxSelectedLabels": { "alias": "maxSelectedLabels"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "iconSelector": { "alias": "iconSelector"; "required": false; }; "showIconClass": { "alias": "showIconClass"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "infoTooltipEvent": { "alias": "infoTooltipEvent"; "required": false; }; "infoTooltipAllowHtml": { "alias": "infoTooltipAllowHtml"; "required": false; }; }, { "selectedValueEvent": "onSelectedItem"; "panelClosed": "panelClosed"; }, never, never, true, never>;
|
|
170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "sdc-combobox", never, { "multiple": { "alias": "multiple"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; "options": { "alias": "options"; "required": false; }; "overrideChipMessage": { "alias": "overrideChipMessage"; "required": false; }; "maxSelectedLabels": { "alias": "maxSelectedLabels"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "iconSelector": { "alias": "iconSelector"; "required": false; }; "showIconClass": { "alias": "showIconClass"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "infoTooltipEvent": { "alias": "infoTooltipEvent"; "required": false; }; "infoTooltipAllowHtml": { "alias": "infoTooltipAllowHtml"; "required": false; }; }, { "selectedValueEvent": "onSelectedItem"; "panelClosed": "panelClosed"; }, never, never, true, never>;
|
|
170
171
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import type { Workspace } from '../../core/types/workspace-switch.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ContextSelectorComponent implements OnChanges {
|
|
5
|
+
private static allocateListboxId;
|
|
6
|
+
private readonly cdr;
|
|
7
|
+
workspaces: Workspace[];
|
|
8
|
+
footerButtonLabel: string;
|
|
9
|
+
showFooterButton: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
footerButtonClicked: EventEmitter<void>;
|
|
12
|
+
selected: EventEmitter<Workspace>;
|
|
13
|
+
protected listItems?: QueryList<ElementRef<HTMLElement>>;
|
|
14
|
+
protected listRef?: ElementRef<HTMLElement>;
|
|
15
|
+
protected readonly listboxId: string;
|
|
16
|
+
protected open: boolean;
|
|
17
|
+
protected height: number;
|
|
18
|
+
protected selectedItemIndex: number;
|
|
19
|
+
protected currentItemIndex: number;
|
|
20
|
+
protected get tabindex(): number;
|
|
21
|
+
protected get selectedWorkspace(): Workspace | null;
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
24
|
+
protected toggle(): void;
|
|
25
|
+
protected onPopoverOpenChange(open: boolean): void;
|
|
26
|
+
protected selectIndex(index: number): void;
|
|
27
|
+
protected onFooterActionClick(): void;
|
|
28
|
+
private openIfNeeded;
|
|
29
|
+
private moveCurrentIndex;
|
|
30
|
+
private close;
|
|
31
|
+
private ensureValidSelection;
|
|
32
|
+
private calculateListMaxHeight;
|
|
33
|
+
private scrollToCurrentItem;
|
|
34
|
+
private scheduleListMeasurement;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextSelectorComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextSelectorComponent, "sdc-context-selector, sdc-workspace-switch", never, { "workspaces": { "alias": "workspaces"; "required": true; }; "footerButtonLabel": { "alias": "footerButtonLabel"; "required": false; }; "showFooterButton": { "alias": "showFooterButton"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "footerButtonClicked": "footerButtonClicked"; "selected": "selected"; }, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GanttTaskGroup } from '../../../../core/types/gantt.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GanttSideTableComponent {
|
|
4
|
+
tasks: GanttTaskGroup[];
|
|
5
|
+
columnTitle: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttSideTableComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttSideTableComponent, "sdc-gantt-side-table", never, { "tasks": { "alias": "tasks"; "required": false; }; "columnTitle": { "alias": "columnTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native Date API utilities for the Gantt component.
|
|
3
|
+
* No moment.js dependency.
|
|
4
|
+
*/
|
|
5
|
+
/** Add N days to a date (returns new Date, does not mutate). */
|
|
6
|
+
export declare function addDays(date: Date, days: number): Date;
|
|
7
|
+
/** Add N hours to a date (returns new Date, does not mutate). */
|
|
8
|
+
export declare function addHours(date: Date, hours: number): Date;
|
|
9
|
+
/** Difference in whole days between two dates (b - a). */
|
|
10
|
+
export declare function diffDays(a: Date, b: Date): number;
|
|
11
|
+
/** Difference in whole hours between two dates (b - a). */
|
|
12
|
+
export declare function diffHours(a: Date, b: Date): number;
|
|
13
|
+
/** Format a date for display (e.g. "01 jan. 2024"). */
|
|
14
|
+
export declare function formatDate(date: Date, locale?: string): string;
|
|
15
|
+
/** Format as "dd/MM" for grid header labels. */
|
|
16
|
+
export declare function formatDayMonth(date: Date): string;
|
|
17
|
+
/** Format as abbreviated weekday + day number for week headers. */
|
|
18
|
+
export declare function formatWeekLabel(date: Date, locale?: string): string;
|
|
19
|
+
/** Format as abbreviated month + year for month headers. */
|
|
20
|
+
export declare function formatMonthLabel(date: Date, locale?: string): string;
|
|
21
|
+
/** Format as "HH:00" for hour headers. */
|
|
22
|
+
export declare function formatHourLabel(date: Date): string;
|
|
23
|
+
/** Return a new Date set to midnight (start of day). */
|
|
24
|
+
export declare function startOfDay(date: Date): Date;
|
|
25
|
+
/** Return a new Date set to the first day of the ISO week that contains `date`. */
|
|
26
|
+
export declare function startOfWeek(date: Date): Date;
|
|
27
|
+
/** Return a new Date set to the first day of the month that contains `date`. */
|
|
28
|
+
export declare function startOfMonth(date: Date): Date;
|
|
29
|
+
/** Return a new Date set to the first hour of the current hour slot. */
|
|
30
|
+
export declare function startOfHour(date: Date): Date;
|
|
31
|
+
/** True if two dates fall on the same calendar day. */
|
|
32
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
33
|
+
/** True if the given date is a Saturday or Sunday. */
|
|
34
|
+
export declare function isWeekend(date: Date): boolean;
|
|
35
|
+
/** Clamp `value` between `min` and `max`. */
|
|
36
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import type { GanttTask, GanttTaskDateChangedEvent, GanttTaskGroup, GanttViewMode } from '../../core/types/gantt.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GanttComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
5
|
+
tasks: GanttTaskGroup[];
|
|
6
|
+
viewMode: GanttViewMode;
|
|
7
|
+
columnTitle: string;
|
|
8
|
+
showSideTable: boolean;
|
|
9
|
+
allowMovement: boolean;
|
|
10
|
+
hasPopup: boolean;
|
|
11
|
+
fullWidth: boolean;
|
|
12
|
+
taskClicked: EventEmitter<GanttTask>;
|
|
13
|
+
taskDateChanged: EventEmitter<GanttTaskDateChangedEvent>;
|
|
14
|
+
viewChanged: EventEmitter<GanttViewMode>;
|
|
15
|
+
ganttSvgRef: ElementRef<SVGElement>;
|
|
16
|
+
protected get isFullWidth(): boolean;
|
|
17
|
+
private engine;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
private flattenTasks;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GanttComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GanttComponent, "sdc-gantt", never, { "tasks": { "alias": "tasks"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "columnTitle": { "alias": "columnTitle"; "required": false; }; "showSideTable": { "alias": "showSideTable"; "required": false; }; "allowMovement": { "alias": "allowMovement"; "required": false; }; "hasPopup": { "alias": "hasPopup"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, { "taskClicked": "taskClicked"; "taskDateChanged": "taskDateChanged"; "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { GanttTask, GanttViewMode } from '../../core/types/gantt.type';
|
|
2
|
+
export interface GanttEngineOptions {
|
|
3
|
+
viewMode: GanttViewMode;
|
|
4
|
+
allowMovement: boolean;
|
|
5
|
+
hasPopup: boolean;
|
|
6
|
+
onTaskClick?: (task: GanttTask) => void;
|
|
7
|
+
onDateChange?: (task: GanttTask, start: Date, end: Date) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare class GanttEngine {
|
|
10
|
+
private readonly svg;
|
|
11
|
+
private tasks;
|
|
12
|
+
private options;
|
|
13
|
+
private readonly HEADER_HEIGHT;
|
|
14
|
+
private readonly ROW_HEIGHT;
|
|
15
|
+
private readonly BAR_HEIGHT;
|
|
16
|
+
private readonly PADDING;
|
|
17
|
+
private readonly COLUMN_WIDTHS;
|
|
18
|
+
private popup;
|
|
19
|
+
private drag;
|
|
20
|
+
private readonly boundMouseMove;
|
|
21
|
+
private readonly boundMouseUp;
|
|
22
|
+
constructor(svg: SVGElement, tasks: GanttTask[], options: GanttEngineOptions);
|
|
23
|
+
refresh(tasks: GanttTask[]): void;
|
|
24
|
+
updateOptions(options: Partial<GanttEngineOptions>): void;
|
|
25
|
+
changeViewMode(mode: GanttViewMode): void;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
private render;
|
|
28
|
+
private computeDateRange;
|
|
29
|
+
private slotStart;
|
|
30
|
+
private nextSlot;
|
|
31
|
+
private drawGrid;
|
|
32
|
+
private formatColumnLabel;
|
|
33
|
+
private drawBars;
|
|
34
|
+
private drawBarElement;
|
|
35
|
+
private startDrag;
|
|
36
|
+
private createDragState;
|
|
37
|
+
private updateBarVisualForDrag;
|
|
38
|
+
private onMouseMove;
|
|
39
|
+
private handleDragMove;
|
|
40
|
+
private handleDragResizeRight;
|
|
41
|
+
private handleDragResizeLeft;
|
|
42
|
+
private onMouseUp;
|
|
43
|
+
private emitDateChangeIfSignificantMovement;
|
|
44
|
+
private calculateNewDates;
|
|
45
|
+
private showPopup;
|
|
46
|
+
private removePopup;
|
|
47
|
+
private computeBarX;
|
|
48
|
+
private computeBarWidth;
|
|
49
|
+
private xToDate;
|
|
50
|
+
private clearSvg;
|
|
51
|
+
private createSvgElement;
|
|
52
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import type { SdcGridMenuItem } from '../../core/types/grid-menu.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare const GRID_MENU_COLUMNS: {
|
|
5
|
+
readonly TWO: 2;
|
|
6
|
+
readonly THREE: 3;
|
|
7
|
+
readonly FOUR: 4;
|
|
8
|
+
};
|
|
9
|
+
type GridMenuColumns = (typeof GRID_MENU_COLUMNS)[keyof typeof GRID_MENU_COLUMNS];
|
|
10
|
+
export declare class GridMenuComponent {
|
|
11
|
+
private readonly router;
|
|
12
|
+
items: SdcGridMenuItem[];
|
|
13
|
+
selectable: boolean;
|
|
14
|
+
selectedId: string | null;
|
|
15
|
+
columns: GridMenuColumns;
|
|
16
|
+
compact: boolean;
|
|
17
|
+
selectedIdChange: EventEmitter<string | null>;
|
|
18
|
+
itemActivated: EventEmitter<SdcGridMenuItem>;
|
|
19
|
+
protected trackByItemId(_index: number, item: SdcGridMenuItem): string;
|
|
20
|
+
protected isItemDisabled(item: SdcGridMenuItem): boolean;
|
|
21
|
+
protected isItemSelected(item: SdcGridMenuItem): boolean;
|
|
22
|
+
protected resolveItemRole(item: SdcGridMenuItem): 'button' | 'link' | 'option';
|
|
23
|
+
protected onItemActivated(item: SdcGridMenuItem): void;
|
|
24
|
+
private dispatchItemAction;
|
|
25
|
+
private handleNavigationResult;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridMenuComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridMenuComponent, "sdc-grid-menu", never, { "items": { "alias": "items"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectedId": { "alias": "selectedId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, { "selectedIdChange": "selectedIdChange"; "itemActivated": "itemActivated"; }, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -12,6 +12,7 @@ export declare class HyperlinkComponent {
|
|
|
12
12
|
target: HyperlinkTarget;
|
|
13
13
|
rel: string;
|
|
14
14
|
disabled: boolean;
|
|
15
|
+
required: boolean;
|
|
15
16
|
underline: HyperlinkUnderline;
|
|
16
17
|
appearance: HyperlinkAppearance;
|
|
17
18
|
hoverStyle: HyperlinkHoverStyle;
|
|
@@ -29,5 +30,5 @@ export declare class HyperlinkComponent {
|
|
|
29
30
|
handleInteraction(event: Event): void;
|
|
30
31
|
private hasContent;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<HyperlinkComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HyperlinkComponent, "sdc-hyperlink", never, { "href": { "alias": "href"; "required": false; }; "text": { "alias": "text"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "domainFilterToken": { "alias": "domainFilterToken"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "underline": { "alias": "underline"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "hoverStyle": { "alias": "hoverStyle"; "required": false; }; }, { "clicked": "clicked"; "domainFilterClick": "domainFilterClick"; }, never, never, true, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HyperlinkComponent, "sdc-hyperlink", never, { "href": { "alias": "href"; "required": false; }; "text": { "alias": "text"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "domainFilterToken": { "alias": "domainFilterToken"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "underline": { "alias": "underline"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "hoverStyle": { "alias": "hoverStyle"; "required": false; }; }, { "clicked": "clicked"; "domainFilterClick": "domainFilterClick"; }, never, never, true, never>;
|
|
33
34
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import type { ImageCropperConfig } from '../../core/types/image-cropper.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ImageCropperComponent {
|
|
5
|
+
imageEl?: ElementRef<HTMLImageElement>;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
imageSource: string | undefined;
|
|
8
|
+
header: string;
|
|
9
|
+
cropLabel: string;
|
|
10
|
+
cancelLabel: string;
|
|
11
|
+
removeLabel: string;
|
|
12
|
+
selectAnotherLabel: string;
|
|
13
|
+
emptyStateTitle: string;
|
|
14
|
+
emptyStateActionLabel: string;
|
|
15
|
+
aspectRatio: number;
|
|
16
|
+
rounded: boolean;
|
|
17
|
+
allowSelectAnother: boolean;
|
|
18
|
+
allowRemove: boolean;
|
|
19
|
+
allowCancel: boolean;
|
|
20
|
+
visibleChange: EventEmitter<boolean>;
|
|
21
|
+
croppedImage: EventEmitter<string>;
|
|
22
|
+
croppedCanvas: EventEmitter<HTMLCanvasElement>;
|
|
23
|
+
changeImage: EventEmitter<void>;
|
|
24
|
+
removedImage: EventEmitter<void>;
|
|
25
|
+
cancel: EventEmitter<void>;
|
|
26
|
+
private readonly cdr;
|
|
27
|
+
get hasImage(): boolean;
|
|
28
|
+
get outputWidth(): number;
|
|
29
|
+
get outputHeight(): number;
|
|
30
|
+
onModalVisibleChange(value: boolean): void;
|
|
31
|
+
onCropImage(): void;
|
|
32
|
+
onCancel(): void;
|
|
33
|
+
onRemove(): void;
|
|
34
|
+
onSelectAnother(): void;
|
|
35
|
+
onEmptyStateAction(): void;
|
|
36
|
+
applyConfig(config: ImageCropperConfig): void;
|
|
37
|
+
private applyConfigProperties;
|
|
38
|
+
private assignIfDefined;
|
|
39
|
+
private applyConfigEventListeners;
|
|
40
|
+
private closeModal;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageCropperComponent, "sdc-image-cropper", never, { "visible": { "alias": "visible"; "required": false; }; "imageSource": { "alias": "imageSource"; "required": false; }; "header": { "alias": "header"; "required": false; }; "cropLabel": { "alias": "cropLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "removeLabel": { "alias": "removeLabel"; "required": false; }; "selectAnotherLabel": { "alias": "selectAnotherLabel"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateActionLabel": { "alias": "emptyStateActionLabel"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "allowSelectAnother": { "alias": "allowSelectAnother"; "required": false; }; "allowRemove": { "alias": "allowRemove"; "required": false; }; "allowCancel": { "alias": "allowCancel"; "required": false; }; }, { "visibleChange": "visibleChange"; "croppedImage": "croppedImage"; "croppedCanvas": "croppedCanvas"; "changeImage": "changeImage"; "removedImage": "removedImage"; "cancel": "cancel"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApplicationRef, Injector } from '@angular/core';
|
|
2
|
+
import type { ImageCropperConfig } from '../../../core/types/image-cropper.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ImageCropperService {
|
|
5
|
+
private readonly appRef;
|
|
6
|
+
private readonly injector;
|
|
7
|
+
private activeRef;
|
|
8
|
+
constructor(appRef: ApplicationRef, injector: Injector);
|
|
9
|
+
show(config?: ImageCropperConfig): void;
|
|
10
|
+
private destroy;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImageCropperService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InfiniteScrollDirective implements OnChanges, OnDestroy {
|
|
4
|
+
private readonly hostRef;
|
|
5
|
+
private debounceHandle;
|
|
6
|
+
private waitingForReset;
|
|
7
|
+
private previousLoading;
|
|
8
|
+
threshold: number;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
debounceMs: number;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
scrolled: EventEmitter<HTMLElement>;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
protected onHostScroll(): void;
|
|
16
|
+
private evaluateScrollPosition;
|
|
17
|
+
private clearDebounceHandle;
|
|
18
|
+
private scheduleEvaluation;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InfiniteScrollDirective, "[sdcInfiniteScroll]", never, { "threshold": { "alias": "threshold"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "debounceMs": { "alias": "debounceMs"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "scrolled": "scrolled"; }, never, never, true, never>;
|
|
21
|
+
static ngAcceptInputType_threshold: unknown;
|
|
22
|
+
static ngAcceptInputType_disabled: unknown;
|
|
23
|
+
static ngAcceptInputType_debounceMs: unknown;
|
|
24
|
+
static ngAcceptInputType_loading: unknown;
|
|
25
|
+
}
|
package/features/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { InlineEditNumberField } from '../../../fields/inline-edit-number-field';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InlineEditNumberComponent implements OnInit {
|
|
6
|
+
field: InlineEditNumberField;
|
|
7
|
+
formGroup: FormGroup;
|
|
8
|
+
tempValue: number | null;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
saveValue(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineEditNumberComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineEditNumberComponent, "sdc-inline-edit-number", never, { "field": { "alias": "field"; "required": true; }; "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
package/features/inline-edit/components/fields/inline-edit-text/inline-edit-text.component.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { InlineEditTextField } from '../../../fields/inline-edit-text-field';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InlineEditTextComponent implements OnInit {
|
|
6
|
+
field: InlineEditTextField;
|
|
7
|
+
formGroup: FormGroup;
|
|
8
|
+
tempValue: string;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
saveValue(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineEditTextComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineEditTextComponent, "sdc-inline-edit-text", never, { "field": { "alias": "field"; "required": true; }; "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { InlineEditTextAreaField } from '../../../fields/inline-edit-textarea-field';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InlineEditTextareaComponent implements OnInit {
|
|
6
|
+
field: InlineEditTextAreaField;
|
|
7
|
+
formGroup: FormGroup;
|
|
8
|
+
tempValue: string;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
saveValue(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineEditTextareaComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineEditTextareaComponent, "sdc-inline-edit-textarea", never, { "field": { "alias": "field"; "required": true; }; "formGroup": { "alias": "formGroup"; "required": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|