@tilde-nlp/ngx-common 3.0.2 → 4.0.1
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/README.md +2 -0
- package/{esm2020 → esm2022}/lib/close-button/close-button.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/close-button/close-button.module.mjs +11 -11
- package/{esm2020 → esm2022}/lib/company-product/company-product.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/company-product/company-product.module.mjs +5 -5
- package/esm2022/lib/confirmation-modal/confirmation-modal.component.mjs +25 -0
- package/esm2022/lib/confirmation-modal/confirmation-modal.module.mjs +21 -0
- package/esm2022/lib/confirmation-modal/index.mjs +6 -0
- package/esm2022/lib/confirmation-modal/models/confirmation-body.model.mjs +2 -0
- package/esm2022/lib/confirmation-modal/models/confirmation.enum.mjs +6 -0
- package/esm2022/lib/confirmation-modal/services/confirmation.service.mjs +25 -0
- package/esm2022/lib/confirmation-modal/services/index.mjs +2 -0
- package/{esm2020 → esm2022}/lib/directives/click-outside/click-outside.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/directives/click-outside/click-outside.module.mjs +5 -5
- package/esm2022/lib/directives/drag-and-drop/drag-and-drop.directive.mjs +62 -0
- package/esm2022/lib/directives/drag-and-drop/drag-and-drop.module.mjs +24 -0
- package/esm2022/lib/directives/drag-and-drop/index.mjs +3 -0
- package/esm2022/lib/directives/index.mjs +4 -0
- package/esm2022/lib/directives/mat-button-loading/index.mjs +3 -0
- package/esm2022/lib/directives/mat-button-loading/mat-button-loading.directive.mjs +65 -0
- package/esm2022/lib/directives/mat-button-loading/mat-button-loading.module.mjs +20 -0
- package/esm2022/lib/file-upload/file-upload.component.mjs +107 -0
- package/esm2022/lib/file-upload/file-upload.module.mjs +42 -0
- package/esm2022/lib/file-upload/index.mjs +4 -0
- package/esm2022/lib/file-upload/models/file-upload-error-type.enum.mjs +8 -0
- package/esm2022/lib/file-upload/models/file-upload-error.model.mjs +2 -0
- package/esm2022/lib/file-upload/models/index.mjs +3 -0
- package/esm2022/lib/filter-bar/filter-bar.component.mjs +146 -0
- package/esm2022/lib/filter-bar/filter-bar.module.mjs +71 -0
- package/esm2022/lib/filter-bar/index.mjs +4 -0
- package/esm2022/lib/filter-bar/models/filter-bar-change-event.model.mjs +2 -0
- package/esm2022/lib/filter-bar/models/filter-bar-filter-item.model.mjs +2 -0
- package/esm2022/lib/filter-bar/models/filter-bar-filter.model.mjs +2 -0
- package/esm2022/lib/filter-bar/models/filter-bar-settings.model.mjs +2 -0
- package/esm2022/lib/filter-bar/models/index.mjs +4 -0
- package/{esm2020 → esm2022}/lib/footer/footer.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/footer/footer.module.mjs +11 -11
- package/esm2022/lib/helpers/html-element-parse.helper.mjs +15 -0
- package/esm2022/lib/helpers/index.mjs +4 -0
- package/{esm2020/lib/helpers/missing-translation-helper.mjs → esm2022/lib/helpers/missing-translation.helper.mjs} +1 -1
- package/esm2022/lib/helpers/save-file.helper.mjs +11 -0
- package/{esm2020 → esm2022}/lib/inline-message/inline-message.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/inline-message/inline-message.module.mjs +9 -9
- package/esm2022/lib/multi-functional-table/constants/disable-export-attribute-name.const.mjs +2 -0
- package/esm2022/lib/multi-functional-table/constants/index.mjs +2 -0
- package/esm2022/lib/multi-functional-table/index.mjs +5 -0
- package/esm2022/lib/multi-functional-table/models/batch-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/column-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/column-select-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/export-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/export-format.enum.mjs +5 -0
- package/esm2022/lib/multi-functional-table/models/filter-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/index.mjs +8 -0
- package/esm2022/lib/multi-functional-table/models/multi-functional-table-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/no-data-row-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/models/selected-column-local-storage-config.model.mjs +2 -0
- package/esm2022/lib/multi-functional-table/multi-functional-table.component.mjs +225 -0
- package/esm2022/lib/multi-functional-table/multi-functional-table.module.mjs +64 -0
- package/esm2022/lib/notification-message/notification-message.component.mjs +51 -0
- package/{esm2020 → esm2022}/lib/notification-message/notification-message.module.mjs +15 -15
- package/esm2022/lib/pipes/date-ago/date-ago.module.mjs +28 -0
- package/esm2022/lib/pipes/date-ago/date-ago.pipe.mjs +114 -0
- package/esm2022/lib/pipes/date-ago/index.mjs +3 -0
- package/esm2022/lib/pipes/date-ago/models/date-ago-interval.model.mjs +2 -0
- package/esm2022/lib/pipes/date-ago/models/date-ago-settings.model.mjs +2 -0
- package/esm2022/lib/pipes/date-ago/models/date-ago-settings.token.mjs +2 -0
- package/esm2022/lib/pipes/date-ago/models/date-ago.model.mjs +2 -0
- package/esm2022/lib/pipes/date-ago/models/index.mjs +5 -0
- package/{esm2020 → esm2022}/lib/pipes/filter-with-highlight/filter-with-highlight.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/pipes/filter-with-highlight/filter-with-highlight.pipe.mjs +4 -4
- package/esm2022/lib/pipes/index.mjs +5 -0
- package/{esm2020 → esm2022}/lib/pipes/sort-translations/sort-translations.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/pipes/sort-translations/sort-translations.pipe.mjs +4 -4
- package/esm2022/lib/pipes/sort-translations-by-property/index.mjs +3 -0
- package/esm2022/lib/pipes/sort-translations-by-property/sort-translations-by-property.module.mjs +18 -0
- package/esm2022/lib/pipes/sort-translations-by-property/sort-translations-by-property.pipe.mjs +40 -0
- package/{esm2020 → esm2022}/lib/plausible/plausible-event.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/plausible/plausible.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/dom.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/icon.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/tld-loader/tld-loader.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/tld-loader/tld-loader.module.mjs +5 -5
- package/esm2022/public-api.mjs +19 -0
- package/fesm2022/tilde-nlp-ngx-common.mjs +1712 -0
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -0
- package/lib/close-button/close-button.component.d.ts +1 -1
- package/lib/company-product/company-product.component.d.ts +1 -1
- package/lib/confirmation-modal/confirmation-modal.component.d.ts +12 -0
- package/lib/confirmation-modal/confirmation-modal.module.d.ts +11 -0
- package/lib/confirmation-modal/index.d.ts +5 -0
- package/lib/confirmation-modal/models/confirmation-body.model.d.ts +8 -0
- package/lib/confirmation-modal/models/confirmation.enum.d.ts +4 -0
- package/lib/confirmation-modal/services/confirmation.service.d.ts +12 -0
- package/lib/confirmation-modal/services/index.d.ts +1 -0
- package/lib/directives/drag-and-drop/drag-and-drop.directive.d.ts +14 -0
- package/lib/directives/drag-and-drop/drag-and-drop.module.d.ts +8 -0
- package/lib/directives/drag-and-drop/index.d.ts +2 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/mat-button-loading/index.d.ts +2 -0
- package/lib/directives/mat-button-loading/mat-button-loading.directive.d.ts +18 -0
- package/lib/directives/mat-button-loading/mat-button-loading.module.d.ts +8 -0
- package/lib/file-upload/file-upload.component.d.ts +29 -0
- package/lib/file-upload/file-upload.module.d.ts +13 -0
- package/lib/file-upload/index.d.ts +3 -0
- package/lib/file-upload/models/file-upload-error-type.enum.d.ts +6 -0
- package/lib/file-upload/models/file-upload-error.model.d.ts +6 -0
- package/lib/file-upload/models/index.d.ts +2 -0
- package/lib/filter-bar/filter-bar.component.d.ts +54 -0
- package/lib/filter-bar/filter-bar.module.d.ts +19 -0
- package/lib/filter-bar/index.d.ts +3 -0
- package/lib/filter-bar/models/filter-bar-change-event.model.d.ts +6 -0
- package/lib/filter-bar/models/filter-bar-filter-item.model.d.ts +4 -0
- package/lib/filter-bar/models/filter-bar-filter.model.d.ts +6 -0
- package/lib/filter-bar/models/filter-bar-settings.model.d.ts +19 -0
- package/lib/filter-bar/models/index.d.ts +3 -0
- package/lib/footer/footer.component.d.ts +1 -1
- package/lib/helpers/html-element-parse.helper.d.ts +3 -0
- package/lib/helpers/index.d.ts +3 -1
- package/lib/helpers/save-file.helper.d.ts +3 -0
- package/lib/inline-message/inline-message.component.d.ts +1 -1
- package/lib/multi-functional-table/constants/disable-export-attribute-name.const.d.ts +1 -0
- package/lib/multi-functional-table/constants/index.d.ts +1 -0
- package/lib/multi-functional-table/index.d.ts +4 -0
- package/lib/multi-functional-table/models/batch-config.model.d.ts +4 -0
- package/lib/multi-functional-table/models/column-config.model.d.ts +18 -0
- package/lib/multi-functional-table/models/column-select-config.model.d.ts +14 -0
- package/lib/multi-functional-table/models/export-config.model.d.ts +9 -0
- package/lib/multi-functional-table/models/export-format.enum.d.ts +3 -0
- package/lib/multi-functional-table/models/filter-config.model.d.ts +6 -0
- package/lib/multi-functional-table/models/index.d.ts +7 -0
- package/lib/multi-functional-table/models/multi-functional-table-config.model.d.ts +36 -0
- package/lib/multi-functional-table/models/no-data-row-config.model.d.ts +9 -0
- package/lib/multi-functional-table/models/selected-column-local-storage-config.model.d.ts +20 -0
- package/lib/multi-functional-table/multi-functional-table.component.d.ts +65 -0
- package/lib/multi-functional-table/multi-functional-table.module.d.ts +18 -0
- package/lib/notification-message/notification-message.component.d.ts +1 -1
- package/lib/pipes/date-ago/date-ago.module.d.ts +9 -0
- package/lib/pipes/date-ago/date-ago.pipe.d.ts +20 -0
- package/lib/pipes/date-ago/index.d.ts +2 -0
- package/lib/pipes/date-ago/models/date-ago-interval.model.d.ts +5 -0
- package/lib/pipes/date-ago/models/date-ago-settings.model.d.ts +26 -0
- package/lib/pipes/date-ago/models/date-ago-settings.token.d.ts +1 -0
- package/lib/pipes/date-ago/models/date-ago.model.d.ts +4 -0
- package/lib/pipes/date-ago/models/index.d.ts +4 -0
- package/lib/pipes/index.d.ts +2 -0
- package/lib/pipes/sort-translations-by-property/index.d.ts +2 -0
- package/lib/pipes/sort-translations-by-property/sort-translations-by-property.module.d.ts +8 -0
- package/lib/pipes/sort-translations-by-property/sort-translations-by-property.pipe.d.ts +15 -0
- package/lib/plausible/plausible-event.directive.d.ts +1 -1
- package/package.json +8 -14
- package/public-api.d.ts +4 -0
- package/styles/components/buttons.scss +19 -0
- package/styles/components/dialogs.scss +18 -0
- package/styles/components/icons.scss +16 -4
- package/styles/fonts/inter/inter.scss +567 -0
- package/styles/fonts/inter/woff/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-cyrillic-ext.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-cyrillic.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-greek-ext.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-greek.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-latin-ext.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-latin.woff2 +0 -0
- package/styles/fonts/inter/woff/inter-vietnamese.woff2 +0 -0
- package/styles/fonts/material-icons/material-icons.scss +40 -0
- package/styles/fonts/material-icons/woff/material-icons-outlined.woff2 +0 -0
- package/styles/fonts/material-icons/woff/material-icons.woff2 +0 -0
- package/styles/fonts/roboto/roboto.scss +252 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-700.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-ext-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-ext-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-ext-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-cyrillic-ext-700.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-700.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-ext-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-ext-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-ext-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-greek-ext-700.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-700.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-ext-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-ext-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-ext-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-latin-ext-700.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-vietnamese-300.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-vietnamese-400.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-vietnamese-500.woff2 +0 -0
- package/styles/fonts/roboto/woff/roboto-vietnamese-700.woff2 +0 -0
- package/styles/mixins/material-overrides/mat-button-overrides.mixin.scss +13 -3
- package/styles/mixins/material-overrides/mat-form-field-overrides.mixin.scss +1 -0
- package/styles/mixins/material-overrides/mat-progress-bar-overrides.mixin.scss +15 -0
- package/styles/mixins/material-overrides/material-overrides.mixin.scss +2 -0
- package/styles/mixins/tld-all-mixins.mixin.scss +9 -1
- package/styles/tilde-fonts.scss +2 -2
- package/styles/tilde-style.scss +1 -0
- package/styles/variables/colors.variables.scss +1 -0
- package/esm2020/lib/directives/index.mjs +0 -2
- package/esm2020/lib/helpers/index.mjs +0 -2
- package/esm2020/lib/notification-message/notification-message.component.mjs +0 -51
- package/esm2020/lib/pipes/index.mjs +0 -3
- package/esm2020/public-api.mjs +0 -15
- package/fesm2015/tilde-nlp-ngx-common.mjs +0 -676
- package/fesm2015/tilde-nlp-ngx-common.mjs.map +0 -1
- package/fesm2020/tilde-nlp-ngx-common.mjs +0 -675
- package/fesm2020/tilde-nlp-ngx-common.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/close-button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/company-product/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/click-outside/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/footer/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/inline-message/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/inline-message/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/inline-message/models/inline-message-icon-position.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/inline-message/models/inline-message-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/inline-message/models/inline-message.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/notification-message/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/notification-message/enums/notification-message-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/notification-message/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/notification-message/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/notification-message/interfaces/notification-message.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pipes/filter-with-highlight/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/pipes/sort-translations/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/plausible/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/plausible/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/plausible/models/plausible-event.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/plausible/plausible.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tld-loader/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tilde-nlp-ngx-common.mjs +0 -0
- /package/lib/helpers/{missing-translation-helper.d.ts → missing-translation.helper.d.ts} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { FilterBarFilterItem } from './models';
|
|
4
|
+
import { FilterBarChangeEvent } from './models/filter-bar-change-event.model';
|
|
5
|
+
import { FilterBarSettings } from './models/filter-bar-settings.model';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FilterBarComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
9
|
+
private cdref;
|
|
10
|
+
private translate;
|
|
11
|
+
filterWrapper: ElementRef;
|
|
12
|
+
onResize(): void;
|
|
13
|
+
settings: FilterBarSettings;
|
|
14
|
+
set filterRowVisible(value: boolean);
|
|
15
|
+
filterBarChange: EventEmitter<FilterBarChangeEvent>;
|
|
16
|
+
private _inputText;
|
|
17
|
+
private _filterRowVisible;
|
|
18
|
+
private formChangesSubscription;
|
|
19
|
+
/** To hide filters, but leave chips visible */
|
|
20
|
+
readonly inputFormControlName = "input";
|
|
21
|
+
readonly filterFormGroup: FormGroup<{}>;
|
|
22
|
+
readonly form: FormGroup<{
|
|
23
|
+
input: FormControl<string | null>;
|
|
24
|
+
filters: FormGroup<{}>;
|
|
25
|
+
}>;
|
|
26
|
+
searchTitle: string;
|
|
27
|
+
searchTooltip: string;
|
|
28
|
+
suffixIcon: string;
|
|
29
|
+
prefixIcon: string;
|
|
30
|
+
showSuffixIcon: boolean;
|
|
31
|
+
filters: FilterBarChangeEvent;
|
|
32
|
+
filterOverflow: boolean;
|
|
33
|
+
activeFilterIndex: number;
|
|
34
|
+
searchIndex: number;
|
|
35
|
+
get filterFormGroupValue(): {
|
|
36
|
+
[key: string]: FilterBarFilterItem[];
|
|
37
|
+
};
|
|
38
|
+
get filterRowVisible(): boolean;
|
|
39
|
+
get inputText(): string;
|
|
40
|
+
get showSearch(): boolean;
|
|
41
|
+
set inputText(value: string);
|
|
42
|
+
constructor(cdref: ChangeDetectorRef, translate: TranslateService);
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
ngAfterViewInit(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
emitFilters(): void;
|
|
47
|
+
switchRight(): void;
|
|
48
|
+
switchLeft(): void;
|
|
49
|
+
removeFilter(key: string, ix: number): void;
|
|
50
|
+
private checkOverflow;
|
|
51
|
+
private subscribeToFormValueChanges;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBarComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterBarComponent, "tld-filter-bar", never, { "settings": { "alias": "settings"; "required": false; }; "filterRowVisible": { "alias": "filterRowVisible"; "required": false; }; }, { "filterBarChange": "filterBarChange"; }, never, never, false, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./filter-bar.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i4 from "@angular/material/input";
|
|
6
|
+
import * as i5 from "@angular/material/form-field";
|
|
7
|
+
import * as i6 from "@angular/flex-layout";
|
|
8
|
+
import * as i7 from "@angular/material/select";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "@angular/material/tooltip";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "@angular/material/chips";
|
|
13
|
+
import * as i12 from "@angular/material/icon";
|
|
14
|
+
import * as i13 from "../pipes/sort-translations-by-property/sort-translations-by-property.module";
|
|
15
|
+
export declare class FilterBarModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBarModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FilterBarModule, [typeof i1.FilterBarComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.MatInputModule, typeof i5.MatFormFieldModule, typeof i6.FlexLayoutModule, typeof i7.MatSelectModule, typeof i8.FormsModule, typeof i9.MatTooltipModule, typeof i10.MatButtonModule, typeof i11.MatChipsModule, typeof i12.MatIconModule, typeof i8.ReactiveFormsModule, typeof i13.SortTranslationsByPropertyModule], [typeof i1.FilterBarComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FilterBarModule>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FilterBarFilter } from "./filter-bar-filter.model";
|
|
2
|
+
export interface FilterBarSettings {
|
|
3
|
+
/** Show/hide search input. Enabled by default. */
|
|
4
|
+
hideSearch?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Title for search input field. Default value: FILTER_BAR.SEARCH
|
|
7
|
+
*/
|
|
8
|
+
searchTitle?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Search tooltip, shown after input field for icon
|
|
11
|
+
*/
|
|
12
|
+
searchTooltip?: string;
|
|
13
|
+
/** Prefix icon from material icons. */
|
|
14
|
+
prefixIcon?: string;
|
|
15
|
+
/** Suffix icon from material icons. */
|
|
16
|
+
suffixIcon?: string;
|
|
17
|
+
showSuffixIcon?: boolean;
|
|
18
|
+
filters?: FilterBarFilter[];
|
|
19
|
+
}
|
|
@@ -11,5 +11,5 @@ export declare class FooterComponent implements OnInit {
|
|
|
11
11
|
constructor();
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "tld-footer", never, { "privacyRoute": "privacyRoute"; "termsOfUseRoute": "termsOfUseRoute"; "contactUsRoute": "contactUsRoute"; "baseUrl": "baseUrl"; }, {}, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "tld-footer", never, { "privacyRoute": { "alias": "privacyRoute"; "required": false; }; "termsOfUseRoute": { "alias": "termsOfUseRoute"; "required": false; }; "contactUsRoute": { "alias": "contactUsRoute"; "required": false; }; "baseUrl": { "alias": "baseUrl"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
15
|
}
|
package/lib/helpers/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare class InlineMessageComponent {
|
|
|
6
6
|
iconName: string;
|
|
7
7
|
message: InlineMessage;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<InlineMessageComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InlineMessageComponent, "lib-inline-message", never, { "iconName": "iconName"; "message": "message"; }, {}, never, never, false, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineMessageComponent, "lib-inline-message", never, { "iconName": { "alias": "iconName"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DISABLE_EXPORT_ATTRIBUTE_NAME = "disable-export";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./disable-export-attribute-name.const";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ColumnConfig {
|
|
2
|
+
/**
|
|
3
|
+
* Column name. For column to dissapear/be visible, this must be the same as defined for mat-table columns.
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* Display name. Component applies translate pipe to this.
|
|
8
|
+
*/
|
|
9
|
+
displayName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Default value to determine if column is selected.
|
|
12
|
+
*/
|
|
13
|
+
selected: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* If set to true, columns visibility can't be toggled.
|
|
16
|
+
*/
|
|
17
|
+
notConfigurable?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ColumnConfig } from "./column-config.model";
|
|
2
|
+
/**
|
|
3
|
+
* Multi functional table configuration for column selecting. Config responsible for configuring columns whose visibilty can be toggled.
|
|
4
|
+
*/
|
|
5
|
+
export interface ColumnSelectConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Columns to whom visibility can be changed.
|
|
8
|
+
*/
|
|
9
|
+
columns: ColumnConfig[];
|
|
10
|
+
/**
|
|
11
|
+
* If column select feature is enabled.
|
|
12
|
+
*/
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./multi-functional-table-config.model";
|
|
2
|
+
export * from "./column-config.model";
|
|
3
|
+
export * from "./column-select-config.model";
|
|
4
|
+
export * from "./export-config.model";
|
|
5
|
+
export * from "./export-format.enum";
|
|
6
|
+
export * from "./no-data-row-config.model";
|
|
7
|
+
export * from "./batch-config.model";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MatTableDataSource } from "@angular/material/table";
|
|
2
|
+
import { BatchConfig } from "./batch-config.model";
|
|
3
|
+
import { ColumnSelectConfig } from "./column-select-config.model";
|
|
4
|
+
import { ExportConfig } from "./export-config.model";
|
|
5
|
+
import { FilterConfig } from "./filter-config.model";
|
|
6
|
+
import { NoDataRowConfig } from "./no-data-row-config.model";
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for table with multiple predefined actoins against mat table.
|
|
9
|
+
*/
|
|
10
|
+
export interface MultiFunctionalTableConfig<T> {
|
|
11
|
+
/**
|
|
12
|
+
* Mat table dataSource
|
|
13
|
+
*/
|
|
14
|
+
dataSource: MatTableDataSource<T>;
|
|
15
|
+
/**
|
|
16
|
+
* Configuration for toggling displayed columns in mat table
|
|
17
|
+
*/
|
|
18
|
+
columnSelect?: ColumnSelectConfig;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration for filters. For filtering custom filterBar component is used. Note that component does not filter datasource by itself but only emits event when filters are changed.
|
|
21
|
+
*/
|
|
22
|
+
filter?: FilterConfig;
|
|
23
|
+
/**
|
|
24
|
+
* Configuration for exporting data.
|
|
25
|
+
*/
|
|
26
|
+
export?: ExportConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Local storage key to store selected columns and filter visibilty.
|
|
29
|
+
*/
|
|
30
|
+
localStorageKey?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for texts and icon for no data row.
|
|
33
|
+
*/
|
|
34
|
+
noDataRow?: NoDataRowConfig;
|
|
35
|
+
batchConfig?: BatchConfig;
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object type that is stored in local storage for remembering user choices.
|
|
3
|
+
*/
|
|
4
|
+
export interface SelectedColumnLocalStorageConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Settings related to column select.
|
|
7
|
+
*/
|
|
8
|
+
columns?: {
|
|
9
|
+
/**
|
|
10
|
+
* Wether given column was selected.
|
|
11
|
+
*/
|
|
12
|
+
[columnName: string]: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Filter settings.
|
|
16
|
+
*/
|
|
17
|
+
filter?: {
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
3
|
+
import { MatSort } from '@angular/material/sort';
|
|
4
|
+
import { MatColumnDef, MatHeaderRowDef, MatNoDataRow, MatRowDef, MatTable } from '@angular/material/table';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { FilterBarChangeEvent } from '../filter-bar/models/filter-bar-change-event.model';
|
|
8
|
+
import { DOMService } from '../services';
|
|
9
|
+
import { NoDataRowConfig } from './models';
|
|
10
|
+
import { ColumnConfig } from './models/column-config.model';
|
|
11
|
+
import { MultiFunctionalTableConfig } from './models/multi-functional-table-config.model';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterContentInit, AfterViewInit {
|
|
14
|
+
private readonly domService;
|
|
15
|
+
private readonly translateService;
|
|
16
|
+
readonly matSelection: SelectionModel<T>;
|
|
17
|
+
config: MultiFunctionalTableConfig<T>;
|
|
18
|
+
highlightedElements: T[];
|
|
19
|
+
set selection(value: T[]);
|
|
20
|
+
filterBarChange: EventEmitter<FilterBarChangeEvent>;
|
|
21
|
+
exported: EventEmitter<T[]>;
|
|
22
|
+
selectionChange: Observable<T[]>;
|
|
23
|
+
headerRowDefs: QueryList<MatHeaderRowDef>;
|
|
24
|
+
rowDefs: QueryList<MatRowDef<T>>;
|
|
25
|
+
columnDefs: QueryList<MatColumnDef>;
|
|
26
|
+
noDataRow: MatNoDataRow;
|
|
27
|
+
table: MatTable<T>;
|
|
28
|
+
sort: MatSort;
|
|
29
|
+
tableElementRef: ElementRef<HTMLElement>;
|
|
30
|
+
get ignoreAttributeName(): string;
|
|
31
|
+
displayColumns: string[];
|
|
32
|
+
columnSelectActive: boolean;
|
|
33
|
+
exportActive: boolean;
|
|
34
|
+
noDataRowActive: boolean;
|
|
35
|
+
filterBarVisible: boolean;
|
|
36
|
+
noDataRowConfig: NoDataRowConfig;
|
|
37
|
+
noDataRowIcon: string;
|
|
38
|
+
configurableColumns: ColumnConfig[];
|
|
39
|
+
batchSelectedEnabled: boolean;
|
|
40
|
+
hoveredRow: any;
|
|
41
|
+
get filterActive(): boolean | undefined;
|
|
42
|
+
private localStorageValue;
|
|
43
|
+
readonly batchColumnName = "batch";
|
|
44
|
+
constructor(domService: DOMService, translateService: TranslateService);
|
|
45
|
+
ngOnInit(): void;
|
|
46
|
+
ngAfterContentInit(): void;
|
|
47
|
+
ngAfterViewInit(): void;
|
|
48
|
+
updateDisplayColumns(initial?: boolean): void;
|
|
49
|
+
toggleFilterBar(): void;
|
|
50
|
+
filtersChanged(filters: FilterBarChangeEvent): void;
|
|
51
|
+
export(): void;
|
|
52
|
+
highlightElement(element: T): boolean;
|
|
53
|
+
isAllSelected(): boolean;
|
|
54
|
+
toggleAllRowSelection(): void;
|
|
55
|
+
toggleElementSelection(element: T): void;
|
|
56
|
+
private exportToFile;
|
|
57
|
+
private updateLocalStorage;
|
|
58
|
+
private readFromLocalStorage;
|
|
59
|
+
private setColumnSelectProperties;
|
|
60
|
+
private setFilterVisibility;
|
|
61
|
+
private setNoDataRowProperties;
|
|
62
|
+
private setExportProperties;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiFunctionalTableComponent<any>, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiFunctionalTableComponent<any>, "tld-multi-functional-table", never, { "config": { "alias": "config"; "required": false; }; "highlightedElements": { "alias": "highlightedElements"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, { "filterBarChange": "filterBarChange"; "exported": "exported"; "selectionChange": "selectionChange"; }, ["noDataRow", "headerRowDefs", "rowDefs", "columnDefs"], ["[additionalActions]", "*"], false, never>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./multi-functional-table.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/table";
|
|
5
|
+
import * as i4 from "@angular/material/button";
|
|
6
|
+
import * as i5 from "@ngx-translate/core";
|
|
7
|
+
import * as i6 from "@angular/material/menu";
|
|
8
|
+
import * as i7 from "@angular/material/checkbox";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "../filter-bar/filter-bar.module";
|
|
11
|
+
import * as i10 from "@angular/flex-layout";
|
|
12
|
+
import * as i11 from "@angular/material/sort";
|
|
13
|
+
import * as i12 from "@angular/material/progress-spinner";
|
|
14
|
+
export declare class MultiFunctionalTableModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiFunctionalTableModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MultiFunctionalTableModule, [typeof i1.MultiFunctionalTableComponent], [typeof i2.CommonModule, typeof i3.MatTableModule, typeof i4.MatButtonModule, typeof i5.TranslateModule, typeof i6.MatMenuModule, typeof i7.MatCheckboxModule, typeof i8.FormsModule, typeof i9.FilterBarModule, typeof i10.FlexLayoutModule, typeof i11.MatSortModule, typeof i12.MatProgressSpinnerModule], [typeof i1.MultiFunctionalTableComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MultiFunctionalTableModule>;
|
|
18
|
+
}
|
|
@@ -18,5 +18,5 @@ export declare class NotificationMessageComponent implements OnInit {
|
|
|
18
18
|
closeClick(): void;
|
|
19
19
|
linkClick(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationMessageComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationMessageComponent, "lib-tld-notification-message", never, { "message": "message"; "inline": "inline"; }, { "buttonClicked": "buttonClicked"; "closeClicked": "closeClicked"; "linkClicked": "linkClicked"; }, never, never, false, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationMessageComponent, "lib-tld-notification-message", never, { "message": { "alias": "message"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "closeClicked": "closeClicked"; "linkClicked": "linkClicked"; }, never, never, false, never>;
|
|
22
22
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./date-ago.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
export declare class DateAgoModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateAgoModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DateAgoModule, [typeof i1.DateAgoPipe], [typeof i2.CommonModule, typeof i3.TranslateModule], [typeof i1.DateAgoPipe]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DateAgoModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChangeDetectorRef, PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { DateAgo, DateAgoSettings } from './models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DateAgoPipe implements PipeTransform {
|
|
6
|
+
private readonly translate;
|
|
7
|
+
private readonly _ref;
|
|
8
|
+
private readonly settings;
|
|
9
|
+
readonly defaultSettings: DateAgoSettings;
|
|
10
|
+
get intervals(): import("./models").DateAgoInterval[];
|
|
11
|
+
get multiplePostfix(): string;
|
|
12
|
+
get localizationPrefix(): string;
|
|
13
|
+
get justNowKey(): string;
|
|
14
|
+
get justNowSeconds(): number;
|
|
15
|
+
constructor(translate: TranslateService, _ref: ChangeDetectorRef, settings: DateAgoSettings);
|
|
16
|
+
transform(value: Date, enableMultiplePostfix?: boolean): string;
|
|
17
|
+
calculateDateAgo(value: Date, enableMultiplePostfix: boolean): DateAgo | null;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateAgoPipe, [null, null, { optional: true; }]>;
|
|
19
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateAgoPipe, "dateAgo", false>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DateAgoInterval } from "./date-ago-interval.model";
|
|
2
|
+
/**
|
|
3
|
+
* Configuration settings for DateAgo pipe.
|
|
4
|
+
*/
|
|
5
|
+
export interface DateAgoSettings {
|
|
6
|
+
/**
|
|
7
|
+
* Intervals for defined groups.
|
|
8
|
+
*/
|
|
9
|
+
intervals: DateAgoInterval[];
|
|
10
|
+
/**
|
|
11
|
+
* String to be added to original key if interval group value is bigger than 1. Typically you want to add 'S' to the key, if value is multiple.
|
|
12
|
+
*/
|
|
13
|
+
multiplePostfix: string;
|
|
14
|
+
/**
|
|
15
|
+
* Localization key, that should be before interval key. Do not place '.' at the end of key.
|
|
16
|
+
*/
|
|
17
|
+
localizationPrefix: string;
|
|
18
|
+
/**
|
|
19
|
+
* Key for "Just now"
|
|
20
|
+
*/
|
|
21
|
+
justNowKey: string;
|
|
22
|
+
/**
|
|
23
|
+
* For how many seconds should show just now.
|
|
24
|
+
*/
|
|
25
|
+
justNowSeconds: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DateAgoSettingsToken = "DATE_AGO_SETTINGS";
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./sort-translations-by-property.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SortTranslationsByPropertyModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortTranslationsByPropertyModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SortTranslationsByPropertyModule, [typeof i1.SortTranslationsByPropertyPipe], [typeof i2.CommonModule], [typeof i1.SortTranslationsByPropertyPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SortTranslationsByPropertyModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SortTranslationsByPropertyPipe implements PipeTransform {
|
|
5
|
+
private translate;
|
|
6
|
+
constructor(translate: TranslateService);
|
|
7
|
+
/**
|
|
8
|
+
* Transforms the input array of objects by sorting them based on the specified sortingValueKey.
|
|
9
|
+
* @param values An array of objects to be sorted.
|
|
10
|
+
* @param sortingValueKey The key by which the provided values should be sorted.
|
|
11
|
+
*/
|
|
12
|
+
transform(values: any[], sortingValueKey: string): any;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortTranslationsByPropertyPipe, never>;
|
|
14
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SortTranslationsByPropertyPipe, "sortTranslationsByProperty", false>;
|
|
15
|
+
}
|
|
@@ -7,5 +7,5 @@ export declare class PlausibleEventDirective {
|
|
|
7
7
|
set libPlausibleEvent(value: PlausibleEvent | undefined);
|
|
8
8
|
onClick(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlausibleEventDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PlausibleEventDirective, "[libPlausibleEvent]", never, { "libPlausibleEvent": "libPlausibleEvent"; }, {}, never, never, false, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PlausibleEventDirective, "[libPlausibleEvent]", never, { "libPlausibleEvent": { "alias": "libPlausibleEvent"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tilde-nlp/ngx-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@ngx-translate/core": "^
|
|
5
|
+
"@angular/common": " ^16.0.0",
|
|
6
|
+
"@angular/core": " ^16.0.0",
|
|
7
|
+
"@ngx-translate/core": "^15.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|
|
11
11
|
},
|
|
12
12
|
"author": "Tilde",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
|
-
"module": "
|
|
15
|
-
"es2020": "fesm2020/tilde-nlp-ngx-common.mjs",
|
|
16
|
-
"esm2020": "esm2020/tilde-nlp-ngx-common.mjs",
|
|
17
|
-
"fesm2020": "fesm2020/tilde-nlp-ngx-common.mjs",
|
|
18
|
-
"fesm2015": "fesm2015/tilde-nlp-ngx-common.mjs",
|
|
14
|
+
"module": "fesm2022/tilde-nlp-ngx-common.mjs",
|
|
19
15
|
"typings": "index.d.ts",
|
|
20
16
|
"exports": {
|
|
21
17
|
"./package.json": {
|
|
@@ -23,11 +19,9 @@
|
|
|
23
19
|
},
|
|
24
20
|
".": {
|
|
25
21
|
"types": "./index.d.ts",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"node": "./fesm2015/tilde-nlp-ngx-common.mjs",
|
|
30
|
-
"default": "./fesm2020/tilde-nlp-ngx-common.mjs"
|
|
22
|
+
"esm2022": "./esm2022/tilde-nlp-ngx-common.mjs",
|
|
23
|
+
"esm": "./esm2022/tilde-nlp-ngx-common.mjs",
|
|
24
|
+
"default": "./fesm2022/tilde-nlp-ngx-common.mjs"
|
|
31
25
|
}
|
|
32
26
|
},
|
|
33
27
|
"sideEffects": false
|
package/public-api.d.ts
CHANGED
|
@@ -9,3 +9,7 @@ export * from './lib/tld-loader';
|
|
|
9
9
|
export * from './lib/helpers';
|
|
10
10
|
export * from './lib/company-product';
|
|
11
11
|
export * from './lib/footer';
|
|
12
|
+
export * from './lib/file-upload';
|
|
13
|
+
export * from './lib/filter-bar';
|
|
14
|
+
export * from './lib/multi-functional-table';
|
|
15
|
+
export * from './lib/confirmation-modal';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// for mat-button loading directive
|
|
2
|
+
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version.*/
|
|
3
|
+
.mat-loading .mat-button-wrapper {
|
|
4
|
+
visibility: hidden;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.mat-loading .mat-mdc-progress-spinner {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: calc(50% - 10px);
|
|
10
|
+
left: calc(50% - 10px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/// ----------------------------------------
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
[mat-menu-item].align-v-middle *,
|
|
17
|
+
button.align-v-middle * {
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use "../variables/font-size.variables.scss" as fs;
|
|
2
|
+
|
|
3
|
+
.mat-mdc-dialog-container {
|
|
4
|
+
min-width: 22rem;
|
|
5
|
+
width: 40rem !important;
|
|
6
|
+
|
|
7
|
+
h1[mat-dialog-title].mat-mdc-dialog-title,
|
|
8
|
+
[mat-dialog-title].mat-dialog-title h1 {
|
|
9
|
+
font-size: fs.$font-size-2-xl !important;
|
|
10
|
+
font-weight: 600 !important;
|
|
11
|
+
margin-bottom: 0 !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[mat-dialog-actions] {
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
}
|