@ecodev/natural 58.0.7 → 60.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/classes/abstract-controller.mjs +6 -5
- package/esm2022/lib/classes/abstract-detail.mjs +7 -6
- package/esm2022/lib/classes/abstract-editable-list.mjs +6 -5
- package/esm2022/lib/classes/abstract-list.mjs +6 -5
- package/esm2022/lib/classes/abstract-navigable-list.mjs +6 -5
- package/esm2022/lib/classes/cumulative-changes.mjs +4 -4
- package/esm2022/lib/classes/signing.mjs +2 -2
- package/esm2022/lib/classes/tld.mjs +1 -1
- package/esm2022/lib/classes/utility.mjs +2 -2
- package/esm2022/lib/directives/http-prefix.directive.mjs +3 -3
- package/esm2022/lib/modules/alert/alert.service.mjs +3 -3
- package/esm2022/lib/modules/alert/confirm.component.mjs +3 -3
- package/esm2022/lib/modules/avatar/component/avatar.component.mjs +4 -4
- package/esm2022/lib/modules/avatar/service/avatar.service.mjs +3 -3
- package/esm2022/lib/modules/avatar/sources/gravatar.mjs +2 -2
- package/esm2022/lib/modules/columns-picker/columns-picker.component.mjs +4 -4
- package/esm2022/lib/modules/common/directives/linkable-tab.directive.mjs +3 -3
- package/esm2022/lib/modules/common/directives/src-density.directive.mjs +5 -5
- package/esm2022/lib/modules/common/pipes/capitalize.pipe.mjs +3 -3
- package/esm2022/lib/modules/common/pipes/ellipsis.pipe.mjs +3 -3
- package/esm2022/lib/modules/common/pipes/enum.pipe.mjs +3 -3
- package/esm2022/lib/modules/common/pipes/time-ago.pipe.mjs +3 -3
- package/esm2022/lib/modules/common/public-api.mjs +1 -2
- package/esm2022/lib/modules/common/services/memory-storage.mjs +3 -3
- package/esm2022/lib/modules/common/services/seo.service.mjs +4 -4
- package/esm2022/lib/modules/detail-header/detail-header.component.mjs +3 -3
- package/esm2022/lib/modules/dialog-trigger/dialog-trigger.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/abstract-association-select-component.directive.mjs +8 -7
- package/esm2022/lib/modules/dropdown-components/type-boolean/type-boolean.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/type-date/type-date.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/type-date-range/type-date-range.component.mjs +5 -5
- package/esm2022/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/type-number/type-number.component.mjs +5 -5
- package/esm2022/lib/modules/dropdown-components/type-options/type-options.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/type-select/type-select.component.mjs +7 -7
- package/esm2022/lib/modules/dropdown-components/type-text/type-text.component.mjs +3 -3
- package/esm2022/lib/modules/dropdown-components/types.mjs +1 -1
- package/esm2022/lib/modules/file/abstract-file.mjs +6 -5
- package/esm2022/lib/modules/file/component/file.component.mjs +9 -7
- package/esm2022/lib/modules/file/file-drop.directive.mjs +3 -3
- package/esm2022/lib/modules/file/file-select.directive.mjs +3 -3
- package/esm2022/lib/modules/file/file.service.mjs +3 -3
- package/esm2022/lib/modules/fixed-button/fixed-button.component.mjs +3 -3
- package/esm2022/lib/modules/fixed-button-detail/fixed-button-detail.component.mjs +3 -3
- package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.mjs +3 -3
- package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.service.mjs +3 -3
- package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.mjs +3 -3
- package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service.mjs +3 -3
- package/esm2022/lib/modules/icon/icon.directive.mjs +3 -3
- package/esm2022/lib/modules/logger/error-handler.mjs +3 -3
- package/esm2022/lib/modules/matomo/matomo.service.mjs +6 -8
- package/esm2022/lib/modules/panels/abstract-panel.mjs +6 -5
- package/esm2022/lib/modules/panels/panels.component.mjs +3 -3
- package/esm2022/lib/modules/panels/panels.service.mjs +3 -3
- package/esm2022/lib/modules/relations/relations.component.mjs +5 -5
- package/esm2022/lib/modules/search/classes/transformers.mjs +4 -4
- package/esm2022/lib/modules/search/dropdown-container/dropdown-container.component.mjs +3 -3
- package/esm2022/lib/modules/search/dropdown-container/dropdown.service.mjs +3 -3
- package/esm2022/lib/modules/search/facet-selector/facet-selector.component.mjs +3 -3
- package/esm2022/lib/modules/search/group/group.component.mjs +3 -3
- package/esm2022/lib/modules/search/input/input.component.mjs +3 -3
- package/esm2022/lib/modules/search/search/search.component.mjs +3 -3
- package/esm2022/lib/modules/select/abstract-select.component.mjs +6 -5
- package/esm2022/lib/modules/select/select/select.component.mjs +3 -3
- package/esm2022/lib/modules/select/select-enum/select-enum.component.mjs +3 -3
- package/esm2022/lib/modules/select/select-hierarchic/select-hierarchic.component.mjs +5 -5
- package/esm2022/lib/modules/sidenav/sidenav/sidenav.component.mjs +3 -3
- package/esm2022/lib/modules/sidenav/sidenav-container/sidenav-container.component.mjs +3 -3
- package/esm2022/lib/modules/sidenav/sidenav-content/sidenav-content.component.mjs +3 -3
- package/esm2022/lib/modules/sidenav/sidenav-stack.service.mjs +3 -3
- package/esm2022/lib/modules/sidenav/sidenav.service.mjs +3 -3
- package/esm2022/lib/modules/stamp/stamp.component.mjs +6 -6
- package/esm2022/lib/modules/table-button/table-button.component.mjs +6 -6
- package/esm2022/lib/services/debounce.service.mjs +3 -3
- package/esm2022/lib/services/enum.service.mjs +3 -3
- package/esm2022/lib/services/link-mutation.service.mjs +5 -5
- package/esm2022/lib/services/persistence.service.mjs +3 -3
- package/esm2022/lib/services/swiss-parsing-date-adapter.service.mjs +3 -3
- package/fesm2022/ecodev-natural.mjs +263 -272
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/classes/abstract-controller.d.ts +1 -1
- package/lib/classes/abstract-detail.d.ts +1 -1
- package/lib/classes/abstract-editable-list.d.ts +1 -1
- package/lib/classes/abstract-list.d.ts +1 -1
- package/lib/classes/abstract-navigable-list.d.ts +1 -1
- package/lib/classes/cumulative-changes.d.ts +2 -3
- package/lib/classes/tld.d.ts +1 -1
- package/lib/modules/columns-picker/columns-picker.component.d.ts +2 -2
- package/lib/modules/common/public-api.d.ts +0 -1
- package/lib/modules/common/services/seo.service.d.ts +1 -1
- package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts +1 -1
- package/lib/modules/dropdown-components/types.d.ts +2 -2
- package/lib/modules/file/abstract-file.d.ts +1 -1
- package/lib/modules/matomo/matomo.service.d.ts +2 -2
- package/lib/modules/panels/abstract-panel.d.ts +1 -1
- package/lib/modules/search/classes/transformers.d.ts +3 -3
- package/lib/modules/select/abstract-select.component.d.ts +1 -1
- package/package.json +10 -10
- package/src/lib/_natural.theme.scss +9 -9
- package/src/lib/modules/alert/_alert.theme.scss +2 -2
- package/src/lib/modules/file/component/_file.theme.scss +5 -5
- package/src/lib/modules/search/dropdown-container/_dropdown-container.theme.scss +1 -1
- package/src/lib/styles/_table.scss +2 -2
- package/esm2022/lib/modules/common/pipes/swiss-date.pipe.mjs +0 -21
- package/lib/modules/common/pipes/swiss-date.pipe.d.ts +0 -12
|
@@ -17,5 +17,5 @@ export declare class NaturalAbstractController implements OnDestroy {
|
|
|
17
17
|
protected readonly ngUnsubscribe: Subject<void>;
|
|
18
18
|
ngOnDestroy(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractController, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractController, never, never, {}, {}, never, never,
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractController, never, never, {}, {}, never, never, true, never>;
|
|
21
21
|
}
|
|
@@ -109,6 +109,6 @@ export declare class NaturalAbstractDetail<TService extends NaturalAbstractModel
|
|
|
109
109
|
*/
|
|
110
110
|
protected initForm(): void;
|
|
111
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractDetail<any, any>, never>;
|
|
112
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractDetail<any, any>, never, never, {}, {}, never, never,
|
|
112
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractDetail<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
113
113
|
}
|
|
114
114
|
export {};
|
|
@@ -66,5 +66,5 @@ export declare class NaturalAbstractEditableList<TService extends NaturalAbstrac
|
|
|
66
66
|
*/
|
|
67
67
|
validateForm(): void;
|
|
68
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractEditableList<any, any>, never>;
|
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractEditableList<any, any>, never, never, {}, {}, never, never,
|
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractEditableList<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
70
70
|
}
|
|
@@ -182,6 +182,6 @@ export declare class NaturalAbstractList<TService extends NaturalAbstractModelSe
|
|
|
182
182
|
private applyForcedVariables;
|
|
183
183
|
selectColumns(columns: string[]): void;
|
|
184
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractList<any, any>, never>;
|
|
185
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractList<any, any>, never, never, { "persistSearch": { "alias": "persistSearch"; "required": false; }; "availableColumns": { "alias": "availableColumns"; "required": false; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; }; "forcedVariables": { "alias": "forcedVariables"; "required": false; }; }, {}, never, never,
|
|
185
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractList<any, any>, never, never, { "persistSearch": { "alias": "persistSearch"; "required": false; }; "availableColumns": { "alias": "availableColumns"; "required": false; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; }; "forcedVariables": { "alias": "forcedVariables"; "required": false; }; }, {}, never, never, true, never>;
|
|
186
186
|
}
|
|
187
187
|
export {};
|
|
@@ -49,6 +49,6 @@ export declare class NaturalAbstractNavigableList<TService extends NaturalAbstra
|
|
|
49
49
|
*/
|
|
50
50
|
protected getBreadcrumb(item: BreadcrumbItem): BreadcrumbItem[];
|
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractNavigableList<any>, never>;
|
|
52
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractNavigableList<any>, never, never, { "ancestorRelationName": { "alias": "ancestorRelationName"; "required": false; }; }, {}, never, never,
|
|
52
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractNavigableList<any>, never, never, { "ancestorRelationName": { "alias": "ancestorRelationName"; "required": false; }; }, {}, never, never, true, never>;
|
|
53
53
|
}
|
|
54
54
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Literal } from '../types/types';
|
|
2
|
-
import { ReadonlyDeep } from 'type-fest';
|
|
3
2
|
/**
|
|
4
3
|
* Cumulate all changes made to an object over time
|
|
5
4
|
*/
|
|
@@ -20,9 +19,9 @@ export declare class CumulativeChanges<T extends Literal> {
|
|
|
20
19
|
* changes.differences({a: 1, b: 3}); // => {b: 3}
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
|
-
differences(newValues:
|
|
22
|
+
differences(newValues: Readonly<T>): Partial<T> | null;
|
|
24
23
|
/**
|
|
25
24
|
* Commit the given new values, so they are not treated as differences anymore.
|
|
26
25
|
*/
|
|
27
|
-
commit(newValues:
|
|
26
|
+
commit(newValues: Readonly<T>): void;
|
|
28
27
|
}
|
package/lib/classes/tld.d.ts
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* See ftp://data.iana.org/TLD/tlds-alpha-by-domain.txt List of all TLDs by domain
|
|
8
8
|
* See http://www.iana.org/domains/root/db/ Official list of supported TLDs
|
|
9
9
|
*/
|
|
10
|
-
export declare const validTlds:
|
|
10
|
+
export declare const validTlds: readonly string[];
|
|
@@ -7,11 +7,11 @@ export declare class NaturalColumnsPickerComponent implements OnChanges, OnDestr
|
|
|
7
7
|
private readonly breakpointObserver;
|
|
8
8
|
private _selections?;
|
|
9
9
|
private _availableColumns;
|
|
10
|
-
buttons: Readonly<
|
|
10
|
+
buttons: readonly Readonly<Button>[] | null;
|
|
11
11
|
/**
|
|
12
12
|
* Set all the columns that are available.
|
|
13
13
|
*/
|
|
14
|
-
set availableColumns(columns: Readonly<
|
|
14
|
+
set availableColumns(columns: readonly Readonly<AvailableColumn>[] | undefined);
|
|
15
15
|
/**
|
|
16
16
|
* Set the columns that we would like to select but might be unavailable.
|
|
17
17
|
*
|
|
@@ -2,7 +2,6 @@ export * from './directives/linkable-tab.directive';
|
|
|
2
2
|
export * from './pipes/capitalize.pipe';
|
|
3
3
|
export * from './pipes/ellipsis.pipe';
|
|
4
4
|
export * from './pipes/enum.pipe';
|
|
5
|
-
export * from './pipes/swiss-date.pipe';
|
|
6
5
|
export { NaturalTimeAgoPipe } from './pipes/time-ago.pipe';
|
|
7
6
|
export * from './services/memory-storage';
|
|
8
7
|
export { NaturalSrcDensityDirective } from './directives/src-density.directive';
|
|
@@ -82,7 +82,7 @@ type NaturalSeoConfigPlain = {
|
|
|
82
82
|
* Used to generate alternative tags
|
|
83
83
|
* <link rel="alternate" hreflang="en" href="https://www.example.com/en/page">
|
|
84
84
|
*/
|
|
85
|
-
readonly languages?:
|
|
85
|
+
readonly languages?: readonly string[];
|
|
86
86
|
};
|
|
87
87
|
export type NaturalSeoConfig = NaturalSeoConfigPlain | Observable<NaturalSeoConfigPlain>;
|
|
88
88
|
export declare const NATURAL_SEO_CONFIG: InjectionToken<NaturalSeoConfig>;
|
package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export declare abstract class AbstractAssociationSelectComponent<C> implements D
|
|
|
31
31
|
protected conditionToOperatorKey(condition: FilterGroupConditionField): PossibleDiscreteOperatorKeys;
|
|
32
32
|
protected operatorKeyToCondition(key: PossibleDiscreteOperatorKeys, values: string[]): FilterGroupConditionField;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAssociationSelectComponent<any>, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAssociationSelectComponent<any>, never, never, {}, {}, never, never,
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAssociationSelectComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
35
35
|
}
|
|
@@ -4,10 +4,10 @@ export type PossibleComparableOperator = {
|
|
|
4
4
|
key: PossibleComparableOpertorKeys;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const possibleComparableOperators:
|
|
7
|
+
export declare const possibleComparableOperators: readonly PossibleComparableOperator[];
|
|
8
8
|
export type PossibleDiscreteOperatorKeys = 'is' | 'isnot' | 'any' | 'none';
|
|
9
9
|
export type PossibleDiscreteOperator = {
|
|
10
10
|
key: PossibleDiscreteOperatorKeys;
|
|
11
11
|
label: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const possibleDiscreteOperators:
|
|
13
|
+
export declare const possibleDiscreteOperators: readonly PossibleDiscreteOperator[];
|
|
@@ -90,5 +90,5 @@ export declare abstract class NaturalAbstractFile extends NaturalAbstractControl
|
|
|
90
90
|
onChange(event: Event): void;
|
|
91
91
|
private validate;
|
|
92
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractFile, never>;
|
|
93
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractFile, never, never, { "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "fileSelectionDisabled": { "alias": "fileSelectionDisabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "broadcast": { "alias": "broadcast"; "required": false; }; }, { "fileChange": "fileChange"; "filesChange": "filesChange"; }, never, never,
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractFile, never, never, { "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "fileSelectionDisabled": { "alias": "fileSelectionDisabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "broadcast": { "alias": "broadcast"; "required": false; }; }, { "fileChange": "fileChange"; "filesChange": "filesChange"; }, never, never, true, never>;
|
|
94
94
|
}
|
|
@@ -17,13 +17,13 @@ export type PaqItem = [MatomoFunction, ...(number | string | null)[]];
|
|
|
17
17
|
export declare class NaturalMatomoService {
|
|
18
18
|
private readonly router;
|
|
19
19
|
private readonly document;
|
|
20
|
-
readonly platformId:
|
|
20
|
+
readonly platformId: object;
|
|
21
21
|
private readonly titleService;
|
|
22
22
|
private subscription;
|
|
23
23
|
private readonly isBrowser;
|
|
24
24
|
private readonly window;
|
|
25
25
|
private referrerUrl;
|
|
26
|
-
constructor(router: Router, document: Document, platformId:
|
|
26
|
+
constructor(router: Router, document: Document, platformId: object, titleService: Title);
|
|
27
27
|
/**
|
|
28
28
|
* Inject Matomo script and start tracking all page navigation
|
|
29
29
|
*/
|
|
@@ -32,5 +32,5 @@ export declare class NaturalAbstractPanel extends NaturalAbstractController {
|
|
|
32
32
|
*/
|
|
33
33
|
initPanel(panelData: NaturalPanelData): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractPanel, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractPanel, never, never, {}, {}, never, never,
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractPanel, never, never, {}, {}, never, never, true, never>;
|
|
36
36
|
}
|
|
@@ -37,7 +37,7 @@ export declare function wrapPrefix(selection: NaturalSearchSelection): NaturalSe
|
|
|
37
37
|
export declare function wrapSuffix(selection: NaturalSearchSelection): NaturalSearchSelection;
|
|
38
38
|
/**
|
|
39
39
|
* Replace the operator name (usually "like", "in" or "between") with the
|
|
40
|
-
* attribute "field"
|
|
40
|
+
* attribute "field" defined in the configuration
|
|
41
41
|
*
|
|
42
42
|
* So:
|
|
43
43
|
*
|
|
@@ -50,7 +50,7 @@ export declare function wrapSuffix(selection: NaturalSearchSelection): NaturalSe
|
|
|
50
50
|
export declare function replaceOperatorByField(selection: NaturalSearchSelection): NaturalSearchSelection;
|
|
51
51
|
/**
|
|
52
52
|
* Replace the operator name (usually "like", "in" or "between") with the
|
|
53
|
-
*
|
|
53
|
+
* attribute "name" defined in the configuration
|
|
54
54
|
*
|
|
55
55
|
* So:
|
|
56
56
|
*
|
|
@@ -58,7 +58,7 @@ export declare function replaceOperatorByField(selection: NaturalSearchSelection
|
|
|
58
58
|
*
|
|
59
59
|
* will become
|
|
60
60
|
*
|
|
61
|
-
* {field: 'myFieldName',
|
|
61
|
+
* {field: 'myFieldName', name:'myConfigName', condition: {myConfigName: {values: [1, 2, 3]}}}
|
|
62
62
|
*/
|
|
63
63
|
export declare function replaceOperatorByName(selection: NaturalSearchSelection): NaturalSearchSelection;
|
|
64
64
|
/**
|
|
@@ -114,6 +114,6 @@ export declare abstract class AbstractSelect<V, I> extends NaturalAbstractContro
|
|
|
114
114
|
*/
|
|
115
115
|
private applyRequired;
|
|
116
116
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any>, [{ optional: true; self: true; }]>;
|
|
117
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any>, never, never, { "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "navigateTo": { "alias": "navigateTo"; "required": false; }; "clearLabel": { "alias": "clearLabel"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, never, never,
|
|
117
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any>, never, never, { "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "navigateTo": { "alias": "navigateTo"; "required": false; }; "clearLabel": { "alias": "clearLabel"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, never, never, true, never>;
|
|
118
118
|
}
|
|
119
119
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecodev/natural",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "60.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "github:Ecodev/natural",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"tslib": "^2.5.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@angular/animations": "^
|
|
26
|
-
"@angular/cdk": "^
|
|
27
|
-
"@angular/common": "^
|
|
28
|
-
"@angular/core": "^
|
|
29
|
-
"@angular/forms": "^
|
|
30
|
-
"@angular/localize": "^
|
|
31
|
-
"@angular/material": "^
|
|
32
|
-
"@angular/platform-browser": "^
|
|
33
|
-
"@angular/router": "^
|
|
25
|
+
"@angular/animations": "^18.1.0",
|
|
26
|
+
"@angular/cdk": "^18.1.0",
|
|
27
|
+
"@angular/common": "^18.1.0",
|
|
28
|
+
"@angular/core": "^18.1.0",
|
|
29
|
+
"@angular/forms": "^18.1.0",
|
|
30
|
+
"@angular/localize": "^18.1.0",
|
|
31
|
+
"@angular/material": "^18.1.0",
|
|
32
|
+
"@angular/platform-browser": "^18.1.0",
|
|
33
|
+
"@angular/router": "^18.1.0",
|
|
34
34
|
"apollo-angular": "^7.0.0",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
36
|
"rxjs": "^7.8.1"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
.mat-mdc-tab-labels,
|
|
37
37
|
.mat-mdc-tab-links,
|
|
38
38
|
.mdc-data-table__row:last-child .mdc-data-table__cell {
|
|
39
|
-
border-bottom: 1px solid mat.get-color-from-palette($foreground, divider);
|
|
39
|
+
border-bottom: 1px solid mat.m2-get-color-from-palette($foreground, divider);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// Since MDC dialogs, text color is too pale, so we restore a higher contrast for better readability
|
|
43
43
|
// See https://github.com/angular/components/issues/26797
|
|
44
44
|
.mat-mdc-dialog-container .mdc-dialog__content {
|
|
45
|
-
color: mat.get-color-from-palette(map.get($theme, foreground), base, 0.87);
|
|
45
|
+
color: mat.m2-get-color-from-palette(map.get($theme, foreground), base, 0.87);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.natural-elevation {
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
$defaultConfig: mat.define-typography-config();
|
|
57
|
+
$defaultConfig: mat.m2-define-typography-config();
|
|
58
58
|
|
|
59
59
|
// This is the default Material typography, but with button with normal letter-spacing instead of wider letter-spacing.
|
|
60
|
-
$typography: mat.define-typography-config(
|
|
60
|
+
$typography: mat.m2-define-typography-config(
|
|
61
61
|
$button:
|
|
62
|
-
mat.define-typography-level(
|
|
63
|
-
$font-family: mat.font-family($defaultConfig, 'button'),
|
|
64
|
-
$font-weight: mat.font-weight($defaultConfig, 'button'),
|
|
65
|
-
$font-size: mat.font-size($defaultConfig, 'button'),
|
|
66
|
-
$line-height: mat.line-height($defaultConfig, 'button'),
|
|
62
|
+
mat.m2-define-typography-level(
|
|
63
|
+
$font-family: mat.m2-font-family($defaultConfig, 'button'),
|
|
64
|
+
$font-weight: mat.m2-font-weight($defaultConfig, 'button'),
|
|
65
|
+
$font-size: mat.m2-font-size($defaultConfig, 'button'),
|
|
66
|
+
$line-height: mat.m2-line-height($defaultConfig, 'button'),
|
|
67
67
|
$letter-spacing: normal,
|
|
68
68
|
),
|
|
69
69
|
);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
$fg: map.get($theme, foreground);
|
|
9
9
|
|
|
10
10
|
.snackbar-error .mdc-snackbar__surface {
|
|
11
|
-
background-color: mat.get-color-from-palette($warn) !important;
|
|
12
|
-
color: mat.get-color-from-palette($warn, default-contrast) !important;
|
|
11
|
+
background-color: mat.m2-get-color-from-palette($warn) !important;
|
|
12
|
+
color: mat.m2-get-color-from-palette($warn, default-contrast) !important;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
natural-file {
|
|
9
9
|
a {
|
|
10
|
-
background-color: mat.get-color-from-palette($bg, card);
|
|
10
|
+
background-color: mat.m2-get-color-from-palette($bg, card);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.action-overlay {
|
|
14
|
-
background-color: mat.get-color-from-palette($accent, 0.85);
|
|
15
|
-
color: mat.get-color-from-palette($accent, default-contrast);
|
|
14
|
+
background-color: mat.m2-get-color-from-palette($accent, 0.85);
|
|
15
|
+
color: mat.m2-get-color-from-palette($accent, default-contrast);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.file-preview {
|
|
19
|
-
background-color: mat.get-color-from-palette($primary, 0.85);
|
|
20
|
-
color: mat.get-color-from-palette($primary, default-contrast);
|
|
19
|
+
background-color: mat.m2-get-color-from-palette($primary, 0.85);
|
|
20
|
+
color: mat.m2-get-color-from-palette($primary, default-contrast);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
|
|
55
55
|
[mat-row] {
|
|
56
56
|
&.selected {
|
|
57
|
-
background: mat.get-color-from-palette($background, selected-button);
|
|
57
|
+
background: mat.m2-get-color-from-palette($background, selected-button);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
[mat-header-row] {
|
|
62
|
-
background: mat.get-color-from-palette($background, app-bar);
|
|
62
|
+
background: mat.m2-get-color-from-palette($background, app-bar);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.mat-mdc-footer-cell {
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { DatePipe } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A normal DatePipe but with default formatting to be '12.24.2020 23:30' to match the most common use-cases
|
|
6
|
-
*/
|
|
7
|
-
export class NaturalSwissDatePipe extends DatePipe {
|
|
8
|
-
transform(value, format = 'dd.MM.y HH:mm', timezone, locale) {
|
|
9
|
-
return super.transform(value, format, timezone, locale);
|
|
10
|
-
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NaturalSwissDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.5", ngImport: i0, type: NaturalSwissDatePipe, isStandalone: true, name: "swissDate" }); }
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NaturalSwissDatePipe, decorators: [{
|
|
15
|
-
type: Pipe,
|
|
16
|
-
args: [{
|
|
17
|
-
name: 'swissDate',
|
|
18
|
-
standalone: true,
|
|
19
|
-
}]
|
|
20
|
-
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpc3MtZGF0ZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmF0dXJhbC9zcmMvbGliL21vZHVsZXMvY29tbW9uL3BpcGVzL3N3aXNzLWRhdGUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsSUFBSSxFQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7O0FBRXpDOztHQUVHO0FBS0gsTUFBTSxPQUFPLG9CQUFxQixTQUFRLFFBQVE7SUFROUIsU0FBUyxDQUNyQixLQUFnRCxFQUNoRCxNQUFNLEdBQUcsZUFBZSxFQUN4QixRQUFpQixFQUNqQixNQUFlO1FBRWYsT0FBTyxLQUFLLENBQUMsU0FBUyxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQzVELENBQUM7OEdBZlEsb0JBQW9COzRHQUFwQixvQkFBb0I7OzJGQUFwQixvQkFBb0I7a0JBSmhDLElBQUk7bUJBQUM7b0JBQ0YsSUFBSSxFQUFFLFdBQVc7b0JBQ2pCLFVBQVUsRUFBRSxJQUFJO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7UGlwZSwgUGlwZVRyYW5zZm9ybX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge0RhdGVQaXBlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG4vKipcbiAqIEEgbm9ybWFsIERhdGVQaXBlIGJ1dCB3aXRoIGRlZmF1bHQgZm9ybWF0dGluZyB0byBiZSAnMTIuMjQuMjAyMCAyMzozMCcgdG8gbWF0Y2ggdGhlIG1vc3QgY29tbW9uIHVzZS1jYXNlc1xuICovXG5AUGlwZSh7XG4gICAgbmFtZTogJ3N3aXNzRGF0ZScsXG4gICAgc3RhbmRhbG9uZTogdHJ1ZSxcbn0pXG5leHBvcnQgY2xhc3MgTmF0dXJhbFN3aXNzRGF0ZVBpcGUgZXh0ZW5kcyBEYXRlUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICAgIHB1YmxpYyBvdmVycmlkZSB0cmFuc2Zvcm0odmFsdWU6IG51bGwgfCB1bmRlZmluZWQsIGZvcm1hdD86IHN0cmluZywgdGltZXpvbmU/OiBzdHJpbmcsIGxvY2FsZT86IHN0cmluZyk6IG51bGw7XG4gICAgcHVibGljIG92ZXJyaWRlIHRyYW5zZm9ybShcbiAgICAgICAgdmFsdWU6IERhdGUgfCBzdHJpbmcgfCBudW1iZXIgfCBudWxsIHwgdW5kZWZpbmVkLFxuICAgICAgICBmb3JtYXQ/OiBzdHJpbmcsXG4gICAgICAgIHRpbWV6b25lPzogc3RyaW5nLFxuICAgICAgICBsb2NhbGU/OiBzdHJpbmcsXG4gICAgKTogc3RyaW5nIHwgbnVsbDtcbiAgICBwdWJsaWMgb3ZlcnJpZGUgdHJhbnNmb3JtKFxuICAgICAgICB2YWx1ZTogRGF0ZSB8IHN0cmluZyB8IG51bWJlciB8IG51bGwgfCB1bmRlZmluZWQsXG4gICAgICAgIGZvcm1hdCA9ICdkZC5NTS55IEhIOm1tJyxcbiAgICAgICAgdGltZXpvbmU/OiBzdHJpbmcsXG4gICAgICAgIGxvY2FsZT86IHN0cmluZyxcbiAgICApOiBzdHJpbmcgfCBudWxsIHtcbiAgICAgICAgcmV0dXJuIHN1cGVyLnRyYW5zZm9ybSh2YWx1ZSwgZm9ybWF0LCB0aW1lem9uZSwgbG9jYWxlKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DatePipe } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A normal DatePipe but with default formatting to be '12.24.2020 23:30' to match the most common use-cases
|
|
6
|
-
*/
|
|
7
|
-
export declare class NaturalSwissDatePipe extends DatePipe implements PipeTransform {
|
|
8
|
-
transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
|
|
9
|
-
transform(value: Date | string | number | null | undefined, format?: string, timezone?: string, locale?: string): string | null;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSwissDatePipe, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NaturalSwissDatePipe, "swissDate", true>;
|
|
12
|
-
}
|