@alauda/ui 9.1.1-beta.3 → 9.1.1-beta.4
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/accordion/accordion-item/accordion-item.component.d.ts +22 -0
- package/accordion/accordion.component.d.ts +10 -0
- package/accordion/accordion.module.d.ts +15 -0
- package/accordion/index.d.ts +3 -0
- package/anchor/anchor.component.d.ts +37 -0
- package/anchor/anchor.directive.d.ts +57 -0
- package/anchor/anchor.module.d.ts +12 -0
- package/anchor/index.d.ts +5 -0
- package/anchor/types.d.ts +14 -0
- package/anchor/utils.d.ts +2 -0
- package/autocomplete/autocomplete-placeholder.component.d.ts +5 -0
- package/autocomplete/autocomplete.component.d.ts +21 -0
- package/autocomplete/autocomplete.directive.d.ts +54 -0
- package/autocomplete/autocomplete.module.d.ts +22 -0
- package/autocomplete/autocomplete.types.d.ts +4 -0
- package/autocomplete/helper-directives.d.ts +5 -0
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/suggestion/suggestion.component.d.ts +28 -0
- package/autocomplete/suggestion-group/suggestion-group.component.d.ts +11 -0
- package/back-top/back-top.component.d.ts +32 -0
- package/back-top/back-top.module.d.ts +10 -0
- package/back-top/index.d.ts +2 -0
- package/breadcrumb/breadcrumb-item.component.d.ts +14 -0
- package/breadcrumb/breadcrumb.component.d.ts +15 -0
- package/breadcrumb/breadcrumb.module.d.ts +13 -0
- package/breadcrumb/index.d.ts +3 -0
- package/button/button-group/button-group.component.d.ts +5 -0
- package/button/button.component.d.ts +33 -0
- package/button/button.module.d.ts +10 -0
- package/button/button.types.d.ts +15 -0
- package/button/index.d.ts +4 -0
- package/card/card.component.d.ts +6 -0
- package/card/card.module.d.ts +14 -0
- package/card/helper-directives.d.ts +13 -0
- package/card/index.d.ts +4 -0
- package/card/section.component.d.ts +5 -0
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +16 -0
- package/checkbox/checkbox.component.d.ts +28 -0
- package/checkbox/checkbox.module.d.ts +13 -0
- package/checkbox/index.d.ts +3 -0
- package/color-picker/color-picker.component.d.ts +7 -0
- package/color-picker/color-picker.module.d.ts +9 -0
- package/color-picker/index.d.ts +2 -0
- package/core/animation/animation-consts.d.ts +9 -0
- package/date-picker/calendar/constant.d.ts +21 -0
- package/date-picker/calendar/date-picker-panel/component.d.ts +44 -0
- package/date-picker/calendar/footer/component.d.ts +11 -0
- package/date-picker/calendar/header/component.d.ts +40 -0
- package/date-picker/calendar/panel/picker-panel.d.ts +35 -0
- package/date-picker/calendar/range-picker-panel/component.d.ts +51 -0
- package/date-picker/calendar/util.d.ts +34 -0
- package/date-picker/date-picker/date-picker.component.d.ts +32 -0
- package/date-picker/date-picker.module.d.ts +22 -0
- package/date-picker/date-picker.type.d.ts +20 -0
- package/date-picker/index.d.ts +11 -0
- package/date-picker/range-picker/range-picker.component.d.ts +30 -0
- package/date-picker/trigger/trigger.component.d.ts +39 -0
- package/dialog/confirm-dialog/confirm-dialog-config.d.ts +13 -0
- package/dialog/confirm-dialog/confirm-dialog.component.d.ts +24 -0
- package/dialog/dialog-animations.d.ts +31 -0
- package/dialog/dialog-config.d.ts +14 -0
- package/dialog/dialog-container.component.d.ts +7 -0
- package/dialog/dialog-content/dialog-close.directive.d.ts +15 -0
- package/dialog/dialog-content/dialog-content.component.d.ts +11 -0
- package/dialog/dialog-content/dialog-footer.component.d.ts +7 -0
- package/dialog/dialog-content/dialog-header.component.d.ts +18 -0
- package/dialog/dialog-ref.d.ts +18 -0
- package/dialog/dialog.component.d.ts +48 -0
- package/dialog/dialog.module.d.ts +23 -0
- package/dialog/dialog.service.d.ts +28 -0
- package/dialog/dialog.types.d.ts +18 -0
- package/dialog/index.d.ts +11 -0
- package/dialog/utils/errors.d.ts +1 -0
- package/dialog/utils/index.d.ts +4 -0
- package/drawer/component/drawer.component.d.ts +33 -0
- package/drawer/component/internal/internal.component.d.ts +36 -0
- package/drawer/drawer-ref.d.ts +13 -0
- package/drawer/drawer.module.d.ts +15 -0
- package/drawer/drawer.service.d.ts +24 -0
- package/drawer/helper-directives.d.ts +13 -0
- package/drawer/index.d.ts +6 -0
- package/drawer/types.d.ts +26 -0
- package/dropdown/dropdown-active.directive.d.ts +7 -0
- package/dropdown/dropdown-button/dropdown-button.component.d.ts +21 -0
- package/dropdown/dropdown.directive.d.ts +13 -0
- package/dropdown/dropdown.module.d.ts +27 -0
- package/dropdown/dropdown.types.d.ts +9 -0
- package/dropdown/helper-directives.d.ts +5 -0
- package/dropdown/index.d.ts +10 -0
- package/dropdown/menu/menu.component.d.ts +9 -0
- package/dropdown/menu-group/menu-group.component.d.ts +5 -0
- package/dropdown/menu-item/menu-item.component.d.ts +15 -0
- package/dropdown/submenu/submenu.component.d.ts +16 -0
- package/fesm2022/alauda-ui.mjs +765 -824
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +36 -0
- package/form/form-item/form-item.component.d.ts +37 -0
- package/form/form.directive.d.ts +21 -0
- package/form/form.module.d.ts +14 -0
- package/form/form.types.d.ts +16 -0
- package/form/helper-directives.d.ts +23 -0
- package/form/index.d.ts +6 -0
- package/i18n/i18n.module.d.ts +7 -0
- package/i18n/i18n.pipe.d.ts +10 -0
- package/i18n/i18n.service.d.ts +11 -0
- package/i18n/i18n.type.d.ts +6 -0
- package/i18n/index.d.ts +6 -0
- package/i18n/language/en.d.ts +2 -0
- package/i18n/language/zh.d.ts +2 -0
- package/icon/icon-register.service.d.ts +15 -0
- package/icon/icon.component.d.ts +25 -0
- package/icon/icon.module.d.ts +9 -0
- package/icon/icons.d.ts +1 -0
- package/icon/index.d.ts +3 -0
- package/icon/utils.d.ts +2 -0
- package/index.d.ts +38 -3671
- package/inline-alert/helper-directives.d.ts +5 -0
- package/inline-alert/index.d.ts +4 -0
- package/inline-alert/inline-alert.component.d.ts +19 -0
- package/inline-alert/inline-alert.module.d.ts +13 -0
- package/inline-alert/inline-alert.types.d.ts +10 -0
- package/input/autosize.directive.d.ts +24 -0
- package/input/helper-directives.d.ts +17 -0
- package/input/index.d.ts +8 -0
- package/input/input-group/input-group.component.d.ts +22 -0
- package/input/input.component.d.ts +19 -0
- package/input/input.module.d.ts +18 -0
- package/input/number-input/number-input.component.d.ts +39 -0
- package/input/search/search.component.d.ts +28 -0
- package/input/tags-input/tags-input.component.d.ts +56 -0
- package/input/tags-input/with-max-row-count.d.ts +10 -0
- package/input/utils/index.d.ts +5 -0
- package/internal/types/index.d.ts +12 -0
- package/internal/utils/animations.d.ts +2 -0
- package/internal/utils/async.d.ts +1 -0
- package/internal/utils/bem.d.ts +12 -0
- package/internal/utils/coercion.d.ts +4 -0
- package/internal/utils/fn.d.ts +9 -0
- package/internal/utils/index.d.ts +9 -0
- package/internal/utils/observe-dom.d.ts +3 -0
- package/internal/utils/operators.d.ts +7 -0
- package/internal/utils/scroll-into-view.d.ts +1 -0
- package/internal/utils/styles-renderer.d.ts +18 -0
- package/internal/utils/watch-content-exist.d.ts +2 -0
- package/message/base-message.d.ts +33 -0
- package/message/index.d.ts +3 -0
- package/message/message-animations.d.ts +4 -0
- package/message/message-wrapper.component.d.ts +8 -0
- package/message/message.component.d.ts +30 -0
- package/message/message.config.d.ts +44 -0
- package/message/message.module.d.ts +11 -0
- package/message/message.service.d.ts +12 -0
- package/notification/index.d.ts +4 -0
- package/notification/notification-wrapper.component.d.ts +9 -0
- package/notification/notification.component.d.ts +34 -0
- package/notification/notification.config.d.ts +16 -0
- package/notification/notification.module.d.ts +12 -0
- package/notification/notification.service.d.ts +12 -0
- package/package.json +3 -3
- package/paginator/index.d.ts +3 -0
- package/paginator/paginator-intl.d.ts +20 -0
- package/paginator/paginator.component.d.ts +37 -0
- package/paginator/paginator.module.d.ts +12 -0
- package/radio/base-radio.d.ts +28 -0
- package/radio/index.d.ts +5 -0
- package/radio/radio-button/radio-button.component.d.ts +17 -0
- package/radio/radio-group/radio-group.component.d.ts +20 -0
- package/radio/radio.component.d.ts +13 -0
- package/radio/radio.module.d.ts +15 -0
- package/radio/radio.types.d.ts +7 -0
- package/scrolling/fixed-size-table-virtual-scroll-strategy.d.ts +28 -0
- package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +24 -0
- package/scrolling/fixed-size-virtual-scroll.directive.d.ts +6 -0
- package/scrolling/index.d.ts +6 -0
- package/scrolling/scrolling.module.d.ts +10 -0
- package/scrolling/virtual-for-of.directive.d.ts +13 -0
- package/scrolling/virtual-scroll-viewport.component.d.ts +6 -0
- package/select/base-select.d.ts +83 -0
- package/select/helper-directives.d.ts +22 -0
- package/select/index.d.ts +9 -0
- package/select/multi-select/multi-select.component.d.ts +57 -0
- package/select/option/option.component.d.ts +46 -0
- package/select/option-group/option-group.component.d.ts +11 -0
- package/select/option-placeholder.component.d.ts +5 -0
- package/select/select.component.d.ts +23 -0
- package/select/select.module.d.ts +27 -0
- package/select/select.types.d.ts +19 -0
- package/select/validators.d.ts +22 -0
- package/shared/click-outside.directive.d.ts +10 -0
- package/shared/shared.module.d.ts +7 -0
- package/sort/index.d.ts +5 -0
- package/sort/sort-errors.d.ts +8 -0
- package/sort/sort-header.component.d.ts +24 -0
- package/sort/sort.directive.d.ts +21 -0
- package/sort/sort.module.d.ts +12 -0
- package/sort/sort.types.d.ts +10 -0
- package/status-bar/index.d.ts +3 -0
- package/status-bar/status-bar.component.d.ts +13 -0
- package/status-bar/status-bar.module.d.ts +9 -0
- package/status-bar/status-bar.types.d.ts +21 -0
- package/steps/index.d.ts +3 -0
- package/steps/steps.component.d.ts +35 -0
- package/steps/steps.module.d.ts +9 -0
- package/steps/types.d.ts +16 -0
- package/switch/index.d.ts +2 -0
- package/switch/switch.component.d.ts +11 -0
- package/switch/switch.module.d.ts +8 -0
- package/table/index.d.ts +15 -0
- package/table/table-cell-def.directive.d.ts +10 -0
- package/table/table-cell.component.d.ts +18 -0
- package/table/table-cell.directive.d.ts +10 -0
- package/table/table-column-def.directive.d.ts +11 -0
- package/table/table-column-resizable.directive.d.ts +30 -0
- package/table/table-header-cell-def.directive.d.ts +10 -0
- package/table/table-header-cell.directive.d.ts +9 -0
- package/table/table-header-row-def.directive.d.ts +13 -0
- package/table/table-header-row.component.d.ts +7 -0
- package/table/table-placeholder.directive.d.ts +16 -0
- package/table/table-row-def.directive.d.ts +13 -0
- package/table/table-row.component.d.ts +13 -0
- package/table/table-scroll.directive.d.ts +33 -0
- package/table/table.component.d.ts +20 -0
- package/table/table.module.d.ts +35 -0
- package/table-of-contents/index.d.ts +4 -0
- package/table-of-contents/table-of-contents.module.d.ts +14 -0
- package/table-of-contents/toc-container.directive.d.ts +28 -0
- package/table-of-contents/toc-content.directive.d.ts +14 -0
- package/table-of-contents/toc-link.directive.d.ts +16 -0
- package/tabs/index.d.ts +8 -0
- package/tabs/tab-body.component.d.ts +71 -0
- package/tabs/tab-context.service.d.ts +15 -0
- package/tabs/tab-group.component.d.ts +92 -0
- package/tabs/tab-header-active-indicator.component.d.ts +25 -0
- package/tabs/tab-header.component.d.ts +137 -0
- package/tabs/tab.component.d.ts +48 -0
- package/tabs/tabs.module.d.ts +23 -0
- package/tabs/tabs.types.d.ts +15 -0
- package/tag/check-tag/check-tag.component.d.ts +15 -0
- package/tag/index.d.ts +4 -0
- package/tag/tag.component.d.ts +27 -0
- package/tag/tag.module.d.ts +10 -0
- package/tag/tag.types.d.ts +9 -0
- package/theme/_mixin.scss +61 -68
- package/theme/_pattern.scss +22 -20
- package/theme/_theme-preset.scss +1 -2
- package/theme/_var.scss +30 -30
- package/theme/index.d.ts +5 -0
- package/theme/style.css +441 -1
- package/theme/theme.module.d.ts +8 -0
- package/theme/theme.pipe.d.ts +28 -0
- package/theme/theme.service.d.ts +15 -0
- package/theme/theme.types.d.ts +3 -0
- package/theme/utils.d.ts +3 -0
- package/time-picker/component.d.ts +38 -0
- package/time-picker/constant.d.ts +4 -0
- package/time-picker/index.d.ts +5 -0
- package/time-picker/panel/panel.component.d.ts +56 -0
- package/time-picker/time-picker.module.d.ts +20 -0
- package/time-picker/time-picker.type.d.ts +13 -0
- package/tooltip/animations.d.ts +4 -0
- package/tooltip/base-tooltip.d.ts +86 -0
- package/tooltip/index.d.ts +8 -0
- package/tooltip/tooltip-active.directive.d.ts +16 -0
- package/tooltip/tooltip-copy.directive.d.ts +26 -0
- package/tooltip/tooltip-intl.d.ts +11 -0
- package/tooltip/tooltip.component.d.ts +46 -0
- package/tooltip/tooltip.directive.d.ts +10 -0
- package/tooltip/tooltip.module.d.ts +16 -0
- package/tooltip/tooltip.types.d.ts +16 -0
- package/tooltip/utils/index.d.ts +15 -0
- package/tree-select/index.d.ts +4 -0
- package/tree-select/tree-node-placeholder.component.d.ts +5 -0
- package/tree-select/tree-select.component.d.ts +94 -0
- package/tree-select/tree-select.module.d.ts +12 -0
- package/tree-select/tree-select.types.d.ts +11 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/theme/overlay-prebuilt.css +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
3
|
+
import { Bem } from '../internal/utils';
|
|
4
|
+
import { MessageComponent } from '../message/message.component';
|
|
5
|
+
import { NotificationConfig } from './notification.config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NotificationComponent extends MessageComponent implements AfterViewInit {
|
|
8
|
+
protected readonly animateStartState = "flyLeft";
|
|
9
|
+
protected readonly animateStartEnd = "flyUp";
|
|
10
|
+
bem: Bem;
|
|
11
|
+
animateState: string;
|
|
12
|
+
uniqueId: string;
|
|
13
|
+
isHover: boolean;
|
|
14
|
+
title: string;
|
|
15
|
+
remains: number;
|
|
16
|
+
childComponentInstance: unknown;
|
|
17
|
+
customClass: string;
|
|
18
|
+
footerPortal: TemplatePortal<unknown>;
|
|
19
|
+
private readonly portalOutlet;
|
|
20
|
+
private readonly modalEl;
|
|
21
|
+
onMouseEnter(): void;
|
|
22
|
+
onMouseLeave(): void;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
setConfig(config: NotificationConfig): void;
|
|
25
|
+
/**
|
|
26
|
+
* Attach a TemplatePortal as content to this modal container.
|
|
27
|
+
* @param portal Portal to be attached as the modal content.
|
|
28
|
+
*/
|
|
29
|
+
private attachTemplatePortal;
|
|
30
|
+
private attachComponentRef;
|
|
31
|
+
private countDown;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "aui-notification", never, {}, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
3
|
+
import { MessageConfig, MessageGlobalConfig } from '../message';
|
|
4
|
+
export interface NotificationConfig extends MessageConfig {
|
|
5
|
+
title?: string;
|
|
6
|
+
contentRef?: ComponentType<void> | TemplateRef<any>;
|
|
7
|
+
footerRef?: TemplateRef<any>;
|
|
8
|
+
context?: unknown;
|
|
9
|
+
customClass?: string;
|
|
10
|
+
}
|
|
11
|
+
export type NotificationGlobalConfig = MessageGlobalConfig;
|
|
12
|
+
export declare const NOTIFICATION_CONFIG: InjectionToken<MessageGlobalConfig>;
|
|
13
|
+
export declare const NOTIFICATION_DEFAULT_CONFIG: {
|
|
14
|
+
duration: number;
|
|
15
|
+
maxStack: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/cdk/overlay";
|
|
4
|
+
import * as i3 from "@angular/cdk/portal";
|
|
5
|
+
import * as i4 from "../icon/icon.module";
|
|
6
|
+
import * as i5 from "./notification-wrapper.component";
|
|
7
|
+
import * as i6 from "./notification.component";
|
|
8
|
+
export declare class NotificationModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.IconModule, typeof i5.NotificationWrapperComponent, typeof i6.NotificationComponent], never>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NotificationModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
|
|
3
|
+
import { BaseMessage } from '../message/base-message';
|
|
4
|
+
import { NotificationWrapperComponent } from './notification-wrapper.component';
|
|
5
|
+
import { NotificationComponent } from './notification.component';
|
|
6
|
+
import { NotificationConfig, NotificationGlobalConfig } from './notification.config';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class NotificationService extends BaseMessage<NotificationWrapperComponent, NotificationComponent, NotificationConfig> {
|
|
9
|
+
constructor(overlay: Overlay, injector: Injector, applicationRef: ApplicationRef, cfr: ComponentFactoryResolver, globalConfig: NotificationGlobalConfig);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, [null, null, null, null, { optional: true; }]>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/ui",
|
|
3
|
-
"version": "9.1.1-beta.
|
|
3
|
+
"version": "9.1.1-beta.4",
|
|
4
4
|
"description": "Angular UI components by Alauda Frontend Team.",
|
|
5
5
|
"repository": "git+https://github.com/alauda/alauda-ui.git",
|
|
6
6
|
"author": "Alauda Frontend",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"JounQin <admin@1stG.me> (https://www.1stG.me)"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"packageManager": "yarn@
|
|
12
|
+
"packageManager": "yarn@1.22.21",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"alauda",
|
|
15
15
|
"angular",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"ui"
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@angular/cdk": ">=
|
|
20
|
+
"@angular/cdk": ">=19.0.0",
|
|
21
21
|
"dayjs": "^1.0.0",
|
|
22
22
|
"rxjs": "^7.0.0"
|
|
23
23
|
},
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
|
|
5
|
+
* include it in a custom provider
|
|
6
|
+
*/
|
|
7
|
+
export declare class PaginatorIntl {
|
|
8
|
+
/**
|
|
9
|
+
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
10
|
+
* components if the labels have changed after initialization.
|
|
11
|
+
*/
|
|
12
|
+
readonly changes: Subject<void>;
|
|
13
|
+
/** A label for the page size selector. */
|
|
14
|
+
itemsPerPageLabel: string;
|
|
15
|
+
jumperLabelPrefix: string;
|
|
16
|
+
jumperLabelSuffix: string;
|
|
17
|
+
getTotalLabel: (length: number) => string;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorIntl, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaginatorIntl>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Bem } from '../internal/utils';
|
|
3
|
+
import { PaginatorIntl } from './paginator-intl';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PaginatorComponent implements OnDestroy {
|
|
6
|
+
intl: PaginatorIntl;
|
|
7
|
+
private readonly cdr;
|
|
8
|
+
bem: Bem;
|
|
9
|
+
get pageIndex(): number;
|
|
10
|
+
set pageIndex(val: number);
|
|
11
|
+
get currentPage(): number;
|
|
12
|
+
set currentPage(val: number);
|
|
13
|
+
get pageSize(): number;
|
|
14
|
+
set pageSize(val: number);
|
|
15
|
+
pageSizeOptions: number[];
|
|
16
|
+
total: number;
|
|
17
|
+
layout: string[] | string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
readonly pageIndexChange: EventEmitter<number>;
|
|
20
|
+
readonly currentPageChange: EventEmitter<number>;
|
|
21
|
+
readonly pageSizeChange: EventEmitter<number>;
|
|
22
|
+
private _currentPage;
|
|
23
|
+
private _pageSize;
|
|
24
|
+
private readonly intlChangeSub;
|
|
25
|
+
get pageCount(): number;
|
|
26
|
+
constructor(intl: PaginatorIntl, cdr: ChangeDetectorRef);
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
getLayoutArr(): string[];
|
|
29
|
+
getCenterPages(): number[];
|
|
30
|
+
jumpTo(page: number): void;
|
|
31
|
+
navigate(step: number): void;
|
|
32
|
+
changePageSize(size: number): void;
|
|
33
|
+
onKeydown(event: KeyboardEvent): void;
|
|
34
|
+
trackByIndex(index: number): number;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorComponent, "aui-paginator", never, { "pageIndex": { "alias": "pageIndex"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "total": { "alias": "total"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "pageIndexChange": "pageIndexChange"; "currentPageChange": "currentPageChange"; "pageSizeChange": "pageSizeChange"; }, never, ["*"], true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "../button/button.module";
|
|
4
|
+
import * as i3 from "../icon/icon.module";
|
|
5
|
+
import * as i4 from "../select/select.module";
|
|
6
|
+
import * as i5 from "../input/input.module";
|
|
7
|
+
import * as i6 from "./paginator.component";
|
|
8
|
+
export declare class PaginatorModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaginatorModule, never, [typeof i1.CommonModule, typeof i2.ButtonModule, typeof i3.IconModule, typeof i4.SelectModule, typeof i5.InputModule, typeof i6.PaginatorComponent], [typeof i6.PaginatorComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaginatorModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
+
import { RadioGroupComponent } from './radio-group/radio-group.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class BaseRadio implements OnInit, AfterViewInit, OnDestroy {
|
|
7
|
+
protected radioGroup: RadioGroupComponent;
|
|
8
|
+
protected focusMonitor: FocusMonitor;
|
|
9
|
+
protected cdr: ChangeDetectorRef;
|
|
10
|
+
id: string;
|
|
11
|
+
disabled: boolean | '';
|
|
12
|
+
get value(): unknown;
|
|
13
|
+
set value(val: unknown);
|
|
14
|
+
elRef: ElementRef;
|
|
15
|
+
checked: boolean;
|
|
16
|
+
name: string;
|
|
17
|
+
protected _value: unknown;
|
|
18
|
+
protected readonly value$$: BehaviorSubject<unknown>;
|
|
19
|
+
protected destroy$$: Subject<void>;
|
|
20
|
+
constructor(radioGroup: RadioGroupComponent, focusMonitor: FocusMonitor, cdr: ChangeDetectorRef);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
ngAfterViewInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
onClick(): void;
|
|
25
|
+
onBlur(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseRadio, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRadio, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
package/radio/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
3
|
+
import { Bem } from '../../internal/utils';
|
|
4
|
+
import { BaseRadio } from '../base-radio';
|
|
5
|
+
import { RadioGroupComponent } from '../radio-group/radio-group.component';
|
|
6
|
+
import { RadioSize } from '../radio.types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class RadioButtonComponent extends BaseRadio implements OnInit {
|
|
9
|
+
bem: Bem;
|
|
10
|
+
size: RadioSize;
|
|
11
|
+
isPlain: boolean;
|
|
12
|
+
get rootClass(): string;
|
|
13
|
+
constructor(radioGroup: RadioGroupComponent, focusMonitor: FocusMonitor, cdr: ChangeDetectorRef);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "aui-radio-button", never, {}, {}, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CommonFormControl } from '../../form';
|
|
3
|
+
import { RadioSize } from '../radio.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RadioGroupComponent extends CommonFormControl<any> {
|
|
6
|
+
private readonly size$$;
|
|
7
|
+
private readonly isPlain$$;
|
|
8
|
+
private readonly name$$;
|
|
9
|
+
set size(val: RadioSize);
|
|
10
|
+
direction: 'column' | 'row';
|
|
11
|
+
set plain(val: boolean);
|
|
12
|
+
set name(val: string);
|
|
13
|
+
size$: Observable<RadioSize>;
|
|
14
|
+
isPlain$: Observable<boolean>;
|
|
15
|
+
name$: Observable<string>;
|
|
16
|
+
onRadioChange(value: any): void;
|
|
17
|
+
onRadioBlur(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "aui-radio-group", never, { "size": { "alias": "size"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "plain": { "alias": "plain"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { Bem } from '../internal/utils';
|
|
4
|
+
import { BaseRadio } from './base-radio';
|
|
5
|
+
import { RadioGroupComponent } from './radio-group/radio-group.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RadioComponent extends BaseRadio {
|
|
8
|
+
bem: Bem;
|
|
9
|
+
get rootClass(): string;
|
|
10
|
+
constructor(radioGroup: RadioGroupComponent, focusMonitor: FocusMonitor, cdr: ChangeDetectorRef);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "aui-radio", never, {}, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RadioButtonComponent } from './radio-button/radio-button.component';
|
|
2
|
+
import { RadioGroupComponent } from './radio-group/radio-group.component';
|
|
3
|
+
import { RadioComponent } from './radio.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "../icon/icon.module";
|
|
7
|
+
import * as i3 from "./radio.component";
|
|
8
|
+
import * as i4 from "./radio-group/radio-group.component";
|
|
9
|
+
import * as i5 from "./radio-button/radio-button.component";
|
|
10
|
+
export declare class RadioModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, never, [typeof i1.CommonModule, typeof i2.IconModule, typeof i3.RadioComponent, typeof i4.RadioGroupComponent, typeof i5.RadioButtonComponent], [typeof i3.RadioComponent, typeof i4.RadioGroupComponent, typeof i5.RadioButtonComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RadioModule>;
|
|
14
|
+
}
|
|
15
|
+
export declare const RADIO_MODULE: readonly [typeof RadioComponent, typeof RadioGroupComponent, typeof RadioButtonComponent];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ListRange } from '@angular/cdk/collections';
|
|
2
|
+
import { CdkVirtualScrollViewport, VirtualScrollStrategy } from '@angular/cdk/scrolling';
|
|
3
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FixedSizeTableVirtualScrollStrategy implements VirtualScrollStrategy {
|
|
6
|
+
private _rowHeight;
|
|
7
|
+
private _headerHeight;
|
|
8
|
+
private _bufferSize;
|
|
9
|
+
private readonly _indexChange;
|
|
10
|
+
viewport: CdkVirtualScrollViewport;
|
|
11
|
+
scrolledIndexChange: import("rxjs").Observable<number>;
|
|
12
|
+
stickyChange: Subject<number>;
|
|
13
|
+
renderedRangeStream: BehaviorSubject<ListRange>;
|
|
14
|
+
get dataLength(): number;
|
|
15
|
+
set dataLength(value: number);
|
|
16
|
+
private _dataLength;
|
|
17
|
+
attach(viewport: CdkVirtualScrollViewport): void;
|
|
18
|
+
detach(): void;
|
|
19
|
+
onContentScrolled(): void;
|
|
20
|
+
onDataLengthChanged(): void;
|
|
21
|
+
onContentRendered(): void;
|
|
22
|
+
onRenderedOffsetChanged(): void;
|
|
23
|
+
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
24
|
+
setConfig(rowHeight: number, headerHeight: number, bufferSize: number): void;
|
|
25
|
+
private _updateContent;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FixedSizeTableVirtualScrollStrategy, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FixedSizeTableVirtualScrollStrategy>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TableComponent } from '../table';
|
|
3
|
+
import { FixedSizeTableVirtualScrollStrategy } from './fixed-size-table-virtual-scroll-strategy';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare function _tableVirtualScrollDirectiveStrategyFactory(tableDir: FixedSizeTableVirtualScrollDirective): FixedSizeTableVirtualScrollStrategy;
|
|
6
|
+
export declare class FixedSizeTableVirtualScrollDirective<T = unknown> implements AfterContentInit, OnChanges, OnDestroy {
|
|
7
|
+
private readonly onDestroy$;
|
|
8
|
+
private readonly _dataSource$$;
|
|
9
|
+
rowHeight: number;
|
|
10
|
+
headerHeight: number;
|
|
11
|
+
buffer: number;
|
|
12
|
+
set dataSource(dataSource: T[]);
|
|
13
|
+
table: TableComponent<any>;
|
|
14
|
+
scrollStrategy: FixedSizeTableVirtualScrollStrategy;
|
|
15
|
+
private stickyPositions;
|
|
16
|
+
ngAfterContentInit(): void;
|
|
17
|
+
ngOnChanges({ rowHeight, headerHeight, buffer }: SimpleChanges): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
private isStickyEnabled;
|
|
20
|
+
private initStickyPositions;
|
|
21
|
+
private setSticky;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FixedSizeTableVirtualScrollDirective<any>, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FixedSizeTableVirtualScrollDirective<any>, "aui-virtual-scroll-viewport[fixedSize]", ["viewPort"], { "rowHeight": { "alias": "rowHeight"; "required": false; }; "headerHeight": { "alias": "headerHeight"; "required": false; }; "buffer": { "alias": "buffer"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, {}, ["table"], never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CdkFixedSizeVirtualScroll } from '@angular/cdk/scrolling';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FixedSizeVirtualScrollDirective extends CdkFixedSizeVirtualScroll {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FixedSizeVirtualScrollDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FixedSizeVirtualScrollDirective, "aui-virtual-scroll-viewport[itemSize]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './fixed-size-table-virtual-scroll.directive';
|
|
2
|
+
export * from './fixed-size-table-virtual-scroll-strategy';
|
|
3
|
+
export * from './fixed-size-virtual-scroll.directive';
|
|
4
|
+
export * from './scrolling.module';
|
|
5
|
+
export * from './virtual-for-of.directive';
|
|
6
|
+
export * from './virtual-scroll-viewport.component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./virtual-scroll-viewport.component";
|
|
3
|
+
import * as i2 from "./fixed-size-table-virtual-scroll.directive";
|
|
4
|
+
import * as i3 from "./fixed-size-virtual-scroll.directive";
|
|
5
|
+
import * as i4 from "./virtual-for-of.directive";
|
|
6
|
+
export declare class ScrollingModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollingModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, never, [typeof i1.VirtualScrollViewportComponent, typeof i2.FixedSizeTableVirtualScrollDirective, typeof i3.FixedSizeVirtualScrollDirective, typeof i4.VirtualForOfDirective], [typeof i1.VirtualScrollViewportComponent, typeof i2.FixedSizeTableVirtualScrollDirective, typeof i3.FixedSizeVirtualScrollDirective, typeof i4.VirtualForOfDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollingModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
2
|
+
import { CdkVirtualForOf, CdkVirtualForOfContext } from '@angular/cdk/scrolling';
|
|
3
|
+
import { NgIterable, TemplateRef, TrackByFunction } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class VirtualForOfDirective<T> extends CdkVirtualForOf<T> {
|
|
7
|
+
set auiVirtualForOf(value: DataSource<T> | NgIterable<T> | Observable<T[]> | null | undefined);
|
|
8
|
+
set auiVirtualForTrackBy(fn: TrackByFunction<T> | undefined);
|
|
9
|
+
set auiVirtualForTemplate(value: TemplateRef<CdkVirtualForOfContext<T>>);
|
|
10
|
+
set auiVirtualForTemplateCacheSize(size: number);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualForOfDirective<any>, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VirtualForOfDirective<any>, "[auiVirtualFor][auiVirtualForOf]", never, { "auiVirtualForOf": { "alias": "auiVirtualForOf"; "required": false; }; "auiVirtualForTrackBy": { "alias": "auiVirtualForTrackBy"; "required": false; }; "auiVirtualForTemplate": { "alias": "auiVirtualForTemplate"; "required": false; }; "auiVirtualForTemplateCacheSize": { "alias": "auiVirtualForTemplateCacheSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class VirtualScrollViewportComponent extends CdkVirtualScrollViewport {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualScrollViewportComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VirtualScrollViewportComponent, "aui-virtual-scroll-viewport", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
+
import { CommonFormControl } from '../form';
|
|
4
|
+
import { ComponentSize } from '../internal/types';
|
|
5
|
+
import { TooltipDirective } from '../tooltip';
|
|
6
|
+
import { OptionContentDirective } from './helper-directives';
|
|
7
|
+
import { OptionComponent } from './option/option.component';
|
|
8
|
+
import { OptionFilterFn, SelectFilterOption, TrackFn } from './select.types';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare abstract class BaseSelect<T, V = T> extends CommonFormControl<V> implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
11
|
+
get size(): ComponentSize;
|
|
12
|
+
set size(val: ComponentSize);
|
|
13
|
+
filterable: boolean;
|
|
14
|
+
clearable: boolean;
|
|
15
|
+
filterFn: OptionFilterFn<T>;
|
|
16
|
+
trackFn: TrackFn<T>;
|
|
17
|
+
labelFn?: (value: T) => string;
|
|
18
|
+
allowCreate: boolean;
|
|
19
|
+
get allOptions(): OptionComponent<T>[];
|
|
20
|
+
get opened(): boolean;
|
|
21
|
+
get inaction(): boolean;
|
|
22
|
+
get filterString(): string;
|
|
23
|
+
set filterString(val: string);
|
|
24
|
+
loading: boolean;
|
|
25
|
+
placeholder: string;
|
|
26
|
+
defaultFirstOption: boolean;
|
|
27
|
+
lazy: boolean;
|
|
28
|
+
filterChange: EventEmitter<string>;
|
|
29
|
+
show: EventEmitter<void>;
|
|
30
|
+
hide: EventEmitter<void>;
|
|
31
|
+
protected selectRef: ElementRef<HTMLElement>;
|
|
32
|
+
protected tooltipRef: TooltipDirective;
|
|
33
|
+
protected optionListRef: ElementRef<HTMLDivElement>;
|
|
34
|
+
protected inputtingOption: OptionComponent<T>;
|
|
35
|
+
protected optionContent?: OptionContentDirective;
|
|
36
|
+
customOptions: QueryList<OptionComponent<T>>;
|
|
37
|
+
contentOptions: QueryList<OptionComponent<T>>;
|
|
38
|
+
isTemplateRef: (label: any) => label is import("@angular/core").TemplateRef<unknown>;
|
|
39
|
+
isMulti: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Utility field to make sure the users always see the value as type array
|
|
42
|
+
*/
|
|
43
|
+
abstract readonly values$: Observable<T[]>;
|
|
44
|
+
allOptions$: Observable<Array<OptionComponent<T>>>;
|
|
45
|
+
protected focusedOption: OptionComponent<T>;
|
|
46
|
+
private _size;
|
|
47
|
+
private _filterString;
|
|
48
|
+
protected destroy$$: Subject<void>;
|
|
49
|
+
protected size$$: BehaviorSubject<ComponentSize>;
|
|
50
|
+
private readonly filterString$$;
|
|
51
|
+
size$: Observable<ComponentSize>;
|
|
52
|
+
filterString$: Observable<string>;
|
|
53
|
+
optionVisibles$: Observable<boolean[]>;
|
|
54
|
+
hasVisibleOption$: Observable<boolean>;
|
|
55
|
+
hasMatchedOption$: Observable<boolean>;
|
|
56
|
+
customCreatedOptions$: Observable<Array<SelectFilterOption<T>>>;
|
|
57
|
+
containerWidth: string;
|
|
58
|
+
ngAfterContentInit(): void;
|
|
59
|
+
ngAfterViewInit(): void;
|
|
60
|
+
ngOnDestroy(): void;
|
|
61
|
+
openOption(): void;
|
|
62
|
+
closeOption(): void;
|
|
63
|
+
onShowOptions(): void;
|
|
64
|
+
onHideOptions(): void;
|
|
65
|
+
onInput(event: Event): void;
|
|
66
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
67
|
+
onOptionClick(option: OptionComponent<T>): void;
|
|
68
|
+
protected autoFocusFirstOption(): void;
|
|
69
|
+
protected focusOptionDir(dir: 'down' | 'up'): void;
|
|
70
|
+
protected resetFocusedOption(focusedOption?: OptionComponent<T>): void;
|
|
71
|
+
protected scrollToOption(option: OptionComponent<T>): void;
|
|
72
|
+
protected selectFocusedOption(): void;
|
|
73
|
+
protected escSelect(): void;
|
|
74
|
+
private _trackFn;
|
|
75
|
+
private _filterFn;
|
|
76
|
+
abstract selectOption(option: OptionComponent<T>): void;
|
|
77
|
+
abstract clearValue(event: Event): void;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelect<any, any>, never>;
|
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseSelect<any, any>, never, never, { "size": { "alias": "size"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "filterFn": { "alias": "filterFn"; "required": false; }; "trackFn": { "alias": "trackFn"; "required": false; }; "labelFn": { "alias": "labelFn"; "required": false; }; "allowCreate": { "alias": "allowCreate"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultFirstOption": { "alias": "defaultFirstOption"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; }, { "filterChange": "filterChange"; "show": "show"; "hide": "hide"; }, ["optionContent", "contentOptions"], never, true, never>;
|
|
80
|
+
static ngAcceptInputType_filterable: unknown;
|
|
81
|
+
static ngAcceptInputType_clearable: unknown;
|
|
82
|
+
static ngAcceptInputType_allowCreate: unknown;
|
|
83
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OptionGroupTitleDirective {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionGroupTitleDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OptionGroupTitleDirective, "[auiOptionGroupTitle]", ["auiOptionGroupTitle"], {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
7
|
+
export declare class OptionContentDirective implements OnDestroy {
|
|
8
|
+
private readonly templateRef;
|
|
9
|
+
private readonly appRef;
|
|
10
|
+
private readonly viewContainerRef;
|
|
11
|
+
private readonly componentFactoryResolver;
|
|
12
|
+
private readonly injector;
|
|
13
|
+
private portal;
|
|
14
|
+
private outlet;
|
|
15
|
+
private readonly doc;
|
|
16
|
+
constructor(templateRef: TemplateRef<unknown>, appRef: ApplicationRef, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, document: any);
|
|
17
|
+
attach(context?: any): void;
|
|
18
|
+
detach(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionContentDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OptionContentDirective, "*[auiOptionContent]", ["auiOptionContent"], {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './helper-directives';
|
|
2
|
+
export * from './multi-select/multi-select.component';
|
|
3
|
+
export * from './option/option.component';
|
|
4
|
+
export * from './option-group/option-group.component';
|
|
5
|
+
export * from './option-placeholder.component';
|
|
6
|
+
export * from './select.component';
|
|
7
|
+
export * from './select.module';
|
|
8
|
+
export * from './select.types';
|
|
9
|
+
export * from './validators';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Bem } from '../../internal/utils';
|
|
4
|
+
import { BaseSelect } from '../base-select';
|
|
5
|
+
import { OptionComponent } from '../option/option.component';
|
|
6
|
+
import { SelectAllStatus, SelectFilterOption, TagClassFn } from '../select.types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]> implements AfterContentInit, AfterViewInit {
|
|
9
|
+
private readonly renderer;
|
|
10
|
+
bem: Bem;
|
|
11
|
+
bemSelectAll: Bem;
|
|
12
|
+
selectedOptions$: Observable<Array<SelectFilterOption<T>>>;
|
|
13
|
+
selectAllStatus$: Observable<SelectAllStatus>;
|
|
14
|
+
selectAllStatus: SelectAllStatus;
|
|
15
|
+
hasEnabledOptions$: Observable<boolean>;
|
|
16
|
+
isMulti: boolean;
|
|
17
|
+
model: T[];
|
|
18
|
+
values$: import("rxjs").ReplaySubject<T[]>;
|
|
19
|
+
tagClassFn: TagClassFn<T>;
|
|
20
|
+
maxRowCount: number;
|
|
21
|
+
customRowHeight: number;
|
|
22
|
+
allowSelectAll: boolean;
|
|
23
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
24
|
+
inputValueMirror: ElementRef<HTMLElement>;
|
|
25
|
+
get hostPosition(): string;
|
|
26
|
+
get hostDisplay(): string;
|
|
27
|
+
inputValue: string;
|
|
28
|
+
hasDisabledOption: boolean;
|
|
29
|
+
get rootClass(): string;
|
|
30
|
+
get tagSize(): "medium" | "mini";
|
|
31
|
+
get inputClass(): string;
|
|
32
|
+
get displayClearBtn(): number;
|
|
33
|
+
get maxHeight(): string;
|
|
34
|
+
private readonly withMaxRowCount;
|
|
35
|
+
focused: boolean;
|
|
36
|
+
trackByValue: (_: number, item: SelectFilterOption<T>) => unknown;
|
|
37
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2);
|
|
38
|
+
ngAfterContentInit(): void;
|
|
39
|
+
ngAfterViewInit(): void;
|
|
40
|
+
onVisibleOptions(visible: boolean): void;
|
|
41
|
+
onInput(event: Event): void;
|
|
42
|
+
onInputFocus(): void;
|
|
43
|
+
onInputBlur(): void;
|
|
44
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
45
|
+
selectOption(option: OptionComponent<T>): void;
|
|
46
|
+
addValue(value: T): void;
|
|
47
|
+
removeValue(value: T): void;
|
|
48
|
+
clearValue(event: Event): void;
|
|
49
|
+
onSelectAllClick(): void;
|
|
50
|
+
private includes;
|
|
51
|
+
protected valueIn(v: T[]): T[];
|
|
52
|
+
private resetInput;
|
|
53
|
+
private setInputWidth;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent<any>, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent<any>, "aui-multi-select", never, { "tagClassFn": { "alias": "tagClassFn"; "required": false; }; "maxRowCount": { "alias": "maxRowCount"; "required": false; }; "customRowHeight": { "alias": "customRowHeight"; "required": false; }; "allowSelectAll": { "alias": "allowSelectAll"; "required": false; }; }, {}, never, ["*", "aui-option-placeholder"], true, never>;
|
|
56
|
+
static ngAcceptInputType_allowSelectAll: unknown;
|
|
57
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ComponentSize } from '../../internal/types';
|
|
4
|
+
import { Bem } from '../../internal/utils';
|
|
5
|
+
import { BaseSelect } from '../base-select';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class OptionComponent<T> {
|
|
8
|
+
private readonly cdr;
|
|
9
|
+
bem: Bem;
|
|
10
|
+
private _disabled;
|
|
11
|
+
private _label;
|
|
12
|
+
private _labelContext;
|
|
13
|
+
private _value;
|
|
14
|
+
private readonly label$$;
|
|
15
|
+
private readonly labelContext$$;
|
|
16
|
+
private readonly value$$;
|
|
17
|
+
private readonly disabled$$;
|
|
18
|
+
get label(): string | TemplateRef<unknown>;
|
|
19
|
+
set label(val: string | TemplateRef<unknown>);
|
|
20
|
+
get labelContext(): unknown;
|
|
21
|
+
set labelContext(val: unknown);
|
|
22
|
+
get value(): T;
|
|
23
|
+
set value(val: T);
|
|
24
|
+
get disabled(): boolean;
|
|
25
|
+
set disabled(val: boolean | '');
|
|
26
|
+
isMulti: boolean;
|
|
27
|
+
elRef: ElementRef<HTMLDivElement>;
|
|
28
|
+
private readonly select;
|
|
29
|
+
selected: boolean;
|
|
30
|
+
visible: boolean;
|
|
31
|
+
size: ComponentSize;
|
|
32
|
+
focused: boolean;
|
|
33
|
+
value$: Observable<T>;
|
|
34
|
+
label$: Observable<string | TemplateRef<unknown>>;
|
|
35
|
+
labelContext$: Observable<unknown>;
|
|
36
|
+
disabled$: Observable<boolean>;
|
|
37
|
+
selected$: Observable<boolean>;
|
|
38
|
+
size$: Observable<ComponentSize>;
|
|
39
|
+
visible$: Observable<boolean>;
|
|
40
|
+
constructor(cdr: ChangeDetectorRef, select: BaseSelect<T>);
|
|
41
|
+
onClick(): void;
|
|
42
|
+
focus(): void;
|
|
43
|
+
blur(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent<any>, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent<any>, "aui-option", never, { "label": { "alias": "label"; "required": false; }; "labelContext": { "alias": "labelContext"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
46
|
+
}
|