UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

193 lines (185 loc) 6.97 kB
import * as i0 from '@angular/core'; import { Directive, Input, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import '@cds/core/pagination/register.js'; /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ class CdsPaginationDirective { constructor(elementRef) { this.element = elementRef.nativeElement; } } CdsPaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsPaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsPaginationDirective, selector: "cds-pagination", ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-pagination' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } }); /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ class CdsPaginationButtonDirective { constructor(elementRef) { this.element = elementRef.nativeElement; } get action() { return this.element.action; } set action(value) { this.element.action = value; } ; get disabled() { return this.element.disabled; } set disabled(value) { this.element.disabled = value === '' ? true : value; } ; get shape() { return this.element.shape; } set shape(value) { this.element.shape = value; } ; get iconSize() { return this.element.iconSize; } set iconSize(value) { this.element.iconSize = value; } ; get i18n() { return this.element.i18n; } set i18n(value) { this.element.i18n = value; } ; get pressed() { return this.element.pressed; } set pressed(value) { this.element.pressed = value === '' ? true : value; } ; get expanded() { return this.element.expanded; } set expanded(value) { this.element.expanded = value === '' ? true : value; } ; get readonly() { return this.element.readonly; } set readonly(value) { this.element.readonly = value === '' ? true : value; } ; get type() { return this.element.type; } set type(value) { this.element.type = value; } ; get name() { return this.element.name; } set name(value) { this.element.name = value; } ; get value() { return this.element.value; } set value(value) { this.element.value = value; } ; get popup() { return this.element.popup; } set popup(value) { this.element.popup = value; } ; } CdsPaginationButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationButtonDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsPaginationButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsPaginationButtonDirective, selector: "cds-pagination-button", inputs: { action: "action", disabled: "disabled", shape: "shape", iconSize: "iconSize", i18n: "i18n", pressed: "pressed", expanded: "expanded", readonly: "readonly", type: "type", name: "name", value: "value", popup: "popup" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationButtonDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-pagination-button' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { action: [{ type: Input }], disabled: [{ type: Input }], shape: [{ type: Input }], iconSize: [{ type: Input }], i18n: [{ type: Input }], pressed: [{ type: Input }], expanded: [{ type: Input }], readonly: [{ type: Input }], type: [{ type: Input }], name: [{ type: Input }], value: [{ type: Input }], popup: [{ type: Input }] } }); /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ class CdsPaginationModule { } CdsPaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); CdsPaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationModule, declarations: [CdsPaginationDirective, CdsPaginationButtonDirective], imports: [CommonModule], exports: [CdsPaginationDirective, CdsPaginationButtonDirective] }); CdsPaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationModule, imports: [[CommonModule]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsPaginationModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule], declarations: [ CdsPaginationDirective, CdsPaginationButtonDirective, ], exports: [ CdsPaginationDirective, CdsPaginationButtonDirective, ], }] }] }); /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ /** * Generated bundle index. Do not edit. */ export { CdsPaginationButtonDirective, CdsPaginationDirective, CdsPaginationModule }; //# sourceMappingURL=pagination.mjs.map