@ng-doc/ui-kit 18.0.0 → 18.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animations/index.d.ts +1 -0
- package/animations/popup.d.ts +2 -0
- package/assets/icons/16/maximize.svg +1 -0
- package/assets/icons/16/zoom-in.svg +1 -0
- package/assets/icons/16/zoom-out.svg +1 -0
- package/assets/icons/24/activity.svg +1 -0
- package/assets/icons/24/check.svg +1 -0
- package/classes/base-input/base-input.d.ts +1 -0
- package/components/blockquote/blockquote.component.d.ts +2 -1
- package/components/button/button.component.d.ts +20 -0
- package/components/button-icon/button-icon.component.d.ts +1 -1
- package/components/button-toggle/button-toggle.component.d.ts +8 -0
- package/components/button-toggle/index.d.ts +1 -0
- package/components/expander/expander.component.d.ts +5 -3
- package/components/floated-content/floated-content.component.d.ts +2 -8
- package/components/icon/icon.component.d.ts +1 -0
- package/components/index.d.ts +4 -0
- package/components/input-wrapper/input-wrapper.component.d.ts +1 -3
- package/components/magnifier/index.d.ts +1 -0
- package/components/magnifier/magnifier.component.d.ts +21 -0
- package/components/magnifier-controller/index.d.ts +1 -0
- package/components/magnifier-controller/magnifier-controller.component.d.ts +7 -0
- package/components/overlay-container/overlay-container.component.d.ts +6 -5
- package/components/pane/pane.component.d.ts +2 -3
- package/components/sidenav/sidenav.component.d.ts +2 -20
- package/components/tab-group/tab/tab.component.d.ts +1 -1
- package/components/tab-routes-group/index.d.ts +2 -0
- package/components/tab-routes-group/tab-route/tab-route.component.d.ts +7 -0
- package/components/tab-routes-group/tab-routes-group.component.d.ts +6 -0
- package/directives/index.d.ts +1 -1
- package/directives/radio-group/index.d.ts +1 -0
- package/directives/radio-group/radio-group.directive.d.ts +7 -0
- package/directives/rotator/rotator.directive.d.ts +5 -9
- package/esm2022/animations/index.mjs +2 -1
- package/esm2022/animations/popup.mjs +8 -0
- package/esm2022/cdk/combobox-host/combobox-host.component.mjs +4 -4
- package/esm2022/classes/base-input/base-input.mjs +7 -5
- package/esm2022/classes/overlay-ref/overlay-ref.mjs +2 -2
- package/esm2022/components/blockquote/blockquote.component.mjs +7 -5
- package/esm2022/components/button/button.component.mjs +25 -5
- package/esm2022/components/button-icon/button-icon.component.mjs +5 -5
- package/esm2022/components/button-toggle/button-toggle.component.mjs +23 -0
- package/esm2022/components/button-toggle/index.mjs +2 -0
- package/esm2022/components/button-toggle/ng-doc-ui-kit-components-button-toggle.mjs +5 -0
- package/esm2022/components/checkbox/checkbox.component.mjs +5 -5
- package/esm2022/components/clear-control/clear-control.component.mjs +5 -5
- package/esm2022/components/combobox/combobox.component.mjs +6 -6
- package/esm2022/components/data-list/data-list.component.mjs +4 -4
- package/esm2022/components/data-list-group/data-list-group.component.mjs +4 -4
- package/esm2022/components/dialog-outlet/dialog-outlet.component.mjs +4 -4
- package/esm2022/components/dot/dot.component.mjs +3 -3
- package/esm2022/components/dropdown/dropdown.component.mjs +4 -4
- package/esm2022/components/expander/expander.component.mjs +13 -13
- package/esm2022/components/floated-border/floated-border.component.mjs +3 -3
- package/esm2022/components/floated-content/floated-content.component.mjs +9 -30
- package/esm2022/components/focus-control/focus-control.component.mjs +4 -4
- package/esm2022/components/icon/icon.component.mjs +7 -6
- package/esm2022/components/index.mjs +5 -1
- package/esm2022/components/input-wrapper/input-wrapper.component.mjs +6 -12
- package/esm2022/components/label/label.component.mjs +3 -3
- package/esm2022/components/line/line.component.mjs +3 -3
- package/esm2022/components/list/list.component.mjs +4 -4
- package/esm2022/components/magnifier/index.mjs +2 -0
- package/esm2022/components/magnifier/magnifier.component.mjs +79 -0
- package/esm2022/components/magnifier/ng-doc-ui-kit-components-magnifier.mjs +5 -0
- package/esm2022/components/magnifier-controller/index.mjs +2 -0
- package/esm2022/components/magnifier-controller/magnifier-controller.component.mjs +16 -0
- package/esm2022/components/magnifier-controller/ng-doc-ui-kit-components-magnifier-controller.mjs +5 -0
- package/esm2022/components/option/option.component.mjs +3 -3
- package/esm2022/components/option-group/option-group.component.mjs +6 -6
- package/esm2022/components/overlay-container/overlay-container.component.mjs +14 -8
- package/esm2022/components/overlay-pointer/overlay-pointer.component.mjs +3 -3
- package/esm2022/components/pane/pane.component.mjs +36 -36
- package/esm2022/components/selection/selection-host.directive.mjs +4 -4
- package/esm2022/components/selection/selection-origin.directive.mjs +4 -4
- package/esm2022/components/selection/selection.component.mjs +6 -5
- package/esm2022/components/sidenav/sidenav.component.mjs +10 -130
- package/esm2022/components/smooth-resize/smooth-resize.component.mjs +6 -6
- package/esm2022/components/spinner/spinner.component.mjs +3 -3
- package/esm2022/components/tab-group/tab/tab.component.mjs +5 -5
- package/esm2022/components/tab-group/tab-group.component.mjs +4 -4
- package/esm2022/components/tab-routes-group/index.mjs +3 -0
- package/esm2022/components/tab-routes-group/ng-doc-ui-kit-components-tab-routes-group.mjs +5 -0
- package/esm2022/components/tab-routes-group/tab-route/tab-route.component.mjs +21 -0
- package/esm2022/components/tab-routes-group/tab-routes-group.component.mjs +14 -0
- package/esm2022/components/tag/tag.component.mjs +4 -4
- package/esm2022/components/text/text-left.directive.mjs +3 -3
- package/esm2022/components/text/text-right.directive.mjs +3 -3
- package/esm2022/components/text/text.component.mjs +5 -5
- package/esm2022/components/toggle/toggle.component.mjs +4 -4
- package/esm2022/components/wrapper/wrapper.component.mjs +3 -3
- package/esm2022/decorators/pure.mjs +1 -1
- package/esm2022/directives/autofocus/autofocus.directive.mjs +4 -4
- package/esm2022/directives/checked-change/checked-change.directive.mjs +3 -3
- package/esm2022/directives/data/data.directive.mjs +3 -3
- package/esm2022/directives/dropdown-handler/dropdown-handler.directive.mjs +4 -4
- package/esm2022/directives/dropdown-origin/dropdown-origin.directive.mjs +3 -3
- package/esm2022/directives/event-switcher/event-switcher.directive.mjs +4 -4
- package/esm2022/directives/focus-catcher/focus-catcher.directive.mjs +3 -3
- package/esm2022/directives/focusable/focusable.directive.mjs +3 -3
- package/esm2022/directives/hotkey/hotkey.directive.mjs +18 -15
- package/esm2022/directives/index.mjs +2 -2
- package/esm2022/directives/input-number/input-number.directive.mjs +3 -3
- package/esm2022/directives/input-string/input-string.directive.mjs +3 -3
- package/esm2022/directives/let/let.directive.mjs +3 -3
- package/esm2022/directives/radio-group/index.mjs +2 -0
- package/esm2022/directives/{media-query/ng-doc-ui-kit-directives-media-query.mjs → radio-group/ng-doc-ui-kit-directives-radio-group.mjs} +1 -1
- package/esm2022/directives/radio-group/radio-group.directive.mjs +19 -0
- package/esm2022/directives/rotator/rotator.directive.mjs +15 -23
- package/esm2022/directives/tooltip/tooltip.directive.mjs +4 -4
- package/esm2022/helpers/merge-overlay-configs.mjs +1 -1
- package/esm2022/interceptors/cache.interceptor.mjs +4 -4
- package/esm2022/observables/zone.mjs +5 -1
- package/esm2022/pipes/as-array/as-array.pipe.mjs +3 -3
- package/esm2022/pipes/bind/bind.pipe.mjs +4 -4
- package/esm2022/pipes/execute/execute.pipe.mjs +3 -3
- package/esm2022/pipes/highlighter/highlighter.pipe.mjs +3 -3
- package/esm2022/services/dialog/dialog.config.mjs +1 -1
- package/esm2022/services/dialog/dialog.service.mjs +14 -12
- package/esm2022/services/notify/notify.service.mjs +3 -3
- package/esm2022/services/overlay/overlay.service.mjs +6 -6
- package/esm2022/services/overlay-strategy/overlay-strategy.mjs +4 -4
- package/esm2022/services/scroll/scroll.service.mjs +3 -3
- package/esm2022/types/blockquote-type.mjs +1 -1
- package/esm2022/types/color.mjs +1 -1
- package/esm2022/types/content.mjs +3 -4
- package/esm2022/utils/focus-utils.mjs +1 -1
- package/esm2022/utils/overlay-utils.mjs +1 -1
- package/esm2022/utils/position-utils.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-animations.mjs +9 -2
- package/fesm2022/ng-doc-ui-kit-animations.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs +7 -5
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs +6 -4
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button-toggle.mjs +30 -0
- package/fesm2022/ng-doc-ui-kit-components-button-toggle.mjs.map +1 -0
- package/fesm2022/ng-doc-ui-kit-components-button.mjs +24 -4
- package/fesm2022/ng-doc-ui-kit-components-button.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-combobox.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-combobox.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-data-list-group.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-components-data-list-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-data-list.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dot.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-expander.mjs +12 -12
- package/fesm2022/ng-doc-ui-kit-components-expander.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-floated-border.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs +8 -29
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs +7 -6
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs +6 -12
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-label.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-line.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-list.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-components-list.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-magnifier-controller.mjs +23 -0
- package/fesm2022/ng-doc-ui-kit-components-magnifier-controller.mjs.map +1 -0
- package/fesm2022/ng-doc-ui-kit-components-magnifier.mjs +86 -0
- package/fesm2022/ng-doc-ui-kit-components-magnifier.mjs.map +1 -0
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs +7 -7
- package/fesm2022/ng-doc-ui-kit-components-option.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs +13 -7
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-overlay-pointer.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs +37 -37
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs +12 -12
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs +9 -129
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-spinner.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs +9 -9
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs +37 -0
- package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs.map +1 -0
- package/fesm2022/ng-doc-ui-kit-components-tag.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-components-tag.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-text.mjs +10 -10
- package/fesm2022/ng-doc-ui-kit-components-text.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-wrapper.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components.mjs +4 -0
- package/fesm2022/ng-doc-ui-kit-components.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-decorators.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-data.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-handler.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-handler.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-origin.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-directives-focusable.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs +18 -15
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-let.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-radio-group.mjs +26 -0
- package/fesm2022/ng-doc-ui-kit-directives-radio-group.mjs.map +1 -0
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs +14 -22
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-helpers.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-interceptors.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-interceptors.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-observables.mjs +5 -1
- package/fesm2022/ng-doc-ui-kit-observables.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-as-array.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-bind.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-bind.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-execute.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs +14 -12
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-overlay.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-services-overlay.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-scroll.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-types.mjs +2 -3
- package/fesm2022/ng-doc-ui-kit-types.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-utils.mjs.map +1 -1
- package/observables/zone.d.ts +3 -3
- package/package.json +36 -12
- package/services/dialog/dialog.config.d.ts +3 -1
- package/services/dialog/dialog.service.d.ts +4 -0
- package/styles/main.css +22 -13
- package/types/blockquote-type.d.ts +1 -1
- package/types/color.d.ts +1 -1
- package/types/content.d.ts +2 -2
- package/directives/media-query/index.d.ts +0 -1
- package/directives/media-query/media-query.directive.d.ts +0 -16
- package/esm2022/directives/media-query/index.mjs +0 -2
- package/esm2022/directives/media-query/media-query.directive.mjs +0 -53
- package/fesm2022/ng-doc-ui-kit-directives-media-query.mjs +0 -59
- package/fesm2022/ng-doc-ui-kit-directives-media-query.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injectable } from '@angular/core';
|
|
4
4
|
import { notificationOpenAnimation, notificationCloseAnimation } from '@ng-doc/ui-kit/animations';
|
|
@@ -32,14 +32,14 @@ let NgDocNotifyService = class NgDocNotifyService {
|
|
|
32
32
|
closeAnimation: notificationCloseAnimation,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocNotifyService, deps: [{ token: i1.NgDocOverlayService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocNotifyService, providedIn: 'root' }); }
|
|
37
37
|
};
|
|
38
38
|
NgDocNotifyService = __decorate([
|
|
39
39
|
UntilDestroy(),
|
|
40
40
|
__metadata("design:paramtypes", [NgDocOverlayService])
|
|
41
41
|
], NgDocNotifyService);
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocNotifyService, decorators: [{
|
|
43
43
|
type: Injectable,
|
|
44
44
|
args: [{
|
|
45
45
|
providedIn: 'root',
|
|
@@ -40,10 +40,10 @@ class NgDocOverlayStrategy {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocOverlayStrategy, deps: [{ token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocOverlayStrategy, providedIn: 'root' }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocOverlayStrategy, decorators: [{
|
|
47
47
|
type: Injectable,
|
|
48
48
|
args: [{ providedIn: 'root' }]
|
|
49
49
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-services-overlay-strategy.mjs","sources":["../../../../libs/ui-kit/services/overlay-strategy/overlay-strategy.ts","../../../../libs/ui-kit/services/overlay-strategy/ng-doc-ui-kit-services-overlay-strategy.ts"],"sourcesContent":["import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone } from '@angular/core';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { NgDocOverlayConfig } from '@ng-doc/ui-kit/interfaces';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { fromEvent, Subject } from 'rxjs';\nimport { filter, map, takeUntil, throttleTime } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayStrategy implements ScrollStrategy {\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate destroy$: Subject<void> = new Subject<void>();\n\n\tconstructor(\n\t\t@Inject(DOCUMENT) private documentRef: Document,\n\t\tprivate ngZone: NgZone,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.overlayRef = overlayRef;\n\t}\n\n\tenable(): void {\n\t\tfromEvent(this.documentRef, 'scroll', { capture: true })\n\t\t\t.pipe(\n\t\t\t\tngDocZoneDetach(this.ngZone),\n\t\t\t\tthrottleTime(10),\n\t\t\t\tmap((scrollEvent: Event) =>\n\t\t\t\t\tscrollEvent.target instanceof Document\n\t\t\t\t\t\t? scrollEvent.target.scrollingElement\n\t\t\t\t\t\t: scrollEvent.target,\n\t\t\t\t),\n\t\t\t\tfilter((target: EventTarget | null) =>\n\t\t\t\t\ttarget instanceof Node ? target.contains(this.origin) || !this.origin : false,\n\t\t\t\t),\n\t\t\t\ttakeUntil(this.destroy$),\n\t\t\t)\n\t\t\t.subscribe(() => this.detach());\n\t}\n\n\tprivate get origin(): HTMLElement | null {\n\t\tconst config: NgDocOverlayConfig | undefined =\n\t\t\tthis.overlayRef?.getConfig() as NgDocOverlayConfig;\n\t\treturn config?.viewContainerRef\n\t\t\t? (toElement(config.viewContainerRef.element) as HTMLElement)\n\t\t\t: null;\n\t}\n\n\tdisable(): void {\n\t\tthis.destroy$.next();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tif (this.overlayRef?.hasAttached()) {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.overlayRef?.detach();\n\t\t\t});\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,oBAAoB,CAAA;IAIhC,WAC2B,CAAA,WAAqB,EACvC,MAAc,EAAA;QADI,IAAW,CAAA,WAAA,GAAX,WAAW,CAAU;QACvC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QALf,IAAU,CAAA,UAAA,GAAsB,IAAI,CAAC;AACrC,QAAA,IAAA,CAAA,QAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAC;KAKlD;AAEJ,IAAA,MAAM,CAAC,UAAsB,EAAA;AAC5B,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC7B;IAED,MAAM,GAAA;AACL,QAAA,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;aACtD,IAAI,CACJ,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,EAC5B,YAAY,CAAC,EAAE,CAAC,EAChB,GAAG,CAAC,CAAC,WAAkB,KACtB,WAAW,CAAC,MAAM,YAAY,QAAQ;AACrC,cAAE,WAAW,CAAC,MAAM,CAAC,gBAAgB;cACnC,WAAW,CAAC,MAAM,CACrB,EACD,MAAM,CAAC,CAAC,MAA0B,KACjC,MAAM,YAAY,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAC7E,EACD,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CACxB;aACA,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;KACjC;AAED,IAAA,IAAY,MAAM,GAAA;QACjB,MAAM,MAAM,GACX,IAAI,CAAC,UAAU,EAAE,SAAS,EAAwB,CAAC;QACpD,OAAO,MAAM,EAAE,gBAAgB;cAC3B,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAiB;cAC3D,IAAI,CAAC;KACR;IAED,OAAO,GAAA;AACN,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACrB;IAED,MAAM,GAAA;QACL,IAAI,CAAC,OAAO,EAAE,CAAC;AACf,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE;AACnC,YAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAK;AACpB,gBAAA,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;AAC3B,aAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-services-overlay-strategy.mjs","sources":["../../../../libs/ui-kit/services/overlay-strategy/overlay-strategy.ts","../../../../libs/ui-kit/services/overlay-strategy/ng-doc-ui-kit-services-overlay-strategy.ts"],"sourcesContent":["import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone } from '@angular/core';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { NgDocOverlayConfig } from '@ng-doc/ui-kit/interfaces';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { fromEvent, Subject } from 'rxjs';\nimport { filter, map, takeUntil, throttleTime } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayStrategy implements ScrollStrategy {\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate destroy$: Subject<void> = new Subject<void>();\n\n\tconstructor(\n\t\t@Inject(DOCUMENT) private documentRef: Document,\n\t\tprivate ngZone: NgZone,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.overlayRef = overlayRef;\n\t}\n\n\tenable(): void {\n\t\tfromEvent(this.documentRef, 'scroll', { capture: true })\n\t\t\t.pipe(\n\t\t\t\tngDocZoneDetach(this.ngZone),\n\t\t\t\tthrottleTime(10),\n\t\t\t\tmap((scrollEvent: Event) =>\n\t\t\t\t\tscrollEvent.target instanceof Document\n\t\t\t\t\t\t? scrollEvent.target.scrollingElement\n\t\t\t\t\t\t: scrollEvent.target,\n\t\t\t\t),\n\t\t\t\tfilter((target: EventTarget | null) =>\n\t\t\t\t\ttarget instanceof Node ? target.contains(this.origin) || !this.origin : false,\n\t\t\t\t),\n\t\t\t\ttakeUntil(this.destroy$),\n\t\t\t)\n\t\t\t.subscribe(() => this.detach());\n\t}\n\n\tprivate get origin(): HTMLElement | null {\n\t\tconst config: NgDocOverlayConfig | undefined =\n\t\t\tthis.overlayRef?.getConfig() as NgDocOverlayConfig;\n\t\treturn config?.viewContainerRef\n\t\t\t? (toElement(config.viewContainerRef.element) as HTMLElement)\n\t\t\t: null;\n\t}\n\n\tdisable(): void {\n\t\tthis.destroy$.next();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tif (this.overlayRef?.hasAttached()) {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.overlayRef?.detach();\n\t\t\t});\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,oBAAoB,CAAA;IAIhC,WAC2B,CAAA,WAAqB,EACvC,MAAc,EAAA;QADI,IAAW,CAAA,WAAA,GAAX,WAAW,CAAU;QACvC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QALf,IAAU,CAAA,UAAA,GAAs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G,CAAC,MAAK;AACpB,gBAAA,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;AAC3B,aAAC,CAAC,CAAC;SACH;KACD;AAlDW,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,kBAKvB,QAAQ,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AALL,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA,EAAA;;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;0BAM/B,MAAM;2BAAC,QAAQ,CAAA;;;ACflB;;AAEG;;;;"}
|
|
@@ -27,8 +27,8 @@ class NgDocOverlayService {
|
|
|
27
27
|
if (content instanceof PolymorpheusComponent) {
|
|
28
28
|
content = new PolymorpheusComponent(content.component, this.createInjector(overlayRef, providers, config.viewContainerRef?.injector));
|
|
29
29
|
}
|
|
30
|
-
containerRef.
|
|
31
|
-
containerRef.
|
|
30
|
+
containerRef.setInput('config', config);
|
|
31
|
+
containerRef.setInput('content', content);
|
|
32
32
|
containerRef.instance.markForCheck();
|
|
33
33
|
return overlayRef;
|
|
34
34
|
}
|
|
@@ -67,10 +67,10 @@ class NgDocOverlayService {
|
|
|
67
67
|
parent: injector || this.injector,
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocOverlayService, deps: [{ token: i1.Overlay }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
71
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocOverlayService, providedIn: 'root' }); }
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocOverlayService, decorators: [{
|
|
74
74
|
type: Injectable,
|
|
75
75
|
args: [{ providedIn: 'root' }]
|
|
76
76
|
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.NgZone }, { type: i0.Injector }, { type: i2.Router, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-services-overlay.mjs","sources":["../../../../libs/ui-kit/services/overlay/overlay.service.ts","../../../../libs/ui-kit/services/overlay/ng-doc-ui-kit-services-overlay.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-services-overlay.mjs","sources":["../../../../libs/ui-kit/services/overlay/overlay.service.ts","../../../../libs/ui-kit/services/overlay/ng-doc-ui-kit-services-overlay.ts"],"sourcesContent":["import {\n FlexibleConnectedPositionStrategy,\n GlobalPositionStrategy,\n Overlay,\n OverlayRef,\n ScrollStrategyOptions,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n ComponentRef,\n Injectable,\n Injector,\n NgZone,\n Optional,\n StaticProvider,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';\nimport { NgDocOverlayConfig, NgDocOverlayContainer } from '@ng-doc/ui-kit/interfaces';\nimport { NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\nimport { PolymorpheusComponent } from '@tinkoff/ng-polymorpheus';\nimport { take } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayService {\n constructor(\n private overlay: Overlay,\n private ngZone: NgZone,\n private injector: Injector,\n @Optional()\n private router?: Router,\n ) {}\n\n open<R>(\n content: NgDocContent,\n config: NgDocOverlayConfig,\n providers: StaticProvider[] = [],\n ): NgDocOverlayRef<R> {\n const overlayRef: OverlayRef = this.createOverlay(config);\n return this.attachTooltipContainer(content, overlayRef, config, providers);\n }\n\n private attachTooltipContainer<R>(\n content: NgDocContent,\n overlay: OverlayRef,\n config: NgDocOverlayConfig,\n providers: StaticProvider[],\n ): NgDocOverlayRef<R> {\n const containerPortal: ComponentPortal<NgDocOverlayContainer> = new ComponentPortal(\n config.overlayContainer,\n config.viewContainerRef,\n config.viewContainerRef?.injector,\n );\n const containerRef: ComponentRef<NgDocOverlayContainer> = overlay.attach(containerPortal);\n const overlayRef: NgDocOverlayRef<R> = new NgDocOverlayRef<R>(\n overlay,\n config,\n containerRef.instance,\n this.ngZone,\n this.router,\n );\n\n if (content instanceof PolymorpheusComponent) {\n content = new PolymorpheusComponent(\n content.component,\n this.createInjector(overlayRef, providers, config.viewContainerRef?.injector),\n );\n }\n\n containerRef.setInput('config', config);\n containerRef.setInput('content', content);\n containerRef.instance.markForCheck();\n\n return overlayRef;\n }\n\n private createOverlay(config: NgDocOverlayConfig): OverlayRef {\n const overlayRef: OverlayRef = this.overlay.create(config);\n overlayRef\n .detachments()\n .pipe(take(1))\n .subscribe(() => {\n overlayRef.hasAttached() && overlayRef.detach();\n });\n return overlayRef;\n }\n\n connectedPositionStrategy(\n origin: NgDocOverlayOrigin,\n positions: NgDocOverlayPosition | NgDocOverlayPosition[],\n ): FlexibleConnectedPositionStrategy {\n return this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions(NgDocOverlayUtils.toConnectedPositions(asArray(positions)))\n .withPush(true);\n }\n\n globalPositionStrategy(): GlobalPositionStrategy {\n return this.overlay.position().global();\n }\n\n scrollStrategy(): ScrollStrategyOptions {\n return this.overlay.scrollStrategies;\n }\n\n private createInjector<R>(\n overlayRef: NgDocOverlayRef<R>,\n providers: StaticProvider[],\n injector?: Injector,\n ): Injector {\n return Injector.create({\n providers: [\n ...providers,\n {\n provide: NgDocOverlayRef,\n useValue: overlayRef,\n },\n ],\n parent: injector || this.injector,\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MA0Ba,mBAAmB,CAAA;AAC9B,IAAA,WAAA,CACU,OAAgB,EAChB,MAAc,EACd,QAAkB,EAElB,MAAe,EAAA;QAJf,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;QAChB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAElB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;KACrB;AAEJ,IAAA,IAAI,CACF,OAAqB,EACrB,MAA0B,EAC1B,YAA8B,EAAE,EAAA;QAEhC,MAAM,UAAU,GAAe,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC1D,QAAA,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;KAC5E;AAEO,IAAA,sBAAsB,CAC5B,OAAqB,EACrB,OAAmB,EACnB,MAA0B,EAC1B,SAA2B,EAAA;AAE3B,QAAA,MAAM,eAAe,GAA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AAA,CAAA;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;0BAM7B,QAAQ;;;AC/Bb;;AAEG;;;;"}
|
|
@@ -22,10 +22,10 @@ class NgDocScrollService {
|
|
|
22
22
|
unblock() {
|
|
23
23
|
this.scrollStrategy.disable();
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocScrollService, deps: [{ token: DOCUMENT }, { token: i1.ViewportRuler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
26
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocScrollService, providedIn: 'root' }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgDocScrollService, decorators: [{
|
|
29
29
|
type: Injectable,
|
|
30
30
|
args: [{
|
|
31
31
|
providedIn: 'root',
|
|
@@ -9,15 +9,14 @@ class NgDocComponentContent extends PolymorpheusComponent {
|
|
|
9
9
|
this.component = component;
|
|
10
10
|
this.injectorRef = injectorRef;
|
|
11
11
|
}
|
|
12
|
-
createInjector(injector,
|
|
12
|
+
createInjector(injector, useValue) {
|
|
13
13
|
return Injector.create({
|
|
14
14
|
parent: this.injectorRef || injector,
|
|
15
15
|
providers: [
|
|
16
16
|
{
|
|
17
17
|
provide: NG_DOC_COMPONENT_CONTEXT,
|
|
18
|
-
useValue
|
|
18
|
+
useValue,
|
|
19
19
|
},
|
|
20
|
-
...providers,
|
|
21
20
|
],
|
|
22
21
|
});
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-types.mjs","sources":["../../../../libs/ui-kit/types/content.ts","../../../../libs/ui-kit/types/ng-doc-ui-kit-types.ts"],"sourcesContent":["import { Injector,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-types.mjs","sources":["../../../../libs/ui-kit/types/content.ts","../../../../libs/ui-kit/types/ng-doc-ui-kit-types.ts"],"sourcesContent":["import { Injector, TemplateRef, Type } from '@angular/core';\nimport { NG_DOC_COMPONENT_CONTEXT } from '@ng-doc/ui-kit/tokens';\nimport {\n\tPolymorpheusComponent,\n\tPolymorpheusHandler,\n\tPolymorpheusTemplate,\n} from '@tinkoff/ng-polymorpheus';\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type NgDocContent<C extends object = {}> =\n\t| string\n\t| number\n\t| null\n\t| undefined\n\t| TemplateRef<C>\n\t| PolymorpheusTemplate<C>\n\t| PolymorpheusHandler<C>\n\t| NgDocComponentContent<object, C>;\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport class NgDocComponentContent<\n\tT extends object,\n\tC extends object = object,\n> extends PolymorpheusComponent<T, C> {\n\tconstructor(override readonly component: Type<T>, readonly injectorRef?: Injector) {\n\t\tsuper(component);\n\t}\n\n\toverride createInjector<C>(injector: Injector, useValue?: C): Injector {\n\t\treturn Injector.create({\n\t\t\tparent: this.injectorRef || injector,\n\t\t\tproviders: [\n\t\t\t\t{\n\t\t\t\t\tprovide: NG_DOC_COMPONENT_CONTEXT,\n\t\t\t\t\tuseValue,\n\t\t\t\t},\n\t\t\t],\n\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAmBA;AACM,MAAO,qBAGX,SAAQ,qBAA2B,CAAA;IACpC,WAA8B,CAAA,SAAkB,EAAW,WAAsB,EAAA;QAChF,KAAK,CAAC,SAAS,CAAC,CAAC;QADY,IAAS,CAAA,SAAA,GAAT,SAAS,CAAS;QAAW,IAAW,CAAA,WAAA,GAAX,WAAW,CAAW;KAEhF;IAEQ,cAAc,CAAI,QAAkB,EAAE,QAAY,EAAA;QAC1D,OAAO,QAAQ,CAAC,MAAM,CAAC;AACtB,YAAA,MAAM,EAAE,IAAI,CAAC,WAAW,IAAI,QAAQ;AACpC,YAAA,SAAS,EAAE;AACV,gBAAA;AACC,oBAAA,OAAO,EAAE,wBAAwB;oBACjC,QAAQ;AACR,iBAAA;AACD,aAAA;AACD,SAAA,CAAC,CAAC;KACH;AACD;;ACvCD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-utils.mjs","sources":["../../../../libs/ui-kit/utils/focus-utils.ts","../../../../libs/ui-kit/utils/overlay-utils.ts","../../../../libs/ui-kit/utils/position-utils.ts","../../../../libs/ui-kit/utils/ng-doc-ui-kit-utils.ts"],"sourcesContent":["export class NgDocFocusUtils {\n\tstatic isNativeKeyboardFocusable(element: Element): boolean {\n\t\tif (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (\n\t\t\t(element instanceof HTMLElement && element.isContentEditable) ||\n\t\t\telement.getAttribute('tabIndex') === '0'\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\n\t\tswitch (element.tagName) {\n\t\t\tcase 'BUTTON':\n\t\t\tcase 'SELECT':\n\t\t\tcase 'TEXTAREA':\n\t\t\t\treturn true;\n\t\t\tcase 'VIDEO':\n\t\t\tcase 'AUDIO':\n\t\t\t\treturn element.hasAttribute('controls');\n\t\t\tcase 'INPUT':\n\t\t\t\treturn element.getAttribute('type') !== 'hidden';\n\t\t\tcase 'A':\n\t\t\tcase 'LINK':\n\t\t\t\treturn element.hasAttribute('href');\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic getClosestKeyboardFocusable(\n\t\tinitial: HTMLElement,\n\t\troot: Node,\n\t\tforward: boolean = true,\n\t): HTMLElement | null {\n\t\tif (!root.ownerDocument) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n\t\tconst svgNodeFilter: NodeFilter = ((node: Node) =>\n\t\t\t'ownerSVGElement' in node ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT) as never;\n\n\t\tconst treeWalker: TreeWalker = root.ownerDocument.createTreeWalker(\n\t\t\troot,\n\t\t\tNodeFilter.SHOW_ELEMENT,\n\t\t\tsvgNodeFilter,\n\t\t);\n\n\t\ttreeWalker.currentNode = initial;\n\n\t\twhile (forward ? treeWalker.nextNode() : treeWalker.previousNode()) {\n\t\t\tif (treeWalker.currentNode instanceof HTMLElement) {\n\t\t\t\tinitial = treeWalker.currentNode;\n\t\t\t}\n\n\t\t\tif (NgDocFocusUtils.isNativeKeyboardFocusable(initial)) {\n\t\t\t\treturn initial;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic focusClosestElement(initial: HTMLElement, root: Node, forward: boolean = true): void {\n\t\tconst focusable: HTMLElement | null = NgDocFocusUtils.getClosestKeyboardFocusable(\n\t\t\tinitial,\n\t\t\troot,\n\t\t\tforward,\n\t\t);\n\t\tif (focusable) {\n\t\t\tfocusable.focus();\n\t\t}\n\t}\n}\n","import { ConnectedPosition, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport {\n\tNgDocHorizontalAlign,\n\tNgDocOverlayPosition,\n\tNgDocOverlayRelativePosition,\n\tNgDocVerticalAlign,\n} from '@ng-doc/ui-kit/types';\n\nexport const NG_DOC_ARROW_MARGIN: number = 32;\n\nconst POSITION_DESCRIPTION: Record<string, ConnectedPosition> = {\n\t'top-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'top',\n\t\toverlayX: 'center',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'bottom-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'center',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-top': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-center': {\n\t\toriginX: 'start',\n\t\toriginY: 'center',\n\t\toverlayX: 'end',\n\t\toverlayY: 'center',\n\t},\n\t'left-bottom': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'right-top': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'right-center': {\n\t\toriginX: 'end',\n\t\toriginY: 'center',\n\t\toverlayX: 'start',\n\t\toverlayY: 'center',\n\t},\n\t'right-bottom': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n};\n\nexport class NgDocOverlayUtils {\n\tstatic getConnectedPosition(\n\t\tdropdownPositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t\torigin: HTMLElement,\n\t\toffset: number = 0,\n\t\twithPointer: boolean = false,\n\t): ConnectedPosition[] {\n\t\treturn asArray(dropdownPositions).map((position: NgDocOverlayPosition) => {\n\t\t\tconst connectedPosition: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(position);\n\t\t\tconst marginMultiplier: number = NgDocOverlayUtils.getMarginMultiplier(connectedPosition);\n\t\t\tconst marginX: number = !NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconst marginY: number = NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconnectedPosition.offsetX = connectedPosition.offsetX || 0;\n\t\t\tconnectedPosition.offsetY = connectedPosition.offsetY || 0;\n\t\t\tconnectedPosition.offsetX +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetX(origin, connectedPosition) : 0) + marginX;\n\t\t\tconnectedPosition.offsetY +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetY(origin, connectedPosition) : 0) + marginY;\n\t\t\treturn connectedPosition;\n\t\t});\n\t}\n\n\tstatic toConnectedPosition(position: NgDocOverlayPosition): ConnectedPosition {\n\t\treturn typeof position === 'string' ? { ...POSITION_DESCRIPTION[position] } : { ...position };\n\t}\n\n\tstatic toConnectedPositions(positions: NgDocOverlayPosition[]): ConnectedPosition[] {\n\t\treturn positions.map(NgDocOverlayUtils.toConnectedPosition);\n\t}\n\n\tstatic getOffsetX(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst width: number =\n\t\t\t(position.originX === 'center' && position.overlayX !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByX(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetWidth;\n\t\treturn (\n\t\t\t(isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - width, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic getOffsetY(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst height: number =\n\t\t\t(position.originY === 'center' && position.overlayY !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByY(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetHeight;\n\t\treturn (\n\t\t\t(!isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - height, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic overlayIsOutByX(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originX === 'start' && position.overlayX === 'end') ||\n\t\t\t(position.originX === 'end' && position.overlayX === 'start')\n\t\t);\n\t}\n\n\tstatic overlayIsOutByY(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originY === 'top' && position.overlayY === 'bottom') ||\n\t\t\t(position.originY === 'bottom' && position.overlayY === 'top')\n\t\t);\n\t}\n\n\tstatic getOffsetMultiplier(position: ConnectedPosition): number {\n\t\treturn (NgDocOverlayUtils.isVerticalPosition(position) && position.overlayX === 'end') ||\n\t\t\t(!NgDocOverlayUtils.isVerticalPosition(position) && position.overlayY === 'bottom')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic getMarginMultiplier(position: ConnectedPosition): number {\n\t\treturn ['right', 'bottom'].includes(NgDocOverlayUtils.getRelativePosition(position) || '')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic isVerticalPosition(position: ConnectedPosition): boolean {\n\t\treturn ['bottom', 'top'].includes(NgDocOverlayUtils.getRelativePosition(position) || '');\n\t}\n\n\tstatic isCenterPosition(position: ConnectedPosition): boolean {\n\t\treturn position.overlayX === 'center' || position.overlayY === 'center';\n\t}\n\n\tstatic getPositionAlign(\n\t\tposition: ConnectedPosition,\n\t): NgDocHorizontalAlign | NgDocVerticalAlign | null {\n\t\tif (NgDocOverlayUtils.isVerticalPosition(position)) {\n\t\t\treturn position.overlayX === 'start' ? 'left' : position.overlayX === 'end' ? 'right' : null;\n\t\t} else {\n\t\t\treturn position.originY === 'top' ? 'top' : position.originY === 'bottom' ? 'bottom' : null;\n\t\t}\n\t}\n\n\tstatic getRelativePosition(pos: NgDocOverlayPosition): NgDocOverlayRelativePosition | null {\n\t\tconst position: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(pos);\n\t\tif (position.originY === 'bottom' && position.overlayY === 'top') {\n\t\t\treturn 'bottom';\n\t\t}\n\t\tif (position.originY === 'top' && position.overlayY === 'bottom') {\n\t\t\treturn 'top';\n\t\t}\n\t\tif (position.originX === 'start' && position.overlayX === 'end') {\n\t\t\treturn 'left';\n\t\t}\n\t\tif (position.originX === 'end' && position.overlayX === 'start') {\n\t\t\treturn 'right';\n\t\t}\n\t\treturn null;\n\t}\n\n\tstatic getOverlayPosition(positionPair: ConnectionPositionPair): NgDocOverlayPosition {\n\t\tconst existsPosition: NgDocOverlayPosition = Object.keys(POSITION_DESCRIPTION).find(\n\t\t\t(key: string) => {\n\t\t\t\tconst positionDescription: ConnectedPosition = POSITION_DESCRIPTION[key];\n\t\t\t\treturn (\n\t\t\t\t\tpositionPair.originX === positionDescription.originX &&\n\t\t\t\t\tpositionPair.originY === positionDescription.originY &&\n\t\t\t\t\tpositionPair.overlayX === positionDescription.overlayX &&\n\t\t\t\t\tpositionPair.overlayY === positionDescription.overlayY\n\t\t\t\t);\n\t\t\t},\n\t\t) as NgDocOverlayPosition;\n\t\treturn existsPosition ? existsPosition : positionPair;\n\t}\n}\n","import { Point } from '@angular/cdk/drag-drop';\n\nexport class NgDocPositionUtils {\n\t/**\n\t * Getting the position of the element relative to the viewPort, this function is faster than BoundingClientRect,\n\t * it also takes into account the change in the position of the element through transform\n\t * @param element\n\t */\n\tstatic getElementPosition(element: HTMLElement | null): Point {\n\t\tlet xPos: number = 0;\n\t\tlet yPos: number = 0;\n\n\t\twhile (element) {\n\t\t\tif (element === document.body) {\n\t\t\t\tconst documentElement: HTMLElement = document.documentElement;\n\t\t\t\txPos +=\n\t\t\t\t\tdocumentElement.offsetLeft - documentElement.scrollLeft + documentElement.clientLeft;\n\t\t\t\tyPos += documentElement.offsetTop - documentElement.scrollTop + documentElement.clientTop;\n\t\t\t\telement = null;\n\t\t\t} else {\n\t\t\t\tconst elementMatrix: DOMMatrix = new DOMMatrix(element.style.transform);\n\t\t\t\txPos += element.offsetLeft - element.scrollLeft + element.clientLeft + elementMatrix.m41;\n\t\t\t\tyPos += element.offsetTop - element.scrollTop + element.clientTop + elementMatrix.m42;\n\t\t\t\telement = NgDocPositionUtils.getOffsetParent(element) as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn { x: xPos, y: yPos };\n\t}\n\n\t/**\n\t * An implementation of the element.offsetParent function, this implementation closes a bug in Firefox when it\n\t * returns an offsetParent for elements with position: fixed\n\t * @param element\n\t */\n\tstatic getOffsetParent(element: HTMLElement): HTMLElement | null {\n\t\tconst computerStyles: CSSStyleDeclaration = getComputedStyle(element);\n\t\tif (computerStyles.position === 'fixed' || computerStyles.display === 'none') {\n\t\t\treturn null;\n\t\t}\n\t\treturn element.offsetParent as HTMLElement;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAAa,eAAe,CAAA;IAC3B,OAAO,yBAAyB,CAAC,OAAgB,EAAA;AAChD,QAAA,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;AAClF,YAAA,OAAO,KAAK,CAAC;AACb,SAAA;QAED,IACC,CAAC,OAAO,YAAY,WAAW,IAAI,OAAO,CAAC,iBAAiB;AAC5D,YAAA,OAAO,CAAC,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I,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC;AACzF,gBAAA,IAAI,IAAI,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC;AACtF,gBAAA,OAAO,GAAG,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAgB,CAAC;AACrE,aAAA;AACD,SAAA;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;KAC5B;AAED;;;;AAIG;IACH,OAAO,eAAe,CAAC,OAAoB,EAAA;AAC1C,QAAA,MAAM,cAAc,GAAwB,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACtE,IAAI,cAAc,CAAC,QAAQ,KAAK,OAAO,IAAI,cAAc,CAAC,OAAO,KAAK,MAAM,EAAE;AAC7E,YAAA,OAAO,IAAI,CAAC;AACZ,SAAA;QACD,OAAO,OAAO,CAAC,YAA2B,CAAC;KAC3C;AACD;;ACzCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-utils.mjs","sources":["../../../../libs/ui-kit/utils/focus-utils.ts","../../../../libs/ui-kit/utils/overlay-utils.ts","../../../../libs/ui-kit/utils/position-utils.ts","../../../../libs/ui-kit/utils/ng-doc-ui-kit-utils.ts"],"sourcesContent":["export class NgDocFocusUtils {\n\tstatic isNativeKeyboardFocusable(element: Element): boolean {\n\t\tif (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (\n\t\t\t(element instanceof HTMLElement && element.isContentEditable) ||\n\t\t\telement.getAttribute('tabIndex') === '0'\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\n\t\tswitch (element.tagName) {\n\t\t\tcase 'BUTTON':\n\t\t\tcase 'SELECT':\n\t\t\tcase 'TEXTAREA':\n\t\t\t\treturn true;\n\t\t\tcase 'VIDEO':\n\t\t\tcase 'AUDIO':\n\t\t\t\treturn element.hasAttribute('controls');\n\t\t\tcase 'INPUT':\n\t\t\t\treturn element.getAttribute('type') !== 'hidden';\n\t\t\tcase 'A':\n\t\t\tcase 'LINK':\n\t\t\t\treturn element.hasAttribute('href');\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic getClosestKeyboardFocusable(\n\t\tinitial: HTMLElement,\n\t\troot: Node,\n\t\tforward: boolean = true,\n\t): HTMLElement | null {\n\t\tif (!root.ownerDocument) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n\t\tconst svgNodeFilter: NodeFilter = ((node: Node) =>\n\t\t\t'ownerSVGElement' in node ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT) as never;\n\n\t\tconst treeWalker: TreeWalker = root.ownerDocument.createTreeWalker(\n\t\t\troot,\n\t\t\tNodeFilter.SHOW_ELEMENT,\n\t\t\tsvgNodeFilter,\n\t\t);\n\n\t\ttreeWalker.currentNode = initial;\n\n\t\twhile (forward ? treeWalker.nextNode() : treeWalker.previousNode()) {\n\t\t\tif (treeWalker.currentNode instanceof HTMLElement) {\n\t\t\t\tinitial = treeWalker.currentNode;\n\t\t\t}\n\n\t\t\tif (NgDocFocusUtils.isNativeKeyboardFocusable(initial)) {\n\t\t\t\treturn initial;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic focusClosestElement(initial: HTMLElement, root: Node, forward: boolean = true): void {\n\t\tconst focusable: HTMLElement | null = NgDocFocusUtils.getClosestKeyboardFocusable(\n\t\t\tinitial,\n\t\t\troot,\n\t\t\tforward,\n\t\t);\n\t\tif (focusable) {\n\t\t\tfocusable.focus();\n\t\t}\n\t}\n}\n","import { ConnectedPosition, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport {\n\tNgDocHorizontalAlign,\n\tNgDocOverlayPosition,\n\tNgDocOverlayRelativePosition,\n\tNgDocVerticalAlign,\n} from '@ng-doc/ui-kit/types';\n\nexport const NG_DOC_ARROW_MARGIN: number = 32;\n\nconst POSITION_DESCRIPTION: Record<string, ConnectedPosition> = {\n\t'top-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'top',\n\t\toverlayX: 'center',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'bottom-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'center',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-top': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-center': {\n\t\toriginX: 'start',\n\t\toriginY: 'center',\n\t\toverlayX: 'end',\n\t\toverlayY: 'center',\n\t},\n\t'left-bottom': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'right-top': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'right-center': {\n\t\toriginX: 'end',\n\t\toriginY: 'center',\n\t\toverlayX: 'start',\n\t\toverlayY: 'center',\n\t},\n\t'right-bottom': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n};\n\nexport class NgDocOverlayUtils {\n\tstatic getConnectedPosition(\n\t\tdropdownPositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t\torigin: HTMLElement,\n\t\toffset: number = 0,\n\t\twithPointer: boolean = false,\n\t): ConnectedPosition[] {\n\t\treturn asArray(dropdownPositions).map((position: NgDocOverlayPosition) => {\n\t\t\tconst connectedPosition: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(position);\n\t\t\tconst marginMultiplier: number = NgDocOverlayUtils.getMarginMultiplier(connectedPosition);\n\t\t\tconst marginX: number = !NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconst marginY: number = NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconnectedPosition.offsetX = connectedPosition.offsetX || 0;\n\t\t\tconnectedPosition.offsetY = connectedPosition.offsetY || 0;\n\t\t\tconnectedPosition.offsetX +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetX(origin, connectedPosition) : 0) + marginX;\n\t\t\tconnectedPosition.offsetY +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetY(origin, connectedPosition) : 0) + marginY;\n\t\t\treturn connectedPosition;\n\t\t});\n\t}\n\n\tstatic toConnectedPosition(position: NgDocOverlayPosition): ConnectedPosition {\n\t\treturn typeof position === 'string' ? { ...POSITION_DESCRIPTION[position] } : { ...position };\n\t}\n\n\tstatic toConnectedPositions(positions: NgDocOverlayPosition[]): ConnectedPosition[] {\n\t\treturn positions.map(NgDocOverlayUtils.toConnectedPosition);\n\t}\n\n\tstatic getOffsetX(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst width: number =\n\t\t\t(position.originX === 'center' && position.overlayX !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByX(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetWidth;\n\t\treturn (\n\t\t\t(isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - width, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic getOffsetY(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst height: number =\n\t\t\t(position.originY === 'center' && position.overlayY !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByY(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetHeight;\n\t\treturn (\n\t\t\t(!isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - height, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic overlayIsOutByX(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originX === 'start' && position.overlayX === 'end') ||\n\t\t\t(position.originX === 'end' && position.overlayX === 'start')\n\t\t);\n\t}\n\n\tstatic overlayIsOutByY(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originY === 'top' && position.overlayY === 'bottom') ||\n\t\t\t(position.originY === 'bottom' && position.overlayY === 'top')\n\t\t);\n\t}\n\n\tstatic getOffsetMultiplier(position: ConnectedPosition): number {\n\t\treturn (NgDocOverlayUtils.isVerticalPosition(position) && position.overlayX === 'end') ||\n\t\t\t(!NgDocOverlayUtils.isVerticalPosition(position) && position.overlayY === 'bottom')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic getMarginMultiplier(position: ConnectedPosition): number {\n\t\treturn ['right', 'bottom'].includes(NgDocOverlayUtils.getRelativePosition(position) || '')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic isVerticalPosition(position: ConnectedPosition): boolean {\n\t\treturn ['bottom', 'top'].includes(NgDocOverlayUtils.getRelativePosition(position) || '');\n\t}\n\n\tstatic isCenterPosition(position: ConnectedPosition): boolean {\n\t\treturn position.overlayX === 'center' || position.overlayY === 'center';\n\t}\n\n\tstatic getPositionAlign(\n\t\tposition: ConnectedPosition,\n\t): NgDocHorizontalAlign | NgDocVerticalAlign | null {\n\t\tif (NgDocOverlayUtils.isVerticalPosition(position)) {\n\t\t\treturn position.overlayX === 'start' ? 'left' : position.overlayX === 'end' ? 'right' : null;\n\t\t} else {\n\t\t\treturn position.originY === 'top' ? 'top' : position.originY === 'bottom' ? 'bottom' : null;\n\t\t}\n\t}\n\n\tstatic getRelativePosition(pos: NgDocOverlayPosition): NgDocOverlayRelativePosition | null {\n\t\tconst position: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(pos);\n\t\tif (position.originY === 'bottom' && position.overlayY === 'top') {\n\t\t\treturn 'bottom';\n\t\t}\n\t\tif (position.originY === 'top' && position.overlayY === 'bottom') {\n\t\t\treturn 'top';\n\t\t}\n\t\tif (position.originX === 'start' && position.overlayX === 'end') {\n\t\t\treturn 'left';\n\t\t}\n\t\tif (position.originX === 'end' && position.overlayX === 'start') {\n\t\t\treturn 'right';\n\t\t}\n\t\treturn null;\n\t}\n\n\tstatic getOverlayPosition(positionPair: ConnectionPositionPair): NgDocOverlayPosition {\n\t\tconst existsPosition: NgDocOverlayPosition = Object.keys(POSITION_DESCRIPTION).find(\n\t\t\t(key: string) => {\n\t\t\t\tconst positionDescription: ConnectedPosition = POSITION_DESCRIPTION[key];\n\t\t\t\treturn (\n\t\t\t\t\tpositionPair.originX === positionDescription.originX &&\n\t\t\t\t\tpositionPair.originY === positionDescription.originY &&\n\t\t\t\t\tpositionPair.overlayX === positionDescription.overlayX &&\n\t\t\t\t\tpositionPair.overlayY === positionDescription.overlayY\n\t\t\t\t);\n\t\t\t},\n\t\t) as NgDocOverlayPosition;\n\t\treturn existsPosition ? existsPosition : positionPair;\n\t}\n}\n","import { Point } from '@angular/cdk/drag-drop';\n\nexport class NgDocPositionUtils {\n\t/**\n\t * Getting the position of the element relative to the viewPort, this function is faster than BoundingClientRect,\n\t * it also takes into account the change in the position of the element through transform\n\t * @param element\n\t */\n\tstatic getElementPosition(element: HTMLElement | null): Point {\n\t\tlet xPos: number = 0;\n\t\tlet yPos: number = 0;\n\n\t\twhile (element) {\n\t\t\tif (element === document.body) {\n\t\t\t\tconst documentElement: HTMLElement = document.documentElement;\n\t\t\t\txPos +=\n\t\t\t\t\tdocumentElement.offsetLeft - documentElement.scrollLeft + documentElement.clientLeft;\n\t\t\t\tyPos += documentElement.offsetTop - documentElement.scrollTop + documentElement.clientTop;\n\t\t\t\telement = null;\n\t\t\t} else {\n\t\t\t\tconst elementMatrix: DOMMatrix = new DOMMatrix(element.style.transform);\n\t\t\t\txPos += element.offsetLeft - element.scrollLeft + element.clientLeft + elementMatrix.m41;\n\t\t\t\tyPos += element.offsetTop - element.scrollTop + element.clientTop + elementMatrix.m42;\n\t\t\t\telement = NgDocPositionUtils.getOffsetParent(element) as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn { x: xPos, y: yPos };\n\t}\n\n\t/**\n\t * An implementation of the element.offsetParent function, this implementation closes a bug in Firefox when it\n\t * returns an offsetParent for elements with position: fixed\n\t * @param element\n\t */\n\tstatic getOffsetParent(element: HTMLElement): HTMLElement | null {\n\t\tconst computerStyles: CSSStyleDeclaration = getComputedStyle(element);\n\t\tif (computerStyles.position === 'fixed' || computerStyles.display === 'none') {\n\t\t\treturn null;\n\t\t}\n\t\treturn element.offsetParent as HTMLElement;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;M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S,GAAG,eAAe,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;gBAC1F,OAAO,GAAG,IAAI,CAAC;aACf;iBAAM;gBACN,MAAM,aAAa,GAAc,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACxE,gBAAA,IAAI,IAAI,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC;AACzF,gBAAA,IAAI,IAAI,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC;AACtF,gBAAA,OAAO,GAAG,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAgB,CAAC;aACrE;SACD;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;KAC5B;AAED;;;;AAIG;IACH,OAAO,eAAe,CAAC,OAAoB,EAAA;AAC1C,QAAA,MAAM,cAAc,GAAwB,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACtE,QAAA,IAAI,cAAc,CAAC,QAAQ,KAAK,OAAO,IAAI,cAAc,CAAC,OAAO,KAAK,MAAM,EAAE;AAC7E,YAAA,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,OAAO,CAAC,YAA2B,CAAC;KAC3C;AACD;;ACzCD;;AAEG;;;;"}
|
package/observables/zone.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { MonoTypeOperatorFunction } from 'rxjs';
|
|
|
4
4
|
*
|
|
5
5
|
* @param ngZone
|
|
6
6
|
*/
|
|
7
|
-
export declare function ngDocZoneAttach<T>(ngZone
|
|
7
|
+
export declare function ngDocZoneAttach<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T>;
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param ngZone
|
|
11
11
|
*/
|
|
12
|
-
export declare function ngDocZoneDetach<T>(ngZone
|
|
12
|
+
export declare function ngDocZoneDetach<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T>;
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @param ngZone
|
|
16
16
|
*/
|
|
17
|
-
export declare function ngDocZoneOptimize<T>(ngZone
|
|
17
|
+
export declare function ngDocZoneOptimize<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T>;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/ui-kit",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": ">=
|
|
6
|
-
"@angular/core": ">=
|
|
7
|
-
"@angular/cdk": ">=
|
|
8
|
-
"@ngneat/until-destroy": "
|
|
5
|
+
"@angular/common": ">=18.1.0",
|
|
6
|
+
"@angular/core": ">=18.1.0",
|
|
7
|
+
"@angular/cdk": ">=18.1.0",
|
|
8
|
+
"@ngneat/until-destroy": "^10.0.0",
|
|
9
9
|
"di-controls": "2.1.0",
|
|
10
|
-
"@tinkoff/ng-polymorpheus": "4.0
|
|
10
|
+
"@tinkoff/ng-polymorpheus": "4.3.0",
|
|
11
11
|
"rxjs": "^7.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.6.2",
|
|
15
|
-
"@ng-doc/core": "18.0.
|
|
15
|
+
"@ng-doc/core": "18.0.1"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
@@ -197,6 +197,12 @@
|
|
|
197
197
|
"esm": "./esm2022/components/button-icon/ng-doc-ui-kit-components-button-icon.mjs",
|
|
198
198
|
"default": "./fesm2022/ng-doc-ui-kit-components-button-icon.mjs"
|
|
199
199
|
},
|
|
200
|
+
"./components/button-toggle": {
|
|
201
|
+
"types": "./components/button-toggle/index.d.ts",
|
|
202
|
+
"esm2022": "./esm2022/components/button-toggle/ng-doc-ui-kit-components-button-toggle.mjs",
|
|
203
|
+
"esm": "./esm2022/components/button-toggle/ng-doc-ui-kit-components-button-toggle.mjs",
|
|
204
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-button-toggle.mjs"
|
|
205
|
+
},
|
|
200
206
|
"./components/checkbox": {
|
|
201
207
|
"types": "./components/checkbox/index.d.ts",
|
|
202
208
|
"esm2022": "./esm2022/components/checkbox/ng-doc-ui-kit-components-checkbox.mjs",
|
|
@@ -299,6 +305,18 @@
|
|
|
299
305
|
"esm": "./esm2022/components/list/ng-doc-ui-kit-components-list.mjs",
|
|
300
306
|
"default": "./fesm2022/ng-doc-ui-kit-components-list.mjs"
|
|
301
307
|
},
|
|
308
|
+
"./components/magnifier": {
|
|
309
|
+
"types": "./components/magnifier/index.d.ts",
|
|
310
|
+
"esm2022": "./esm2022/components/magnifier/ng-doc-ui-kit-components-magnifier.mjs",
|
|
311
|
+
"esm": "./esm2022/components/magnifier/ng-doc-ui-kit-components-magnifier.mjs",
|
|
312
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-magnifier.mjs"
|
|
313
|
+
},
|
|
314
|
+
"./components/magnifier-controller": {
|
|
315
|
+
"types": "./components/magnifier-controller/index.d.ts",
|
|
316
|
+
"esm2022": "./esm2022/components/magnifier-controller/ng-doc-ui-kit-components-magnifier-controller.mjs",
|
|
317
|
+
"esm": "./esm2022/components/magnifier-controller/ng-doc-ui-kit-components-magnifier-controller.mjs",
|
|
318
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-magnifier-controller.mjs"
|
|
319
|
+
},
|
|
302
320
|
"./components/option": {
|
|
303
321
|
"types": "./components/option/index.d.ts",
|
|
304
322
|
"esm2022": "./esm2022/components/option/ng-doc-ui-kit-components-option.mjs",
|
|
@@ -359,6 +377,12 @@
|
|
|
359
377
|
"esm": "./esm2022/components/tab-group/ng-doc-ui-kit-components-tab-group.mjs",
|
|
360
378
|
"default": "./fesm2022/ng-doc-ui-kit-components-tab-group.mjs"
|
|
361
379
|
},
|
|
380
|
+
"./components/tab-routes-group": {
|
|
381
|
+
"types": "./components/tab-routes-group/index.d.ts",
|
|
382
|
+
"esm2022": "./esm2022/components/tab-routes-group/ng-doc-ui-kit-components-tab-routes-group.mjs",
|
|
383
|
+
"esm": "./esm2022/components/tab-routes-group/ng-doc-ui-kit-components-tab-routes-group.mjs",
|
|
384
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs"
|
|
385
|
+
},
|
|
362
386
|
"./components/tag": {
|
|
363
387
|
"types": "./components/tag/index.d.ts",
|
|
364
388
|
"esm2022": "./esm2022/components/tag/ng-doc-ui-kit-components-tag.mjs",
|
|
@@ -455,11 +479,11 @@
|
|
|
455
479
|
"esm": "./esm2022/directives/let/ng-doc-ui-kit-directives-let.mjs",
|
|
456
480
|
"default": "./fesm2022/ng-doc-ui-kit-directives-let.mjs"
|
|
457
481
|
},
|
|
458
|
-
"./directives/
|
|
459
|
-
"types": "./directives/
|
|
460
|
-
"esm2022": "./esm2022/directives/
|
|
461
|
-
"esm": "./esm2022/directives/
|
|
462
|
-
"default": "./fesm2022/ng-doc-ui-kit-directives-
|
|
482
|
+
"./directives/radio-group": {
|
|
483
|
+
"types": "./directives/radio-group/index.d.ts",
|
|
484
|
+
"esm2022": "./esm2022/directives/radio-group/ng-doc-ui-kit-directives-radio-group.mjs",
|
|
485
|
+
"esm": "./esm2022/directives/radio-group/ng-doc-ui-kit-directives-radio-group.mjs",
|
|
486
|
+
"default": "./fesm2022/ng-doc-ui-kit-directives-radio-group.mjs"
|
|
463
487
|
},
|
|
464
488
|
"./directives/rotator": {
|
|
465
489
|
"types": "./directives/rotator/index.d.ts",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
1
3
|
import { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';
|
|
2
4
|
import { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';
|
|
3
5
|
import { NgDocContent } from '@ng-doc/ui-kit/types';
|
|
4
6
|
import { NgDocDialogConfig } from './dialog.config';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
export declare const NG_DOC_DIALOG_DATA: InjectionToken<unknown>;
|
|
6
9
|
export declare class NgDocDialogService {
|
|
7
10
|
protected overlayService: NgDocOverlayService;
|
|
8
11
|
open<R = unknown>(content: NgDocContent, config?: NgDocDialogConfig): NgDocOverlayRef<R>;
|
|
12
|
+
positionStrategy(): GlobalPositionStrategy;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocDialogService, never>;
|
|
10
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgDocDialogService>;
|
|
11
15
|
}
|
package/styles/main.css
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@import '@angular/cdk/overlay-prebuilt.css';
|
|
2
|
-
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700;1,800;1,900&family=Nunito:ital,wght@0,700;0,800;0,900;1,700;1,800;1,900&display=swap");
|
|
3
|
-
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;500;600&display=swap");
|
|
4
2
|
:root {
|
|
5
3
|
--ng-doc-base-gutter: 8px;
|
|
6
4
|
--ng-doc-transition: 0.2s;
|
|
7
5
|
--ng-doc-text-selection: rgba(21, 88, 214, 0.15);
|
|
8
6
|
--ng-doc-white: #fff;
|
|
9
7
|
--ng-doc-black: #000;
|
|
8
|
+
--ng-doc-base-rgb: 0 0 0;
|
|
10
9
|
--ng-doc-base-0: var(--ng-doc-white);
|
|
11
10
|
--ng-doc-base-1: #f6f6f6;
|
|
12
11
|
--ng-doc-base-2: #ebebeb;
|
|
@@ -26,22 +25,30 @@
|
|
|
26
25
|
--ng-doc-warning-text: var(--ng-doc-white);
|
|
27
26
|
--ng-doc-info: #3f68b5;
|
|
28
27
|
--ng-doc-info-text: var(--ng-doc-white);
|
|
28
|
+
--ng-doc-success: #00b74a;
|
|
29
|
+
--ng-doc-success-text: var(--ng-doc-white);
|
|
29
30
|
--ng-doc-background: var(--ng-doc-base-0);
|
|
30
31
|
--ng-doc-hover-background: rgba(110, 110, 110, 0.09);
|
|
31
32
|
--ng-doc-border-size: 1px;
|
|
32
33
|
--ng-doc-border-color: var(--ng-doc-base-3);
|
|
33
34
|
--ng-doc-border-hover-color: var(--ng-doc-base-5);
|
|
34
35
|
--ng-doc-shadow-color: rgba(0, 0, 0, 0.15);
|
|
35
|
-
--ng-doc-
|
|
36
|
-
|
|
36
|
+
--ng-doc-font-system: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
37
|
+
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
38
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
39
|
+
--ng-doc-font-system-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
40
|
+
"Liberation Mono", "Courier New", monospace;
|
|
41
|
+
--ng-doc-heading-font-family: var(--ng-doc-font-system);
|
|
42
|
+
--ng-doc-heading-color: #111111;
|
|
43
|
+
--ng-doc-font-family: var(--ng-doc-font-system);
|
|
37
44
|
--ng-doc-font-size: calc(var(--ng-doc-base-gutter) * 2);
|
|
38
45
|
--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 3);
|
|
39
|
-
--ng-doc-font-weight:
|
|
40
|
-
--ng-doc-code-font:
|
|
46
|
+
--ng-doc-font-weight: 400;
|
|
47
|
+
--ng-doc-code-font: var(--ng-doc-font-system-mono);
|
|
41
48
|
--ng-doc-code-font-size: 14px;
|
|
42
49
|
--ng-doc-code-line-height: 20px;
|
|
43
|
-
--ng-doc-code-font-weight:
|
|
44
|
-
--ng-doc-text:
|
|
50
|
+
--ng-doc-code-font-weight: 400;
|
|
51
|
+
--ng-doc-text: rgb(78 78 78);
|
|
45
52
|
--ng-doc-text-muted: var(--ng-doc-base-8);
|
|
46
53
|
--ng-doc-mark-background: rgba(255, 222, 0, 0.3);
|
|
47
54
|
--ng-doc-link-color: var(--ng-doc-primary);
|
|
@@ -50,9 +57,9 @@
|
|
|
50
57
|
--ng-doc-button-background: trasparent;
|
|
51
58
|
--ng-doc-button-background-opacity: 0;
|
|
52
59
|
--ng-doc-button-color: var(--ng-doc-text);
|
|
53
|
-
--ng-doc-button-hover-background: var(--ng-doc-base-
|
|
60
|
+
--ng-doc-button-hover-background: var(--ng-doc-base-2);
|
|
54
61
|
--ng-doc-button-hover-color: var(--ng-doc-button-color);
|
|
55
|
-
--ng-doc-button-active-background: var(--ng-doc-base-
|
|
62
|
+
--ng-doc-button-active-background: var(--ng-doc-base-3);
|
|
56
63
|
--ng-doc-button-active-color: var(--ng-doc-button-hover-color);
|
|
57
64
|
--ng-doc-floated-border-color: transparent;
|
|
58
65
|
--ng-doc-floated-border: 2px solid var(--ng-doc-floated-border-color);
|
|
@@ -70,14 +77,12 @@
|
|
|
70
77
|
--ng-doc-input-border: var(--ng-doc-border-size) solid var(--ng-doc-border-color);
|
|
71
78
|
--ng-doc-input-border-hover: var(--ng-doc-border-size) solid var(--ng-doc-border-hover-color);
|
|
72
79
|
--ng-doc-input-background-color: var(--ng-doc-base-0);
|
|
73
|
-
--ng-doc-input-padding-left: calc(var(--ng-doc-base-gutter) * 2);
|
|
74
|
-
--ng-doc-input-padding-right: calc(var(--ng-doc-base-gutter) * 2);
|
|
75
80
|
--ng-doc-input-cursor: auto;
|
|
76
81
|
/* NgDocTagComponent */
|
|
77
82
|
--ng-doc-tag-background: var(--ng-doc-primary);
|
|
78
83
|
--ng-doc-tag-color: var(--ng-doc-primary-text);
|
|
79
84
|
/* NgDocSelection */
|
|
80
|
-
--ng-doc-selection-border:
|
|
85
|
+
--ng-doc-selection-border: 2px solid var(--ng-doc-primary);
|
|
81
86
|
--ng-doc-selection-background: transparent;
|
|
82
87
|
/* NgDocDot */
|
|
83
88
|
--ng-doc-dot-size: calc(var(--ng-doc-base-gutter) / 2);
|
|
@@ -135,3 +140,7 @@
|
|
|
135
140
|
.ng-doc-dialog {
|
|
136
141
|
background: var(--ng-doc-background);
|
|
137
142
|
}
|
|
143
|
+
|
|
144
|
+
.ng-doc-transparent-dialog {
|
|
145
|
+
background: transparent;
|
|
146
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type NgDocBlockquoteType = 'note' | 'warning' | 'default';
|
|
1
|
+
export type NgDocBlockquoteType = 'note' | 'warning' | 'default' | 'alert' | 'success';
|
package/types/color.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type NgDocColor = 'primary' | 'warning' | 'info' | 'alert' | 'link';
|
|
1
|
+
export type NgDocColor = 'primary' | 'warning' | 'info' | 'alert' | 'link' | 'success';
|
package/types/content.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Injector,
|
|
1
|
+
import { Injector, TemplateRef, Type } from '@angular/core';
|
|
2
2
|
import { PolymorpheusComponent, PolymorpheusHandler, PolymorpheusTemplate } from '@tinkoff/ng-polymorpheus';
|
|
3
3
|
export type NgDocContent<C extends object = {}> = string | number | null | undefined | TemplateRef<C> | PolymorpheusTemplate<C> | PolymorpheusHandler<C> | NgDocComponentContent<object, C>;
|
|
4
4
|
export declare class NgDocComponentContent<T extends object, C extends object = object> extends PolymorpheusComponent<T, C> {
|
|
5
5
|
readonly component: Type<T>;
|
|
6
6
|
readonly injectorRef?: Injector | undefined;
|
|
7
7
|
constructor(component: Type<T>, injectorRef?: Injector | undefined);
|
|
8
|
-
createInjector(injector: Injector,
|
|
8
|
+
createInjector<C>(injector: Injector, useValue?: C): Injector;
|
|
9
9
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './media-query.directive';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
2
|
-
import { OnChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgDocMediaQueryDirective implements OnChanges {
|
|
5
|
-
private readonly templateRef;
|
|
6
|
-
private readonly viewContainerRef;
|
|
7
|
-
private readonly breakpointObserver;
|
|
8
|
-
match: string | string[];
|
|
9
|
-
readonly breakpoints: typeof Breakpoints;
|
|
10
|
-
private readonly unsubscribe$;
|
|
11
|
-
private viewRef?;
|
|
12
|
-
constructor(templateRef: TemplateRef<unknown>, viewContainerRef: ViewContainerRef, breakpointObserver: BreakpointObserver);
|
|
13
|
-
ngOnChanges(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocMediaQueryDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocMediaQueryDirective, "[ngDocMediaQuery]", ["ngDocMediaQuery"], { "match": { "alias": "ngDocMediaQuery"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './media-query.directive';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpLWtpdC9kaXJlY3RpdmVzL21lZGlhLXF1ZXJ5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21lZGlhLXF1ZXJ5LmRpcmVjdGl2ZSc7XG4iXX0=
|