oxpi-nglib 0.0.1 → 0.0.5

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.
@@ -1,21 +1,77 @@
1
1
  import { NgModule } from '@angular/core';
2
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
2
3
  import { BusyIndicatorComponent } from './controls/busy-indicator/busy-indicator.component';
4
+ import { BrowserModule } from '@angular/platform-browser';
5
+ import { MatIconModule } from '@angular/material/icon';
6
+ import { MatButtonModule } from '@angular/material/button';
7
+ import { FormsModule } from '@angular/forms';
8
+ import { MonthYearPickerComponent } from './controls/month-year-picker/month-year-picker.component';
9
+ import { ImageViewerComponent } from './controls/image-viewer/image-viewer.component';
10
+ import { NumericPickerComponent } from './controls/numeric-picker/numeric-picker.component';
11
+ import { PaginatorComponent } from './controls/paginator/paginator.component';
12
+ import { CheckButtonComponent } from './controls/check-button/check-button.component';
13
+ import { RadioButtonGroupComponent } from './controls/radio-button-group/radio-button-group.component';
3
14
  import * as i0 from "@angular/core";
15
+ Array.prototype.firstOrNull = function () {
16
+ if (this.length > 0)
17
+ return this[0];
18
+ return null;
19
+ };
4
20
  export class OxpiNglibModule {
5
21
  }
6
22
  OxpiNglibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- OxpiNglibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, declarations: [BusyIndicatorComponent], exports: [BusyIndicatorComponent] });
8
- OxpiNglibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, imports: [[]] });
23
+ OxpiNglibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, declarations: [BusyIndicatorComponent,
24
+ MonthYearPickerComponent,
25
+ ImageViewerComponent,
26
+ NumericPickerComponent,
27
+ PaginatorComponent,
28
+ CheckButtonComponent,
29
+ RadioButtonGroupComponent], imports: [BrowserModule,
30
+ BrowserAnimationsModule,
31
+ FormsModule,
32
+ MatButtonModule,
33
+ MatIconModule], exports: [BusyIndicatorComponent,
34
+ MonthYearPickerComponent,
35
+ ImageViewerComponent,
36
+ NumericPickerComponent,
37
+ PaginatorComponent,
38
+ CheckButtonComponent,
39
+ RadioButtonGroupComponent] });
40
+ OxpiNglibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, imports: [[
41
+ BrowserModule,
42
+ BrowserAnimationsModule,
43
+ FormsModule,
44
+ MatButtonModule,
45
+ MatIconModule,
46
+ ]] });
9
47
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, decorators: [{
10
48
  type: NgModule,
11
49
  args: [{
12
50
  declarations: [
13
- BusyIndicatorComponent
51
+ BusyIndicatorComponent,
52
+ MonthYearPickerComponent,
53
+ ImageViewerComponent,
54
+ NumericPickerComponent,
55
+ PaginatorComponent,
56
+ CheckButtonComponent,
57
+ RadioButtonGroupComponent,
58
+ ],
59
+ imports: [
60
+ BrowserModule,
61
+ BrowserAnimationsModule,
62
+ FormsModule,
63
+ MatButtonModule,
64
+ MatIconModule,
14
65
  ],
15
- imports: [],
16
66
  exports: [
17
- BusyIndicatorComponent
67
+ BusyIndicatorComponent,
68
+ MonthYearPickerComponent,
69
+ ImageViewerComponent,
70
+ NumericPickerComponent,
71
+ PaginatorComponent,
72
+ CheckButtonComponent,
73
+ RadioButtonGroupComponent
18
74
  ]
19
75
  }]
20
76
  }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3hwaS1uZ2xpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290Ij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xuICAgIEJ1c3lJbmRpY2F0b3JDb21wb25lbnQsXG4gICAgTW9udGhZZWFyUGlja2VyQ29tcG9uZW50LFxuICAgIEltYWdlVmlld2VyQ29tcG9uZW50LFxuICAgIE51bWVyaWNQaWNrZXJDb21wb25lbnQsXG4gICAgUGFnaW5hdG9yQ29tcG9uZW50LFxuICAgIENoZWNrQnV0dG9uQ29tcG9uZW50LFxuICAgIFJhZGlvQnV0dG9uR3JvdXBDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBPeHBpTmdsaWJNb2R1bGUgeyB9XG4iXX0=
@@ -3,5 +3,11 @@
3
3
  */
4
4
  //export * from './lib/oxpi-nglib.service';
5
5
  export * from './lib/controls/busy-indicator/busy-indicator.component';
6
+ export * from './lib/controls/check-button/check-button.component';
7
+ export * from './lib/controls/image-viewer/image-viewer.component';
8
+ export * from './lib/controls/month-year-picker/month-year-picker.component';
9
+ export * from './lib/controls/numeric-picker/numeric-picker.component';
10
+ export * from './lib/controls/paginator/paginator.component';
11
+ export * from './lib/controls/radio-button-group/radio-button-group.component';
6
12
  export * from './lib/oxpi-nglib.module';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL294cGktbmdsaWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCwyQ0FBMkM7QUFDM0MsY0FBYyx3REFBd0QsQ0FBQztBQUN2RSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBveHBpLW5nbGliXG4gKi9cblxuLy9leHBvcnQgKiBmcm9tICcuL2xpYi9veHBpLW5nbGliLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJv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GliL2NvbnRyb2xzL21vbnRoLXllYXItcGlja2VyL21vbnRoLXllYXItcGlja2VyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb250cm9scy9udW1lcmljLXBpY2tlci9udW1lcmljLXBpY2tlci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29udHJvbHMvcGFnaW5hdG9yL3BhZ2luYXRvci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29udHJvbHMvcmFkaW8tYnV0dG9uLWdyb3VwL3JhZGlvLWJ1dHRvbi1ncm91cC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvb3hwaS1uZ2xpYi5tb2R1bGUnO1xuIl19
@@ -1,5 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, NgModule } from '@angular/core';
2
+ import { Component, Input, EventEmitter, Output, HostListener, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import * as i1$1 from '@angular/material/button';
5
+ import { MatButtonModule } from '@angular/material/button';
6
+ import * as i2 from '@angular/material/icon';
7
+ import { MatIconModule } from '@angular/material/icon';
8
+ import * as i3 from '@angular/forms';
9
+ import { FormsModule } from '@angular/forms';
10
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
11
+ import { BrowserModule } from '@angular/platform-browser';
3
12
 
4
13
  class BusyIndicatorComponent {
5
14
  constructor() {
@@ -9,7 +18,7 @@ class BusyIndicatorComponent {
9
18
  }
10
19
  }
11
20
  BusyIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BusyIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
- BusyIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: BusyIndicatorComponent, selector: "ox-busy-indicator", inputs: { isBusy: "isBusy" }, ngImport: i0, template: "<div class=\"busy-indicator-container\" *ngIf=\"isBusy\">\n <div class=\"busy-indicator\"></div>\n</div>", styles: [".busy-indicator-container{position:fixed;left:50%;top:35%;text-align:center;z-index:1000;margin-left:-47px;background:white;border-radius:8px;padding:20px;border:solid 2px transparent;background-clip:padding-box;box-shadow:10px 10px 10px #2e364414}.busy-indicator{border:10px solid #e2e2e2;border-top:10px solid var(--app-color, black);border-radius:50%;width:50px;height:50px;animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] });
21
+ BusyIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: BusyIndicatorComponent, selector: "ox-busy-indicator", inputs: { isBusy: "isBusy" }, ngImport: i0, template: "<div class=\"busy-indicator-container\" *ngIf=\"isBusy\">\n <div class=\"busy-indicator\"></div>\n</div>", styles: [".busy-indicator-container{position:fixed;left:50%;top:35%;text-align:center;z-index:1000;margin-left:-47px;background:white;border-radius:8px;padding:20px;border:solid 2px transparent;background-clip:padding-box;box-shadow:10px 10px 10px #2e364414}.busy-indicator{border:10px solid #e2e2e2;border-top:10px solid var(--app-color, black);border-radius:50%;width:50px;height:50px;animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
13
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BusyIndicatorComponent, decorators: [{
14
23
  type: Component,
15
24
  args: [{ selector: 'ox-busy-indicator', template: "<div class=\"busy-indicator-container\" *ngIf=\"isBusy\">\n <div class=\"busy-indicator\"></div>\n</div>", styles: [".busy-indicator-container{position:fixed;left:50%;top:35%;text-align:center;z-index:1000;margin-left:-47px;background:white;border-radius:8px;padding:20px;border:solid 2px transparent;background-clip:padding-box;box-shadow:10px 10px 10px #2e364414}.busy-indicator{border:10px solid #e2e2e2;border-top:10px solid var(--app-color, black);border-radius:50%;width:50px;height:50px;animation:spin .5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
@@ -17,20 +26,486 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
17
26
  type: Input
18
27
  }] } });
19
28
 
29
+ class CheckButtonComponent {
30
+ constructor() {
31
+ this.checked = false;
32
+ this.radioBehavior = false;
33
+ this.changed = new EventEmitter();
34
+ this.checked = true;
35
+ }
36
+ ngOnInit() {
37
+ }
38
+ onClick(e) {
39
+ if (!this.radioBehavior)
40
+ this.checked = !this.checked;
41
+ this.changed.emit(this.checked);
42
+ }
43
+ }
44
+ CheckButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
45
+ CheckButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CheckButtonComponent, selector: "ox-check-button", inputs: { checked: "checked", radioBehavior: "radioBehavior" }, outputs: { changed: "changed" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.checked": "checked" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{padding:4px 8px;cursor:pointer;white-space:nowrap;color:#666;font-size:small;text-transform:uppercase;background-color:#ececec}:host:hover{background:rgba(0,0,0,.1)}:host(.checked){background:var(--app-color, black);color:#fff;box-shadow:0 8px 16px #0000001a}\n"] });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckButtonComponent, decorators: [{
47
+ type: Component,
48
+ args: [{ selector: 'ox-check-button', host: {
49
+ '[class.checked]': "checked",
50
+ }, template: "<ng-content></ng-content>", styles: [":host{padding:4px 8px;cursor:pointer;white-space:nowrap;color:#666;font-size:small;text-transform:uppercase;background-color:#ececec}:host:hover{background:rgba(0,0,0,.1)}:host(.checked){background:var(--app-color, black);color:#fff;box-shadow:0 8px 16px #0000001a}\n"] }]
51
+ }], ctorParameters: function () { return []; }, propDecorators: { checked: [{
52
+ type: Input
53
+ }], radioBehavior: [{
54
+ type: Input
55
+ }], changed: [{
56
+ type: Output
57
+ }], onClick: [{
58
+ type: HostListener,
59
+ args: ['click', ['$event']]
60
+ }] } });
61
+
62
+ class ImageViewerComponent {
63
+ constructor() {
64
+ this.infos = [];
65
+ this._isOpen = false;
66
+ this.paginaAtual = 0;
67
+ this.disableBack = false;
68
+ this.disableNext = false;
69
+ this.isOpenChange = new EventEmitter();
70
+ }
71
+ get isOpen() {
72
+ return this._isOpen;
73
+ }
74
+ set isOpen(val) {
75
+ this._isOpen = val;
76
+ this.isOpenChange.emit(val);
77
+ }
78
+ onClick(e) {
79
+ //this.isOpen = !this.isOpen;
80
+ }
81
+ ngOnInit() {
82
+ }
83
+ open(info, infos) {
84
+ if (infos !== undefined) {
85
+ for (let i = 0; i < infos.length; i++) {
86
+ if (infos[i] === info) {
87
+ this.paginaAtual = i + 1;
88
+ break;
89
+ }
90
+ }
91
+ }
92
+ this.info = info;
93
+ this.infos = infos;
94
+ this.isOpen = true;
95
+ this.updateUI();
96
+ }
97
+ goNext() {
98
+ this.paginaAtual += 1;
99
+ this.info = this.infos[this.paginaAtual - 1];
100
+ this.updateUI();
101
+ }
102
+ goBack() {
103
+ this.paginaAtual -= 1;
104
+ this.info = this.infos[this.paginaAtual - 1];
105
+ this.updateUI();
106
+ }
107
+ updateUI() {
108
+ this.disableBack = this.paginaAtual == 1;
109
+ this.disableNext = this.paginaAtual == this.infos.length;
110
+ }
111
+ }
112
+ ImageViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ImageViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
113
+ ImageViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ImageViewerComponent, selector: "ox-image-viewer", inputs: { info: "info", infos: "infos", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: "<div class=\"image-fullsize\" *ngIf=\"isOpen\">\n <div class=\"titulo\">\n {{info?.titulo}}\n </div>\n <div class=\"img-container\" (click)=\"isOpen = !isOpen\">\n <img class=\"image\" *ngIf=\"info\" [src]=\"info?.url\" />\n </div>\n <div class=\"action-bar\" *ngIf=\"infos\">\n <button (click)=\"goBack()\" [disabled]=\"disableBack\" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n <span class=\"picker-text\">\n {{paginaAtual}}/{{infos?.length}}\n </span>\n <button (click)=\"goNext()\" [disabled]=\"disableNext\" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: [".image-fullsize{position:absolute;left:0;top:0;background:rgba(0,0,0,.8);width:100%;height:100%;display:flex;flex-flow:column}.titulo{color:#fff;text-align:center;padding:16px;font-size:large;font-weight:300}.action-bar{background:linear-gradient(135deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.9) 50%,rgba(0,0,0,.8) 100%);color:#fff;padding:8px}.img-container{flex-grow:1;display:flex;justify-content:center;align-items:center}.image{box-shadow:0 5px 35px #000000a6;max-width:100%;height:auto}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ImageViewerComponent, decorators: [{
115
+ type: Component,
116
+ args: [{ selector: 'ox-image-viewer', template: "<div class=\"image-fullsize\" *ngIf=\"isOpen\">\n <div class=\"titulo\">\n {{info?.titulo}}\n </div>\n <div class=\"img-container\" (click)=\"isOpen = !isOpen\">\n <img class=\"image\" *ngIf=\"info\" [src]=\"info?.url\" />\n </div>\n <div class=\"action-bar\" *ngIf=\"infos\">\n <button (click)=\"goBack()\" [disabled]=\"disableBack\" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n <span class=\"picker-text\">\n {{paginaAtual}}/{{infos?.length}}\n </span>\n <button (click)=\"goNext()\" [disabled]=\"disableNext\" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: [".image-fullsize{position:absolute;left:0;top:0;background:rgba(0,0,0,.8);width:100%;height:100%;display:flex;flex-flow:column}.titulo{color:#fff;text-align:center;padding:16px;font-size:large;font-weight:300}.action-bar{background:linear-gradient(135deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.9) 50%,rgba(0,0,0,.8) 100%);color:#fff;padding:8px}.img-container{flex-grow:1;display:flex;justify-content:center;align-items:center}.image{box-shadow:0 5px 35px #000000a6;max-width:100%;height:auto}\n"] }]
117
+ }], ctorParameters: function () { return []; }, propDecorators: { info: [{
118
+ type: Input
119
+ }], infos: [{
120
+ type: Input
121
+ }], isOpenChange: [{
122
+ type: Output
123
+ }], isOpen: [{
124
+ type: Input
125
+ }], onClick: [{
126
+ type: HostListener,
127
+ args: ['click', ['$event']]
128
+ }] } });
129
+
130
+ class MonthYearPickerComponent {
131
+ constructor() {
132
+ this.anoChange = new EventEmitter();
133
+ this.mesChange = new EventEmitter();
134
+ this.changed = new EventEmitter();
135
+ this._init = false;
136
+ this._modoAnual = false;
137
+ this._meses = ["JANEIRO", "FEVEREIRO", "MARÇO", "ABRIL", "MAIO", "JUNHO", "JULHO", "AGOSTO", "SETEMBRO", "OUTUBRO", "NOVEMBRO", "DEZEMBRO"];
138
+ this.text = '';
139
+ this.disableNext = false;
140
+ this.blockFuture = false;
141
+ let d = new Date();
142
+ this._ano = d.getFullYear();
143
+ this._mes = d.getMonth() + 1;
144
+ }
145
+ get modoAnual() {
146
+ return this._modoAnual;
147
+ }
148
+ set modoAnual(val) {
149
+ this._modoAnual = val;
150
+ if (!this._init)
151
+ return;
152
+ this.updateText();
153
+ this.raiseOnSelectionChanged();
154
+ }
155
+ get ano() {
156
+ return this._ano;
157
+ }
158
+ set ano(val) {
159
+ this._ano = val;
160
+ if (!this._init)
161
+ return;
162
+ this.anoChange.emit(val);
163
+ this.updateText();
164
+ }
165
+ get mes() {
166
+ return this._mes;
167
+ }
168
+ set mes(val) {
169
+ this._mes = val;
170
+ if (!this._init)
171
+ return;
172
+ this.mesChange.emit(val);
173
+ this.updateText();
174
+ }
175
+ ngOnInit() {
176
+ this.updateText();
177
+ this._init = true;
178
+ }
179
+ goBack() {
180
+ if (this.modoAnual) {
181
+ this.ano -= 1;
182
+ }
183
+ else {
184
+ this.mes--;
185
+ if (this.mes < 1) {
186
+ this.ano -= 1;
187
+ this.mes = 12;
188
+ }
189
+ }
190
+ this.updateText();
191
+ this.raiseOnSelectionChanged();
192
+ }
193
+ ;
194
+ goNext() {
195
+ if (this.modoAnual) {
196
+ this.ano += 1;
197
+ }
198
+ else {
199
+ this.mes++;
200
+ if (this.mes > 12) {
201
+ this.ano += 1;
202
+ this.mes = 1;
203
+ }
204
+ }
205
+ this.updateText();
206
+ this.raiseOnSelectionChanged();
207
+ }
208
+ ;
209
+ updateText() {
210
+ if (this.modoAnual)
211
+ this.text = '' + this._ano;
212
+ else
213
+ this.text = this._meses[this._mes - 1] + " DE " + this._ano;
214
+ if (!this.blockFuture)
215
+ return;
216
+ let d = new Date();
217
+ let ano = d.getFullYear();
218
+ let mes = d.getMonth() + 1;
219
+ if (!this.modoAnual)
220
+ this.disableNext = ano == this.ano && this.mes >= mes;
221
+ else
222
+ this.disableNext = ano == this.ano;
223
+ }
224
+ ;
225
+ raiseOnSelectionChanged() {
226
+ let d = { ano: this._ano, mes: this._mes };
227
+ this.changed.emit(d);
228
+ }
229
+ }
230
+ MonthYearPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonthYearPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
231
+ MonthYearPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MonthYearPickerComponent, selector: "ox-month-year-picker", inputs: { blockFuture: "blockFuture", modoAnual: "modoAnual", ano: "ano", mes: "mes" }, outputs: { anoChange: "anoChange", mesChange: "mesChange", changed: "changed" }, ngImport: i0, template: "<div class=\"picker-container\">\n <div>\n <button mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n </div>\n <span class=\"picker-text\">\n {{text}}\n </span>\n <div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>", styles: [".picker-container{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:250px}.picker-text{flex-flow:1;flex-grow:1;text-align:center;font-weight:700}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonthYearPickerComponent, decorators: [{
233
+ type: Component,
234
+ args: [{ selector: 'ox-month-year-picker', template: "<div class=\"picker-container\">\n <div>\n <button mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n </div>\n <span class=\"picker-text\">\n {{text}}\n </span>\n <div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n </div>\n</div>", styles: [".picker-container{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:250px}.picker-text{flex-flow:1;flex-grow:1;text-align:center;font-weight:700}\n"] }]
235
+ }], ctorParameters: function () { return []; }, propDecorators: { anoChange: [{
236
+ type: Output
237
+ }], mesChange: [{
238
+ type: Output
239
+ }], changed: [{
240
+ type: Output
241
+ }], blockFuture: [{
242
+ type: Input
243
+ }], modoAnual: [{
244
+ type: Input
245
+ }], ano: [{
246
+ type: Input
247
+ }], mes: [{
248
+ type: Input
249
+ }] } });
250
+
251
+ class NumericPickerComponent {
252
+ constructor() {
253
+ this.valueChange = new EventEmitter();
254
+ this.change = new EventEmitter();
255
+ this._value = 0;
256
+ this._max = 0;
257
+ this._min = 0;
258
+ this.text = '';
259
+ this.disableNext = false;
260
+ this.disableBack = false;
261
+ }
262
+ get value() {
263
+ return this._value;
264
+ }
265
+ set value(val) {
266
+ this._value = val;
267
+ this.valueChange.emit(val);
268
+ this.refreshUI();
269
+ }
270
+ get max() {
271
+ return this._max;
272
+ }
273
+ set max(val) {
274
+ this._max = val;
275
+ this.refreshUI();
276
+ }
277
+ get min() {
278
+ return this._min;
279
+ }
280
+ set min(val) {
281
+ this._min = Number(val);
282
+ this.refreshUI();
283
+ }
284
+ ngOnInit() {
285
+ }
286
+ onTextEdit(ev) {
287
+ console.info(ev);
288
+ const i = Number(ev.target.value);
289
+ if (!this.valida(i))
290
+ this.text = '' + this.value;
291
+ else {
292
+ this.value = i;
293
+ this.raiseChange();
294
+ this.refreshUI();
295
+ }
296
+ }
297
+ goBack() {
298
+ const newVal = this.value - 1;
299
+ if (!this.valida(newVal))
300
+ return;
301
+ this.value = newVal;
302
+ this.raiseChange();
303
+ }
304
+ ;
305
+ goNext() {
306
+ const newVal = this.value + 1;
307
+ if (!this.valida(newVal))
308
+ return;
309
+ this.value = newVal;
310
+ this.raiseChange();
311
+ }
312
+ ;
313
+ refreshUI() {
314
+ this.text = this.value === undefined ? '--' : '' + this.value;
315
+ this.disableNext = this.max !== undefined && this.value === this.max;
316
+ this.disableBack = this.min !== undefined && this.value === this.min;
317
+ }
318
+ valida(val) {
319
+ if (isNaN(val))
320
+ return false;
321
+ if (this.max !== undefined && val > this.max)
322
+ return false;
323
+ if (this.min !== undefined && val < this.min)
324
+ return false;
325
+ return true;
326
+ }
327
+ raiseChange() {
328
+ this.change.emit(this.value);
329
+ }
330
+ }
331
+ NumericPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NumericPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
332
+ NumericPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: NumericPickerComponent, selector: "ox-numeric-picker", inputs: { value: "value", max: "max", min: "min" }, outputs: { valueChange: "valueChange", change: "change" }, ngImport: i0, template: "<div>\n <button mat-icon-button (click)=\"goBack()\" [disabled]=\"disableBack\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n</div>\n<input [(ngModel)]=\"text\" (change)=\"onTextEdit($event)\" class=\"date\">\n<div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:60px}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NumericPickerComponent, decorators: [{
334
+ type: Component,
335
+ args: [{ selector: 'ox-numeric-picker', template: "<div>\n <button mat-icon-button (click)=\"goBack()\" [disabled]=\"disableBack\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n</div>\n<input [(ngModel)]=\"text\" (change)=\"onTextEdit($event)\" class=\"date\">\n<div>\n <button mat-icon-button (click)=\"goNext()\" [disabled]=\"disableNext\" >\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;min-width:60px}\n"] }]
336
+ }], ctorParameters: function () { return []; }, propDecorators: { valueChange: [{
337
+ type: Output
338
+ }], change: [{
339
+ type: Output
340
+ }], value: [{
341
+ type: Input
342
+ }], max: [{
343
+ type: Input
344
+ }], min: [{
345
+ type: Input
346
+ }] } });
347
+
348
+ class PaginatorComponent {
349
+ constructor() {
350
+ this.paginaAtualChange = new EventEmitter();
351
+ this.totalPaginasChange = new EventEmitter();
352
+ this.change = new EventEmitter();
353
+ this._paginaAtual = 1;
354
+ this._totalPaginas = 1;
355
+ this.inicio = true;
356
+ this.fim = true;
357
+ this.pageSize = 0;
358
+ }
359
+ get paginaAtual() {
360
+ return this._paginaAtual;
361
+ }
362
+ set paginaAtual(val) {
363
+ this._paginaAtual = val;
364
+ this.paginaAtualChange.emit(val);
365
+ this.refreshUI();
366
+ }
367
+ get totalPaginas() {
368
+ return this._totalPaginas;
369
+ }
370
+ set totalPaginas(val) {
371
+ this._totalPaginas = val;
372
+ this.totalPaginasChange.emit(val);
373
+ this.refreshUI();
374
+ }
375
+ ngOnInit() {
376
+ }
377
+ trocaPagina(pagina) {
378
+ if (pagina > this.totalPaginas || pagina < 1)
379
+ return;
380
+ this.paginaAtual = pagina;
381
+ this.refreshUI();
382
+ this.change.emit(this.paginaAtual);
383
+ }
384
+ refreshUI() {
385
+ this.inicio = this.paginaAtual == 1;
386
+ this.fim = this.paginaAtual == this.totalPaginas;
387
+ }
388
+ goBack() {
389
+ this.trocaPagina(this.paginaAtual - 1);
390
+ }
391
+ goNext() {
392
+ this.trocaPagina(this.paginaAtual + 1);
393
+ }
394
+ }
395
+ PaginatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
396
+ PaginatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: PaginatorComponent, selector: "ox-paginator", inputs: { pageSize: "pageSize", paginaAtual: "paginaAtual", totalPaginas: "totalPaginas" }, outputs: { paginaAtualChange: "paginaAtualChange", totalPaginasChange: "totalPaginasChange", change: "change" }, ngImport: i0, template: "<button [disabled]=\"inicio\" mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n</button>\n<span class=\"picker-text\">\n {{paginaAtual}}/{{totalPaginas}}\n</span>\n<button [disabled]=\"fim\" mat-icon-button (click)=\"goNext()\">\n <mat-icon>chevron_right</mat-icon>\n</button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;flex-wrap:nowrap}.picker-text{flex-flow:1;flex-grow:1;text-align:center}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PaginatorComponent, decorators: [{
398
+ type: Component,
399
+ args: [{ selector: 'ox-paginator', template: "<button [disabled]=\"inicio\" mat-icon-button (click)=\"goBack()\">\n <mat-icon>chevron_left</mat-icon>\n</button>\n<span class=\"picker-text\">\n {{paginaAtual}}/{{totalPaginas}}\n</span>\n<button [disabled]=\"fim\" mat-icon-button (click)=\"goNext()\">\n <mat-icon>chevron_right</mat-icon>\n</button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:center;align-items:center;background:transparent;flex-wrap:nowrap}.picker-text{flex-flow:1;flex-grow:1;text-align:center}\n"] }]
400
+ }], ctorParameters: function () { return []; }, propDecorators: { paginaAtualChange: [{
401
+ type: Output
402
+ }], totalPaginasChange: [{
403
+ type: Output
404
+ }], change: [{
405
+ type: Output
406
+ }], pageSize: [{
407
+ type: Input
408
+ }], paginaAtual: [{
409
+ type: Input
410
+ }], totalPaginas: [{
411
+ type: Input
412
+ }] } });
413
+
414
+ class RadioButtonGroupComponent {
415
+ constructor() {
416
+ this.change = new EventEmitter();
417
+ this._items = [];
418
+ //_init : boolean = false;
419
+ this.selectedItem = null;
420
+ }
421
+ get items() {
422
+ return this._items;
423
+ }
424
+ set items(val) {
425
+ this._items = val;
426
+ this.selectedItem = this.items.filter(x => x.default === true).firstOrNull();
427
+ if (this.selectedItem === null)
428
+ this.selectedItem = this.items.firstOrNull();
429
+ }
430
+ ngOnInit() {
431
+ }
432
+ raiseChange(item) {
433
+ this.selectedItem = item;
434
+ this.change.emit(this.selectedItem);
435
+ }
436
+ }
437
+ RadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
438
+ RadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioButtonGroupComponent, selector: "ox-radio-button-group", inputs: { selectedItem: "selectedItem", items: "items" }, outputs: { change: "change" }, ngImport: i0, template: "<ox-check-button [radioBehavior]=\"true\" (changed)=\"raiseChange(item)\" [checked]=\"item == selectedItem\" *ngFor=\"let item of items\">\n {{item.name}}\n</ox-check-button>", styles: [":host>:first-child{border-radius:4px 0 0 4px}:host>:last-child{border-radius:0 4px 4px 0}\n"], components: [{ type: CheckButtonComponent, selector: "ox-check-button", inputs: ["checked", "radioBehavior"], outputs: ["changed"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioButtonGroupComponent, decorators: [{
440
+ type: Component,
441
+ args: [{ selector: 'ox-radio-button-group', template: "<ox-check-button [radioBehavior]=\"true\" (changed)=\"raiseChange(item)\" [checked]=\"item == selectedItem\" *ngFor=\"let item of items\">\n {{item.name}}\n</ox-check-button>", styles: [":host>:first-child{border-radius:4px 0 0 4px}:host>:last-child{border-radius:0 4px 4px 0}\n"] }]
442
+ }], ctorParameters: function () { return []; }, propDecorators: { change: [{
443
+ type: Output
444
+ }], selectedItem: [{
445
+ type: Input
446
+ }], items: [{
447
+ type: Input
448
+ }] } });
449
+
450
+ Array.prototype.firstOrNull = function () {
451
+ if (this.length > 0)
452
+ return this[0];
453
+ return null;
454
+ };
20
455
  class OxpiNglibModule {
21
456
  }
22
457
  OxpiNglibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
- OxpiNglibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, declarations: [BusyIndicatorComponent], exports: [BusyIndicatorComponent] });
24
- OxpiNglibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, imports: [[]] });
458
+ OxpiNglibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, declarations: [BusyIndicatorComponent,
459
+ MonthYearPickerComponent,
460
+ ImageViewerComponent,
461
+ NumericPickerComponent,
462
+ PaginatorComponent,
463
+ CheckButtonComponent,
464
+ RadioButtonGroupComponent], imports: [BrowserModule,
465
+ BrowserAnimationsModule,
466
+ FormsModule,
467
+ MatButtonModule,
468
+ MatIconModule], exports: [BusyIndicatorComponent,
469
+ MonthYearPickerComponent,
470
+ ImageViewerComponent,
471
+ NumericPickerComponent,
472
+ PaginatorComponent,
473
+ CheckButtonComponent,
474
+ RadioButtonGroupComponent] });
475
+ OxpiNglibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, imports: [[
476
+ BrowserModule,
477
+ BrowserAnimationsModule,
478
+ FormsModule,
479
+ MatButtonModule,
480
+ MatIconModule,
481
+ ]] });
25
482
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: OxpiNglibModule, decorators: [{
26
483
  type: NgModule,
27
484
  args: [{
28
485
  declarations: [
29
- BusyIndicatorComponent
486
+ BusyIndicatorComponent,
487
+ MonthYearPickerComponent,
488
+ ImageViewerComponent,
489
+ NumericPickerComponent,
490
+ PaginatorComponent,
491
+ CheckButtonComponent,
492
+ RadioButtonGroupComponent,
493
+ ],
494
+ imports: [
495
+ BrowserModule,
496
+ BrowserAnimationsModule,
497
+ FormsModule,
498
+ MatButtonModule,
499
+ MatIconModule,
30
500
  ],
31
- imports: [],
32
501
  exports: [
33
- BusyIndicatorComponent
502
+ BusyIndicatorComponent,
503
+ MonthYearPickerComponent,
504
+ ImageViewerComponent,
505
+ NumericPickerComponent,
506
+ PaginatorComponent,
507
+ CheckButtonComponent,
508
+ RadioButtonGroupComponent
34
509
  ]
35
510
  }]
36
511
  }] });
@@ -43,5 +518,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
43
518
  * Generated bundle index. Do not edit.
44
519
  */
45
520
 
46
- export { BusyIndicatorComponent, OxpiNglibModule };
521
+ export { BusyIndicatorComponent, CheckButtonComponent, ImageViewerComponent, MonthYearPickerComponent, NumericPickerComponent, OxpiNglibModule, PaginatorComponent, RadioButtonGroupComponent };
47
522
  //# sourceMappingURL=oxpi-nglib.mjs.map