@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
|
@@ -1,349 +0,0 @@
|
|
|
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/flex-layout/flex";
|
|
6
|
-
import * as i4 from "@angular/flex-layout/extended";
|
|
7
|
-
import * as i5 from "@angular/material/card";
|
|
8
|
-
import * as i6 from "@angular/material/expansion";
|
|
9
|
-
import * as i7 from "@angular/material/form-field";
|
|
10
|
-
import * as i8 from "./flex-layout-root.component";
|
|
11
|
-
export class FlexLayoutSectionComponent {
|
|
12
|
-
constructor(jsf) {
|
|
13
|
-
this.jsf = jsf;
|
|
14
|
-
this.controlDisabled = false;
|
|
15
|
-
this.boundControl = false;
|
|
16
|
-
this.expanded = true;
|
|
17
|
-
this.containerType = 'div';
|
|
18
|
-
}
|
|
19
|
-
get sectionTitle() {
|
|
20
|
-
return this.options.notitle ? null : this.jsf.setItemTitle(this);
|
|
21
|
-
}
|
|
22
|
-
ngOnInit() {
|
|
23
|
-
this.jsf.initializeControl(this);
|
|
24
|
-
this.options = this.layoutNode.options || {};
|
|
25
|
-
this.expanded = typeof this.options.expanded === 'boolean' ?
|
|
26
|
-
this.options.expanded : !this.options.expandable;
|
|
27
|
-
switch (this.layoutNode.type) {
|
|
28
|
-
case 'section':
|
|
29
|
-
case 'array':
|
|
30
|
-
case 'fieldset':
|
|
31
|
-
case 'advancedfieldset':
|
|
32
|
-
case 'authfieldset':
|
|
33
|
-
case 'optionfieldset':
|
|
34
|
-
case 'selectfieldset':
|
|
35
|
-
this.containerType = 'fieldset';
|
|
36
|
-
break;
|
|
37
|
-
case 'card':
|
|
38
|
-
this.containerType = 'card';
|
|
39
|
-
break;
|
|
40
|
-
case 'expansion-panel':
|
|
41
|
-
this.containerType = 'expansion-panel';
|
|
42
|
-
break;
|
|
43
|
-
default: // 'div', 'flex', 'tab', 'conditional', 'actions'
|
|
44
|
-
this.containerType = 'div';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
toggleExpanded() {
|
|
48
|
-
if (this.options.expandable) {
|
|
49
|
-
this.expanded = !this.expanded;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
// Set attributes for flexbox container
|
|
53
|
-
// (child attributes are set in flex-layout-root.component)
|
|
54
|
-
getFlexAttribute(attribute) {
|
|
55
|
-
const flexActive = this.layoutNode.type === 'flex' ||
|
|
56
|
-
!!this.options.displayFlex ||
|
|
57
|
-
this.options.display === 'flex';
|
|
58
|
-
// if (attribute !== 'flex' && !flexActive) { return null; }
|
|
59
|
-
switch (attribute) {
|
|
60
|
-
case 'is-flex':
|
|
61
|
-
return flexActive;
|
|
62
|
-
case 'display':
|
|
63
|
-
return flexActive ? 'flex' : 'initial';
|
|
64
|
-
case 'flex-direction':
|
|
65
|
-
case 'flex-wrap':
|
|
66
|
-
const index = ['flex-direction', 'flex-wrap'].indexOf(attribute);
|
|
67
|
-
return (this.options['flex-flow'] || '').split(/\s+/)[index] ||
|
|
68
|
-
this.options[attribute] || ['column', 'nowrap'][index];
|
|
69
|
-
case 'justify-content':
|
|
70
|
-
case 'align-items':
|
|
71
|
-
case 'align-content':
|
|
72
|
-
return this.options[attribute];
|
|
73
|
-
case 'layout':
|
|
74
|
-
return (this.options.fxLayout || 'row') +
|
|
75
|
-
this.options.fxLayoutWrap ? ' ' + this.options.fxLayoutWrap : '';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
FlexLayoutSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FlexLayoutSectionComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
80
|
-
FlexLayoutSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: FlexLayoutSectionComponent, selector: "flex-layout-section-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
81
|
-
<div *ngIf="containerType === 'div'"
|
|
82
|
-
[class]="options?.htmlClass || ''"
|
|
83
|
-
[class.expandable]="options?.expandable && !expanded"
|
|
84
|
-
[class.expanded]="options?.expandable && expanded">
|
|
85
|
-
<label *ngIf="sectionTitle"
|
|
86
|
-
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
87
|
-
[innerHTML]="sectionTitle"
|
|
88
|
-
(click)="toggleExpanded()"></label>
|
|
89
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
90
|
-
[layout]="layoutNode.items"
|
|
91
|
-
[dataIndex]="dataIndex"
|
|
92
|
-
[layoutIndex]="layoutIndex"
|
|
93
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
94
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
95
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
96
|
-
[style.display]="getFlexAttribute('display')"
|
|
97
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
98
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
99
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
100
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
101
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
102
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
103
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
104
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
105
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
106
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
107
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
108
|
-
</div>
|
|
109
|
-
|
|
110
|
-
<fieldset *ngIf="containerType === 'fieldset'"
|
|
111
|
-
[class]="options?.htmlClass || ''"
|
|
112
|
-
[class.expandable]="options?.expandable && !expanded"
|
|
113
|
-
[class.expanded]="options?.expandable && expanded"
|
|
114
|
-
[disabled]="options?.readonly">
|
|
115
|
-
<legend *ngIf="sectionTitle"
|
|
116
|
-
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
117
|
-
[innerHTML]="sectionTitle"
|
|
118
|
-
(click)="toggleExpanded()"></legend>
|
|
119
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
120
|
-
[layout]="layoutNode.items"
|
|
121
|
-
[dataIndex]="dataIndex"
|
|
122
|
-
[layoutIndex]="layoutIndex"
|
|
123
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
124
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
125
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
126
|
-
[style.display]="getFlexAttribute('display')"
|
|
127
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
128
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
129
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
130
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
131
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
132
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
133
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
134
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
135
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
136
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
137
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
138
|
-
</fieldset>
|
|
139
|
-
|
|
140
|
-
<mat-card *ngIf="containerType === 'card'"
|
|
141
|
-
[ngClass]="options?.htmlClass || ''"
|
|
142
|
-
[class.expandable]="options?.expandable && !expanded"
|
|
143
|
-
[class.expanded]="options?.expandable && expanded">
|
|
144
|
-
<mat-card-header *ngIf="sectionTitle">
|
|
145
|
-
<legend
|
|
146
|
-
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
147
|
-
[innerHTML]="sectionTitle"
|
|
148
|
-
(click)="toggleExpanded()"></legend>
|
|
149
|
-
</mat-card-header>
|
|
150
|
-
<mat-card-content *ngIf="expanded">
|
|
151
|
-
<fieldset [disabled]="options?.readonly">
|
|
152
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
153
|
-
[layout]="layoutNode.items"
|
|
154
|
-
[dataIndex]="dataIndex"
|
|
155
|
-
[layoutIndex]="layoutIndex"
|
|
156
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
157
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
158
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
159
|
-
[style.display]="getFlexAttribute('display')"
|
|
160
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
161
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
162
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
163
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
164
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
165
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
166
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
167
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
168
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
169
|
-
</fieldset>
|
|
170
|
-
</mat-card-content>
|
|
171
|
-
<mat-card-footer>
|
|
172
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
173
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
174
|
-
</mat-card-footer>
|
|
175
|
-
</mat-card>
|
|
176
|
-
|
|
177
|
-
<mat-expansion-panel *ngIf="containerType === 'expansion-panel'"
|
|
178
|
-
[expanded]="expanded"
|
|
179
|
-
[hideToggle]="!options?.expandable">
|
|
180
|
-
<mat-expansion-panel-header>
|
|
181
|
-
<mat-panel-title>
|
|
182
|
-
<legend *ngIf="sectionTitle"
|
|
183
|
-
[class]="options?.labelHtmlClass"
|
|
184
|
-
[innerHTML]="sectionTitle"
|
|
185
|
-
(click)="toggleExpanded()"></legend>
|
|
186
|
-
</mat-panel-title>
|
|
187
|
-
</mat-expansion-panel-header>
|
|
188
|
-
<fieldset [disabled]="options?.readonly">
|
|
189
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
190
|
-
[layout]="layoutNode.items"
|
|
191
|
-
[dataIndex]="dataIndex"
|
|
192
|
-
[layoutIndex]="layoutIndex"
|
|
193
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
194
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
195
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
196
|
-
[style.display]="getFlexAttribute('display')"
|
|
197
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
198
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
199
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
200
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
201
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
202
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
203
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
204
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
205
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
206
|
-
</fieldset>
|
|
207
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
208
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
209
|
-
</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: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i3.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i5.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i5.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i5.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i5.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i7.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i8.FlexLayoutRootComponent, selector: "flex-layout-root-widget", inputs: ["dataIndex", "layoutIndex", "layout", "isFlexItem"] }] });
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FlexLayoutSectionComponent, decorators: [{
|
|
211
|
-
type: Component,
|
|
212
|
-
args: [{ selector: 'flex-layout-section-widget', template: `
|
|
213
|
-
<div *ngIf="containerType === 'div'"
|
|
214
|
-
[class]="options?.htmlClass || ''"
|
|
215
|
-
[class.expandable]="options?.expandable && !expanded"
|
|
216
|
-
[class.expanded]="options?.expandable && expanded">
|
|
217
|
-
<label *ngIf="sectionTitle"
|
|
218
|
-
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
219
|
-
[innerHTML]="sectionTitle"
|
|
220
|
-
(click)="toggleExpanded()"></label>
|
|
221
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
222
|
-
[layout]="layoutNode.items"
|
|
223
|
-
[dataIndex]="dataIndex"
|
|
224
|
-
[layoutIndex]="layoutIndex"
|
|
225
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
226
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
227
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
228
|
-
[style.display]="getFlexAttribute('display')"
|
|
229
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
230
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
231
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
232
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
233
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
234
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
235
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
236
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
237
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
238
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
239
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
240
|
-
</div>
|
|
241
|
-
|
|
242
|
-
<fieldset *ngIf="containerType === 'fieldset'"
|
|
243
|
-
[class]="options?.htmlClass || ''"
|
|
244
|
-
[class.expandable]="options?.expandable && !expanded"
|
|
245
|
-
[class.expanded]="options?.expandable && expanded"
|
|
246
|
-
[disabled]="options?.readonly">
|
|
247
|
-
<legend *ngIf="sectionTitle"
|
|
248
|
-
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
249
|
-
[innerHTML]="sectionTitle"
|
|
250
|
-
(click)="toggleExpanded()"></legend>
|
|
251
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
252
|
-
[layout]="layoutNode.items"
|
|
253
|
-
[dataIndex]="dataIndex"
|
|
254
|
-
[layoutIndex]="layoutIndex"
|
|
255
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
256
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
257
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
258
|
-
[style.display]="getFlexAttribute('display')"
|
|
259
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
260
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
261
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
262
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
263
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
264
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
265
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
266
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
267
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
268
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
269
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
270
|
-
</fieldset>
|
|
271
|
-
|
|
272
|
-
<mat-card *ngIf="containerType === 'card'"
|
|
273
|
-
[ngClass]="options?.htmlClass || ''"
|
|
274
|
-
[class.expandable]="options?.expandable && !expanded"
|
|
275
|
-
[class.expanded]="options?.expandable && expanded">
|
|
276
|
-
<mat-card-header *ngIf="sectionTitle">
|
|
277
|
-
<legend
|
|
278
|
-
[class]="'legend ' + (options?.labelHtmlClass || '')"
|
|
279
|
-
[innerHTML]="sectionTitle"
|
|
280
|
-
(click)="toggleExpanded()"></legend>
|
|
281
|
-
</mat-card-header>
|
|
282
|
-
<mat-card-content *ngIf="expanded">
|
|
283
|
-
<fieldset [disabled]="options?.readonly">
|
|
284
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
285
|
-
[layout]="layoutNode.items"
|
|
286
|
-
[dataIndex]="dataIndex"
|
|
287
|
-
[layoutIndex]="layoutIndex"
|
|
288
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
289
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
290
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
291
|
-
[style.display]="getFlexAttribute('display')"
|
|
292
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
293
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
294
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
295
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
296
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
297
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
298
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
299
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
300
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
301
|
-
</fieldset>
|
|
302
|
-
</mat-card-content>
|
|
303
|
-
<mat-card-footer>
|
|
304
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
305
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
306
|
-
</mat-card-footer>
|
|
307
|
-
</mat-card>
|
|
308
|
-
|
|
309
|
-
<mat-expansion-panel *ngIf="containerType === 'expansion-panel'"
|
|
310
|
-
[expanded]="expanded"
|
|
311
|
-
[hideToggle]="!options?.expandable">
|
|
312
|
-
<mat-expansion-panel-header>
|
|
313
|
-
<mat-panel-title>
|
|
314
|
-
<legend *ngIf="sectionTitle"
|
|
315
|
-
[class]="options?.labelHtmlClass"
|
|
316
|
-
[innerHTML]="sectionTitle"
|
|
317
|
-
(click)="toggleExpanded()"></legend>
|
|
318
|
-
</mat-panel-title>
|
|
319
|
-
</mat-expansion-panel-header>
|
|
320
|
-
<fieldset [disabled]="options?.readonly">
|
|
321
|
-
<flex-layout-root-widget *ngIf="expanded"
|
|
322
|
-
[layout]="layoutNode.items"
|
|
323
|
-
[dataIndex]="dataIndex"
|
|
324
|
-
[layoutIndex]="layoutIndex"
|
|
325
|
-
[isFlexItem]="getFlexAttribute('is-flex')"
|
|
326
|
-
[class.form-flex-column]="getFlexAttribute('flex-direction') === 'column'"
|
|
327
|
-
[class.form-flex-row]="getFlexAttribute('flex-direction') === 'row'"
|
|
328
|
-
[style.display]="getFlexAttribute('display')"
|
|
329
|
-
[style.flex-direction]="getFlexAttribute('flex-direction')"
|
|
330
|
-
[style.flex-wrap]="getFlexAttribute('flex-wrap')"
|
|
331
|
-
[style.justify-content]="getFlexAttribute('justify-content')"
|
|
332
|
-
[style.align-items]="getFlexAttribute('align-items')"
|
|
333
|
-
[style.align-content]="getFlexAttribute('align-content')"
|
|
334
|
-
[fxLayout]="getFlexAttribute('layout')"
|
|
335
|
-
[fxLayoutGap]="options?.fxLayoutGap"
|
|
336
|
-
[fxLayoutAlign]="options?.fxLayoutAlign"
|
|
337
|
-
[attr.fxFlexFill]="options?.fxLayoutAlign"></flex-layout-root-widget>
|
|
338
|
-
</fieldset>
|
|
339
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
340
|
-
[innerHTML]="options?.errorMessage"></mat-error>
|
|
341
|
-
</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"] }]
|
|
342
|
-
}], ctorParameters: function () { return [{ type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
343
|
-
type: Input
|
|
344
|
-
}], layoutIndex: [{
|
|
345
|
-
type: Input
|
|
346
|
-
}], dataIndex: [{
|
|
347
|
-
type: Input
|
|
348
|
-
}] } });
|
|
349
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxleC1sYXlvdXQtc2VjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hanNmLW1hdGVyaWFsL3NyYy9saWIvd2lkZ2V0cy9mbGV4LWxheW91dC1zZWN0aW9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7OztBQStJekQsTUFBTSxPQUFPLDBCQUEwQjtJQWFyQyxZQUNVLEdBQTBCO1FBQTFCLFFBQUcsR0FBSCxHQUFHLENBQXVCO1FBVnBDLG9CQUFlLEdBQUcsS0FBSyxDQUFDO1FBQ3hCLGlCQUFZLEdBQUcsS0FBSyxDQUFDO1FBRXJCLGFBQVEsR0FBRyxJQUFJLENBQUM7UUFDaEIsa0JBQWEsR0FBRyxLQUFLLENBQUM7SUFPbEIsQ0FB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m9wdGlvbnMuZnhMYXlvdXRXcmFwIDogJyc7XG5cbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,83 +0,0 @@
|
|
|
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/forms";
|
|
6
|
-
import * as i4 from "@angular/material/form-field";
|
|
7
|
-
import * as i5 from "@angular/material/slider";
|
|
8
|
-
export class MaterialSliderComponent {
|
|
9
|
-
constructor(jsf) {
|
|
10
|
-
this.jsf = jsf;
|
|
11
|
-
this.controlDisabled = false;
|
|
12
|
-
this.boundControl = false;
|
|
13
|
-
this.allowNegative = true;
|
|
14
|
-
this.allowDecimal = true;
|
|
15
|
-
this.allowExponents = false;
|
|
16
|
-
this.lastValidNumber = '';
|
|
17
|
-
}
|
|
18
|
-
ngOnInit() {
|
|
19
|
-
this.options = this.layoutNode.options || {};
|
|
20
|
-
this.jsf.initializeControl(this, !this.options.readonly);
|
|
21
|
-
}
|
|
22
|
-
updateValue(event) {
|
|
23
|
-
this.options.showErrors = true;
|
|
24
|
-
this.jsf.updateValue(this, event.value);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
MaterialSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialSliderComponent, deps: [{ token: i1.JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
MaterialSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaterialSliderComponent, selector: "material-slider-widget", inputs: { layoutNode: "layoutNode", layoutIndex: "layoutIndex", dataIndex: "dataIndex" }, ngImport: i0, template: `
|
|
29
|
-
<mat-slider thumbLabel *ngIf="boundControl"
|
|
30
|
-
[formControl]="formControl"
|
|
31
|
-
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
32
|
-
[id]="'control' + layoutNode?._id"
|
|
33
|
-
[max]="options?.maximum"
|
|
34
|
-
[min]="options?.minimum"
|
|
35
|
-
[step]="options?.multipleOf || options?.step || 'any'"
|
|
36
|
-
[style.width]="'100%'"
|
|
37
|
-
(blur)="options.showErrors = true"></mat-slider>
|
|
38
|
-
<mat-slider thumbLabel *ngIf="!boundControl"
|
|
39
|
-
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
40
|
-
[disabled]="controlDisabled || options?.readonly"
|
|
41
|
-
[id]="'control' + layoutNode?._id"
|
|
42
|
-
[max]="options?.maximum"
|
|
43
|
-
[min]="options?.minimum"
|
|
44
|
-
[step]="options?.multipleOf || options?.step || 'any'"
|
|
45
|
-
[style.width]="'100%'"
|
|
46
|
-
[value]="controlValue"
|
|
47
|
-
(blur)="options.showErrors = true"
|
|
48
|
-
(change)="updateValue($event)"></mat-slider>
|
|
49
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
50
|
-
[innerHTML]="options?.errorMessage"></mat-error>`, isInline: true, styles: ["mat-error{font-size:75%}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i5.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "displayWith", "valueText", "vertical"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }] });
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaterialSliderComponent, decorators: [{
|
|
52
|
-
type: Component,
|
|
53
|
-
args: [{ selector: 'material-slider-widget', template: `
|
|
54
|
-
<mat-slider thumbLabel *ngIf="boundControl"
|
|
55
|
-
[formControl]="formControl"
|
|
56
|
-
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
57
|
-
[id]="'control' + layoutNode?._id"
|
|
58
|
-
[max]="options?.maximum"
|
|
59
|
-
[min]="options?.minimum"
|
|
60
|
-
[step]="options?.multipleOf || options?.step || 'any'"
|
|
61
|
-
[style.width]="'100%'"
|
|
62
|
-
(blur)="options.showErrors = true"></mat-slider>
|
|
63
|
-
<mat-slider thumbLabel *ngIf="!boundControl"
|
|
64
|
-
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
|
|
65
|
-
[disabled]="controlDisabled || options?.readonly"
|
|
66
|
-
[id]="'control' + layoutNode?._id"
|
|
67
|
-
[max]="options?.maximum"
|
|
68
|
-
[min]="options?.minimum"
|
|
69
|
-
[step]="options?.multipleOf || options?.step || 'any'"
|
|
70
|
-
[style.width]="'100%'"
|
|
71
|
-
[value]="controlValue"
|
|
72
|
-
(blur)="options.showErrors = true"
|
|
73
|
-
(change)="updateValue($event)"></mat-slider>
|
|
74
|
-
<mat-error *ngIf="options?.showErrors && options?.errorMessage"
|
|
75
|
-
[innerHTML]="options?.errorMessage"></mat-error>`, styles: ["mat-error{font-size:75%}\n"] }]
|
|
76
|
-
}], ctorParameters: function () { return [{ type: i1.JsonSchemaFormService }]; }, propDecorators: { layoutNode: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}], layoutIndex: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], dataIndex: [{
|
|
81
|
-
type: Input
|
|
82
|
-
}] } });
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtc2xpZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpb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