@dereekb/dbx-web 13.11.13 → 13.11.15
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/eslint/index.cjs.js +1627 -178
- package/eslint/index.esm.js +1621 -175
- package/eslint/package.json +6 -6
- package/eslint/src/lib/index.d.ts +7 -4
- package/eslint/src/lib/no-redundant-on-destroy.rule.d.ts +1 -1
- package/eslint/src/lib/plugin.d.ts +13 -7
- package/eslint/src/lib/require-clean-subscription.rule.d.ts +1 -1
- package/eslint/src/lib/require-complete-on-destroy.rule.d.ts +1 -1
- package/eslint/src/lib/require-component-config-input.rule.d.ts +50 -0
- package/eslint/src/lib/require-computed-signal-suffix.rule.d.ts +38 -0
- package/eslint/src/lib/require-top-level-computed-signals.rule.d.ts +66 -0
- package/eslint/src/lib/util.d.ts +13 -12
- package/fesm2022/dereekb-dbx-web-calendar.mjs +11 -13
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +16 -12
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +21 -17
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +632 -546
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/package.json +7 -7
- package/types/dereekb-dbx-web-calendar.d.ts +2 -10
- package/types/dereekb-dbx-web-mapbox.d.ts +5 -5
- package/types/dereekb-dbx-web-table.d.ts +13 -13
- package/types/dereekb-dbx-web.d.ts +349 -331
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.15",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.scss",
|
|
6
6
|
"*.css"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"@angular/material": "^21.2.9",
|
|
14
14
|
"@angular/platform-browser": "21.2.11",
|
|
15
15
|
"@cantoo/pdf-lib": "^2.6.5",
|
|
16
|
-
"@dereekb/browser": "13.11.
|
|
17
|
-
"@dereekb/date": "13.11.
|
|
18
|
-
"@dereekb/dbx-core": "13.11.
|
|
19
|
-
"@dereekb/rxjs": "13.11.
|
|
20
|
-
"@dereekb/util": "13.11.
|
|
21
|
-
"@dereekb/vitest": "13.11.
|
|
16
|
+
"@dereekb/browser": "13.11.15",
|
|
17
|
+
"@dereekb/date": "13.11.15",
|
|
18
|
+
"@dereekb/dbx-core": "13.11.15",
|
|
19
|
+
"@dereekb/rxjs": "13.11.15",
|
|
20
|
+
"@dereekb/util": "13.11.15",
|
|
21
|
+
"@dereekb/vitest": "13.11.15",
|
|
22
22
|
"@ngbracket/ngx-layout": "^21.0.0",
|
|
23
23
|
"@ngrx/component-store": "^21.1.0",
|
|
24
24
|
"@ngrx/effects": "^21.1.0",
|
|
@@ -148,15 +148,7 @@ declare function updateCalendarStateWithTappedDate(state: CalendarState, date: D
|
|
|
148
148
|
* @param navigationRangeLimit - The new navigation date range limit, or undefined/null to remove the limit.
|
|
149
149
|
* @returns The updated calendar state with the applied navigation range limit.
|
|
150
150
|
*/
|
|
151
|
-
declare function updateCalendarStateWithNavigationRangeLimit(state: CalendarState, navigationRangeLimit: Maybe<Partial<DateRange>>):
|
|
152
|
-
navigationRangeLimit: Maybe<Partial<DateRange>>;
|
|
153
|
-
type: CalendarDisplayType;
|
|
154
|
-
showTodayButton?: boolean;
|
|
155
|
-
date: Date;
|
|
156
|
-
dateTappedTwice: boolean;
|
|
157
|
-
events: CalendarEvent<any>[];
|
|
158
|
-
showPageButtons?: boolean;
|
|
159
|
-
};
|
|
151
|
+
declare function updateCalendarStateWithNavigationRangeLimit(state: CalendarState, navigationRangeLimit: Maybe<Partial<DateRange>>): CalendarState<any>;
|
|
160
152
|
|
|
161
153
|
interface DbxCalendarEvent<T> {
|
|
162
154
|
event: CalendarEvent<T>;
|
|
@@ -225,7 +217,7 @@ declare class DbxCalendarBaseComponent<T> {
|
|
|
225
217
|
}
|
|
226
218
|
|
|
227
219
|
/**
|
|
228
|
-
* Provides default configuration for the DbxCalendarModule
|
|
220
|
+
* Provides default configuration for the DbxCalendarModule.
|
|
229
221
|
*
|
|
230
222
|
* @returns Providers that register the calendar with a date-fns date adapter.
|
|
231
223
|
*/
|
|
@@ -63,8 +63,8 @@ type MapboxFlyToOptions = Parameters<MapboxGl.Map['flyTo']>[0];
|
|
|
63
63
|
*/
|
|
64
64
|
type MapboxSetStyleOptions = Parameters<MapboxGl.Map['setStyle']>[1];
|
|
65
65
|
interface MapboxStyleConfig {
|
|
66
|
-
style: MapboxGl.StyleSpecification | string;
|
|
67
|
-
options?: MapboxSetStyleOptions;
|
|
66
|
+
readonly style: MapboxGl.StyleSpecification | string;
|
|
67
|
+
readonly options?: MapboxSetStyleOptions;
|
|
68
68
|
}
|
|
69
69
|
interface MapboxFitPositions {
|
|
70
70
|
positions: ExtendLatLngBoundInput;
|
|
@@ -144,7 +144,7 @@ type MapboxViewportBoundFunction = (input: MapboxViewportBoundFunctionInput) =>
|
|
|
144
144
|
* Creates a function that calculates the geographic bounds of a Mapbox viewport given a center point and zoom level.
|
|
145
145
|
*
|
|
146
146
|
* @param config - Configuration specifying the map canvas size and optional tile size.
|
|
147
|
-
* @returns
|
|
147
|
+
* @returns Accepts a center point and zoom level and returns the corresponding {@link LatLngBound}.
|
|
148
148
|
*/
|
|
149
149
|
declare function mapboxViewportBoundFunction(config: MapboxViewportBoundFunctionConfig): MapboxViewportBoundFunction;
|
|
150
150
|
|
|
@@ -769,8 +769,8 @@ interface ProvideDbxMapboxConfig {
|
|
|
769
769
|
/**
|
|
770
770
|
* Creates EnvironmentProviders for providing DbxMapboxConfig and configuring the NgxMapboxGLModule.
|
|
771
771
|
*
|
|
772
|
-
* @param config Configuration
|
|
773
|
-
* @returns EnvironmentProviders
|
|
772
|
+
* @param config - Configuration.
|
|
773
|
+
* @returns EnvironmentProviders.
|
|
774
774
|
*/
|
|
775
775
|
declare function provideDbxMapbox(config: ProvideDbxMapboxConfig): EnvironmentProviders;
|
|
776
776
|
|
|
@@ -74,8 +74,8 @@ interface DefaultDbxTableItemGroup<T, G = unknown> extends DbxTableItemGroup<T,
|
|
|
74
74
|
*
|
|
75
75
|
* Used when no explicit grouping function is provided to the table.
|
|
76
76
|
*
|
|
77
|
-
* @param items -
|
|
78
|
-
* @returns
|
|
77
|
+
* @param items - The array of items to include in the default group.
|
|
78
|
+
* @returns A default group containing all the provided items.
|
|
79
79
|
*/
|
|
80
80
|
declare function defaultDbxTableItemGroup<T, G = unknown>(items: T[]): DefaultDbxTableItemGroup<T, G>;
|
|
81
81
|
type DbxTableGroupByFunction<T, G = unknown> = (items: T[]) => ObservableOrValue<DbxTableItemGroup<T, G>[]>;
|
|
@@ -181,7 +181,7 @@ declare class DbxTableDateHeaderComponent {
|
|
|
181
181
|
*
|
|
182
182
|
* The factory initializes each {@link DbxTableDateHeaderComponent} with the column's date metadata.
|
|
183
183
|
*
|
|
184
|
-
* @returns
|
|
184
|
+
* @returns A factory function that maps a date column to its header injection config.
|
|
185
185
|
*/
|
|
186
186
|
declare function dbxTableDateHeaderInjectionFactory(): DbxInjectionComponentConfigFactory<DbxTableColumn<Date>, DbxTableDateHeaderComponent>;
|
|
187
187
|
|
|
@@ -225,8 +225,8 @@ declare class DbxTableStore<I = unknown, C = unknown, T = unknown, G = unknown>
|
|
|
225
225
|
declare class DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy<D> implements MatDateRangeSelectionStrategy<D> {
|
|
226
226
|
private readonly _dateAdapter;
|
|
227
227
|
private readonly dbxTableDateRangeDayDistanceInputCellInputComponent;
|
|
228
|
-
selectionFinished(date: D
|
|
229
|
-
createPreview(activeDate: D
|
|
228
|
+
selectionFinished(date: Maybe<D>): DateRange<D>;
|
|
229
|
+
createPreview(activeDate: Maybe<D>): DateRange<D>;
|
|
230
230
|
private _createFiveDayRange;
|
|
231
231
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy<any>, never>;
|
|
232
232
|
static ɵprov: i0.ɵɵInjectableDeclaration<DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy<any>>;
|
|
@@ -286,8 +286,8 @@ declare class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
286
286
|
*
|
|
287
287
|
* Initializes the component with the provided configuration for day distance, date bounds, and button format.
|
|
288
288
|
*
|
|
289
|
-
* @param componentConfig -
|
|
290
|
-
* @returns
|
|
289
|
+
* @param componentConfig - Optional configuration for the date range input (day distance, min/max dates, button format)
|
|
290
|
+
* @returns An injection component config that renders a {@link DbxTableDateRangeDayDistanceInputCellInputComponent}
|
|
291
291
|
*/
|
|
292
292
|
declare function dbxTableDateRangeDayDistanceInputCellInput(componentConfig?: DbxTableDateRangeDayDistanceInputCellInputComponentConfig): DbxInjectionComponentConfig<DbxTableDateRangeDayDistanceInputCellInputComponent>;
|
|
293
293
|
|
|
@@ -404,15 +404,15 @@ type DbxTableViewElement<T, G> = DbxTableViewGroupElement<T, G> | DbxTableViewIt
|
|
|
404
404
|
/**
|
|
405
405
|
* Type guard that checks whether a table view element is a group element (header or footer).
|
|
406
406
|
*
|
|
407
|
-
* @param element -
|
|
408
|
-
* @returns `true` if the element represents a group header or footer row
|
|
407
|
+
* @param element - The table view element to check.
|
|
408
|
+
* @returns `true` if the element represents a group header or footer row.
|
|
409
409
|
*/
|
|
410
410
|
declare function isDbxTableViewGroupElement<T, G>(element: DbxTableViewElement<T, G>): element is DbxTableViewGroupElement<T, G>;
|
|
411
411
|
/**
|
|
412
412
|
* Type guard that checks whether a table view element is an item data element.
|
|
413
413
|
*
|
|
414
|
-
* @param element -
|
|
415
|
-
* @returns `true` if the element represents an item data row
|
|
414
|
+
* @param element - The table view element to check.
|
|
415
|
+
* @returns `true` if the element represents an item data row.
|
|
416
416
|
*/
|
|
417
417
|
declare function isDbxTableViewItemElement<T, G>(element: DbxTableViewElement<T, G>): element is DbxTableViewItemElement<T, G>;
|
|
418
418
|
/**
|
|
@@ -632,8 +632,8 @@ interface DbxTableReader<C, T, O, G = any> extends DbxTableReaderConfig<C, T, O,
|
|
|
632
632
|
/**
|
|
633
633
|
* Creates a {@link DbxTableReader} that provides reactive access to cell data across all columns and items in the table.
|
|
634
634
|
*
|
|
635
|
-
* @param config The reader configuration containing the delegate and table store
|
|
636
|
-
* @returns A {@link DbxTableReader} instance with observable accessors for cell data
|
|
635
|
+
* @param config - The reader configuration containing the delegate and table store.
|
|
636
|
+
* @returns A {@link DbxTableReader} instance with observable accessors for cell data.
|
|
637
637
|
*/
|
|
638
638
|
declare function dbxTableReader<C, T, O, G = any>(config: DbxTableReaderConfig<C, T, O, G>): DbxTableReader<C, T, O, G>;
|
|
639
639
|
|