-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #16: moves asset selection to formly field * #16: removes dev logging --------- Co-authored-by: Dirk Peter <[email protected]>
- Loading branch information
1 parent
b4fb982
commit abb56cd
Showing
7 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
plugin/components/asset.formly/asset.formly.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<c8y-asset-selector-miller | ||
class="m-b-24" | ||
[selectedDevice]="field.props.asset" | ||
[config]="{ | ||
groupsSelectable: true, | ||
singleColumn: true, | ||
columnHeaders: true, | ||
showFilter: true, | ||
search: true, | ||
label: field.props.label | ||
}" | ||
[formControl]="formControl" | ||
[formlyAttributes]="field"> | ||
</c8y-asset-selector-miller> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:host ::ng-deep { | ||
.miller-column__selection { | ||
padding-left: 0 !important; | ||
padding-right: 0 !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
import { FieldType, FieldTypeConfig } from '@ngx-formly/core'; | ||
|
||
@Component({ | ||
selector: 'formly-asset', | ||
templateUrl: './asset.formly.component.html', | ||
styleUrls: ['./asset.formly.component.less'] | ||
}) | ||
export class AssetFieldType extends FieldType<FieldTypeConfig> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
plugin/components/reminder-modal/reminder-modal.component.less
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters