@spicainternational/ngx-sds-components 5.25.1 → 5.25.2
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/esm2020/src/lib/table-actions/table-actions.component.mjs +10 -18
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +9 -18
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +9 -17
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/table-actions/table-actions.component.d.ts +3 -8
- package/esm2020/src/lib/table-actions/table-actions.model.mjs +0 -2
- package/src/lib/table-actions/table-actions.model.d.ts +0 -13
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
import { Component, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "@fortawesome/angular-fontawesome";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
4
|
export class SdsTableActionsComponent {
|
|
5
|
+
// @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;
|
|
6
6
|
constructor() {
|
|
7
|
-
this.
|
|
8
|
-
this.optionsIcon = ['far', 'ellipsis'];
|
|
9
|
-
this.showIcons = true;
|
|
10
|
-
this.optionsButtonUUID = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;
|
|
11
|
-
this.showDropdown = false;
|
|
7
|
+
this.dropdownIcon = ['far', 'ellipsis'];
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
}
|
|
9
|
+
closeDropdown() {
|
|
10
|
+
// if (this._dropdownButton?.nativeElement) {
|
|
11
|
+
// this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');
|
|
12
|
+
// }
|
|
17
13
|
}
|
|
18
14
|
ngOnInit() { }
|
|
19
15
|
}
|
|
20
16
|
SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: {
|
|
17
|
+
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, ngImport: i0, template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
22
18
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, decorators: [{
|
|
23
19
|
type: Component,
|
|
24
|
-
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-
|
|
25
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
26
|
-
type: Input
|
|
27
|
-
}], optionsIcon: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], showIcons: [{
|
|
20
|
+
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
|
|
21
|
+
}], ctorParameters: function () { return []; }, propDecorators: { dropdownIcon: [{
|
|
30
22
|
type: Input
|
|
31
23
|
}] } });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi90YWJsZS1hY3Rpb25zL3RhYmxlLWFjdGlvbnMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNkcy1jb21wb25lbnRzL3NyYy9saWIvdGFibGUtYWN0aW9ucy90YWJsZS1hY3Rpb25zLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWMsS0FBSyxFQUEwRCxNQUFNLGVBQWUsQ0FBQzs7O0FBUXJILE1BQU0sT0FBTyx3QkFBd0I7SUFHakMsa0dB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gICAgICBhcmlhLWV4cGFuZGVkPVwiZmFsc2VcIj5cbiAgICAgICAgICAgICAgICA8ZmEtaWNvbiBcbiAgICAgICAgICAgICAgICAgICAgW2ljb25dPVwiZHJvcGRvd25JY29uXCIgXG4gICAgICAgICAgICAgICAgICAgIFtmaXhlZFdpZHRoXT1cInRydWVcIiBcbiAgICAgICAgICAgICAgICAgICAgW3NpemVdPVwiJ3NtJ1wiPlxuICAgICAgICAgICAgICAgIDwvZmEtaWNvbj5cbiAgICAgICAgICAgIDwvYnV0dG9uPlxuXG4gICAgICAgICAgICA8dWwgY2xhc3M9XCJkcm9wZG93bi1tZW51IHNkcy10YWJsZS1kcm9wZG93bi1tZW51IHB5LTJcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgICA8L3VsPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvZGl2PiJdfQ==
|
|
@@ -1,37 +1,28 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, Input, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
3
|
import { CommonModule } from '@angular/common';
|
|
5
4
|
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
6
5
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
6
|
import { DxPopoverModule } from 'devextreme-angular';
|
|
8
7
|
|
|
9
8
|
class SdsTableActionsComponent {
|
|
9
|
+
// @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;
|
|
10
10
|
constructor() {
|
|
11
|
-
this.
|
|
12
|
-
this.optionsIcon = ['far', 'ellipsis'];
|
|
13
|
-
this.showIcons = true;
|
|
14
|
-
this.optionsButtonUUID = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;
|
|
15
|
-
this.showDropdown = false;
|
|
11
|
+
this.dropdownIcon = ['far', 'ellipsis'];
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
13
|
+
closeDropdown() {
|
|
14
|
+
// if (this._dropdownButton?.nativeElement) {
|
|
15
|
+
// this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');
|
|
16
|
+
// }
|
|
22
17
|
}
|
|
23
18
|
ngOnInit() { }
|
|
24
19
|
}
|
|
25
20
|
SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: {
|
|
21
|
+
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, ngImport: i0, template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
27
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, decorators: [{
|
|
28
23
|
type: Component,
|
|
29
|
-
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-
|
|
30
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
31
|
-
type: Input
|
|
32
|
-
}], optionsIcon: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}], showIcons: [{
|
|
24
|
+
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
|
|
25
|
+
}], ctorParameters: function () { return []; }, propDecorators: { dropdownIcon: [{
|
|
35
26
|
type: Input
|
|
36
27
|
}] } });
|
|
37
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-table-actions.mjs","sources":["../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.ts","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.html","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.module.ts","../../../projects/ngx-sds-components/src/lib/table-actions/spicainternational-ngx-sds-components-src-lib-table-actions.ts"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-table-actions.mjs","sources":["../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.ts","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.html","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.module.ts","../../../projects/ngx-sds-components/src/lib/table-actions/spicainternational-ngx-sds-components-src-lib-table-actions.ts"],"sourcesContent":["import { Component, ElementRef, Input, OnChanges, OnInit, Renderer2, SimpleChanges, ViewChild } from '@angular/core';\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\n\n@Component({\n selector: 'sds-table-actions',\n templateUrl: './table-actions.component.html',\n styleUrls: ['./table-actions.component.scss'],\n})\nexport class SdsTableActionsComponent implements OnInit {\n\n @Input() dropdownIcon: IconProp = ['far', 'ellipsis'];\n // @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;\n\n constructor(\n // private _renderer: Renderer2\n ) {}\n\n public closeDropdown(): void {\n // if (this._dropdownButton?.nativeElement) {\n // this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');\n // }\n }\n\n ngOnInit(): void {}\n}\n","\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SdsTableActionsComponent } from './table-actions.component';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { DxPopoverModule } from 'devextreme-angular';\n\n\n\n@NgModule({\n declarations: [\n SdsTableActionsComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule,\n DxPopoverModule\n ],\n exports: [\n SdsTableActionsComponent\n ]\n})\nexport class SdsTableActionsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,wBAAwB,CAAA;;AAKjC,IAAA,WAAA,GAAA;QAHS,IAAA,CAAA,YAAY,GAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;KAKlD;IAEG,aAAa,GAAA;;;;KAInB;AAED,IAAA,QAAQ,MAAW;;qHAfV,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,mGCRrC,83BAyBM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,SAAA,EAAA,QAAA,EAAA,QAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDjBO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;+BACI,mBAAmB,EAAA,QAAA,EAAA,83BAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;0EAMpB,YAAY,EAAA,CAAA;sBAApB,KAAK;;;MEWG,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,YAAA,EAAA,CAX9B,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAGxB,YAAY;QACZ,iBAAiB;QACjB,eAAe,aAGf,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAGf,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EATvB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,iBAAiB;YACjB,eAAe;SAChB,CAAA,EAAA,CAAA,CAAA;2FAKU,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAbjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;AACzB,qBAAA;iBACF,CAAA;;;ACpBD;;AAEG;;;;"}
|
|
@@ -1,36 +1,28 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, Input, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
3
|
import { CommonModule } from '@angular/common';
|
|
5
4
|
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
6
5
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
6
|
import { DxPopoverModule } from 'devextreme-angular';
|
|
8
7
|
|
|
9
8
|
class SdsTableActionsComponent {
|
|
9
|
+
// @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;
|
|
10
10
|
constructor() {
|
|
11
|
-
this.
|
|
12
|
-
this.optionsIcon = ['far', 'ellipsis'];
|
|
13
|
-
this.showIcons = true;
|
|
14
|
-
this.optionsButtonUUID = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;
|
|
15
|
-
this.showDropdown = false;
|
|
11
|
+
this.dropdownIcon = ['far', 'ellipsis'];
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
}
|
|
13
|
+
closeDropdown() {
|
|
14
|
+
// if (this._dropdownButton?.nativeElement) {
|
|
15
|
+
// this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');
|
|
16
|
+
// }
|
|
21
17
|
}
|
|
22
18
|
ngOnInit() { }
|
|
23
19
|
}
|
|
24
20
|
SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: {
|
|
21
|
+
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, ngImport: i0, template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
26
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, decorators: [{
|
|
27
23
|
type: Component,
|
|
28
|
-
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-
|
|
29
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
30
|
-
type: Input
|
|
31
|
-
}], optionsIcon: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], showIcons: [{
|
|
24
|
+
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
|
|
25
|
+
}], ctorParameters: function () { return []; }, propDecorators: { dropdownIcon: [{
|
|
34
26
|
type: Input
|
|
35
27
|
}] } });
|
|
36
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-table-actions.mjs","sources":["../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.ts","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.html","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.module.ts","../../../projects/ngx-sds-components/src/lib/table-actions/spicainternational-ngx-sds-components-src-lib-table-actions.ts"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-table-actions.mjs","sources":["../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.ts","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.component.html","../../../projects/ngx-sds-components/src/lib/table-actions/table-actions.module.ts","../../../projects/ngx-sds-components/src/lib/table-actions/spicainternational-ngx-sds-components-src-lib-table-actions.ts"],"sourcesContent":["import { Component, ElementRef, Input, OnChanges, OnInit, Renderer2, SimpleChanges, ViewChild } from '@angular/core';\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\n\n@Component({\n selector: 'sds-table-actions',\n templateUrl: './table-actions.component.html',\n styleUrls: ['./table-actions.component.scss'],\n})\nexport class SdsTableActionsComponent implements OnInit {\n\n @Input() dropdownIcon: IconProp = ['far', 'ellipsis'];\n // @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;\n\n constructor(\n // private _renderer: Renderer2\n ) {}\n\n public closeDropdown(): void {\n // if (this._dropdownButton?.nativeElement) {\n // this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');\n // }\n }\n\n ngOnInit(): void {}\n}\n","\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\" role=\"group\" aria-label=\"Basic example\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\" role=\"group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button btn btn-outline-secondary btn-sm\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n aria-expanded=\"false\">\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SdsTableActionsComponent } from './table-actions.component';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { DxPopoverModule } from 'devextreme-angular';\n\n\n\n@NgModule({\n declarations: [\n SdsTableActionsComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule,\n DxPopoverModule\n ],\n exports: [\n SdsTableActionsComponent\n ]\n})\nexport class SdsTableActionsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,wBAAwB,CAAA;;AAKjC,IAAA,WAAA,GAAA;AAHS,QAAA,IAAA,CAAA,YAAY,GAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;KAKlD;IAEG,aAAa,GAAA;;;;KAInB;AAED,IAAA,QAAQ,MAAW;;qHAfV,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,mGCRrC,83BAyBM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,SAAA,EAAA,QAAA,EAAA,QAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDjBO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;+BACI,mBAAmB,EAAA,QAAA,EAAA,83BAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;0EAMpB,YAAY,EAAA,CAAA;sBAApB,KAAK;;;MEWG,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,YAAA,EAAA,CAX9B,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAGxB,YAAY;QACZ,iBAAiB;AACjB,QAAA,eAAe,aAGf,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAGf,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EATvB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,iBAAiB;YACjB,eAAe;AAChB,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAbjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { TableAction, TableActionDivider } from './table-actions.model';
|
|
3
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class SdsTableActionsComponent implements OnInit {
|
|
6
|
-
|
|
7
|
-
optionsIcon: IconProp;
|
|
8
|
-
showIcons: boolean;
|
|
9
|
-
optionsButtonUUID: string;
|
|
10
|
-
showDropdown: boolean;
|
|
5
|
+
dropdownIcon: IconProp;
|
|
11
6
|
constructor();
|
|
12
|
-
|
|
7
|
+
closeDropdown(): void;
|
|
13
8
|
ngOnInit(): void;
|
|
14
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsTableActionsComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsTableActionsComponent, "sds-table-actions", never, { "
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsTableActionsComponent, "sds-table-actions", never, { "dropdownIcon": "dropdownIcon"; }, {}, never, ["quickActions", "*"]>;
|
|
16
11
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtYWN0aW9ucy5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZHMtY29tcG9uZW50cy9zcmMvbGliL3RhYmxlLWFjdGlvbnMvdGFibGUtYWN0aW9ucy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSWNvblByb3AgfSBmcm9tIFwiQGZvcnRhd2Vzb21lL2ZvbnRhd2Vzb21lLXN2Zy1jb3JlXCI7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFRhYmxlQWN0aW9uIHtcclxuICAgIHR5cGU6ICdhY3Rpb24nO1xyXG4gICAgbmFtZTogc3RyaW5nO1xyXG4gICAgaWNvbjogSWNvblByb3AgfCB1bmRlZmluZWQ7XHJcbiAgICBkaXNhYmxlZDogYm9vbGVhbjtcclxuICAgIGNhbGxiYWNrPzogRnVuY3Rpb247XHJcbiAgICBzcG90bGlnaHQ6IGJvb2xlYW47XHJcbiAgICBzdHlsZTogJ2RlZmF1bHQnIHwgJ2Rhbmdlcic7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgVGFibGVBY3Rpb25EaXZpZGVyIHtcclxuICAgIHR5cGU6ICdkaXZpZGVyJztcclxufSJdfQ==
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
export interface TableAction {
|
|
3
|
-
type: 'action';
|
|
4
|
-
name: string;
|
|
5
|
-
icon: IconProp | undefined;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
callback?: Function;
|
|
8
|
-
spotlight: boolean;
|
|
9
|
-
style: 'default' | 'danger';
|
|
10
|
-
}
|
|
11
|
-
export interface TableActionDivider {
|
|
12
|
-
type: 'divider';
|
|
13
|
-
}
|