Skip to content

Commit

Permalink
feat(stark-ui): implement Collapsible component
Browse files Browse the repository at this point in the history
  • Loading branch information
Dedepon committed Aug 27, 2018
1 parent ce79cc1 commit ec639a8
Show file tree
Hide file tree
Showing 8 changed files with 10,898 additions and 25,239 deletions.
5,282 changes: 2,300 additions & 2,982 deletions packages/stark-build/package-lock.json

Large diffs are not rendered by default.

3,180 changes: 793 additions & 2,387 deletions packages/stark-core/package-lock.json

Large diffs are not rendered by default.

3,175 changes: 808 additions & 2,367 deletions packages/stark-testing/package-lock.json

Large diffs are not rendered by default.

3,366 changes: 850 additions & 2,516 deletions packages/stark-ui/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Component, EventEmitter, HostBinding, Inject, Input, OnInit, Output} from "@angular/core";
import { Component, EventEmitter, HostBinding, Inject, Input, OnInit, Output } from "@angular/core";
import { STARK_LOGGING_SERVICE, StarkLoggingService } from "@nationalbankbelgium/stark-core";
import {StarkCollapsibleOptions} from "@nationalbankbelgium/stark-ui";
import { StarkCollapsibleOptions } from "@nationalbankbelgium/stark-ui";

/**
* Name of the component
Expand All @@ -21,7 +21,7 @@ export class StarkCollapsibleComponent implements OnInit {
/**
* ID to set to the collapsible
*/
@Input()
@Input()
public htmlId: string;

/**
Expand All @@ -47,21 +47,21 @@ export class StarkCollapsibleComponent implements OnInit {
*/
@Input()
public titleLabel: string;

/**
* String or translation key that will be displayed in the sub-title part of the header.
*/
@Input()
public subTitleLabel?: string;

/**
* Design options related to the component
* Design options related to the component
*/
@Input()
public options?: StarkCollapsibleOptions;

/**
* Class constructor
* Class constructor
* @param logger - The logger of the application
*/
public constructor(@Inject(STARK_LOGGING_SERVICE) public logger: StarkLoggingService) {
Expand All @@ -81,10 +81,10 @@ export class StarkCollapsibleComponent implements OnInit {
this.options = {
...defaultOptions,
...this.options
}
};
this.logger.debug(componentName + ": component initialized");
}

/**
* Switch and triggers the dispatch of the collapse state information.
*/
Expand Down
Loading

0 comments on commit ec639a8

Please sign in to comment.