@ecodev/natural 66.0.4 → 66.0.5
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 +19 -19
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/index.d.ts +6 -5
- package/package.json +1 -1
- package/src/lib/_natural.scss +30 -3
package/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { Sort } from '@angular/material/sort';
|
|
|
18
18
|
import { HttpLink, HttpBatchLink, Options } from 'apollo-angular/http';
|
|
19
19
|
import { ReadonlyDeep } from 'type-fest';
|
|
20
20
|
import { HttpInterceptorFn } from '@angular/common/http';
|
|
21
|
-
import { NativeDateAdapter,
|
|
21
|
+
import { NativeDateAdapter, ErrorStateMatcher } from '@angular/material/core';
|
|
22
22
|
import { MatSelectionList } from '@angular/material/list';
|
|
23
23
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
24
24
|
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
@@ -665,6 +665,7 @@ type UntypedModelService = NaturalAbstractModelService<any, any, any, any, any,
|
|
|
665
665
|
type ResolvedData<T extends ResolveData> = {
|
|
666
666
|
readonly [KeyType in keyof Pick<T, keyof T>]: ObservedValueOf<ReturnType<Pick<T, keyof T>[KeyType]>>;
|
|
667
667
|
};
|
|
668
|
+
type NatPalette = 'primary' | 'tertiary' | 'error' | undefined;
|
|
668
669
|
|
|
669
670
|
type LinkableObject = {
|
|
670
671
|
id: string;
|
|
@@ -1908,7 +1909,7 @@ declare class NaturalColumnsPickerComponent implements OnChanges {
|
|
|
1908
1909
|
updateColumns(): void;
|
|
1909
1910
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1910
1911
|
defaultTrue(value: boolean | undefined): boolean;
|
|
1911
|
-
color(button: Button):
|
|
1912
|
+
color(button: Button): NatPalette | null;
|
|
1912
1913
|
useCheckbox(button: Button): boolean;
|
|
1913
1914
|
needMargin(button?: Button | null): string;
|
|
1914
1915
|
someVisibleButtons(): boolean;
|
|
@@ -3032,7 +3033,7 @@ declare const commonImageMimeTypes = "image/avif,image/bmp,image/x-ms-bmp,image/
|
|
|
3032
3033
|
declare class NaturalFixedButtonComponent {
|
|
3033
3034
|
readonly icon: i0.InputSignal<string>;
|
|
3034
3035
|
readonly link: i0.InputSignal<string | readonly any[] | _angular_router.UrlTree | null | undefined>;
|
|
3035
|
-
readonly color: i0.InputSignal<
|
|
3036
|
+
readonly color: i0.InputSignal<NatPalette>;
|
|
3036
3037
|
readonly disabled: i0.InputSignal<boolean>;
|
|
3037
3038
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFixedButtonComponent, never>;
|
|
3038
3039
|
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalFixedButtonComponent, "natural-fixed-button", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -4053,7 +4054,7 @@ declare class NaturalTableButtonComponent {
|
|
|
4053
4054
|
readonly preserveFragment: i0.InputSignal<boolean>;
|
|
4054
4055
|
readonly disabled: i0.InputSignal<boolean>;
|
|
4055
4056
|
readonly appearance: i0.InputSignal<MatButtonAppearance>;
|
|
4056
|
-
readonly color: i0.InputSignal<
|
|
4057
|
+
readonly color: i0.InputSignal<NatPalette>;
|
|
4057
4058
|
protected readonly buttonClick$: Subject<MouseEvent>;
|
|
4058
4059
|
readonly buttonClick: i0.OutputRef<MouseEvent>;
|
|
4059
4060
|
protected readonly type: i0.Signal<"none" | "href" | "routerLinkOrClick">;
|
|
@@ -4310,4 +4311,4 @@ declare const naturalProviders: ApplicationConfig['providers'];
|
|
|
4310
4311
|
declare function graphqlQuerySigner(key: string): HttpInterceptorFn;
|
|
4311
4312
|
|
|
4312
4313
|
export { AvatarService, ColorScheme, 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, NaturalColorSchemerComponent, 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, NaturalThemeChangerComponent, NaturalThemeService, 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, provideThemes, relationsToIds, replaceObjectKeepingReference, replaceOperatorByField, replaceOperatorByName, rgbToHex, sessionStorageFactory, sessionStorageProvider, time, toGraphQLDoctrineFilter, toNavigationParameters, toUrl, unique, upperCaseFirstLetter, url, urlPattern, validTlds, validateAllFormControls, validateColumns, validatePagination, validateSorting, wrapLike, wrapPrefix, wrapSuffix };
|
|
4313
|
-
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, PossibleComparableOpertorKeys, QueryVariables, ResolvedData, Sorting, SubButton, TypeBooleanConfiguration, TypeDateConfiguration, TypeDateRangeConfiguration, TypeHierarchicSelectorConfiguration, TypeNumberConfiguration, TypeOption, TypeOptionsConfiguration, TypeSelectConfiguration, TypeSelectItem, TypeSelectNaturalConfiguration, VariablesWithInput, WithId };
|
|
4314
|
+
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, NatPalette, 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, PossibleComparableOpertorKeys, QueryVariables, ResolvedData, Sorting, SubButton, TypeBooleanConfiguration, TypeDateConfiguration, TypeDateRangeConfiguration, TypeHierarchicSelectorConfiguration, TypeNumberConfiguration, TypeOption, TypeOptionsConfiguration, TypeSelectConfiguration, TypeSelectItem, TypeSelectNaturalConfiguration, VariablesWithInput, WithId };
|
package/package.json
CHANGED
package/src/lib/_natural.scss
CHANGED
|
@@ -190,6 +190,7 @@ h6 {
|
|
|
190
190
|
|
|
191
191
|
// Nice todo angular 21 : replace tonal by m3-utils.color-with-opacity(map.get($system, on-surface), 12%),
|
|
192
192
|
[matButton] {
|
|
193
|
+
&.mat-error,
|
|
193
194
|
&[color='error'] {
|
|
194
195
|
@include mat.button-overrides(
|
|
195
196
|
(
|
|
@@ -206,6 +207,7 @@ h6 {
|
|
|
206
207
|
);
|
|
207
208
|
}
|
|
208
209
|
|
|
210
|
+
&.mat-tertiary,
|
|
209
211
|
&[color='tertiary'] {
|
|
210
212
|
@include mat.button-overrides(
|
|
211
213
|
(
|
|
@@ -223,8 +225,21 @@ h6 {
|
|
|
223
225
|
}
|
|
224
226
|
}
|
|
225
227
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
+
.mdc-fab,
|
|
229
|
+
.mdc-mini-fab {
|
|
230
|
+
&.mat-primary,
|
|
231
|
+
&[color='primary'] {
|
|
232
|
+
@include mat.fab-overrides(
|
|
233
|
+
(
|
|
234
|
+
container-color: var(--mat-sys-primary-container),
|
|
235
|
+
foreground-color: var(--mat-sys-on-primary-container),
|
|
236
|
+
small-container-color: var(--mat-sys-primary-container),
|
|
237
|
+
small-foreground-color: var(--mat-sys-on-primary-container),
|
|
238
|
+
)
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&.mat-error,
|
|
228
243
|
&[color='error'] {
|
|
229
244
|
@include mat.fab-overrides(
|
|
230
245
|
(
|
|
@@ -274,7 +289,17 @@ h6 {
|
|
|
274
289
|
}
|
|
275
290
|
}
|
|
276
291
|
|
|
277
|
-
|
|
292
|
+
.mdc-icon-button {
|
|
293
|
+
&.mat-primary,
|
|
294
|
+
&[color='primary'] {
|
|
295
|
+
@include mat.icon-button-overrides(
|
|
296
|
+
(
|
|
297
|
+
icon-color: var(--mat-sys-primary-container),
|
|
298
|
+
)
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&.mat-error,
|
|
278
303
|
&[color='error'] {
|
|
279
304
|
@include mat.icon-button-overrides(
|
|
280
305
|
(
|
|
@@ -282,6 +307,8 @@ h6 {
|
|
|
282
307
|
)
|
|
283
308
|
);
|
|
284
309
|
}
|
|
310
|
+
|
|
311
|
+
.mat-tertiary,
|
|
285
312
|
&[color='tertiary'] {
|
|
286
313
|
@include mat.icon-button-overrides(
|
|
287
314
|
(
|