@ship-ui/core 0.15.10 → 0.15.13
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/fesm2022/ship-ui-core.mjs +180 -181
- package/fesm2022/ship-ui-core.mjs.map +1 -1
- package/index.d.ts +6 -9
- package/package.json +1 -1
- package/styles/components/ship-table.component.scss +15 -14
package/index.d.ts
CHANGED
|
@@ -616,13 +616,6 @@ declare class ShipSortDirective {
|
|
|
616
616
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipSortDirective, never>;
|
|
617
617
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ShipSortDirective, "[shSort]", never, { "shSort": { "alias": "shSort"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
618
618
|
}
|
|
619
|
-
declare class ShipStickyRowsDirective {
|
|
620
|
-
#private;
|
|
621
|
-
shStickyRows: _angular_core.InputSignal<string>;
|
|
622
|
-
ngAfterContentInit(): void;
|
|
623
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipStickyRowsDirective, never>;
|
|
624
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ShipStickyRowsDirective, "[shStickyRows]", never, { "shStickyRows": { "alias": "shStickyRows"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
625
|
-
}
|
|
626
619
|
declare class ShipStickyColumnsDirective {
|
|
627
620
|
#private;
|
|
628
621
|
shStickyColumns: _angular_core.InputSignal<string>;
|
|
@@ -637,11 +630,15 @@ declare class ShipTableComponent {
|
|
|
637
630
|
data: _angular_core.InputSignal<any>;
|
|
638
631
|
dataChange: _angular_core.OutputEmitterRef<any>;
|
|
639
632
|
sortByColumn: _angular_core.ModelSignal<string | null>;
|
|
633
|
+
currentClass: _angular_core.Signal<string>;
|
|
634
|
+
thead: _angular_core.Signal<ElementRef<HTMLTableSectionElement> | undefined>;
|
|
640
635
|
tbody: _angular_core.Signal<ElementRef<HTMLTableSectionElement> | undefined>;
|
|
641
636
|
columns: {
|
|
642
637
|
signal: _angular_core.Signal<HTMLTableColElement[]>;
|
|
643
638
|
destroy: () => void;
|
|
644
639
|
};
|
|
640
|
+
stickyHeaderHeight: _angular_core.Signal<number>;
|
|
641
|
+
bodyEffect: _angular_core.EffectRef;
|
|
645
642
|
class: _angular_core.WritableSignal<string>;
|
|
646
643
|
resizing: _angular_core.WritableSignal<boolean>;
|
|
647
644
|
sizeTrigger: _angular_core.WritableSignal<boolean>;
|
|
@@ -657,7 +654,7 @@ declare class ShipTableComponent {
|
|
|
657
654
|
e: _angular_core.EffectRef;
|
|
658
655
|
toggleSort(column: string): void;
|
|
659
656
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipTableComponent, never>;
|
|
660
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipTableComponent, "sh-table", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "sortByColumn": { "alias": "sortByColumn"; "required": false; "isSignal": true; }; }, { "dataChange": "dataChange"; "sortByColumn": "sortByColumnChange"; }, never, ["*", "[table-no-rows]"], true, never>;
|
|
657
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipTableComponent, "sh-table", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "sortByColumn": { "alias": "sortByColumn"; "required": false; "isSignal": true; }; }, { "dataChange": "dataChange"; "sortByColumn": "sortByColumnChange"; }, never, ["th", "[thead]", "*", "[table-no-rows]"], true, never>;
|
|
661
658
|
}
|
|
662
659
|
|
|
663
660
|
declare class ShipTabsComponent {
|
|
@@ -780,5 +777,5 @@ interface ShipConfig {
|
|
|
780
777
|
sidenavType?: 'overlay' | 'simple';
|
|
781
778
|
}
|
|
782
779
|
|
|
783
|
-
export { GridSortableDirective, SHIP_CONFIG, ShipAlertComponent, ShipAlertContainerComponent, ShipAlertModule, ShipAlertService, ShipButtonComponent, ShipButtonGroupComponent, ShipCardComponent, ShipCheckboxComponent, ShipChipComponent, ShipColorPickerComponent, ShipDatepickerComponent, ShipDatepickerInputComponent, ShipDaterangeInputComponent, ShipDialogComponent, ShipDialogService, ShipDividerComponent, ShipEventCardComponent, ShipFileDragDropDirective, ShipFileUploadComponent, ShipFormFieldComponent, ShipIconComponent, ShipListComponent, ShipMenuComponent, ShipPopoverComponent, ShipPreventWheelDirective, ShipProgressBarComponent, ShipRadioComponent, ShipRangeSliderComponent, ShipResizeDirective, ShipSelectComponent, ShipSidenavComponent, ShipSortDirective, ShipSortableComponent, ShipSortableDirective, ShipSpinnerComponent, ShipStepperComponent, ShipStickyColumnsDirective,
|
|
780
|
+
export { GridSortableDirective, SHIP_CONFIG, ShipAlertComponent, ShipAlertContainerComponent, ShipAlertModule, ShipAlertService, ShipButtonComponent, ShipButtonGroupComponent, ShipCardComponent, ShipCheckboxComponent, ShipChipComponent, ShipColorPickerComponent, ShipDatepickerComponent, ShipDatepickerInputComponent, ShipDaterangeInputComponent, ShipDialogComponent, ShipDialogService, ShipDividerComponent, ShipEventCardComponent, ShipFileDragDropDirective, ShipFileUploadComponent, ShipFormFieldComponent, ShipIconComponent, ShipListComponent, ShipMenuComponent, ShipPopoverComponent, ShipPreventWheelDirective, ShipProgressBarComponent, ShipRadioComponent, ShipRangeSliderComponent, ShipResizeDirective, ShipSelectComponent, ShipSidenavComponent, ShipSortDirective, ShipSortableComponent, ShipSortableDirective, ShipSpinnerComponent, ShipStepperComponent, ShipStickyColumnsDirective, ShipTableComponent, ShipTabsComponent, ShipToggleCardComponent, ShipToggleComponent, ShipTooltipComponent, ShipTooltipDirective, ShipTooltipWrapper, ShipVirtualScrollComponent, moveIndex, watchHostClass };
|
|
784
781
|
export type { AfterDropResponse, ShipAlertItem, ShipAlertItemInternal, ShipAlertType, ShipDialogOptions, ShipDialogReturn, ShipDialogServiceOptions, ShipPopoverOptions, ShipProgressBarMode, ShipSidenavType };
|
package/package.json
CHANGED
|
@@ -113,6 +113,10 @@ $shipTable: true !default;
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
tr:hover td {
|
|
117
|
+
background-color: var(--base-2);
|
|
118
|
+
}
|
|
119
|
+
|
|
116
120
|
div[table-header] tr:first-child th {
|
|
117
121
|
border-bottom: 0;
|
|
118
122
|
}
|
|
@@ -148,6 +152,16 @@ $shipTable: true !default;
|
|
|
148
152
|
position: relative;
|
|
149
153
|
|
|
150
154
|
// &:has(div[table-header].sticky),
|
|
155
|
+
&:has(tr.sticky) {
|
|
156
|
+
position: sticky;
|
|
157
|
+
top: 0;
|
|
158
|
+
z-index: 1;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
thead {
|
|
163
|
+
position: relative;
|
|
164
|
+
|
|
151
165
|
&:has(tr.sticky) {
|
|
152
166
|
position: sticky;
|
|
153
167
|
top: 0;
|
|
@@ -164,7 +178,7 @@ $shipTable: true !default;
|
|
|
164
178
|
}
|
|
165
179
|
|
|
166
180
|
tbody,
|
|
167
|
-
|
|
181
|
+
thead,
|
|
168
182
|
// div[table-header].sticky,
|
|
169
183
|
tr {
|
|
170
184
|
display: grid;
|
|
@@ -341,19 +355,6 @@ $shipTable: true !default;
|
|
|
341
355
|
}
|
|
342
356
|
}
|
|
343
357
|
|
|
344
|
-
[shStickyRows] {
|
|
345
|
-
display: grid;
|
|
346
|
-
grid-column: 1 / -1;
|
|
347
|
-
grid-template-columns: subgrid;
|
|
348
|
-
grid-template-rows: subgrid;
|
|
349
|
-
position: sticky;
|
|
350
|
-
top: 0;
|
|
351
|
-
z-index: 1; // Needs to be the same as regular sticky rows
|
|
352
|
-
border: 0;
|
|
353
|
-
border-color: var(--table-bc);
|
|
354
|
-
border-style: solid;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
358
|
[shStickyColumns] {
|
|
358
359
|
display: grid;
|
|
359
360
|
grid-template-columns: subgrid;
|