@alfresco/adf-content-services 8.3.0 → 8.3.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 +0 -16
- package/bundles/assets/adf-content-services/i18n/de.json +26 -8
- package/bundles/assets/adf-content-services/i18n/en.json +30 -12
- package/bundles/assets/adf-content-services/i18n/es.json +25 -7
- package/bundles/assets/adf-content-services/i18n/fr.json +25 -7
- package/bundles/assets/adf-content-services/i18n/it.json +25 -7
- package/bundles/assets/adf-content-services/i18n/pl.json +25 -7
- package/bundles/assets/adf-content-services/i18n/pt.json +25 -7
- package/bundles/assets/images/custom_filter.svg +3 -0
- package/bundles/assets/images/custom_filter_filled.svg +4 -0
- package/fesm2022/adf-content-services.mjs +2685 -4775
- package/fesm2022/adf-content-services.mjs.map +1 -1
- package/lib/agent/services/agent.service.d.ts +2 -4
- package/lib/api-factories/alfresco-api-no-auth.service.d.ts +0 -19
- package/lib/api-factories/alfresco-api-v2-loader.service.d.ts +1 -5
- package/lib/aspect-list/aspect-list-dialog.component.d.ts +2 -3
- package/lib/aspect-list/aspect-list.component.d.ts +2 -5
- package/lib/aspect-list/aspect-list.component.scss +1 -1
- package/lib/aspect-list/services/aspect-list.service.d.ts +2 -5
- package/lib/aspect-list/services/dialog-aspect-list.service.d.ts +4 -9
- package/lib/aspect-list/services/node-aspect.service.d.ts +4 -9
- package/lib/auth-loader/content-auth-loader.service.d.ts +0 -2
- package/lib/breadcrumb/breadcrumb.component.d.ts +4 -2
- package/lib/breadcrumb/breadcrumb.component.scss +2 -2
- package/lib/breadcrumb/dropdown-breadcrumb.component.scss +1 -1
- package/lib/breadcrumb/public-api.d.ts +0 -1
- package/lib/category/categories-management/categories-management-mode.d.ts +5 -4
- package/lib/category/categories-management/categories-management.component.d.ts +5 -7
- package/lib/category/categories-management/categories-management.component.scss +2 -19
- package/lib/category/services/category-tree-datasource.service.d.ts +1 -3
- package/lib/category/services/category.service.d.ts +3 -6
- package/lib/common/interfaces/saved-searches-strategy.interface.d.ts +63 -0
- package/lib/common/models/file.model.d.ts +11 -10
- package/lib/common/public-api.d.ts +3 -1
- package/lib/common/services/card-view-content-update.service.d.ts +4 -5
- package/lib/common/services/content.service.d.ts +2 -3
- package/lib/common/services/discovery-api.service.d.ts +3 -4
- package/lib/common/services/favorites-api.service.d.ts +2 -5
- package/lib/common/services/nodes-api.service.d.ts +14 -22
- package/lib/common/services/people-content.service.d.ts +3 -6
- package/lib/common/services/rendition.service.d.ts +3 -5
- package/lib/common/services/saved-searches-base.service.d.ts +28 -0
- package/lib/common/services/saved-searches-legacy.service.d.ts +34 -0
- package/lib/common/services/saved-searches.service.d.ts +8 -49
- package/lib/common/services/sites.service.d.ts +1 -3
- package/lib/content-metadata/components/content-metadata/content-metadata.component.d.ts +25 -27
- package/lib/content-metadata/components/content-metadata/content-metadata.component.scss +10 -25
- package/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.d.ts +4 -7
- package/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.scss +1 -1
- package/lib/content-metadata/services/basic-properties.service.d.ts +1 -1
- package/lib/content-metadata/services/config/aspect-oriented-config.service.d.ts +1 -1
- package/lib/content-metadata/services/config/content-metadata-config.factory.d.ts +2 -4
- package/lib/content-metadata/services/config/layout-oriented-config.service.d.ts +1 -1
- package/lib/content-metadata/services/content-metadata.service.d.ts +5 -11
- package/lib/content-metadata/services/content-type-property.service.d.ts +4 -9
- package/lib/{pipes/node-name-tooltip.pipe.d.ts → content-metadata/services/pipes/multi-value.pipe.d.ts} +5 -8
- package/lib/content-metadata/services/property-descriptors.service.d.ts +1 -3
- package/lib/content-metadata/services/property-groups-translator.service.d.ts +2 -3
- package/lib/content-node-selector/content-node-dialog.service.d.ts +6 -28
- package/lib/content-node-selector/content-node-selector-panel/content-node-selector-panel.component.d.ts +9 -14
- package/lib/content-node-selector/content-node-selector-panel/content-node-selector-panel.component.scss +9 -42
- package/lib/content-node-selector/content-node-selector.component.d.ts +7 -12
- package/lib/content-node-selector/content-node-selector.component.scss +4 -5
- package/lib/content-node-selector/name-location-cell/name-location-cell.component.scss +1 -1
- package/lib/content-node-selector/site-dropdown/sites-dropdown.component.d.ts +9 -13
- package/lib/content-node-share/content-node-share.dialog.d.ts +6 -11
- package/lib/content-node-share/content-node-share.dialog.scss +11 -53
- package/lib/content-node-share/content-node-share.directive.d.ts +4 -7
- package/lib/content-node-share/services/shared-links-api.service.d.ts +2 -5
- package/lib/content-type/content-type-dialog.component.d.ts +3 -5
- package/lib/content-type/content-type.service.d.ts +1 -3
- package/lib/content.module.d.ts +94 -110
- package/lib/dialogs/category-selector/category-selector.dialog.d.ts +3 -6
- package/lib/dialogs/download-zip/download-zip.dialog.d.ts +4 -9
- package/lib/dialogs/download-zip/services/download-zip.service.d.ts +1 -3
- package/lib/dialogs/folder/folder.dialog.d.ts +8 -10
- package/lib/dialogs/folder/folder.dialog.scss +3 -16
- package/lib/dialogs/library/library.dialog.d.ts +20 -20
- package/lib/dialogs/library/library.dialog.scss +1 -44
- package/lib/dialogs/node-lock/node-lock.dialog.d.ts +5 -7
- package/lib/directives/auto-focus.directive.d.ts +2 -3
- package/lib/directives/content-directive.module.d.ts +10 -12
- package/lib/directives/library-favorite.directive.d.ts +0 -3
- package/lib/directives/library-membership.directive.d.ts +3 -7
- package/lib/directives/node-counter.directive.d.ts +2 -3
- package/lib/directives/node-delete.directive.d.ts +4 -7
- package/lib/directives/node-download.directive.d.ts +3 -7
- package/lib/directives/node-favorite.directive.d.ts +0 -3
- package/lib/directives/node-lock.directive.d.ts +5 -8
- package/lib/directives/node-restore.directive.d.ts +3 -5
- package/lib/directives/public-api.d.ts +0 -1
- package/lib/document-list/components/content-action/content-action-list.component.d.ts +1 -3
- package/lib/document-list/components/content-action/content-action.component.d.ts +3 -7
- package/lib/document-list/components/document-list.component.d.ts +27 -21
- package/lib/document-list/components/document-list.component.scss +1 -1
- package/lib/document-list/components/file-auto-download/file-auto-download.component.d.ts +0 -1
- package/lib/document-list/components/filter-header/filter-header.component.d.ts +13 -8
- package/lib/document-list/components/library-name-column/library-name-column.component.d.ts +4 -9
- package/lib/document-list/components/library-name-column/library-name-column.component.scss +5 -0
- package/lib/document-list/components/library-role-column/library-role-column.component.d.ts +3 -5
- package/lib/document-list/components/library-status-column/library-status-column.component.d.ts +1 -3
- package/lib/document-list/components/name-column/name-column.component.d.ts +4 -5
- package/lib/document-list/components/trashcan-name-column/trashcan-name-column.component.d.ts +1 -3
- package/lib/document-list/data/share-data-row.model.d.ts +4 -4
- package/lib/document-list/data/share-datatable-adapter.d.ts +4 -2
- package/lib/document-list/interfaces/document-list-loader.interface.d.ts +1 -1
- package/lib/document-list/models/content-action.model.d.ts +6 -5
- package/lib/document-list/models/node-action.enum.d.ts +8 -7
- package/lib/document-list/public-api.d.ts +1 -0
- package/lib/document-list/services/custom-resources.service.d.ts +3 -4
- package/lib/document-list/services/document-actions.service.d.ts +6 -27
- package/lib/document-list/services/document-list.service.d.ts +7 -6
- package/lib/document-list/services/folder-actions.service.d.ts +5 -25
- package/lib/document-list/services/lock.service.d.ts +1 -3
- package/lib/document-list/services/node-actions.service.d.ts +8 -15
- package/lib/document-list/utils/node-tooltip.utils.d.ts +59 -0
- package/lib/flex.scss +12 -7
- package/lib/group/services/group.service.d.ts +1 -3
- package/lib/infinite-scroll-datasource/infinite-scroll-datasource.d.ts +2 -2
- package/lib/interfaces/public-api.d.ts +0 -2
- package/lib/legal-hold/services/legal-hold.service.d.ts +0 -2
- package/lib/mat-selectors.scss +0 -19
- package/lib/mock/alfresco-api.service.mock.d.ts +1 -4
- package/lib/new-version-uploader/models/new-version-uploader.model.d.ts +9 -8
- package/lib/new-version-uploader/new-version-uploader.dialog.d.ts +1 -3
- package/lib/new-version-uploader/new-version-uploader.dialog.scss +1 -1
- package/lib/new-version-uploader/new-version-uploader.service.d.ts +4 -7
- package/lib/node-comments/services/node-comments.service.d.ts +0 -2
- package/lib/permission-manager/components/add-permission/add-permission-dialog.component.d.ts +3 -4
- package/lib/permission-manager/components/add-permission/add-permission-panel.component.scss +2 -35
- package/lib/permission-manager/components/add-permission/add-permission.component.d.ts +2 -5
- package/lib/permission-manager/components/add-permission/search-config-permission.service.d.ts +2 -3
- package/lib/permission-manager/components/inherited-button.directive.d.ts +2 -5
- package/lib/permission-manager/components/permission-container/permission-container.component.scss +4 -4
- package/lib/permission-manager/components/permission-list/permission-list.component.d.ts +1 -2
- package/lib/permission-manager/components/permission-list/permission-list.service.d.ts +5 -27
- package/lib/permission-manager/components/pop-over.directive.d.ts +5 -8
- package/lib/permission-manager/components/user-icon-column/user-icon-column.component.d.ts +1 -3
- package/lib/permission-manager/components/user-name-column/user-name-column.component.d.ts +1 -3
- package/lib/permission-manager/services/node-permission-dialog.service.d.ts +3 -7
- package/lib/permission-manager/services/node-permission.service.d.ts +4 -25
- package/lib/prediction/services/prediction.service.d.ts +1 -3
- package/lib/search/components/index.d.ts +0 -1
- package/lib/search/components/reset-search.directive.d.ts +1 -3
- package/lib/search/components/search-check-list/search-check-list.component.d.ts +3 -4
- package/lib/search/components/search-check-list/search-check-list.component.scss +2 -1
- package/lib/search/components/search-chip-list/search-chip-list.component.d.ts +0 -1
- package/lib/search/components/search-control.component.d.ts +2 -3
- package/lib/search/components/search-date-range-tabbed/search-date-range/date-range-type.d.ts +6 -5
- package/lib/search/components/search-date-range-tabbed/search-date-range/in-last-date-type.d.ts +6 -5
- package/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.component.d.ts +25 -15
- package/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.component.scss +3 -9
- package/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.d.ts +1 -1
- package/lib/search/components/search-date-range-tabbed/search-date-range-tabbed.component.d.ts +7 -7
- package/lib/search/components/search-datetime-range/search-datetime-range.component.d.ts +3 -5
- package/lib/search/components/search-facet-field/search-facet-field.component.d.ts +3 -3
- package/lib/search/components/search-facet-field/search-facet-field.component.scss +1 -26
- package/lib/search/components/search-filter/search-filter.component.d.ts +1 -1
- package/lib/search/components/search-filter/search-filter.component.scss +1 -1
- package/lib/search/components/search-filter-autocomplete-chips/search-filter-autocomplete-chips.component.d.ts +7 -7
- package/lib/search/components/search-filter-chips/search-facet-chip/search-facet-chip.component.d.ts +2 -3
- package/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-chip-tabbed.component.d.ts +6 -7
- package/lib/search/components/search-filter-chips/search-facet-chip-tabbed/search-facet-tabbed-content.component.d.ts +4 -4
- package/lib/search/components/search-filter-chips/search-filter-chips.component.d.ts +2 -2
- package/lib/search/components/search-filter-chips/search-filter-chips.component.scss +0 -4
- package/lib/search/components/search-filter-chips/search-filter-menu-card/search-filter-menu-card.component.scss +1 -1
- package/lib/search/components/search-filter-chips/search-widget-chip/search-widget-chip.component.d.ts +3 -3
- package/lib/search/components/search-filter-container/search-filter-container.component.d.ts +8 -7
- package/lib/search/components/search-filter-container/search-filter-container.component.scss +6 -14
- package/lib/search/components/search-filter-tabbed/search-filter-tab.directive.d.ts +0 -1
- package/lib/search/components/search-filter-tabbed/search-filter-tabbed.component.d.ts +1 -2
- package/lib/search/components/search-form/search-form.component.d.ts +1 -1
- package/lib/search/components/search-input/search-input.component.d.ts +1 -19
- package/lib/search/components/search-logical-filter/search-logical-filter.component.d.ts +14 -10
- package/lib/search/components/search-panel/search-panel.component.d.ts +2 -5
- package/lib/search/components/search-properties/file-size-operator.enum.d.ts +6 -5
- package/lib/search/components/search-properties/search-properties.component.d.ts +7 -10
- package/lib/search/components/search-properties/search-properties.component.scss +32 -111
- package/lib/search/components/search-text/search-text.component.scss +1 -0
- package/lib/search/components/search-widget-container/search-widget-container.component.d.ts +3 -5
- package/lib/search/components/search.component.d.ts +3 -20
- package/lib/search/models/autocomplete-option.interface.d.ts +6 -4
- package/lib/search/models/facet-field.interface.d.ts +10 -8
- package/lib/search/models/search-configuration.interface.d.ts +1 -0
- package/lib/search/models/search-form.interface.d.ts +1 -0
- package/lib/search/search.module.d.ts +15 -17
- package/lib/search/services/base-query-builder.service.d.ts +24 -5
- package/lib/search/services/search-facet-filters.service.d.ts +7 -11
- package/lib/search/services/search-header-query-builder.service.d.ts +5 -6
- package/lib/search/services/search-query-builder.service.d.ts +3 -5
- package/lib/search/services/search.service.d.ts +2 -2
- package/lib/search-ai/services/search-ai.service.d.ts +3 -6
- package/lib/security/services/security-controls-groups-marks-security.service.d.ts +7 -10
- package/lib/security-options-loader/security-options-loader.service.d.ts +2 -21
- package/lib/services/alfresco-api.service.d.ts +3 -5
- package/lib/tag/services/tag.service.d.ts +3 -22
- package/lib/tag/tag-actions/tag-actions.component.d.ts +2 -21
- package/lib/tag/tag-list/tag-list.component.d.ts +2 -3
- package/lib/tag/tag-node-list/tag-node-list.component.d.ts +1 -3
- package/lib/tag/tags-creator/tags-creator-mode.d.ts +5 -4
- package/lib/tag/tags-creator/tags-creator.component.d.ts +8 -10
- package/lib/tag/tags-creator/tags-creator.component.scss +2 -13
- package/lib/tree/components/tree.component.d.ts +4 -5
- package/lib/tree/models/tree-node.interface.d.ts +5 -4
- package/lib/tree-view/components/tree-view.component.d.ts +3 -3
- package/lib/tree-view/data/tree-view-datasource.d.ts +3 -5
- package/lib/tree-view/services/tree-view.service.d.ts +1 -1
- package/lib/upload/components/file-uploading-dialog.component.d.ts +6 -25
- package/lib/upload/components/file-uploading-dialog.component.scss +2 -2
- package/lib/upload/components/file-uploading-list-row.component.d.ts +12 -0
- package/lib/upload/components/file-uploading-list.component.d.ts +2 -21
- package/lib/upload/components/upload-button.component.d.ts +3 -4
- package/lib/upload/components/upload-drag-area.component.d.ts +3 -4
- package/lib/upload/components/upload-files.event.d.ts +3 -3
- package/lib/upload/components/upload-version-button.component.d.ts +16 -0
- package/lib/upload/directives/file-draggable.directive.d.ts +4 -4
- package/lib/upload/public-api.d.ts +0 -2
- package/lib/upload/upload.module.d.ts +9 -13
- package/lib/version-compatibility/version-compatibility.directive.d.ts +3 -22
- package/lib/version-compatibility/version-compatibility.service.d.ts +2 -3
- package/lib/version-manager/content-version.service.d.ts +1 -3
- package/lib/version-manager/version-comparison.component.d.ts +0 -1
- package/lib/version-manager/version-list.component.d.ts +6 -11
- package/lib/version-manager/version-manager.component.d.ts +2 -5
- package/lib/version-manager/version-upload.component.d.ts +2 -5
- package/lib/version-manager/version-upload.component.scss +25 -20
- package/lib/viewer/components/alfresco-viewer.component.d.ts +11 -17
- package/package.json +3 -3
- package/public-api.d.ts +0 -2
- package/lib/breadcrumb/breadcrumb.module.d.ts +0 -12
- package/lib/common/mocks/ecm-user.service.mock.d.ts +0 -18
- package/lib/directives/check-allowable-operation.directive.d.ts +0 -65
- package/lib/document-list/components/document-list.token.d.ts +0 -18
- package/lib/interfaces/base-card-view-content-update.interface.d.ts +0 -26
- package/lib/interfaces/node-allowable-operation-subject.interface.d.ts +0 -19
- package/lib/mock/date-range-search-filter.mock.d.ts +0 -20
- package/lib/mock/document-library.model.mock.d.ts +0 -32
- package/lib/mock/document-list.component.mock.d.ts +0 -171
- package/lib/mock/index.d.ts +0 -17
- package/lib/mock/new-version-uploader.service.mock.d.ts +0 -19
- package/lib/mock/public-api.d.ts +0 -26
- package/lib/mock/search-filter-mock.d.ts +0 -321
- package/lib/mock/search-query.mock.d.ts +0 -18
- package/lib/mock/search.component.mock.d.ts +0 -31
- package/lib/mock/search.service.mock.d.ts +0 -83
- package/lib/mock/sites-dropdown.component.mock.d.ts +0 -22
- package/lib/pipes/content-pipe.module.d.ts +0 -12
- package/lib/pipes/index.d.ts +0 -17
- package/lib/pipes/public-api.d.ts +0 -18
- package/lib/search/components/search-sorting-picker/index.d.ts +0 -17
- package/lib/search/components/search-sorting-picker/search-sorting-picker.component.d.ts +0 -35
- package/lib/search/components/search-sorting-picker/search-sorting-picker.component.scss +0 -5
- package/lib/testing/content.testing.module.d.ts +0 -10
- package/lib/upload/directives/toggle-icon.directive.d.ts +0 -13
- package/lib/upload/pipes/file-upload-error.pipe.d.ts +0 -26
package/lib/permission-manager/components/add-permission/add-permission-dialog.component.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
1
|
import { NodeEntry } from '@alfresco/js-api';
|
|
3
2
|
import { AddPermissionDialogData } from './add-permission-dialog-data.interface';
|
|
4
3
|
import { MemberModel } from '../../models/member.model';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class AddPermissionDialogComponent {
|
|
7
6
|
data: AddPermissionDialogData;
|
|
8
|
-
private dialogRef;
|
|
7
|
+
private readonly dialogRef;
|
|
9
8
|
isSearchActive: boolean;
|
|
10
9
|
selectedMembers: MemberModel[];
|
|
11
|
-
private existingMembers;
|
|
10
|
+
private readonly existingMembers;
|
|
12
11
|
currentSelection: NodeEntry[];
|
|
13
|
-
constructor(
|
|
12
|
+
constructor();
|
|
14
13
|
onSelect(items: NodeEntry[]): void;
|
|
15
14
|
onAddClicked(): void;
|
|
16
15
|
onSearchAddClicked(): void;
|
package/lib/permission-manager/components/add-permission/add-permission-panel.component.scss
CHANGED
|
@@ -51,41 +51,8 @@ $search-result-height: calc(100% - 60px);
|
|
|
51
51
|
&-permission-search {
|
|
52
52
|
&-input {
|
|
53
53
|
width: 100%;
|
|
54
|
-
padding-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
#{ms.$mat-form-field-wrapper} {
|
|
58
|
-
#{ms.$mat-form-field-flex} {
|
|
59
|
-
align-items: center;
|
|
60
|
-
|
|
61
|
-
#{ms.$mat-form-field-infix} {
|
|
62
|
-
padding-top: 0;
|
|
63
|
-
padding-bottom: 0;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
#{ms.$mat-form-field-subscript-wrapper} {
|
|
69
|
-
height: 16px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.adf-permission-search-input-control {
|
|
73
|
-
&:focus::placeholder {
|
|
74
|
-
color: var(--theme-primary-color);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.adf-permission-search-icon:is(mat-icon) {
|
|
79
|
-
padding: 0 0 12px;
|
|
80
|
-
width: 1em;
|
|
81
|
-
height: 1em;
|
|
82
|
-
font-size: 20px;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
|
|
85
|
-
&:hover {
|
|
86
|
-
color: var(--adf-theme-foreground-base-color);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
54
|
+
padding-top: 5px;
|
|
55
|
+
margin-bottom: 15px;
|
|
89
56
|
}
|
|
90
57
|
}
|
|
91
58
|
|
|
@@ -16,13 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { Node, NodeEntry } from '@alfresco/js-api';
|
|
18
18
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
19
|
-
import { NodePermissionService } from '../../services/node-permission.service';
|
|
20
19
|
import { RoleModel } from '../../models/role.model';
|
|
21
|
-
import { ContentService } from '../../../common/services/content.service';
|
|
22
20
|
import * as i0 from "@angular/core";
|
|
23
21
|
export declare class AddPermissionComponent implements OnInit {
|
|
24
|
-
private nodePermissionService;
|
|
25
|
-
private contentService;
|
|
22
|
+
private readonly nodePermissionService;
|
|
23
|
+
private readonly contentService;
|
|
26
24
|
/** ID of the target node. */
|
|
27
25
|
nodeId: string;
|
|
28
26
|
/** Emitted when the node is updated successfully. */
|
|
@@ -32,7 +30,6 @@ export declare class AddPermissionComponent implements OnInit {
|
|
|
32
30
|
selectedItems: NodeEntry[];
|
|
33
31
|
currentNode: Node;
|
|
34
32
|
currentNodeRoles: RoleModel[];
|
|
35
|
-
constructor(nodePermissionService: NodePermissionService, contentService: ContentService);
|
|
36
33
|
ngOnInit(): void;
|
|
37
34
|
onSelect(selection: NodeEntry[]): void;
|
|
38
35
|
isAddEnabled(): boolean;
|
package/lib/permission-manager/components/add-permission/search-config-permission.service.d.ts
CHANGED
|
@@ -23,10 +23,9 @@ export interface QueryProvider {
|
|
|
23
23
|
query: string;
|
|
24
24
|
}
|
|
25
25
|
export declare class SearchPermissionConfigurationService implements SearchConfigurationInterface {
|
|
26
|
-
private queryProvider;
|
|
27
|
-
constructor(queryProvider: QueryProvider);
|
|
26
|
+
private readonly queryProvider;
|
|
28
27
|
generateQueryBody(searchTerm: string, maxResults: number, skipCount: number): SearchRequest;
|
|
29
28
|
private getQuery;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SearchPermissionConfigurationService,
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchPermissionConfigurationService, never>;
|
|
31
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<SearchPermissionConfigurationService>;
|
|
32
31
|
}
|
|
@@ -16,19 +16,16 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { EventEmitter } from '@angular/core';
|
|
18
18
|
import { Node } from '@alfresco/js-api';
|
|
19
|
-
import { ContentService } from '../../common/services/content.service';
|
|
20
|
-
import { NodesApiService } from '../../common/services/nodes-api.service';
|
|
21
19
|
import * as i0 from "@angular/core";
|
|
22
20
|
export declare class InheritPermissionDirective {
|
|
23
|
-
private nodeService;
|
|
24
|
-
private contentService;
|
|
21
|
+
private readonly nodeService;
|
|
22
|
+
private readonly contentService;
|
|
25
23
|
/** ID of the node to add/remove inherited permissions. */
|
|
26
24
|
nodeId: string;
|
|
27
25
|
/** Emitted when the node is updated. */
|
|
28
26
|
updated: EventEmitter<Node>;
|
|
29
27
|
/** Emitted when an error occurs. */
|
|
30
28
|
error: EventEmitter<any>;
|
|
31
|
-
constructor(nodeService: NodesApiService, contentService: ContentService);
|
|
32
29
|
onInheritPermissionClicked(): void;
|
|
33
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<InheritPermissionDirective, never>;
|
|
34
31
|
static ɵdir: i0.ɵɵDirectiveDeclaration<InheritPermissionDirective, "button[adf-inherit-permission], mat-button-toggle[adf-inherit-permission]", never, { "nodeId": { "alias": "nodeId"; "required": false; }; }, { "updated": "updated"; "error": "error"; }, never, never, true, never>;
|
package/lib/permission-manager/components/permission-container/permission-container.component.scss
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
&.adf-datatable {
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
|
|
9
|
+
.adf-datatable-header .adf-datatable-row {
|
|
10
|
+
padding-right: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
.adf-datatable-row .adf-permission-role-column-header {
|
|
10
14
|
position: relative;
|
|
11
15
|
}
|
|
@@ -20,10 +24,6 @@
|
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
.adf-authorityId-column {
|
|
24
|
-
flex: 40%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
27
|
.adf-authority-icon-column {
|
|
28
28
|
min-width: 40px;
|
|
29
29
|
|
|
@@ -19,7 +19,6 @@ import { PermissionElement } from '@alfresco/js-api';
|
|
|
19
19
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
20
20
|
import { PermissionDisplayModel } from '../../models/permission.model';
|
|
21
21
|
import { PermissionListService } from './permission-list.service';
|
|
22
|
-
import { ContentService } from '../../../common';
|
|
23
22
|
import * as i0 from "@angular/core";
|
|
24
23
|
export declare class PermissionListComponent implements OnInit {
|
|
25
24
|
readonly permissionList: PermissionListService;
|
|
@@ -34,7 +33,7 @@ export declare class PermissionListComponent implements OnInit {
|
|
|
34
33
|
private _updatePermissionsAllowed;
|
|
35
34
|
private readonly destroyRef;
|
|
36
35
|
get updatePermissionsAllowed(): boolean;
|
|
37
|
-
constructor(
|
|
36
|
+
constructor();
|
|
38
37
|
ngOnInit(): void;
|
|
39
38
|
openAddPermissionDialog(): void;
|
|
40
39
|
onSelect(selections: ObjectDataRow[]): void;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { NotificationService } from '@alfresco/adf-core';
|
|
18
1
|
import { Node, PermissionElement } from '@alfresco/js-api';
|
|
19
2
|
import { EventEmitter } from '@angular/core';
|
|
20
3
|
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
|
@@ -22,17 +5,13 @@ import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
|
22
5
|
import { RoleModel } from '../../models/role.model';
|
|
23
6
|
import { PermissionDisplayModel } from '../../models/permission.model';
|
|
24
7
|
import { NodePermissionsModel } from '../../models/member.model';
|
|
25
|
-
import { NodePermissionService } from '../../services/node-permission.service';
|
|
26
|
-
import { NodePermissionDialogService } from '../../services/node-permission-dialog.service';
|
|
27
|
-
import { NodesApiService } from '../../../common/services/nodes-api.service';
|
|
28
|
-
import { ContentService } from '../../../common/services/content.service';
|
|
29
8
|
import * as i0 from "@angular/core";
|
|
30
9
|
export declare class PermissionListService {
|
|
31
|
-
private nodeService;
|
|
32
|
-
private nodePermissionService;
|
|
33
|
-
private nodePermissionDialogService;
|
|
34
|
-
private contentService;
|
|
35
|
-
private notificationService;
|
|
10
|
+
private readonly nodeService;
|
|
11
|
+
private readonly nodePermissionService;
|
|
12
|
+
private readonly nodePermissionDialogService;
|
|
13
|
+
private readonly contentService;
|
|
14
|
+
private readonly notificationService;
|
|
36
15
|
updated: EventEmitter<PermissionDisplayModel>;
|
|
37
16
|
errored: EventEmitter<PermissionDisplayModel>;
|
|
38
17
|
loading$: BehaviorSubject<boolean>;
|
|
@@ -44,7 +23,6 @@ export declare class PermissionListService {
|
|
|
44
23
|
data$: Observable<NodePermissionsModel>;
|
|
45
24
|
private node;
|
|
46
25
|
private roles;
|
|
47
|
-
constructor(nodeService: NodesApiService, nodePermissionService: NodePermissionService, nodePermissionDialogService: NodePermissionDialogService, contentService: ContentService, notificationService: NotificationService);
|
|
48
26
|
fetchPermission(nodeId: string): void;
|
|
49
27
|
toggleInherited(change: MatSlideToggleChange): void;
|
|
50
28
|
updateNodePermissionByDialog(): void;
|
|
@@ -14,15 +14,13 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { AfterViewInit,
|
|
18
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
19
|
-
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
17
|
+
import { AfterViewInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
20
18
|
import * as i0 from "@angular/core";
|
|
21
19
|
export declare class PopOverDirective implements OnInit, OnDestroy, AfterViewInit {
|
|
22
|
-
private element;
|
|
23
|
-
private overlay;
|
|
24
|
-
private vcr;
|
|
25
|
-
private focusTrapFactory;
|
|
20
|
+
private readonly element;
|
|
21
|
+
private readonly overlay;
|
|
22
|
+
private readonly vcr;
|
|
23
|
+
private readonly focusTrapFactory;
|
|
26
24
|
get open(): boolean;
|
|
27
25
|
popOver: TemplateRef<any>;
|
|
28
26
|
target: HTMLElement;
|
|
@@ -32,7 +30,6 @@ export declare class PopOverDirective implements OnInit, OnDestroy, AfterViewIni
|
|
|
32
30
|
private overlayRef;
|
|
33
31
|
private focusTrap;
|
|
34
32
|
private readonly destroyRef;
|
|
35
|
-
constructor(element: ElementRef, overlay: Overlay, vcr: ViewContainerRef, focusTrapFactory: ConfigurableFocusTrapFactory);
|
|
36
33
|
ngOnInit(): void;
|
|
37
34
|
ngAfterViewInit(): void;
|
|
38
35
|
ngOnDestroy(): void;
|
|
@@ -18,17 +18,15 @@ import { User } from '@alfresco/adf-core';
|
|
|
18
18
|
import { Group, NodeEntry } from '@alfresco/js-api';
|
|
19
19
|
import { OnInit } from '@angular/core';
|
|
20
20
|
import { BehaviorSubject } from 'rxjs';
|
|
21
|
-
import { NodePermissionService } from '../../services/node-permission.service';
|
|
22
21
|
import * as i0 from "@angular/core";
|
|
23
22
|
export declare class UserIconColumnComponent implements OnInit {
|
|
24
|
-
private nodePermissionService;
|
|
23
|
+
private readonly nodePermissionService;
|
|
25
24
|
context: any;
|
|
26
25
|
node: NodeEntry;
|
|
27
26
|
selected: boolean;
|
|
28
27
|
displayText$: BehaviorSubject<Group | User>;
|
|
29
28
|
group: boolean;
|
|
30
29
|
get isSelected(): boolean;
|
|
31
|
-
constructor(nodePermissionService: NodePermissionService);
|
|
32
30
|
ngOnInit(): void;
|
|
33
31
|
private isGroup;
|
|
34
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserIconColumnComponent, never>;
|
|
@@ -17,15 +17,13 @@
|
|
|
17
17
|
import { OnInit } from '@angular/core';
|
|
18
18
|
import { BehaviorSubject } from 'rxjs';
|
|
19
19
|
import { NodeEntry } from '@alfresco/js-api';
|
|
20
|
-
import { NodePermissionService } from '../../services/node-permission.service';
|
|
21
20
|
import * as i0 from "@angular/core";
|
|
22
21
|
export declare class UserNameColumnComponent implements OnInit {
|
|
23
|
-
private nodePermissionService;
|
|
22
|
+
private readonly nodePermissionService;
|
|
24
23
|
context: any;
|
|
25
24
|
node: NodeEntry;
|
|
26
25
|
displayText$: BehaviorSubject<string>;
|
|
27
26
|
subTitleText$: BehaviorSubject<string>;
|
|
28
|
-
constructor(nodePermissionService: NodePermissionService);
|
|
29
27
|
ngOnInit(): void;
|
|
30
28
|
private updatePerson;
|
|
31
29
|
private updateGroup;
|
|
@@ -15,17 +15,13 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { Node, PermissionElement } from '@alfresco/js-api';
|
|
18
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
19
18
|
import { Observable } from 'rxjs';
|
|
20
|
-
import { NodePermissionService } from './node-permission.service';
|
|
21
19
|
import { RoleModel } from '../models/role.model';
|
|
22
|
-
import { ContentService } from '../../common/services/content.service';
|
|
23
20
|
import * as i0 from "@angular/core";
|
|
24
21
|
export declare class NodePermissionDialogService {
|
|
25
|
-
private dialog;
|
|
26
|
-
private nodePermissionService;
|
|
27
|
-
private contentService;
|
|
28
|
-
constructor(dialog: MatDialog, nodePermissionService: NodePermissionService, contentService: ContentService);
|
|
22
|
+
private readonly dialog;
|
|
23
|
+
private readonly nodePermissionService;
|
|
24
|
+
private readonly contentService;
|
|
29
25
|
/**
|
|
30
26
|
* Opens a dialog to add permissions to a node.
|
|
31
27
|
*
|
|
@@ -1,37 +1,16 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { AlfrescoApiService } from '../../services/alfresco-api.service';
|
|
18
|
-
import { TranslationService } from '@alfresco/adf-core';
|
|
19
|
-
import { NodesApiService } from '../../common/services/nodes-api.service';
|
|
20
1
|
import { EcmUserModel } from '../../common/models/ecm-user.model';
|
|
21
2
|
import { Group, GroupMemberPaging, GroupsApi, Node, PermissionElement } from '@alfresco/js-api';
|
|
22
|
-
import { SearchService } from '../../search/services/search.service';
|
|
23
3
|
import { Observable } from 'rxjs';
|
|
24
4
|
import { PermissionDisplayModel } from '../models/permission.model';
|
|
25
5
|
import { RoleModel } from '../models/role.model';
|
|
26
6
|
import * as i0 from "@angular/core";
|
|
27
7
|
export declare class NodePermissionService {
|
|
28
|
-
private apiService;
|
|
29
|
-
private searchApiService;
|
|
30
|
-
private nodeService;
|
|
31
|
-
private translation;
|
|
8
|
+
private readonly apiService;
|
|
9
|
+
private readonly searchApiService;
|
|
10
|
+
private readonly nodeService;
|
|
11
|
+
private readonly translation;
|
|
32
12
|
private _groupsApi;
|
|
33
13
|
get groupsApi(): GroupsApi;
|
|
34
|
-
constructor(apiService: AlfrescoApiService, searchApiService: SearchService, nodeService: NodesApiService, translation: TranslationService);
|
|
35
14
|
/**
|
|
36
15
|
* Gets a list of roles for the current node.
|
|
37
16
|
*
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { PredictionsApi, PredictionPaging, ReviewStatus } from '@alfresco/js-api';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AlfrescoApiService } from '../../services/alfresco-api.service';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class PredictionService {
|
|
6
|
-
private apiService;
|
|
5
|
+
private readonly apiService;
|
|
7
6
|
private _predictionsApi;
|
|
8
7
|
get predictionsApi(): PredictionsApi;
|
|
9
|
-
constructor(apiService: AlfrescoApiService);
|
|
10
8
|
/**
|
|
11
9
|
* Get predictions for a given node
|
|
12
10
|
*
|
|
@@ -33,7 +33,6 @@ export * from './search-panel';
|
|
|
33
33
|
export * from './search-properties';
|
|
34
34
|
export * from './search-radio';
|
|
35
35
|
export * from './search-slider';
|
|
36
|
-
export * from './search-sorting-picker';
|
|
37
36
|
export * from './search-text';
|
|
38
37
|
export * from './search-widget-container';
|
|
39
38
|
export * from './empty-search-result.component';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { SearchFacetFiltersService } from '../services/search-facet-filters.service';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class ResetSearchDirective {
|
|
4
|
-
private filterService;
|
|
3
|
+
private readonly filterService;
|
|
5
4
|
onClick(): void;
|
|
6
|
-
constructor(filterService: SearchFacetFiltersService);
|
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResetSearchDirective, never>;
|
|
8
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ResetSearchDirective, "[adf-reset-search]", never, {}, {}, never, never, true, never>;
|
|
9
7
|
}
|
|
@@ -20,7 +20,6 @@ import { SearchWidget } from '../../models/search-widget.interface';
|
|
|
20
20
|
import { SearchWidgetSettings } from '../../models/search-widget-settings.interface';
|
|
21
21
|
import { SearchQueryBuilderService } from '../../services/search-query-builder.service';
|
|
22
22
|
import { SearchFilterList } from '../../models/search-filter-list.model';
|
|
23
|
-
import { TranslationService } from '@alfresco/adf-core';
|
|
24
23
|
import { ReplaySubject } from 'rxjs';
|
|
25
24
|
import * as i0 from "@angular/core";
|
|
26
25
|
export interface SearchListOption {
|
|
@@ -29,19 +28,19 @@ export interface SearchListOption {
|
|
|
29
28
|
checked: boolean;
|
|
30
29
|
}
|
|
31
30
|
export declare class SearchCheckListComponent implements SearchWidget, OnInit {
|
|
32
|
-
private translationService;
|
|
31
|
+
private readonly translationService;
|
|
33
32
|
id: string;
|
|
34
33
|
settings?: SearchWidgetSettings;
|
|
35
34
|
context?: SearchQueryBuilderService;
|
|
36
35
|
options: SearchFilterList<SearchListOption>;
|
|
37
36
|
operator: string;
|
|
38
|
-
startValue: string;
|
|
37
|
+
startValue: string | string[];
|
|
39
38
|
pageSize: number;
|
|
40
39
|
isActive: boolean;
|
|
41
40
|
enableChangeUpdate: boolean;
|
|
42
41
|
displayValue$: ReplaySubject<string>;
|
|
43
42
|
private readonly destroyRef;
|
|
44
|
-
constructor(
|
|
43
|
+
constructor();
|
|
45
44
|
ngOnInit(): void;
|
|
46
45
|
clear(): void;
|
|
47
46
|
clearOptions(): void;
|
|
@@ -10,7 +10,6 @@ export declare class SearchChipListComponent {
|
|
|
10
10
|
searchFilter: SearchFilterComponent;
|
|
11
11
|
/** Flag used to enable the display of a clear-all-filters button. */
|
|
12
12
|
clearAll: boolean;
|
|
13
|
-
constructor(facetFiltersService: SearchFacetFiltersService);
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchChipListComponent, never>;
|
|
15
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchChipListComponent, "adf-search-chip-list", never, { "searchFilter": { "alias": "searchFilter"; "required": false; }; "clearAll": { "alias": "clearAll"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
15
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { AuthenticationService, SearchTextInputComponent
|
|
17
|
+
import { AuthenticationService, SearchTextInputComponent } from '@alfresco/adf-core';
|
|
18
18
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
19
19
|
import { NodeEntry } from '@alfresco/js-api';
|
|
20
20
|
import { Subject } from 'rxjs';
|
|
@@ -55,12 +55,11 @@ export declare class SearchControlComponent {
|
|
|
55
55
|
optionClicked: EventEmitter<any>;
|
|
56
56
|
searchTextInput: SearchTextInputComponent;
|
|
57
57
|
searchAutocomplete: SearchComponent;
|
|
58
|
-
private listResultElement;
|
|
58
|
+
private readonly listResultElement;
|
|
59
59
|
emptySearchTemplate: EmptySearchResultComponent;
|
|
60
60
|
focusSubject: Subject<FocusEvent>;
|
|
61
61
|
noSearchResultTemplate: TemplateRef<any>;
|
|
62
62
|
searchTerm: string;
|
|
63
|
-
constructor(authService: AuthenticationService, thumbnailService: ThumbnailService);
|
|
64
63
|
isNoSearchTemplatePresent(): boolean;
|
|
65
64
|
isLoggedIn(): boolean;
|
|
66
65
|
inputChange(value: string): void;
|
package/lib/search/components/search-date-range-tabbed/search-date-range/date-range-type.d.ts
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
18
|
-
ANY
|
|
19
|
-
IN_LAST
|
|
20
|
-
BETWEEN
|
|
21
|
-
}
|
|
17
|
+
export declare const DateRangeType: {
|
|
18
|
+
readonly ANY: "ANY";
|
|
19
|
+
readonly IN_LAST: "IN_LAST";
|
|
20
|
+
readonly BETWEEN: "BETWEEN";
|
|
21
|
+
};
|
|
22
|
+
export type DateRangeType = (typeof DateRangeType)[keyof typeof DateRangeType];
|
package/lib/search/components/search-date-range-tabbed/search-date-range/in-last-date-type.d.ts
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
18
|
-
DAYS
|
|
19
|
-
WEEKS
|
|
20
|
-
MONTHS
|
|
21
|
-
}
|
|
17
|
+
export declare const InLastDateType: {
|
|
18
|
+
readonly DAYS: "DAYS";
|
|
19
|
+
readonly WEEKS: "WEEKS";
|
|
20
|
+
readonly MONTHS: "MONTHS";
|
|
21
|
+
};
|
|
22
|
+
export type InLastDateType = (typeof InLastDateType)[keyof typeof InLastDateType];
|
|
@@ -14,49 +14,59 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
18
|
-
import { DateAdapter, MatDateFormats } from '@angular/material/core';
|
|
19
|
-
import { DateFnsAdapter } from '@angular/material-date-fns-adapter';
|
|
17
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
20
18
|
import { InLastDateType } from './in-last-date-type';
|
|
21
19
|
import { DateRangeType } from './date-range-type';
|
|
22
20
|
import { SearchDateRange } from './search-date-range';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
21
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
22
|
+
import { Observable } from 'rxjs';
|
|
25
23
|
import * as i0 from "@angular/core";
|
|
26
|
-
export declare class SearchDateRangeComponent implements OnInit {
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private dateFormatConfig;
|
|
24
|
+
export declare class SearchDateRangeComponent implements OnInit, AfterViewInit {
|
|
25
|
+
private readonly userPreferencesService;
|
|
26
|
+
private readonly dateAdapter;
|
|
27
|
+
private readonly dateFormatConfig;
|
|
31
28
|
dateFormat: string;
|
|
32
29
|
maxDate: string;
|
|
33
30
|
field: string;
|
|
34
31
|
set initialValue(value: SearchDateRange);
|
|
32
|
+
onReset$: Observable<void>;
|
|
35
33
|
changed: EventEmitter<Partial<SearchDateRange>>;
|
|
36
34
|
valid: EventEmitter<boolean>;
|
|
35
|
+
dateRangeInput: ElementRef;
|
|
36
|
+
private readonly formBuilder;
|
|
37
37
|
form: import("@angular/forms").FormGroup<{
|
|
38
38
|
dateRangeType: import("@angular/forms").FormControl<DateRangeType>;
|
|
39
39
|
inLastValueType?: import("@angular/forms").FormControl<InLastDateType>;
|
|
40
|
-
inLastValue?: import("@angular/forms").FormControl<string>;
|
|
40
|
+
inLastValue?: import("@angular/forms").FormControl<string | number>;
|
|
41
41
|
betweenStartDate?: import("@angular/forms").FormControl<Date>;
|
|
42
42
|
betweenEndDate?: import("@angular/forms").FormControl<Date>;
|
|
43
43
|
}>;
|
|
44
44
|
betweenStartDateFormControl: import("@angular/forms").FormControl<Date>;
|
|
45
45
|
betweenEndDateFormControl: import("@angular/forms").FormControl<Date>;
|
|
46
46
|
convertedMaxDate: Date;
|
|
47
|
-
readonly DateRangeType:
|
|
48
|
-
|
|
47
|
+
readonly DateRangeType: {
|
|
48
|
+
readonly ANY: "ANY";
|
|
49
|
+
readonly IN_LAST: "IN_LAST";
|
|
50
|
+
readonly BETWEEN: "BETWEEN";
|
|
51
|
+
};
|
|
52
|
+
readonly InLastDateType: {
|
|
53
|
+
readonly DAYS: "DAYS";
|
|
54
|
+
readonly WEEKS: "WEEKS";
|
|
55
|
+
readonly MONTHS: "MONTHS";
|
|
56
|
+
};
|
|
49
57
|
private readonly destroyRef;
|
|
50
|
-
constructor(
|
|
58
|
+
constructor();
|
|
51
59
|
readonly endDateValidator: (formControl: UntypedFormControl) => {
|
|
52
60
|
[key: string]: boolean;
|
|
53
61
|
} | null;
|
|
54
62
|
ngOnInit(): void;
|
|
63
|
+
ngAfterViewInit(): void;
|
|
55
64
|
private updateValidators;
|
|
56
65
|
private onChange;
|
|
57
66
|
dateChanged(event: Event, formControl: UntypedFormControl): void;
|
|
58
67
|
narrowDownAllowedCharacters(event: Event): void;
|
|
59
68
|
preventIncorrectNumberCharacters(event: KeyboardEvent): boolean;
|
|
69
|
+
reset(): void;
|
|
60
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchDateRangeComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchDateRangeComponent, "adf-search-date-range", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "field": { "alias": "field"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; }, { "changed": "changed"; "valid": "valid"; }, never, never, true, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchDateRangeComponent, "adf-search-date-range", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "field": { "alias": "field"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; "onReset$": { "alias": "onReset$"; "required": false; }; }, { "changed": "changed"; "valid": "valid"; }, never, never, true, never>;
|
|
62
72
|
}
|
|
@@ -13,8 +13,10 @@ adf-search-date-range {
|
|
|
13
13
|
&-row {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: row;
|
|
16
|
-
padding
|
|
16
|
+
padding: 0 0 21px;
|
|
17
17
|
align-items: center;
|
|
18
|
+
border: 0;
|
|
19
|
+
margin: 0;
|
|
18
20
|
|
|
19
21
|
&-date {
|
|
20
22
|
margin-top: 8px;
|
|
@@ -32,14 +34,6 @@ adf-search-date-range {
|
|
|
32
34
|
padding-left: 10px;
|
|
33
35
|
flex: 1;
|
|
34
36
|
margin-bottom: 12px;
|
|
35
|
-
|
|
36
|
-
#{ms.$mat-form-field-flex} {
|
|
37
|
-
align-items: center;
|
|
38
|
-
|
|
39
|
-
#{ms.$mat-form-field-infix} {
|
|
40
|
-
padding: 0.375em 0 4px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
37
|
}
|
|
44
38
|
}
|
|
45
39
|
}
|
package/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { InLastDateType } from './in-last-date-type';
|
|
|
19
19
|
export interface SearchDateRange {
|
|
20
20
|
dateRangeType: DateRangeType;
|
|
21
21
|
inLastValueType?: InLastDateType;
|
|
22
|
-
inLastValue?: string;
|
|
22
|
+
inLastValue?: string | number;
|
|
23
23
|
betweenStartDate?: Date;
|
|
24
24
|
betweenEndDate?: Date;
|
|
25
25
|
}
|
package/lib/search/components/search-date-range-tabbed/search-date-range-tabbed.component.d.ts
CHANGED
|
@@ -20,10 +20,14 @@ import { SearchDateRange } from './search-date-range/search-date-range';
|
|
|
20
20
|
import { SearchWidget } from '../../models/search-widget.interface';
|
|
21
21
|
import { SearchWidgetSettings } from '../../models/search-widget-settings.interface';
|
|
22
22
|
import { SearchQueryBuilderService } from '../../services/search-query-builder.service';
|
|
23
|
-
import { TranslationService } from '@alfresco/adf-core';
|
|
24
23
|
import * as i0 from "@angular/core";
|
|
25
24
|
export declare class SearchDateRangeTabbedComponent implements SearchWidget, OnInit {
|
|
26
|
-
private translateService;
|
|
25
|
+
private readonly translateService;
|
|
26
|
+
private value;
|
|
27
|
+
private readonly queryMapByField;
|
|
28
|
+
private readonly displayValueMapByField;
|
|
29
|
+
private readonly destroyRef;
|
|
30
|
+
private readonly resetSubject$;
|
|
27
31
|
displayValue$: ReplaySubject<string>;
|
|
28
32
|
id: string;
|
|
29
33
|
startValue: SearchDateRange;
|
|
@@ -38,11 +42,7 @@ export declare class SearchDateRangeTabbedComponent implements SearchWidget, OnI
|
|
|
38
42
|
};
|
|
39
43
|
combinedQuery: string;
|
|
40
44
|
combinedDisplayValue: string;
|
|
41
|
-
|
|
42
|
-
private queryMapByField;
|
|
43
|
-
private displayValueMapByField;
|
|
44
|
-
private readonly destroyRef;
|
|
45
|
-
constructor(translateService: TranslationService);
|
|
45
|
+
reset$: import("rxjs").Observable<void>;
|
|
46
46
|
ngOnInit(): void;
|
|
47
47
|
private setDefaultDateFormatSettings;
|
|
48
48
|
getCurrentValue(): {
|