@spicainternational/ngx-sds-components 5.25.4 → 5.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/src/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2020/src/lib/number-box/number-box.component.mjs +140 -0
- package/esm2020/src/lib/number-box/number-box.module.mjs +30 -0
- package/esm2020/src/lib/number-box/public-api.mjs +3 -0
- package/esm2020/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.mjs +5 -0
- package/esm2020/src/lib/table-actions/table-actions.component.mjs +7 -18
- package/esm2020/src/lib/table-actions/table-actions.module.mjs +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +2 -2
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs +174 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +6 -17
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components.mjs +1 -0
- package/fesm2015/spicainternational-ngx-sds-components.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +2 -2
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs +174 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +6 -17
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components.mjs +1 -0
- package/fesm2020/spicainternational-ngx-sds-components.mjs.map +1 -1
- package/package.json +9 -1
- package/public-api.d.ts +1 -0
- package/src/lib/number-box/number-box.component.d.ts +83 -0
- package/src/lib/number-box/number-box.module.d.ts +9 -0
- package/src/lib/number-box/package.json +10 -0
- package/src/lib/number-box/public-api.d.ts +2 -0
- package/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.d.ts +5 -0
- package/src/lib/table-actions/table-actions.component.d.ts +2 -6
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { faMinus, faPlus, faChevronLeft, faChevronRight } from '@fortawesome/pro-regular-svg-icons';
|
|
6
|
+
import { Subject, debounceTime, interval, takeUntil } from 'rxjs';
|
|
7
|
+
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
8
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
9
|
+
|
|
10
|
+
class SdsNumberBoxComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.value = 0;
|
|
13
|
+
this.valueChange = new EventEmitter();
|
|
14
|
+
/**
|
|
15
|
+
* Width of component. By default 8rem.
|
|
16
|
+
*
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof SdsDurationBoxComponent
|
|
19
|
+
*/
|
|
20
|
+
this.width = '8rem';
|
|
21
|
+
/**
|
|
22
|
+
* Specifies whether the UI component responds to user interaction.
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SdsDurationBoxComponent
|
|
26
|
+
*/
|
|
27
|
+
this.disabled = false;
|
|
28
|
+
/**
|
|
29
|
+
* The increment by which the value is increased or decreased.
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof SdsDurationBoxComponent
|
|
33
|
+
*/
|
|
34
|
+
this.step = 1;
|
|
35
|
+
/**
|
|
36
|
+
* The icon set to use for the increment and decrement buttons.
|
|
37
|
+
* Icons used are from the FrontAwesome library, so you must include them in the project to use them.
|
|
38
|
+
* You can add them to FA library on the module/component level.
|
|
39
|
+
* Icons: regular, minus/plus, chevron-left/right
|
|
40
|
+
*
|
|
41
|
+
* @type {('plus-minus' | 'left-right')}
|
|
42
|
+
* @memberof SdsNumberBoxComponent
|
|
43
|
+
*/
|
|
44
|
+
this.iconSet = 'plus-minus';
|
|
45
|
+
/**
|
|
46
|
+
* Interval between value changes when the increment or decrement button is held down.
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SdsNumberBoxComponent
|
|
50
|
+
*/
|
|
51
|
+
this.burstInterval = 120;
|
|
52
|
+
/**
|
|
53
|
+
* Interval in which new value is emitted to the parent component.
|
|
54
|
+
* It should be higher than burstInterval to prevent multiple value changes in burst mode.
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SdsNumberBoxComponent
|
|
58
|
+
*/
|
|
59
|
+
this.debounceTime = 150;
|
|
60
|
+
this.ICON_MINUS = faMinus;
|
|
61
|
+
this.ICON_PLUS = faPlus;
|
|
62
|
+
this.ICON_LEFT = faChevronLeft;
|
|
63
|
+
this.ICON_RIGHT = faChevronRight;
|
|
64
|
+
this.destroy$ = new Subject();
|
|
65
|
+
this.newValue$ = new Subject();
|
|
66
|
+
}
|
|
67
|
+
ngOnInit() {
|
|
68
|
+
this.newValue$.pipe(debounceTime(this.debounceTime)).subscribe(() => {
|
|
69
|
+
this.valueChange.emit(this.value);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
increment() {
|
|
73
|
+
const newValue = this.value + this.step;
|
|
74
|
+
if (typeof this.max !== 'undefined' && newValue > this.max) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
this.value = newValue;
|
|
78
|
+
this.newValue$.next(this.value);
|
|
79
|
+
}
|
|
80
|
+
decrement() {
|
|
81
|
+
const newValue = this.value - this.step;
|
|
82
|
+
if (typeof this.min !== 'undefined' && newValue < this.min) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this.value = newValue;
|
|
86
|
+
this.newValue$.next(this.value);
|
|
87
|
+
}
|
|
88
|
+
startIncrement() {
|
|
89
|
+
this.increment();
|
|
90
|
+
console.log('startIncrement');
|
|
91
|
+
interval(this.burstInterval)
|
|
92
|
+
.pipe(takeUntil(this.destroy$))
|
|
93
|
+
.subscribe(() => {
|
|
94
|
+
this.increment();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
stopIncrement() {
|
|
98
|
+
console.log('stopIncrement');
|
|
99
|
+
this.destroy$.next();
|
|
100
|
+
}
|
|
101
|
+
startDecrement() {
|
|
102
|
+
this.decrement();
|
|
103
|
+
interval(this.burstInterval)
|
|
104
|
+
.pipe(takeUntil(this.destroy$))
|
|
105
|
+
.subscribe(() => {
|
|
106
|
+
this.decrement();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
stopDecrement() {
|
|
110
|
+
this.destroy$.next();
|
|
111
|
+
}
|
|
112
|
+
ngOnDestroy() {
|
|
113
|
+
this.destroy$.complete();
|
|
114
|
+
this.newValue$.complete();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
SdsNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
118
|
+
SdsNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsNumberBoxComponent, selector: "sds-number-box", inputs: { value: "value", width: "width", disabled: "disabled", max: "max", min: "min", step: "step", iconSet: "iconSet", burstInterval: "burstInterval", debounceTime: "debounceTime" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<div \r\n class=\"input-group\"\r\n [style.width]=\"width\"\r\n>\r\n\r\n <button \r\n class=\"btn btn-secondary btn-sm border\" \r\n type=\"button\"\r\n (mousedown)=\"startDecrement()\" \r\n (mouseup)=\"stopDecrement()\"\r\n [disabled]=\"disabled\"\r\n > \r\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n </button>\r\n \r\n <input \r\n disabled\r\n type=\"text\" \r\n class=\"form-control text-center bg-white text-monospace\" \r\n [class.text-muted]=\"disabled\"\r\n [style.padding-top.rem]=\"0.31\"\r\n [style.padding-bottom.rem]=\"0.31\"\r\n placeholder=\"\"\r\n [value]=\"value\">\r\n \r\n <button \r\n #incrementButton\r\n class=\"btn btn-secondary btn-sm border\" \r\n type=\"button\"\r\n (mousedown)=\"startIncrement()\" \r\n (mouseup)=\"stopIncrement()\"\r\n [disabled]=\"disabled\"\r\n >\r\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n </button>\r\n\r\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"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxComponent, decorators: [{
|
|
120
|
+
type: Component,
|
|
121
|
+
args: [{ selector: 'sds-number-box', template: "<div \r\n class=\"input-group\"\r\n [style.width]=\"width\"\r\n>\r\n\r\n <button \r\n class=\"btn btn-secondary btn-sm border\" \r\n type=\"button\"\r\n (mousedown)=\"startDecrement()\" \r\n (mouseup)=\"stopDecrement()\"\r\n [disabled]=\"disabled\"\r\n > \r\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n </button>\r\n \r\n <input \r\n disabled\r\n type=\"text\" \r\n class=\"form-control text-center bg-white text-monospace\" \r\n [class.text-muted]=\"disabled\"\r\n [style.padding-top.rem]=\"0.31\"\r\n [style.padding-bottom.rem]=\"0.31\"\r\n placeholder=\"\"\r\n [value]=\"value\">\r\n \r\n <button \r\n #incrementButton\r\n class=\"btn btn-secondary btn-sm border\" \r\n type=\"button\"\r\n (mousedown)=\"startIncrement()\" \r\n (mouseup)=\"stopIncrement()\"\r\n [disabled]=\"disabled\"\r\n >\r\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n </button>\r\n\r\n</div>", styles: [""] }]
|
|
122
|
+
}], ctorParameters: function () { return []; }, propDecorators: { value: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], valueChange: [{
|
|
125
|
+
type: Output
|
|
126
|
+
}], width: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], disabled: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], max: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], min: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], step: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], iconSet: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], burstInterval: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], debounceTime: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}] } });
|
|
143
|
+
|
|
144
|
+
class SdsNumberBoxModule {
|
|
145
|
+
}
|
|
146
|
+
SdsNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
147
|
+
SdsNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, declarations: [SdsNumberBoxComponent], imports: [CommonModule,
|
|
148
|
+
FontAwesomeModule], exports: [SdsNumberBoxComponent] });
|
|
149
|
+
SdsNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, imports: [[
|
|
150
|
+
CommonModule,
|
|
151
|
+
FontAwesomeModule
|
|
152
|
+
]] });
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, decorators: [{
|
|
154
|
+
type: NgModule,
|
|
155
|
+
args: [{
|
|
156
|
+
declarations: [
|
|
157
|
+
SdsNumberBoxComponent
|
|
158
|
+
],
|
|
159
|
+
imports: [
|
|
160
|
+
CommonModule,
|
|
161
|
+
FontAwesomeModule
|
|
162
|
+
],
|
|
163
|
+
exports: [
|
|
164
|
+
SdsNumberBoxComponent
|
|
165
|
+
]
|
|
166
|
+
}]
|
|
167
|
+
}] });
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Generated bundle index. Do not edit.
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
export { SdsNumberBoxComponent, SdsNumberBoxModule };
|
|
174
|
+
//# sourceMappingURL=spicainternational-ngx-sds-components-src-lib-number-box.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-number-box.mjs","sources":["../../../projects/ngx-sds-components/src/lib/number-box/number-box.component.ts","../../../projects/ngx-sds-components/src/lib/number-box/number-box.component.html","../../../projects/ngx-sds-components/src/lib/number-box/number-box.module.ts","../../../projects/ngx-sds-components/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.ts"],"sourcesContent":["import {\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n Input,\r\n OnDestroy,\r\n OnInit,\r\n Output,\r\n ViewChild,\r\n} from '@angular/core';\r\nimport { faChevronLeft, faChevronRight, faMinus, faPlus } from '@fortawesome/pro-regular-svg-icons';\r\nimport { Subject, debounceTime, fromEvent, interval, map, takeUntil, throttleTime } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'sds-number-box',\r\n templateUrl: './number-box.component.html',\r\n styleUrls: ['./number-box.component.scss'],\r\n})\r\nexport class SdsNumberBoxComponent implements OnInit, OnDestroy {\r\n @Input() value: number = 0;\r\n @Output() valueChange = new EventEmitter<number>();\r\n\r\n /**\r\n * Width of component. By default 8rem.\r\n *\r\n * @type {string}\r\n * @memberof SdsDurationBoxComponent\r\n */\r\n @Input() width: string = '8rem';\r\n\r\n /**\r\n * Specifies whether the UI component responds to user interaction.\r\n *\r\n * @type {boolean}\r\n * @memberof SdsDurationBoxComponent\r\n */\r\n @Input() disabled: boolean = false;\r\n\r\n /**\r\n * The maximum value accepted by the duration box.\r\n *\r\n * @type {number}\r\n * @memberof SdsDurationBoxComponent\r\n */\r\n @Input() max?: number;\r\n\r\n /**\r\n * The minimum value accepted by the duration box.\r\n *\r\n * @type {number}\r\n * @memberof SdsDurationBoxComponent\r\n */\r\n @Input() min?: number;\r\n\r\n /**\r\n * The increment by which the value is increased or decreased.\r\n *\r\n * @type {number}\r\n * @memberof SdsDurationBoxComponent\r\n */\r\n @Input() step: number = 1;\r\n\r\n /**\r\n * The icon set to use for the increment and decrement buttons.\r\n * Icons used are from the FrontAwesome library, so you must include them in the project to use them. \r\n * You can add them to FA library on the module/component level.\r\n * Icons: regular, minus/plus, chevron-left/right\r\n *\r\n * @type {('plus-minus' | 'left-right')}\r\n * @memberof SdsNumberBoxComponent\r\n */\r\n @Input() iconSet: 'plus-minus' | 'left-right' = 'plus-minus';\r\n\r\n /**\r\n * Interval between value changes when the increment or decrement button is held down.\r\n *\r\n * @type {number}\r\n * @memberof SdsNumberBoxComponent\r\n */\r\n @Input() burstInterval: number = 120;\r\n\r\n /**\r\n * Interval in which new value is emitted to the parent component.\r\n * It should be higher than burstInterval to prevent multiple value changes in burst mode.\r\n * \r\n * @type {number}\r\n * @memberof SdsNumberBoxComponent\r\n */\r\n @Input() debounceTime: number = 150;\r\n\r\n public ICON_MINUS = faMinus;\r\n public ICON_PLUS = faPlus;\r\n public ICON_LEFT = faChevronLeft;\r\n public ICON_RIGHT = faChevronRight;\r\n\r\n private destroy$: Subject<void> = new Subject<void>();\r\n private newValue$: Subject<number> = new Subject<number>();\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {\r\n this.newValue$.pipe(\r\n debounceTime(this.debounceTime)\r\n ).subscribe(() => {\r\n this.valueChange.emit(this.value);\r\n });\r\n }\r\n\r\n public increment() {\r\n const newValue = this.value + this.step;\r\n if (typeof this.max !== 'undefined' && newValue > this.max) {\r\n return;\r\n }\r\n this.value = newValue;\r\n this.newValue$.next(this.value);\r\n }\r\n\r\n public decrement() {\r\n const newValue = this.value - this.step;\r\n if (typeof this.min !== 'undefined' && newValue < this.min) {\r\n return;\r\n }\r\n this.value = newValue;\r\n this.newValue$.next(this.value);\r\n }\r\n\r\n startIncrement() {\r\n this.increment();\r\n console.log('startIncrement');\r\n interval(this.burstInterval)\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe(() => {\r\n this.increment();\r\n });\r\n }\r\n\r\n stopIncrement() {\r\n console.log('stopIncrement');\r\n this.destroy$.next();\r\n }\r\n\r\n startDecrement() {\r\n this.decrement();\r\n interval(this.burstInterval)\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe(() => {\r\n this.decrement();\r\n });\r\n }\r\n\r\n stopDecrement() {\r\n this.destroy$.next();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.destroy$.complete();\r\n this.newValue$.complete();\r\n }\r\n}\r\n","<div \r\n class=\"input-group\"\r\n [style.width]=\"width\"\r\n>\r\n\r\n <button \r\n class=\"btn btn-secondary btn-sm border\" \r\n type=\"button\"\r\n (mousedown)=\"startDecrement()\" \r\n (mouseup)=\"stopDecrement()\"\r\n [disabled]=\"disabled\"\r\n > \r\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n </button>\r\n \r\n <input \r\n disabled\r\n type=\"text\" \r\n class=\"form-control text-center bg-white text-monospace\" \r\n [class.text-muted]=\"disabled\"\r\n [style.padding-top.rem]=\"0.31\"\r\n [style.padding-bottom.rem]=\"0.31\"\r\n placeholder=\"\"\r\n [value]=\"value\">\r\n \r\n <button \r\n #incrementButton\r\n class=\"btn btn-secondary btn-sm border\" \r\n type=\"button\"\r\n (mousedown)=\"startIncrement()\" \r\n (mouseup)=\"stopIncrement()\"\r\n [disabled]=\"disabled\"\r\n >\r\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\r\n </button>\r\n\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsNumberBoxComponent } from './number-box.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsNumberBoxComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FontAwesomeModule\r\n ],\r\n exports: [\r\n SdsNumberBoxComponent\r\n ]\r\n})\r\nexport class SdsNumberBoxModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAkBa,qBAAqB,CAAA;AAgF9B,IAAA,WAAA,GAAA;QA/ES,IAAK,CAAA,KAAA,GAAW,CAAC,CAAC;AACjB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU,CAAC;AAEnD;;;;;AAKG;QACM,IAAK,CAAA,KAAA,GAAW,MAAM,CAAC;AAEhC;;;;;AAKG;QACM,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAkBnC;;;;;AAKG;QACM,IAAI,CAAA,IAAA,GAAW,CAAC,CAAC;AAE1B;;;;;;;;AAQG;QACM,IAAO,CAAA,OAAA,GAAgC,YAAY,CAAC;AAE7D;;;;;AAKG;QACM,IAAa,CAAA,aAAA,GAAW,GAAG,CAAC;AAErC;;;;;;AAMG;QACM,IAAY,CAAA,YAAA,GAAW,GAAG,CAAC;QAE7B,IAAU,CAAA,UAAA,GAAG,OAAO,CAAC;QACrB,IAAS,CAAA,SAAA,GAAG,MAAM,CAAC;QACnB,IAAS,CAAA,SAAA,GAAG,aAAa,CAAC;QAC1B,IAAU,CAAA,UAAA,GAAG,cAAc,CAAC;AAE3B,QAAA,IAAA,CAAA,QAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAC;AAC9C,QAAA,IAAA,CAAA,SAAS,GAAoB,IAAI,OAAO,EAAU,CAAC;KAE3C;IAEhB,QAAQ,GAAA;AACJ,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CACf,YAAY,CAAC,IAAI,CAAC,YAAY,CA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AqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;AACF,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input,
|
|
2
|
+
import { Component, Input, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1 from '@fortawesome/angular-fontawesome';
|
|
5
5
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { DxPopoverModule } from 'devextreme-angular';
|
|
7
7
|
|
|
8
8
|
class SdsTableActionsComponent {
|
|
9
|
-
constructor(
|
|
10
|
-
this._renderer = _renderer;
|
|
9
|
+
constructor() {
|
|
11
10
|
this.dropdownIcon = ['far', 'ellipsis'];
|
|
12
|
-
this.dropdownButtonId = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;
|
|
13
|
-
}
|
|
14
|
-
closeDropdown() {
|
|
15
|
-
console.log('close dropdown');
|
|
16
|
-
// if (this._dropdownButton?.nativeElement) {
|
|
17
|
-
// this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');
|
|
18
|
-
// }
|
|
19
11
|
}
|
|
20
12
|
ngOnInit() { }
|
|
21
13
|
}
|
|
22
|
-
SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [
|
|
23
|
-
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" },
|
|
14
|
+
SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, ngImport: i0, template: "\r\n<div class=\"sds-actions-container me-2\">\r\n\r\n <div class=\"btn-group sds-actions-wrapper\">\r\n <ng-content select='quickActions'></ng-content>\r\n\r\n <div class=\"btn-group\">\r\n <button \r\n #dropdownButton\r\n class=\"sds-actions-dropdown-button dropdown-toggle sds-btn-table\"\r\n type=\"button\" \r\n data-bs-toggle=\"dropdown\" \r\n data-bs-auto-close=\"true\"\r\n aria-expanded=\"false\"\r\n >\r\n <fa-icon \r\n [icon]=\"dropdownIcon\" \r\n [fixedWidth]=\"true\" \r\n [size]=\"'sm'\">\r\n </fa-icon>\r\n </button>\r\n\r\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\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"] }] });
|
|
24
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, decorators: [{
|
|
25
17
|
type: Component,
|
|
26
|
-
args: [{ selector: 'sds-table-actions', template: "\n<div class=\"sds-actions-container me-2\">\n\n <div class=\"btn-group sds-actions-wrapper\">\n <ng-content select='quickActions'></ng-content>\n\n <div class=\"btn-group\">\n <button \n #dropdownButton\n class=\"sds-actions-dropdown-button dropdown-toggle sds-btn-table\"\n type=\"button\" \n data-bs-toggle=\"dropdown\" \n data-bs-auto-close=\"true\"\n aria-expanded=\"false\"\n >\n <fa-icon \n [icon]=\"dropdownIcon\" \n [fixedWidth]=\"true\" \n [size]=\"'sm'\">\n </fa-icon>\n </button>\n\n <ul
|
|
27
|
-
}], ctorParameters: function () { return [
|
|
18
|
+
args: [{ selector: 'sds-table-actions', template: "\r\n<div class=\"sds-actions-container me-2\">\r\n\r\n <div class=\"btn-group sds-actions-wrapper\">\r\n <ng-content select='quickActions'></ng-content>\r\n\r\n <div class=\"btn-group\">\r\n <button \r\n #dropdownButton\r\n class=\"sds-actions-dropdown-button dropdown-toggle sds-btn-table\"\r\n type=\"button\" \r\n data-bs-toggle=\"dropdown\" \r\n data-bs-auto-close=\"true\"\r\n aria-expanded=\"false\"\r\n >\r\n <fa-icon \r\n [icon]=\"dropdownIcon\" \r\n [fixedWidth]=\"true\" \r\n [size]=\"'sm'\">\r\n </fa-icon>\r\n </button>\r\n\r\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\n</div>", styles: [""] }]
|
|
19
|
+
}], ctorParameters: function () { return []; }, propDecorators: { dropdownIcon: [{
|
|
28
20
|
type: Input
|
|
29
|
-
}], _dropdownButton: [{
|
|
30
|
-
type: ViewChild,
|
|
31
|
-
args: ['dropdownButton', { static: true }]
|
|
32
21
|
}] } });
|
|
33
22
|
|
|
34
23
|
class SdsTableActionsModule {
|
|
@@ -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, 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'];\
|
|
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';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\n\r\n@Component({\r\n selector: 'sds-table-actions',\r\n templateUrl: './table-actions.component.html',\r\n styleUrls: ['./table-actions.component.scss'],\r\n})\r\nexport class SdsTableActionsComponent implements OnInit {\r\n\r\n @Input() dropdownIcon: IconProp = ['far', 'ellipsis'];\r\n\r\n constructor(\r\n\r\n ) {}\r\n\r\n ngOnInit(): void {}\r\n}\r\n","\r\n<div class=\"sds-actions-container me-2\">\r\n\r\n <div class=\"btn-group sds-actions-wrapper\">\r\n <ng-content select='quickActions'></ng-content>\r\n\r\n <div class=\"btn-group\">\r\n <button \r\n #dropdownButton\r\n class=\"sds-actions-dropdown-button dropdown-toggle sds-btn-table\"\r\n type=\"button\" \r\n data-bs-toggle=\"dropdown\" \r\n data-bs-auto-close=\"true\"\r\n aria-expanded=\"false\"\r\n >\r\n <fa-icon \r\n [icon]=\"dropdownIcon\" \r\n [fixedWidth]=\"true\" \r\n [size]=\"'sm'\">\r\n </fa-icon>\r\n </button>\r\n\r\n <ul class=\"dropdown-menu sds-table-dropdown-menu py-2\">\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsTableActionsComponent } from './table-actions.component';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { DxPopoverModule } from 'devextreme-angular';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsTableActionsComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FontAwesomeModule,\r\n DxPopoverModule\r\n ],\r\n exports: [\r\n SdsTableActionsComponent\r\n ]\r\n})\r\nexport class SdsTableActionsModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,wBAAwB,CAAA;AAIjC,IAAA,WAAA,GAAA;AAFS,QAAA,IAAA,CAAA,YAAY,GAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;KAIlD;AAEJ,IAAA,QAAQ,MAAW;;qHARV,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,q7BA2BM,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;2FDnBO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;+BACI,mBAAmB,EAAA,QAAA,EAAA,q7BAAA,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;;;;"}
|
|
@@ -16,6 +16,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/layout';
|
|
|
16
16
|
export * from '@spicainternational/ngx-sds-components/src/lib/message';
|
|
17
17
|
export * from '@spicainternational/ngx-sds-components/src/lib/modal';
|
|
18
18
|
export * from '@spicainternational/ngx-sds-components/src/lib/navigation';
|
|
19
|
+
export * from '@spicainternational/ngx-sds-components/src/lib/number-box';
|
|
19
20
|
export * from '@spicainternational/ngx-sds-components/src/lib/page-header';
|
|
20
21
|
export * from '@spicainternational/ngx-sds-components/src/lib/pane';
|
|
21
22
|
export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/intersection';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/keyboard-shortcut';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/static-value';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/timer';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/table-actions';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/intersection';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/keyboard-shortcut';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/number-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/static-value';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/timer';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/table-actions';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spicainternational/ngx-sds-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Spica design system angular components.",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -183,6 +183,14 @@
|
|
|
183
183
|
"node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs",
|
|
184
184
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs"
|
|
185
185
|
},
|
|
186
|
+
"./src/lib/number-box": {
|
|
187
|
+
"types": "./src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.d.ts",
|
|
188
|
+
"esm2020": "./esm2020/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
189
|
+
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
190
|
+
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
191
|
+
"node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
192
|
+
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs"
|
|
193
|
+
},
|
|
186
194
|
"./src/lib/page-header": {
|
|
187
195
|
"types": "./src/lib/page-header/spicainternational-ngx-sds-components-src-lib-page-header.d.ts",
|
|
188
196
|
"esm2020": "./esm2020/src/lib/page-header/spicainternational-ngx-sds-components-src-lib-page-header.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/layout';
|
|
|
16
16
|
export * from '@spicainternational/ngx-sds-components/src/lib/message';
|
|
17
17
|
export * from '@spicainternational/ngx-sds-components/src/lib/modal';
|
|
18
18
|
export * from '@spicainternational/ngx-sds-components/src/lib/navigation';
|
|
19
|
+
export * from '@spicainternational/ngx-sds-components/src/lib/number-box';
|
|
19
20
|
export * from '@spicainternational/ngx-sds-components/src/lib/page-header';
|
|
20
21
|
export * from '@spicainternational/ngx-sds-components/src/lib/pane';
|
|
21
22
|
export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SdsNumberBoxComponent implements OnInit, OnDestroy {
|
|
4
|
+
value: number;
|
|
5
|
+
valueChange: EventEmitter<number>;
|
|
6
|
+
/**
|
|
7
|
+
* Width of component. By default 8rem.
|
|
8
|
+
*
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof SdsDurationBoxComponent
|
|
11
|
+
*/
|
|
12
|
+
width: string;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies whether the UI component responds to user interaction.
|
|
15
|
+
*
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
* @memberof SdsDurationBoxComponent
|
|
18
|
+
*/
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The maximum value accepted by the duration box.
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof SdsDurationBoxComponent
|
|
25
|
+
*/
|
|
26
|
+
max?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The minimum value accepted by the duration box.
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SdsDurationBoxComponent
|
|
32
|
+
*/
|
|
33
|
+
min?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The increment by which the value is increased or decreased.
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof SdsDurationBoxComponent
|
|
39
|
+
*/
|
|
40
|
+
step: number;
|
|
41
|
+
/**
|
|
42
|
+
* The icon set to use for the increment and decrement buttons.
|
|
43
|
+
* Icons used are from the FrontAwesome library, so you must include them in the project to use them.
|
|
44
|
+
* You can add them to FA library on the module/component level.
|
|
45
|
+
* Icons: regular, minus/plus, chevron-left/right
|
|
46
|
+
*
|
|
47
|
+
* @type {('plus-minus' | 'left-right')}
|
|
48
|
+
* @memberof SdsNumberBoxComponent
|
|
49
|
+
*/
|
|
50
|
+
iconSet: 'plus-minus' | 'left-right';
|
|
51
|
+
/**
|
|
52
|
+
* Interval between value changes when the increment or decrement button is held down.
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof SdsNumberBoxComponent
|
|
56
|
+
*/
|
|
57
|
+
burstInterval: number;
|
|
58
|
+
/**
|
|
59
|
+
* Interval in which new value is emitted to the parent component.
|
|
60
|
+
* It should be higher than burstInterval to prevent multiple value changes in burst mode.
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof SdsNumberBoxComponent
|
|
64
|
+
*/
|
|
65
|
+
debounceTime: number;
|
|
66
|
+
ICON_MINUS: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
67
|
+
ICON_PLUS: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
68
|
+
ICON_LEFT: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
69
|
+
ICON_RIGHT: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
70
|
+
private destroy$;
|
|
71
|
+
private newValue$;
|
|
72
|
+
constructor();
|
|
73
|
+
ngOnInit(): void;
|
|
74
|
+
increment(): void;
|
|
75
|
+
decrement(): void;
|
|
76
|
+
startIncrement(): void;
|
|
77
|
+
stopIncrement(): void;
|
|
78
|
+
startDecrement(): void;
|
|
79
|
+
stopDecrement(): void;
|
|
80
|
+
ngOnDestroy(): void;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsNumberBoxComponent, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsNumberBoxComponent, "sds-number-box", never, { "value": "value"; "width": "width"; "disabled": "disabled"; "max": "max"; "min": "min"; "step": "step"; "iconSet": "iconSet"; "burstInterval": "burstInterval"; "debounceTime": "debounceTime"; }, { "valueChange": "valueChange"; }, never, never>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./number-box.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@fortawesome/angular-fontawesome";
|
|
5
|
+
export declare class SdsNumberBoxModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsNumberBoxModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsNumberBoxModule, [typeof i1.SdsNumberBoxComponent], [typeof i2.CommonModule, typeof i3.FontAwesomeModule], [typeof i1.SdsNumberBoxComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdsNumberBoxModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
3
|
+
"es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
4
|
+
"esm2020": "../../../esm2020/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
5
|
+
"fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
6
|
+
"fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
7
|
+
"typings": "spicainternational-ngx-sds-components-src-lib-number-box.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@spicainternational/ngx-sds-components/src/lib/number-box"
|
|
10
|
+
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { OnInit
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SdsTableActionsComponent implements OnInit {
|
|
5
|
-
private _renderer;
|
|
6
5
|
dropdownIcon: IconProp;
|
|
7
|
-
|
|
8
|
-
dropdownButtonId: string;
|
|
9
|
-
constructor(_renderer: Renderer2);
|
|
10
|
-
closeDropdown(): void;
|
|
6
|
+
constructor();
|
|
11
7
|
ngOnInit(): void;
|
|
12
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsTableActionsComponent, never>;
|
|
13
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<SdsTableActionsComponent, "sds-table-actions", never, { "dropdownIcon": "dropdownIcon"; }, {}, never, ["quickActions", "*"]>;
|