@ajf/material 15.2.2 → 15.2.3

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.
@@ -0,0 +1,136 @@
1
+ import { AjfGeolocation } from '@ajf/core/geolocation';
2
+ import * as i0 from '@angular/core';
3
+ import { forwardRef, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
+ import * as i1 from '@angular/forms';
5
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
6
+ import * as i2 from '@angular/material/icon';
7
+ import { MatIconModule } from '@angular/material/icon';
8
+ import * as i3 from '@angular/material/input';
9
+ import { MatInputModule } from '@angular/material/input';
10
+ import * as i4 from '@angular/material/form-field';
11
+ import { MatFormFieldModule } from '@angular/material/form-field';
12
+ import * as i5 from '@ngneat/transloco';
13
+ import { AjfTranslocoModule } from '@ajf/core/transloco';
14
+ import { CommonModule } from '@angular/common';
15
+
16
+ /**
17
+ * @license
18
+ * Copyright (C) Gnucoop soc. coop.
19
+ *
20
+ * This file is part of the Advanced JSON forms (ajf).
21
+ *
22
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
23
+ * modify it under the terms of the GNU Affero General Public License as
24
+ * published by the Free Software Foundation, either version 3 of the License,
25
+ * or (at your option) any later version.
26
+ *
27
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
28
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
30
+ * General Public License for more details.
31
+ *
32
+ * You should have received a copy of the GNU Affero General Public License
33
+ * along with Advanced JSON forms (ajf).
34
+ * If not, see http://www.gnu.org/licenses/.
35
+ *
36
+ */
37
+ const GEOLOCATION_CONTROL_VALUE_ACCESSOR = {
38
+ provide: NG_VALUE_ACCESSOR,
39
+ useExisting: forwardRef(() => AjfGeolocationComponent),
40
+ multi: true,
41
+ };
42
+ /**
43
+ * Ajf geolocation component.
44
+ */
45
+ class AjfGeolocationComponent extends AjfGeolocation {
46
+ constructor(cdr) {
47
+ super(cdr);
48
+ }
49
+ }
50
+ AjfGeolocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGeolocationComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
51
+ AjfGeolocationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfGeolocationComponent, selector: "ajf-geolocation", providers: [GEOLOCATION_CONTROL_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<div class=\"flex-container\">\n <div class=\"flex-child\">\n <p>{{'Latitude'|transloco}}:</p>\n <mat-form-field>\n <input\n matInput\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"latitude\">\n </mat-form-field>\n </div>\n <div class=\"flex-child\">\n <p>{{'Longitude'|transloco}}:</p>\n <mat-form-field>\n <input\n matInput\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"longitude\">\n </mat-form-field>\n <button mat-raised-button (click)=\"getLocation()\">\n <mat-icon>location_on</mat-icon>\n </button>\n </div>\n</div>", styles: ["ajf-geolocation{display:block}ajf-geolocation button{background:none}ajf-geolocation .flex-container{display:flex;flex-wrap:wrap}ajf-geolocation .flex-child{white-space:nowrap}ajf-geolocation .flex-child p{display:inline-block;min-width:80px}ajf-geolocation .flex-child:first-child{margin-right:5px}\n"], dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGeolocationComponent, decorators: [{
53
+ type: Component,
54
+ args: [{ selector: 'ajf-geolocation', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [GEOLOCATION_CONTROL_VALUE_ACCESSOR], template: "<div class=\"flex-container\">\n <div class=\"flex-child\">\n <p>{{'Latitude'|transloco}}:</p>\n <mat-form-field>\n <input\n matInput\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"latitude\">\n </mat-form-field>\n </div>\n <div class=\"flex-child\">\n <p>{{'Longitude'|transloco}}:</p>\n <mat-form-field>\n <input\n matInput\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"longitude\">\n </mat-form-field>\n <button mat-raised-button (click)=\"getLocation()\">\n <mat-icon>location_on</mat-icon>\n </button>\n </div>\n</div>", styles: ["ajf-geolocation{display:block}ajf-geolocation button{background:none}ajf-geolocation .flex-container{display:flex;flex-wrap:wrap}ajf-geolocation .flex-child{white-space:nowrap}ajf-geolocation .flex-child p{display:inline-block;min-width:80px}ajf-geolocation .flex-child:first-child{margin-right:5px}\n"] }]
55
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
56
+
57
+ /**
58
+ * @license
59
+ * Copyright (C) Gnucoop soc. coop.
60
+ *
61
+ * This file is part of the Advanced JSON forms (ajf).
62
+ *
63
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
64
+ * modify it under the terms of the GNU Affero General Public License as
65
+ * published by the Free Software Foundation, either version 3 of the License,
66
+ * or (at your option) any later version.
67
+ *
68
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
69
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
70
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
71
+ * General Public License for more details.
72
+ *
73
+ * You should have received a copy of the GNU Affero General Public License
74
+ * along with Advanced JSON forms (ajf).
75
+ * If not, see http://www.gnu.org/licenses/.
76
+ *
77
+ */
78
+ class AjfGeolocationModule {
79
+ }
80
+ AjfGeolocationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGeolocationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
81
+ AjfGeolocationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AjfGeolocationModule, declarations: [AjfGeolocationComponent], imports: [AjfTranslocoModule,
82
+ CommonModule,
83
+ FormsModule,
84
+ MatIconModule,
85
+ MatInputModule,
86
+ MatFormFieldModule], exports: [AjfGeolocationComponent] });
87
+ AjfGeolocationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGeolocationModule, imports: [AjfTranslocoModule,
88
+ CommonModule,
89
+ FormsModule,
90
+ MatIconModule,
91
+ MatInputModule,
92
+ MatFormFieldModule] });
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGeolocationModule, decorators: [{
94
+ type: NgModule,
95
+ args: [{
96
+ imports: [
97
+ AjfTranslocoModule,
98
+ CommonModule,
99
+ FormsModule,
100
+ MatIconModule,
101
+ MatInputModule,
102
+ MatFormFieldModule,
103
+ ],
104
+ declarations: [AjfGeolocationComponent],
105
+ exports: [AjfGeolocationComponent],
106
+ }]
107
+ }] });
108
+
109
+ /**
110
+ * @license
111
+ * Copyright (C) Gnucoop soc. coop.
112
+ *
113
+ * This file is part of the Advanced JSON forms (ajf).
114
+ *
115
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
116
+ * modify it under the terms of the GNU Affero General Public License as
117
+ * published by the Free Software Foundation, either version 3 of the License,
118
+ * or (at your option) any later version.
119
+ *
120
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
121
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
122
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
123
+ * General Public License for more details.
124
+ *
125
+ * You should have received a copy of the GNU Affero General Public License
126
+ * along with Advanced JSON forms (ajf).
127
+ * If not, see http://www.gnu.org/licenses/.
128
+ *
129
+ */
130
+
131
+ /**
132
+ * Generated bundle index. Do not edit.
133
+ */
134
+
135
+ export { AjfGeolocationComponent, AjfGeolocationModule, GEOLOCATION_CONTROL_VALUE_ACCESSOR };
136
+ //# sourceMappingURL=ajf-material-geolocation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ajf-material-geolocation.mjs","sources":["../../../projects/material/geolocation/src/geolocation.ts","../../../projects/material/geolocation/src/geolocation.html","../../../projects/material/geolocation/src/geolocation-module.ts","../../../projects/material/geolocation/src/public_api.ts","../../../projects/material/geolocation/src/ajf-material-geolocation.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfGeolocation} from '@ajf/core/geolocation';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n OnDestroy,\n ViewEncapsulation,\n} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\n\nexport const GEOLOCATION_CONTROL_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AjfGeolocationComponent),\n multi: true,\n};\n\n/**\n * Ajf geolocation component.\n */\n@Component({\n selector: 'ajf-geolocation',\n templateUrl: 'geolocation.html',\n styleUrls: ['geolocation.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [GEOLOCATION_CONTROL_VALUE_ACCESSOR],\n})\nexport class AjfGeolocationComponent extends AjfGeolocation implements OnDestroy {\n constructor(cdr: ChangeDetectorRef) {\n super(cdr);\n }\n}\n","<div class=\"flex-container\">\n <div class=\"flex-child\">\n <p>{{'Latitude'|transloco}}:</p>\n <mat-form-field>\n <input\n matInput\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"latitude\">\n </mat-form-field>\n </div>\n <div class=\"flex-child\">\n <p>{{'Longitude'|transloco}}:</p>\n <mat-form-field>\n <input\n matInput\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"longitude\">\n </mat-form-field>\n <button mat-raised-button (click)=\"getLocation()\">\n <mat-icon>location_on</mat-icon>\n </button>\n </div>\n</div>","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfTranslocoModule} from '@ajf/core/transloco';\nimport {CommonModule} from '@angular/common';\n\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatInputModule} from '@angular/material/input';\nimport {AjfGeolocationComponent} from './geolocation';\n\n@NgModule({\n imports: [\n AjfTranslocoModule,\n CommonModule,\n FormsModule,\n MatIconModule,\n MatInputModule,\n MatFormFieldModule,\n ],\n declarations: [AjfGeolocationComponent],\n exports: [AjfGeolocationComponent],\n})\nexport class AjfGeolocationModule {}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './geolocation';\nexport * from './geolocation-module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;AA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AA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kHAApB,oBAAoB,EAAA,YAAA,EAAA,CAHhB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAPpC,kBAAkB;QAClB,YAAY;QACZ,WAAW;QACX,aAAa;QACb,cAAc;AACd,QAAA,kBAAkB,aAGV,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAEtB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAV7B,kBAAkB;QAClB,YAAY;QACZ,WAAW;QACX,aAAa;QACb,cAAc;QACd,kBAAkB,CAAA,EAAA,CAAA,CAAA;2FAKT,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,kBAAkB;wBAClB,YAAY;wBACZ,WAAW;wBACX,aAAa;wBACb,cAAc;wBACd,kBAAkB;AACnB,qBAAA;oBACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,iBAAA,CAAA;;;AC3CD;;;;;;;;;;;;;;;;;;;;AAoBG;;ACpBH;;AAEG;;;;"}
@@ -40,10 +40,10 @@ class AjfTime extends AjfTime$1 {
40
40
  }
41
41
  }
42
42
  AjfTime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfTime, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- AjfTime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfTime, selector: "ajf-time", providers: [AJF_TIME_CONTROL_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<div>\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"23\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"hours\"\n type=\"number\">\n </mat-form-field>\n :\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"59\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"minutes\"\n type=\"number\">\n </mat-form-field>\n</div>\n", styles: ["ajf-time .mat-mdc-form-field{width:1.5em;text-align:center}\n"], dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
43
+ AjfTime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfTime, selector: "ajf-time", providers: [AJF_TIME_CONTROL_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<div>\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"23\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"hours\"\n type=\"number\">\n </mat-form-field>\n :\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"59\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"minutes\"\n type=\"number\">\n </mat-form-field>\n</div>\n", styles: ["ajf-time .mat-mdc-form-field{width:3.5em;text-align:center}\n"], dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
44
44
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfTime, decorators: [{
45
45
  type: Component,
46
- args: [{ selector: 'ajf-time', providers: [AJF_TIME_CONTROL_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"23\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"hours\"\n type=\"number\">\n </mat-form-field>\n :\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"59\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"minutes\"\n type=\"number\">\n </mat-form-field>\n</div>\n", styles: ["ajf-time .mat-mdc-form-field{width:1.5em;text-align:center}\n"] }]
46
+ args: [{ selector: 'ajf-time', providers: [AJF_TIME_CONTROL_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"23\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"hours\"\n type=\"number\">\n </mat-form-field>\n :\n <mat-form-field>\n <input\n matInput\n min=\"0\"\n max=\"59\"\n (focus)=\"focusHandler()\"\n [(ngModel)]=\"minutes\"\n type=\"number\">\n </mat-form-field>\n</div>\n", styles: ["ajf-time .mat-mdc-form-field{width:3.5em;text-align:center}\n"] }]
47
47
  }], ctorParameters: function () { return []; } });
48
48
 
49
49
  /**
@@ -8,43 +8,45 @@ import * as i5 from "./empty-field";
8
8
  import * as i6 from "./field-warning-dialog";
9
9
  import * as i7 from "./field";
10
10
  import * as i8 from "./form";
11
- import * as i9 from "./input-field";
12
- import * as i10 from "./multiple-choice-field";
13
- import * as i11 from "./range-field";
14
- import * as i12 from "./single-choice-field";
15
- import * as i13 from "./table-field";
16
- import * as i14 from "./text-field";
17
- import * as i15 from "./time-field";
18
- import * as i16 from "./video-url-field";
19
- import * as i17 from "@ajf/material/barcode";
20
- import * as i18 from "@ajf/material/calendar";
21
- import * as i19 from "@ajf/core/common";
22
- import * as i20 from "@ajf/material/checkbox-group";
23
- import * as i21 from "@ajf/material/page-slider";
24
- import * as i22 from "@ajf/material/time";
25
- import * as i23 from "@ajf/core/transloco";
26
- import * as i24 from "@angular/common";
27
- import * as i25 from "@ajf/core/forms";
28
- import * as i26 from "@angular/material/button";
29
- import * as i27 from "@angular/material/button-toggle";
30
- import * as i28 from "@angular/material/card";
31
- import * as i29 from "@angular/material/datepicker";
32
- import * as i30 from "@angular/material/dialog";
33
- import * as i31 from "@angular/material/form-field";
34
- import * as i32 from "@angular/material/icon";
35
- import * as i33 from "@angular/material/input";
36
- import * as i34 from "@angular/material/core";
37
- import * as i35 from "@angular/material/radio";
38
- import * as i36 from "@angular/material/select";
39
- import * as i37 from "@angular/material/slide-toggle";
40
- import * as i38 from "@angular/material/toolbar";
41
- import * as i39 from "@angular/material/tooltip";
42
- import * as i40 from "@angular/forms";
43
- import * as i41 from "@angular/cdk/text-field";
44
- import * as i42 from "@angular/material/slider";
11
+ import * as i9 from "./geolocation-field";
12
+ import * as i10 from "./input-field";
13
+ import * as i11 from "./multiple-choice-field";
14
+ import * as i12 from "./range-field";
15
+ import * as i13 from "./single-choice-field";
16
+ import * as i14 from "./table-field";
17
+ import * as i15 from "./text-field";
18
+ import * as i16 from "./time-field";
19
+ import * as i17 from "./video-url-field";
20
+ import * as i18 from "@ajf/material/barcode";
21
+ import * as i19 from "@ajf/material/calendar";
22
+ import * as i20 from "@ajf/core/common";
23
+ import * as i21 from "@ajf/material/checkbox-group";
24
+ import * as i22 from "@ajf/material/geolocation";
25
+ import * as i23 from "@ajf/material/page-slider";
26
+ import * as i24 from "@ajf/material/time";
27
+ import * as i25 from "@ajf/core/transloco";
28
+ import * as i26 from "@angular/common";
29
+ import * as i27 from "@ajf/core/forms";
30
+ import * as i28 from "@angular/material/button";
31
+ import * as i29 from "@angular/material/button-toggle";
32
+ import * as i30 from "@angular/material/card";
33
+ import * as i31 from "@angular/material/datepicker";
34
+ import * as i32 from "@angular/material/dialog";
35
+ import * as i33 from "@angular/material/form-field";
36
+ import * as i34 from "@angular/material/icon";
37
+ import * as i35 from "@angular/material/input";
38
+ import * as i36 from "@angular/material/core";
39
+ import * as i37 from "@angular/material/radio";
40
+ import * as i38 from "@angular/material/select";
41
+ import * as i39 from "@angular/material/slide-toggle";
42
+ import * as i40 from "@angular/material/toolbar";
43
+ import * as i41 from "@angular/material/tooltip";
44
+ import * as i42 from "@angular/forms";
45
+ import * as i43 from "@angular/cdk/text-field";
46
+ import * as i44 from "@angular/material/slider";
45
47
  export declare class AjfFormsModule {
46
48
  static forRoot(): ModuleWithProviders<AjfFormsModule>;
47
49
  static ɵfac: i0.ɵɵFactoryDeclaration<AjfFormsModule, never>;
48
- static ɵmod: i0.ɵɵNgModuleDeclaration<AjfFormsModule, [typeof i1.AjfBarcodeFieldComponent, typeof i2.AjfBooleanFieldComponent, typeof i3.AjfDateFieldComponent, typeof i4.AjfDateInputFieldComponent, typeof i5.AjfEmptyFieldComponent, typeof i6.AjfFieldWarningDialog, typeof i7.AjfFormField, typeof i8.AjfFormRenderer, typeof i9.AjfInputFieldComponent, typeof i10.AjfMultipleChoiceFieldComponent, typeof i11.AjfRangeFieldComponent, typeof i12.AjfSingleChoiceFieldComponent, typeof i13.AjfTableFieldComponent, typeof i14.AjfTextFieldComponent, typeof i15.AjfTimeFieldComponent, typeof i16.AjfVideoUrlFieldComponent], [typeof i17.AjfBarcodeModule, typeof i18.AjfCalendarModule, typeof i19.AjfCommonModule, typeof i20.AjfCheckboxGroupModule, typeof i21.AjfPageSliderModule, typeof i22.AjfTimeModule, typeof i23.AjfTranslocoModule, typeof i24.CommonModule, typeof i25.AjfFormsModule, typeof i26.MatButtonModule, typeof i27.MatButtonToggleModule, typeof i28.MatCardModule, typeof i29.MatDatepickerModule, typeof i30.MatDialogModule, typeof i31.MatFormFieldModule, typeof i32.MatIconModule, typeof i33.MatInputModule, typeof i34.MatNativeDateModule, typeof i35.MatRadioModule, typeof i36.MatSelectModule, typeof i37.MatSlideToggleModule, typeof i38.MatToolbarModule, typeof i39.MatTooltipModule, typeof i40.ReactiveFormsModule, typeof i41.TextFieldModule, typeof i42.MatSliderModule], [typeof i7.AjfFormField, typeof i8.AjfFormRenderer]>;
50
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AjfFormsModule, [typeof i1.AjfBarcodeFieldComponent, typeof i2.AjfBooleanFieldComponent, typeof i3.AjfDateFieldComponent, typeof i4.AjfDateInputFieldComponent, typeof i5.AjfEmptyFieldComponent, typeof i6.AjfFieldWarningDialog, typeof i7.AjfFormField, typeof i8.AjfFormRenderer, typeof i9.AjfGeolocationFieldComponent, typeof i10.AjfInputFieldComponent, typeof i11.AjfMultipleChoiceFieldComponent, typeof i12.AjfRangeFieldComponent, typeof i13.AjfSingleChoiceFieldComponent, typeof i14.AjfTableFieldComponent, typeof i15.AjfTextFieldComponent, typeof i16.AjfTimeFieldComponent, typeof i17.AjfVideoUrlFieldComponent], [typeof i18.AjfBarcodeModule, typeof i19.AjfCalendarModule, typeof i20.AjfCommonModule, typeof i21.AjfCheckboxGroupModule, typeof i22.AjfGeolocationModule, typeof i23.AjfPageSliderModule, typeof i24.AjfTimeModule, typeof i25.AjfTranslocoModule, typeof i26.CommonModule, typeof i27.AjfFormsModule, typeof i28.MatButtonModule, typeof i29.MatButtonToggleModule, typeof i30.MatCardModule, typeof i31.MatDatepickerModule, typeof i32.MatDialogModule, typeof i33.MatFormFieldModule, typeof i34.MatIconModule, typeof i35.MatInputModule, typeof i36.MatNativeDateModule, typeof i37.MatRadioModule, typeof i38.MatSelectModule, typeof i39.MatSlideToggleModule, typeof i40.MatToolbarModule, typeof i41.MatTooltipModule, typeof i42.ReactiveFormsModule, typeof i43.TextFieldModule, typeof i44.MatSliderModule], [typeof i7.AjfFormField, typeof i8.AjfFormRenderer]>;
49
51
  static ɵinj: i0.ɵɵInjectorDeclaration<AjfFormsModule>;
50
52
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfBaseFieldComponent, AjfFormRendererService } from '@ajf/core/forms';
23
+ import { ChangeDetectorRef } from '@angular/core';
24
+ import { AjfWarningAlertService } from './warning-alert-service';
25
+ import * as i0 from "@angular/core";
26
+ export declare class AjfGeolocationFieldComponent extends AjfBaseFieldComponent {
27
+ constructor(cdr: ChangeDetectorRef, service: AjfFormRendererService, was: AjfWarningAlertService);
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<AjfGeolocationFieldComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<AjfGeolocationFieldComponent, "ng-component", never, {}, {}, never, never, false, never>;
30
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./geolocation";
3
+ import * as i2 from "@ajf/core/transloco";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "@angular/material/icon";
7
+ import * as i6 from "@angular/material/input";
8
+ import * as i7 from "@angular/material/form-field";
9
+ export declare class AjfGeolocationModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AjfGeolocationModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AjfGeolocationModule, [typeof i1.AjfGeolocationComponent], [typeof i2.AjfTranslocoModule, typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.MatIconModule, typeof i6.MatInputModule, typeof i7.MatFormFieldModule], [typeof i1.AjfGeolocationComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<AjfGeolocationModule>;
13
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ import { AjfGeolocation } from '@ajf/core/geolocation';
23
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
24
+ import * as i0 from "@angular/core";
25
+ export declare const GEOLOCATION_CONTROL_VALUE_ACCESSOR: any;
26
+ /**
27
+ * Ajf geolocation component.
28
+ */
29
+ export declare class AjfGeolocationComponent extends AjfGeolocation implements OnDestroy {
30
+ constructor(cdr: ChangeDetectorRef);
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<AjfGeolocationComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<AjfGeolocationComponent, "ajf-geolocation", never, {}, {}, never, never, false, never>;
33
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ajf/material/geolocation" />
5
+ export * from './public_api';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright (C) Gnucoop soc. coop.
4
+ *
5
+ * This file is part of the Advanced JSON forms (ajf).
6
+ *
7
+ * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
8
+ * modify it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the License,
10
+ * or (at your option) any later version.
11
+ *
12
+ * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
15
+ * General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with Advanced JSON forms (ajf).
19
+ * If not, see http://www.gnu.org/licenses/.
20
+ *
21
+ */
22
+ export * from './geolocation';
23
+ export * from './geolocation-module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ajf/material",
3
- "version": "15.2.2",
3
+ "version": "15.2.3",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "homepage": "https://github.com/gnucoop/ajf#readme",
15
15
  "peerDependencies": {
16
- "@ajf/core": "15.2.2",
16
+ "@ajf/core": "15.2.3",
17
17
  "@angular/animations": "^15.0.4",
18
18
  "@angular/cdk": "^15.0.3",
19
19
  "@angular/common": "^15.0.4",
@@ -83,6 +83,14 @@
83
83
  "node": "./fesm2015/ajf-material-forms.mjs",
84
84
  "default": "./fesm2020/ajf-material-forms.mjs"
85
85
  },
86
+ "./geolocation": {
87
+ "types": "./geolocation/index.d.ts",
88
+ "esm2020": "./esm2020/geolocation/ajf-material-geolocation.mjs",
89
+ "es2020": "./fesm2020/ajf-material-geolocation.mjs",
90
+ "es2015": "./fesm2015/ajf-material-geolocation.mjs",
91
+ "node": "./fesm2015/ajf-material-geolocation.mjs",
92
+ "default": "./fesm2020/ajf-material-geolocation.mjs"
93
+ },
86
94
  "./image": {
87
95
  "types": "./image/index.d.ts",
88
96
  "esm2020": "./esm2020/image/ajf-material-image.mjs",