Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding moduleId: module.id to all components. This make them ready t… #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ng-semantic/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
* @link http://semantic-ui.com/elements/button.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-button",
template: `<button [ngClass]="{icon: icon}" [attr.disabled]="disabled ? true : null" class="ui {{class}} button">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/card/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
* @link http://semantic-ui.com/views/card.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-card",
template: `<div class="ui {{class}}">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/contextmenu/contextmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Input, ChangeDetectionStrategy, HostListener } from "@angula
* @link http://semantic-ui.com/modules/dropdown.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-contextmenu",
styles: [`.sm-contextmenu { position: fixed; z-index: 1000; }`],
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/dimmer/dimmer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, ChangeDetectionStrategy, ViewChild, ElementRef } from "@angu
declare var jQuery: any;

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-dimmer",
template: `<div class="ui page dimmer" #dimmer>
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
declare var jQuery: any;

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-dropdown",
template: `
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/flag/flag.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, ChangeDetectionStrategy, Input } from "@angular/core";

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-flag",
template: `<i class="{{flag}} flag"></i>`
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { FormControl } from "@angular/forms";
* <sm-input icon="dollar" type="number" [(model)]="model" class="right fluid" placeholder="Enter a sum..."></sm-input>
*/
@Component({
moduleId: module.id,
selector: "sm-input",
template: `<div class="field" [ngClass]="{error: (!control.valid && control.dirty && isInsideForm) }">
<label *ngIf="label && isInsideForm">{{label}}</label>
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Input, ChangeDetectionStrategy, ViewChild, ElementRef, After
* @link http://semantic-ui.com/elements/list.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-list",
template: `
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/loader/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
* @link http://semantic-ui.com/elements/loader.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-loader",
template: `<div *ngIf="!complete" class="ui active dimmer {{class}}">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Component, Input, ChangeDetectionStrategy, AfterViewInit, ViewChild, El
* @link http://semantic-ui.com/elements/icon.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-menu",
template: `<div class="ui menu {{class}}" #innerElement>
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/message/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
* @link http://semantic-ui.com/collections/message.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
selector: "sm-message",
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/modal/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare var jQuery: any;
* This component is triggered by SMModalDirective.
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-modal",
template: `<div class="ui modal {{class}}" #modal>
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/popup/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare var jQuery: any;
* This component is triggered by UIPopupDirective.
*/
@Component({
moduleId: module.id,
selector: "sm-popup",
template: `<div class="ui popup very wide {{selector}}" #popup>
<div class="content">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/popup/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare var jQuery: any;
* @link http://semantic-ui.com/modules/popup.html
*/
@Directive({
moduleId: module.id,
selector: "[smDirTooltip]"
})
export class SMTooltipDirective implements OnInit {
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/progress/progress.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, Input, ChangeDetectionStrategy } from "@angular/core";

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-progress",
template: `<div [ngClass]="{'success': _progress === 100}" class="ui {{class}} progress" [attr.data-percent]="_progress">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/rating/rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, Input, ViewChild, ChangeDetectionStrategy, AfterViewInit, El
declare var jQuery: any;

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-rating",
template: `<div class="ui {{class}} rating" #rating></div>`
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/search/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "rxjs/add/operator/distinctUntilChanged";
* <sm-search placeholder="Search..." (onSearch)="element.innerText = $event" ></sm-search>
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-search",
template: `<div class="ui search" [ngClass]="{'loading': loading}">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/segment/segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
* @link http://semantic-ui.com/elements/segment.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector : "sm-segment",
template: `<div class="ui segment {{class}}">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { FormControl } from "@angular/forms";
declare var jQuery: any;

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-select",
template: `<div class="field" [ngClass]="{error: (!control?.valid && control?.touched) }">
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/shape/shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, ChangeDetectionStrategy, ViewChild, ElementRef } from "@angu
declare var jQuery: any;

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-shape",
template: `
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jQuery.fn.fixSidebar = function() {
* @link semantic-ui.com/modules/sidebar.html
*/
@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-sidebar",
template: `<div class="ui sidebar {{class}}" #sidebar>
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/tab/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
declare var jQuery: any;

@Component({
moduleId: module.id,
selector: "sm-tab",
template: `
<div #tab>
Expand Down
1 change: 1 addition & 0 deletions ng-semantic/transition/transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, ChangeDetectionStrategy, ViewChild, ElementRef } from "@angu
declare var jQuery: any;

@Component({
moduleId: module.id,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: "sm-transition",
template: `
Expand Down