@spicainternational/ngx-sds-components 5.25.4 → 5.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +1 -0
  2. package/esm2020/public-api.mjs +2 -1
  3. package/esm2020/src/lib/number-box/number-box.component.mjs +140 -0
  4. package/esm2020/src/lib/number-box/number-box.module.mjs +30 -0
  5. package/esm2020/src/lib/number-box/public-api.mjs +3 -0
  6. package/esm2020/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.mjs +5 -0
  7. package/esm2020/src/lib/table-actions/table-actions.component.mjs +7 -18
  8. package/fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs +174 -0
  9. package/fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -0
  10. package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +6 -17
  11. package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
  12. package/fesm2015/spicainternational-ngx-sds-components.mjs +1 -0
  13. package/fesm2015/spicainternational-ngx-sds-components.mjs.map +1 -1
  14. package/fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs +174 -0
  15. package/fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -0
  16. package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +6 -17
  17. package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
  18. package/fesm2020/spicainternational-ngx-sds-components.mjs +1 -0
  19. package/fesm2020/spicainternational-ngx-sds-components.mjs.map +1 -1
  20. package/package.json +9 -1
  21. package/public-api.d.ts +1 -0
  22. package/src/lib/number-box/number-box.component.d.ts +83 -0
  23. package/src/lib/number-box/number-box.module.d.ts +9 -0
  24. package/src/lib/number-box/package.json +10 -0
  25. package/src/lib/number-box/public-api.d.ts +2 -0
  26. package/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.d.ts +5 -0
  27. package/src/lib/table-actions/table-actions.component.d.ts +2 -6
package/README.md CHANGED
@@ -4,6 +4,7 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
4
4
 
5
5
  ## Code scaffolding
6
6
 
7
+ Create new module `ng generate module module-name --project ngx-sds-components`. Add components/pipes/services to it.
7
8
  Run `ng generate component component-name --project ngx-sds-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-sds-components`.
8
9
  > Note: Don't forget to add `--project ngx-sds-components` or else it will be added to the default project in your `angular.json` file.
9
10
 
@@ -19,6 +19,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/layout';
19
19
  export * from '@spicainternational/ngx-sds-components/src/lib/message';
20
20
  export * from '@spicainternational/ngx-sds-components/src/lib/modal';
21
21
  export * from '@spicainternational/ngx-sds-components/src/lib/navigation';
22
+ export * from '@spicainternational/ngx-sds-components/src/lib/number-box';
22
23
  export * from '@spicainternational/ngx-sds-components/src/lib/page-header';
23
24
  export * from '@spicainternational/ngx-sds-components/src/lib/pane';
24
25
  export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
@@ -28,4 +29,4 @@ export * from '@spicainternational/ngx-sds-components/src/lib/static-value';
28
29
  export * from '@spicainternational/ngx-sds-components/src/lib/timer';
29
30
  export * from '@spicainternational/ngx-sds-components/src/lib/tooltip';
30
31
  export * from '@spicainternational/ngx-sds-components/src/lib/table-actions';
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zZHMtY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsNkRBQTZELENBQUM7QUFDNUUsY0FBYyx1REFBdUQsQ0FBQztBQUN0RSxjQUFjLHN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Y2FpbnRlcm5hdGlvbmFsL25neC1zZHMtY29tcG9uZW50cy9zcmMvbGliL3Rvb2x0aXAnO1xyXG5leHBvcnQgKiBmcm9tICdAc3BpY2FpbnRlcm5hdGlvbmFsL25neC1zZHMtY29tcG9uZW50cy9zcmMvbGliL3RhYmxlLWFjdGlvbnMnO1xyXG4iXX0=
@@ -0,0 +1,140 @@
1
+ import { Component, EventEmitter, Input, Output, } from '@angular/core';
2
+ import { faChevronLeft, faChevronRight, faMinus, faPlus } from '@fortawesome/pro-regular-svg-icons';
3
+ import { Subject, debounceTime, interval, takeUntil } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@fortawesome/angular-fontawesome";
6
+ import * as i2 from "@angular/common";
7
+ export class SdsNumberBoxComponent {
8
+ constructor() {
9
+ this.value = 0;
10
+ this.valueChange = new EventEmitter();
11
+ /**
12
+ * Width of component. By default 8rem.
13
+ *
14
+ * @type {string}
15
+ * @memberof SdsDurationBoxComponent
16
+ */
17
+ this.width = '8rem';
18
+ /**
19
+ * Specifies whether the UI component responds to user interaction.
20
+ *
21
+ * @type {boolean}
22
+ * @memberof SdsDurationBoxComponent
23
+ */
24
+ this.disabled = false;
25
+ /**
26
+ * The increment by which the value is increased or decreased.
27
+ *
28
+ * @type {number}
29
+ * @memberof SdsDurationBoxComponent
30
+ */
31
+ this.step = 1;
32
+ /**
33
+ * The icon set to use for the increment and decrement buttons.
34
+ * Icons used are from the FrontAwesome library, so you must include them in the project to use them.
35
+ * You can add them to FA library on the module/component level.
36
+ * Icons: regular, minus/plus, chevron-left/right
37
+ *
38
+ * @type {('plus-minus' | 'left-right')}
39
+ * @memberof SdsNumberBoxComponent
40
+ */
41
+ this.iconSet = 'plus-minus';
42
+ /**
43
+ * Interval between value changes when the increment or decrement button is held down.
44
+ *
45
+ * @type {number}
46
+ * @memberof SdsNumberBoxComponent
47
+ */
48
+ this.burstInterval = 120;
49
+ /**
50
+ * Interval in which new value is emitted to the parent component.
51
+ * It should be higher than burstInterval to prevent multiple value changes in burst mode.
52
+ *
53
+ * @type {number}
54
+ * @memberof SdsNumberBoxComponent
55
+ */
56
+ this.debounceTime = 150;
57
+ this.ICON_MINUS = faMinus;
58
+ this.ICON_PLUS = faPlus;
59
+ this.ICON_LEFT = faChevronLeft;
60
+ this.ICON_RIGHT = faChevronRight;
61
+ this.destroy$ = new Subject();
62
+ this.newValue$ = new Subject();
63
+ }
64
+ ngOnInit() {
65
+ this.newValue$.pipe(debounceTime(this.debounceTime)).subscribe(() => {
66
+ this.valueChange.emit(this.value);
67
+ });
68
+ }
69
+ increment() {
70
+ const newValue = this.value + this.step;
71
+ if (typeof this.max !== 'undefined' && newValue > this.max) {
72
+ return;
73
+ }
74
+ this.value = newValue;
75
+ this.newValue$.next(this.value);
76
+ }
77
+ decrement() {
78
+ const newValue = this.value - this.step;
79
+ if (typeof this.min !== 'undefined' && newValue < this.min) {
80
+ return;
81
+ }
82
+ this.value = newValue;
83
+ this.newValue$.next(this.value);
84
+ }
85
+ startIncrement() {
86
+ this.increment();
87
+ console.log('startIncrement');
88
+ interval(this.burstInterval)
89
+ .pipe(takeUntil(this.destroy$))
90
+ .subscribe(() => {
91
+ this.increment();
92
+ });
93
+ }
94
+ stopIncrement() {
95
+ console.log('stopIncrement');
96
+ this.destroy$.next();
97
+ }
98
+ startDecrement() {
99
+ this.decrement();
100
+ interval(this.burstInterval)
101
+ .pipe(takeUntil(this.destroy$))
102
+ .subscribe(() => {
103
+ this.decrement();
104
+ });
105
+ }
106
+ stopDecrement() {
107
+ this.destroy$.next();
108
+ }
109
+ ngOnDestroy() {
110
+ this.destroy$.complete();
111
+ this.newValue$.complete();
112
+ }
113
+ }
114
+ SdsNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
115
+ 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 \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\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"] }] });
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxComponent, decorators: [{
117
+ type: Component,
118
+ args: [{ selector: 'sds-number-box', template: "<div \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\n</div>", styles: [""] }]
119
+ }], ctorParameters: function () { return []; }, propDecorators: { value: [{
120
+ type: Input
121
+ }], valueChange: [{
122
+ type: Output
123
+ }], width: [{
124
+ type: Input
125
+ }], disabled: [{
126
+ type: Input
127
+ }], max: [{
128
+ type: Input
129
+ }], min: [{
130
+ type: Input
131
+ }], step: [{
132
+ type: Input
133
+ }], iconSet: [{
134
+ type: Input
135
+ }], burstInterval: [{
136
+ type: Input
137
+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zLnZhbHVlKTtcbiAgICB9XG5cbiAgICBzdGFydEluY3JlbWVudCgpIHtcbiAgICAgICAgdGhpcy5pbmNyZW1lbnQoKTtcbiAgICAgICAgY29uc29sZS5sb2coJ3N0YXJ0SW5jcmVtZW50Jyk7XG4gICAgICAgIGludGVydmFsKHRoaXMuYnVyc3RJbnRlcnZhbClcbiAgICAgICAgICAgIC5waXBlKHRha2VVbnRpbCh0aGlzLmRlc3Ryb3kkKSlcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuaW5jcmVtZW50KCk7XG4gICAgICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBzdG9wSW5jcmVtZW50KCkge1xuICAgICAgICBjb25zb2xlLmxvZygnc3RvcEluY3JlbWVudCcpO1xuICAgICAgICB0aGlzLmRlc3Ryb3kkLm5leHQoKTtcbiAgICB9XG5cbiAgICBzdGFydERlY3JlbWVudCgpIHtcbiAgICAgICAgdGhpcy5kZWNyZW1lbnQoKTtcbiAgICAgICAgaW50ZXJ2YWwodGhpcy5idXJzdEludGVydmFsKVxuICAgICAgICAgICAgLnBpcGUodGFrZVVudGlsKHRoaXMuZGVzdHJveSQpKVxuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5kZWNyZW1lbnQoKTtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cblxuICAgIHN0b3BEZWNyZW1lbnQoKSB7XG4gICAgICAgIHRoaXMuZGVzdHJveSQubmV4dCgpO1xuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgICAgICB0aGlzLmRlc3Ryb3kkLmNvbXBsZXRlKCk7XG4gICAgICAgIHRoaXMubmV3VmFsdWUkLmNvbXBsZXRlKCk7XG4gICAgfVxufVxuIiwiPGRpdiBcbiAgICBjbGFzcz1cImlucHV0LWdyb3VwXCJcbiAgICBbc3R5bGUud2lkdGhdPVwid2lkdGhcIlxuP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50QnV0dG9uXG4gICAgICAgIGNsYXNzPVwiYnRuIGJ0bi1zZWNvbmRhcnkgYnRuLXNtIGJvcmRlclwiIFxuICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgKG1vdXNlZG93bik9XCJzdGFydEluY3JlbWVudCgpXCIgXG4gICAgICAgIChtb3VzZXVwKT1cInN0b3BJbmNyZW1lbnQoKVwiXG4gICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXG4gICAgPlxuICAgIDxmYS1pY29uICpuZ0lmPVwiaWNvblNldCA9PT0gJ3BsdXMtbWludXMnXCIgW2ljb25dPVwiSUNPTl9QTFVTXCIgW2ZpeGVkV2lkdGhdPVwidHJ1ZVwiIFtzaXplXT1cIidzbSdcIj48L2ZhLWljb24+XG4gICAgPGZhLWljb24gKm5nSWY9XCJpY29uU2V0ID09PSAnbGVmdC1yaWdodCdcIiBbaWNvbl09XCJJQ09OX1JJR0hUXCIgW2ZpeGVkV2lkdGhdPVwidHJ1ZVwiIFtzaXplXT1cIidzbSdcIj48L2ZhLWljb24+XG4gICAgPC9idXR0b24+XG5cbjwvZGl2PiJdfQ==
@@ -0,0 +1,30 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { SdsNumberBoxComponent } from './number-box.component';
4
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
5
+ import * as i0 from "@angular/core";
6
+ export class SdsNumberBoxModule {
7
+ }
8
+ SdsNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
+ SdsNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, declarations: [SdsNumberBoxComponent], imports: [CommonModule,
10
+ FontAwesomeModule], exports: [SdsNumberBoxComponent] });
11
+ SdsNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, imports: [[
12
+ CommonModule,
13
+ FontAwesomeModule
14
+ ]] });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsNumberBoxModule, decorators: [{
16
+ type: NgModule,
17
+ args: [{
18
+ declarations: [
19
+ SdsNumberBoxComponent
20
+ ],
21
+ imports: [
22
+ CommonModule,
23
+ FontAwesomeModule
24
+ ],
25
+ exports: [
26
+ SdsNumberBoxComponent
27
+ ]
28
+ }]
29
+ }] });
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWJveC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi9udW1iZXItYm94L251bWJlci1ib3gubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQy9ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDOztBQWdCckUsTUFBTSxPQUFPLGtCQUFrQjs7K0dBQWxCLGtCQUFrQjtnSEFBbEIsa0JBQWtCLGlCQVYzQixxQkFBcUIsYUFHckIsWUFBWTtRQUNaLGlCQUFpQixhQUdqQixxQkFBcUI7Z0hBR1osa0JBQWtCLFlBUnBCO1lBQ1AsWUFBWTtZQUNaLGlCQUFpQjtTQUNsQjsyRkFLVSxrQkFBa0I7a0JBWjlCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLHFCQUFxQjtxQkFDdEI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLFlBQVk7d0JBQ1osaUJBQWlCO3FCQUNsQjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AscUJBQXFCO3FCQUN0QjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgU2RzTnVtYmVyQm94Q29tcG9uZW50IH0gZnJvbSAnLi9udW1iZXItYm94LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBGb250QXdlc29tZU1vZHVsZSB9IGZyb20gJ0Bmb3J0YXdlc29tZS9hbmd1bGFyLWZvbnRhd2Vzb21lJztcblxuXG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIFNkc051bWJlckJveENvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvbnRBd2Vzb21lTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBTZHNOdW1iZXJCb3hDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBTZHNOdW1iZXJCb3hNb2R1bGUgeyB9XG4iXX0=
@@ -0,0 +1,3 @@
1
+ export * from './number-box.module';
2
+ export * from './number-box.component';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZHMtY29tcG9uZW50cy9zcmMvbGliL251bWJlci1ib3gvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL251bWJlci1ib3gubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9udW1iZXItYm94LmNvbXBvbmVudCc7Il19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BpY2FpbnRlcm5hdGlvbmFsLW5neC1zZHMtY29tcG9uZW50cy1zcmMtbGliLW51bWJlci1ib3guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi9udW1iZXItYm94L3NwaWNhaW50ZXJuYXRpb25hbC1uZ3gtc2RzLWNvbXBvbmVudHMtc3JjLWxpYi1udW1iZXItYm94LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -1,29 +1,18 @@
1
- import { Component, Input, ViewChild } from '@angular/core';
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
4
  export class SdsTableActionsComponent {
5
- constructor(_renderer) {
6
- this._renderer = _renderer;
5
+ constructor() {
7
6
  this.dropdownIcon = ['far', 'ellipsis'];
8
- this.dropdownButtonId = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;
9
- }
10
- closeDropdown() {
11
- console.log('close dropdown');
12
- // if (this._dropdownButton?.nativeElement) {
13
- // this._renderer.removeClass(this._dropdownButton.nativeElement, 'show');
14
- // }
15
7
  }
16
8
  ngOnInit() { }
17
9
  }
18
- SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
19
- SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, viewQueries: [{ propertyName: "_dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, static: true }], ngImport: i0, 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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\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"] }] });
10
+ SdsTableActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11
+ 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\">\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 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"] }] });
20
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTableActionsComponent, decorators: [{
21
13
  type: Component,
22
- 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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
23
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { dropdownIcon: [{
14
+ 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 class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
15
+ }], ctorParameters: function () { return []; }, propDecorators: { dropdownIcon: [{
24
16
  type: Input
25
- }], _dropdownButton: [{
26
- type: ViewChild,
27
- args: ['dropdownButton', { static: true }]
28
17
  }] } });
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi90YWJsZS1hY3Rpb25zL3RhYmxlLWFjdGlvbnMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNkcy1jb21wb25lbnRzL3NyYy9saWIvdGFibGUtYWN0aW9ucy90YWJsZS1hY3Rpb25zLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWMsS0FBSyxFQUErQyxTQUFTLEVBQUUsTUFBTSx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1hY3Rpb25zLXdyYXBwZXJcIj5cbiAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PSdxdWlja0FjdGlvbnMnPjwvbmctY29udGVudD5cblxuICAgICAgICA8ZGl2IGNsYXNzPVwiYnRuLWdyb3VwXCI+XG4gICAgICAgICAgICA8YnV0dG9uIFxuICAgICAgICAgICAgICAgICNkcm9wZG93bkJ1dHRvblxuICAgICAgICAgICAgICAgIGNsYXNzPVwic2RzLWFjdGlvbnMtZHJvcGRvd24tYnV0dG9uIGRyb3Bkb3duLXRvZ2dsZSBzZHMtYnRuLXRhYmxlXCJcbiAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCIgXG4gICAgICAgICAgICAgICAgZGF0YS1icy10b2dnbGU9XCJkcm9wZG93blwiIFxuICAgICAgICAgICAgICAgIGRhdGEtYnMtYXV0by1jbG9zZT1cInRydWVcIlxuICAgICAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9XCJmYWxzZVwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxmYS1pY29uIFxuICAgICAgICAgICAgICAgICAgICBbaWNvbl09XCJkcm9wZG93bkljb25cIiBcbiAgICAgICAgICAgICAgICAgICAgW2ZpeGVkV2lkdGhdPVwidHJ1ZVwiIFxuICAgICAgICAgICAgICAgICAgICBbc2l6ZV09XCInc20nXCI+XG4gICAgICAgICAgICAgICAgPC9mYS1pY29uPlxuICAgICAgICAgICAgPC9idXR0b24+XG5cbiAgICAgICAgICAgIDx1bCBcbiAgICAgICAgICAgICAgICBjbGFzcz1cImRyb3Bkb3duLW1lbnUgc2RzLXRhYmxlLWRyb3Bkb3duLW1lbnUgcHktMlwiXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cImNsb3NlRHJvcGRvd24oKVwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgICAgIDwvdWw+XG4gICAgICAgIDwv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ICAgICBhcmlhLWV4cGFuZGVkPVwiZmFsc2VcIlxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8ZmEtaWNvbiBcbiAgICAgICAgICAgICAgICAgICAgW2ljb25dPVwiZHJvcGRvd25JY29uXCIgXG4gICAgICAgICAgICAgICAgICAgIFtmaXhlZFdpZHRoXT1cInRydWVcIiBcbiAgICAgICAgICAgICAgICAgICAgW3NpemVdPVwiJ3NtJ1wiPlxuICAgICAgICAgICAgICAgIDwvZmEtaWNvbj5cbiAgICAgICAgICAgIDwvYnV0dG9uPlxuXG4gICAgICAgICAgICA8dWwgY2xhc3M9XCJkcm9wZG93bi1tZW51IHNkcy10YWJsZS1kcm9wZG93bi1tZW51IHB5LTJcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgICA8L3VsPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvZGl2PiJdfQ==
@@ -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 \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\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 \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\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 {\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { faChevronLeft, faChevronRight, faMinus, faPlus } from '@fortawesome/pro-regular-svg-icons';\nimport { Subject, debounceTime, fromEvent, interval, map, takeUntil, throttleTime } from 'rxjs';\n\n@Component({\n selector: 'sds-number-box',\n templateUrl: './number-box.component.html',\n styleUrls: ['./number-box.component.scss'],\n})\nexport class SdsNumberBoxComponent implements OnInit, OnDestroy {\n @Input() value: number = 0;\n @Output() valueChange = new EventEmitter<number>();\n\n /**\n * Width of component. By default 8rem.\n *\n * @type {string}\n * @memberof SdsDurationBoxComponent\n */\n @Input() width: string = '8rem';\n\n /**\n * Specifies whether the UI component responds to user interaction.\n *\n * @type {boolean}\n * @memberof SdsDurationBoxComponent\n */\n @Input() disabled: boolean = false;\n\n /**\n * The maximum value accepted by the duration box.\n *\n * @type {number}\n * @memberof SdsDurationBoxComponent\n */\n @Input() max?: number;\n\n /**\n * The minimum value accepted by the duration box.\n *\n * @type {number}\n * @memberof SdsDurationBoxComponent\n */\n @Input() min?: number;\n\n /**\n * The increment by which the value is increased or decreased.\n *\n * @type {number}\n * @memberof SdsDurationBoxComponent\n */\n @Input() step: number = 1;\n\n /**\n * The icon set to use for the increment and decrement buttons.\n * Icons used are from the FrontAwesome library, so you must include them in the project to use them. \n * You can add them to FA library on the module/component level.\n * Icons: regular, minus/plus, chevron-left/right\n *\n * @type {('plus-minus' | 'left-right')}\n * @memberof SdsNumberBoxComponent\n */\n @Input() iconSet: 'plus-minus' | 'left-right' = 'plus-minus';\n\n /**\n * Interval between value changes when the increment or decrement button is held down.\n *\n * @type {number}\n * @memberof SdsNumberBoxComponent\n */\n @Input() burstInterval: number = 120;\n\n /**\n * Interval in which new value is emitted to the parent component.\n * It should be higher than burstInterval to prevent multiple value changes in burst mode.\n * \n * @type {number}\n * @memberof SdsNumberBoxComponent\n */\n @Input() debounceTime: number = 150;\n\n public ICON_MINUS = faMinus;\n public ICON_PLUS = faPlus;\n public ICON_LEFT = faChevronLeft;\n public ICON_RIGHT = faChevronRight;\n\n private destroy$: Subject<void> = new Subject<void>();\n private newValue$: Subject<number> = new Subject<number>();\n\n constructor() {}\n\n ngOnInit(): void {\n this.newValue$.pipe(\n debounceTime(this.debounceTime)\n ).subscribe(() => {\n this.valueChange.emit(this.value);\n });\n }\n\n public increment() {\n const newValue = this.value + this.step;\n if (typeof this.max !== 'undefined' && newValue > this.max) {\n return;\n }\n this.value = newValue;\n this.newValue$.next(this.value);\n }\n\n public decrement() {\n const newValue = this.value - this.step;\n if (typeof this.min !== 'undefined' && newValue < this.min) {\n return;\n }\n this.value = newValue;\n this.newValue$.next(this.value);\n }\n\n startIncrement() {\n this.increment();\n console.log('startIncrement');\n interval(this.burstInterval)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.increment();\n });\n }\n\n stopIncrement() {\n console.log('stopIncrement');\n this.destroy$.next();\n }\n\n startDecrement() {\n this.decrement();\n interval(this.burstInterval)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.decrement();\n });\n }\n\n stopDecrement() {\n this.destroy$.next();\n }\n\n ngOnDestroy() {\n this.destroy$.complete();\n this.newValue$.complete();\n }\n}\n","<div \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SdsNumberBoxComponent } from './number-box.component';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\n\n\n@NgModule({\n declarations: [\n SdsNumberBoxComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule\n ],\n exports: [\n SdsNumberBoxComponent\n ]\n})\nexport class SdsNumberBoxModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAkBa,qBAAqB,CAAA;AAgF9B,IAAA,WAAA,GAAA;AA/ES,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC,CAAC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sBAAhB,KAAK;gBAQG,GAAG,EAAA,CAAA;sBAAX,KAAK;gBAQG,GAAG,EAAA,CAAA;sBAAX,KAAK;gBAQG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBAWG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBAQG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBASG,YAAY,EAAA,CAAA;sBAApB,KAAK;;;MErEG,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAV3B,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAGrB,YAAY;QACZ,iBAAiB,aAGjB,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAGZ,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EARpB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,iBAAiB;SAClB,CAAA,EAAA,CAAA,CAAA;2FAKU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;iBACF,CAAA;;;AClBD;;AAEG;;;;"}
@@ -1,34 +1,23 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, ViewChild, NgModule } from '@angular/core';
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(_renderer) {
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: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
23
- SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, viewQueries: [{ propertyName: "_dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, static: true }], ngImport: i0, 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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\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"] }] });
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: "\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 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"] }] });
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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
27
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { dropdownIcon: [{
18
+ 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 class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\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'];\n @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;\n\n public dropdownButtonId = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;\n\n constructor(\n private _renderer: Renderer2\n ) {}\n\n public closeDropdown(): void {\n console.log('close dropdown');\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\">\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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\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":";;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AA,EAAA,CAAA,EAAA,CAAA;gGAMpB,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACiD,eAAe,EAAA,CAAA;sBAArE,SAAS;gBAAC,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;MEUpC,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
+ {"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\n constructor(\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\">\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 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;AAIjC,IAAA,WAAA,GAAA;QAFS,IAAA,CAAA,YAAY,GAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;KAIlD;AAEJ,IAAA,QAAQ,M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,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;;;;"}
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
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"}
@@ -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 \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\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 \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\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 {\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { faChevronLeft, faChevronRight, faMinus, faPlus } from '@fortawesome/pro-regular-svg-icons';\nimport { Subject, debounceTime, fromEvent, interval, map, takeUntil, throttleTime } from 'rxjs';\n\n@Component({\n selector: 'sds-number-box',\n templateUrl: './number-box.component.html',\n styleUrls: ['./number-box.component.scss'],\n})\nexport class SdsNumberBoxComponent implements OnInit, OnDestroy {\n @Input() value: number = 0;\n @Output() valueChange = new EventEmitter<number>();\n\n /**\n * Width of component. By default 8rem.\n *\n * @type {string}\n * @memberof SdsDurationBoxComponent\n */\n @Input() width: string = '8rem';\n\n /**\n * Specifies whether the UI component responds to user interaction.\n *\n * @type {boolean}\n * @memberof SdsDurationBoxComponent\n */\n @Input() disabled: boolean = false;\n\n /**\n * The maximum value accepted by the duration box.\n *\n * @type {number}\n * @memberof SdsDurationBoxComponent\n */\n @Input() max?: number;\n\n /**\n * The minimum value accepted by the duration box.\n *\n * @type {number}\n * @memberof SdsDurationBoxComponent\n */\n @Input() min?: number;\n\n /**\n * The increment by which the value is increased or decreased.\n *\n * @type {number}\n * @memberof SdsDurationBoxComponent\n */\n @Input() step: number = 1;\n\n /**\n * The icon set to use for the increment and decrement buttons.\n * Icons used are from the FrontAwesome library, so you must include them in the project to use them. \n * You can add them to FA library on the module/component level.\n * Icons: regular, minus/plus, chevron-left/right\n *\n * @type {('plus-minus' | 'left-right')}\n * @memberof SdsNumberBoxComponent\n */\n @Input() iconSet: 'plus-minus' | 'left-right' = 'plus-minus';\n\n /**\n * Interval between value changes when the increment or decrement button is held down.\n *\n * @type {number}\n * @memberof SdsNumberBoxComponent\n */\n @Input() burstInterval: number = 120;\n\n /**\n * Interval in which new value is emitted to the parent component.\n * It should be higher than burstInterval to prevent multiple value changes in burst mode.\n * \n * @type {number}\n * @memberof SdsNumberBoxComponent\n */\n @Input() debounceTime: number = 150;\n\n public ICON_MINUS = faMinus;\n public ICON_PLUS = faPlus;\n public ICON_LEFT = faChevronLeft;\n public ICON_RIGHT = faChevronRight;\n\n private destroy$: Subject<void> = new Subject<void>();\n private newValue$: Subject<number> = new Subject<number>();\n\n constructor() {}\n\n ngOnInit(): void {\n this.newValue$.pipe(\n debounceTime(this.debounceTime)\n ).subscribe(() => {\n this.valueChange.emit(this.value);\n });\n }\n\n public increment() {\n const newValue = this.value + this.step;\n if (typeof this.max !== 'undefined' && newValue > this.max) {\n return;\n }\n this.value = newValue;\n this.newValue$.next(this.value);\n }\n\n public decrement() {\n const newValue = this.value - this.step;\n if (typeof this.min !== 'undefined' && newValue < this.min) {\n return;\n }\n this.value = newValue;\n this.newValue$.next(this.value);\n }\n\n startIncrement() {\n this.increment();\n console.log('startIncrement');\n interval(this.burstInterval)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.increment();\n });\n }\n\n stopIncrement() {\n console.log('stopIncrement');\n this.destroy$.next();\n }\n\n startDecrement() {\n this.decrement();\n interval(this.burstInterval)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.decrement();\n });\n }\n\n stopDecrement() {\n this.destroy$.next();\n }\n\n ngOnDestroy() {\n this.destroy$.complete();\n this.newValue$.complete();\n }\n}\n","<div \n class=\"input-group\"\n [style.width]=\"width\"\n>\n\n <button \n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startDecrement()\" \n (mouseup)=\"stopDecrement()\"\n [disabled]=\"disabled\"\n > \n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_MINUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_LEFT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n \n <input \n disabled\n type=\"text\" \n class=\"form-control text-center bg-white text-monospace\" \n [class.text-muted]=\"disabled\"\n [style.padding-top.rem]=\"0.31\"\n [style.padding-bottom.rem]=\"0.31\"\n placeholder=\"\"\n [value]=\"value\">\n \n <button \n #incrementButton\n class=\"btn btn-secondary btn-sm border\" \n type=\"button\"\n (mousedown)=\"startIncrement()\" \n (mouseup)=\"stopIncrement()\"\n [disabled]=\"disabled\"\n >\n <fa-icon *ngIf=\"iconSet === 'plus-minus'\" [icon]=\"ICON_PLUS\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n <fa-icon *ngIf=\"iconSet === 'left-right'\" [icon]=\"ICON_RIGHT\" [fixedWidth]=\"true\" [size]=\"'sm'\"></fa-icon>\n </button>\n\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SdsNumberBoxComponent } from './number-box.component';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\n\n\n@NgModule({\n declarations: [\n SdsNumberBoxComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule\n ],\n exports: [\n SdsNumberBoxComponent\n ]\n})\nexport class SdsNumberBoxModule { }\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,OA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AA;YACP,YAAY;YACZ,iBAAiB;AAClB,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;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, ViewChild, NgModule } from '@angular/core';
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(_renderer) {
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: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
23
- SdsTableActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SdsTableActionsComponent, selector: "sds-table-actions", inputs: { dropdownIcon: "dropdownIcon" }, viewQueries: [{ propertyName: "_dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, static: true }], ngImport: i0, 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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\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"] }] });
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: "\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 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"] }] });
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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>", styles: [""] }]
27
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { dropdownIcon: [{
18
+ 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 class=\"dropdown-menu sds-table-dropdown-menu py-2\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\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'];\n @ViewChild('dropdownButton', { static: true }) private _dropdownButton: ElementRef | undefined;\n\n public dropdownButtonId = `sds-ta-${Math.ceil(Math.random() * 1000000)}`;\n\n constructor(\n private _renderer: Renderer2\n ) {}\n\n public closeDropdown(): void {\n console.log('close dropdown');\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\">\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 \n class=\"dropdown-menu sds-table-dropdown-menu py-2\"\n (click)=\"closeDropdown()\"\n >\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;AAOjC,IAAA,WAAA,CACY,SAAoB,EAAA;QAApB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;AANvB,QAAA,IAAA,CAAA,YAAY,GAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAG/C,QAAA,IAAA,CAAA,gBAAgB,GAAG,CAAA,OAAA,EAAU,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;KAIrE;IAEG,aAAa,GAAA;AAChB,QAAA,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;;;;KAIjC;AAED,IAAA,QAAQ,MAAW;;qHAlBV,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,CAAA,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,EA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jB,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;;;;"}
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\n constructor(\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\">\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 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;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,+3BA2BM,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,+3BAAA,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
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.25.4",
3
+ "version": "5.26.0",
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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './number-box.module';
2
+ export * from './number-box.component';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@spicainternational/ngx-sds-components/src/lib/number-box" />
5
+ export * from './public-api';
@@ -1,13 +1,9 @@
1
- import { OnInit, Renderer2 } from '@angular/core';
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
- private _dropdownButton;
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", "*"]>;