@ethlete/components 0.1.0-next.6 → 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/CHANGELOG.md +12 -0
- package/fesm2022/ethlete-components.mjs +193 -77
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-components.d.ts +23 -22
package/package.json
CHANGED
|
@@ -959,13 +959,8 @@ declare class GridItemDirective {
|
|
|
959
959
|
currentRow: _angular_core.Signal<number>;
|
|
960
960
|
currentColSpan: _angular_core.Signal<number>;
|
|
961
961
|
currentRowSpan: _angular_core.Signal<number>;
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
removeMany: (tokens: string[]) => void;
|
|
965
|
-
has: (tokens: string) => boolean;
|
|
966
|
-
push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
|
|
967
|
-
pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
|
|
968
|
-
};
|
|
962
|
+
protected gridColumn: _angular_core.Signal<string>;
|
|
963
|
+
protected gridRow: _angular_core.Signal<string>;
|
|
969
964
|
constructor();
|
|
970
965
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridItemDirective, never>;
|
|
971
966
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<GridItemDirective, "[etGridItem]", ["etGridItem"], { "itemId": { "alias": "itemId"; "required": true; "isSignal": true; }; "minColSpan": { "alias": "minColSpan"; "required": false; "isSignal": true; }; "maxColSpan": { "alias": "maxColSpan"; "required": false; "isSignal": true; }; "minRowSpan": { "alias": "minRowSpan"; "required": false; "isSignal": true; }; "maxRowSpan": { "alias": "maxRowSpan"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -980,13 +975,7 @@ declare class GridDragDirective {
|
|
|
980
975
|
private renderer;
|
|
981
976
|
private dragStartClient;
|
|
982
977
|
private dragPixelOffset;
|
|
983
|
-
|
|
984
|
-
remove: (tokens: string) => void;
|
|
985
|
-
removeMany: (tokens: string[]) => void;
|
|
986
|
-
has: (tokens: string) => boolean;
|
|
987
|
-
push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
|
|
988
|
-
pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
|
|
989
|
-
};
|
|
978
|
+
protected dragTransform: _angular_core.Signal<string>;
|
|
990
979
|
constructor();
|
|
991
980
|
private applyFixed;
|
|
992
981
|
private releaseFixed;
|
|
@@ -1015,6 +1004,10 @@ type GridConfig = {
|
|
|
1015
1004
|
readonlyAriaLabel: string;
|
|
1016
1005
|
dragHandleAriaLabel: string;
|
|
1017
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>;
|
|
1018
1011
|
};
|
|
1019
1012
|
declare const provideGridConfig: (valueOverride?: Partial<GridConfig> | undefined) => _angular_core.Provider[];
|
|
1020
1013
|
declare const injectGridConfig: {
|
|
@@ -1050,14 +1043,17 @@ declare class GridComponent {
|
|
|
1050
1043
|
private ghostRef;
|
|
1051
1044
|
private gridConfig;
|
|
1052
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
|
+
}[]>;
|
|
1053
1053
|
protected ariaLabel: _angular_core.Signal<string>;
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
has: (tokens: string) => boolean;
|
|
1058
|
-
push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
|
|
1059
|
-
pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
|
|
1060
|
-
};
|
|
1054
|
+
protected gridColumns: _angular_core.Signal<number>;
|
|
1055
|
+
protected gridGap: _angular_core.Signal<string>;
|
|
1056
|
+
protected gridRowHeight: _angular_core.Signal<string>;
|
|
1061
1057
|
constructor();
|
|
1062
1058
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
1063
1059
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridComponent, "et-grid, [et-grid]", never, {}, {}, never, ["*"], true, [{ directive: typeof GridDirective; inputs: { "breakpoints": "breakpoints"; "rowHeight": "rowHeight"; "gap": "gap"; "initialItems": "initialItems"; "readOnly": "readOnly"; }; outputs: { "layoutChange": "layoutChange"; }; }]>;
|
|
@@ -1066,17 +1062,22 @@ declare class GridComponent {
|
|
|
1066
1062
|
declare class GridItemComponent {
|
|
1067
1063
|
private grid;
|
|
1068
1064
|
private gridItem;
|
|
1065
|
+
private provideSurface;
|
|
1066
|
+
private parentSurfaceProvider;
|
|
1069
1067
|
gridDrag: GridDragDirective;
|
|
1070
1068
|
gridResize: GridResizeDirective;
|
|
1071
1069
|
ariaLabel: _angular_core.InputSignal<string>;
|
|
1072
1070
|
removed: _angular_core.OutputEmitterRef<void>;
|
|
1071
|
+
private surfaceThemes;
|
|
1073
1072
|
private gridConfig;
|
|
1074
1073
|
private locale;
|
|
1075
1074
|
protected isReadOnly: _angular_core.Signal<boolean>;
|
|
1076
1075
|
protected dragHandleAriaLabel: _angular_core.Signal<string>;
|
|
1076
|
+
private resolvedSurface;
|
|
1077
|
+
constructor();
|
|
1077
1078
|
applyKeyboardShortcut(event: KeyboardEvent): void;
|
|
1078
1079
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridItemComponent, never>;
|
|
1079
|
-
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: {}; }]>;
|
|
1080
1081
|
}
|
|
1081
1082
|
|
|
1082
1083
|
/**
|