@dereekb/dbx-web 13.4.1 → 13.5.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/_index.scss +6 -1
- package/fesm2022/dereekb-dbx-web-calendar.mjs +58 -25
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +120 -88
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +148 -110
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +2069 -1704
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/_action.scss +0 -1
- package/lib/action/snackbar/_snackbar.scss +0 -19
- package/lib/button/_button.scss +0 -18
- package/lib/button/progress/bar.button.component.scss +6 -0
- package/lib/error/_error.scss +0 -18
- package/lib/extension/_extension.scss +0 -31
- package/lib/extension/calendar/_calendar.scss +25 -74
- package/lib/extension/calendar/style/month/calendar-month-view.scss +1 -1
- package/lib/extension/help/_help.scss +0 -20
- package/lib/extension/table/_table.scss +0 -19
- package/lib/extension/zip/_zip.scss +5 -20
- package/lib/interaction/_interaction.scss +0 -8
- package/lib/interaction/dialog/_dialog.scss +4 -19
- package/lib/interaction/filter/_filter.scss +0 -19
- package/lib/interaction/iframe/_iframe.scss +0 -19
- package/lib/interaction/popover/_popover.scss +7 -17
- package/lib/interaction/popup/_popup.scss +2 -26
- package/lib/interaction/prompt/_prompt.scss +0 -19
- package/lib/interaction/style/_style.scss +4 -35
- package/lib/interaction/upload/_upload.scss +4 -45
- package/lib/layout/_layout.scss +0 -14
- package/lib/layout/avatar/_avatar.scss +2 -29
- package/lib/layout/bar/_bar.scss +10 -43
- package/lib/layout/block/_block.scss +0 -19
- package/lib/layout/card/_card.scss +0 -19
- package/lib/layout/column/_column.scss +2 -17
- package/lib/layout/content/_content.scss +7 -55
- package/lib/layout/flag/_flag.scss +0 -19
- package/lib/layout/flex/_flex.scss +0 -19
- package/lib/layout/item/_item.scss +0 -19
- package/lib/layout/list/_list.scss +3 -26
- package/lib/layout/section/_section.scss +7 -17
- package/lib/layout/step/_step.scss +0 -19
- package/lib/layout/style/_style.scss +1 -18
- package/lib/layout/text/_text.scss +8 -46
- package/lib/loading/_loading.scss +0 -19
- package/lib/router/_router.scss +0 -4
- package/lib/router/layout/anchor/_anchor.scss +0 -19
- package/lib/router/layout/anchorlist/_anchorlist.scss +4 -32
- package/lib/router/layout/navbar/_navbar.scss +0 -18
- package/lib/router/layout/sidenav/_sidenav.scss +22 -102
- package/lib/style/_all-typography.scss +0 -16
- package/lib/style/_m2-visual-compat.scss +120 -0
- package/lib/style/_root-variables.scss +37 -47
- package/lib/style/_theming.scss +1 -202
- package/lib/style/_variables.scss +35 -2
- package/package.json +13 -13
- package/types/dereekb-dbx-web-calendar.d.ts +40 -2
- package/types/dereekb-dbx-web-mapbox.d.ts +27 -1
- package/types/dereekb-dbx-web-table.d.ts +41 -0
- package/types/dereekb-dbx-web.d.ts +554 -110
|
@@ -69,6 +69,14 @@ interface DefaultDbxTableItemGroup<T, G = unknown> extends DbxTableItemGroup<T,
|
|
|
69
69
|
readonly groupId: typeof NO_GROUPS_ID;
|
|
70
70
|
readonly default: true;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Creates a default (ungrouped) table item group that wraps all items under the {@link NO_GROUPS_ID} identifier.
|
|
74
|
+
*
|
|
75
|
+
* Used when no explicit grouping function is provided to the table.
|
|
76
|
+
*
|
|
77
|
+
* @param items - the array of items to include in the default group
|
|
78
|
+
* @returns a default group containing all the provided items
|
|
79
|
+
*/
|
|
72
80
|
declare function defaultDbxTableItemGroup<T, G = unknown>(items: T[]): DefaultDbxTableItemGroup<T, G>;
|
|
73
81
|
type DbxTableGroupByFunction<T, G = unknown> = (items: T[]) => ObservableOrValue<DbxTableItemGroup<T, G>[]>;
|
|
74
82
|
/**
|
|
@@ -168,6 +176,13 @@ declare class DbxTableDateHeaderComponent {
|
|
|
168
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTableDateHeaderComponent, never>;
|
|
169
177
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTableDateHeaderComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
170
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* Creates a factory that produces injection component configs for rendering date column headers.
|
|
181
|
+
*
|
|
182
|
+
* The factory initializes each {@link DbxTableDateHeaderComponent} with the column's date metadata.
|
|
183
|
+
*
|
|
184
|
+
* @returns a factory function that maps a date column to its header injection config
|
|
185
|
+
*/
|
|
171
186
|
declare function dbxTableDateHeaderInjectionFactory(): DbxInjectionComponentConfigFactory<DbxTableColumn<Date>, DbxTableDateHeaderComponent>;
|
|
172
187
|
|
|
173
188
|
interface DbxTableStoreState<I, C, T, G> {
|
|
@@ -266,6 +281,14 @@ declare class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
266
281
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTableDateRangeDayDistanceInputCellInputComponent, never>;
|
|
267
282
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTableDateRangeDayDistanceInputCellInputComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
268
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Creates an injection component config for a date-range day-distance input cell.
|
|
286
|
+
*
|
|
287
|
+
* Initializes the component with the provided configuration for day distance, date bounds, and button format.
|
|
288
|
+
*
|
|
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
|
+
*/
|
|
269
292
|
declare function dbxTableDateRangeDayDistanceInputCellInput(componentConfig?: DbxTableDateRangeDayDistanceInputCellInputComponentConfig): DbxInjectionComponentConfig<DbxTableDateRangeDayDistanceInputCellInputComponent>;
|
|
270
293
|
|
|
271
294
|
declare class DbxTableDateModule {
|
|
@@ -378,7 +401,19 @@ interface DbxTableViewItemElement<T, G> {
|
|
|
378
401
|
readonly item: T;
|
|
379
402
|
}
|
|
380
403
|
type DbxTableViewElement<T, G> = DbxTableViewGroupElement<T, G> | DbxTableViewItemElement<T, G>;
|
|
404
|
+
/**
|
|
405
|
+
* Type guard that checks whether a table view element is a group element (header or footer).
|
|
406
|
+
*
|
|
407
|
+
* @param element - the table view element to check
|
|
408
|
+
* @returns `true` if the element represents a group header or footer row
|
|
409
|
+
*/
|
|
381
410
|
declare function isDbxTableViewGroupElement<T, G>(element: DbxTableViewElement<T, G>): element is DbxTableViewGroupElement<T, G>;
|
|
411
|
+
/**
|
|
412
|
+
* Type guard that checks whether a table view element is an item data element.
|
|
413
|
+
*
|
|
414
|
+
* @param element - the table view element to check
|
|
415
|
+
* @returns `true` if the element represents an item data row
|
|
416
|
+
*/
|
|
382
417
|
declare function isDbxTableViewItemElement<T, G>(element: DbxTableViewElement<T, G>): element is DbxTableViewItemElement<T, G>;
|
|
383
418
|
/**
|
|
384
419
|
* A table with fixed content
|
|
@@ -594,6 +629,12 @@ interface DbxTableReader<C, T, O, G = any> extends DbxTableReaderConfig<C, T, O,
|
|
|
594
629
|
*/
|
|
595
630
|
cellDataForColumnAndItem(column: DbxTableColumn<C>, item: T): Observable<Maybe<O>>;
|
|
596
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* Creates a {@link DbxTableReader} that provides reactive access to cell data across all columns and items in the table.
|
|
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
|
|
637
|
+
*/
|
|
597
638
|
declare function dbxTableReader<C, T, O, G = any>(config: DbxTableReaderConfig<C, T, O, G>): DbxTableReader<C, T, O, G>;
|
|
598
639
|
|
|
599
640
|
export { AbstractDbxTableColumnDirective, AbstractDbxTableGroupDirective, AbstractDbxTableItemDirective, DBX_TABLE_ACTIONS_COLUMN_NAME, DBX_TABLE_COLUMN_SIZE_PARENT_ELEMENT_REF_TOKEN, DBX_TABLE_ITEMS_COLUMN_NAME, DEFAULT_DBX_TABLE_DATE_RANGE_DAY_BUTTON_FORMAT, DEFAULT_DBX_TABLE_DATE_RANGE_DAY_DISTIANCE_INPUT_CELL_COMPONENT_CONFIG, DEFAULT_DBX_TABLE_READER_COLUMN_TRACK_BY, DbxColumnSizeColumnDirective, DbxTableActionCellComponent, DbxTableColumnFooterComponent, DbxTableColumnHeaderComponent, DbxTableColumnSizeDirective, DbxTableDateHeaderComponent, DbxTableDateModule, DbxTableDateRangeDayDistanceInputCellInputComponent, DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy, DbxTableDirective, DbxTableGroupFooterComponent, DbxTableGroupHeaderComponent, DbxTableInputCellComponent, DbxTableItemActionComponent, DbxTableItemCellComponent, DbxTableItemHeaderComponent, DbxTableModule, DbxTableStore, DbxTableSummaryEndCellComponent, DbxTableSummaryStartCellComponent, DbxTableViewComponent, NO_GROUPS_ID, dbxTableDateHeaderInjectionFactory, dbxTableDateRangeDayDistanceInputCellInput, dbxTableReader, defaultDbxTableItemGroup, isDbxTableViewGroupElement, isDbxTableViewItemElement };
|