@alfresco/adf-core 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/api/lib/adf-http-client.service.d.ts +3 -9
- package/app.config.schema.json +4 -3
- package/auth/authentication-interceptor/authentication.interceptor.d.ts +1 -3
- package/breadcrumbs/components/breadcrumb/breadcrumb.component.d.ts +2 -3
- package/breadcrumbs/directives/breadcrumb-focus.directive.d.ts +1 -19
- package/bundles/assets/adf-core/i18n/ar.json +0 -5
- package/bundles/assets/adf-core/i18n/cs.json +0 -5
- package/bundles/assets/adf-core/i18n/da.json +0 -5
- package/bundles/assets/adf-core/i18n/de.json +30 -13
- package/bundles/assets/adf-core/i18n/en.json +34 -17
- package/bundles/assets/adf-core/i18n/es.json +30 -13
- package/bundles/assets/adf-core/i18n/fi.json +0 -5
- package/bundles/assets/adf-core/i18n/fr.json +30 -13
- package/bundles/assets/adf-core/i18n/it.json +30 -13
- package/bundles/assets/adf-core/i18n/ja.json +0 -5
- package/bundles/assets/adf-core/i18n/nb.json +0 -5
- package/bundles/assets/adf-core/i18n/nl.json +0 -5
- package/bundles/assets/adf-core/i18n/pl.json +30 -13
- package/bundles/assets/adf-core/i18n/pt-BR.json +0 -5
- package/bundles/assets/adf-core/i18n/pt.json +30 -13
- package/bundles/assets/adf-core/i18n/ru.json +0 -5
- package/bundles/assets/adf-core/i18n/sv.json +0 -5
- package/bundles/assets/adf-core/i18n/zh-CN.json +0 -5
- package/custom-theme/material-theme.scss +13 -13
- package/custom-theme/theme/custom-palette-creator.scss +25 -27
- package/custom-theme/theme/custom-theme-palettes.scss +7 -7
- package/custom-theme/theme/theme-data.scss +13 -13
- package/custom-theme/theme/typography.scss +5 -5
- package/feature-flags/lib/components/feature-override-indicator.component.d.ts +2 -20
- package/feature-flags/lib/components/flags/flags.component.d.ts +4 -4
- package/feature-flags/lib/directives/features.directive.d.ts +5 -23
- package/feature-flags/lib/directives/not-features.directive.d.ts +5 -23
- package/feature-flags/lib/guards/is-feature-off.guard.d.ts +1 -3
- package/feature-flags/lib/guards/is-feature-on.guard.d.ts +1 -3
- package/feature-flags/lib/guards/is-flags-override-on.guard.d.ts +2 -3
- package/feature-flags/lib/services/debug-features.service.d.ts +6 -6
- package/feature-flags/lib/services/qa-features.helper.d.ts +2 -21
- package/feature-flags/lib/services/storage-features.service.d.ts +4 -4
- package/fesm2022/adf-core.mjs +4861 -4176
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-api.mjs +14 -16
- package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-auth.mjs +7 -7
- package/fesm2022/alfresco-adf-core-auth.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs +21 -20
- package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-feature-flags.mjs +84 -129
- package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-shell.mjs +24 -32
- package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
- package/lib/about/about-license-list/about-license-list.component.d.ts +2 -1
- package/lib/about/about-license-list/about-license-list.component.scss +7 -0
- package/lib/about/about-server-settings/about-server-settings.component.d.ts +1 -3
- package/lib/about/interfaces.d.ts +1 -1
- package/lib/app-config/app-config-storage-prefix.factory.d.ts +3 -5
- package/lib/app-config/app-config.pipe.d.ts +1 -3
- package/lib/app-config/app-config.service.d.ts +31 -28
- package/lib/auth/authentication-interceptor/auth-bearer.interceptor.d.ts +2 -4
- package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +2 -6
- package/lib/auth/basic-auth/content-auth.d.ts +4 -7
- package/lib/auth/basic-auth/process-auth.d.ts +4 -7
- package/lib/auth/guard/auth-guard.service.d.ts +7 -31
- package/lib/auth/models/oauth-config.model.d.ts +0 -1
- package/lib/auth/oidc/auth-config.service.d.ts +2 -5
- package/lib/auth/oidc/oidc-authentication.service.d.ts +4 -10
- package/lib/auth/oidc/redirect-auth.service.d.ts +6 -6
- package/lib/auth/oidc/retry-login.service.d.ts +1 -1
- package/lib/auth/services/authentication.service.d.ts +1 -19
- package/lib/auth/services/base-authentication.service.d.ts +1 -3
- package/lib/auth/services/identity-group.service.d.ts +2 -5
- package/lib/auth/services/identity-role.service.d.ts +1 -1
- package/lib/auth/services/identity-user.service.d.ts +3 -7
- package/lib/auth/services/jwt-helper.service.d.ts +1 -1
- package/lib/auth/services/oauth2.service.d.ts +1 -3
- package/lib/auth/services/time-sync.service.d.ts +3 -5
- package/lib/auth/services/user-access.service.d.ts +2 -5
- package/lib/card-view/components/card-view/card-view.component.d.ts +1 -3
- package/lib/card-view/components/card-view/card-view.component.scss +0 -90
- package/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.scss +1 -9
- package/lib/card-view/components/card-view-boolitem/card-view-boolitem.component.d.ts +4 -2
- package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.d.ts +5 -10
- package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss +36 -41
- package/lib/card-view/components/card-view-item-dispatcher/card-view-item-dispatcher.component.d.ts +3 -5
- package/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.d.ts +4 -1
- package/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.scss +0 -12
- package/lib/card-view/components/card-view-selectitem/select-filter-input/select-filter-input.component.d.ts +1 -3
- package/lib/card-view/components/card-view-textitem/card-view-textitem.component.d.ts +5 -10
- package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +18 -19
- package/lib/card-view/directives/card-view-property-validator.directive.d.ts +28 -0
- package/lib/card-view/models/card-view-dateitem.model.d.ts +0 -2
- package/lib/card-view/public-api.d.ts +0 -1
- package/lib/card-view/validators/card-view-item-length.validator.d.ts +2 -2
- package/lib/card-view/validators/card-view-item-match.validator.d.ts +3 -3
- package/lib/card-view/validators/card-view-item-minmax.validator.d.ts +3 -3
- package/lib/clipboard/clipboard.directive.d.ts +6 -11
- package/lib/clipboard/clipboard.module.d.ts +5 -4
- package/lib/clipboard/clipboard.service.d.ts +2 -4
- package/lib/comments/comment-list/comment-list.component.d.ts +1 -1
- package/lib/comments/comments.component.d.ts +3 -2
- package/lib/comments/comments.component.scss +3 -32
- package/lib/common/index.d.ts +0 -1
- package/lib/common/services/log.service.d.ts +2 -6
- package/lib/common/services/page-title.service.d.ts +4 -7
- package/lib/common/services/thumbnail.service.d.ts +1 -3
- package/lib/common/services/url.service.d.ts +1 -3
- package/lib/common/services/user-preferences.service.d.ts +78 -15
- package/lib/common/utils/date-fns-adapter.d.ts +3 -5
- package/lib/common/utils/date-fns-utils.d.ts +1 -1
- package/lib/common/utils/datetime-fns-adapter.d.ts +3 -5
- package/lib/common/utils/moment-date-adapter.d.ts +1 -2
- package/lib/context-menu/context-menu-list.component.d.ts +8 -8
- package/lib/context-menu/context-menu-overlay.d.ts +1 -1
- package/lib/context-menu/context-menu-overlay.service.d.ts +2 -21
- package/lib/context-menu/context-menu.directive.d.ts +1 -3
- package/lib/context-menu/context-menu.tokens.d.ts +2 -1
- package/lib/context-menu/interfaces.d.ts +14 -1
- package/lib/core.module.d.ts +78 -83
- package/lib/datatable/components/amount-cell/amount-cell.component.d.ts +3 -19
- package/lib/datatable/components/boolean-cell/boolean-cell.component.d.ts +3 -20
- package/lib/datatable/components/columns-selector/columns-search-filter.pipe.d.ts +1 -1
- package/lib/datatable/components/columns-selector/columns-selector.component.d.ts +2 -1
- package/lib/datatable/components/columns-selector/columns-selector.component.scss +64 -81
- package/lib/datatable/components/datatable/datatable.component.d.ts +12 -13
- package/lib/datatable/components/datatable/datatable.component.scss +48 -20
- package/lib/datatable/components/datatable-cell/datatable-cell.component.d.ts +20 -0
- package/lib/datatable/components/datatable-row/datatable-row.component.d.ts +2 -3
- package/lib/datatable/components/date-cell/date-cell.component.d.ts +9 -2
- package/lib/datatable/components/filesize-cell/filesize-cell.component.d.ts +1 -19
- package/lib/datatable/components/icon-cell/icon-cell.component.d.ts +3 -6
- package/lib/datatable/components/json-cell/json-cell.component.d.ts +4 -22
- package/lib/datatable/components/location-cell/location-cell.component.d.ts +3 -20
- package/lib/datatable/components/number-cell/number-cell.component.d.ts +3 -19
- package/lib/datatable/data/data-table.schema.d.ts +4 -4
- package/lib/datatable/data/datatable-adapter.d.ts +2 -0
- package/lib/datatable/data/object-datarow.model.d.ts +1 -1
- package/lib/datatable/data-column/data-column-header.component.d.ts +1 -3
- package/lib/datatable/directives/drop-zone.directive.d.ts +4 -4
- package/lib/datatable/directives/header-filter-template.directive.d.ts +1 -3
- package/lib/datatable/directives/loading-template.directive.d.ts +1 -3
- package/lib/datatable/directives/main-data-table-action-template.directive.d.ts +1 -3
- package/lib/datatable/directives/no-content-template.directive.d.ts +1 -3
- package/lib/datatable/directives/no-permission-template.directive.d.ts +1 -3
- package/lib/datatable/directives/resizable/resizable.directive.d.ts +8 -3
- package/lib/datatable/directives/resizable/resize-handle.directive.d.ts +2 -2
- package/lib/dialogs/confirm-dialog/confirm.dialog.d.ts +3 -3
- package/lib/dialogs/dialog/dialog.component.d.ts +2 -2
- package/lib/dialogs/edit-json/edit-json.dialog.d.ts +1 -2
- package/lib/dialogs/unsaved-changes-dialog/unsaved-changes-dialog.component.d.ts +1 -3
- package/lib/dialogs/unsaved-changes-dialog/unsaved-changes.guard.d.ts +3 -6
- package/lib/directives/highlight.directive.d.ts +4 -6
- package/lib/directives/infinite-select-scroll.directive.d.ts +1 -3
- package/lib/directives/logout.directive.d.ts +6 -10
- package/lib/directives/tooltip-card/tooltip-card.component.d.ts +1 -3
- package/lib/directives/tooltip-card/tooltip-card.directive.d.ts +4 -6
- package/lib/directives/upload.directive.d.ts +7 -7
- package/lib/dynamic-chip-list/dynamic-chip-list.component.d.ts +3 -4
- package/lib/dynamic-chip-list/dynamic-chip-list.component.scss +1 -1
- package/lib/form/components/form-base.component.d.ts +1 -1
- package/lib/form/components/form-field/form-field.component.d.ts +5 -0
- package/lib/form/components/form-renderer.component.d.ts +7 -7
- package/lib/form/components/form-renderer.component.scss +48 -34
- package/lib/form/components/widgets/amount/amount.widget.d.ts +26 -6
- package/lib/form/components/widgets/base-display-text/base-display-text.widget.d.ts +43 -0
- package/lib/form/components/widgets/base-viewer/base-viewer.widget.d.ts +16 -2
- package/lib/form/components/widgets/button/button.widget.d.ts +9 -0
- package/lib/form/components/widgets/button/button.widget.scss +14 -0
- package/lib/form/components/widgets/checkbox/checkbox.widget.d.ts +0 -4
- package/lib/form/components/widgets/core/container-column.model.d.ts +2 -0
- package/lib/{models/decimal-number.model.d.ts → form/components/widgets/core/container-row.model.d.ts} +9 -5
- package/lib/{common/models/user-info-mode.enum.d.ts → form/components/widgets/core/custom-validation-message.token.d.ts} +3 -7
- package/lib/form/components/widgets/core/form-field-types.d.ts +5 -0
- package/lib/form/components/widgets/core/form-field-validator.d.ts +10 -10
- package/lib/form/components/widgets/core/form-field.model.d.ts +29 -2
- package/lib/form/components/widgets/core/form.model.d.ts +38 -2
- package/lib/{datatable/components/mocks/datatable.mock.d.ts → form/components/widgets/core/handlers/form-field-rule.handler.d.ts} +5 -5
- package/lib/{blank-page/public-api.d.ts → form/components/widgets/core/handlers/form-field-visibility-condition.handler.d.ts} +5 -2
- package/lib/form/components/widgets/core/index.d.ts +2 -0
- package/lib/{login/components/login-dialog/login-dialog-component-data.interface.d.ts → form/components/widgets/core/repeatable-section.model.d.ts} +7 -5
- package/lib/form/components/widgets/decimal/decimal.component.d.ts +0 -3
- package/lib/form/components/widgets/display-text/display-text.widget.d.ts +5 -5
- package/lib/form/components/widgets/error/error.component.d.ts +0 -3
- package/lib/form/components/widgets/error/error.component.scss +4 -0
- package/lib/form/components/widgets/hyperlink/hyperlink.widget.d.ts +0 -3
- package/lib/form/components/widgets/index.d.ts +5 -1
- package/lib/form/components/widgets/json/json.widget.d.ts +1 -5
- package/lib/form/components/widgets/multiline-text/multiline-text.widget.d.ts +5 -4
- package/lib/form/components/widgets/number/number.widget.d.ts +1 -5
- package/lib/form/components/widgets/reactive-widget.interface.d.ts +4 -0
- package/lib/form/components/widgets/repeat/repeat.widget.d.ts +9 -0
- package/lib/form/components/widgets/repeat/repeat.widget.scss +36 -0
- package/lib/form/components/widgets/text/text-mask.component.d.ts +6 -7
- package/lib/form/components/widgets/text/text.widget.d.ts +13 -4
- package/lib/form/components/widgets/unknown/unknown.widget.d.ts +0 -3
- package/lib/form/components/widgets/widget.component.d.ts +1 -2
- package/lib/form/form-base.module.d.ts +3 -2
- package/lib/form/models/widget-visibility.model.d.ts +7 -6
- package/lib/form/public-api.d.ts +1 -0
- package/lib/form/services/form-expression.service.d.ts +14 -0
- package/lib/form/services/form.service.d.ts +3 -3
- package/lib/{interface/index.d.ts → icon/icon-alias-map.token.d.ts} +3 -1
- package/lib/{interface/public-api.d.ts → icon/icon-alias-map.type.d.ts} +1 -1
- package/lib/icon/icon.component.d.ts +31 -4
- package/lib/{pipes/multi-value.pipe.d.ts → icon/icon.directive.d.ts} +13 -6
- package/lib/icon/icon.module.d.ts +3 -6
- package/lib/icon/public-api.d.ts +3 -0
- package/lib/info-drawer/info-drawer-layout.component.scss +2 -2
- package/lib/info-drawer/info-drawer.component.scss +6 -0
- package/lib/language-menu/language-menu.component.d.ts +2 -3
- package/lib/language-menu/service/language.service.d.ts +2 -4
- package/lib/layout/components/header/header.component.d.ts +1 -3
- package/lib/layout/components/sidebar-action/sidebar-action-menu.component.scss +1 -2
- package/lib/layout/components/sidenav-layout/sidenav-layout.component.d.ts +3 -5
- package/lib/layout/components/sidenav-layout/sidenav-layout.component.scss +4 -4
- package/lib/login/components/login/login.component.d.ts +10 -17
- package/lib/login/components/login/login.component.scss +6 -8
- package/lib/login/directives/login-footer.directive.d.ts +1 -3
- package/lib/login/directives/login-header.directive.d.ts +1 -3
- package/lib/login/login.module.d.ts +3 -5
- package/lib/login/public-api.d.ts +0 -2
- package/lib/mock/form/widget-visibility.service.mock.d.ts +1 -0
- package/lib/mock/public-api.d.ts +0 -1
- package/lib/mock/translation.service.mock.d.ts +2 -2
- package/lib/models/public-api.d.ts +0 -2
- package/lib/notifications/components/notification-history.component.d.ts +10 -7
- package/lib/notifications/models/notification.model.d.ts +7 -6
- package/lib/notifications/notification-history.module.d.ts +2 -4
- package/lib/notifications/public-api.d.ts +0 -1
- package/lib/notifications/services/notification.service.d.ts +3 -5
- package/lib/pagination/infinite-pagination.component.d.ts +3 -5
- package/lib/pagination/pagination.component.d.ts +6 -9
- package/lib/pipes/decimal-number.pipe.d.ts +6 -3
- package/lib/pipes/file-size.pipe.d.ts +2 -4
- package/lib/pipes/localized-date.pipe.d.ts +3 -6
- package/lib/pipes/pipe.module.d.ts +6 -8
- package/lib/pipes/public-api.d.ts +0 -1
- package/lib/pipes/text-highlight.pipe.d.ts +1 -3
- package/lib/pipes/time-ago.pipe.d.ts +1 -2
- package/lib/pipes/user-initial.pipe.d.ts +2 -3
- package/lib/search-text/models/search-text-input.model.d.ts +5 -4
- package/lib/search-text/search-text-input.component.d.ts +4 -5
- package/lib/search-text/search-text-input.component.scss +0 -6
- package/lib/search-text/search-trigger.directive.d.ts +6 -7
- package/lib/snackbar-content/snackbar-content.component.d.ts +1 -1
- package/lib/{blank-page/index.d.ts → stories/core-story.providers.d.ts} +7 -1
- package/lib/{sorting-picker → stories}/index.d.ts +1 -1
- package/lib/styles/_flex.scss +21 -16
- package/lib/styles/{material.theme.scss → _globals.scss} +6 -6
- package/lib/styles/_index.scss +4 -126
- package/lib/styles/_mat-selectors.scss +1 -17
- package/lib/templates/empty-content/empty-content.component.scss +2 -5
- package/lib/templates/error-content/error-content.component.d.ts +3 -7
- package/lib/templates/error-content/error-content.component.scss +1 -1
- package/lib/testing/index.d.ts +0 -1
- package/lib/testing/noop-translate.module.d.ts +3 -4
- package/lib/testing/unit-testing-utils.d.ts +14 -0
- package/lib/toolbar/toolbar.component.scss +1 -1
- package/lib/translation/provide-i18n.d.ts +5 -0
- package/lib/translation/translate-loader.service.d.ts +4 -22
- package/lib/translation/translation.service.d.ts +10 -3
- package/lib/viewer/components/download-prompt-dialog/download-prompt-dialog.component.d.ts +4 -2
- package/lib/viewer/components/img-viewer/img-viewer.component.d.ts +9 -5
- package/lib/viewer/components/media-player/media-player.component.d.ts +3 -5
- package/lib/viewer/components/pdf-viewer/pdf-viewer-host.component.scss +28 -0
- package/lib/viewer/components/pdf-viewer/pdf-viewer.component.d.ts +52 -17
- package/lib/viewer/components/pdf-viewer/pdf-viewer.component.scss +4 -2
- package/lib/viewer/components/pdf-viewer-password-dialog/pdf-viewer-password-dialog.d.ts +1 -3
- package/lib/viewer/components/pdf-viewer-thumb/pdf-viewer-thumb.component.d.ts +3 -5
- package/lib/viewer/components/pdf-viewer-thumbnails/pdf-viewer-thumbnails.component.d.ts +7 -8
- package/lib/viewer/components/txt-viewer/txt-viewer.component.d.ts +3 -22
- package/lib/viewer/components/viewer-render/viewer-render.component.d.ts +8 -8
- package/lib/viewer/components/viewer.component.d.ts +16 -14
- package/lib/viewer/components/viewer.component.scss +1 -1
- package/lib/viewer/directives/viewer-extension.directive.d.ts +7 -6
- package/lib/viewer/models/download-prompt.actions.d.ts +5 -4
- package/lib/viewer/models/viewer.model.d.ts +5 -4
- package/lib/viewer/services/rendering-queue.services.d.ts +35 -12
- package/lib/viewer/services/view-util.service.d.ts +4 -5
- package/package.json +4 -5
- package/public-api.d.ts +1 -6
- package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
- package/schematics/migrations/schematics/migrations/7_0_0/index.js +44 -59
- package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
- package/schematics/migrations/schematics/migrations/collection.json +0 -5
- package/shell/lib/components/shell/shell.component.d.ts +7 -10
- package/lib/blank-page/blank-page.component.d.ts +0 -5
- package/lib/blank-page/blank-page.module.d.ts +0 -8
- package/lib/button/button.component.d.ts +0 -19
- package/lib/button/button.component.scss +0 -13
- package/lib/clipboard/clipboard.theme.scss +0 -19
- package/lib/interface/injection.tokens.d.ts +0 -18
- package/lib/landing-page/index.d.ts +0 -17
- package/lib/landing-page/provider.d.ts +0 -24
- package/lib/landing-page/public-api.d.ts +0 -17
- package/lib/login/components/login-dialog/login-dialog.component.d.ts +0 -15
- package/lib/login/components/login-dialog/login-dialog.component.scss +0 -4
- package/lib/mock/data-column.mock.d.ts +0 -51
- package/lib/models/product-version.model.d.ts +0 -24
- package/lib/notifications/components/add-notification.stories.component.d.ts +0 -10
- package/lib/progress/progress.component.d.ts +0 -36
- package/lib/sorting-picker/public-api.d.ts +0 -17
- package/lib/sorting-picker/sorting-picker.component.d.ts +0 -38
- package/lib/styles/_theming.scss +0 -3
- package/lib/styles/_typography.scss +0 -18
- package/lib/testing/core.story.module.d.ts +0 -9
|
@@ -9,8 +9,6 @@ $mat-tab-body: '.mat-mdc-tab-body';
|
|
|
9
9
|
$mat-tab-header: '.mat-mdc-tab-header';
|
|
10
10
|
$mat-tab-body-content: '.mat-mdc-tab-body-content';
|
|
11
11
|
$mat-tab-ink-bar: '.mdc-tab-indicator';
|
|
12
|
-
$mat-tab-body-wrapper: '.mat-mdc-tab-body-wrapper';
|
|
13
|
-
$mat-tab-body-content: '.mat-mdc-card-content';
|
|
14
12
|
$mat-chip: '.mat-mdc-chip';
|
|
15
13
|
$mat-chip-list: '.mat-mdc-chip-list';
|
|
16
14
|
$mat-checkbox: '.mat-mdc-checkbox';
|
|
@@ -18,10 +16,8 @@ $mat-checkbox-label: '.mdc-label';
|
|
|
18
16
|
$mat-button: '.mat-mdc-button';
|
|
19
17
|
$mat-button-label: '.mdc-button__label';
|
|
20
18
|
$mat-form-field: '.mat-mdc-form-field';
|
|
21
|
-
$mat-form-field-flex: '.mat-mdc-form-field-flex';
|
|
22
19
|
$mat-form-field-wrapper: '.mat-mdc-text-field-wrapper';
|
|
23
20
|
$mat-line-ripple: '.mdc-line-ripple';
|
|
24
|
-
$mat-form-field-subscript-wrapper: '.mat-mdc-form-field-subscript-wrapper';
|
|
25
21
|
$mat-form-field-prefix: '.mat-mdc-form-field-text-prefix';
|
|
26
22
|
$mat-form-field-suffix: '.mat-mdc-form-field-text-suffix';
|
|
27
23
|
$mat-form-text-field-infix: '.mat-mdc-form-text-infix';
|
|
@@ -37,7 +33,6 @@ $mat-table: '.mat-mdc-table';
|
|
|
37
33
|
$mat-header-row: '.mat-mdc-header-row';
|
|
38
34
|
$mat-row: '.mat-mdc-row';
|
|
39
35
|
$mat-select: '.mat-mdc-select';
|
|
40
|
-
$mat-select-value: '.mat-select-value';
|
|
41
36
|
$mat-select-panel: '.mat-mdc-select-panel';
|
|
42
37
|
$mat-grid-tile: '.mat-grid-tile';
|
|
43
38
|
$mat-sidenav-content: '.mat-sidenav-content';
|
|
@@ -55,34 +50,24 @@ $mat-calendar-table-header: '.mat-calendar-table-header';
|
|
|
55
50
|
$mat-calendar-body-disabled: '.mat-calendar-body-disabled';
|
|
56
51
|
$mat-toolbar: '.mat-toolbar';
|
|
57
52
|
$mat-list-item-unscoped-content: '.mat-mdc-list-item-unscoped-content';
|
|
53
|
+
$mat-list-item-end: '.mdc-list-item__end';
|
|
58
54
|
$mat-text-field-no-label: '.mdc-text-field--no-label';
|
|
59
55
|
$mat-form-field-infix: '.mat-mdc-form-field-infix';
|
|
60
|
-
$mat-form-field-error-wrapper: '.mat-mdc-form-field-error-wrapper';
|
|
61
|
-
$mat-form-field-error: '.mat-mdc-form-field-error';
|
|
62
|
-
$mat-checkbox-background: '.mdc-checkbox__background';
|
|
63
|
-
$mat-floating-label: '.mdc-floating-label';
|
|
64
|
-
$mat-floating-label-above: '.mdc-floating-label--float-above';
|
|
65
56
|
$mat-dialog-surface: '.mat-mdc-dialog-surface';
|
|
66
57
|
$mat-floating-label-required: '.mdc-floating-label--required';
|
|
67
|
-
$mat-evolution-chip: '.mdc-evolution-chip';
|
|
68
58
|
$mat-evolution-chip-action: '.mdc-evolution-chip__action';
|
|
69
59
|
$mat-evolution-chip-text-label: '.mdc-evolution-chip__text-label';
|
|
70
|
-
$mat-notched-outline: '.mdc-notched-outline';
|
|
71
60
|
$mat-evolution-chip-graphic: '.mdc-evolution-chip__graphic';
|
|
72
61
|
$mat-select-trigger: '.mat-mdc-select-trigger';
|
|
73
62
|
$mat-button-base: '.mat-mdc-button-base';
|
|
74
|
-
$mat-button-touch-target: '.mat-mdc-button-touch-target';
|
|
75
63
|
$cdk-drag-preview: '.cdk-drag-preview';
|
|
76
64
|
$mat-snackbar: '.mdc-snackbar';
|
|
77
65
|
$mat-snack-bar-container: '.mat-mdc-snack-bar-container';
|
|
78
66
|
$mat-snackbar-label: '.mdc-snackbar__label';
|
|
79
67
|
$mat-datetimepicker-dialog: '.mat-datetimepicker-dialog';
|
|
80
68
|
$mat-tab-indicator-underline: '.mdc-tab-indicator__content--underline';
|
|
81
|
-
$mat-list-item: '.mdc-list-item';
|
|
82
69
|
$mat-form-field-icon-suffix: '.mat-mdc-form-field-icon-suffix';
|
|
83
|
-
$mat-text-field: '.mdc-text-field';
|
|
84
70
|
$mat-select-value: '.mat-mdc-select-value';
|
|
85
|
-
$mat-card-header: '.mat-mdc-card-header';
|
|
86
71
|
$mat-datetimepicker-calendar: '.mat-datetimepicker-calendar';
|
|
87
72
|
$mat-datetimepicker-calendar-header: '.mat-datetimepicker-calendar-header';
|
|
88
73
|
$mat-datetimepicker-calendar-table-header: '.mat-datetimepicker-calendar-table-header';
|
|
@@ -92,4 +77,3 @@ $mat-datetimepicker-calendar-header-time: '.mat-datetimepicker-calendar-header-t
|
|
|
92
77
|
$mat-datetimepicker-calendar-content: '.mat-datetimepicker-calendar-content';
|
|
93
78
|
$mat-datetimepicker-calendar-body-disabled: '.mat-datetimepicker-calendar-body-disabled';
|
|
94
79
|
$mat-datetimepicker-toggle: '.mat-datetimepicker-toggle';
|
|
95
|
-
$mat-form-field-underline: '.mat-form-field-underline';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.adf-empty-content {
|
|
2
|
-
color: var(--adf-theme-foreground-text-color-
|
|
2
|
+
color: var(--adf-theme-foreground-text-color-064);
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
align-items: center;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
font-size: var(--theme-display-3-font-size);
|
|
12
12
|
height: var(--theme-display-3-font-size);
|
|
13
13
|
width: var(--theme-display-3-font-size);
|
|
14
|
+
opacity: 0.6;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
&__title {
|
|
@@ -30,8 +31,4 @@
|
|
|
30
31
|
white-space: normal;
|
|
31
32
|
text-align: center;
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
.adf-icon {
|
|
35
|
-
opacity: 0.6;
|
|
36
|
-
}
|
|
37
34
|
}
|
|
@@ -15,21 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { OnInit } from '@angular/core';
|
|
18
|
-
import { ActivatedRoute } from '@angular/router';
|
|
19
|
-
import { TranslationService } from '../../translation/translation.service';
|
|
20
18
|
import { Observable } from 'rxjs';
|
|
21
|
-
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
22
19
|
import * as i0 from "@angular/core";
|
|
23
20
|
export declare class ErrorContentComponent implements OnInit {
|
|
24
|
-
private route;
|
|
25
|
-
private translateService;
|
|
26
|
-
private breakpointObserver;
|
|
21
|
+
private readonly route;
|
|
22
|
+
private readonly translateService;
|
|
23
|
+
private readonly breakpointObserver;
|
|
27
24
|
static UNKNOWN_ERROR: string;
|
|
28
25
|
/** Error code associated with this error. */
|
|
29
26
|
errorCode: string;
|
|
30
27
|
errorCodeTranslated: string;
|
|
31
28
|
isSmallScreen$: Observable<boolean>;
|
|
32
|
-
constructor(route: ActivatedRoute, translateService: TranslationService, breakpointObserver: BreakpointObserver);
|
|
33
29
|
ngOnInit(): void;
|
|
34
30
|
checkErrorExists(errorCode: string): boolean;
|
|
35
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorContentComponent, never>;
|
package/lib/testing/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export * from './core.story.module';
|
|
18
17
|
export * from './noop-translate.module';
|
|
19
18
|
export * from './noop-auth.module';
|
|
20
19
|
export * from './unit-testing-utils';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { TranslationService } from '../translation/translation.service';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
5
|
-
export declare class NoopTranslationService implements TranslationService {
|
|
3
|
+
export declare class NoopTranslationService {
|
|
6
4
|
defaultLang: string;
|
|
7
5
|
userLang: string;
|
|
8
6
|
customLoader: any;
|
|
@@ -12,12 +10,13 @@ export declare class NoopTranslationService implements TranslationService {
|
|
|
12
10
|
use(): any;
|
|
13
11
|
loadTranslation(): void;
|
|
14
12
|
get(key: string | Array<string>): Observable<string | any>;
|
|
13
|
+
getLocale(): any;
|
|
15
14
|
instant(key: string | Array<string>): string | any;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopTranslationService, never>;
|
|
17
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<NoopTranslationService>;
|
|
18
17
|
}
|
|
19
18
|
export declare class NoopTranslateModule {
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopTranslateModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopTranslateModule, never,
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopTranslateModule, never, never, never>;
|
|
22
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<NoopTranslateModule>;
|
|
23
22
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { HarnessLoader, TestElement, TestKey } from '@angular/cdk/testing';
|
|
18
18
|
import { DebugElement, Type } from '@angular/core';
|
|
19
|
+
import { MatSelectHarness } from '@angular/material/select/testing';
|
|
19
20
|
import { MatOptionHarness } from '@angular/material/core/testing';
|
|
20
21
|
import { MatChipHarness, MatChipListboxHarness } from '@angular/material/chips/testing';
|
|
21
22
|
import { MatButtonHarness } from '@angular/material/button/testing';
|
|
@@ -25,6 +26,8 @@ import { MatFormFieldHarness } from '@angular/material/form-field/testing';
|
|
|
25
26
|
import { MatInputHarness } from '@angular/material/input/testing';
|
|
26
27
|
import { ComponentFixture } from '@angular/core/testing';
|
|
27
28
|
import { MatTabHarness } from '@angular/material/tabs/testing';
|
|
29
|
+
import { MatListOptionHarness } from '@angular/material/list/testing';
|
|
30
|
+
import { MatCellHarness } from '@angular/material/table/testing';
|
|
28
31
|
export declare class UnitTestingUtils {
|
|
29
32
|
private debugElement?;
|
|
30
33
|
private loader?;
|
|
@@ -36,12 +39,15 @@ export declare class UnitTestingUtils {
|
|
|
36
39
|
getInnerTextByCSS(selector: string): string;
|
|
37
40
|
getByDataAutomationId(dataAutomationId: string): DebugElement;
|
|
38
41
|
getByDataAutomationClass(dataAutomationClass: string): DebugElement;
|
|
42
|
+
getAllByDataAutomationId(dataAutomationId: string): DebugElement[];
|
|
39
43
|
getInnerTextByDataAutomationId(dataAutomationId: string): string;
|
|
40
44
|
getByDirective(directive: Type<any>): DebugElement;
|
|
45
|
+
getAllByDirective(directive: Type<any>): DebugElement[];
|
|
41
46
|
/** Perform actions */
|
|
42
47
|
clickByCSS(selector: string): void;
|
|
43
48
|
clickByDataAutomationId(dataAutomationId: string): void;
|
|
44
49
|
doubleClickByDataAutomationId(dataAutomationId: string): void;
|
|
50
|
+
doubleClickByCSS(selector: string): void;
|
|
45
51
|
blurByCSS(selector: string): void;
|
|
46
52
|
hoverOverByCSS(selector: string): void;
|
|
47
53
|
hoverOverByDataAutomationId(dataAutomationId: string): void;
|
|
@@ -81,6 +87,8 @@ export declare class UnitTestingUtils {
|
|
|
81
87
|
clickMatIconWithAncestorByDataAutomationId(dataAutomationId: string): Promise<void>;
|
|
82
88
|
/** MatSelect related methods */
|
|
83
89
|
getMatSelectOptions(isOpened?: boolean): Promise<MatOptionHarness[]>;
|
|
90
|
+
getMatSelect(): Promise<MatSelectHarness>;
|
|
91
|
+
getMatSelectByDataAutomationId(dataAutomationId: string): Promise<MatSelectHarness>;
|
|
84
92
|
getMatSelectHost(): Promise<TestElement>;
|
|
85
93
|
checkIfMatSelectExists(): Promise<boolean>;
|
|
86
94
|
openMatSelect(): Promise<void>;
|
|
@@ -110,6 +118,7 @@ export declare class UnitTestingUtils {
|
|
|
110
118
|
focusMatInput(): Promise<void>;
|
|
111
119
|
blurMatInput(): Promise<void>;
|
|
112
120
|
getMatInputValue(): Promise<string>;
|
|
121
|
+
getMatInputValueByDataAutomationId(dataAutomationId: string): Promise<string>;
|
|
113
122
|
sendKeysToMatInput(keys: (string | TestKey)[]): Promise<void>;
|
|
114
123
|
/** MatAutoComplete related methods */
|
|
115
124
|
typeAndGetOptionsForMatAutoComplete(fixture: ComponentFixture<any>, value: string): Promise<MatOptionHarness[]>;
|
|
@@ -122,4 +131,9 @@ export declare class UnitTestingUtils {
|
|
|
122
131
|
checkIfMatSnackbarExists(): Promise<boolean>;
|
|
123
132
|
/** MatProgressBar related methods */
|
|
124
133
|
getMatProgressBarHost(): Promise<TestElement>;
|
|
134
|
+
/** MatListOption related methods */
|
|
135
|
+
getMatListOption(): Promise<MatListOptionHarness>;
|
|
136
|
+
getAllMatListOptions(): Promise<MatListOptionHarness[]>;
|
|
137
|
+
/** MatCell related methods */
|
|
138
|
+
getMatCellByColumnName(columnName: string): Promise<MatCellHarness>;
|
|
125
139
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
.adf-toolbar-container.adf-toolbar-container-row {
|
|
13
13
|
border: 1px solid var(--adf-theme-foreground-text-color-007);
|
|
14
|
-
color: var(--adf-theme-foreground-text-color-
|
|
14
|
+
color: var(--adf-theme-foreground-text-color-064);
|
|
15
15
|
height: 64px;
|
|
16
16
|
font-size: var(--theme-body-1-font-size);
|
|
17
17
|
white-space: normal;
|
|
@@ -26,6 +26,11 @@ export interface ProvideI18NConfig {
|
|
|
26
26
|
* Example: [['adf-core', 'assets/adf-core'], ['my-translations', 'assets/my-translations']]
|
|
27
27
|
*/
|
|
28
28
|
assets?: [string, string][];
|
|
29
|
+
/**
|
|
30
|
+
* An object of translations to be used for i18n for the default language.
|
|
31
|
+
* Example: { 'WELCOME_MESSAGE': 'Welcome!' }
|
|
32
|
+
*/
|
|
33
|
+
translations?: Record<string, string>;
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
36
|
* Provides the i18n service.
|
|
@@ -1,32 +1,14 @@
|
|
|
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 { HttpClient } from '@angular/common/http';
|
|
18
1
|
import { TranslateLoader } from '@ngx-translate/core';
|
|
19
2
|
import { Observable } from 'rxjs';
|
|
20
3
|
import { ComponentTranslationModel } from '../models/component.model';
|
|
21
4
|
import * as i0 from "@angular/core";
|
|
22
5
|
export declare class TranslateLoaderService implements TranslateLoader {
|
|
23
|
-
private http;
|
|
24
|
-
private prefix;
|
|
25
|
-
private suffix;
|
|
26
|
-
private providers;
|
|
6
|
+
private readonly http;
|
|
7
|
+
private readonly prefix;
|
|
8
|
+
private readonly suffix;
|
|
9
|
+
private readonly providers;
|
|
27
10
|
private queue;
|
|
28
11
|
private defaultLang;
|
|
29
|
-
constructor(http: HttpClient);
|
|
30
12
|
setDefaultLang(value: string): void;
|
|
31
13
|
registerProvider(name: string, path: string): void;
|
|
32
14
|
providerRegistered(name: string): boolean;
|
|
@@ -18,7 +18,6 @@ import { InjectionToken } from '@angular/core';
|
|
|
18
18
|
import { TranslateService } from '@ngx-translate/core';
|
|
19
19
|
import { Observable } from 'rxjs';
|
|
20
20
|
import { TranslateLoaderService } from './translate-loader.service';
|
|
21
|
-
import { UserPreferencesService } from '../common/services/user-preferences.service';
|
|
22
21
|
import * as i0 from "@angular/core";
|
|
23
22
|
export declare const TRANSLATION_PROVIDER: InjectionToken<unknown>;
|
|
24
23
|
export interface TranslationProvider {
|
|
@@ -42,10 +41,12 @@ export declare function provideTranslations(id: string, path: string): {
|
|
|
42
41
|
};
|
|
43
42
|
export declare class TranslationService {
|
|
44
43
|
translate: TranslateService;
|
|
44
|
+
private readonly userPreferencesService;
|
|
45
|
+
private readonly providers;
|
|
45
46
|
defaultLang: string;
|
|
46
47
|
userLang: string;
|
|
47
48
|
customLoader: TranslateLoaderService;
|
|
48
|
-
constructor(
|
|
49
|
+
constructor();
|
|
49
50
|
/**
|
|
50
51
|
* Adds a new folder of translation source files.
|
|
51
52
|
*
|
|
@@ -81,6 +82,12 @@ export declare class TranslationService {
|
|
|
81
82
|
* @returns Translated text
|
|
82
83
|
*/
|
|
83
84
|
get(key: string | Array<string>, interpolateParams?: any): Observable<string | any>;
|
|
85
|
+
/**
|
|
86
|
+
* Determines the preferred locale for the current user.
|
|
87
|
+
*
|
|
88
|
+
* @returns Locale identifier resolved from the browser or the default translation locale
|
|
89
|
+
*/
|
|
90
|
+
getLocale(): string;
|
|
84
91
|
/**
|
|
85
92
|
* Directly returns the translation for the supplied key.
|
|
86
93
|
*
|
|
@@ -89,6 +96,6 @@ export declare class TranslationService {
|
|
|
89
96
|
* @returns Translated text
|
|
90
97
|
*/
|
|
91
98
|
instant(key: string | Array<string>, interpolateParams?: any): string | any;
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService,
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
|
|
93
100
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
|
|
94
101
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { DownloadPromptActions } from '../../models/download-prompt.actions';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class DownloadPromptDialogComponent {
|
|
4
|
-
DownloadPromptActions:
|
|
3
|
+
DownloadPromptActions: {
|
|
4
|
+
readonly WAIT: "WAIT";
|
|
5
|
+
readonly DOWNLOAD: "DOWNLOAD";
|
|
6
|
+
};
|
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadPromptDialogComponent, never>;
|
|
6
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadPromptDialogComponent, "adf-download-prompt-dialog", never, {}, {}, never, never, true, never>;
|
|
7
9
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import Cropper from 'cropperjs';
|
|
3
|
-
import { AppConfigService } from '../../../app-config';
|
|
4
|
-
import { UrlService } from '../../../common';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class ImgViewerComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
7
5
|
private readonly appConfigService;
|
|
@@ -14,8 +12,8 @@ export declare class ImgViewerComponent implements AfterViewInit, OnChanges, OnD
|
|
|
14
12
|
urlFile: string;
|
|
15
13
|
blobFile: Blob;
|
|
16
14
|
fileName: string;
|
|
17
|
-
error: EventEmitter<
|
|
18
|
-
submit: EventEmitter<
|
|
15
|
+
error: EventEmitter<void>;
|
|
16
|
+
submit: EventEmitter<Blob>;
|
|
19
17
|
isSaving: EventEmitter<boolean>;
|
|
20
18
|
imageLoaded: EventEmitter<void>;
|
|
21
19
|
imageElement: ElementRef;
|
|
@@ -24,8 +22,9 @@ export declare class ImgViewerComponent implements AfterViewInit, OnChanges, OnD
|
|
|
24
22
|
scale: number;
|
|
25
23
|
cropper: Cropper;
|
|
26
24
|
isEditing: boolean;
|
|
25
|
+
private destroyed;
|
|
27
26
|
get currentScaleText(): string;
|
|
28
|
-
constructor(
|
|
27
|
+
constructor();
|
|
29
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
29
|
ngAfterViewInit(): void;
|
|
31
30
|
ngOnDestroy(): void;
|
|
@@ -38,6 +37,11 @@ export declare class ImgViewerComponent implements AfterViewInit, OnChanges, OnD
|
|
|
38
37
|
reset(): void;
|
|
39
38
|
updateCanvasContainer(): void;
|
|
40
39
|
onImageError(): void;
|
|
40
|
+
private handleArrowLeftKey;
|
|
41
|
+
private handleArrowUpKey;
|
|
42
|
+
private handleArrowRightKey;
|
|
43
|
+
private handleArrowDownKey;
|
|
44
|
+
private changeCropBoxArea;
|
|
41
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImgViewerComponent, never>;
|
|
42
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImgViewerComponent, "adf-img-viewer", never, { "showToolbar": { "alias": "showToolbar"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "allowedEditActions": { "alias": "allowedEditActions"; "required": false; }; "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; }, { "error": "error"; "submit": "submit"; "isSaving": "isSaving"; "imageLoaded": "imageLoaded"; }, never, never, true, never>;
|
|
43
47
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { UrlService } from '../../../common';
|
|
3
2
|
import { Track } from '../../models/viewer.model';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class MediaPlayerComponent implements OnChanges {
|
|
6
|
-
private urlService;
|
|
5
|
+
private readonly urlService;
|
|
7
6
|
urlFile: string;
|
|
8
7
|
blobFile: Blob;
|
|
9
8
|
mimeType: string;
|
|
10
9
|
fileName: string;
|
|
11
10
|
/** media subtitles for the media player*/
|
|
12
11
|
tracks: Track[];
|
|
13
|
-
error: EventEmitter<
|
|
12
|
+
error: EventEmitter<Event>;
|
|
14
13
|
canPlay: EventEmitter<void>;
|
|
15
|
-
constructor(urlService: UrlService);
|
|
16
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
-
onMediaPlayerError(event:
|
|
15
|
+
onMediaPlayerError(event: Event): void;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediaPlayerComponent, never>;
|
|
19
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<MediaPlayerComponent, "adf-media-player", never, { "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "mimeType": { "alias": "mimeType"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "tracks": { "alias": "tracks"; "required": false; }; }, { "error": "error"; "canPlay": "canPlay"; }, never, never, true, never>;
|
|
20
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* stylelint-disable selector-class-pattern */
|
|
1
2
|
.adf-pdf-viewer {
|
|
2
3
|
.textLayer {
|
|
3
4
|
position: absolute;
|
|
@@ -183,6 +184,33 @@
|
|
|
183
184
|
border: none;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
187
|
+
|
|
188
|
+
.adf-pdf-viewer-annotation-tooltip.popup {
|
|
189
|
+
outline-color: var(--adf-pdf-viewer-annotation-tooltip-color);
|
|
190
|
+
background-color: color-mix(in srgb, var(--adf-pdf-viewer-annotation-tooltip-color) 30%, var(--theme-primary-color-default-contrast));
|
|
191
|
+
margin-left: 40px;
|
|
192
|
+
width: max-content;
|
|
193
|
+
max-width: 300px;
|
|
194
|
+
opacity: 0;
|
|
195
|
+
pointer-events: none;
|
|
196
|
+
|
|
197
|
+
.popupContent {
|
|
198
|
+
display: inherit;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.textAnnotation {
|
|
203
|
+
&:hover,
|
|
204
|
+
&:focus-within {
|
|
205
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
206
|
+
z-index: 9999 !important; // important is required because pdfjs-dist adds style attribute to that tag
|
|
207
|
+
|
|
208
|
+
.adf-pdf-viewer-annotation-tooltip.popup {
|
|
209
|
+
opacity: 1;
|
|
210
|
+
pointer-events: auto;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
186
214
|
}
|
|
187
215
|
|
|
188
216
|
.adf-hidden,
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
import { EventEmitter, InjectionToken, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { PDFViewer } from 'pdfjs-dist/web/pdf_viewer.mjs';
|
|
3
|
-
import { PDFDocumentLoadingTask, PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
|
|
3
|
+
import { PDFDocumentLoadingTask, PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist/types/src/display/api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type PdfScaleMode = 'init' | 'page-actual' | 'page-width' | 'page-height' | 'page-fit' | 'auto';
|
|
6
|
+
export interface PageChangingEvent {
|
|
7
|
+
pageNumber: number;
|
|
8
|
+
source?: {
|
|
9
|
+
container?: {
|
|
10
|
+
id?: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface PdfThumbnailPage {
|
|
15
|
+
id: number;
|
|
16
|
+
getWidth: () => number;
|
|
17
|
+
getHeight: () => number;
|
|
18
|
+
getPage: () => Promise<PDFPageProxy>;
|
|
19
|
+
}
|
|
20
|
+
export interface PdfAnnotationData {
|
|
21
|
+
titleObj?: {
|
|
22
|
+
str?: string;
|
|
23
|
+
};
|
|
24
|
+
modificationDate?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PdfAnnotationWithTitle extends PdfAnnotationData {
|
|
27
|
+
titleObj: {
|
|
28
|
+
str: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
6
31
|
export declare const PDFJS_MODULE: InjectionToken<any>;
|
|
7
32
|
export declare const PDFJS_VIEWER_MODULE: InjectionToken<typeof PDFViewer>;
|
|
8
33
|
export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
@@ -11,11 +36,11 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
|
11
36
|
fileName: string;
|
|
12
37
|
showToolbar: boolean;
|
|
13
38
|
allowThumbnails: boolean;
|
|
14
|
-
thumbnailsTemplate: TemplateRef<
|
|
39
|
+
thumbnailsTemplate: TemplateRef<unknown>;
|
|
15
40
|
cacheType: string;
|
|
16
|
-
rendered: EventEmitter<
|
|
17
|
-
error: EventEmitter<
|
|
18
|
-
close: EventEmitter<
|
|
41
|
+
rendered: EventEmitter<void>;
|
|
42
|
+
error: EventEmitter<void>;
|
|
43
|
+
close: EventEmitter<void>;
|
|
19
44
|
pagesLoaded: EventEmitter<void>;
|
|
20
45
|
page: number;
|
|
21
46
|
displayPage: number;
|
|
@@ -33,24 +58,25 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
|
33
58
|
isPanelDisabled: boolean;
|
|
34
59
|
showThumbnails: boolean;
|
|
35
60
|
pdfThumbnailsContext: {
|
|
36
|
-
viewer:
|
|
61
|
+
viewer: PDFViewer | null;
|
|
37
62
|
};
|
|
38
63
|
randomPdfId: string;
|
|
39
64
|
documentOverflow: boolean;
|
|
40
65
|
get currentScaleText(): string;
|
|
41
|
-
private pdfjsLib;
|
|
42
|
-
private pdfjsViewer;
|
|
43
|
-
private eventBus;
|
|
44
|
-
private pdfjsDefaultOptions;
|
|
45
|
-
private pdfjsWorkerDestroy$;
|
|
46
|
-
private dialog;
|
|
47
|
-
private renderingQueueServices;
|
|
48
|
-
private appConfigService;
|
|
66
|
+
private readonly pdfjsLib;
|
|
67
|
+
private readonly pdfjsViewer;
|
|
68
|
+
private readonly eventBus;
|
|
69
|
+
private readonly pdfjsDefaultOptions;
|
|
70
|
+
private readonly pdfjsWorkerDestroy$;
|
|
71
|
+
private readonly dialog;
|
|
72
|
+
private readonly renderingQueueServices;
|
|
73
|
+
private readonly appConfigService;
|
|
74
|
+
private readonly translateService;
|
|
49
75
|
constructor();
|
|
50
76
|
getUserScaling(): number;
|
|
51
77
|
checkLimits(scaleConfig: number): number;
|
|
52
78
|
ngOnChanges(changes: SimpleChanges): void;
|
|
53
|
-
executePdf(pdfOptions:
|
|
79
|
+
executePdf(pdfOptions: Parameters<typeof this.pdfjsLib.getDocument>[0]): void;
|
|
54
80
|
private setupPdfJsWorker;
|
|
55
81
|
private getPdfJsWorker;
|
|
56
82
|
initPDFViewer(pdfDocument: PDFDocumentProxy): void;
|
|
@@ -129,9 +155,13 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
|
129
155
|
/**
|
|
130
156
|
* Page Change Event
|
|
131
157
|
*
|
|
132
|
-
* @param event event
|
|
158
|
+
* @param event - page change event
|
|
159
|
+
* @param event.pageNumber - the new page number
|
|
160
|
+
* @param event.source - the source object
|
|
161
|
+
* @param event.source.container - the container element
|
|
162
|
+
* @param event.source.container.id - the container id
|
|
133
163
|
*/
|
|
134
|
-
onPageChange(event:
|
|
164
|
+
onPageChange(event: PageChangingEvent): void;
|
|
135
165
|
onPdfPassword(callback: any, reason: any): void;
|
|
136
166
|
/**
|
|
137
167
|
* Page Rendered Event
|
|
@@ -148,6 +178,11 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
|
148
178
|
* @param event KeyboardEvent
|
|
149
179
|
*/
|
|
150
180
|
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
181
|
+
private handleNotRecognizedAnnotations;
|
|
182
|
+
private correctAnnotationImage;
|
|
183
|
+
private createAnnotationPopup;
|
|
184
|
+
private createAnnotationPopupHeader;
|
|
185
|
+
private createAnnotationPopupContent;
|
|
151
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerComponent, never>;
|
|
152
187
|
static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerComponent, "adf-pdf-viewer", never, { "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "allowThumbnails": { "alias": "allowThumbnails"; "required": false; }; "thumbnailsTemplate": { "alias": "thumbnailsTemplate"; "required": false; }; "cacheType": { "alias": "cacheType"; "required": false; }; }, { "rendered": "rendered"; "error": "error"; "close": "close"; "pagesLoaded": "pagesLoaded"; }, never, never, true, never>;
|
|
153
188
|
}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
justify-content: flex-end;
|
|
60
60
|
align-items: flex-end;
|
|
61
61
|
display: flex;
|
|
62
|
-
color: var(--adf-theme-foreground-text-color-
|
|
62
|
+
color: var(--adf-theme-foreground-text-color-064);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -103,7 +103,9 @@
|
|
|
103
103
|
background-color: var(--adf-theme-background-card-color);
|
|
104
104
|
border-width: 0;
|
|
105
105
|
border-radius: 2px;
|
|
106
|
-
box-shadow:
|
|
106
|
+
box-shadow:
|
|
107
|
+
0 2px 2px 0 rgba(0, 0, 0, 20.4),
|
|
108
|
+
0 0 2px 0 rgba(0, 0, 0, 0.12);
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
&-page-selector {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
2
|
import { UntypedFormControl } from '@angular/forms';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class PdfPasswordDialogComponent implements OnInit {
|
|
6
|
-
private dialogRef;
|
|
5
|
+
private readonly dialogRef;
|
|
7
6
|
data: any;
|
|
8
7
|
passwordFormControl: UntypedFormControl;
|
|
9
|
-
constructor(dialogRef: MatDialogRef<PdfPasswordDialogComponent>, data: any);
|
|
10
8
|
ngOnInit(): void;
|
|
11
9
|
isError(): boolean;
|
|
12
10
|
isValid(): boolean;
|
|
@@ -15,15 +15,13 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
18
|
-
import {
|
|
19
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
18
|
+
import { OnInit } from '@angular/core';
|
|
20
19
|
import * as i0 from "@angular/core";
|
|
21
20
|
export declare class PdfThumbComponent implements OnInit, FocusableOption {
|
|
22
|
-
private sanitizer;
|
|
23
|
-
private element;
|
|
21
|
+
private readonly sanitizer;
|
|
22
|
+
private readonly element;
|
|
24
23
|
page: any;
|
|
25
24
|
image$: Promise<string>;
|
|
26
|
-
constructor(sanitizer: DomSanitizer, element: ElementRef);
|
|
27
25
|
ngOnInit(): void;
|
|
28
26
|
focus(): void;
|
|
29
27
|
private getThumb;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { PdfThumbComponent } from '../pdf-viewer-thumb/pdf-viewer-thumb.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
5
|
-
private element;
|
|
6
|
-
private document;
|
|
5
|
+
private readonly element;
|
|
6
|
+
private readonly document;
|
|
7
7
|
pdfViewer: any;
|
|
8
8
|
close: EventEmitter<void>;
|
|
9
9
|
virtualHeight: number;
|
|
@@ -12,23 +12,22 @@ export declare class PdfThumbListComponent implements OnInit, AfterViewInit, OnD
|
|
|
12
12
|
width: number;
|
|
13
13
|
currentHeight: number;
|
|
14
14
|
private items;
|
|
15
|
-
private margin;
|
|
15
|
+
private readonly margin;
|
|
16
16
|
private itemHeight;
|
|
17
17
|
private previouslyFocusedElement;
|
|
18
18
|
private keyManager;
|
|
19
|
-
template:
|
|
19
|
+
template: TemplateRef<unknown>;
|
|
20
20
|
thumbsList: QueryList<PdfThumbComponent>;
|
|
21
21
|
onKeydown(event: KeyboardEvent): void;
|
|
22
22
|
onResize(): void;
|
|
23
|
-
constructor(
|
|
23
|
+
constructor();
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
ngAfterViewInit(): void;
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
|
-
trackByFn(_: number, item: any): number;
|
|
28
27
|
isSelected(pageNumber: number): boolean;
|
|
29
28
|
goTo(pageNumber: number): void;
|
|
30
29
|
scrollInto(pageNumber: number): void;
|
|
31
|
-
getPages(): any;
|
|
30
|
+
getPages(): any[];
|
|
32
31
|
private setHeight;
|
|
33
32
|
private calculateHeight;
|
|
34
33
|
private calculateItems;
|