@ecodev/natural 65.0.2 → 65.0.4
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/ecodev-natural.mjs +107 -54
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/index.d.ts +25 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2325,13 +2325,15 @@ declare class NaturalDetailHeaderComponent {
|
|
|
2325
2325
|
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalDetailHeaderComponent, "natural-detail-header", never, { "currentBaseUrl": { "alias": "currentBaseUrl"; "required": false; "isSignal": true; }; "isPanel": { "alias": "isPanel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "rootLabel": { "alias": "rootLabel"; "required": false; }; "newLabel": { "alias": "newLabel"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": true; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; "isSignal": true; }; "listRoute": { "alias": "listRoute"; "required": false; "isSignal": true; }; "listFragment": { "alias": "listFragment"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
|
-
type
|
|
2328
|
+
type PossibleNullableOperatorKeys = 'any' | 'none';
|
|
2329
|
+
type PossibleComparableOperatorKeys = keyof Pick<FilterGroupConditionField, 'less' | 'lessOrEqual' | 'equal' | 'greaterOrEqual' | 'greater'> | PossibleNullableOperatorKeys;
|
|
2329
2330
|
type PossibleComparableOperator = {
|
|
2330
|
-
key:
|
|
2331
|
+
key: PossibleComparableOperatorKeys;
|
|
2331
2332
|
label: string;
|
|
2332
2333
|
};
|
|
2333
2334
|
declare const possibleComparableOperators: readonly PossibleComparableOperator[];
|
|
2334
|
-
|
|
2335
|
+
declare const possibleNullComparableOperators: readonly PossibleComparableOperator[];
|
|
2336
|
+
type PossibleDiscreteOperatorKeys = 'is' | 'isnot' | PossibleNullableOperatorKeys;
|
|
2335
2337
|
type PossibleDiscreteOperator = {
|
|
2336
2338
|
key: PossibleDiscreteOperatorKeys;
|
|
2337
2339
|
label: string;
|
|
@@ -2490,18 +2492,23 @@ type TypeNumberConfiguration = {
|
|
|
2490
2492
|
min?: number | null;
|
|
2491
2493
|
max?: number | null;
|
|
2492
2494
|
step?: number | null;
|
|
2495
|
+
/**
|
|
2496
|
+
* If true, two extra choices, "avec" and "sans", will be shown to filter by the (in-)existence of a value
|
|
2497
|
+
*/
|
|
2498
|
+
nullable?: boolean;
|
|
2493
2499
|
};
|
|
2494
2500
|
declare class TypeNumberComponent implements DropdownComponent {
|
|
2495
2501
|
protected dropdownRef: NaturalDropdownRef;
|
|
2496
2502
|
readonly renderedValue: BehaviorSubject<string>;
|
|
2497
2503
|
readonly configuration: Required<TypeNumberConfiguration>;
|
|
2498
|
-
readonly operatorCtrl: FormControl<
|
|
2499
|
-
readonly valueCtrl: FormControl<
|
|
2504
|
+
readonly operatorCtrl: FormControl<PossibleComparableOperatorKeys>;
|
|
2505
|
+
readonly valueCtrl: FormControl<number | null>;
|
|
2500
2506
|
readonly matcher: InvalidWithValueStateMatcher$1;
|
|
2501
2507
|
readonly form: FormGroup<{
|
|
2502
|
-
operator: FormControl<
|
|
2503
|
-
value: FormControl<
|
|
2508
|
+
operator: FormControl<PossibleComparableOperatorKeys>;
|
|
2509
|
+
value: FormControl<number | null>;
|
|
2504
2510
|
}>;
|
|
2511
|
+
requireValueCtrl: boolean;
|
|
2505
2512
|
readonly operators: readonly PossibleComparableOperator[];
|
|
2506
2513
|
private readonly defaults;
|
|
2507
2514
|
constructor();
|
|
@@ -2512,6 +2519,7 @@ declare class TypeNumberComponent implements DropdownComponent {
|
|
|
2512
2519
|
private initValidators;
|
|
2513
2520
|
private reloadCondition;
|
|
2514
2521
|
private getRenderedValue;
|
|
2522
|
+
private conditionToOperatorKey;
|
|
2515
2523
|
static ɵfac: i0.ɵɵFactoryDeclaration<TypeNumberComponent, never>;
|
|
2516
2524
|
static ɵcmp: i0.ɵɵComponentDeclaration<TypeNumberComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2517
2525
|
}
|
|
@@ -2682,18 +2690,23 @@ declare class TypeHierarchicSelectorComponent extends AbstractAssociationSelectC
|
|
|
2682
2690
|
type TypeDateConfiguration<D = Date> = {
|
|
2683
2691
|
min?: D | null;
|
|
2684
2692
|
max?: D | null;
|
|
2693
|
+
/**
|
|
2694
|
+
* If true, two extra choices, "avec" and "sans", will be shown to filter by the (in-)existence of a value
|
|
2695
|
+
*/
|
|
2696
|
+
nullable?: boolean;
|
|
2685
2697
|
};
|
|
2686
2698
|
declare class TypeDateComponent<D = any> implements DropdownComponent {
|
|
2687
2699
|
private dateAdapter;
|
|
2688
2700
|
private dateFormats;
|
|
2689
2701
|
readonly renderedValue: BehaviorSubject<string>;
|
|
2690
2702
|
readonly configuration: Required<TypeDateConfiguration<D>>;
|
|
2691
|
-
readonly operatorCtrl: FormControl<
|
|
2703
|
+
readonly operatorCtrl: FormControl<PossibleComparableOperatorKeys>;
|
|
2692
2704
|
readonly valueCtrl: FormControl<D | null>;
|
|
2693
2705
|
readonly todayCtrl: FormControl<boolean | null>;
|
|
2706
|
+
requireValueCtrl: boolean;
|
|
2694
2707
|
readonly operators: readonly PossibleComparableOperator[];
|
|
2695
2708
|
readonly form: FormGroup<{
|
|
2696
|
-
operator: FormControl<
|
|
2709
|
+
operator: FormControl<PossibleComparableOperatorKeys>;
|
|
2697
2710
|
value: FormControl<D | null>;
|
|
2698
2711
|
today: FormControl<boolean | null>;
|
|
2699
2712
|
}>;
|
|
@@ -2703,6 +2716,7 @@ declare class TypeDateComponent<D = any> implements DropdownComponent {
|
|
|
2703
2716
|
isValid(): boolean;
|
|
2704
2717
|
isDirty(): boolean;
|
|
2705
2718
|
private reloadCondition;
|
|
2719
|
+
private conditionToOperatorKey;
|
|
2706
2720
|
private setTodayOrDate;
|
|
2707
2721
|
private initValidators;
|
|
2708
2722
|
private getDayAfter;
|
|
@@ -4268,5 +4282,5 @@ declare const naturalProviders: ApplicationConfig['providers'];
|
|
|
4268
4282
|
*/
|
|
4269
4283
|
declare function graphqlQuerySigner(key: string): HttpInterceptorFn;
|
|
4270
4284
|
|
|
4271
|
-
export { AvatarService, InvalidWithValueStateMatcher$1 as InvalidWithValueStateMatcher, LOCAL_STORAGE, NATURAL_DROPDOWN_DATA, NATURAL_ICONS_CONFIG, NATURAL_PERSISTENCE_VALIDATOR, NATURAL_SEO_CONFIG, NaturalAbstractDetail, NaturalAbstractEditableList, NaturalAbstractList, NaturalAbstractModelService, NaturalAbstractNavigableList, NaturalAbstractPanel, NaturalAlertService, NaturalAvatarComponent, NaturalBackgroundDensityDirective, NaturalCapitalizePipe, NaturalColumnsPickerComponent, NaturalConfirmComponent, NaturalDataSource, NaturalDebounceService, NaturalDetailHeaderComponent, NaturalDialogTriggerComponent, NaturalDropdownRef, NaturalEllipsisPipe, NaturalEnumPipe, NaturalEnumService, NaturalErrorHandler, NaturalErrorMessagePipe, NaturalFileComponent, NaturalFileDropDirective, NaturalFileSelectDirective, NaturalFileService, NaturalFixedButtonComponent, NaturalFixedButtonDetailComponent, NaturalHierarchicSelectorComponent, NaturalHierarchicSelectorDialogComponent, NaturalHierarchicSelectorDialogService, NaturalHierarchicSelectorService, NaturalHttpPrefixDirective, NaturalIconDirective, NaturalLinkMutationService, NaturalLinkableTabDirective, NaturalLoggerConfigExtra, NaturalLoggerConfigUrl, NaturalMatomoService, NaturalMemoryStorage, NaturalPanelsComponent, NaturalPanelsService, NaturalPersistenceService, NaturalQueryVariablesManager, NaturalRelationsComponent, NaturalSearchComponent, NaturalSelectComponent, NaturalSelectEnumComponent, NaturalSelectHierarchicComponent, NaturalSeoService, NaturalSidenavComponent, NaturalSidenavContainerComponent, NaturalSidenavContentComponent, NaturalSidenavService, NaturalSidenavStackService, NaturalSrcDensityDirective, NaturalStampComponent, NaturalSwissParsingDateAdapter, NaturalTableButtonComponent, NaturalTimeAgoPipe, NetworkActivityService, PanelsHooksConfig, SESSION_STORAGE, SortingOrder, TypeBooleanComponent, TypeDateComponent, TypeDateRangeComponent, TypeHierarchicSelectorComponent, TypeNaturalSelectComponent, TypeNumberComponent, TypeOptionsComponent, TypeSelectComponent, TypeTextComponent, activityInterceptor, available, cancellableTimeout, cloneDeepButSkipFile, collectErrors, commonImageMimeTypes, copyToClipboard, createHttpLink, debug, decimal, deepFreeze, deliverableEmail, ensureHttpPrefix, fallbackIfNoOpenedPanels, formatIsoDate, formatIsoDateTime, fromUrl, getForegroundColor, graphqlQuerySigner, greaterThan, hasFilesAndProcessDate, ifValid, integer, isFile, localStorageFactory, localStorageProvider, makePlural, memoryLocalStorageProvider, memorySessionStorageProvider, mergeOverrideArray, money, naturalPanelsUrlMatcher, naturalProviders, nfcCardHex, onHistoryEvent, possibleComparableOperators, provideErrorHandler, provideIcons, providePanels, provideSeo, relationsToIds, replaceObjectKeepingReference, replaceOperatorByField, replaceOperatorByName, rgbToHex, sessionStorageFactory, sessionStorageProvider, time, toGraphQLDoctrineFilter, toNavigationParameters, toUrl, unique, upperCaseFirstLetter, url, urlPattern, validTlds, validateAllFormControls, validateColumns, validatePagination, validateSorting, wrapLike, wrapPrefix, wrapSuffix };
|
|
4272
|
-
export type { AvailableColumn, Button, DropdownComponent, DropdownFacet, ExtractResolve, ExtractTall, ExtractTallOne, ExtractTcreate, ExtractTdelete, ExtractTone, ExtractTupdate, ExtractVall, ExtractVcreate, ExtractVdelete, ExtractVone, ExtractVupdate, Facet, FileModel, FileSelection, Filter, FilterGroupConditionField, FlagFacet, FormAsyncValidators, FormControls, FormValidators, HierarchicDialogConfig, HierarchicDialogResult, HierarchicFilterConfiguration$1 as HierarchicFilterConfiguration, HierarchicFiltersConfiguration$1 as HierarchicFiltersConfiguration, IEnum, InvalidFile, LinkableObject, Literal, NameOrFullName, NaturalConfirmData, NaturalDialogTriggerProvidedData, NaturalDialogTriggerRedirectionValues, NaturalDialogTriggerRoutingData, NaturalDropdownData, NaturalHierarchicConfiguration, NaturalIconConfig, NaturalIconsConfig, NaturalLoggerExtra, NaturalLoggerType, NaturalPanelConfig, NaturalPanelData, NaturalPanelResolves, NaturalPanelsBeforeOpenPanel, NaturalPanelsHooksConfig, NaturalPanelsRouteConfig, NaturalPanelsRouterRule, NaturalPanelsRoutesConfig, NaturalSearchFacets, NaturalSearchSelection, NaturalSearchSelections, NaturalSeo, NaturalSeoBasic, NaturalSeoCallback, NaturalSeoConfig, NaturalSeoResolve, NaturalSeoResolveData, NaturalStorage, NavigableItem, OrganizedModelSelection, PaginatedData, PaginationInput, PersistenceValidator,
|
|
4285
|
+
export { AvatarService, InvalidWithValueStateMatcher$1 as InvalidWithValueStateMatcher, LOCAL_STORAGE, NATURAL_DROPDOWN_DATA, NATURAL_ICONS_CONFIG, NATURAL_PERSISTENCE_VALIDATOR, NATURAL_SEO_CONFIG, NaturalAbstractDetail, NaturalAbstractEditableList, NaturalAbstractList, NaturalAbstractModelService, NaturalAbstractNavigableList, NaturalAbstractPanel, NaturalAlertService, NaturalAvatarComponent, NaturalBackgroundDensityDirective, NaturalCapitalizePipe, NaturalColumnsPickerComponent, NaturalConfirmComponent, NaturalDataSource, NaturalDebounceService, NaturalDetailHeaderComponent, NaturalDialogTriggerComponent, NaturalDropdownRef, NaturalEllipsisPipe, NaturalEnumPipe, NaturalEnumService, NaturalErrorHandler, NaturalErrorMessagePipe, NaturalFileComponent, NaturalFileDropDirective, NaturalFileSelectDirective, NaturalFileService, NaturalFixedButtonComponent, NaturalFixedButtonDetailComponent, NaturalHierarchicSelectorComponent, NaturalHierarchicSelectorDialogComponent, NaturalHierarchicSelectorDialogService, NaturalHierarchicSelectorService, NaturalHttpPrefixDirective, NaturalIconDirective, NaturalLinkMutationService, NaturalLinkableTabDirective, NaturalLoggerConfigExtra, NaturalLoggerConfigUrl, NaturalMatomoService, NaturalMemoryStorage, NaturalPanelsComponent, NaturalPanelsService, NaturalPersistenceService, NaturalQueryVariablesManager, NaturalRelationsComponent, NaturalSearchComponent, NaturalSelectComponent, NaturalSelectEnumComponent, NaturalSelectHierarchicComponent, NaturalSeoService, NaturalSidenavComponent, NaturalSidenavContainerComponent, NaturalSidenavContentComponent, NaturalSidenavService, NaturalSidenavStackService, NaturalSrcDensityDirective, NaturalStampComponent, NaturalSwissParsingDateAdapter, NaturalTableButtonComponent, NaturalTimeAgoPipe, NetworkActivityService, PanelsHooksConfig, SESSION_STORAGE, SortingOrder, TypeBooleanComponent, TypeDateComponent, TypeDateRangeComponent, TypeHierarchicSelectorComponent, TypeNaturalSelectComponent, TypeNumberComponent, TypeOptionsComponent, TypeSelectComponent, TypeTextComponent, activityInterceptor, available, cancellableTimeout, cloneDeepButSkipFile, collectErrors, commonImageMimeTypes, copyToClipboard, createHttpLink, debug, decimal, deepFreeze, deliverableEmail, ensureHttpPrefix, fallbackIfNoOpenedPanels, formatIsoDate, formatIsoDateTime, fromUrl, getForegroundColor, graphqlQuerySigner, greaterThan, hasFilesAndProcessDate, ifValid, integer, isFile, localStorageFactory, localStorageProvider, makePlural, memoryLocalStorageProvider, memorySessionStorageProvider, mergeOverrideArray, money, naturalPanelsUrlMatcher, naturalProviders, nfcCardHex, onHistoryEvent, possibleComparableOperators, possibleNullComparableOperators, provideErrorHandler, provideIcons, providePanels, provideSeo, relationsToIds, replaceObjectKeepingReference, replaceOperatorByField, replaceOperatorByName, rgbToHex, sessionStorageFactory, sessionStorageProvider, time, toGraphQLDoctrineFilter, toNavigationParameters, toUrl, unique, upperCaseFirstLetter, url, urlPattern, validTlds, validateAllFormControls, validateColumns, validatePagination, validateSorting, wrapLike, wrapPrefix, wrapSuffix };
|
|
4286
|
+
export type { AvailableColumn, Button, DropdownComponent, DropdownFacet, ExtractResolve, ExtractTall, ExtractTallOne, ExtractTcreate, ExtractTdelete, ExtractTone, ExtractTupdate, ExtractVall, ExtractVcreate, ExtractVdelete, ExtractVone, ExtractVupdate, Facet, FileModel, FileSelection, Filter, FilterGroupConditionField, FlagFacet, FormAsyncValidators, FormControls, FormValidators, HierarchicDialogConfig, HierarchicDialogResult, HierarchicFilterConfiguration$1 as HierarchicFilterConfiguration, HierarchicFiltersConfiguration$1 as HierarchicFiltersConfiguration, IEnum, InvalidFile, LinkableObject, Literal, NameOrFullName, NaturalConfirmData, NaturalDialogTriggerProvidedData, NaturalDialogTriggerRedirectionValues, NaturalDialogTriggerRoutingData, NaturalDropdownData, NaturalHierarchicConfiguration, NaturalIconConfig, NaturalIconsConfig, NaturalLoggerExtra, NaturalLoggerType, NaturalPanelConfig, NaturalPanelData, NaturalPanelResolves, NaturalPanelsBeforeOpenPanel, NaturalPanelsHooksConfig, NaturalPanelsRouteConfig, NaturalPanelsRouterRule, NaturalPanelsRoutesConfig, NaturalSearchFacets, NaturalSearchSelection, NaturalSearchSelections, NaturalSeo, NaturalSeoBasic, NaturalSeoCallback, NaturalSeoConfig, NaturalSeoResolve, NaturalSeoResolveData, NaturalStorage, NavigableItem, OrganizedModelSelection, PaginatedData, PaginationInput, PersistenceValidator, PossibleComparableOperator, PossibleComparableOperatorKeys, QueryVariables, ResolvedData, Sorting, SubButton, TypeBooleanConfiguration, TypeDateConfiguration, TypeDateRangeConfiguration, TypeHierarchicSelectorConfiguration, TypeNumberConfiguration, TypeOption, TypeOptionsConfiguration, TypeSelectConfiguration, TypeSelectItem, TypeSelectNaturalConfiguration, VariablesWithInput, WithId };
|