@sebgroup/green-angular 8.1.0 → 8.1.2
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/sebgroup-green-angular-src-lib-modal.mjs +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs +222 -203
- package/fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +223 -204
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular.mjs +1 -1
- package/package.json +5 -5
- package/src/v-angular/datepicker/components/calendar/calendar.component.d.ts +1 -1
- package/src/v-angular/datepicker/components/date-input/date-input.component.d.ts +1 -1
- package/src/v-angular/datepicker/components/datepicker/datepicker.component.d.ts +1 -1
- package/src/v-angular/datepicker/datepicker.utils.d.ts +7 -0
- package/v-angular/datepicker/components/calendar/calendar.component.d.ts +1 -1
- package/v-angular/datepicker/components/date-input/date-input.component.d.ts +1 -1
- package/v-angular/datepicker/components/datepicker/datepicker.component.d.ts +1 -1
- package/v-angular/datepicker/datepicker.utils.d.ts +7 -0
|
@@ -17,7 +17,7 @@ import { GdsDatepicker } from '@sebgroup/green-core/components/datepicker/datepi
|
|
|
17
17
|
import * as DatepickerTransStyles from '@sebgroup/green-core/components/datepicker/datepicker.trans.styles.js';
|
|
18
18
|
import { GdsDropdown } from '@sebgroup/green-core/components/dropdown/dropdown.component.js';
|
|
19
19
|
import * as DropdownTransStyles from '@sebgroup/green-core/components/dropdown/dropdown.trans.styles.js';
|
|
20
|
-
import { trigger, transition, query,
|
|
20
|
+
import { trigger, transition, query, style, group, animate } from '@angular/animations';
|
|
21
21
|
import * as i1$2 from '@angular/cdk/a11y';
|
|
22
22
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
23
23
|
import { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-angular",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=19",
|
|
6
6
|
"@angular/common": ">=19",
|
|
@@ -149,10 +149,6 @@
|
|
|
149
149
|
"types": "./src/v-angular/core/index.d.ts",
|
|
150
150
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-core.mjs"
|
|
151
151
|
},
|
|
152
|
-
"./src/v-angular/datepicker": {
|
|
153
|
-
"types": "./src/v-angular/datepicker/index.d.ts",
|
|
154
|
-
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs"
|
|
155
|
-
},
|
|
156
152
|
"./src/v-angular/drag-drop": {
|
|
157
153
|
"types": "./src/v-angular/drag-drop/index.d.ts",
|
|
158
154
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-drag-drop.mjs"
|
|
@@ -161,6 +157,10 @@
|
|
|
161
157
|
"types": "./src/v-angular/dropdown/index.d.ts",
|
|
162
158
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs"
|
|
163
159
|
},
|
|
160
|
+
"./src/v-angular/datepicker": {
|
|
161
|
+
"types": "./src/v-angular/datepicker/index.d.ts",
|
|
162
|
+
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-datepicker.mjs"
|
|
163
|
+
},
|
|
164
164
|
"./src/v-angular/external-link": {
|
|
165
165
|
"types": "./src/v-angular/external-link/index.d.ts",
|
|
166
166
|
"default": "./fesm2022/sebgroup-green-angular-src-v-angular-external-link.mjs"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
2
|
import { EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { CalendarDateDirective } from '../../directives/calendar-date.directive';
|
|
4
3
|
import type { CalendarType, DisableDateConfig } from '../../datepicker.models';
|
|
4
|
+
import { CalendarDateDirective } from '../../directives/calendar-date.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CalendarComponent implements OnChanges {
|
|
7
7
|
dateClick: EventEmitter<Date>;
|
|
@@ -4,8 +4,8 @@ import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
|
4
4
|
import { WeekDay } from '@angular/common';
|
|
5
5
|
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
6
6
|
import { NgControl } from '@angular/forms';
|
|
7
|
-
import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
8
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
9
9
|
import { DateControlValueAccessorComponent } from '../../date-control-value-accessor/date-control-value-accessor.component';
|
|
10
10
|
import type { CalendarType } from '../../datepicker.models';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
2
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
|
-
import { CalendarMonth } from '../../datepicker.models';
|
|
4
3
|
import type { CalendarType } from '../../datepicker.models';
|
|
4
|
+
import { CalendarMonth } from '../../datepicker.models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
7
|
private elementRef;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
2
|
export declare const sortWeekDays: (firstDayOfWeek: WeekDay) => WeekDay[];
|
|
3
|
+
/**
|
|
4
|
+
* Safely converts a value to a Date object, handling timezone issues.
|
|
5
|
+
* If the value is already a Date, returns it as-is.
|
|
6
|
+
* If it's a string in ISO format (YYYY-MM-DD), parses it in local timezone.
|
|
7
|
+
* Otherwise, uses standard Date constructor.
|
|
8
|
+
*/
|
|
9
|
+
export declare const toLocalDate: (value: Date | string) => Date;
|
|
3
10
|
/** Sets labels and sort weekday arrays based off of first day of week. */
|
|
4
11
|
export declare const getSortedWeekDays: (firstDayOfWeek: WeekDay, startDate?: Date) => Date[];
|
|
5
12
|
/** Generate a matrix of dates used to visualize a calendar month. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
2
|
import { EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { CalendarDateDirective } from '../../directives/calendar-date.directive';
|
|
4
3
|
import type { CalendarType, DisableDateConfig } from '../../datepicker.models';
|
|
4
|
+
import { CalendarDateDirective } from '../../directives/calendar-date.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CalendarComponent implements OnChanges {
|
|
7
7
|
dateClick: EventEmitter<Date>;
|
|
@@ -4,8 +4,8 @@ import '@sebgroup/green-core/components/icon/icons/triangle-exclamation.js';
|
|
|
4
4
|
import { WeekDay } from '@angular/common';
|
|
5
5
|
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
6
6
|
import { NgControl } from '@angular/forms';
|
|
7
|
-
import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
8
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import { TranslocoScope, TranslocoService } from '@jsverse/transloco';
|
|
9
9
|
import { DateControlValueAccessorComponent } from '../../date-control-value-accessor/date-control-value-accessor.component';
|
|
10
10
|
import type { CalendarType } from '../../datepicker.models';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
2
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
|
-
import { CalendarMonth } from '../../datepicker.models';
|
|
4
3
|
import type { CalendarType } from '../../datepicker.models';
|
|
4
|
+
import { CalendarMonth } from '../../datepicker.models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DatepickerComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
7
|
private elementRef;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { WeekDay } from '@angular/common';
|
|
2
2
|
export declare const sortWeekDays: (firstDayOfWeek: WeekDay) => WeekDay[];
|
|
3
|
+
/**
|
|
4
|
+
* Safely converts a value to a Date object, handling timezone issues.
|
|
5
|
+
* If the value is already a Date, returns it as-is.
|
|
6
|
+
* If it's a string in ISO format (YYYY-MM-DD), parses it in local timezone.
|
|
7
|
+
* Otherwise, uses standard Date constructor.
|
|
8
|
+
*/
|
|
9
|
+
export declare const toLocalDate: (value: Date | string) => Date;
|
|
3
10
|
/** Sets labels and sort weekday arrays based off of first day of week. */
|
|
4
11
|
export declare const getSortedWeekDays: (firstDayOfWeek: WeekDay, startDate?: Date) => Date[];
|
|
5
12
|
/** Generate a matrix of dates used to visualize a calendar month. */
|