@sd-angular/core 19.0.44 → 19.0.45
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/README.md +4 -0
- package/assets/scss/core/form.scss +21 -40
- package/assets/scss/core/view.scss +24 -0
- package/assets/scss/sd-core.scss +1 -0
- package/assets/scss/themes/_material-tokens.scss +71 -0
- package/assets/scss/themes/default.scss +10 -0
- package/components/form-generic/src/components/form-builder/components/expression-builder/expression-builder.component.d.ts +1 -0
- package/components/form-generic/src/models/form-generic-expression.model.d.ts +10 -4
- package/components/form-generic/src/pipes/component-viewed.pipe.d.ts +1 -0
- package/components/import-excel/src/pipes/column-transform.pipe.d.ts +1 -0
- package/components/inform/src/inform.component.d.ts +12 -3
- package/components/table/src/services/table-export/table-export.service.d.ts +1 -1
- package/components/table/src/services/table-filter/table-filter.model.d.ts +7 -0
- package/components/table/src/services/table-local/table-local-sort.util.d.ts +8 -2
- package/components/table/src/services/table-local/table-local.util.d.ts +6 -1
- package/components/table/src/table.component.d.ts +1 -1
- package/components/timeline/pipes/view-date.pipe.d.ts +1 -0
- package/configurations/src/sd-core.configuration.d.ts +7 -0
- package/fesm2022/sd-angular-core-components-form-generic.mjs +44 -31
- package/fesm2022/sd-angular-core-components-form-generic.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-import-excel.mjs +19 -5
- package/fesm2022/sd-angular-core-components-import-excel.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-inform.mjs +16 -2
- package/fesm2022/sd-angular-core-components-inform.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-section.mjs +2 -2
- package/fesm2022/sd-angular-core-components-section.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-table.mjs +174 -66
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-timeline.mjs +4 -1
- package/fesm2022/sd-angular-core-components-timeline.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-view.mjs +2 -2
- package/fesm2022/sd-angular-core-components-view.mjs.map +1 -1
- package/fesm2022/sd-angular-core-configurations.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-checkbox.mjs +2 -2
- package/fesm2022/sd-angular-core-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date-range.mjs +15 -2
- package/fesm2022/sd-angular-core-forms-date-range.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date.mjs +11 -1
- package/fesm2022/sd-angular-core-forms-date.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-datetime.mjs +43 -9
- package/fesm2022/sd-angular-core-forms-datetime.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-models.mjs +6 -0
- package/fesm2022/sd-angular-core-forms-models.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-radio.mjs +2 -2
- package/fesm2022/sd-angular-core-forms-radio.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-switch.mjs +2 -2
- package/fesm2022/sd-angular-core-forms-switch.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-textarea.mjs +2 -2
- package/fesm2022/sd-angular-core-forms-textarea.mjs.map +1 -1
- package/fesm2022/sd-angular-core-pipes.mjs +26 -10
- package/fesm2022/sd-angular-core-pipes.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-date-time.mjs +143 -0
- package/fesm2022/sd-angular-core-services-date-time.mjs.map +1 -0
- package/fesm2022/sd-angular-core-services.mjs +1 -0
- package/fesm2022/sd-angular-core-services.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
- package/forms/datetime/src/datetime-time-zone.adapter.d.ts +15 -0
- package/forms/models/src/sd-strict-date-adapter.d.ts +3 -0
- package/package.json +10 -6
- package/pipes/src/time-different.pipe.d.ts +1 -0
- package/services/date-time/index.d.ts +1 -0
- package/services/date-time/src/date-time.service.d.ts +54 -0
- package/services/date-time/src/public-api.d.ts +1 -0
- package/services/index.d.ts +1 -0
- package/utilities/extensions/src/string.extension.d.ts +1 -0
- package/utilities/models/src/icon.model.d.ts +2 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type SdTimeZone } from '@sd-angular/core/configurations';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Converts and parses model dates in the zone of `ISdCoreConfiguration.timeZone`.
|
|
5
|
+
*
|
|
6
|
+
* - An instant (`Z`/offset, `Date`, epoch) shows as the wall clock of the zone.
|
|
7
|
+
* - A zone-less or date-only string keeps its digits and is read as wall clock in the zone.
|
|
8
|
+
* - A carrier is a local `Date` whose fields are a wall clock (what Material pickers hold);
|
|
9
|
+
* `toWallClock` / `fromWallClock` are the only crossings between carriers and model values.
|
|
10
|
+
*
|
|
11
|
+
* With `'local'` (the default) every method returns exactly what `DateUtilities` returns
|
|
12
|
+
* without options.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SdDateTimeService {
|
|
15
|
+
#private;
|
|
16
|
+
/** The configured zone, resolved once from the root injector. */
|
|
17
|
+
readonly timeZone: SdTimeZone;
|
|
18
|
+
constructor();
|
|
19
|
+
/** Formats a model value; `''` when invalid. */
|
|
20
|
+
toFormat(value: unknown, format: string): string;
|
|
21
|
+
/** Parses a model value to an instant; `null` when invalid. */
|
|
22
|
+
parse(value: unknown): Date | null;
|
|
23
|
+
/** Parses text in `format` as wall clock in the zone; `null` when invalid. */
|
|
24
|
+
parseFrom(value: unknown, format: string): Date | null;
|
|
25
|
+
/** First instant of the value's calendar day. */
|
|
26
|
+
begin(value: unknown): Date | null;
|
|
27
|
+
/** Last millisecond of the value's calendar day. */
|
|
28
|
+
end(value: unknown): Date | null;
|
|
29
|
+
/** First instant of the next calendar day: the exclusive upper bound of a day filter. */
|
|
30
|
+
beginOfNextDay(value: unknown): Date | null;
|
|
31
|
+
/** Carrier of today 00:00 in the zone. */
|
|
32
|
+
today(): Date;
|
|
33
|
+
/** Carrier of the current wall clock in the zone. */
|
|
34
|
+
now(): Date;
|
|
35
|
+
/** Carrier of a model value's wall clock in the zone; `null` when invalid. */
|
|
36
|
+
toWallClock(value: unknown): Date | null;
|
|
37
|
+
/** Instant of a carrier's wall clock in the zone. */
|
|
38
|
+
fromWallClock(value: Date): Date;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdDateTimeService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SdDateTimeService>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @internal `SdDateTimeService` with `'local'`, for pure helpers that run without an injector (public
|
|
44
|
+
* helpers called directly by consumers, unit tests). Every method equals the service in local mode.
|
|
45
|
+
*/
|
|
46
|
+
export declare const ɵSD_LOCAL_DATE_TIME: Pick<SdDateTimeService, 'timeZone' | 'toFormat' | 'parse' | 'begin' | 'end' | 'beginOfNextDay'>;
|
|
47
|
+
/**
|
|
48
|
+
* @internal The service inside an injection context, `null` outside one.
|
|
49
|
+
*
|
|
50
|
+
* Pipes call it from a field initializer: created by DI or a template they follow the zone, while
|
|
51
|
+
* `new SdTimeDifferentPipe()` outside an injection context keeps the local behavior. Only the
|
|
52
|
+
* "no injection context" error (NG0203) is swallowed; an invalid zone still throws.
|
|
53
|
+
*/
|
|
54
|
+
export declare function ɵsdInjectDateTime(): SdDateTimeService | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './date-time.service';
|
package/services/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare const StringUtilities: {
|
|
|
37
37
|
REGEX_BASE64: string;
|
|
38
38
|
changeAliasLowerCase: (alias: any) => string;
|
|
39
39
|
aliasIncludes: (alias: any, searchText: any) => boolean;
|
|
40
|
+
mask: <T extends string | null | undefined>(value: T, options?: import("@sdcorejs/utils/fns").StringMaskOptions) => T extends string ? string : T;
|
|
40
41
|
format: (template: string, ...arr: any[]) => string;
|
|
41
42
|
templateToDisplay: (template: string, entity: Record<string, any>, options?: import("@sdcorejs/utils/fns").TemplatePathOptions) => string;
|
|
42
43
|
parseExpression: (template: string, entity: Record<string, any>, options?: import("@sdcorejs/utils/fns").TemplatePathOptions) => unknown;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export type MaterialIconFontSet = 'material-icons' | 'material-icons-outlined' | 'material-icons-round' | 'material-icons-sharp';
|
|
2
2
|
export declare const DefaultMaterialIconFontSet: MaterialIconFontSet;
|
|
3
|
+
/** Background of a decorative icon tile: rounded square (8px), circle, or none (no background, same size). */
|
|
4
|
+
export type SdIconShape = 'square' | 'circle' | 'none';
|