@dereekb/dbx-form 13.11.14 → 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/fesm2022/dereekb-dbx-form-calendar.mjs +237 -201
- package/fesm2022/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2022/{dereekb-dbx-form-info.wrapper.component-DxmZz3Dw.mjs → dereekb-dbx-form-info.wrapper.component-ChSBMxgm.mjs} +5 -5
- package/fesm2022/dereekb-dbx-form-info.wrapper.component-ChSBMxgm.mjs.map +1 -0
- package/fesm2022/dereekb-dbx-form-mapbox.mjs +48 -30
- package/fesm2022/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-form-quiz.mjs +34 -33
- package/fesm2022/dereekb-dbx-form-quiz.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-form.mjs +847 -760
- package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
- package/package.json +8 -8
- package/types/dereekb-dbx-form-calendar.d.ts +82 -79
- package/types/dereekb-dbx-form-mapbox.d.ts +22 -20
- package/types/dereekb-dbx-form-quiz.d.ts +11 -14
- package/types/dereekb-dbx-form.d.ts +726 -718
- package/fesm2022/dereekb-dbx-form-info.wrapper.component-DxmZz3Dw.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.15",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.scss",
|
|
6
6
|
"*.css"
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"@angular/material-date-fns-adapter": "21.2.9",
|
|
15
15
|
"@angular/platform-browser": "21.2.11",
|
|
16
16
|
"@bobbyquantum/ngx-editor": "21.0.0",
|
|
17
|
-
"@dereekb/date": "13.11.
|
|
18
|
-
"@dereekb/dbx-core": "13.11.
|
|
19
|
-
"@dereekb/dbx-web": "13.11.
|
|
20
|
-
"@dereekb/model": "13.11.
|
|
21
|
-
"@dereekb/rxjs": "13.11.
|
|
22
|
-
"@dereekb/util": "13.11.
|
|
23
|
-
"@dereekb/vitest": "13.11.
|
|
17
|
+
"@dereekb/date": "13.11.15",
|
|
18
|
+
"@dereekb/dbx-core": "13.11.15",
|
|
19
|
+
"@dereekb/dbx-web": "13.11.15",
|
|
20
|
+
"@dereekb/model": "13.11.15",
|
|
21
|
+
"@dereekb/rxjs": "13.11.15",
|
|
22
|
+
"@dereekb/util": "13.11.15",
|
|
23
|
+
"@dereekb/vitest": "13.11.15",
|
|
24
24
|
"@ng-forge/dynamic-forms": "0.9.0-next.10",
|
|
25
25
|
"@ng-forge/dynamic-forms-material": "0.9.0-next.10",
|
|
26
26
|
"@ng-web-apis/geolocation": "^5.2.0",
|
|
@@ -190,35 +190,35 @@ interface CalendarScheduleSelectionState extends PartialCalendarScheduleSelectio
|
|
|
190
190
|
* Creates the default initial state for the calendar schedule selection store,
|
|
191
191
|
* using the current system timezone and all days of the week enabled.
|
|
192
192
|
*
|
|
193
|
-
* @returns A fresh CalendarScheduleSelectionState with default values
|
|
193
|
+
* @returns A fresh CalendarScheduleSelectionState with default values.
|
|
194
194
|
*/
|
|
195
195
|
declare function initialCalendarScheduleSelectionState(): CalendarScheduleSelectionState;
|
|
196
196
|
/**
|
|
197
197
|
* Computes the effective min and max date range by combining the filter and the explicit minMaxDateRange constraints.
|
|
198
198
|
*
|
|
199
|
-
* @param x - State containing filter and minMaxDateRange to compute from
|
|
200
|
-
* @returns A partial date range with the effective start and end boundaries
|
|
199
|
+
* @param x - State containing filter and minMaxDateRange to compute from.
|
|
200
|
+
* @returns A partial date range with the effective start and end boundaries.
|
|
201
201
|
*/
|
|
202
202
|
declare function calendarScheduleMinAndMaxDateRange(x: Pick<CalendarScheduleSelectionState, 'filter' | 'minMaxDateRange'>): Partial<DateRange>;
|
|
203
203
|
/**
|
|
204
204
|
* Returns the effective minimum date by taking the latest start date between the filter and minMaxDateRange.
|
|
205
205
|
*
|
|
206
|
-
* @param x - State containing filter and minMaxDateRange
|
|
207
|
-
* @returns The latest start date, or undefined if none
|
|
206
|
+
* @param x - State containing filter and minMaxDateRange.
|
|
207
|
+
* @returns The latest start date, or undefined if none.
|
|
208
208
|
*/
|
|
209
209
|
declare function calendarScheduleMinDate(x: Pick<CalendarScheduleSelectionState, 'filter' | 'minMaxDateRange'>): Maybe<Date>;
|
|
210
210
|
/**
|
|
211
211
|
* Returns the effective maximum date by taking the earliest end date between the filter and minMaxDateRange.
|
|
212
212
|
*
|
|
213
|
-
* @param x - State containing filter and minMaxDateRange
|
|
214
|
-
* @returns The earliest end date, or undefined if none
|
|
213
|
+
* @param x - State containing filter and minMaxDateRange.
|
|
214
|
+
* @returns The earliest end date, or undefined if none.
|
|
215
215
|
*/
|
|
216
216
|
declare function calendarScheduleMaxDate(x: Pick<CalendarScheduleSelectionState, 'filter' | 'minMaxDateRange'>): Maybe<Date>;
|
|
217
217
|
/**
|
|
218
218
|
* Returns whether the filter's start date is being used as the effective start for the selection result computation.
|
|
219
219
|
*
|
|
220
|
-
* @param x - State containing filter and computeSelectionResultRelativeToFilter
|
|
221
|
-
* @returns True if the filter start is being used for the selection result
|
|
220
|
+
* @param x - State containing filter and computeSelectionResultRelativeToFilter.
|
|
221
|
+
* @returns True if the filter start is being used for the selection result.
|
|
222
222
|
*/
|
|
223
223
|
declare function calendarScheduleStartBeingUsedFromFilter(x: Pick<CalendarScheduleSelectionState, 'filter' | 'computeSelectionResultRelativeToFilter'>): boolean | _dereekb_util.MaybeNot;
|
|
224
224
|
declare class DbxCalendarScheduleSelectionStore extends ComponentStore<CalendarScheduleSelectionState> {
|
|
@@ -329,33 +329,33 @@ declare class DbxCalendarScheduleSelectionStore extends ComponentStore<CalendarS
|
|
|
329
329
|
/**
|
|
330
330
|
* Updates the state with an initial selection (all or none) and applies it when no dates are currently toggled.
|
|
331
331
|
*
|
|
332
|
-
* @param state - The current selection state
|
|
332
|
+
* @param state - The current selection state.
|
|
333
333
|
* @param initialSelectionState - The initial selection mode ('all' or 'none')
|
|
334
|
-
* @returns The updated selection state
|
|
334
|
+
* @returns The updated selection state.
|
|
335
335
|
*/
|
|
336
336
|
declare function updateStateWithInitialSelectionState(state: CalendarScheduleSelectionState, initialSelectionState: Maybe<AllOrNoneSelection>): CalendarScheduleSelectionState;
|
|
337
337
|
/**
|
|
338
338
|
* Updates the computeSelectionResultRelativeToFilter flag and recalculates the state if the value changed.
|
|
339
339
|
*
|
|
340
|
-
* @param currentState - The current selection state
|
|
341
|
-
* @param computeSelectionResultRelativeToFilter - Whether to compute results relative to the filter
|
|
342
|
-
* @returns The updated selection state
|
|
340
|
+
* @param currentState - The current selection state.
|
|
341
|
+
* @param computeSelectionResultRelativeToFilter - Whether to compute results relative to the filter.
|
|
342
|
+
* @returns The updated selection state.
|
|
343
343
|
*/
|
|
344
344
|
declare function updateStateWithComputeSelectionResultRelativeToFilter(currentState: CalendarScheduleSelectionState, computeSelectionResultRelativeToFilter: Maybe<boolean>): CalendarScheduleSelectionState;
|
|
345
345
|
/**
|
|
346
346
|
* Updates the state with date exclusions, converting input dates/ranges to cell indexes and reapplying the filter.
|
|
347
347
|
*
|
|
348
|
-
* @param state - The current selection state
|
|
349
|
-
* @param inputExclusions - Dates, date ranges, or cell indexes to exclude
|
|
350
|
-
* @returns The updated selection state with exclusions applied
|
|
348
|
+
* @param state - The current selection state.
|
|
349
|
+
* @param inputExclusions - Dates, date ranges, or cell indexes to exclude.
|
|
350
|
+
* @returns The updated selection state with exclusions applied.
|
|
351
351
|
*/
|
|
352
352
|
declare function updateStateWithExclusions(state: CalendarScheduleSelectionState, inputExclusions: Maybe<ArrayOrValue<DateOrDateRangeOrDateCellIndexOrDateCellRange>>): CalendarScheduleSelectionState;
|
|
353
353
|
/**
|
|
354
354
|
* Sets the min/max date range constraint on the state, normalizing start to startOfDay and end to endOfDay.
|
|
355
355
|
*
|
|
356
|
-
* @param state - The current selection state
|
|
357
|
-
* @param minMaxDateRange - The min/max boundary dates to enforce
|
|
358
|
-
* @returns The updated selection state with the boundary applied
|
|
356
|
+
* @param state - The current selection state.
|
|
357
|
+
* @param minMaxDateRange - The min/max boundary dates to enforce.
|
|
358
|
+
* @returns The updated selection state with the boundary applied.
|
|
359
359
|
*/
|
|
360
360
|
declare function updateStateWithMinMaxDateRange(state: CalendarScheduleSelectionState, minMaxDateRange: Maybe<Partial<DateRange>>): CalendarScheduleSelectionState;
|
|
361
361
|
/**
|
|
@@ -370,58 +370,58 @@ declare function updateStateWithMinMaxDateRange(state: CalendarScheduleSelection
|
|
|
370
370
|
* Applies a date cell schedule filter to the selection state, computing the enabled day function
|
|
371
371
|
* from the filter, exclusions, and min/max date range constraints.
|
|
372
372
|
*
|
|
373
|
-
* @param currentState - The current selection state
|
|
374
|
-
* @param inputFilter - The filter configuration to apply
|
|
375
|
-
* @returns The updated selection state with the filter applied
|
|
373
|
+
* @param currentState - The current selection state.
|
|
374
|
+
* @param inputFilter - The filter configuration to apply.
|
|
375
|
+
* @returns The updated selection state with the filter applied.
|
|
376
376
|
*/
|
|
377
377
|
declare function updateStateWithFilter(currentState: CalendarScheduleSelectionState, inputFilter: Maybe<DateCellScheduleDateFilterConfig>): CalendarScheduleSelectionState;
|
|
378
378
|
/**
|
|
379
379
|
* Updates the output timezone and transforms the current selection value to reflect the new timezone.
|
|
380
380
|
*
|
|
381
|
-
* @param state - The current selection state
|
|
382
|
-
* @param timezone - The target timezone string
|
|
383
|
-
* @returns The updated selection state with timezone-adjusted values
|
|
381
|
+
* @param state - The current selection state.
|
|
382
|
+
* @param timezone - The target timezone string.
|
|
383
|
+
* @returns The updated selection state with timezone-adjusted values.
|
|
384
384
|
*/
|
|
385
385
|
declare function updateStateWithTimezoneValue(state: CalendarScheduleSelectionState, timezone: Maybe<TimezoneString>): CalendarScheduleSelectionState;
|
|
386
386
|
/**
|
|
387
387
|
* Updates the state from an external date cell schedule range value, converting timezone-aware inputs
|
|
388
388
|
* to system time and synchronizing the internal selection indexes.
|
|
389
389
|
*
|
|
390
|
-
* @param state - The current selection state
|
|
391
|
-
* @param inputChange - The date cell schedule range to apply
|
|
392
|
-
* @returns The updated selection state
|
|
390
|
+
* @param state - The current selection state.
|
|
391
|
+
* @param inputChange - The date cell schedule range to apply.
|
|
392
|
+
* @returns The updated selection state.
|
|
393
393
|
*/
|
|
394
394
|
declare function updateStateWithDateCellScheduleRangeValue(state: CalendarScheduleSelectionState, inputChange: Maybe<FullDateCellScheduleRangeInputDateRange>): CalendarScheduleSelectionState;
|
|
395
395
|
/**
|
|
396
396
|
* Updates the default schedule day codes (used when no explicit schedule days are set) and recalculates allowed days.
|
|
397
397
|
*
|
|
398
|
-
* @param state - The current selection state
|
|
399
|
-
* @param change - The new default schedule day codes
|
|
400
|
-
* @returns The updated selection state
|
|
398
|
+
* @param state - The current selection state.
|
|
399
|
+
* @param change - The new default schedule day codes.
|
|
400
|
+
* @returns The updated selection state.
|
|
401
401
|
*/
|
|
402
402
|
declare function updateStateWithChangedDefaultScheduleDays(state: CalendarScheduleSelectionState, change: Maybe<Iterable<DateCellScheduleDayCode>>): CalendarScheduleSelectionState;
|
|
403
403
|
/**
|
|
404
404
|
* Updates the explicit schedule day codes override and recalculates allowed days of the week.
|
|
405
405
|
*
|
|
406
|
-
* @param state - The current selection state
|
|
407
|
-
* @param change - The new schedule day codes, or null/undefined to clear the override
|
|
408
|
-
* @returns The updated selection state
|
|
406
|
+
* @param state - The current selection state.
|
|
407
|
+
* @param change - The new schedule day codes, or null/undefined to clear the override.
|
|
408
|
+
* @returns The updated selection state.
|
|
409
409
|
*/
|
|
410
410
|
declare function updateStateWithChangedScheduleDays(state: CalendarScheduleSelectionState, change: Maybe<Iterable<DateCellScheduleDayCode>>): CalendarScheduleSelectionState;
|
|
411
411
|
/**
|
|
412
412
|
* Switches between single and multiple selection mode, trimming the selection to a single value when switching to single mode.
|
|
413
413
|
*
|
|
414
|
-
* @param state - The current selection state
|
|
415
|
-
* @param selectionMode - The new selection mode
|
|
416
|
-
* @returns The updated selection state
|
|
414
|
+
* @param state - The current selection state.
|
|
415
|
+
* @param selectionMode - The new selection mode.
|
|
416
|
+
* @returns The updated selection state.
|
|
417
417
|
*/
|
|
418
418
|
declare function updateStateWithSelectionMode(state: CalendarScheduleSelectionState, selectionMode: DbxCalendarScheduleSelectionStoreSelectionMode): CalendarScheduleSelectionState;
|
|
419
419
|
/**
|
|
420
420
|
* Finalizes a schedule days change by recalculating allowed days of the week and updating toggled indexes accordingly.
|
|
421
421
|
*
|
|
422
|
-
* @param previousState - The state before the schedule days change
|
|
423
|
-
* @param nextState - The state with updated schedule day codes
|
|
424
|
-
* @returns The finalized selection state with recalculated allowed days and toggled indexes
|
|
422
|
+
* @param previousState - The state before the schedule days change.
|
|
423
|
+
* @param nextState - The state with updated schedule day codes.
|
|
424
|
+
* @returns The finalized selection state with recalculated allowed days and toggled indexes.
|
|
425
425
|
*/
|
|
426
426
|
declare function finalizeUpdateStateWithChangedScheduleDays(previousState: CalendarScheduleSelectionState, nextState: CalendarScheduleSelectionState): CalendarScheduleSelectionState;
|
|
427
427
|
interface CalendarScheduleSelectionStateDatesChange {
|
|
@@ -450,46 +450,46 @@ interface CalendarScheduleSelectionStateDatesChange {
|
|
|
450
450
|
* Applies date changes (toggle, add, remove, set, selectAll, or reset) to the calendar selection state,
|
|
451
451
|
* updating toggled indexes and input start/end accordingly.
|
|
452
452
|
*
|
|
453
|
-
* @param state - The current selection state
|
|
454
|
-
* @param change - The date changes to apply
|
|
455
|
-
* @returns The updated selection state
|
|
453
|
+
* @param state - The current selection state.
|
|
454
|
+
* @param change - The date changes to apply.
|
|
455
|
+
* @returns The updated selection state.
|
|
456
456
|
*/
|
|
457
457
|
declare function updateStateWithChangedDates(state: CalendarScheduleSelectionState, change: CalendarScheduleSelectionStateDatesChange): CalendarScheduleSelectionState;
|
|
458
458
|
/**
|
|
459
459
|
* Clears all date selections from the state, retaining other configuration like schedule days and filter.
|
|
460
460
|
*
|
|
461
|
-
* @param state - The current selection state
|
|
462
|
-
* @returns The state with all selections cleared
|
|
461
|
+
* @param state - The current selection state.
|
|
462
|
+
* @returns The state with all selections cleared.
|
|
463
463
|
*/
|
|
464
464
|
declare function noSelectionCalendarScheduleSelectionState(state: CalendarScheduleSelectionState): CalendarScheduleSelectionState;
|
|
465
465
|
/**
|
|
466
466
|
* Updates the selection state with a new start/end date range, retaining toggled indexes within the new range bounds.
|
|
467
467
|
*
|
|
468
|
-
* @param state - The current selection state
|
|
469
|
-
* @param change - The new input start and end dates
|
|
470
|
-
* @returns The updated selection state
|
|
468
|
+
* @param state - The current selection state.
|
|
469
|
+
* @param change - The new input start and end dates.
|
|
470
|
+
* @returns The updated selection state.
|
|
471
471
|
*/
|
|
472
472
|
declare function updateStateWithChangedRange(state: CalendarScheduleSelectionState, change: CalendarScheduleSelectionInputDateRange): CalendarScheduleSelectionState;
|
|
473
473
|
/**
|
|
474
474
|
* Finalizes a partially-built state by recomputing the isEnabledDay function and the current selection value.
|
|
475
475
|
*
|
|
476
|
-
* @param nextState - The partially-built selection state to finalize
|
|
477
|
-
* @returns The finalized selection state
|
|
476
|
+
* @param nextState - The partially-built selection state to finalize.
|
|
477
|
+
* @returns The finalized selection state.
|
|
478
478
|
*/
|
|
479
479
|
declare function finalizeNewCalendarScheduleSelectionState(nextState: Building<CalendarScheduleSelectionState>): CalendarScheduleSelectionState;
|
|
480
480
|
/**
|
|
481
481
|
* Builds a decision function that determines whether a given day index is enabled (selected) in the current state.
|
|
482
482
|
*
|
|
483
|
-
* @param state - The selection state to derive the enabled-day function from
|
|
484
|
-
* @returns
|
|
483
|
+
* @param state - The selection state to derive the enabled-day function from.
|
|
484
|
+
* @returns Returns true if the given day is enabled/selected.
|
|
485
485
|
*/
|
|
486
486
|
declare function isEnabledDayInCalendarScheduleSelectionState(state: CalendarScheduleSelectionState): DecisionFunction<DateCellTimingRelativeIndexFactoryInput>;
|
|
487
487
|
/**
|
|
488
488
|
* Computes the output DateCellScheduleDateRange value from the current selection state,
|
|
489
489
|
* applying timezone offsets and filter-relative computations as needed.
|
|
490
490
|
*
|
|
491
|
-
* @param state - The current selection state to compute from
|
|
492
|
-
* @returns The computed selection value, or null if nothing is selected
|
|
491
|
+
* @param state - The current selection state to compute from.
|
|
492
|
+
* @returns The computed selection value, or null if nothing is selected.
|
|
493
493
|
*/
|
|
494
494
|
declare function computeScheduleSelectionValue(state: CalendarScheduleSelectionState): Maybe<CalendarScheduleSelectionValue>;
|
|
495
495
|
/**
|
|
@@ -509,22 +509,22 @@ interface CalendarScheduleSelectionRangeAndExclusion extends DateRange {
|
|
|
509
509
|
* Computes the selected date range with its corresponding cell range and all excluded day indexes.
|
|
510
510
|
* Returns null if no days are selected.
|
|
511
511
|
*
|
|
512
|
-
* @param state - The current selection state
|
|
513
|
-
* @returns The range and exclusion data, or null if nothing is selected
|
|
512
|
+
* @param state - The current selection state.
|
|
513
|
+
* @returns The range and exclusion data, or null if nothing is selected.
|
|
514
514
|
*/
|
|
515
515
|
declare function computeScheduleSelectionRangeAndExclusion(state: CalendarScheduleSelectionState): Maybe<CalendarScheduleSelectionRangeAndExclusion>;
|
|
516
516
|
/**
|
|
517
517
|
* Computes the selected date range (start and end dates) from the current selection state.
|
|
518
518
|
*
|
|
519
|
-
* @param state - The current selection state
|
|
520
|
-
* @returns The selected date range, or undefined if nothing is selected
|
|
519
|
+
* @param state - The current selection state.
|
|
520
|
+
* @returns The selected date range, or undefined if nothing is selected.
|
|
521
521
|
*/
|
|
522
522
|
declare function computeCalendarScheduleSelectionRange(state: CalendarScheduleSelectionState): Maybe<DateRange>;
|
|
523
523
|
/**
|
|
524
524
|
* Computes the date cell index range (i, to) that spans all selected and toggled days in the current state.
|
|
525
525
|
*
|
|
526
|
-
* @param state - The current selection state
|
|
527
|
-
* @returns The cell range spanning all selected days, or undefined if nothing is selected
|
|
526
|
+
* @param state - The current selection state.
|
|
527
|
+
* @returns The cell range spanning all selected days, or undefined if nothing is selected.
|
|
528
528
|
*/
|
|
529
529
|
declare function computeCalendarScheduleSelectionDateCellRange(state: CalendarScheduleSelectionState): Maybe<DateCellRangeWithRange>;
|
|
530
530
|
|
|
@@ -649,9 +649,10 @@ interface DateScheduleRangeFieldConfig extends Omit<LabeledBaseFieldConfig, 'key
|
|
|
649
649
|
/**
|
|
650
650
|
* Creates a Formly field configuration for a date schedule range picker with calendar-based selection.
|
|
651
651
|
*
|
|
652
|
+
* @param config - Optional schedule range field configuration overrides.
|
|
653
|
+
* @returns A validated Formly field configuration for date schedule range selection.
|
|
654
|
+
*
|
|
652
655
|
* @deprecated Use dbxForgeDateScheduleRangeField() from the forge API instead.
|
|
653
|
-
* @param config - Optional schedule range field configuration overrides
|
|
654
|
-
* @returns A validated Formly field configuration for date schedule range selection
|
|
655
656
|
*/
|
|
656
657
|
declare function dateScheduleRangeField(config?: DateScheduleRangeFieldConfig): FormlyFieldConfig;
|
|
657
658
|
|
|
@@ -711,8 +712,8 @@ declare class DbxForgeCalendarDateScheduleRangeFieldComponent {
|
|
|
711
712
|
private readonly _defaultWeekSub;
|
|
712
713
|
private readonly _filterSub;
|
|
713
714
|
private readonly _exclusionsSub;
|
|
714
|
-
readonly
|
|
715
|
-
readonly
|
|
715
|
+
readonly fieldValueSignal: Signal<unknown>;
|
|
716
|
+
readonly isDisabledSignal: Signal<boolean>;
|
|
716
717
|
readonly isRequiredSignal: Signal<boolean>;
|
|
717
718
|
readonly labelTextSignal: Signal<Maybe<string>>;
|
|
718
719
|
readonly descriptionSignal: Signal<Maybe<string>>;
|
|
@@ -734,9 +735,9 @@ declare class DbxForgeCalendarDateScheduleRangeFieldComponent {
|
|
|
734
735
|
* Uses the standard buildValueFieldInputs to bridge the ng-forge field definition
|
|
735
736
|
* to the component's input signals.
|
|
736
737
|
*
|
|
737
|
-
* @param fieldDef - Field definition configuration
|
|
738
|
-
* @param fieldDef.key - Form model key for the field
|
|
739
|
-
* @returns Signal containing a Record of input names to values for ngComponentOutlet
|
|
738
|
+
* @param fieldDef - Field definition configuration.
|
|
739
|
+
* @param fieldDef.key - Form model key for the field.
|
|
740
|
+
* @returns Signal containing a Record of input names to values for ngComponentOutlet.
|
|
740
741
|
*/
|
|
741
742
|
declare function calendarDateScheduleRangeFieldMapper(fieldDef: {
|
|
742
743
|
key: string;
|
|
@@ -816,8 +817,8 @@ interface DbxForgeCalendarDateScheduleRangeFieldConfig extends Pick<CalendarSche
|
|
|
816
817
|
*
|
|
817
818
|
* This is the forge equivalent of {@link dateScheduleRangeField}.
|
|
818
819
|
*
|
|
819
|
-
* @param config - Optional schedule range field configuration overrides
|
|
820
|
-
* @returns A validated forge field definition for date schedule range selection
|
|
820
|
+
* @param config - Optional schedule range field configuration overrides.
|
|
821
|
+
* @returns A validated forge field definition for date schedule range selection.
|
|
821
822
|
*/
|
|
822
823
|
declare function dbxForgeDateScheduleRangeField(config?: DbxForgeCalendarDateScheduleRangeFieldConfig): DbxForgeCalendarDateScheduleRangeFieldDef;
|
|
823
824
|
|
|
@@ -825,15 +826,17 @@ declare function dbxForgeDateScheduleRangeField(config?: DbxForgeCalendarDateSch
|
|
|
825
826
|
* Creates form fields for selecting which days of the week are enabled in a schedule selection calendar,
|
|
826
827
|
* wrapped in a responsive flex layout.
|
|
827
828
|
*
|
|
829
|
+
* @returns Array of Formly field configs with toggle fields for each day of the week.
|
|
830
|
+
*
|
|
828
831
|
* @deprecated Use dbxScheduleSelectionCalendarDateDaysForgeFormFields() instead.
|
|
829
|
-
* @returns An array of Formly field configs with toggle fields for each day of the week
|
|
830
832
|
*/
|
|
831
833
|
declare function dbxScheduleSelectionCalendarDateDaysFormFields(): _ngx_formly_core.FormlyFieldConfig<i13.DbxFlexWrapperConfig>[];
|
|
832
834
|
/**
|
|
833
835
|
* Creates an array of toggle field configs, one for each day of the week, keyed by lowercase day name.
|
|
834
836
|
*
|
|
837
|
+
* @returns The toggle Formly field configs for each day of the week.
|
|
838
|
+
*
|
|
835
839
|
* @deprecated Use forge toggle fields directly.
|
|
836
|
-
* @returns An array of toggle Formly field configs for each day of the week
|
|
837
840
|
*/
|
|
838
841
|
declare function dbxScheduleSelectionCalendarDateDaysFormDayFields(): _ngx_formly_core.FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
839
842
|
[additionalProperties: string]: any;
|
|
@@ -855,13 +858,13 @@ declare class DbxScheduleSelectionCalendarDateDaysFormComponent extends Abstract
|
|
|
855
858
|
*
|
|
856
859
|
* This is the forge equivalent of {@link dbxScheduleSelectionCalendarDateDaysFormFields}.
|
|
857
860
|
*
|
|
858
|
-
* @returns A FormConfig with toggle fields for each day of the week
|
|
861
|
+
* @returns A FormConfig with toggle fields for each day of the week.
|
|
859
862
|
*/
|
|
860
863
|
declare function dbxScheduleSelectionCalendarDateDaysForgeFormFields(): FormConfig;
|
|
861
864
|
/**
|
|
862
865
|
* Creates an array of forge toggle field definitions, one for each day of the week, keyed by lowercase day name.
|
|
863
866
|
*
|
|
864
|
-
* @returns
|
|
867
|
+
* @returns The forge toggle field definitions for each day of the week.
|
|
865
868
|
*/
|
|
866
869
|
declare function dbxScheduleSelectionCalendarDateDaysForgeFormDayFields(): FieldDef<unknown>[];
|
|
867
870
|
|
|
@@ -905,8 +908,8 @@ type DbxScheduleSelectionCalendarBeforeMonthViewRenderFunctionFactory = (state:
|
|
|
905
908
|
* Creates a factory that produces a beforeMonthViewRender handler for the schedule selection calendar.
|
|
906
909
|
* The handler applies CSS classes and metadata to each day cell based on the current selection state.
|
|
907
910
|
*
|
|
908
|
-
* @param inputModifyFn - Optional function to further customize each day cell after default processing
|
|
909
|
-
* @returns A factory function that accepts a state observable and produces a render handler
|
|
911
|
+
* @param inputModifyFn - Optional function to further customize each day cell after default processing.
|
|
912
|
+
* @returns A factory function that accepts a state observable and produces a render handler.
|
|
910
913
|
*/
|
|
911
914
|
declare function dbxScheduleSelectionCalendarBeforeMonthViewRenderFactory(inputModifyFn?: Maybe<DbxScheduleSelectionCalendarBeforeMonthViewRenderModifyDayFunction>): DbxScheduleSelectionCalendarBeforeMonthViewRenderFunctionFactory;
|
|
912
915
|
declare class DbxScheduleSelectionCalendarComponent<T> implements OnInit {
|
|
@@ -985,7 +988,7 @@ declare class DbxScheduleSelectionCalendarDateRangeComponent implements OnInit {
|
|
|
985
988
|
readonly isCustomizedSignal: i0.Signal<boolean>;
|
|
986
989
|
readonly showCustomLabelSignal: i0.Signal<boolean>;
|
|
987
990
|
readonly currentErrorMessageSignal: i0.Signal<string | undefined>;
|
|
988
|
-
readonly datePickerFilterSignal: i0.Signal<DateFilterFn<Date
|
|
991
|
+
readonly datePickerFilterSignal: i0.Signal<DateFilterFn<Date> | (() => boolean)>;
|
|
989
992
|
protected readonly _requiredUpdateValidatorsEffect: i0.EffectRef;
|
|
990
993
|
ngOnInit(): void;
|
|
991
994
|
clickedDateRangeInput(): void;
|
|
@@ -1023,8 +1026,8 @@ declare class DbxScheduleSelectionCalendarCellComponent {
|
|
|
1023
1026
|
|
|
1024
1027
|
declare const DEFAULT_SCHEDULE_SELECTION_CALENDAR_DATE_POPOVER_KEY = "calendarselection";
|
|
1025
1028
|
interface DbxScheduleSelectionCalendarDatePopoverConfig {
|
|
1026
|
-
origin: ElementRef;
|
|
1027
|
-
injector: Injector;
|
|
1029
|
+
readonly origin: ElementRef;
|
|
1030
|
+
readonly injector: Injector;
|
|
1028
1031
|
}
|
|
1029
1032
|
declare class DbxScheduleSelectionCalendarDatePopoverComponent extends AbstractPopoverDirective<void> {
|
|
1030
1033
|
static openPopover(popoverService: DbxPopoverService, { origin, injector }: DbxScheduleSelectionCalendarDatePopoverConfig, popoverKey?: DbxPopoverKey): NgPopoverRef<any, number>;
|
|
@@ -131,9 +131,10 @@ interface MapboxLatLngFieldConfig extends Omit<LabeledBaseFieldConfig, 'key'>, D
|
|
|
131
131
|
/**
|
|
132
132
|
* Creates a Formly field configuration for a Mapbox-powered latitude/longitude picker with optional map display.
|
|
133
133
|
*
|
|
134
|
+
* @param config - Optional field configuration overrides.
|
|
135
|
+
* @returns A validated Formly field configuration for the Mapbox lat/lng picker.
|
|
136
|
+
*
|
|
134
137
|
* @deprecated Use dbxForgeMapboxLatLngField() from the forge API instead.
|
|
135
|
-
* @param config - Optional field configuration overrides
|
|
136
|
-
* @returns A validated Formly field configuration for the Mapbox lat/lng picker
|
|
137
138
|
*/
|
|
138
139
|
declare function mapboxLatLngField(config?: MapboxLatLngFieldConfig): FormlyFieldConfig;
|
|
139
140
|
|
|
@@ -214,8 +215,8 @@ declare class DbxForgeMapboxLatLngFieldComponent {
|
|
|
214
215
|
readonly compactClass$: Observable<string>;
|
|
215
216
|
private readonly _useCurrentLocationDisabled;
|
|
216
217
|
readonly useCurrentLocationDisabled$: Observable<boolean>;
|
|
217
|
-
readonly
|
|
218
|
-
readonly
|
|
218
|
+
readonly fieldValueSignal: Signal<unknown>;
|
|
219
|
+
readonly isDisabledSignal: Signal<boolean>;
|
|
219
220
|
readonly isReadonlyOrDisabledSignal: Signal<any>;
|
|
220
221
|
readonly showMapSignal: Signal<boolean>;
|
|
221
222
|
readonly selectLocationOnMapDragSignal: Signal<boolean>;
|
|
@@ -245,9 +246,9 @@ declare class DbxForgeMapboxLatLngFieldComponent {
|
|
|
245
246
|
/**
|
|
246
247
|
* Custom mapper for the forge mapbox lat/lng field.
|
|
247
248
|
*
|
|
248
|
-
* @param fieldDef - Field definition configuration
|
|
249
|
-
* @param fieldDef.key - Form model key for the field
|
|
250
|
-
* @returns Signal containing a Record of input names to values for ngComponentOutlet
|
|
249
|
+
* @param fieldDef - Field definition configuration.
|
|
250
|
+
* @param fieldDef.key - Form model key for the field.
|
|
251
|
+
* @returns Signal containing a Record of input names to values for ngComponentOutlet.
|
|
251
252
|
*/
|
|
252
253
|
declare function mapboxLatLngFieldMapper(fieldDef: {
|
|
253
254
|
key: string;
|
|
@@ -287,8 +288,8 @@ interface DbxForgeMapboxLatLngFieldConfig {
|
|
|
287
288
|
*
|
|
288
289
|
* This is the forge equivalent of {@link mapboxLatLngField}.
|
|
289
290
|
*
|
|
290
|
-
* @param config - Optional field configuration overrides
|
|
291
|
-
* @returns A validated forge field definition for the Mapbox lat/lng picker
|
|
291
|
+
* @param config - Optional field configuration overrides.
|
|
292
|
+
* @returns A validated forge field definition for the Mapbox lat/lng picker.
|
|
292
293
|
*/
|
|
293
294
|
declare function dbxForgeMapboxLatLngField(config?: DbxForgeMapboxLatLngFieldConfig): DbxForgeMapboxLatLngFieldDef;
|
|
294
295
|
|
|
@@ -371,9 +372,10 @@ interface MapboxZoomFieldConfig extends Omit<LabeledBaseFieldConfig, 'key'>, Des
|
|
|
371
372
|
/**
|
|
372
373
|
* Creates a Formly field configuration for a Mapbox-powered zoom level picker with optional map preview.
|
|
373
374
|
*
|
|
375
|
+
* @param config - Optional field configuration overrides.
|
|
376
|
+
* @returns A validated Formly field configuration for the Mapbox zoom picker.
|
|
377
|
+
*
|
|
374
378
|
* @deprecated Use dbxForgeMapboxZoomField() from the forge API instead.
|
|
375
|
-
* @param config - Optional field configuration overrides
|
|
376
|
-
* @returns A validated Formly field configuration for the Mapbox zoom picker
|
|
377
379
|
*/
|
|
378
380
|
declare function mapboxZoomField(config?: MapboxZoomFieldConfig): FormlyFieldConfig;
|
|
379
381
|
|
|
@@ -422,15 +424,15 @@ declare class DbxForgeMapboxZoomFieldComponent implements OnDestroy {
|
|
|
422
424
|
readonly meta: InputSignal<FieldMeta | undefined>;
|
|
423
425
|
readonly validationMessages: InputSignal<ValidationMessages | undefined>;
|
|
424
426
|
readonly defaultValidationMessages: InputSignal<ValidationMessages | undefined>;
|
|
425
|
-
readonly numberCtrl: FormControl<number
|
|
427
|
+
readonly numberCtrl: FormControl<Maybe<number>>;
|
|
426
428
|
readonly placeholderText = "";
|
|
427
429
|
private _undoZoomLimit;
|
|
428
430
|
readonly compactClass$: Observable<string>;
|
|
429
431
|
readonly compactClassSignal: Signal<string>;
|
|
430
432
|
private readonly _sub;
|
|
431
433
|
private readonly _center;
|
|
432
|
-
readonly
|
|
433
|
-
readonly
|
|
434
|
+
readonly fieldValueSignal: Signal<unknown>;
|
|
435
|
+
readonly isDisabledSignal: Signal<boolean>;
|
|
434
436
|
readonly isReadonlyOrDisabledSignal: Signal<any>;
|
|
435
437
|
readonly showMapSignal: Signal<boolean>;
|
|
436
438
|
readonly lockMapToZoomLevelsSignal: Signal<boolean>;
|
|
@@ -451,9 +453,9 @@ declare class DbxForgeMapboxZoomFieldComponent implements OnDestroy {
|
|
|
451
453
|
/**
|
|
452
454
|
* Custom mapper for the forge mapbox zoom field.
|
|
453
455
|
*
|
|
454
|
-
* @param fieldDef - Field definition configuration
|
|
455
|
-
* @param fieldDef.key - Form model key for the field
|
|
456
|
-
* @returns Signal containing a Record of input names to values for ngComponentOutlet
|
|
456
|
+
* @param fieldDef - Field definition configuration.
|
|
457
|
+
* @param fieldDef.key - Form model key for the field.
|
|
458
|
+
* @returns Signal containing a Record of input names to values for ngComponentOutlet.
|
|
457
459
|
*/
|
|
458
460
|
declare function mapboxZoomFieldMapper(fieldDef: {
|
|
459
461
|
key: string;
|
|
@@ -489,8 +491,8 @@ interface DbxForgeMapboxZoomFieldConfig {
|
|
|
489
491
|
*
|
|
490
492
|
* This is the forge equivalent of {@link mapboxZoomField}.
|
|
491
493
|
*
|
|
492
|
-
* @param config - Optional field configuration overrides
|
|
493
|
-
* @returns A validated forge field definition for the Mapbox zoom picker
|
|
494
|
+
* @param config - Optional field configuration overrides.
|
|
495
|
+
* @returns A validated forge field definition for the Mapbox zoom picker.
|
|
494
496
|
*/
|
|
495
497
|
declare function dbxForgeMapboxZoomField(config?: DbxForgeMapboxZoomFieldConfig): DbxForgeMapboxZoomFieldDef;
|
|
496
498
|
|
|
@@ -512,7 +514,7 @@ declare const DBX_FORGE_MAPBOX_FIELD_TYPES: FieldTypeDefinition[];
|
|
|
512
514
|
*
|
|
513
515
|
* Add this to your app's providers alongside provideDbxForgeFormFieldDeclarations().
|
|
514
516
|
*
|
|
515
|
-
* @returns
|
|
517
|
+
* @returns The providers that register the mapbox forge field types with ng-forge.
|
|
516
518
|
*/
|
|
517
519
|
declare function provideDbxForgeMapboxFieldDeclarations(): i0.EnvironmentProviders & {
|
|
518
520
|
__fieldDefs?: any;
|
|
@@ -216,8 +216,9 @@ declare class QuizStore extends ComponentStore<QuizStoreState> {
|
|
|
216
216
|
/**
|
|
217
217
|
* Returns a reactive observable of the answer for a given question, looked up by id, index, or the current question.
|
|
218
218
|
*
|
|
219
|
-
* @param lookupInput - Lookup criteria specifying which question's answer to retrieve
|
|
220
|
-
* @
|
|
219
|
+
* @param lookupInput - Lookup criteria specifying which question's answer to retrieve.
|
|
220
|
+
* @param lookupInput - Lookup criteria specifying which question's answer to retrieve.
|
|
221
|
+
* @returns An observable that emits the current answer for the specified question, or undefined if not answered.
|
|
221
222
|
*
|
|
222
223
|
* @example
|
|
223
224
|
* ```ts
|
|
@@ -226,8 +227,6 @@ declare class QuizStore extends ComponentStore<QuizStoreState> {
|
|
|
226
227
|
* // By question id:
|
|
227
228
|
* store.answerForQuestion({ id: 'q1' }).subscribe(answer => console.log(answer));
|
|
228
229
|
* ```
|
|
229
|
-
*
|
|
230
|
-
* @param lookupInput - Lookup criteria specifying which question's answer to retrieve
|
|
231
230
|
*/
|
|
232
231
|
answerForQuestion(lookupInput: ObservableOrValue<QuizStoreAnswerLookupInput>): Observable<Maybe<QuizAnswer>>;
|
|
233
232
|
readonly startQuiz: () => void;
|
|
@@ -286,11 +285,11 @@ declare abstract class QuizQuestionAccessor<T = unknown> {
|
|
|
286
285
|
/**
|
|
287
286
|
* Provides QuizQuestionAccessor bound to the current question in QuizStore.
|
|
288
287
|
*
|
|
289
|
-
* @returns An Angular provider that binds QuizQuestionAccessor to the current quiz question
|
|
288
|
+
* @returns An Angular provider that binds QuizQuestionAccessor to the current quiz question.
|
|
290
289
|
*
|
|
291
290
|
* @usage
|
|
292
291
|
* ```typescript
|
|
293
|
-
* @Component({
|
|
292
|
+
* @Component ({
|
|
294
293
|
* providers: [QuizStore, provideCurrentQuestionQuizQuestionAccessor()]
|
|
295
294
|
* })
|
|
296
295
|
* ```
|
|
@@ -650,31 +649,29 @@ declare class DbxQuizScoreComponent {
|
|
|
650
649
|
/**
|
|
651
650
|
* Creates a Likert scale question config with agreement prompt (Strongly Disagree to Strongly Agree).
|
|
652
651
|
*
|
|
653
|
-
* @param text - The statement to rate agreement on
|
|
654
|
-
* @
|
|
652
|
+
* @param text - The statement to rate agreement on.
|
|
653
|
+
* @param text - The statement to rate agreement on.
|
|
654
|
+
* @returns A quiz question config with an agreement-based prompt and guidance text.
|
|
655
655
|
*
|
|
656
656
|
* @example
|
|
657
657
|
* ```ts
|
|
658
658
|
* instance.config.set(quizAgreementPrompt('I feel confident leading under pressure.'));
|
|
659
659
|
* // { prompt: 'Please rate how much you agree...', text: '...', guidance: '1 = Strongly Disagree, 5 = Strongly Agree' }
|
|
660
660
|
* ```
|
|
661
|
-
*
|
|
662
|
-
* @param text - The statement to rate agreement on
|
|
663
661
|
*/
|
|
664
662
|
declare function quizAgreementPrompt(text: string): QuizQuestionTextComponentConfig;
|
|
665
663
|
/**
|
|
666
664
|
* Creates a Likert scale question config with frequency prompt (Never to Always).
|
|
667
665
|
*
|
|
668
|
-
* @param text - The statement to rate frequency on
|
|
669
|
-
* @
|
|
666
|
+
* @param text - The statement to rate frequency on.
|
|
667
|
+
* @param text - The statement to rate frequency on.
|
|
668
|
+
* @returns A quiz question config with a frequency-based prompt and guidance text.
|
|
670
669
|
*
|
|
671
670
|
* @example
|
|
672
671
|
* ```ts
|
|
673
672
|
* instance.config.set(quizFrequencyPrompt('I break vague direction into first steps.'));
|
|
674
673
|
* // { prompt: 'Please rate how much you agree...', text: '...', guidance: '1 = Never, 5 = Always' }
|
|
675
674
|
* ```
|
|
676
|
-
*
|
|
677
|
-
* @param text - The statement to rate frequency on
|
|
678
675
|
*/
|
|
679
676
|
declare function quizFrequencyPrompt(text: string): QuizQuestionTextComponentConfig;
|
|
680
677
|
|