@dereekb/dbx-core 13.9.0 → 13.10.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.
|
@@ -112,38 +112,61 @@ type DbxActionWorkOrWorkProgress = boolean | DbxActionWorkProgress;
|
|
|
112
112
|
declare function dbxActionWorkProgress(workOrWorkProgress: Maybe<DbxActionWorkOrWorkProgress>[], progressPercent?: Maybe<DbxActionWorkProgress>): number | boolean;
|
|
113
113
|
/**
|
|
114
114
|
* Used by ActionContextState to denote what state the action is in.
|
|
115
|
+
*
|
|
116
|
+
* @dbxActionStateEnum
|
|
115
117
|
*/
|
|
116
118
|
declare enum DbxActionState {
|
|
117
119
|
/**
|
|
118
120
|
* No action in progress. Waiting for the trigger.
|
|
121
|
+
*
|
|
122
|
+
* @dbxActionStateTransitionsFrom RESOLVED, REJECTED, DISABLED
|
|
123
|
+
* @dbxActionStateTransitionsTo TRIGGERED, DISABLED
|
|
119
124
|
*/
|
|
120
125
|
IDLE = "idle",
|
|
121
126
|
/**
|
|
122
127
|
* Idle state that can be set to show that the source is not yet ready.
|
|
128
|
+
*
|
|
129
|
+
* @dbxActionStateTransitionsFrom IDLE, RESOLVED, REJECTED
|
|
130
|
+
* @dbxActionStateTransitionsTo IDLE
|
|
123
131
|
*/
|
|
124
132
|
DISABLED = "disabled",
|
|
125
133
|
/**
|
|
126
134
|
* The action was triggered. We wait (and allow) the value to be updated.
|
|
135
|
+
*
|
|
136
|
+
* @dbxActionStateTransitionsFrom IDLE
|
|
137
|
+
* @dbxActionStateTransitionsTo VALUE_READY
|
|
127
138
|
*/
|
|
128
139
|
TRIGGERED = "triggered",
|
|
129
140
|
/**
|
|
130
141
|
* The trigger was accepted and the value is updated. It should begin working immediately.
|
|
131
142
|
*
|
|
132
143
|
* ValueReady cannot be set until triggered is set.
|
|
144
|
+
*
|
|
145
|
+
* @dbxActionStateTransitionsFrom TRIGGERED
|
|
146
|
+
* @dbxActionStateTransitionsTo WORKING
|
|
133
147
|
*/
|
|
134
148
|
VALUE_READY = "valueReady",
|
|
135
149
|
/**
|
|
136
150
|
* The action is in progress.
|
|
151
|
+
*
|
|
152
|
+
* @dbxActionStateTransitionsFrom VALUE_READY
|
|
153
|
+
* @dbxActionStateTransitionsTo RESOLVED, REJECTED
|
|
137
154
|
*/
|
|
138
155
|
WORKING = "working",
|
|
139
156
|
/**
|
|
140
157
|
* The trigger, action, or value was rejected due to an error or other issue.
|
|
141
158
|
*
|
|
142
159
|
* An error may be specified optionally.
|
|
160
|
+
*
|
|
161
|
+
* @dbxActionStateTransitionsFrom WORKING
|
|
162
|
+
* @dbxActionStateTransitionsTo IDLE, DISABLED
|
|
143
163
|
*/
|
|
144
164
|
REJECTED = "rejected",
|
|
145
165
|
/**
|
|
146
166
|
* The action resolved without issue.
|
|
167
|
+
*
|
|
168
|
+
* @dbxActionStateTransitionsFrom WORKING
|
|
169
|
+
* @dbxActionStateTransitionsTo IDLE, DISABLED
|
|
147
170
|
*/
|
|
148
171
|
RESOLVED = "resolved"
|
|
149
172
|
}
|
|
@@ -378,6 +401,13 @@ declare const ACTION_CONTEXT_STORE_LOCKSET_DESTROY_DELAY_TIME = 2000;
|
|
|
378
401
|
* IDLE/DISABLED -> TRIGGERED -> VALUE_READY -> WORKING -> RESOLVED | REJECTED
|
|
379
402
|
* ```
|
|
380
403
|
*
|
|
404
|
+
* @dbxAction
|
|
405
|
+
* @dbxActionSlug action-context-store
|
|
406
|
+
* @dbxActionRole store
|
|
407
|
+
* @dbxActionDisabledKey dbx_action_disabled
|
|
408
|
+
* @dbxActionDisabledKey dbx_action_enforce_modified
|
|
409
|
+
* @dbxActionSkillRefs dbx__ref__dbx-component-patterns
|
|
410
|
+
*
|
|
381
411
|
* @typeParam T - The input value type provided after triggering.
|
|
382
412
|
* @typeParam O - The output result type produced on resolution.
|
|
383
413
|
*
|
|
@@ -700,6 +730,11 @@ declare class DbxActionContextStoreSourceInstance<T = unknown, O = unknown> impl
|
|
|
700
730
|
*
|
|
701
731
|
* Can be disabled by setting `dbxActionAutoModify` to `false`.
|
|
702
732
|
*
|
|
733
|
+
* @dbxAction
|
|
734
|
+
* @dbxActionSlug auto-modify
|
|
735
|
+
* @dbxActionStateInteraction IDLE
|
|
736
|
+
* @dbxActionConsumesContext
|
|
737
|
+
*
|
|
703
738
|
* @example
|
|
704
739
|
* ```html
|
|
705
740
|
* <div dbxAction>
|
|
@@ -732,6 +767,11 @@ declare class DbxActionAutoModifyDirective<T, O> {
|
|
|
732
767
|
* Useful for auto-save scenarios where data changes should automatically submit without
|
|
733
768
|
* requiring an explicit user action. Use with care to avoid triggering loops.
|
|
734
769
|
*
|
|
770
|
+
* @dbxAction
|
|
771
|
+
* @dbxActionSlug auto-trigger
|
|
772
|
+
* @dbxActionStateInteraction IDLE, TRIGGERED
|
|
773
|
+
* @dbxActionConsumesContext
|
|
774
|
+
*
|
|
735
775
|
* @example
|
|
736
776
|
* ```html
|
|
737
777
|
* <div dbxAction>
|
|
@@ -840,6 +880,11 @@ declare abstract class DbxActionContextBaseSource<T = unknown, O = unknown> impl
|
|
|
840
880
|
* On destruction, the directive coordinates cleanup through a {@link LockSet} to ensure
|
|
841
881
|
* in-flight operations complete before the store is torn down.
|
|
842
882
|
*
|
|
883
|
+
* @dbxAction
|
|
884
|
+
* @dbxActionSlug action
|
|
885
|
+
* @dbxActionStateInteraction IDLE
|
|
886
|
+
* @dbxActionProducesContext
|
|
887
|
+
*
|
|
843
888
|
* @example
|
|
844
889
|
* ```html
|
|
845
890
|
* <div dbxAction>
|
|
@@ -877,6 +922,9 @@ declare class DbxActionDirective<T = unknown, O = unknown> extends DbxActionCont
|
|
|
877
922
|
* This is useful when an action context is created programmatically (e.g., via
|
|
878
923
|
* {@link DbxActionContextMachine}) and needs to be shared with template-based directives.
|
|
879
924
|
*
|
|
925
|
+
* @dbxAction
|
|
926
|
+
* @dbxActionSlug source
|
|
927
|
+
*
|
|
880
928
|
* @example
|
|
881
929
|
* ```html
|
|
882
930
|
* <!-- Forward a programmatic action source to template directives -->
|
|
@@ -903,6 +951,11 @@ declare class DbxActionSourceDirective implements SecondaryActionContextStoreSou
|
|
|
903
951
|
* Subscribes to the parent action's full state stream and prints each state snapshot
|
|
904
952
|
* via `console.log`. Useful during development to inspect the action lifecycle transitions.
|
|
905
953
|
*
|
|
954
|
+
* @dbxAction
|
|
955
|
+
* @dbxActionSlug logger
|
|
956
|
+
* @dbxActionStateInteraction IDLE, TRIGGERED, VALUE_READY, WORKING, RESOLVED, REJECTED, DISABLED
|
|
957
|
+
* @dbxActionConsumesContext
|
|
958
|
+
*
|
|
906
959
|
* @example
|
|
907
960
|
* ```html
|
|
908
961
|
* <div dbxAction>
|
|
@@ -982,6 +1035,9 @@ declare function actionContextStoreSourceMap<T = unknown, O = unknown>(): Action
|
|
|
982
1035
|
*
|
|
983
1036
|
* The map is exported as `actionMap` for template reference access.
|
|
984
1037
|
*
|
|
1038
|
+
* @dbxAction
|
|
1039
|
+
* @dbxActionSlug context-map
|
|
1040
|
+
*
|
|
985
1041
|
* @example
|
|
986
1042
|
* ```html
|
|
987
1043
|
* <div dbxActionContextMap>
|
|
@@ -1169,6 +1225,11 @@ declare const APP_ACTION_DISABLED_DIRECTIVE_KEY = "dbx_action_disabled";
|
|
|
1169
1225
|
*
|
|
1170
1226
|
* The disable key is automatically cleaned up on directive destruction.
|
|
1171
1227
|
*
|
|
1228
|
+
* @dbxAction
|
|
1229
|
+
* @dbxActionSlug disabled
|
|
1230
|
+
* @dbxActionStateInteraction DISABLED
|
|
1231
|
+
* @dbxActionConsumesContext
|
|
1232
|
+
*
|
|
1172
1233
|
* @example
|
|
1173
1234
|
* ```html
|
|
1174
1235
|
* <div dbxAction>
|
|
@@ -1207,6 +1268,11 @@ declare const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = "dbx_action_disable
|
|
|
1207
1268
|
*
|
|
1208
1269
|
* The disable key is automatically cleaned up on directive destruction.
|
|
1209
1270
|
*
|
|
1271
|
+
* @dbxAction
|
|
1272
|
+
* @dbxActionSlug disabled-on-success
|
|
1273
|
+
* @dbxActionStateInteraction RESOLVED, DISABLED
|
|
1274
|
+
* @dbxActionConsumesContext
|
|
1275
|
+
*
|
|
1210
1276
|
* @example
|
|
1211
1277
|
* ```html
|
|
1212
1278
|
* <div dbxAction>
|
|
@@ -1298,6 +1364,12 @@ declare abstract class AbstractDbxActionHandlerDirective<T = unknown, O = unknow
|
|
|
1298
1364
|
* called with the value and a work context. The work function is responsible for performing
|
|
1299
1365
|
* the async operation and signaling success or failure through the context.
|
|
1300
1366
|
*
|
|
1367
|
+
* @dbxAction
|
|
1368
|
+
* @dbxActionSlug handler
|
|
1369
|
+
* @dbxActionStateInteraction VALUE_READY, WORKING, RESOLVED, REJECTED
|
|
1370
|
+
* @dbxActionConsumesContext
|
|
1371
|
+
* @dbxActionSkillRefs dbx__ref__dbx-component-patterns, dbx__guide__action-analytics
|
|
1372
|
+
*
|
|
1301
1373
|
* @example
|
|
1302
1374
|
* ```html
|
|
1303
1375
|
* <div dbxAction>
|
|
@@ -1324,6 +1396,11 @@ declare class DbxActionHandlerDirective<T = unknown, O = unknown> extends Abstra
|
|
|
1324
1396
|
* The provided value (or the result of calling the getter/factory) is used directly as the
|
|
1325
1397
|
* action's result, with the working/success lifecycle handled automatically.
|
|
1326
1398
|
*
|
|
1399
|
+
* @dbxAction
|
|
1400
|
+
* @dbxActionSlug handler-value
|
|
1401
|
+
* @dbxActionStateInteraction VALUE_READY, WORKING, RESOLVED
|
|
1402
|
+
* @dbxActionConsumesContext
|
|
1403
|
+
*
|
|
1327
1404
|
* @example
|
|
1328
1405
|
* ```html
|
|
1329
1406
|
* <div dbxAction>
|
|
@@ -1525,6 +1602,11 @@ type DbxActionErrorHandlerFunction = (error?: Maybe<ReadableError>) => void;
|
|
|
1525
1602
|
* This is useful for performing side effects like logging, showing error toasts, or
|
|
1526
1603
|
* handling specific error conditions programmatically.
|
|
1527
1604
|
*
|
|
1605
|
+
* @dbxAction
|
|
1606
|
+
* @dbxActionSlug error-handler
|
|
1607
|
+
* @dbxActionStateInteraction REJECTED
|
|
1608
|
+
* @dbxActionConsumesContext
|
|
1609
|
+
*
|
|
1528
1610
|
* @example
|
|
1529
1611
|
* ```html
|
|
1530
1612
|
* <div dbxAction>
|
|
@@ -1557,6 +1639,11 @@ declare class DbxActionErrorHandlerDirective<T, O> {
|
|
|
1557
1639
|
* The input filters out null/undefined values, waiting until a non-null value is provided.
|
|
1558
1640
|
* If you need to pass null/undefined as valid action values, use {@link DbxActionValueTriggerDirective} instead.
|
|
1559
1641
|
*
|
|
1642
|
+
* @dbxAction
|
|
1643
|
+
* @dbxActionSlug value
|
|
1644
|
+
* @dbxActionStateInteraction TRIGGERED, VALUE_READY
|
|
1645
|
+
* @dbxActionConsumesContext
|
|
1646
|
+
*
|
|
1560
1647
|
* @example
|
|
1561
1648
|
* ```html
|
|
1562
1649
|
* <div dbxAction>
|
|
@@ -1641,6 +1728,11 @@ declare const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = "dbx_action_enforce_mo
|
|
|
1641
1728
|
*
|
|
1642
1729
|
* The disable key is automatically cleaned up on directive destruction.
|
|
1643
1730
|
*
|
|
1731
|
+
* @dbxAction
|
|
1732
|
+
* @dbxActionSlug enforce-modified
|
|
1733
|
+
* @dbxActionStateInteraction IDLE, DISABLED
|
|
1734
|
+
* @dbxActionConsumesContext
|
|
1735
|
+
*
|
|
1644
1736
|
* @example
|
|
1645
1737
|
* ```html
|
|
1646
1738
|
* <div dbxAction>
|
|
@@ -1790,6 +1882,11 @@ declare abstract class AbstractDbxActionValueGetterDirective<T> {
|
|
|
1790
1882
|
* Supports optional `isModified` and `isEqual` functions to control whether the retrieved
|
|
1791
1883
|
* value should proceed to `readyValue` or be rejected.
|
|
1792
1884
|
*
|
|
1885
|
+
* @dbxAction
|
|
1886
|
+
* @dbxActionSlug value-getter
|
|
1887
|
+
* @dbxActionStateInteraction TRIGGERED, VALUE_READY
|
|
1888
|
+
* @dbxActionConsumesContext
|
|
1889
|
+
*
|
|
1793
1890
|
* @example
|
|
1794
1891
|
* ```html
|
|
1795
1892
|
* <div dbxAction>
|
|
@@ -5849,6 +5946,9 @@ declare class DbxRouteModelKeyDirective {
|
|
|
5849
5946
|
* Useful for normalizing values that may be plain values, getter functions, or Observables
|
|
5850
5947
|
* into a consistent Observable stream for use with the `async` pipe.
|
|
5851
5948
|
*
|
|
5949
|
+
* @dbxPipe
|
|
5950
|
+
* @dbxPipeSlug as-observable
|
|
5951
|
+
* @dbxPipeCategory async
|
|
5852
5952
|
* @example
|
|
5853
5953
|
* ```html
|
|
5854
5954
|
* <span>{{ valueOrGetter | asObservable | async }}</span>
|
|
@@ -5865,6 +5965,10 @@ declare class AsObservablePipe implements PipeTransform {
|
|
|
5865
5965
|
*
|
|
5866
5966
|
* Displays only the date portion (no times). Returns a fallback string when the input is `null` or `undefined`.
|
|
5867
5967
|
*
|
|
5968
|
+
* @dbxPipe
|
|
5969
|
+
* @dbxPipeSlug date-day-range
|
|
5970
|
+
* @dbxPipeCategory date
|
|
5971
|
+
* @dbxPipeRelated date-time-range, date-day-time-range
|
|
5868
5972
|
* @example
|
|
5869
5973
|
* ```html
|
|
5870
5974
|
* <span>{{ dateRange | dateDayRange }}</span>
|
|
@@ -5885,6 +5989,10 @@ declare class DateDayRangePipe implements PipeTransform {
|
|
|
5885
5989
|
*
|
|
5886
5990
|
* Accepts an optional comparison date (defaults to now) and a fallback string for `null`/`undefined` input.
|
|
5887
5991
|
*
|
|
5992
|
+
* @dbxPipe
|
|
5993
|
+
* @dbxPipeSlug date-distance
|
|
5994
|
+
* @dbxPipeCategory date
|
|
5995
|
+
* @dbxPipeRelated date-range-distance, date-format-distance, time-distance
|
|
5888
5996
|
* @example
|
|
5889
5997
|
* ```html
|
|
5890
5998
|
* <span>{{ someDate | dateDistance }}</span>
|
|
@@ -5908,6 +6016,10 @@ declare class DateDistancePipe implements PipeTransform {
|
|
|
5908
6016
|
*
|
|
5909
6017
|
* Returns `undefined` if the input is falsy or not a valid date.
|
|
5910
6018
|
*
|
|
6019
|
+
* @dbxPipe
|
|
6020
|
+
* @dbxPipeSlug date-format-distance
|
|
6021
|
+
* @dbxPipeCategory date
|
|
6022
|
+
* @dbxPipeRelated date-distance, date-format-from-to
|
|
5911
6023
|
* @example
|
|
5912
6024
|
* ```html
|
|
5913
6025
|
* <span>{{ someDate | dateFormatDistance:'MMM d, y' }}</span>
|
|
@@ -5930,6 +6042,10 @@ declare class DateFormatDistancePipe implements PipeTransform {
|
|
|
5930
6042
|
* The start date is formatted using the Angular locale-aware {@link formatDate}, and the end time
|
|
5931
6043
|
* is computed by adding the given minutes and formatted as a time-only string.
|
|
5932
6044
|
*
|
|
6045
|
+
* @dbxPipe
|
|
6046
|
+
* @dbxPipeSlug date-format-from-to
|
|
6047
|
+
* @dbxPipeCategory date
|
|
6048
|
+
* @dbxPipeRelated date-time-range, date-format-distance
|
|
5933
6049
|
* @example
|
|
5934
6050
|
* ```html
|
|
5935
6051
|
* <span>{{ eventStart | dateFormatFromTo:'MMM d, h:mm a':90 }}</span>
|
|
@@ -5949,6 +6065,10 @@ declare class DateFormatFromToPipe implements PipeTransform {
|
|
|
5949
6065
|
*
|
|
5950
6066
|
* Includes both the date and time portions. Returns a fallback string when the input is `null` or `undefined`.
|
|
5951
6067
|
*
|
|
6068
|
+
* @dbxPipe
|
|
6069
|
+
* @dbxPipeSlug date-day-time-range
|
|
6070
|
+
* @dbxPipeCategory date
|
|
6071
|
+
* @dbxPipeRelated date-time-range, date-day-range
|
|
5952
6072
|
* @example
|
|
5953
6073
|
* ```html
|
|
5954
6074
|
* <span>{{ dateRange | dateDayTimeRange }}</span>
|
|
@@ -5969,6 +6089,10 @@ declare class DateDayTimeRangePipe implements PipeTransform {
|
|
|
5969
6089
|
*
|
|
5970
6090
|
* Displays the date and time of both the start and end. Returns a fallback string when the input is `null` or `undefined`.
|
|
5971
6091
|
*
|
|
6092
|
+
* @dbxPipe
|
|
6093
|
+
* @dbxPipeSlug date-time-range
|
|
6094
|
+
* @dbxPipeCategory date
|
|
6095
|
+
* @dbxPipeRelated date-time-range-only, date-day-range, date-day-time-range
|
|
5972
6096
|
* @example
|
|
5973
6097
|
* ```html
|
|
5974
6098
|
* <span>{{ dateRange | dateTimeRange }}</span>
|
|
@@ -5990,6 +6114,10 @@ declare class DateTimeRangePipe implements PipeTransform {
|
|
|
5990
6114
|
* This is an impure pipe that recalculates on every change detection cycle to keep the distance up to date.
|
|
5991
6115
|
* Returns a fallback string when the input is `null` or `undefined`.
|
|
5992
6116
|
*
|
|
6117
|
+
* @dbxPipe
|
|
6118
|
+
* @dbxPipeSlug date-range-distance
|
|
6119
|
+
* @dbxPipeCategory date
|
|
6120
|
+
* @dbxPipeRelated date-distance
|
|
5993
6121
|
* @example
|
|
5994
6122
|
* ```html
|
|
5995
6123
|
* <span>{{ someDate | dateRangeDistance }}</span>
|
|
@@ -6010,6 +6138,10 @@ declare class DateRangeDistancePipe implements PipeTransform {
|
|
|
6010
6138
|
*
|
|
6011
6139
|
* Displays only the time portion (no date). Returns a fallback string when the input is `null` or `undefined`.
|
|
6012
6140
|
*
|
|
6141
|
+
* @dbxPipe
|
|
6142
|
+
* @dbxPipeSlug date-time-range-only
|
|
6143
|
+
* @dbxPipeCategory date
|
|
6144
|
+
* @dbxPipeRelated date-time-range
|
|
6013
6145
|
* @example
|
|
6014
6146
|
* ```html
|
|
6015
6147
|
* <span>{{ dateRange | dateTimeRangeOnly }}</span>
|
|
@@ -6032,6 +6164,10 @@ declare class DateTimeRangeOnlyPipe implements PipeTransform {
|
|
|
6032
6164
|
* local time in a target timezone and need to convert it back to the system timezone.
|
|
6033
6165
|
* Returns `undefined` if either the input date or timezone is falsy.
|
|
6034
6166
|
*
|
|
6167
|
+
* @dbxPipe
|
|
6168
|
+
* @dbxPipeSlug target-date-to-system-date
|
|
6169
|
+
* @dbxPipeCategory date
|
|
6170
|
+
* @dbxPipeRelated system-date-to-target-date, timezone-abbreviation
|
|
6035
6171
|
* @example
|
|
6036
6172
|
* ```html
|
|
6037
6173
|
* <span>{{ targetDate | targetDateToSystemDate:'America/New_York' | date:'short' }}</span>
|
|
@@ -6050,6 +6186,10 @@ declare class TargetDateToSystemDatePipe implements PipeTransform {
|
|
|
6050
6186
|
* Accepts an optional {@link FormatDateRangeDistanceFunctionConfig} to customize the output format.
|
|
6051
6187
|
* Returns a fallback string when the input is `null` or `undefined`.
|
|
6052
6188
|
*
|
|
6189
|
+
* @dbxPipe
|
|
6190
|
+
* @dbxPipeSlug date-time-range-only-distance
|
|
6191
|
+
* @dbxPipeCategory date
|
|
6192
|
+
* @dbxPipeRelated date-time-range, date-range-distance
|
|
6053
6193
|
* @example
|
|
6054
6194
|
* ```html
|
|
6055
6195
|
* <span>{{ dateRange | dateTimeRangeOnlyDistance }}</span>
|
|
@@ -6075,6 +6215,10 @@ declare class DateTimeRangeOnlyDistancePipe implements PipeTransform {
|
|
|
6075
6215
|
* Defaults to the current date if no reference date is provided.
|
|
6076
6216
|
* Returns `undefined` if the timezone is falsy.
|
|
6077
6217
|
*
|
|
6218
|
+
* @dbxPipe
|
|
6219
|
+
* @dbxPipeSlug timezone-abbreviation
|
|
6220
|
+
* @dbxPipeCategory date
|
|
6221
|
+
* @dbxPipeRelated system-date-to-target-date, target-date-to-system-date
|
|
6078
6222
|
* @example
|
|
6079
6223
|
* ```html
|
|
6080
6224
|
* <span>{{ 'America/New_York' | timezoneAbbreviation }}</span>
|
|
@@ -6096,6 +6240,10 @@ declare class TimezoneAbbreviationPipe implements PipeTransform {
|
|
|
6096
6240
|
* This is useful when you have a date in the system's timezone and need to display it as if it were in the target timezone.
|
|
6097
6241
|
* Returns `undefined` if either the input date or timezone is falsy.
|
|
6098
6242
|
*
|
|
6243
|
+
* @dbxPipe
|
|
6244
|
+
* @dbxPipeSlug system-date-to-target-date
|
|
6245
|
+
* @dbxPipeCategory date
|
|
6246
|
+
* @dbxPipeRelated target-date-to-system-date, timezone-abbreviation
|
|
6099
6247
|
* @example
|
|
6100
6248
|
* ```html
|
|
6101
6249
|
* <span>{{ systemDate | systemDateToTargetDate:'America/New_York' | date:'short' }}</span>
|
|
@@ -6117,6 +6265,10 @@ declare class SystemDateToTargetDatePipe implements PipeTransform {
|
|
|
6117
6265
|
*
|
|
6118
6266
|
* A `~` prefix is added when the value is rounded up. Returns `undefined` for `null` or non-numeric input.
|
|
6119
6267
|
*
|
|
6268
|
+
* @dbxPipe
|
|
6269
|
+
* @dbxPipeSlug minutes-string
|
|
6270
|
+
* @dbxPipeCategory date
|
|
6271
|
+
* @dbxPipeRelated to-minutes
|
|
6120
6272
|
* @example
|
|
6121
6273
|
* ```html
|
|
6122
6274
|
* <span>{{ 90 | minutesString }}</span>
|
|
@@ -6142,6 +6294,10 @@ declare class MinutesStringPipe implements PipeTransform {
|
|
|
6142
6294
|
* Otherwise, returns a human-readable distance string with suffix (e.g., "in 3 hours").
|
|
6143
6295
|
* Returns the `unavailable` string when the input is falsy.
|
|
6144
6296
|
*
|
|
6297
|
+
* @dbxPipe
|
|
6298
|
+
* @dbxPipeSlug time-countdown-distance
|
|
6299
|
+
* @dbxPipeCategory date
|
|
6300
|
+
* @dbxPipeRelated time-distance
|
|
6145
6301
|
* @example
|
|
6146
6302
|
* ```html
|
|
6147
6303
|
* <span>{{ futureDate | timeCountdownDistance }}</span>
|
|
@@ -6162,6 +6318,10 @@ declare class TimeDistanceCountdownPipe implements PipeTransform {
|
|
|
6162
6318
|
* Uses date-fns {@link formatDistance} to produce output like "3 hours ago" or "in 2 days".
|
|
6163
6319
|
* Returns the `unavailable` string when the input is falsy.
|
|
6164
6320
|
*
|
|
6321
|
+
* @dbxPipe
|
|
6322
|
+
* @dbxPipeSlug time-distance
|
|
6323
|
+
* @dbxPipeCategory date
|
|
6324
|
+
* @dbxPipeRelated date-distance, time-countdown-distance
|
|
6165
6325
|
* @example
|
|
6166
6326
|
* ```html
|
|
6167
6327
|
* <span>{{ someDate | timeDistance }}</span>
|
|
@@ -6186,6 +6346,10 @@ declare class TimeDistancePipe implements PipeTransform {
|
|
|
6186
6346
|
* Returns `undefined` if the input is `null`, `undefined`, or results in an invalid date.
|
|
6187
6347
|
* Also provides a static `toJsDate()` method used by other pipes in this package.
|
|
6188
6348
|
*
|
|
6349
|
+
* @dbxPipe
|
|
6350
|
+
* @dbxPipeSlug to-js-date
|
|
6351
|
+
* @dbxPipeCategory date
|
|
6352
|
+
* @dbxPipeRelated date-distance, date-format-distance
|
|
6189
6353
|
* @example
|
|
6190
6354
|
* ```html
|
|
6191
6355
|
* <span>{{ '2024-01-05T12:00:00Z' | toJsDate | date:'short' }}</span>
|
|
@@ -6207,6 +6371,10 @@ declare class ToJsDatePipe implements PipeTransform {
|
|
|
6207
6371
|
*
|
|
6208
6372
|
* Returns the original value (0 or falsy) if the input is falsy.
|
|
6209
6373
|
*
|
|
6374
|
+
* @dbxPipe
|
|
6375
|
+
* @dbxPipeSlug to-minutes
|
|
6376
|
+
* @dbxPipeCategory date
|
|
6377
|
+
* @dbxPipeRelated minutes-string
|
|
6210
6378
|
* @example
|
|
6211
6379
|
* ```html
|
|
6212
6380
|
* <span>{{ 180000 | toMinutes }}</span>
|
|
@@ -6227,6 +6395,9 @@ declare class ToMinutesPipe implements PipeTransform {
|
|
|
6227
6395
|
*
|
|
6228
6396
|
* Returns `undefined` for falsy input. If serialization fails, returns `'ERROR'` and logs the error to the console.
|
|
6229
6397
|
*
|
|
6398
|
+
* @dbxPipe
|
|
6399
|
+
* @dbxPipeSlug prettyjson
|
|
6400
|
+
* @dbxPipeCategory misc
|
|
6230
6401
|
* @example
|
|
6231
6402
|
* ```html
|
|
6232
6403
|
* <pre>{{ myObject | prettyjson }}</pre>
|
|
@@ -6235,6 +6406,7 @@ declare class ToMinutesPipe implements PipeTransform {
|
|
|
6235
6406
|
* <pre>{{ myObject | prettyjson:4 }}</pre>
|
|
6236
6407
|
* <!-- Output: formatted JSON with 4-space indentation -->
|
|
6237
6408
|
* ```
|
|
6409
|
+
* @param spacing Indent spaces; defaults to `2`.
|
|
6238
6410
|
*/
|
|
6239
6411
|
declare class PrettyJsonPipe implements PipeTransform {
|
|
6240
6412
|
static toPrettyJson(input: Maybe<unknown>, spacing?: number): Maybe<string>;
|
|
@@ -6248,6 +6420,10 @@ declare class PrettyJsonPipe implements PipeTransform {
|
|
|
6248
6420
|
*
|
|
6249
6421
|
* Returns the original value if the input is `null` or `undefined`.
|
|
6250
6422
|
*
|
|
6423
|
+
* @dbxPipe
|
|
6424
|
+
* @dbxPipeSlug cut-text
|
|
6425
|
+
* @dbxPipeCategory value
|
|
6426
|
+
* @dbxPipeSkillRefs dbx-value-pipes
|
|
6251
6427
|
* @example
|
|
6252
6428
|
* ```html
|
|
6253
6429
|
* <span>{{ 'Hello World' | cutText:5 }}</span>
|
|
@@ -6256,6 +6432,8 @@ declare class PrettyJsonPipe implements PipeTransform {
|
|
|
6256
6432
|
* <span>{{ longText | cutText:20:'--' }}</span>
|
|
6257
6433
|
* <!-- Output: "Some long text here--" -->
|
|
6258
6434
|
* ```
|
|
6435
|
+
* @param maxLength Maximum allowed length before truncation.
|
|
6436
|
+
* @param endText Suffix appended when truncation occurs.
|
|
6259
6437
|
*/
|
|
6260
6438
|
declare class CutTextPipe implements PipeTransform {
|
|
6261
6439
|
transform(input: Maybe<string>, maxLength: number, endText?: Maybe<string>): Maybe<string>;
|
|
@@ -6270,11 +6448,17 @@ declare class CutTextPipe implements PipeTransform {
|
|
|
6270
6448
|
* for getter functions whose return value may change over time.
|
|
6271
6449
|
* Use {@link GetValueOncePipe} (`getValueOnce`) for a pure alternative when the value is static.
|
|
6272
6450
|
*
|
|
6451
|
+
* @dbxPipe
|
|
6452
|
+
* @dbxPipeSlug get-value
|
|
6453
|
+
* @dbxPipeCategory value
|
|
6454
|
+
* @dbxPipeRelated get-value-once
|
|
6455
|
+
* @dbxPipeSkillRefs dbx-value-pipes
|
|
6273
6456
|
* @example
|
|
6274
6457
|
* ```html
|
|
6275
6458
|
* <span>{{ myGetterOrValue | getValue }}</span>
|
|
6276
6459
|
* <span>{{ myGetterFn | getValue:someArg }}</span>
|
|
6277
6460
|
* ```
|
|
6461
|
+
* @param args Optional argument forwarded to the getter function.
|
|
6278
6462
|
*/
|
|
6279
6463
|
declare class GetValuePipe implements PipeTransform {
|
|
6280
6464
|
transform<T, A = any>(input: GetterOrValue<T>, args?: A): T;
|
|
@@ -6287,10 +6471,16 @@ declare class GetValuePipe implements PipeTransform {
|
|
|
6287
6471
|
* This is a pure pipe that only re-evaluates when the input reference changes.
|
|
6288
6472
|
* Use {@link GetValuePipe} (`getValue`) if the getter function's return value may change between cycles.
|
|
6289
6473
|
*
|
|
6474
|
+
* @dbxPipe
|
|
6475
|
+
* @dbxPipeSlug get-value-once
|
|
6476
|
+
* @dbxPipeCategory value
|
|
6477
|
+
* @dbxPipeRelated get-value
|
|
6478
|
+
* @dbxPipeSkillRefs dbx-value-pipes
|
|
6290
6479
|
* @example
|
|
6291
6480
|
* ```html
|
|
6292
6481
|
* <span>{{ myGetterOrValue | getValueOnce }}</span>
|
|
6293
6482
|
* ```
|
|
6483
|
+
* @param args Optional argument forwarded to the getter function.
|
|
6294
6484
|
*/
|
|
6295
6485
|
declare class GetValueOncePipe implements PipeTransform {
|
|
6296
6486
|
transform<T, A = any>(input: GetterOrValue<T>, args?: A): T;
|
|
@@ -6303,6 +6493,10 @@ declare class GetValueOncePipe implements PipeTransform {
|
|
|
6303
6493
|
*
|
|
6304
6494
|
* Optionally accepts a default string to display when the input is `null` or `undefined`.
|
|
6305
6495
|
*
|
|
6496
|
+
* @dbxPipe
|
|
6497
|
+
* @dbxPipeSlug dollar-amount
|
|
6498
|
+
* @dbxPipeCategory value
|
|
6499
|
+
* @dbxPipeSkillRefs dbx-value-pipes
|
|
6306
6500
|
* @example
|
|
6307
6501
|
* ```html
|
|
6308
6502
|
* <span>{{ 19.5 | dollarAmount }}</span>
|
|
@@ -6311,6 +6505,7 @@ declare class GetValueOncePipe implements PipeTransform {
|
|
|
6311
6505
|
* <span>{{ nullValue | dollarAmount:'N/A' }}</span>
|
|
6312
6506
|
* <!-- Output: "N/A" -->
|
|
6313
6507
|
* ```
|
|
6508
|
+
* @param defaultIfNull String to display when the input is `null` or `undefined`. Defaults to formatting `null` through `dollarAmountString`.
|
|
6314
6509
|
*/
|
|
6315
6510
|
declare class DollarAmountPipe implements PipeTransform {
|
|
6316
6511
|
transform(input: Maybe<number>, defaultIfNull?: Maybe<string>): Maybe<string>;
|
|
@@ -6403,10 +6598,12 @@ declare abstract class AbstractFilterSourceDirective<F = unknown> implements Fil
|
|
|
6403
6598
|
}
|
|
6404
6599
|
|
|
6405
6600
|
/**
|
|
6406
|
-
* Connects the host element's {@link FilterSource} to an ancestor {@link FilterSourceConnector} on
|
|
6601
|
+
* Connects the host element's {@link FilterSource} to an ancestor {@link FilterSourceConnector} on init. Place on an element whose own directive contributes a `FilterSource` (via `host: true`) so it auto-wires to the parent connector.
|
|
6407
6602
|
*
|
|
6408
|
-
*
|
|
6409
|
-
*
|
|
6603
|
+
* @dbxFilter
|
|
6604
|
+
* @dbxFilterSlug connect-source
|
|
6605
|
+
* @dbxFilterRelated source, source-connector
|
|
6606
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6410
6607
|
*
|
|
6411
6608
|
* @example
|
|
6412
6609
|
* ```html
|
|
@@ -6424,14 +6621,18 @@ declare class DbxFilterConnectSourceDirective<F = unknown> implements OnInit {
|
|
|
6424
6621
|
}
|
|
6425
6622
|
|
|
6426
6623
|
/**
|
|
6427
|
-
*
|
|
6624
|
+
* Acts as both {@link FilterSource} and {@link FilterSourceConnector} — bridges a filter from one part of the template to another. Pair with `[dbxFilterConnectSource]` on the inner element that owns the source.
|
|
6428
6625
|
*
|
|
6429
|
-
*
|
|
6626
|
+
* @dbxFilter
|
|
6627
|
+
* @dbxFilterSlug source-connector
|
|
6628
|
+
* @dbxFilterRelated source, connect-source
|
|
6629
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6430
6630
|
*
|
|
6431
6631
|
* @example
|
|
6432
6632
|
* ```html
|
|
6433
6633
|
* <div dbxFilterSourceConnector>
|
|
6434
|
-
* <my-
|
|
6634
|
+
* <my-filter-form dbxFilterSource dbxFilterConnectSource></my-filter-form>
|
|
6635
|
+
* <my-list></my-list>
|
|
6435
6636
|
* </div>
|
|
6436
6637
|
* ```
|
|
6437
6638
|
*/
|
|
@@ -6495,18 +6696,26 @@ declare abstract class AbstractDbxFilterMapSourceDirective<F> extends AbstractDb
|
|
|
6495
6696
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFilterMapSourceDirective<any>, never, never, {}, {}, never, never, true, never>;
|
|
6496
6697
|
}
|
|
6497
6698
|
/**
|
|
6498
|
-
*
|
|
6699
|
+
* Provides a {@link FilterSource} for a keyed entry in an ancestor {@link FilterMap}. Children can inject the source as if it were the only filter on the page; the map dispatches by key.
|
|
6700
|
+
*
|
|
6701
|
+
* @dbxFilter
|
|
6702
|
+
* @dbxFilterSlug map-source
|
|
6703
|
+
* @dbxFilterRelated map, map-source-connector
|
|
6704
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6499
6705
|
*
|
|
6500
6706
|
* @example
|
|
6501
6707
|
* ```html
|
|
6502
6708
|
* <div dbxFilterMap>
|
|
6503
|
-
* <div [dbxFilterMapSource]="'
|
|
6709
|
+
* <div [dbxFilterMapSource]="'profileList'">
|
|
6504
6710
|
* <my-filtered-list></my-filtered-list>
|
|
6505
6711
|
* </div>
|
|
6506
6712
|
* </div>
|
|
6507
6713
|
* ```
|
|
6508
6714
|
*/
|
|
6509
6715
|
declare class DbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapSourceDirective<F> implements FilterSource<F> {
|
|
6716
|
+
/**
|
|
6717
|
+
* The map key this source binds to.
|
|
6718
|
+
*/
|
|
6510
6719
|
readonly dbxFilterMapSource: i0.InputSignal<Maybe<string>>;
|
|
6511
6720
|
protected readonly _dbxFilterMapSourceEffect: i0.EffectRef;
|
|
6512
6721
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceDirective<any>, never>;
|
|
@@ -6514,20 +6723,26 @@ declare class DbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapSourceD
|
|
|
6514
6723
|
}
|
|
6515
6724
|
|
|
6516
6725
|
/**
|
|
6517
|
-
*
|
|
6726
|
+
* Both {@link FilterSource} and {@link FilterSourceConnector} for a keyed entry in an ancestor {@link FilterMap}. Connects an external filter source to one map slot and re-emits that slot's filter.
|
|
6518
6727
|
*
|
|
6519
|
-
*
|
|
6728
|
+
* @dbxFilter
|
|
6729
|
+
* @dbxFilterSlug map-source-connector
|
|
6730
|
+
* @dbxFilterRelated map, map-source
|
|
6731
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6520
6732
|
*
|
|
6521
6733
|
* @example
|
|
6522
6734
|
* ```html
|
|
6523
6735
|
* <div dbxFilterMap>
|
|
6524
|
-
* <div [dbxFilterMapSourceConnector]="'
|
|
6525
|
-
* <my-list
|
|
6736
|
+
* <div [dbxFilterMapSourceConnector]="'profileList'">
|
|
6737
|
+
* <my-list></my-list>
|
|
6526
6738
|
* </div>
|
|
6527
6739
|
* </div>
|
|
6528
6740
|
* ```
|
|
6529
6741
|
*/
|
|
6530
6742
|
declare class DbxFilterMapSourceConnectorDirective<F> extends AbstractDbxFilterMapSourceDirective<F> implements FilterSourceConnector<F> {
|
|
6743
|
+
/**
|
|
6744
|
+
* The map key this connector binds to.
|
|
6745
|
+
*/
|
|
6531
6746
|
readonly dbxFilterMapSourceConnector: i0.InputSignal<Maybe<string>>;
|
|
6532
6747
|
protected readonly _dbxFilterMapSourceConnectorEffect: i0.EffectRef;
|
|
6533
6748
|
connectWithSource(filterSource: FilterSource<F>): void;
|
|
@@ -6536,10 +6751,12 @@ declare class DbxFilterMapSourceConnectorDirective<F> extends AbstractDbxFilterM
|
|
|
6536
6751
|
}
|
|
6537
6752
|
|
|
6538
6753
|
/**
|
|
6539
|
-
*
|
|
6754
|
+
* Provides a {@link FilterMap} instance in DI so multiple child sources can register / look up filters by string key. Use when one screen needs several independent filter contexts.
|
|
6540
6755
|
*
|
|
6541
|
-
*
|
|
6542
|
-
* map
|
|
6756
|
+
* @dbxFilter
|
|
6757
|
+
* @dbxFilterSlug map
|
|
6758
|
+
* @dbxFilterRelated map-source, map-source-connector
|
|
6759
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6543
6760
|
*
|
|
6544
6761
|
* @example
|
|
6545
6762
|
* ```html
|
|
@@ -6556,21 +6773,23 @@ declare class DbxFilterMapDirective<F> {
|
|
|
6556
6773
|
}
|
|
6557
6774
|
|
|
6558
6775
|
/**
|
|
6559
|
-
*
|
|
6776
|
+
* Pattern for declaring a preset filter chip — combines an anchor display (title, icon, disabled) with a preset string identifier and a `presetValue` getter. A `null` or empty preset value resets the filter.
|
|
6560
6777
|
*
|
|
6561
|
-
*
|
|
6562
|
-
*
|
|
6778
|
+
* @dbxFilter
|
|
6779
|
+
* @dbxFilterSlug clickable-preset
|
|
6780
|
+
* @dbxFilterRelated source
|
|
6781
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6563
6782
|
*
|
|
6564
6783
|
* @typeParam F - The filter type, which must include a preset field.
|
|
6565
6784
|
* @typeParam P - The preset string identifier type.
|
|
6566
6785
|
*
|
|
6567
6786
|
* @example
|
|
6568
6787
|
* ```typescript
|
|
6569
|
-
* const
|
|
6788
|
+
* const activePreset: ClickableFilterPreset<ProfileFilter> = {
|
|
6570
6789
|
* preset: 'active',
|
|
6571
|
-
* title: 'Active
|
|
6790
|
+
* title: 'Active',
|
|
6572
6791
|
* icon: 'check',
|
|
6573
|
-
* presetValue: { status: 'active', preset: 'active' }
|
|
6792
|
+
* presetValue: { status: 'active', preset: 'active' }
|
|
6574
6793
|
* };
|
|
6575
6794
|
* ```
|
|
6576
6795
|
*/
|
|
@@ -6622,12 +6841,17 @@ declare function isClickablePartialFilterPreset<F>(preset: object): preset is Cl
|
|
|
6622
6841
|
type ClickableFilterPresetOrPartialPreset<F extends FilterWithPreset<P>, P extends string = string> = ClickableFilterPreset<F, P> | ClickablePartialFilterPreset<F>;
|
|
6623
6842
|
|
|
6624
6843
|
/**
|
|
6625
|
-
* Provides a {@link FilterSource} in
|
|
6844
|
+
* Provides a {@link FilterSource} in DI so child components can inject and consume the current filter value. Use this on a wrapper element when the child is the canonical owner of the filter (a filter form, a chip group).
|
|
6845
|
+
*
|
|
6846
|
+
* @dbxFilter
|
|
6847
|
+
* @dbxFilterSlug source
|
|
6848
|
+
* @dbxFilterRelated connect-source, source-connector, map-source
|
|
6849
|
+
* @dbxFilterSkillRefs dbx__ref__dbx-component-patterns
|
|
6626
6850
|
*
|
|
6627
6851
|
* @example
|
|
6628
6852
|
* ```html
|
|
6629
6853
|
* <div dbxFilterSource>
|
|
6630
|
-
* <my-
|
|
6854
|
+
* <my-filter-form></my-filter-form>
|
|
6631
6855
|
* </div>
|
|
6632
6856
|
* ```
|
|
6633
6857
|
*/
|