@reforgium/data-grid 2.5.4 → 3.0.0
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/README.md +107 -4
- package/fesm2022/reforgium-data-grid-column-manager.mjs +35 -28
- package/fesm2022/{reforgium-data-grid-grid-overlay-scroll.feature-zC9rb3bw.mjs → reforgium-data-grid-grid-overlay-scroll.feature-CFEP3NgY.mjs} +2 -2
- package/fesm2022/reforgium-data-grid-paginator.mjs +12 -12
- package/fesm2022/{reforgium-data-grid-reforgium-data-grid-C2zJNoKs.mjs → reforgium-data-grid-reforgium-data-grid-CM3-29GE.mjs} +769 -195
- package/fesm2022/reforgium-data-grid-ui.mjs +3 -3
- package/fesm2022/reforgium-data-grid.mjs +1 -1
- package/package.json +1 -1
- package/types/reforgium-data-grid-column-manager.d.ts +1 -1
- package/types/reforgium-data-grid.d.ts +321 -194
|
@@ -36,8 +36,8 @@ class DataGridDropdown {
|
|
|
36
36
|
this.opened.set(false);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DataGridDropdown, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: DataGridDropdown, isStandalone: true, selector: "re-data-grid-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectValue: "selectValue" }, host: { attributes: { "document:mousedown": "onDocumentMouseDown($event.target)" } }, viewQueries: [{ propertyName: "root", first: true, predicate: ["root"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
41
41
|
<div #root class="re-dg-dd" [class.re-dg-dd--disabled]="disabled()">
|
|
42
42
|
<button
|
|
43
43
|
class="re-dg-dd-trigger"
|
|
@@ -74,7 +74,7 @@ class DataGridDropdown {
|
|
|
74
74
|
</div>
|
|
75
75
|
`, isInline: true, styles: [":host{--re-data-grid-dropdown-width: 120px;--re-data-grid-dropdown-height: 2rem;--re-data-grid-dropdown-radius: .375rem;--re-data-grid-dropdown-border: 1px solid var(--border-color, --re-data-grid-paginator-separator-color, #e2e8f0);--re-data-grid-dropdown-surface: var(--surface-neutral, --re-data-grid-surface);--re-data-grid-dropdown-color: var(--text-primary, #1e293b);--re-data-grid-dropdown-menu-z-index: 30;--re-data-grid-dropdown-hover-surface: rgba(15, 23, 42, .05);--re-data-grid-dropdown-active-surface: rgba(15, 23, 42, .08);--re-data-grid-dropdown-shadow: 0 8px 20px rgba(0, 0, 0, .12);display:inline-flex;position:relative;min-width:var(--re-data-grid-dropdown-width);color:var(--re-data-grid-dropdown-color)}.re-dg-dd{position:relative;width:100%}.re-dg-dd-trigger{display:inline-flex;align-items:center;justify-content:space-between;width:100%;height:var(--re-data-grid-dropdown-height);border-radius:var(--re-data-grid-dropdown-radius);border:var(--re-data-grid-dropdown-border);background:var(--re-data-grid-dropdown-surface);color:inherit;padding:0 .625rem;cursor:pointer}.re-dg-dd-menu{position:absolute;top:calc(100% + .25rem);left:0;z-index:var(--re-data-grid-dropdown-menu-z-index);width:100%;border-radius:var(--re-data-grid-dropdown-radius);border:var(--re-data-grid-dropdown-border);background:var(--re-data-grid-dropdown-surface);box-shadow:var(--re-data-grid-dropdown-shadow);overflow:hidden}.re-dg-dd-option{width:100%;height:var(--re-data-grid-dropdown-height);border:0;background:transparent;color:inherit;text-align:left;padding:0 .625rem;cursor:pointer}.re-dg-dd-option:hover:not(.re-dg-dd-option--disabled){background:var(--re-data-grid-dropdown-hover-surface)}.re-dg-dd-option--active{background:var(--re-data-grid-dropdown-active-surface);font-weight:600}.re-dg-dd-option--disabled{opacity:.6;cursor:not-allowed}.re-dg-dd-chevron{transition:transform .2s}.re-dg-dd-chevron--opened{transform:rotate(180deg)}.re-dg-dd--disabled .re-dg-dd-trigger{opacity:.65;cursor:default}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DataGridDropdown, decorators: [{
|
|
78
78
|
type: Component,
|
|
79
79
|
args: [{ selector: 're-data-grid-dropdown', standalone: true, imports: [NgClass], template: `
|
|
80
80
|
<div #root class="re-dg-dd" [class.re-dg-dd--disabled]="disabled()">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { o as DATA_GRID_CONFIG, p as
|
|
1
|
+
export { o as DATA_GRID_CONFIG, p as DATA_GRID_HEADER_TEXT_RESOLVER, q as DATA_GRID_TYPE_RENDERERS, r as DATA_GRID_TYPE_TRANSFORMERS, s as DEFAULT_DATA_GRID_DEFAULTS, y as DataGrid, i as DataGridCellEmptyDirective, j as DataGridCellLoadingDirective, b as DataGridCellTemplateDirective, h as DataGridDeclarativeCellDirective, f as DataGridDeclarativeColumn, g as DataGridDeclarativeHeaderDirective, n as DataGridExpanderIconDirective, d as DataGridHeaderTemplateDirective, e as DataGridRowDirective, l as DataGridSortIconDirective, k as DataGridStickyRowDirective, D as DataGridTypeCellTemplateDirective, t as provideDataGridDefaults, u as provideDataGridHeaderTextResolver, v as provideDataGridHeaderTextResolverWithParent, w as provideDataGridTypeRenderers, x as provideDataGridTypeTransformers } from './reforgium-data-grid-reforgium-data-grid-CM3-29GE.mjs';
|
|
2
2
|
//# sourceMappingURL=reforgium-data-grid.mjs.map
|
package/package.json
CHANGED
|
@@ -61,11 +61,11 @@ declare class DataGridColumnManager<Data extends RowLike = RowLike> {
|
|
|
61
61
|
protected onDragStart(event: DragEvent, key: string): void;
|
|
62
62
|
protected onDragOver(event: DragEvent): void;
|
|
63
63
|
protected onDrop(event: DragEvent, targetKey: string): void;
|
|
64
|
+
protected buildColumnTitleContext(column: GridColumn<Data>): DataGridColumnManagerColumnTitleContext<Data>;
|
|
64
65
|
private reorderByKey;
|
|
65
66
|
private findColumn;
|
|
66
67
|
private commit;
|
|
67
68
|
private isInsidePinMenu;
|
|
68
|
-
protected buildColumnTitleContext(column: GridColumn<Data>): DataGridColumnManagerColumnTitleContext<Data>;
|
|
69
69
|
private schedulePanelPositioning;
|
|
70
70
|
private positionPanel;
|
|
71
71
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridColumnManager<any>, never>;
|