@ajsf/material 0.8.0 → 16.0.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.
- package/{esm2020 → esm2022}/lib/material-design-framework.component.mjs +4 -4
- package/esm2022/lib/material-design-framework.module.mjs +111 -0
- package/{esm2020 → esm2022}/lib/material-design.framework.mjs +4 -4
- package/esm2022/lib/widgets/flex-layout-root.component.mjs +98 -0
- package/esm2022/lib/widgets/flex-layout-section.component.mjs +357 -0
- package/{esm2020 → esm2022}/lib/widgets/material-add-reference.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/widgets/material-button-group.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/widgets/material-button.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/widgets/material-checkbox.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/widgets/material-checkboxes.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/widgets/material-chip-list.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/widgets/material-datepicker.component.mjs +11 -11
- package/{esm2020 → esm2022}/lib/widgets/material-file.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/widgets/material-input.component.mjs +11 -11
- package/{esm2020 → esm2022}/lib/widgets/material-number.component.mjs +11 -11
- package/{esm2020 → esm2022}/lib/widgets/material-one-of.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/widgets/material-radios.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/widgets/material-select.component.mjs +11 -11
- package/esm2022/lib/widgets/material-slider.component.mjs +77 -0
- package/{esm2020 → esm2022}/lib/widgets/material-stepper.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/widgets/material-tabs.component.mjs +16 -6
- package/{esm2020 → esm2022}/lib/widgets/material-textarea.component.mjs +11 -11
- package/{fesm2020 → fesm2022}/ajsf-material.mjs +252 -236
- package/fesm2022/ajsf-material.mjs.map +1 -0
- package/lib/material-design-framework.component.d.ts +1 -1
- package/lib/material-design-framework.module.d.ts +23 -25
- package/lib/widgets/flex-layout-root.component.d.ts +7 -1
- package/lib/widgets/flex-layout-section.component.d.ts +5 -1
- package/lib/widgets/material-add-reference.component.d.ts +1 -1
- package/lib/widgets/material-button-group.component.d.ts +1 -1
- package/lib/widgets/material-button.component.d.ts +1 -1
- package/lib/widgets/material-checkbox.component.d.ts +1 -1
- package/lib/widgets/material-checkboxes.component.d.ts +1 -1
- package/lib/widgets/material-chip-list.component.d.ts +1 -1
- package/lib/widgets/material-datepicker.component.d.ts +1 -1
- package/lib/widgets/material-file.component.d.ts +1 -1
- package/lib/widgets/material-input.component.d.ts +1 -1
- package/lib/widgets/material-number.component.d.ts +1 -1
- package/lib/widgets/material-one-of.component.d.ts +1 -1
- package/lib/widgets/material-radios.component.d.ts +1 -1
- package/lib/widgets/material-select.component.d.ts +1 -1
- package/lib/widgets/material-slider.component.d.ts +1 -1
- package/lib/widgets/material-stepper.component.d.ts +1 -1
- package/lib/widgets/material-tabs.component.d.ts +1 -1
- package/lib/widgets/material-textarea.component.d.ts +1 -1
- package/package.json +11 -18
- package/esm2020/lib/angular-flex-monkey-patch.mjs +0 -12
- package/esm2020/lib/material-design-framework.module.mjs +0 -119
- package/esm2020/lib/widgets/flex-layout-root.component.mjs +0 -76
- package/esm2020/lib/widgets/flex-layout-section.component.mjs +0 -349
- package/esm2020/lib/widgets/material-slider.component.mjs +0 -83
- package/fesm2015/ajsf-material.mjs +0 -2320
- package/fesm2015/ajsf-material.mjs.map +0 -1
- package/fesm2020/ajsf-material.mjs.map +0 -1
- package/lib/angular-flex-monkey-patch.d.ts +0 -1
- /package/{esm2020 → esm2022}/ajsf-material.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/widgets/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ajsf/core";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/material/card";
|
|
6
|
+
import * as i4 from "@angular/material/expansion";
|
|
7
|
+
import * as i5 from "@angular/material/form-field";
|
|
8
|
+
import * as i6 from "./flex-layout-root.component";
|
|
9
|
+
export class FlexLayoutSectionComponent {
|
|
10
|
+
constructor(jsf) {
|
|
11
|
+
this.jsf = jsf;
|
|
12
|
+
this.controlDisabled = false;
|
|
13
|
+
this.boundControl = false;
|
|
14
|
+
this.expanded = true;
|
|
15
|
+
this.containerType = 'div';
|
|
16
|
+
}
|
|
17
|
+
get sectionTitle() {
|
|
18
|
+
return this.options.notitle ? null : this.jsf.setItemTitle(this);
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
this.jsf.initializeControl(this);
|
|
22
|
+
this.options = this.layoutNode.options || {};
|
|
23
|
+
this.expanded = typeof this.options.expanded === 'boolean' ?
|
|
24
|
+
this.options.expanded : !this.options.expandable;
|
|
25
|
+
switch (this.layoutNode.type) {
|
|
26
|
+
case 'section':
|
|
27
|
+
case 'array':
|
|
28
|
+
case 'fieldset':
|
|
29
|
+
case 'advancedfieldset':
|
|
30
|
+
case 'authfieldset':
|
|
31
|
+
case 'optionfieldset':
|
|
32
|
+
case 'selectfieldset':
|
|
33
|
+
this.containerType = 'fieldset';
|
|
34
|
+
break;
|
|
35
|
+
case 'card':
|
|
36
|
+
this.containerType = 'card';
|
|
37
|
+
break;
|
|
38
|
+
case 'expansion-panel':
|
|
39
|
+
this.containerType = 'expansion-panel';
|
|
40
|
+
break;
|
|
41
|
+
default: // 'div', 'flex', 'tab', 'conditional', 'actions'
|
|
42
|
+
this.containerType = 'div';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
toggleExpanded() {
|
|
46
|
+
if (this.options.expandable) {
|
|
47
|
+
this.expanded = !this.expanded;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// fxLayoutAlign="start center" used to come from @angular/flex-layout, which
|
|
51
|
+
// is deprecated and has no Angular 16+ release. These map the same option
|
|
52
|
+
// values onto justify-content and align-items, so schemas setting
|
|
53
|
+
// fxLayoutAlign or fxLayoutGap keep working unchanged. The existing
|
|
54
|
+
// [style.display], [style.flex-direction] and [style.flex-wrap] bindings
|
|
55
|
+
// already cover what fxLayout did.
|
|
56
|
+
static { this.ALIGN = {
|
|
57
|
+
start: 'flex-start', end: 'flex-end', center: 'center',
|
|
58
|
+
'space-between': 'space-between', 'space-around': 'space-around',
|
|
59
|
+
'space-evenly': 'space-evenly', stretch: 'stretch', baseline: 'baseline',
|
|
60
|
+
}; }
|
|
61
|
+
fxAlign(position) {
|
|
62
|
+
const value = `${(this.options || {}).fxLayoutAlign || ''}`.trim().split(/\s+/)[position];
|
|
63
|
+
return FlexLayoutSectionComponent.ALIGN[value] || null;
|
|
64
|
+
}
|
|
65
|
+
getJustifyContent() {
|
|
66
|
+
return this.getFlexAttribute('justify-content') || this.fxAlign(0);
|
|
67
|
+
}
|
|
68
|
+
getAlignItems() {
|
|
69
|
+
return this.getFlexAttribute('align-items') || this.fxAlign(1);
|
|
70
|
+
}
|
|
71
|
+
// Set attributes for flexbox container
|
|
72
|
+
// (child attributes are set in flex-layout-root.component)
|
|
73
|
+
getFlexAttribute(attribute) {
|
|
74
|
+
const flexActive = this.layoutNode.type === 'flex' ||
|
|
75
|
+
!!this.options.displayFlex ||
|
|
76
|
+
this.options.display === 'flex';
|
|
77
|
+
// if (attribute !== 'flex' && !flexActive) { return null; }
|
|
78
|
+
switch (attribute) {
|
|
79
|
+
case 'is-flex':
|
|
80
|
+
return flexActive;
|
|
81
|
+
case 'display':
|
|
82
|
+
return flexActive ? 'flex' : 'initial';
|
|
83
|
+
case 'flex-direction':
|
|
84
|
+
case 'flex-wrap':
|
|
85
|
+
const index = ['flex-direction', 'flex-wrap'].indexOf(attribute);
|
|
86
|
+
return (this.options['flex-flow'] || '').split(/\s+/)[index] ||
|
|
87
|
+
this.options[attribute] || ['column', 'nowrap'][index];
|
|
88
|
+
case 'justify-content':
|
|
89
|
+
case 'align-items':
|
|
90
|
+
case 'align-content':
|
|
91
|
+
return this.options[attribute];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlexLayoutSectionComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
95
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FlexLayoutSectionComponent, selector: "flex-layout-section-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
96
|
+
<div *ngIf="containerType === 'div'"
|
|
97
|
+
[class]="options?.htmlClass || ''"
|
|
98
|
+
[class.expandable]="options?.expandable && !expanded"
|
|
99
|
+
[class.expanded]="options?.expandable && expanded">
|
|
100
|
+
<label *ngIf="sectionTitle"
|
|
101
|
+
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
102
|
+
[innerHTML]="sectionTitle"
|
|
103
|
+
(click)="toggleExpanded()"></label>
|
|
104
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
105
|
+
[layout]="layoutNode.items"
|
|
106
|
+
[dataIndex]="dataIndex"
|
|
107
|
+
[layoutIndex]="layoutIndex"
|
|
108
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
109
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
110
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
111
|
+
[style.display]="getFlexAttribute('display')"
|
|
112
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
113
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
114
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
115
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
116
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
117
|
+
[style.gap]="options?.fxLayoutGap"
|
|
118
|
+
[style.justify-content]="getJustifyContent()"
|
|
119
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
120
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
121
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<fieldset *ngIf="containerType === 'fieldset'"
|
|
125
|
+
[class]="options?.htmlClass || ''"
|
|
126
|
+
[class.expandable]="options?.expandable && !expanded"
|
|
127
|
+
[class.expanded]="options?.expandable && expanded"
|
|
128
|
+
[disabled]="options?.readonly">
|
|
129
|
+
<legend *ngIf="sectionTitle"
|
|
130
|
+
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
131
|
+
[innerHTML]="sectionTitle"
|
|
132
|
+
(click)="toggleExpanded()"></legend>
|
|
133
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
134
|
+
[layout]="layoutNode.items"
|
|
135
|
+
[dataIndex]="dataIndex"
|
|
136
|
+
[layoutIndex]="layoutIndex"
|
|
137
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
138
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
139
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
140
|
+
[style.display]="getFlexAttribute('display')"
|
|
141
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
142
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
143
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
144
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
145
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
146
|
+
[style.gap]="options?.fxLayoutGap"
|
|
147
|
+
[style.justify-content]="getJustifyContent()"
|
|
148
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
149
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
150
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
151
|
+
</fieldset>
|
|
152
|
+
|
|
153
|
+
<mat-card appearance="outlined" *ngIf="containerType === 'card'"
|
|
154
|
+
[ngClass]="options?.htmlClass || ''"
|
|
155
|
+
[class.expandable]="options?.expandable && !expanded"
|
|
156
|
+
[class.expanded]="options?.expandable && expanded">
|
|
157
|
+
<mat-card-header *ngIf="sectionTitle">
|
|
158
|
+
<legend
|
|
159
|
+
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
160
|
+
[innerHTML]="sectionTitle"
|
|
161
|
+
(click)="toggleExpanded()"></legend>
|
|
162
|
+
</mat-card-header>
|
|
163
|
+
<mat-card-content *ngIf="expanded">
|
|
164
|
+
<fieldset [disabled]="options?.readonly">
|
|
165
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
166
|
+
[layout]="layoutNode.items"
|
|
167
|
+
[dataIndex]="dataIndex"
|
|
168
|
+
[layoutIndex]="layoutIndex"
|
|
169
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
170
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
171
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
172
|
+
[style.display]="getFlexAttribute('display')"
|
|
173
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
174
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
175
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
176
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
177
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
178
|
+
[style.gap]="options?.fxLayoutGap"
|
|
179
|
+
[style.justify-content]="getJustifyContent()"
|
|
180
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
181
|
+
</fieldset>
|
|
182
|
+
</mat-card-content>
|
|
183
|
+
<mat-card-footer>
|
|
184
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
185
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
186
|
+
</mat-card-footer>
|
|
187
|
+
</mat-card>
|
|
188
|
+
|
|
189
|
+
<mat-expansion-panel *ngIf="containerType === 'expansion-panel'"
|
|
190
|
+
[expanded]="expanded"
|
|
191
|
+
[hideToggle]="!options?.expandable">
|
|
192
|
+
<mat-expansion-panel-header>
|
|
193
|
+
<mat-panel-title>
|
|
194
|
+
<legend *ngIf="sectionTitle"
|
|
195
|
+
[class]="options?.labelHtmlClass"
|
|
196
|
+
[innerHTML]="sectionTitle"
|
|
197
|
+
(click)="toggleExpanded()"></legend>
|
|
198
|
+
</mat-panel-title>
|
|
199
|
+
</mat-expansion-panel-header>
|
|
200
|
+
<fieldset [disabled]="options?.readonly">
|
|
201
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
202
|
+
[layout]="layoutNode.items"
|
|
203
|
+
[dataIndex]="dataIndex"
|
|
204
|
+
[layoutIndex]="layoutIndex"
|
|
205
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
206
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
207
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
208
|
+
[style.display]="getFlexAttribute('display')"
|
|
209
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
210
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
211
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
212
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
213
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
214
|
+
[style.gap]="options?.fxLayoutGap"
|
|
215
|
+
[style.justify-content]="getJustifyContent()"
|
|
216
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
217
|
+
</fieldset>
|
|
218
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
219
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
220
|
+
</mat-expansion-panel>`, isInline: true, styles: ["fieldset{border:0;margin:0;padding:0}.legend{font-weight:700}.expandable>.legend:before{content:\"\\25b6\";padding-right:.3em}.expanded>.legend:before{content:\"\\25bc\";padding-right:.2em}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i3.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: i4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i4.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i5.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i6.FlexLayoutRootComponent, selector: "flex-layout-root-widget", inputs: ["dataIndex", "layoutIndex", "layout", "isFlexItem"] }] }); }
|
|
221
|
+
}
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlexLayoutSectionComponent, decorators: [{
|
|
223
|
+
type: Component,
|
|
224
|
+
args: [{ selector: 'flex-layout-section-widget', template: `
|
|
225
|
+
<div *ngIf="containerType === 'div'"
|
|
226
|
+
[class]="options?.htmlClass || ''"
|
|
227
|
+
[class.expandable]="options?.expandable && !expanded"
|
|
228
|
+
[class.expanded]="options?.expandable && expanded">
|
|
229
|
+
<label *ngIf="sectionTitle"
|
|
230
|
+
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
231
|
+
[innerHTML]="sectionTitle"
|
|
232
|
+
(click)="toggleExpanded()"></label>
|
|
233
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
234
|
+
[layout]="layoutNode.items"
|
|
235
|
+
[dataIndex]="dataIndex"
|
|
236
|
+
[layoutIndex]="layoutIndex"
|
|
237
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
238
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
239
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
240
|
+
[style.display]="getFlexAttribute('display')"
|
|
241
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
242
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
243
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
244
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
245
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
246
|
+
[style.gap]="options?.fxLayoutGap"
|
|
247
|
+
[style.justify-content]="getJustifyContent()"
|
|
248
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
249
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
250
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
251
|
+
</div>
|
|
252
|
+
|
|
253
|
+
<fieldset *ngIf="containerType === 'fieldset'"
|
|
254
|
+
[class]="options?.htmlClass || ''"
|
|
255
|
+
[class.expandable]="options?.expandable && !expanded"
|
|
256
|
+
[class.expanded]="options?.expandable && expanded"
|
|
257
|
+
[disabled]="options?.readonly">
|
|
258
|
+
<legend *ngIf="sectionTitle"
|
|
259
|
+
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
260
|
+
[innerHTML]="sectionTitle"
|
|
261
|
+
(click)="toggleExpanded()"></legend>
|
|
262
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
263
|
+
[layout]="layoutNode.items"
|
|
264
|
+
[dataIndex]="dataIndex"
|
|
265
|
+
[layoutIndex]="layoutIndex"
|
|
266
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
267
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
268
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
269
|
+
[style.display]="getFlexAttribute('display')"
|
|
270
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
271
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
272
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
273
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
274
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
275
|
+
[style.gap]="options?.fxLayoutGap"
|
|
276
|
+
[style.justify-content]="getJustifyContent()"
|
|
277
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
278
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
279
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
280
|
+
</fieldset>
|
|
281
|
+
|
|
282
|
+
<mat-card appearance="outlined" *ngIf="containerType === 'card'"
|
|
283
|
+
[ngClass]="options?.htmlClass || ''"
|
|
284
|
+
[class.expandable]="options?.expandable && !expanded"
|
|
285
|
+
[class.expanded]="options?.expandable && expanded">
|
|
286
|
+
<mat-card-header *ngIf="sectionTitle">
|
|
287
|
+
<legend
|
|
288
|
+
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
289
|
+
[innerHTML]="sectionTitle"
|
|
290
|
+
(click)="toggleExpanded()"></legend>
|
|
291
|
+
</mat-card-header>
|
|
292
|
+
<mat-card-content *ngIf="expanded">
|
|
293
|
+
<fieldset [disabled]="options?.readonly">
|
|
294
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
295
|
+
[layout]="layoutNode.items"
|
|
296
|
+
[dataIndex]="dataIndex"
|
|
297
|
+
[layoutIndex]="layoutIndex"
|
|
298
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
299
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
300
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
301
|
+
[style.display]="getFlexAttribute('display')"
|
|
302
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
303
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
304
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
305
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
306
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
307
|
+
[style.gap]="options?.fxLayoutGap"
|
|
308
|
+
[style.justify-content]="getJustifyContent()"
|
|
309
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
310
|
+
</fieldset>
|
|
311
|
+
</mat-card-content>
|
|
312
|
+
<mat-card-footer>
|
|
313
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
314
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
315
|
+
</mat-card-footer>
|
|
316
|
+
</mat-card>
|
|
317
|
+
|
|
318
|
+
<mat-expansion-panel *ngIf="containerType === 'expansion-panel'"
|
|
319
|
+
[expanded]="expanded"
|
|
320
|
+
[hideToggle]="!options?.expandable">
|
|
321
|
+
<mat-expansion-panel-header>
|
|
322
|
+
<mat-panel-title>
|
|
323
|
+
<legend *ngIf="sectionTitle"
|
|
324
|
+
[class]="options?.labelHtmlClass"
|
|
325
|
+
[innerHTML]="sectionTitle"
|
|
326
|
+
(click)="toggleExpanded()"></legend>
|
|
327
|
+
</mat-panel-title>
|
|
328
|
+
</mat-expansion-panel-header>
|
|
329
|
+
<fieldset [disabled]="options?.readonly">
|
|
330
|
+
<flex-layout-root-widget *ngIf="expanded"
|
|
331
|
+
[layout]="layoutNode.items"
|
|
332
|
+
[dataIndex]="dataIndex"
|
|
333
|
+
[layoutIndex]="layoutIndex"
|
|
334
|
+
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
335
|
+
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
336
|
+
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
337
|
+
[style.display]="getFlexAttribute('display')"
|
|
338
|
+
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
339
|
+
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
340
|
+
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
341
|
+
[style.align-items]="getFlexAttribute('align-items')"
|
|
342
|
+
[style.align-content]="getFlexAttribute('align-content')"
|
|
343
|
+
[style.gap]="options?.fxLayoutGap"
|
|
344
|
+
[style.justify-content]="getJustifyContent()"
|
|
345
|
+
[style.align-items]="getAlignItems()"></flex-layout-root-widget>
|
|
346
|
+
</fieldset>
|
|
347
|
+
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
348
|
+
[innerHTML]="options?.errorMessage"></mat-error>
|
|
349
|
+
</mat-expansion-panel>`, styles: ["fieldset{border:0;margin:0;padding:0}.legend{font-weight:700}.expandable>.legend:before{content:\"\\25b6\";padding-right:.3em}.expanded>.legend:before{content:\"\\25bc\";padding-right:.2em}\n"] }]
|
|
350
|
+
}], ctorParameters: function () { return [{ type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
351
|
+
type: Input
|
|
352
|
+
}], layoutIndex: [{
|
|
353
|
+
type: Input
|
|
354
|
+
}], dataIndex: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}] } });
|
|
357
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxleC1sYXlvdXQtc2VjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi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24taXRlbXMnOiBjYXNlICdhbGlnbi1jb250ZW50JzpcbiAgICAgICAgcmV0dXJuIHRoaXMub3B0aW9uc1thdHRyaWJ1dGVdO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -27,9 +27,8 @@ export class MaterialAddReferenceComponent {
|
|
|
27
27
|
return parent.layoutNode.add ||
|
|
28
28
|
this.jsf.setArrayItemTitle(parent, this.layoutNode, this.itemCount);
|
|
29
29
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
MaterialAddReferenceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialAddReferenceComponent, selector: "material-add-reference-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialAddReferenceComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MaterialAddReferenceComponent, selector: "material-add-reference-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
33
32
|
<section [class]="options?.htmlClass || ''" align="end">
|
|
34
33
|
<button mat-raised-button *ngIf="showAddButton"
|
|
35
34
|
[color]="options?.color || 'accent'"
|
|
@@ -38,8 +37,9 @@ MaterialAddReferenceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
38
37
|
<span *ngIf="options?.icon" [class]="options?.icon"></span>
|
|
39
38
|
<span *ngIf="options?.title" [innerHTML]="buttonText"></span>
|
|
40
39
|
</button>
|
|
41
|
-
</section>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-
|
|
42
|
-
|
|
40
|
+
</section>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialAddReferenceComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{
|
|
45
45
|
// tslint:disable-next-line:component-selector
|
|
@@ -63,4 +63,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
63
63
|
}], dataIndex: [{
|
|
64
64
|
type: Input
|
|
65
65
|
}] } });
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtYWRkLXJlZmVyZW5jZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hanNmLW1hdGVyaWFsL3NyYy9saWIvd2lkZ2V0cy9tYXRlcmlhbC1hZGQtcmVmZXJlbmNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFtQmxGLE1BQU0sT0FBTyw2QkFBNkI7SUFTeEMsWUFDVSxHQUEwQjtRQUExQixRQ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GV2ZW50KSB7XG4gICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICB0aGlzLmpzZi5hZGRJdGVtKHRoaXMpO1xuICB9XG5cbiAgZ2V0IGJ1dHRvblRleHQoKTogc3RyaW5nIHtcbiAgICBjb25zdCBwYXJlbnQ6IGFueSA9IHtcbiAgICAgIGRhdGFJbmRleDogdGhpcy5kYXRhSW5kZXguc2xpY2UoMCwgLTEpLFxuICAgICAgbGF5b3V0SW5kZXg6IHRoaXMubGF5b3V0SW5kZXguc2xpY2UoMCwgLTEpLFxuICAgICAgbGF5b3V0Tm9kZTogdGhpcy5qc2YuZ2V0UGFyZW50Tm9kZSh0aGlzKSxcbiAgICB9O1xuICAgIHJldHVybiBwYXJlbnQubGF5b3V0Tm9kZS5hZGQgfHxcbiAgICAgIHRoaXMuanNmLnNldEFycmF5SXRlbVRpdGxlKHBhcmVudCwgdGhpcy5sYXlvdXROb2RlLCB0aGlzLml0ZW1Db3VudCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -22,9 +22,8 @@ export class MaterialButtonGroupComponent {
|
|
|
22
22
|
this.options.showErrors = true;
|
|
23
23
|
this.jsf.updateValue(this, value);
|
|
24
24
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
MaterialButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialButtonGroupComponent, selector: "material-button-group-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialButtonGroupComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MaterialButtonGroupComponent, selector: "material-button-group-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
28
27
|
<div>
|
|
29
28
|
<div *ngIf="options?.title">
|
|
30
29
|
<label
|
|
@@ -50,8 +49,9 @@ MaterialButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
50
49
|
</mat-button-toggle-group>
|
|
51
50
|
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
52
51
|
[innerHTML]="options?.errorMessage"></mat-error>
|
|
53
|
-
</div>`, isInline: true, styles: ["mat-error{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }] });
|
|
54
|
-
|
|
52
|
+
</div>`, isInline: true, styles: ["mat-error{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }] }); }
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialButtonGroupComponent, decorators: [{
|
|
55
55
|
type: Component,
|
|
56
56
|
args: [{ selector: 'material-button-group-widget', template: `
|
|
57
57
|
<div>
|
|
@@ -87,4 +87,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
87
87
|
}], dataIndex: [{
|
|
88
88
|
type: Input
|
|
89
89
|
}] } });
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtYnV0dG9uLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fqc2YtbWF0ZXJpYWwvc3JjL2xpYi93aWRnZXRzL21hdGVyaWFsLWJ1dHRvbi1ncm91cC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUF5QixhQUFhLEVBQUUsTUFBTSxZQUFZLENBQUM7Ozs7OztBQW1DbEUsTUFBTSxPQUFPLDRCQUE0QjtJQWF2QyxZQUNVLEdBQTBCO1FBQTFCLFFBQUcsR0FBSCxHQUFHLENBQXVCO1FBVnBDLG9CQUFlLEdBQUcsS0FBSyxDQUFDO1FBQ3hCLGlCQUFZ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JvbERpc2FibGVkID0gZmFsc2U7XG4gIGJvdW5kQ29udHJvbCA9IGZhbHNlO1xuICBvcHRpb25zOiBhbnk7XG4gIHJhZGlvc0xpc3Q6IGFueVtdID0gW107XG4gIHZlcnRpY2FsID0gZmFsc2U7XG4gIEBJbnB1dCgpIGxheW91dE5vZGU6IGFueTtcbiAgQElucHV0KCkgbGF5b3V0SW5kZXg6IG51bWJlcltdO1xuICBASW5wdXQoKSBkYXRhSW5kZXg6IG51bWJlcltdO1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIHByaXZhdGUganNmOiBKc29uU2NoZW1hRm9ybVNlcnZpY2VcbiAgKSB7IH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLm9wdGlvbnMgPSB0aGlzLmxheW91dE5vZGUub3B0aW9ucyB8fCB7fTtcbiAgICB0aGlzLnJhZGlvc0xpc3QgPSBidWlsZFRpdGxlTWFwKFxuICAgICAgdGhpcy5vcHRpb25zLnRpdGxlTWFwIHx8IHRoaXMub3B0aW9ucy5lbnVtTmFtZXMsXG4gICAgICB0aGlzLm9wdGlvbnMuZW51bSwgdHJ1ZVxuICAgICk7XG4gICAgdGhpcy5qc2YuaW5pdGlhbGl6ZUNvbnRyb2wodGhpcyk7XG4gIH1cblxuICB1cGRhdGVWYWx1ZSh2YWx1ZSkge1xuICAgIHRoaXMub3B0aW9ucy5zaG93RXJyb3JzID0gdHJ1ZTtcbiAgICB0aGlzLmpzZi51cGRhdGVWYWx1ZSh0aGlzLCB2YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -30,9 +30,8 @@ export class MaterialButtonComponent {
|
|
|
30
30
|
this.jsf.updateValue(this, event.target.value);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
MaterialButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialButtonComponent, selector: "material-button-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialButtonComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MaterialButtonComponent, selector: "material-button-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
36
35
|
<div class="button-row" [class]="options?.htmlClass || ''">
|
|
37
36
|
<button mat-raised-button
|
|
38
37
|
[attr.readonly]="options?.readonly ? 'readonly' : null"
|
|
@@ -47,8 +46,9 @@ MaterialButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
47
46
|
<mat-icon *ngIf="options?.icon" class="mat-24">{{options?.icon}}</mat-icon>
|
|
48
47
|
<span *ngIf="options?.title" [innerHTML]="options?.title"></span>
|
|
49
48
|
</button>
|
|
50
|
-
</div>`, isInline: true, styles: ["button{margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-
|
|
51
|
-
|
|
49
|
+
</div>`, isInline: true, styles: ["button{margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MaterialButtonComponent, decorators: [{
|
|
52
52
|
type: Component,
|
|
53
53
|
args: [{ selector: 'material-button-widget', template: `
|
|
54
54
|
<div class="button-row" [class]="options?.htmlClass || ''">
|
|
@@ -73,4 +73,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
73
73
|
}], dataIndex: [{
|
|
74
74
|
type: Input
|
|
75
75
|
}] } });
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fqc2YtbWF0ZXJpYWwvc3JjL2xpYi93aWRnZXRzL21hdGVyaWFsLWJ1dHRvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUF5QixNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7Ozs7OztBQXVCM0QsTUFBTSxPQUFPLHVCQUF1QjtJQVdsQyxZQUNVLEdBQTBCO1FBQTFCLFFBQUcsR0FBSCxHQUFHLENBQXVCO1FBUnBDLG9CQUFlLEdBQUcsS0FBSyxDQUFDO1FBQ3hCLGlCQUFZLEdBQUcsS0FBSyxDQUFDO0lBUWpCLENBQUM7SUFFTCxRQUFRO1FBQ04sSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDN0MsSUFBSSxDQ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