@ethlete/components 0.1.0-next.7 → 0.1.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1004,6 +1004,10 @@ type GridConfig = {
|
|
|
1004
1004
|
readonlyAriaLabel: string;
|
|
1005
1005
|
dragHandleAriaLabel: string;
|
|
1006
1006
|
transformer: (text: string, locale: string) => string;
|
|
1007
|
+
/** Replaces the default drag handle for all registered items. Receives `data` and `itemId` as inputs. */
|
|
1008
|
+
dragHandleComponent?: Type<unknown>;
|
|
1009
|
+
/** Replaces the default ✕ button for all registered items. Receives `data` and `itemId` as inputs. */
|
|
1010
|
+
actionsComponent?: Type<unknown>;
|
|
1007
1011
|
};
|
|
1008
1012
|
declare const provideGridConfig: (valueOverride?: Partial<GridConfig> | undefined) => _angular_core.Provider[];
|
|
1009
1013
|
declare const injectGridConfig: {
|
|
@@ -1039,6 +1043,13 @@ declare class GridComponent {
|
|
|
1039
1043
|
private ghostRef;
|
|
1040
1044
|
private gridConfig;
|
|
1041
1045
|
private locale;
|
|
1046
|
+
protected isReadOnly: _angular_core.Signal<boolean>;
|
|
1047
|
+
protected dragHandleComponent: _angular_core.Signal<_angular_core.Type<unknown> | undefined>;
|
|
1048
|
+
protected actionsComponent: _angular_core.Signal<_angular_core.Type<unknown> | undefined>;
|
|
1049
|
+
protected registeredItems: _angular_core.Signal<{
|
|
1050
|
+
item: _ethlete_components.GridItemConfig;
|
|
1051
|
+
reg: _ethlete_components.GridComponentRegistration;
|
|
1052
|
+
}[]>;
|
|
1042
1053
|
protected ariaLabel: _angular_core.Signal<string>;
|
|
1043
1054
|
protected gridColumns: _angular_core.Signal<number>;
|
|
1044
1055
|
protected gridGap: _angular_core.Signal<string>;
|
|
@@ -1051,17 +1062,22 @@ declare class GridComponent {
|
|
|
1051
1062
|
declare class GridItemComponent {
|
|
1052
1063
|
private grid;
|
|
1053
1064
|
private gridItem;
|
|
1065
|
+
private provideSurface;
|
|
1066
|
+
private parentSurfaceProvider;
|
|
1054
1067
|
gridDrag: GridDragDirective;
|
|
1055
1068
|
gridResize: GridResizeDirective;
|
|
1056
1069
|
ariaLabel: _angular_core.InputSignal<string>;
|
|
1057
1070
|
removed: _angular_core.OutputEmitterRef<void>;
|
|
1071
|
+
private surfaceThemes;
|
|
1058
1072
|
private gridConfig;
|
|
1059
1073
|
private locale;
|
|
1060
1074
|
protected isReadOnly: _angular_core.Signal<boolean>;
|
|
1061
1075
|
protected dragHandleAriaLabel: _angular_core.Signal<string>;
|
|
1076
|
+
private resolvedSurface;
|
|
1077
|
+
constructor();
|
|
1062
1078
|
applyKeyboardShortcut(event: KeyboardEvent): void;
|
|
1063
1079
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridItemComponent, never>;
|
|
1064
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridItemComponent, "et-grid-item, [et-grid-item]", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "removed": "removed"; }, never, ["[etGridItemDragHandle]", "*", "[etGridItemAction]"], true, [{ directive: typeof GridItemDirective; inputs: { "itemId": "itemId"; "minColSpan": "minColSpan"; "maxColSpan": "maxColSpan"; "minRowSpan": "minRowSpan"; "maxRowSpan": "maxRowSpan"; }; outputs: {}; }, { directive: typeof GridDragDirective; inputs: {}; outputs: {}; }, { directive: typeof GridResizeDirective; inputs: {}; outputs: {}; }]>;
|
|
1080
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridItemComponent, "et-grid-item, [et-grid-item]", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "removed": "removed"; }, never, ["[etGridItemDragHandle]", "*", "[etGridItemAction]"], true, [{ directive: typeof GridItemDirective; inputs: { "itemId": "itemId"; "minColSpan": "minColSpan"; "maxColSpan": "maxColSpan"; "minRowSpan": "minRowSpan"; "maxRowSpan": "maxRowSpan"; }; outputs: {}; }, { directive: typeof GridDragDirective; inputs: {}; outputs: {}; }, { directive: typeof GridResizeDirective; inputs: {}; outputs: {}; }, { directive: typeof _ethlete_core.ProvideSurfaceDirective; inputs: {}; outputs: {}; }]>;
|
|
1065
1081
|
}
|
|
1066
1082
|
|
|
1067
1083
|
/**
|