ngx-material-entity 16.1.4 → 18.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/components/create-page/create-page.component.d.ts +2 -2
- package/components/edit-page/edit-page.component.d.ts +4 -4
- package/components/form/form.component.d.ts +7 -2
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +1 -2
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +1 -1
- package/components/input/base-input.component.d.ts +2 -2
- package/components/input/date/date-time-input/date-time-input.component.d.ts +1 -2
- package/components/input/file/file-input/file-input.component.d.ts +3 -3
- package/components/input/input.component.d.ts +70 -38
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +1 -1
- package/components/input/relations/references-many-input/references-many-input.component.d.ts +1 -1
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +1 -1
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +1 -1
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +1 -1
- package/components/table/display-column-value/base-display-column-value.component.d.ts +2 -5
- package/components/table/display-column-value/display-column-value.component.d.ts +1 -1
- package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +4 -4
- package/components/table/table.component.d.ts +3 -3
- package/components/tooltip/tooltip.component.d.ts +1 -1
- package/decorators/array/array-decorator-internal.data.d.ts +1 -1
- package/decorators/array/array-decorator.data.d.ts +1 -1
- package/decorators/date/date-decorator-internal.data.d.ts +1 -1
- package/decorators/date/date-decorator.data.d.ts +1 -1
- package/directives/drag-drop.directive.d.ts +1 -1
- package/directives/tooltip.directive.d.ts +1 -1
- package/esm2022/classes/base.builder.mjs +2 -2
- package/esm2022/classes/entity.model.mjs +1 -1
- package/esm2022/components/confirm-dialog/confirm-dialog-data.builder.mjs +2 -2
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +7 -7
- package/esm2022/components/create-page/create-data.route.mjs +2 -1
- package/esm2022/components/create-page/create-page.component.mjs +26 -23
- package/esm2022/components/create-page/page-create-data.builder.mjs +2 -1
- package/esm2022/components/edit-page/edit-data.route.mjs +2 -1
- package/esm2022/components/edit-page/edit-page.component.mjs +55 -54
- package/esm2022/components/edit-page/page-edit-data.builder.mjs +2 -1
- package/esm2022/components/form/form.component.mjs +14 -6
- package/esm2022/components/input/array/array-date-input/array-date-input.component.mjs +7 -7
- package/esm2022/components/input/array/array-date-range-input/array-date-range-input.component.mjs +7 -7
- package/esm2022/components/input/array/array-date-time-input/array-date-time-input.component.mjs +8 -8
- package/esm2022/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +8 -8
- package/esm2022/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +5 -5
- package/esm2022/components/input/array/array-table.class.mjs +21 -20
- package/esm2022/components/input/base-input.component.mjs +14 -9
- package/esm2022/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +5 -5
- package/esm2022/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +6 -6
- package/esm2022/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +5 -5
- package/esm2022/components/input/custom/custom.component.mjs +4 -4
- package/esm2022/components/input/date/date-input/date-input.component.mjs +3 -3
- package/esm2022/components/input/date/date-range-input/date-range-input.component.mjs +7 -7
- package/esm2022/components/input/date/date-time-input/date-time-input.component.mjs +9 -12
- package/esm2022/components/input/file/file-default-input/file-default-input.component.mjs +5 -7
- package/esm2022/components/input/file/file-image-input/file-image-input.component.mjs +6 -6
- package/esm2022/components/input/file/file-input/file-input.component.mjs +22 -24
- package/esm2022/components/input/input.component.mjs +199 -147
- package/esm2022/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +10 -10
- package/esm2022/components/input/number/number-input/number-input.component.mjs +3 -3
- package/esm2022/components/input/number/number-slider-input/number-slider-input.component.mjs +3 -3
- package/esm2022/components/input/relations/references-many-input/references-many-input.component.mjs +21 -21
- package/esm2022/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +10 -11
- package/esm2022/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +9 -9
- package/esm2022/components/input/string/string-input/string-input.component.mjs +3 -3
- package/esm2022/components/input/string/string-password-input/string-password-input.component.mjs +8 -11
- package/esm2022/components/input/string/string-textbox-input/string-textbox-input.component.mjs +3 -3
- package/esm2022/components/table/create-dialog/create-data.builder.mjs +3 -1
- package/esm2022/components/table/create-dialog/create-entity-dialog.component.mjs +9 -7
- package/esm2022/components/table/default.actions.mjs +4 -3
- package/esm2022/components/table/display-column-value/base-display-column-value.component.mjs +8 -13
- package/esm2022/components/table/display-column-value/display-column-value.component.mjs +9 -13
- package/esm2022/components/table/edit-dialog/edit-data.builder.mjs +9 -3
- package/esm2022/components/table/edit-dialog/edit-entity-dialog.component.mjs +37 -34
- package/esm2022/components/table/table-data.builder.mjs +12 -5
- package/esm2022/components/table/table-data.mjs +1 -1
- package/esm2022/components/table/table.component.mjs +25 -24
- package/esm2022/components/tooltip/tooltip.component.mjs +7 -8
- package/esm2022/decorators/array/array-decorator-internal.data.mjs +1 -1
- package/esm2022/decorators/array/array-decorator.data.mjs +1 -1
- package/esm2022/decorators/array/array.decorator.mjs +1 -1
- package/esm2022/decorators/base/base-property.decorator.mjs +1 -1
- package/esm2022/decorators/base/decorator-types.enum.mjs +1 -1
- package/esm2022/decorators/base/property-decorator-internal.data.mjs +6 -6
- package/esm2022/decorators/boolean/boolean-decorator-internal.data.mjs +2 -1
- package/esm2022/decorators/boolean/boolean.decorator.mjs +1 -1
- package/esm2022/decorators/custom/custom-decorator-internal.data.mjs +1 -1
- package/esm2022/decorators/custom/custom-decorator.data.mjs +1 -1
- package/esm2022/decorators/date/date-decorator-internal.data.mjs +1 -1
- package/esm2022/decorators/date/date-decorator.data.mjs +1 -1
- package/esm2022/decorators/date/date.decorator.mjs +1 -1
- package/esm2022/decorators/file/file-decorator-internal.data.mjs +8 -4
- package/esm2022/decorators/file/file.decorator.mjs +1 -1
- package/esm2022/decorators/has-many/has-many-decorator-internal.data.mjs +2 -1
- package/esm2022/decorators/number/number-decorator.data.mjs +1 -1
- package/esm2022/decorators/number/number.decorator.mjs +1 -1
- package/esm2022/decorators/object/object-decorator.data.mjs +1 -1
- package/esm2022/decorators/object/object.decorator.mjs +2 -1
- package/esm2022/decorators/string/string-decorator-internal.data.mjs +1 -1
- package/esm2022/decorators/string/string-decorator.data.mjs +1 -1
- package/esm2022/decorators/string/string.decorator.mjs +1 -1
- package/esm2022/directives/drag-drop.directive.mjs +5 -5
- package/esm2022/directives/dynamic-style-class.directive.mjs +5 -5
- package/esm2022/directives/included-in.directive.mjs +6 -5
- package/esm2022/directives/number.directive.mjs +6 -6
- package/esm2022/directives/password-match.directive.mjs +5 -5
- package/esm2022/directives/tooltip.directive.mjs +22 -20
- package/esm2022/encapsulation/reflect.utilities.mjs +2 -2
- package/esm2022/functions/dropdown-values-to-function.function.mjs +1 -1
- package/esm2022/functions/get-config-value.function.mjs +2 -2
- package/esm2022/functions/get-validation-error-message.function.mjs +1 -1
- package/esm2022/functions/get-validation-errors-tooltip-content.function.ts.mjs +1 -1
- package/esm2022/global-configuration-values.mjs +2 -1
- package/esm2022/mocks/placeholder-data.png.mjs +2 -2
- package/esm2022/services/entity.service.mjs +10 -11
- package/esm2022/services/unsaved-changes.guard.mjs +1 -1
- package/esm2022/utilities/date.utilities.mjs +10 -25
- package/esm2022/utilities/entity.utilities.mjs +15 -19
- package/esm2022/utilities/file.utilities.mjs +8 -10
- package/esm2022/utilities/selection.utilities.mjs +6 -4
- package/esm2022/utilities/validation.utilities.mjs +35 -38
- package/fesm2022/ngx-material-entity.mjs +728 -671
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/package.json +8 -8
- package/utilities/date.utilities.d.ts +29 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-material-entity",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
"entity"
|
|
10
10
|
],
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@angular/animations": "
|
|
13
|
-
"@angular/cdk": "
|
|
14
|
-
"@angular/common": "
|
|
15
|
-
"@angular/core": "
|
|
16
|
-
"@angular/forms": "
|
|
17
|
-
"@angular/material": "
|
|
12
|
+
"@angular/animations": "18",
|
|
13
|
+
"@angular/cdk": "18",
|
|
14
|
+
"@angular/common": "18",
|
|
15
|
+
"@angular/core": "18",
|
|
16
|
+
"@angular/forms": "18",
|
|
17
|
+
"@angular/material": "18",
|
|
18
18
|
"js2xmlparser": "^5.0.0",
|
|
19
19
|
"jszip": "^3.10.1",
|
|
20
20
|
"lodash": "4",
|
|
21
21
|
"uuid": "9"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"tslib": "^2.
|
|
24
|
+
"tslib": "^2.6.2"
|
|
25
25
|
},
|
|
26
26
|
"module": "fesm2022/ngx-material-entity.mjs",
|
|
27
27
|
"typings": "index.d.ts",
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
import { Time } from '@angular/common';
|
|
2
1
|
import { DateFilterFn } from '@angular/material/datepicker';
|
|
3
2
|
import { DropdownValue } from '../decorators/base/dropdown-value.interface';
|
|
3
|
+
/**
|
|
4
|
+
* Helper type for hours and minutes.
|
|
5
|
+
*/
|
|
6
|
+
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
7
|
+
/**
|
|
8
|
+
* Helper type for hours and minutes.
|
|
9
|
+
*/
|
|
10
|
+
type Range<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
11
|
+
/**
|
|
12
|
+
* The possible hour values. Ranges from 0 to 23.
|
|
13
|
+
*/
|
|
14
|
+
export type Hour = Range<0, 24>;
|
|
15
|
+
/**
|
|
16
|
+
* The possible minute values. Ranges from 0 to 59.
|
|
17
|
+
*/
|
|
18
|
+
export type Minute = Range<0, 60>;
|
|
19
|
+
/**
|
|
20
|
+
* Represents a time value with hours and minutes.
|
|
21
|
+
*/
|
|
22
|
+
export type Time = {
|
|
23
|
+
/**
|
|
24
|
+
* The hours in the 24 hour format.
|
|
25
|
+
*/
|
|
26
|
+
hours: Hour;
|
|
27
|
+
/**
|
|
28
|
+
* The minutes of the time.
|
|
29
|
+
*/
|
|
30
|
+
minutes: Minute;
|
|
31
|
+
};
|
|
4
32
|
/**
|
|
5
33
|
* Valid steps from one time value to the next. Needs to be able to divide 60 minutes without remainder.
|
|
6
34
|
*/
|