@ng-doc/ui-kit 16.17.0 → 16.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdk/combobox-host/combobox-host.component.d.ts +6 -7
- package/classes/base-input/base-input.d.ts +8 -5
- package/classes/input-host/input-host.d.ts +2 -2
- package/classes/overlay-ref/overlay-ref.d.ts +0 -1
- package/components/button/button.component.d.ts +1 -2
- package/components/checkbox/checkbox.component.d.ts +4 -6
- package/components/clear-control/clear-control.component.d.ts +6 -9
- package/components/combobox/combobox.component.d.ts +4 -5
- package/components/input-wrapper/input-wrapper.component.d.ts +3 -5
- package/components/list/list.component.d.ts +3 -3
- package/components/option/option.component.d.ts +7 -10
- package/components/toggle/toggle.component.d.ts +5 -10
- package/directives/input-number/input-number.directive.d.ts +1 -4
- package/directives/input-string/input-string.directive.d.ts +1 -4
- package/esm2022/cdk/combobox-host/combobox-host.component.mjs +30 -43
- package/esm2022/classes/base-input/base-input.mjs +19 -12
- package/esm2022/classes/input-host/input-host.mjs +1 -1
- package/esm2022/classes/list-item/list-item.mjs +2 -1
- package/esm2022/classes/overlay-host/overlay-host.mjs +2 -1
- package/esm2022/classes/overlay-ref/overlay-ref.mjs +1 -2
- package/esm2022/components/blockquote/blockquote.component.mjs +5 -6
- package/esm2022/components/button/button.component.mjs +5 -9
- package/esm2022/components/button-icon/button-icon.component.mjs +5 -6
- package/esm2022/components/checkbox/checkbox.component.mjs +14 -25
- package/esm2022/components/clear-control/clear-control.component.mjs +18 -30
- package/esm2022/components/combobox/combobox.component.mjs +13 -15
- package/esm2022/components/data-list/data-list.component.mjs +5 -6
- package/esm2022/components/data-list-group/data-list-group.component.mjs +5 -6
- package/esm2022/components/dialog-outlet/dialog-outlet.component.mjs +4 -4
- package/esm2022/components/dot/dot.component.mjs +5 -6
- package/esm2022/components/dropdown/dropdown.component.mjs +6 -6
- package/esm2022/components/expander/expander.component.mjs +5 -6
- package/esm2022/components/floated-border/floated-border.component.mjs +5 -6
- package/esm2022/components/floated-content/floated-content.component.mjs +6 -7
- package/esm2022/components/focus-control/focus-control.component.mjs +7 -8
- package/esm2022/components/icon/icon.component.mjs +6 -7
- package/esm2022/components/input-wrapper/input-wrapper.component.mjs +13 -23
- package/esm2022/components/label/label.component.mjs +5 -6
- package/esm2022/components/line/line.component.mjs +5 -6
- package/esm2022/components/list/list.component.mjs +6 -6
- package/esm2022/components/option/option.component.mjs +19 -33
- package/esm2022/components/option-group/option-group.component.mjs +9 -10
- package/esm2022/components/overlay-container/overlay-container.component.mjs +7 -8
- package/esm2022/components/overlay-pointer/overlay-pointer.component.mjs +5 -6
- package/esm2022/components/pane/pane.component.mjs +14 -16
- package/esm2022/components/selection/selection-host.directive.mjs +5 -6
- package/esm2022/components/selection/selection-origin.directive.mjs +6 -7
- package/esm2022/components/selection/selection.component.mjs +5 -5
- package/esm2022/components/sidenav/sidenav.component.mjs +5 -6
- package/esm2022/components/smooth-resize/smooth-resize.component.mjs +6 -7
- package/esm2022/components/spinner/spinner.component.mjs +5 -6
- package/esm2022/components/tab-group/tab/tab.component.mjs +5 -6
- package/esm2022/components/tab-group/tab-group.component.mjs +5 -5
- package/esm2022/components/tag/tag.component.mjs +5 -6
- package/esm2022/components/text/text-left.directive.mjs +5 -6
- package/esm2022/components/text/text-right.directive.mjs +5 -6
- package/esm2022/components/text/text.component.mjs +6 -7
- package/esm2022/components/toggle/toggle.component.mjs +18 -34
- package/esm2022/components/wrapper/wrapper.component.mjs +5 -6
- package/esm2022/directives/autofocus/autofocus.directive.mjs +6 -7
- package/esm2022/directives/checked-change/checked-change.directive.mjs +6 -7
- package/esm2022/directives/data/data.directive.mjs +6 -7
- package/esm2022/directives/dropdown-handler/dropdown-handler.directive.mjs +5 -6
- package/esm2022/directives/dropdown-origin/dropdown-origin.directive.mjs +6 -7
- package/esm2022/directives/event-switcher/event-switcher.directive.mjs +5 -5
- package/esm2022/directives/focus-catcher/focus-catcher.directive.mjs +7 -6
- package/esm2022/directives/focusable/focusable.directive.mjs +5 -6
- package/esm2022/directives/hotkey/hotkey.directive.mjs +5 -5
- package/esm2022/directives/input-number/input-number.directive.mjs +17 -18
- package/esm2022/directives/input-string/input-string.directive.mjs +17 -18
- package/esm2022/directives/let/let.directive.mjs +6 -7
- package/esm2022/directives/media-query/media-query.directive.mjs +5 -5
- package/esm2022/directives/rotator/rotator.directive.mjs +6 -7
- package/esm2022/directives/tooltip/tooltip.directive.mjs +5 -5
- package/esm2022/interceptors/cache.interceptor.mjs +5 -6
- package/esm2022/pipes/as-array/as-array.pipe.mjs +5 -6
- package/esm2022/pipes/bind/bind.pipe.mjs +5 -6
- package/esm2022/pipes/execute/execute.pipe.mjs +5 -6
- package/esm2022/pipes/highlighter/highlighter.pipe.mjs +5 -6
- package/esm2022/providers/ng-doc-ui-kit-config/provide-ng-doc-ui-kit-config.mjs +1 -2
- package/esm2022/services/dialog/dialog.service.mjs +5 -6
- package/esm2022/services/notify/notify.service.mjs +5 -5
- package/esm2022/services/overlay/overlay.service.mjs +7 -8
- package/esm2022/services/overlay-strategy/overlay-strategy.mjs +7 -8
- package/esm2022/services/scroll/scroll.service.mjs +7 -8
- package/esm2022/utils/position-utils.mjs +1 -3
- package/fesm2022/ng-doc-ui-kit-animations.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs +30 -43
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs +18 -10
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-input-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-list-item.mjs +1 -0
- package/fesm2022/ng-doc-ui-kit-classes-list-item.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-overlay-host.mjs +1 -0
- package/fesm2022/ng-doc-ui-kit-classes-overlay-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs +0 -1
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-button.mjs +3 -6
- package/fesm2022/ng-doc-ui-kit-components-button.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs +13 -23
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs +18 -30
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-combobox.mjs +11 -12
- 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 +4 -4
- package/fesm2022/ng-doc-ui-kit-components-data-list.mjs.map +1 -1
- 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-dot.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-expander.mjs +3 -3
- 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-border.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs +13 -23
- 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-label.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-line.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-line.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-list.mjs +8 -8
- package/fesm2022/ng-doc-ui-kit-components-list.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs +8 -8
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option.mjs +19 -31
- package/fesm2022/ng-doc-ui-kit-components-option.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs +5 -5
- 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-overlay-pointer.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs +13 -13
- 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 +4 -4
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs +5 -5
- 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-spinner.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs +8 -8
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tag.mjs +3 -3
- 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 +19 -35
- 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-wrapper.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-data.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-data.mjs.map +1 -1
- 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 +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-origin.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs +8 -7
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focusable.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-focusable.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs +17 -18
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs +17 -18
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-let.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-let.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-media-query.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-directives-media-query.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs +4 -4
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs +7 -7
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.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 +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-as-array.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-as-array.mjs.map +1 -1
- 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-execute.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-providers-ng-doc-ui-kit-config.mjs +0 -1
- package/fesm2022/ng-doc-ui-kit-providers-ng-doc-ui-kit-config.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs +5 -5
- 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 +5 -5
- package/fesm2022/ng-doc-ui-kit-services-scroll.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-utils.mjs +0 -2
- package/fesm2022/ng-doc-ui-kit-utils.mjs.map +1 -1
- package/package.json +24 -24
- package/providers/ng-doc-ui-kit-config/provide-ng-doc-ui-kit-config.d.ts +0 -1
- package/services/overlay-strategy/overlay-strategy.d.ts +2 -2
- package/utils/position-utils.d.ts +0 -2
|
@@ -8,15 +8,15 @@ class NgDocDropdownOriginDirective extends CdkOverlayOrigin {
|
|
|
8
8
|
super(origin);
|
|
9
9
|
this.origin = origin;
|
|
10
10
|
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocDropdownOriginDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocDropdownOriginDirective, isStandalone: true, selector: "[ngDocDropdownOrigin]", providers: [
|
|
13
13
|
{
|
|
14
14
|
provide: NgDocOverlayHost,
|
|
15
15
|
useExisting: NgDocDropdownOriginDirective,
|
|
16
16
|
},
|
|
17
17
|
], exportAs: ["ngDocDropdownOrigin"], usesInheritance: true, ngImport: i0 }); }
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocDropdownOriginDirective, decorators: [{
|
|
20
20
|
type: Directive,
|
|
21
21
|
args: [{
|
|
22
22
|
selector: '[ngDocDropdownOrigin]',
|
|
@@ -29,7 +29,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
29
29
|
],
|
|
30
30
|
standalone: true,
|
|
31
31
|
}]
|
|
32
|
-
}], ctorParameters:
|
|
32
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-dropdown-origin.mjs","sources":["../../../../libs/ui-kit/directives/dropdown-origin/dropdown-origin.directive.ts","../../../../libs/ui-kit/directives/dropdown-origin/ng-doc-ui-kit-directives-dropdown-origin.ts"],"sourcesContent":["import { CdkOverlayOrigin } from '@angular/cdk/overlay';\nimport { Directive, ElementRef } from '@angular/core';\nimport { NgDocOverlayHost } from '@ng-doc/ui-kit/classes/overlay-host';\n\n@Directive({\n\tselector: '[ngDocDropdownOrigin]',\n\texportAs: 'ngDocDropdownOrigin',\n\tproviders: [\n\t\t{\n\t\t\tprovide: NgDocOverlayHost,\n\t\t\tuseExisting: NgDocDropdownOriginDirective,\n\t\t},\n\t],\n\tstandalone: true,\n})\nexport class NgDocDropdownOriginDirective extends CdkOverlayOrigin implements NgDocOverlayHost {\n\tconstructor(public origin: ElementRef<HTMLElement>) {\n\t\tsuper(origin);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-dropdown-origin.mjs","sources":["../../../../libs/ui-kit/directives/dropdown-origin/dropdown-origin.directive.ts","../../../../libs/ui-kit/directives/dropdown-origin/ng-doc-ui-kit-directives-dropdown-origin.ts"],"sourcesContent":["import { CdkOverlayOrigin } from '@angular/cdk/overlay';\nimport { Directive, ElementRef } from '@angular/core';\nimport { NgDocOverlayHost } from '@ng-doc/ui-kit/classes/overlay-host';\n\n@Directive({\n\tselector: '[ngDocDropdownOrigin]',\n\texportAs: 'ngDocDropdownOrigin',\n\tproviders: [\n\t\t{\n\t\t\tprovide: NgDocOverlayHost,\n\t\t\tuseExisting: NgDocDropdownOriginDirective,\n\t\t},\n\t],\n\tstandalone: true,\n})\nexport class NgDocDropdownOriginDirective extends CdkOverlayOrigin implements NgDocOverlayHost {\n\tconstructor(public origin: ElementRef<HTMLElement>) {\n\t\tsuper(origin);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAeM,MAAO,4BAA6B,SAAQ,gBAAgB,CAAA;AACjE,IAAA,WAAA,CAAmB,MAA+B,EAAA;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QADI,IAAM,CAAA,MAAA,GAAN,MAAM,CAAyB;KAEjD;8GAHW,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAR7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,gBAAgB;AACzB,gBAAA,WAAW,EAAE,4BAA4B;AACzC,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAGW,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAXxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,gBAAgB;AACzB,4BAAA,WAAW,EAA8B,4BAAA;AACzC,yBAAA;AACD,qBAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __metadata, __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { ElementRef, NgZone, Directive, Input } from '@angular/core';
|
|
4
4
|
import { asArray } from '@ng-doc/core/helpers/as-array';
|
|
5
5
|
import { toElement } from '@ng-doc/ui-kit/helpers';
|
|
6
6
|
import { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';
|
|
7
7
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
8
|
-
import {
|
|
8
|
+
import { fromEvent, merge } from 'rxjs';
|
|
9
9
|
|
|
10
10
|
let NgDocEventSwitcherDirective = class NgDocEventSwitcherDirective {
|
|
11
11
|
constructor(elementRef, ngZone) {
|
|
@@ -28,20 +28,20 @@ let NgDocEventSwitcherDirective = class NgDocEventSwitcherDirective {
|
|
|
28
28
|
const eventConstructor = from.constructor;
|
|
29
29
|
target.dispatchEvent(new eventConstructor(from.type, from));
|
|
30
30
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocEventSwitcherDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocEventSwitcherDirective, isStandalone: true, selector: "[ngDocEventSwitcher]", inputs: { switchTo: ["ngDocEventSwitcher", "switchTo"], events: "events" }, ngImport: i0 }); }
|
|
33
33
|
};
|
|
34
34
|
NgDocEventSwitcherDirective = __decorate([
|
|
35
35
|
UntilDestroy(),
|
|
36
36
|
__metadata("design:paramtypes", [ElementRef, NgZone])
|
|
37
37
|
], NgDocEventSwitcherDirective);
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocEventSwitcherDirective, decorators: [{
|
|
39
39
|
type: Directive,
|
|
40
40
|
args: [{
|
|
41
41
|
selector: '[ngDocEventSwitcher]',
|
|
42
42
|
standalone: true,
|
|
43
43
|
}]
|
|
44
|
-
}], ctorParameters:
|
|
44
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { switchTo: [{
|
|
45
45
|
type: Input,
|
|
46
46
|
args: ['ngDocEventSwitcher']
|
|
47
47
|
}], events: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-event-switcher.mjs","sources":["../../../../libs/ui-kit/directives/event-switcher/event-switcher.directive.ts","../../../../libs/ui-kit/directives/event-switcher/ng-doc-ui-kit-directives-event-switcher.ts"],"sourcesContent":["import { Directive, ElementRef, Input, NgZone, OnInit } from '@angular/core';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { Constructor } from '@ng-doc/core/types';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { BaseElement } from '@ng-doc/ui-kit/types';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { fromEvent, merge } from 'rxjs';\n\n@Directive({\n\tselector: '[ngDocEventSwitcher]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocEventSwitcherDirective implements OnInit {\n\t@Input('ngDocEventSwitcher')\n\tswitchTo: BaseElement<HTMLElement> | null = null;\n\n\t@Input()\n\tevents: string | string[] = [];\n\n\tconstructor(private elementRef: ElementRef<HTMLElement>, private ngZone: NgZone) {}\n\n\tngOnInit(): void {\n\t\tmerge(\n\t\t\t...asArray(this.events).map((eventName: string) =>\n\t\t\t\tfromEvent(this.elementRef.nativeElement, eventName),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(ngDocZoneDetach(this.ngZone), untilDestroyed(this))\n\t\t\t.subscribe((event: Event) => {\n\t\t\t\tif (this.switchTo && !event.defaultPrevented && event.bubbles) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tthis.makeEvent(event, toElement(this.switchTo));\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tprivate makeEvent(from: Event, target: Element): void {\n\t\tconst eventConstructor: Constructor<Event> = from.constructor as Constructor<Event>;\n\t\ttarget.dispatchEvent(new eventConstructor(from.type, from));\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAca,IAAA,2BAA2B,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-event-switcher.mjs","sources":["../../../../libs/ui-kit/directives/event-switcher/event-switcher.directive.ts","../../../../libs/ui-kit/directives/event-switcher/ng-doc-ui-kit-directives-event-switcher.ts"],"sourcesContent":["import { Directive, ElementRef, Input, NgZone, OnInit } from '@angular/core';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { Constructor } from '@ng-doc/core/types';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { BaseElement } from '@ng-doc/ui-kit/types';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { fromEvent, merge } from 'rxjs';\n\n@Directive({\n\tselector: '[ngDocEventSwitcher]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocEventSwitcherDirective implements OnInit {\n\t@Input('ngDocEventSwitcher')\n\tswitchTo: BaseElement<HTMLElement> | null = null;\n\n\t@Input()\n\tevents: string | string[] = [];\n\n\tconstructor(private elementRef: ElementRef<HTMLElement>, private ngZone: NgZone) {}\n\n\tngOnInit(): void {\n\t\tmerge(\n\t\t\t...asArray(this.events).map((eventName: string) =>\n\t\t\t\tfromEvent(this.elementRef.nativeElement, eventName),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(ngDocZoneDetach(this.ngZone), untilDestroyed(this))\n\t\t\t.subscribe((event: Event) => {\n\t\t\t\tif (this.switchTo && !event.defaultPrevented && event.bubbles) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tthis.makeEvent(event, toElement(this.switchTo));\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tprivate makeEvent(from: Event, target: Element): void {\n\t\tconst eventConstructor: Constructor<Event> = from.constructor as Constructor<Event>;\n\t\ttarget.dispatchEvent(new event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EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,oBAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;AAA3B,2BAA2B,GAAA,UAAA,CAAA;AADvC,IAAA,YAAY,EAAE;AAQkB,IAAA,UAAA,CAAA,mBAAA,EAAA,CAAA,UAAU,EAA+B,MAAM,CAAA,CAAA;AAPnE,CAAA,EAAA,2BAA2B,CA4BvC,CAAA;2FA5BY,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;oGAIA,QAAQ,EAAA,CAAA;sBADP,KAAK;uBAAC,oBAAoB,CAAA;gBAI3B,MAAM,EAAA,CAAA;sBADL,KAAK;;;AClBP;;AAEG;;;;"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __metadata, __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, ElementRef, NgZone, ChangeDetectorRef, Directive, Output, HostBinding } from '@angular/core';
|
|
4
4
|
import { FOCUS_EVENT, BLUR_EVENT } from '@ng-doc/ui-kit/constants';
|
|
5
5
|
import { toElement } from '@ng-doc/ui-kit/helpers';
|
|
6
6
|
import { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';
|
|
7
7
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
8
|
-
import {
|
|
8
|
+
import { fromEvent, merge } from 'rxjs';
|
|
9
9
|
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
10
10
|
|
|
11
11
|
var NgDocFocusCatcherDirective_1;
|
|
12
|
-
let NgDocFocusCatcherDirective =
|
|
12
|
+
let NgDocFocusCatcherDirective = class NgDocFocusCatcherDirective {
|
|
13
|
+
static { NgDocFocusCatcherDirective_1 = this; }
|
|
13
14
|
constructor(elementRef, ngZone, changeDetectorRef) {
|
|
14
15
|
this.elementRef = elementRef;
|
|
15
16
|
this.ngZone = ngZone;
|
|
@@ -28,8 +29,8 @@ let NgDocFocusCatcherDirective = NgDocFocusCatcherDirective_1 = class NgDocFocus
|
|
|
28
29
|
static observeFocus(element) {
|
|
29
30
|
return merge(fromEvent(element, FOCUS_EVENT), fromEvent(element, BLUR_EVENT)).pipe(debounceTime(0), distinctUntilChanged((a, b) => a.type === b.type));
|
|
30
31
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocFocusCatcherDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocFocusCatcherDirective, isStandalone: true, selector: "[ngDocFocusCatcher]", outputs: { focusEvent: "focusEvent", blurEvent: "blurEvent" }, host: { properties: { "attr.data-ng-doc-focused": "this.focused" } }, exportAs: ["ngDocFocusCatcher"], ngImport: i0 }); }
|
|
33
34
|
};
|
|
34
35
|
NgDocFocusCatcherDirective = NgDocFocusCatcherDirective_1 = __decorate([
|
|
35
36
|
UntilDestroy(),
|
|
@@ -37,14 +38,14 @@ NgDocFocusCatcherDirective = NgDocFocusCatcherDirective_1 = __decorate([
|
|
|
37
38
|
NgZone,
|
|
38
39
|
ChangeDetectorRef])
|
|
39
40
|
], NgDocFocusCatcherDirective);
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocFocusCatcherDirective, decorators: [{
|
|
41
42
|
type: Directive,
|
|
42
43
|
args: [{
|
|
43
44
|
selector: '[ngDocFocusCatcher]',
|
|
44
45
|
exportAs: 'ngDocFocusCatcher',
|
|
45
46
|
standalone: true,
|
|
46
47
|
}]
|
|
47
|
-
}], ctorParameters:
|
|
48
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { focusEvent: [{
|
|
48
49
|
type: Output
|
|
49
50
|
}], blurEvent: [{
|
|
50
51
|
type: Output
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-focus-catcher.mjs","sources":["../../../../libs/ui-kit/directives/focus-catcher/focus-catcher.directive.ts","../../../../libs/ui-kit/directives/focus-catcher/ng-doc-ui-kit-directives-focus-catcher.ts"],"sourcesContent":["import {\n\tChangeDetectorRef,\n\tDirective,\n\tElementRef,\n\tEventEmitter,\n\tHostBinding,\n\tNgZone,\n\tOutput,\n} from '@angular/core';\nimport { BLUR_EVENT, FOCUS_EVENT } from '@ng-doc/ui-kit/constants';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { fromEvent, merge, Observable } from 'rxjs';\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocFocusCatcher]',\n\texportAs: 'ngDocFocusCatcher',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocFocusCatcherDirective {\n\t@Output()\n\tfocusEvent: EventEmitter<Event> = new EventEmitter<Event>();\n\n\t@Output()\n\tblurEvent: EventEmitter<Event> = new EventEmitter<Event>();\n\n\t@HostBinding('attr.data-ng-doc-focused')\n\tfocused: boolean = false;\n\n\tconstructor(\n\t\tprivate elementRef: ElementRef<HTMLElement>,\n\t\tprivate ngZone: NgZone,\n\t\tprivate changeDetectorRef: ChangeDetectorRef,\n\t) {\n\t\tNgDocFocusCatcherDirective.observeFocus(toElement(this.elementRef))\n\t\t\t.pipe(ngDocZoneOptimize(this.ngZone), untilDestroyed(this))\n\t\t\t.subscribe((event: FocusEvent) => {\n\t\t\t\tthis.focused = event.type === FOCUS_EVENT;\n\t\t\t\tthis.focused ? this.focusEvent.emit(event) : this.blurEvent.emit(event);\n\t\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t\t});\n\t}\n\n\tstatic observeFocus(element: HTMLElement): Observable<FocusEvent> {\n\t\treturn merge(\n\t\t\tfromEvent<FocusEvent>(element, FOCUS_EVENT),\n\t\t\tfromEvent<FocusEvent>(element, BLUR_EVENT),\n\t\t).pipe(\n\t\t\tdebounceTime(0),\n\t\t\tdistinctUntilChanged((a: FocusEvent, b: FocusEvent) => a.type === b.type),\n\t\t);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsBa,IAAA,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-focus-catcher.mjs","sources":["../../../../libs/ui-kit/directives/focus-catcher/focus-catcher.directive.ts","../../../../libs/ui-kit/directives/focus-catcher/ng-doc-ui-kit-directives-focus-catcher.ts"],"sourcesContent":["import {\n\tChangeDetectorRef,\n\tDirective,\n\tElementRef,\n\tEventEmitter,\n\tHostBinding,\n\tNgZone,\n\tOutput,\n} from '@angular/core';\nimport { BLUR_EVENT, FOCUS_EVENT } from '@ng-doc/ui-kit/constants';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { fromEvent, merge, Observable } from 'rxjs';\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocFocusCatcher]',\n\texportAs: 'ngDocFocusCatcher',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocFocusCatcherDirective {\n\t@Output()\n\tfocusEvent: EventEmitter<Event> = new EventEmitter<Event>();\n\n\t@Output()\n\tblurEvent: EventEmitter<Event> = new EventEmitter<Event>();\n\n\t@HostBinding('attr.data-ng-doc-focused')\n\tfocused: boolean = false;\n\n\tconstructor(\n\t\tprivate elementRef: ElementRef<HTMLElement>,\n\t\tprivate ngZone: NgZone,\n\t\tprivate changeDetectorRef: ChangeDetectorRef,\n\t) {\n\t\tNgDocFocusCatcherDirective.observeFocus(toElement(this.elementRef))\n\t\t\t.pipe(ngDocZoneOptimize(this.ngZone), untilDestroyed(this))\n\t\t\t.subscribe((event: FocusEvent) => {\n\t\t\t\tthis.focused = event.type === FOCUS_EVENT;\n\t\t\t\tthis.focused ? this.focusEvent.emit(event) : this.blurEvent.emit(event);\n\t\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t\t});\n\t}\n\n\tstatic observeFocus(element: HTMLElement): Observable<FocusEvent> {\n\t\treturn merge(\n\t\t\tfromEvent<FocusEvent>(element, FOCUS_EVENT),\n\t\t\tfromEvent<FocusEvent>(element, BLUR_EVENT),\n\t\t).pipe(\n\t\t\tdebounceTime(0),\n\t\t\tdistinctUntilChanged((a: FocusEvent, b: FocusEvent) => a.type === b.type),\n\t\t);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsBa,IAAA,0BAA0B,GAAh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", version: "
|
|
12
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocFocusableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocFocusableDirective, isStandalone: true, selector: "[ngDocFocusable]", inputs: { focusable: ["ngDocFocusable", "focusable"] }, host: { properties: { "attr.tabIndex": "this.tabIndex" } }, exportAs: ["ngDocFocusable"], ngImport: i0 }); }
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocFocusableDirective, decorators: [{
|
|
15
15
|
type: Directive,
|
|
16
16
|
args: [{
|
|
17
17
|
selector: '[ngDocFocusable]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-focusable.mjs","sources":["../../../../libs/ui-kit/directives/focusable/focusable.directive.ts","../../../../libs/ui-kit/directives/focusable/ng-doc-ui-kit-directives-focusable.ts"],"sourcesContent":["import { Directive, HostBinding, Input } from '@angular/core';\n\n@Directive({\n\tselector: '[ngDocFocusable]',\n\texportAs: 'ngDocFocusable',\n\tstandalone: true,\n})\nexport class NgDocFocusableDirective {\n\t@Input('ngDocFocusable')\n\tfocusable: boolean = true;\n\n\t@HostBinding('attr.tabIndex')\n\tget tabIndex(): number {\n\t\treturn this.focusable ? 0 : -1;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-focusable.mjs","sources":["../../../../libs/ui-kit/directives/focusable/focusable.directive.ts","../../../../libs/ui-kit/directives/focusable/ng-doc-ui-kit-directives-focusable.ts"],"sourcesContent":["import { Directive, HostBinding, Input } from '@angular/core';\n\n@Directive({\n\tselector: '[ngDocFocusable]',\n\texportAs: 'ngDocFocusable',\n\tstandalone: true,\n})\nexport class NgDocFocusableDirective {\n\t@Input('ngDocFocusable')\n\tfocusable: boolean = true;\n\n\t@HostBinding('attr.tabIndex')\n\tget tabIndex(): number {\n\t\treturn this.focusable ? 0 : -1;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,uBAAuB,CAAA;AALpC,IAAA,WAAA,GAAA;QAOC,IAAS,CAAA,SAAA,GAAY,IAAI,CAAC;AAM1B,KAAA;AAJA,IAAA,IACI,QAAQ,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/B;8GAPW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,CAAA,gBAAA,EAAA,WAAA,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;8BAGA,SAAS,EAAA,CAAA;sBADR,KAAK;uBAAC,gBAAgB,CAAA;gBAInB,QAAQ,EAAA,CAAA;sBADX,WAAW;uBAAC,eAAe,CAAA;;;ACX7B;;AAEG;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __metadata, __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, NgZone, Directive, Input, Output } from '@angular/core';
|
|
4
4
|
import { isKeyboardEvent } from '@ng-doc/core/helpers/is-keyboard-event';
|
|
@@ -23,20 +23,20 @@ let NgDocHotkeyDirective = class NgDocHotkeyDirective {
|
|
|
23
23
|
this.callback.emit();
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocHotkeyDirective, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
27
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocHotkeyDirective, isStandalone: true, selector: "[ngDocHotkey]", inputs: { hotkey: ["ngDocHotkey", "hotkey"] }, outputs: { callback: "ngDocHotkey" }, ngImport: i0 }); }
|
|
28
28
|
};
|
|
29
29
|
NgDocHotkeyDirective = __decorate([
|
|
30
30
|
UntilDestroy(),
|
|
31
31
|
__metadata("design:paramtypes", [NgZone])
|
|
32
32
|
], NgDocHotkeyDirective);
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocHotkeyDirective, decorators: [{
|
|
34
34
|
type: Directive,
|
|
35
35
|
args: [{
|
|
36
36
|
selector: '[ngDocHotkey]',
|
|
37
37
|
standalone: true,
|
|
38
38
|
}]
|
|
39
|
-
}], ctorParameters:
|
|
39
|
+
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { hotkey: [{
|
|
40
40
|
type: Input,
|
|
41
41
|
args: ['ngDocHotkey']
|
|
42
42
|
}], callback: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-hotkey.mjs","sources":["../../../../libs/ui-kit/directives/hotkey/hotkey.directive.ts","../../../../libs/ui-kit/directives/hotkey/ng-doc-ui-kit-directives-hotkey.ts"],"sourcesContent":["import { Directive, EventEmitter, Input, NgZone, Output } from '@angular/core';\nimport { isKeyboardEvent } from '@ng-doc/core/helpers/is-keyboard-event';\nimport { objectKeys } from '@ng-doc/core/helpers/object-keys';\nimport { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { fromEvent, Observable } from 'rxjs';\nimport { filter, share } from 'rxjs/operators';\n\nconst KEYUP_EVENT: Observable<Event> = fromEvent(document, 'keyup').pipe(share());\n\n@Directive({\n\tselector: '[ngDocHotkey]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocHotkeyDirective {\n\t@Input('ngDocHotkey')\n\thotkey?: Partial<KeyboardEvent>;\n\n\t@Output('ngDocHotkey')\n\tcallback: EventEmitter<void> = new EventEmitter<void>();\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\tKEYUP_EVENT.pipe(\n\t\t\tfilter(isKeyboardEvent),\n\t\t\tfilter((event: KeyboardEvent) =>\n\t\t\t\tobjectKeys(this.hotkey ?? {}).every(\n\t\t\t\t\t(key: keyof KeyboardEvent) => this.hotkey && this.hotkey[key] === event[key],\n\t\t\t\t),\n\t\t\t),\n\t\t\tfilter((event: KeyboardEvent) => {\n\t\t\t\tif (event.target instanceof HTMLElement) {\n\t\t\t\t\treturn !['input', 'textarea', 'select'].includes(event.target.tagName.toLowerCase());\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}),\n\t\t\tngDocZoneOptimize(this.ngZone),\n\t\t\tuntilDestroyed(this),\n\t\t).subscribe((event: KeyboardEvent) => {\n\t\t\tevent.preventDefault();\n\t\t\tthis.callback.emit();\n\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA,MAAM,WAAW,GAAsB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AAOrE,IAAA,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-hotkey.mjs","sources":["../../../../libs/ui-kit/directives/hotkey/hotkey.directive.ts","../../../../libs/ui-kit/directives/hotkey/ng-doc-ui-kit-directives-hotkey.ts"],"sourcesContent":["import { Directive, EventEmitter, Input, NgZone, Output } from '@angular/core';\nimport { isKeyboardEvent } from '@ng-doc/core/helpers/is-keyboard-event';\nimport { objectKeys } from '@ng-doc/core/helpers/object-keys';\nimport { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { fromEvent, Observable } from 'rxjs';\nimport { filter, share } from 'rxjs/operators';\n\nconst KEYUP_EVENT: Observable<Event> = fromEvent(document, 'keyup').pipe(share());\n\n@Directive({\n\tselector: '[ngDocHotkey]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocHotkeyDirective {\n\t@Input('ngDocHotkey')\n\thotkey?: Partial<KeyboardEvent>;\n\n\t@Output('ngDocHotkey')\n\tcallback: EventEmitter<void> = new EventEmitter<void>();\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\tKEYUP_EVENT.pipe(\n\t\t\tfilter(isKeyboardEvent),\n\t\t\tfilter((event: KeyboardEvent) =>\n\t\t\t\tobjectKeys(this.hotkey ?? {}).every(\n\t\t\t\t\t(key: keyof KeyboardEvent) => this.hotkey && this.hotkey[key] === event[key],\n\t\t\t\t),\n\t\t\t),\n\t\t\tfilter((event: KeyboardEvent) => {\n\t\t\t\tif (event.target instanceof HTMLElement) {\n\t\t\t\t\treturn !['input', 'textarea', 'select'].includes(event.target.tagName.toLowerCase());\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}),\n\t\t\tngDocZoneOptimize(this.ngZone),\n\t\t\tuntilDestroyed(this),\n\t\t).subscribe((event: KeyboardEvent) => {\n\t\t\tevent.preventDefault();\n\t\t\tthis.callback.emit();\n\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA,MAAM,WAAW,GAAsB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AAOrE,IAAA,oBAAoB,GAA1B,MAAM,oBAAoB,CAAA;AAOhC,IAAA,WAAA,CAA6B,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAF3C,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAGvD,WAAW,CAAC,IAAI,CACf,MAAM,CAAC,eAAe,CAAC,EACvB,MAAM,CAAC,CAAC,KAAoB,KAC3B,UAAU,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAClC,CAAC,GAAwB,KAAK,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,CAC5E,CACD,EACD,MAAM,CAAC,CAAC,KAAoB,KAAI;AAC/B,YAAA,IAAI,KAAK,CAAC,MAAM,YAAY,WAAW,EAAE;gBACxC,OAAO,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MA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from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { forwardRef,
|
|
3
|
+
import { forwardRef, Directive, HostListener } from '@angular/core';
|
|
4
4
|
import { isPresent } from '@ng-doc/core/helpers/is-present';
|
|
5
5
|
import { NgDocBaseInput } from '@ng-doc/ui-kit/classes/base-input';
|
|
6
6
|
import { toElement } from '@ng-doc/ui-kit/helpers';
|
|
7
7
|
import { UntilDestroy } from '@ngneat/until-destroy';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
let NgDocInputNumberDirective = class NgDocInputNumberDirective extends NgDocBaseInput {
|
|
10
|
+
constructor() {
|
|
11
|
+
super({
|
|
12
|
+
onIncomingUpdate: (value) => {
|
|
13
|
+
toElement(this.elementRef).value = isPresent(value) ? String(Number(value)) : '';
|
|
14
|
+
},
|
|
15
|
+
});
|
|
14
16
|
}
|
|
15
17
|
blurEvent() {
|
|
16
|
-
this.
|
|
18
|
+
this.touch();
|
|
17
19
|
}
|
|
18
20
|
inputEvent() {
|
|
19
21
|
this.updateModel(Number(this.elementRef.nativeElement.value));
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocInputNumberDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
25
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocInputNumberDirective, isStandalone: true, selector: "input[ngDocInputNumber]", host: { listeners: { "blur": "blurEvent()", "input": "inputEvent()" } }, providers: [
|
|
26
|
-
{ provide: NgDocBaseInput, useExisting: forwardRef(() => NgDocInputNumberDirective_1) },
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocInputNumberDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
24
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocInputNumberDirective, isStandalone: true, selector: "input[ngDocInputNumber]", host: { listeners: { "blur": "blurEvent()", "input": "inputEvent()" } }, providers: [
|
|
25
|
+
{ provide: NgDocBaseInput, useExisting: forwardRef(() => NgDocInputNumberDirective) },
|
|
27
26
|
], usesInheritance: true, ngImport: i0 }); }
|
|
28
27
|
};
|
|
29
|
-
NgDocInputNumberDirective =
|
|
28
|
+
NgDocInputNumberDirective = __decorate([
|
|
30
29
|
UntilDestroy(),
|
|
31
|
-
__metadata("design:paramtypes", [
|
|
30
|
+
__metadata("design:paramtypes", [])
|
|
32
31
|
], NgDocInputNumberDirective);
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocInputNumberDirective, decorators: [{
|
|
34
33
|
type: Directive,
|
|
35
34
|
args: [{
|
|
36
35
|
selector: `input[ngDocInputNumber]`,
|
|
@@ -39,7 +38,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
39
38
|
],
|
|
40
39
|
standalone: true,
|
|
41
40
|
}]
|
|
42
|
-
}], ctorParameters:
|
|
41
|
+
}], ctorParameters: () => [], propDecorators: { blurEvent: [{
|
|
43
42
|
type: HostListener,
|
|
44
43
|
args: ['blur']
|
|
45
44
|
}], inputEvent: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-input-number.mjs","sources":["../../../../libs/ui-kit/directives/input-number/input-number.directive.ts","../../../../libs/ui-kit/directives/input-number/ng-doc-ui-kit-directives-input-number.ts"],"sourcesContent":["import { Directive,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-input-number.mjs","sources":["../../../../libs/ui-kit/directives/input-number/input-number.directive.ts","../../../../libs/ui-kit/directives/input-number/ng-doc-ui-kit-directives-input-number.ts"],"sourcesContent":["import { Directive, forwardRef, HostListener } from '@angular/core';\nimport { isPresent } from '@ng-doc/core/helpers/is-present';\nimport { NgDocBaseInput } from '@ng-doc/ui-kit/classes/base-input';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { UntilDestroy } from '@ngneat/until-destroy';\n\n@Directive({\n\tselector: `input[ngDocInputNumber]`,\n\tproviders: [\n\t\t{ provide: NgDocBaseInput, useExisting: forwardRef(() => NgDocInputNumberDirective) },\n\t],\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocInputNumberDirective extends NgDocBaseInput<number> {\n\tconstructor() {\n\t\tsuper({\n\t\t\tonIncomingUpdate: (value) => {\n\t\t\t\ttoElement(this.elementRef).value = isPresent(value) ? String(Number(value)) : '';\n\t\t\t},\n\t\t});\n\t}\n\n\t@HostListener('blur')\n\tblurEvent(): void {\n\t\tthis.touch();\n\t}\n\n\t@HostListener('input')\n\tinputEvent(): void {\n\t\tthis.updateModel(Number(this.elementRef.nativeElement.value));\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAcO,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,cAAsB,CAAA;AACpE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,CAAC;AACL,YAAA,gBAAgB,EAAE,CAAC,KAAK,KAAI;gBAC3B,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC;aACjF;AACD,SAAA,CAAC,CAAC;KACH;IAGD,SAAS,GAAA;QACR,IAAI,CAAC,KAAK,EAAE,CAAC;KACb;IAGD,UAAU,GA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CAAA;;;AC5BtB;;AAEG;;;;"}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __metadata, __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { forwardRef,
|
|
3
|
+
import { forwardRef, Directive, HostListener } from '@angular/core';
|
|
4
4
|
import { isPresent } from '@ng-doc/core/helpers/is-present';
|
|
5
5
|
import { NgDocBaseInput } from '@ng-doc/ui-kit/classes/base-input';
|
|
6
6
|
import { toElement } from '@ng-doc/ui-kit/helpers';
|
|
7
7
|
import { UntilDestroy } from '@ngneat/until-destroy';
|
|
8
8
|
|
|
9
|
-
var NgDocInputStringDirective_1;
|
|
10
9
|
/** Directive converts any input data or model to text */
|
|
11
|
-
let NgDocInputStringDirective =
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
|
|
10
|
+
let NgDocInputStringDirective = class NgDocInputStringDirective extends NgDocBaseInput {
|
|
11
|
+
constructor() {
|
|
12
|
+
super({
|
|
13
|
+
onIncomingUpdate: (value) => {
|
|
14
|
+
toElement(this.elementRef).value = isPresent(value) ? String(value) : '';
|
|
15
|
+
},
|
|
16
|
+
});
|
|
15
17
|
}
|
|
16
18
|
blurEvent() {
|
|
17
|
-
this.
|
|
19
|
+
this.touch();
|
|
18
20
|
}
|
|
19
21
|
inputEvent() {
|
|
20
22
|
this.updateModel(this.elementRef.nativeElement.value);
|
|
21
23
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocInputStringDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocInputStringDirective, isStandalone: true, selector: "input[ngDocInputString]", host: { listeners: { "blur": "blurEvent()", "input": "inputEvent()" } }, providers: [
|
|
27
|
-
{ provide: NgDocBaseInput, useExisting: forwardRef(() => NgDocInputStringDirective_1) },
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocInputStringDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
25
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocInputStringDirective, isStandalone: true, selector: "input[ngDocInputString]", host: { listeners: { "blur": "blurEvent()", "input": "inputEvent()" } }, providers: [
|
|
26
|
+
{ provide: NgDocBaseInput, useExisting: forwardRef(() => NgDocInputStringDirective) },
|
|
28
27
|
], usesInheritance: true, ngImport: i0 }); }
|
|
29
28
|
};
|
|
30
|
-
NgDocInputStringDirective =
|
|
29
|
+
NgDocInputStringDirective = __decorate([
|
|
31
30
|
UntilDestroy(),
|
|
32
|
-
__metadata("design:paramtypes", [
|
|
31
|
+
__metadata("design:paramtypes", [])
|
|
33
32
|
], NgDocInputStringDirective);
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocInputStringDirective, decorators: [{
|
|
35
34
|
type: Directive,
|
|
36
35
|
args: [{
|
|
37
36
|
selector: `input[ngDocInputString]`,
|
|
@@ -40,7 +39,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
40
39
|
],
|
|
41
40
|
standalone: true,
|
|
42
41
|
}]
|
|
43
|
-
}], ctorParameters:
|
|
42
|
+
}], ctorParameters: () => [], propDecorators: { blurEvent: [{
|
|
44
43
|
type: HostListener,
|
|
45
44
|
args: ['blur']
|
|
46
45
|
}], inputEvent: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-input-string.mjs","sources":["../../../../libs/ui-kit/directives/input-string/input-string.directive.ts","../../../../libs/ui-kit/directives/input-string/ng-doc-ui-kit-directives-input-string.ts"],"sourcesContent":["import { Directive,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-input-string.mjs","sources":["../../../../libs/ui-kit/directives/input-string/input-string.directive.ts","../../../../libs/ui-kit/directives/input-string/ng-doc-ui-kit-directives-input-string.ts"],"sourcesContent":["import { Directive, forwardRef, HostListener } from '@angular/core';\nimport { isPresent } from '@ng-doc/core/helpers/is-present';\nimport { NgDocBaseInput } from '@ng-doc/ui-kit/classes/base-input';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { UntilDestroy } from '@ngneat/until-destroy';\n\n/** Directive converts any input data or model to text */\n@Directive({\n\tselector: `input[ngDocInputString]`,\n\tproviders: [\n\t\t{ provide: NgDocBaseInput, useExisting: forwardRef(() => NgDocInputStringDirective) },\n\t],\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocInputStringDirective extends NgDocBaseInput<string> {\n\tconstructor() {\n\t\tsuper({\n\t\t\tonIncomingUpdate: (value) => {\n\t\t\t\ttoElement(this.elementRef).value = isPresent(value) ? String(value) : '';\n\t\t\t},\n\t\t});\n\t}\n\n\t@HostListener('blur')\n\tblurEvent(): void {\n\t\tthis.touch();\n\t}\n\n\t@HostListener('input')\n\tinputEvent(): void {\n\t\tthis.updateModel(this.elementRef.nativeElement.value);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;AASO,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,cAAsB,CAAA;AACpE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,CAAC;AACL,YAAA,gBAAgB,EAAE,CAAC,KAAK,KAAI;gBAC3B,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,MAAM,C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,CAAA;wDAYA,SAAS,EAAA,CAAA;sBADR,YAAY;uBAAC,MAAM,CAAA;gBAMpB,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,OAAO,CAAA;;;AC7BtB;;AAEG;;;;"}
|
|
@@ -22,16 +22,16 @@ class NgDocLetDirective {
|
|
|
22
22
|
static ngTemplateContextGuard(_dir, _ctx) {
|
|
23
23
|
return true;
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocLetDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocLetDirective, isStandalone: true, selector: "[ngDocLet]", inputs: { ngDocLet: "ngDocLet" }, ngImport: i0 }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocLetDirective, decorators: [{
|
|
29
29
|
type: Directive,
|
|
30
30
|
args: [{
|
|
31
31
|
selector: '[ngDocLet]',
|
|
32
32
|
standalone: true,
|
|
33
33
|
}]
|
|
34
|
-
}], ctorParameters:
|
|
34
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { ngDocLet: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}] } });
|
|
37
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-let.mjs","sources":["../../../../libs/ui-kit/directives/let/let-context.ts","../../../../libs/ui-kit/directives/let/let.directive.ts","../../../../libs/ui-kit/directives/let/ng-doc-ui-kit-directives-let.ts"],"sourcesContent":["import { NgDocContextWithImplicit } from '@ng-doc/ui-kit/interfaces';\n\nimport { NgDocLetDirective } from './let.directive';\n\nexport class NgDocLetContext<T> implements NgDocContextWithImplicit<T> {\n\tconstructor(private readonly internalDirectiveInstance: NgDocLetDirective<T>) {}\n\n\tget $implicit(): T {\n\t\treturn this.internalDirectiveInstance.ngDocLet;\n\t}\n\n\tget ngDocLet(): T {\n\t\treturn this.internalDirectiveInstance.ngDocLet;\n\t}\n}\n","import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { NgDocLetContext } from './let-context';\n\n@Directive({\n\tselector: '[ngDocLet]',\n\tstandalone: true,\n})\nexport class NgDocLetDirective<T> {\n\t@Input()\n\tngDocLet!: T;\n\n\tconstructor(\n\t\tprivate readonly viewContainer: ViewContainerRef,\n\t\tprivate readonly templateRef: TemplateRef<NgDocLetContext<T>>,\n\t) {\n\t\tthis.viewContainer.createEmbeddedView(this.templateRef, new NgDocLetContext<T>(this));\n\t}\n\n\tstatic ngTemplateContextGuard<T>(\n\t\t_dir: NgDocLetDirective<T>,\n\t\t_ctx: unknown,\n\t): _ctx is NgDocLetDirective<T> {\n\t\treturn true;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAIa,eAAe,CAAA;AAC3B,IAAA,WAAA,CAA6B,yBAA+C,EAAA;QAA/C,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB,CAAsB;KAAI;AAEhF,IAAA,IAAI,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC;KAC/C;AAED,IAAA,IAAI,QAAQ,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC;KAC/C;AACD;;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-let.mjs","sources":["../../../../libs/ui-kit/directives/let/let-context.ts","../../../../libs/ui-kit/directives/let/let.directive.ts","../../../../libs/ui-kit/directives/let/ng-doc-ui-kit-directives-let.ts"],"sourcesContent":["import { NgDocContextWithImplicit } from '@ng-doc/ui-kit/interfaces';\n\nimport { NgDocLetDirective } from './let.directive';\n\nexport class NgDocLetContext<T> implements NgDocContextWithImplicit<T> {\n\tconstructor(private readonly internalDirectiveInstance: NgDocLetDirective<T>) {}\n\n\tget $implicit(): T {\n\t\treturn this.internalDirectiveInstance.ngDocLet;\n\t}\n\n\tget ngDocLet(): T {\n\t\treturn this.internalDirectiveInstance.ngDocLet;\n\t}\n}\n","import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { NgDocLetContext } from './let-context';\n\n@Directive({\n\tselector: '[ngDocLet]',\n\tstandalone: true,\n})\nexport class NgDocLetDirective<T> {\n\t@Input()\n\tngDocLet!: T;\n\n\tconstructor(\n\t\tprivate readonly viewContainer: ViewContainerRef,\n\t\tprivate readonly templateRef: TemplateRef<NgDocLetContext<T>>,\n\t) {\n\t\tthis.viewContainer.createEmbeddedView(this.templateRef, new NgDocLetContext<T>(this));\n\t}\n\n\tstatic ngTemplateContextGuard<T>(\n\t\t_dir: NgDocLetDirective<T>,\n\t\t_ctx: unknown,\n\t): _ctx is NgDocLetDirective<T> {\n\t\treturn true;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAIa,eAAe,CAAA;AAC3B,IAAA,WAAA,CAA6B,yBAA+C,EAAA;QAA/C,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB,CAAsB;KAAI;AAEhF,IAAA,IAAI,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC;KAC/C;AAED,IAAA,IAAI,QAAQ,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC;KAC/C;AACD;;MCNY,iBAAiB,CAAA;IAI7B,WACkB,CAAA,aAA+B,EAC/B,WAA4C,EAAA;QAD5C,IAAa,CAAA,aAAA,GAAb,aAAa,CAAkB;QAC/B,IAAW,CAAA,WAAA,GAAX,WAAW,CAAiC;AAE7D,QAAA,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,eAAe,CAAI,IAAI,CAAC,CAAC,CAAC;KACtF;AAED,IAAA,OAAO,sBAAsB,CAC5B,IAA0B,EAC1B,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI,CAAC;KACZ;8GAhBW,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;+GAGA,QAAQ,EAAA,CAAA;sBADP,KAAK;;;ACTP;;AAEG;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __metadata, __decorate } from 'tslib';
|
|
2
2
|
import * as i1 from '@angular/cdk/layout';
|
|
3
3
|
import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
@@ -30,8 +30,8 @@ let NgDocMediaQueryDirective = class NgDocMediaQueryDirective {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocMediaQueryDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
34
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocMediaQueryDirective, isStandalone: true, selector: "[ngDocMediaQuery]", inputs: { match: ["ngDocMediaQuery", "match"] }, exportAs: ["ngDocMediaQuery"], usesOnChanges: true, ngImport: i0 }); }
|
|
35
35
|
};
|
|
36
36
|
NgDocMediaQueryDirective = __decorate([
|
|
37
37
|
UntilDestroy(),
|
|
@@ -39,14 +39,14 @@ NgDocMediaQueryDirective = __decorate([
|
|
|
39
39
|
ViewContainerRef,
|
|
40
40
|
BreakpointObserver])
|
|
41
41
|
], NgDocMediaQueryDirective);
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocMediaQueryDirective, decorators: [{
|
|
43
43
|
type: Directive,
|
|
44
44
|
args: [{
|
|
45
45
|
selector: '[ngDocMediaQuery]',
|
|
46
46
|
exportAs: 'ngDocMediaQuery',
|
|
47
47
|
standalone: true,
|
|
48
48
|
}]
|
|
49
|
-
}], ctorParameters:
|
|
49
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i1.BreakpointObserver }], propDecorators: { match: [{
|
|
50
50
|
type: Input,
|
|
51
51
|
args: ['ngDocMediaQuery']
|
|
52
52
|
}] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-media-query.mjs","sources":["../../../../libs/ui-kit/directives/media-query/media-query.directive.ts","../../../../libs/ui-kit/directives/media-query/ng-doc-ui-kit-directives-media-query.ts"],"sourcesContent":["import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport {\n\tDirective,\n\tEmbeddedViewRef,\n\tInput,\n\tOnChanges,\n\tTemplateRef,\n\tViewContainerRef,\n} from '@angular/core';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { Subject } from 'rxjs';\nimport { distinctUntilChanged, pluck, takeUntil } from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocMediaQuery]',\n\texportAs: 'ngDocMediaQuery',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocMediaQueryDirective implements OnChanges {\n\t@Input('ngDocMediaQuery')\n\tmatch: string | string[] = [];\n\n\treadonly breakpoints: typeof Breakpoints = Breakpoints;\n\n\tprivate readonly unsubscribe$: Subject<void> = new Subject<void>();\n\tprivate viewRef?: EmbeddedViewRef<unknown>;\n\n\tconstructor(\n\t\tprivate readonly templateRef: TemplateRef<unknown>,\n\t\tprivate readonly viewContainerRef: ViewContainerRef,\n\t\tprivate readonly breakpointObserver: BreakpointObserver,\n\t) {}\n\n\tngOnChanges(): void {\n\t\tthis.unsubscribe$.next();\n\n\t\tthis.breakpointObserver\n\t\t\t.observe(this.match)\n\t\t\t.pipe(\n\t\t\t\tpluck('matches'),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\ttakeUntil(this.unsubscribe$),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe((matches: boolean) => {\n\t\t\t\tthis.viewRef?.destroy();\n\t\t\t\tthis.viewRef = undefined;\n\n\t\t\t\tif (matches) {\n\t\t\t\t\tthis.viewRef = this.viewContainerRef.createEmbeddedView(this.templateRef);\n\t\t\t\t\tthis.viewRef.markForCheck();\n\t\t\t\t}\n\t\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmBa,IAAA,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-media-query.mjs","sources":["../../../../libs/ui-kit/directives/media-query/media-query.directive.ts","../../../../libs/ui-kit/directives/media-query/ng-doc-ui-kit-directives-media-query.ts"],"sourcesContent":["import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport {\n\tDirective,\n\tEmbeddedViewRef,\n\tInput,\n\tOnChanges,\n\tTemplateRef,\n\tViewContainerRef,\n} from '@angular/core';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { Subject } from 'rxjs';\nimport { distinctUntilChanged, pluck, takeUntil } from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocMediaQuery]',\n\texportAs: 'ngDocMediaQuery',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocMediaQueryDirective implements OnChanges {\n\t@Input('ngDocMediaQuery')\n\tmatch: string | string[] = [];\n\n\treadonly breakpoints: typeof Breakpoints = Breakpoints;\n\n\tprivate readonly unsubscribe$: Subject<void> = new Subject<void>();\n\tprivate viewRef?: EmbeddedViewRef<unknown>;\n\n\tconstructor(\n\t\tprivate readonly templateRef: TemplateRef<unknown>,\n\t\tprivate readonly viewContainerRef: ViewContainerRef,\n\t\tprivate readonly breakpointObserver: BreakpointObserver,\n\t) {}\n\n\tngOnChanges(): void {\n\t\tthis.unsubscribe$.next();\n\n\t\tthis.breakpointObserver\n\t\t\t.observe(this.match)\n\t\t\t.pipe(\n\t\t\t\tpluck('matches'),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\ttakeUntil(this.unsubscribe$),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe((matches: boolean) => {\n\t\t\t\tthis.viewRef?.destroy();\n\t\t\t\tthis.viewRef = undefined;\n\n\t\t\t\tif (matches) {\n\t\t\t\t\tthis.viewRef = this.viewContainerRef.createEmbeddedView(this.templateRef);\n\t\t\t\t\tthis.viewRef.markForCheck();\n\t\t\t\t}\n\t\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmBa,IAAA,wBAAwB,GAA9B,MAAM,wBAAwB,CAAA;AASpC,IAAA,WAAA,CACkB,WAAiC,EACjC,gBAAkC,EAClC,kBAAsC,EAAA;QAFtC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAsB;QACjC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAoB;QAVxD,IAAK,CAAA,KAAA,GAAsB,EAAE,CAAC;QAErB,IAAW,CAAA,WAAA,GAAuB,WAAW,CAAC;AAEtC,QAAA,IAAA,CAAA,YAAY,GAAkB,IAAI,OAAO,EAAQ,CAAC;KAO/D;IAEJ,WAAW,GAAA;AACV,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;AAEzB,QAAA,IAAI,CAAC,kBAAkB;AACrB,aAAA,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;aACnB,IAAI,CACJ,KAAK,CAAC,SAAS,CAAC,EAChB,oBAAoB,EAAE,EACtB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EAC5B,cAAc,CAAC,IAAI,CAAC,CACpB;AACA,aAAA,SAAS,CAAC,CAAC,OAAgB,KAAI;AAC/B,YAAA,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;AACxB,YAAA,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;AAEzB,YAAA,IAAI,OAAO,EAAE;AACZ,gBAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC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ac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocRotatorDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
31
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgDocRotatorDirective, isStandalone: true, selector: "[ngDocRotator]", inputs: { rotated: ["ngDocRotator", "rotated"], from: "from", to: "to" }, usesOnChanges: true, ngImport: i0 }); }
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocRotatorDirective, decorators: [{
|
|
34
34
|
type: Directive,
|
|
35
35
|
args: [{
|
|
36
36
|
selector: '[ngDocRotator]',
|
|
37
37
|
standalone: true,
|
|
38
38
|
}]
|
|
39
|
-
}], ctorParameters:
|
|
39
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { rotated: [{
|
|
40
40
|
type: Input,
|
|
41
41
|
args: ['ngDocRotator']
|
|
42
42
|
}], from: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-rotator.mjs","sources":["../../../../libs/ui-kit/directives/rotator/rotator.directive.ts","../../../../libs/ui-kit/directives/rotator/ng-doc-ui-kit-directives-rotator.ts"],"sourcesContent":["import {\n\tDirective,\n\tElementRef,\n\tInput,\n\tOnChanges,\n\tOnInit,\n\tRenderer2,\n\tSimpleChanges,\n} from '@angular/core';\n\n/** Directive rotates host with transition */\n@Directive({\n\tselector: '[ngDocRotator]',\n\tstandalone: true,\n})\nexport class NgDocRotatorDirective implements OnChanges, OnInit {\n\t/** Rotator state */\n\t@Input('ngDocRotator')\n\trotated: boolean = false;\n\n\t/** Start position angle */\n\t@Input()\n\tfrom: number = 0;\n\n\t/** End position anle */\n\t@Input()\n\tto: number = 90;\n\n\tconstructor(\n\t\tprivate readonly elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly renderer: Renderer2,\n\t) {}\n\n\tngOnChanges({ rotated }: SimpleChanges): void {\n\t\tif (rotated) {\n\t\t\tthis.rotate(this.rotated ? this.to : this.from, true);\n\t\t}\n\t}\n\n\tngOnInit(): void {\n\t\tthis.rotate(this.rotated ? this.to : this.from);\n\t}\n\n\tprivate rotate(degree: number, animated?: boolean): void {\n\t\tif (animated) {\n\t\t\tthis.renderer.setStyle(\n\t\t\t\tthis.elementRef.nativeElement,\n\t\t\t\t`transition`,\n\t\t\t\t`var(--ng-doc-transition)`,\n\t\t\t);\n\t\t}\n\t\tthis.renderer.setStyle(this.elementRef.nativeElement, `transform`, `rotateZ(${degree}deg`);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAUA;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-rotator.mjs","sources":["../../../../libs/ui-kit/directives/rotator/rotator.directive.ts","../../../../libs/ui-kit/directives/rotator/ng-doc-ui-kit-directives-rotator.ts"],"sourcesContent":["import {\n\tDirective,\n\tElementRef,\n\tInput,\n\tOnChanges,\n\tOnInit,\n\tRenderer2,\n\tSimpleChanges,\n} from '@angular/core';\n\n/** Directive rotates host with transition */\n@Directive({\n\tselector: '[ngDocRotator]',\n\tstandalone: true,\n})\nexport class NgDocRotatorDirective implements OnChanges, OnInit {\n\t/** Rotator state */\n\t@Input('ngDocRotator')\n\trotated: boolean = false;\n\n\t/** Start position angle */\n\t@Input()\n\tfrom: number = 0;\n\n\t/** End position anle */\n\t@Input()\n\tto: number = 90;\n\n\tconstructor(\n\t\tprivate readonly elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly renderer: Renderer2,\n\t) {}\n\n\tngOnChanges({ rotated }: SimpleChanges): void {\n\t\tif (rotated) {\n\t\t\tthis.rotate(this.rotated ? this.to : this.from, true);\n\t\t}\n\t}\n\n\tngOnInit(): void {\n\t\tthis.rotate(this.rotated ? this.to : this.from);\n\t}\n\n\tprivate rotate(degree: number, animated?: boolean): void {\n\t\tif (animated) {\n\t\t\tthis.renderer.setStyle(\n\t\t\t\tthis.elementRef.nativeElement,\n\t\t\t\t`transition`,\n\t\t\t\t`var(--ng-doc-transition)`,\n\t\t\t);\n\t\t}\n\t\tthis.renderer.setStyle(this.elementRef.nativeElement, `transform`, `rotateZ(${degree}deg`);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAUA;MAKa,qBAAqB,CAAA;IAajC,WACkB,CAAA,UAAmC,EACnC,QAAmB,EAAA;QADnB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;;QAZrC,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;;QAIzB,IAAI,CAAA,IAAA,GAAW,CAAC,CAAC;;QAIjB,IAAE,CAAA,EAAA,GAAW,EAAE,CAAC;KAKZ;IAEJ,WAAW,CAAC,EAAE,OAAO,EAAiB,EAAA;AACrC,QAAA,IAAI,OAAO,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACtD,SAAA;KACD;IAED,QAAQ,GAAA;AACP,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;KAChD;IAEO,MAAM,CAAC,MAAc,EAAE,QAAkB,EAAA;AAChD,QAAA,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