@alfresco/adf-core
Version:
54 lines (53 loc) • 2.78 kB
TypeScript
/*!
* @license
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OnInit } from '@angular/core';
import { DateAdapter } from '@angular/material/core';
import { MatDatetimepickerComponent, MatDatetimepickerInputEvent } from '@mat-datetimepicker/core';
import { CardViewDateItemModel } from '../../models/card-view-dateitem.model';
import { UserPreferencesService } from '../../../common/services/user-preferences.service';
import { BaseCardView } from '../base-card-view';
import { ClipboardService } from '../../../clipboard/clipboard.service';
import { TranslationService } from '../../../translation/translation.service';
import { FormControl } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class CardViewDateItemComponent extends BaseCardView<CardViewDateItemModel> implements OnInit {
private dateAdapter;
private userPreferencesService;
private clipboardService;
private translateService;
displayEmpty: boolean;
displayClearAction: boolean;
datepicker: MatDatetimepickerComponent<any>;
valueDate: Date;
cardViewDateTimeControl: FormControl<Date>;
private readonly destroyRef;
constructor(dateAdapter: DateAdapter<Date>, userPreferencesService: UserPreferencesService, clipboardService: ClipboardService, translateService: TranslationService);
ngOnInit(): void;
get showProperty(): boolean;
get showClearAction(): boolean;
showDatePicker(): void;
onDateChanged(event: MatDatetimepickerInputEvent<Date>): void;
onDateClear(): void;
copyToClipboard(valueToCopy: string | string[]): void;
addDateToList(event: MatDatetimepickerInputEvent<Date>): void;
removeValueFromList(itemIndex: number): void;
update(): void;
private initSingleValueProperty;
private initMultivaluedProperty;
static ɵfac: i0.ɵɵFactoryDeclaration<CardViewDateItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CardViewDateItemComponent, "adf-card-view-dateitem", never, { "displayEmpty": { "alias": "displayEmpty"; "required": false; }; "displayClearAction": { "alias": "displayClearAction"; "required": false; }; }, {}, never, never, true, never>;
}