cleaned for new home

This commit is contained in:
2025-06-23 12:40:35 +02:00
parent e426efb80f
commit 1f4970c17c
173 changed files with 16228 additions and 24225 deletions

View File

@@ -0,0 +1,39 @@
import { LitElement, TemplateResult } from 'lit';
import { HomeAssistant } from 'custom-card-helpers';
import { ActionImageConfig } from '../types';
export declare class ActionImageRow extends LitElement {
hass: HomeAssistant;
config: ActionImageConfig;
lang: string;
initialExpanded: boolean;
private expanded;
private _cropExpanded;
private _sliderInputValue?;
private _hasInitialized;
protected updated(changedProperties: Map<string, any>): void;
protected render(): TemplateResult<1>;
private _renderPreview;
private _renderImageInput;
private _toggleExpand;
private _handleDelete;
private _handleDuplicate;
private _handleEntityFormChange;
private _handleStateChange;
private _handleImageTypeChange;
private _handleImageUrlChange;
private _handleImageEntityFormChange;
private _handleFileUpload;
private _handleConfigChange;
private _getImageTypeName;
private _truncatePath;
private _handleDragStart;
private _handleDragEnd;
private _renderCropControls;
private _createDefaultCropSettings;
private _updateImageCrop;
private _handleWidthChange;
private _handleSliderInput;
private _handleWidthInput;
private _handleWidthInputChange;
static styles: import("lit").CSSResult;
}

View File

@@ -0,0 +1,14 @@
import { LitElement } from 'lit';
export declare class ColorPicker extends LitElement {
value?: string;
label?: string;
configValue?: string;
showResetButton: boolean;
private _getDisplayColor;
private _rgbToHex;
private _onColorChanged;
private _fireChangeEvent;
private _resetColor;
render(): import("lit").TemplateResult<1>;
static get styles(): import("lit").CSSResult;
}

View File

@@ -0,0 +1,11 @@
import { LitElement } from 'lit';
import { HomeAssistant } from 'custom-card-helpers';
export declare class UltraEntityPicker extends LitElement {
hass: HomeAssistant;
label: string;
value?: string;
entityFilter?: (entityId: string) => boolean;
static get styles(): import("lit").CSSResult;
protected render(): import("lit").TemplateResult<1>;
private _valueChanged;
}

View File

@@ -0,0 +1,39 @@
import { LitElement } from 'lit';
export interface GradientStop {
id: string;
position: number;
color: string;
}
export declare function generateGradientString(stops: GradientStop[]): string;
export declare function createDefaultGradientStops(): GradientStop[];
export declare function createLinearGradient(stops: GradientStop[]): string;
export declare function getColorAtPosition(stops: GradientStop[], position: number): string;
export declare function createStopAtLargestGap(stops: GradientStop[]): GradientStop;
export declare function normalizeBoundaryStops(stops: GradientStop[]): GradientStop[];
export declare class GradientEditor extends LitElement {
stops: GradientStop[];
barSize: 'thin' | 'regular' | 'thick' | 'thiccc';
barRadius: 'round' | 'square' | 'rounded-square';
barStyle: string;
private _draggedIndex;
static styles: import("lit").CSSResult;
render(): import("lit").TemplateResult<1>;
private _renderStopItem;
private _addStop;
private _resetStops;
private _deleteStop;
private _handleColorChange;
private _handlePositionChange;
private _validateAndSortStops;
private _notifyChange;
private _dispatchResetEvent;
private _handleDragStart;
private _handleDragEnd;
private _handleDragOver;
private _handleDrop;
}
declare global {
interface HTMLElementTagNameMap {
'gradient-editor': GradientEditor;
}
}