• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eclipsesource / jsonforms / 4078973452

pending completion
4078973452

Pull #2089

github

GitHub
Merge 02bf9f9a8 into 1b22f55dc
Pull Request #2089: Bump http-cache-semantics and lerna

110 of 179 branches covered (61.45%)

297 of 357 relevant lines covered (83.19%)

13.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/packages/angular-material/src/layouts/horizontal-layout.renderer.ts
1
/*
2
  The MIT License
3

4
  Copyright (c) 2017-2019 EclipseSource Munich
5
  https://github.com/eclipsesource/jsonforms
6

7
  Permission is hereby granted, free of charge, to any person obtaining a copy
8
  of this software and associated documentation files (the "Software"), to deal
9
  in the Software without restriction, including without limitation the rights
10
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
  copies of the Software, and to permit persons to whom the Software is
12
  furnished to do so, subject to the following conditions:
13

14
  The above copyright notice and this permission notice shall be included in
15
  all copies or substantial portions of the Software.
16

17
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
  THE SOFTWARE.
24
*/
25
import { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';
26
import {
27
  HorizontalLayout,
28
  RankedTester,
29
  rankWith,
30
  uiTypeIs
31
} from '@jsonforms/core';
32
import { LayoutRenderer } from './layout.renderer';
33
import { JsonFormsAngularService } from '@jsonforms/angular';
34

35
@Component({
36
  selector: 'HorizontalLayoutRenderer',
37
  template: `
38
    <div
39
      fxLayout="row wrap"
40
      fxLayoutGap="16px"
41
      [fxHide]="hidden"
42
      fxLayoutAlign="center start"
43
    >
44
      <div *ngFor="let props of uischema | layoutChildrenRenderProps: schema: path; trackBy: trackElement" fxFlex>
45
        <jsonforms-outlet [renderProps]="props"></jsonforms-outlet>
46
      </div>
47
    </div>
48
  `,
49
  changeDetection: ChangeDetectionStrategy.OnPush
50
})
51
export class HorizontalLayoutRenderer extends LayoutRenderer<HorizontalLayout> {
1✔
52
  constructor(jsonFormsService: JsonFormsAngularService, changeDetectionRef: ChangeDetectorRef) {
53
    super(jsonFormsService, changeDetectionRef);
3!
54
  }
55
}
1✔
56
export const horizontalLayoutTester: RankedTester = rankWith(
1✔
57
  1,
58
  uiTypeIs('HorizontalLayout')
59
);
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc