mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-02-01 22:42:42 +00:00
refactor: migrate to ionic standalone components refactor: migrate ion icons to a custom element
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
/*
|
|
* Copyright (C) 2022 StApps
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
import {Component, Input, TemplateRef} from '@angular/core';
|
|
import {SCThings} from '@openstapps/core';
|
|
import {DataListContext} from '../list/data-list.component';
|
|
import {ModalController} from '@ionic/angular/standalone';
|
|
|
|
/**
|
|
* TODO
|
|
*/
|
|
@Component({
|
|
selector: 'stapps-data-detail-content',
|
|
styleUrls: ['data-detail-content.scss'],
|
|
templateUrl: 'data-detail-content.html',
|
|
})
|
|
export class DataDetailContentComponent {
|
|
/**
|
|
* TODO
|
|
*/
|
|
@Input() item: SCThings;
|
|
|
|
@Input() contentTemplateRef?: TemplateRef<DataListContext<SCThings>>;
|
|
|
|
@Input() openAsModal = false;
|
|
|
|
@Input() showModalHeader = false;
|
|
|
|
constructor(readonly modalController: ModalController) {}
|
|
}
|