@vsn-ux/ngx-gaia 0.9.3 → 0.9.4
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/DOCS.md +951 -0
- package/fesm2022/vsn-ux-ngx-gaia.mjs +20 -0
- package/fesm2022/vsn-ux-ngx-gaia.mjs.map +1 -1
- package/index.d.ts +18 -0
- package/package.json +1 -1
|
@@ -561,6 +561,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
561
561
|
}] });
|
|
562
562
|
|
|
563
563
|
const GA_FORM_CONTROL_ADAPTER = new InjectionToken('ga-form-control-adapter');
|
|
564
|
+
/**
|
|
565
|
+
* @internal - This function is for internal library use only
|
|
566
|
+
*/
|
|
564
567
|
function injectNgControlState({ implicitChildNgControl, explicitNgControl, explicitNgForm, } = {}) {
|
|
565
568
|
const gaFormControlAdapter = inject(GA_FORM_CONTROL_ADAPTER, {
|
|
566
569
|
optional: true,
|
|
@@ -1244,6 +1247,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
1244
1247
|
}, template: "<div class=\"ga-calendar__header\">\n <div class=\"ga-calendar__month-year\">\n <button\n type=\"button\"\n class=\"ga-calendar__month-year-button\"\n (click)=\"toggleMonthView()\"\n [attr.aria-label]=\"i18n.selectMonthLabel\"\n >\n {{ getMonthName(viewDate().month) }}\n <ga-icon\n [icon]=\"viewMode() === 'month' ? icons.ChevronUp : icons.ChevronDown\"\n size=\"16\"\n />\n </button>\n <button\n type=\"button\"\n class=\"ga-calendar__month-year-button\"\n (click)=\"toggleYearView()\"\n [attr.aria-label]=\"i18n.selectYearLabel\"\n >\n {{ viewDate().year }}\n <ga-icon\n [icon]=\"viewMode() === 'year' ? icons.ChevronUp : icons.ChevronDown\"\n size=\"16\"\n />\n </button>\n </div>\n @if (viewMode() !== 'month') {\n <div class=\"ga-calendar__navigation\">\n <button\n type=\"button\"\n class=\"ga-calendar__navigation-button\"\n (click)=\"navigatePrevious()\"\n [attr.aria-label]=\"i18n.previousLabel\"\n >\n <ga-icon [icon]=\"icons.ChevronLeft\" size=\"24\" />\n </button>\n <button\n type=\"button\"\n class=\"ga-calendar__navigation-button\"\n (click)=\"navigateNext()\"\n [attr.aria-label]=\"i18n.nextLabel\"\n >\n <ga-icon [icon]=\"icons.ChevronRight\" size=\"24\" />\n </button>\n </div>\n }\n</div>\n\n@switch (viewMode()) {\n @case ('day') {\n <div class=\"ga-calendar__weekdays\">\n @for (day of weekDays(); track day) {\n <div class=\"ga-calendar__weekday\">{{ day }}</div>\n }\n </div>\n <div class=\"ga-calendar__selection ga-calendar__selection--day\">\n @for (\n dateStruct of calendarDays();\n track dateStruct.year + '-' + dateStruct.month + '-' + dateStruct.day\n ) {\n <button\n type=\"button\"\n class=\"ga-calendar__day\"\n [class.ga-calendar__day--selected]=\"isSelected(dateStruct)\"\n [class.ga-calendar__day--current]=\"isToday(dateStruct)\"\n [class.ga-calendar__day--disabled]=\"isDateDisabled(dateStruct)\"\n [class.ga-calendar__day--weekend]=\"isWeekend(dateStruct)\"\n [disabled]=\"isDateDisabled(dateStruct)\"\n (click)=\"selectDate(dateStruct)\"\n >\n {{ dateStruct.day }}\n </button>\n }\n </div>\n }\n @case ('month') {\n <div class=\"ga-calendar__selection ga-calendar__selection--month\">\n @for (month of months(); track month.index) {\n <button\n type=\"button\"\n class=\"ga-calendar__month\"\n [class.ga-calendar__month--selected]=\"isSelectedMonth(month.index)\"\n [class.ga-calendar__month--disabled]=\"isMonthDisabled(month.index)\"\n [disabled]=\"isMonthDisabled(month.index)\"\n (click)=\"selectMonth(month.index)\"\n >\n {{ month.shortName }}\n </button>\n }\n </div>\n }\n @case ('year') {\n <div class=\"ga-calendar__selection ga-calendar__selection--year\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"ga-calendar__year\"\n [class.ga-calendar__year--selected]=\"isSelectedYear(year)\"\n [class.ga-calendar__year--disabled]=\"isYearDisabled(year)\"\n [disabled]=\"isYearDisabled(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n </div>\n }\n}\n", styles: [":host{display:block}\n"] }]
|
|
1245
1248
|
}] });
|
|
1246
1249
|
|
|
1250
|
+
/**
|
|
1251
|
+
* @internal - Internal service for form field coordination
|
|
1252
|
+
*/
|
|
1247
1253
|
class GaFormFieldConnector {
|
|
1248
1254
|
controlDisabled = signal(false);
|
|
1249
1255
|
controlId = signal(null);
|
|
@@ -1721,6 +1727,8 @@ class GaDatepickerInputDirective {
|
|
|
1721
1727
|
if (emitToNgModel) {
|
|
1722
1728
|
this.onNgTouchedFn?.();
|
|
1723
1729
|
this.onNgChangeFn?.(value);
|
|
1730
|
+
this.dateInput.emit(value);
|
|
1731
|
+
this.dateChange.emit(value);
|
|
1724
1732
|
}
|
|
1725
1733
|
}
|
|
1726
1734
|
// ControlValueAccessor implementation
|
|
@@ -2184,6 +2192,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
2184
2192
|
}] });
|
|
2185
2193
|
|
|
2186
2194
|
let nextUniqueId$5 = 0;
|
|
2195
|
+
/**
|
|
2196
|
+
* Internal tooltip component used by the gaTooltip directive.
|
|
2197
|
+
* This component is not intended for direct use in templates.
|
|
2198
|
+
* Use the [gaTooltip] directive instead.
|
|
2199
|
+
* @internal
|
|
2200
|
+
*/
|
|
2187
2201
|
class GaTooltipComponent {
|
|
2188
2202
|
uniqueId = `ga-tooltip-${++nextUniqueId$5}`;
|
|
2189
2203
|
mouseLeaveSubject = new Subject();
|
|
@@ -4155,11 +4169,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
4155
4169
|
}, template: "@if (loading()) {\n <ga-select-dropdown-spinner />\n} @else {\n <ng-content />\n}\n" }]
|
|
4156
4170
|
}] });
|
|
4157
4171
|
|
|
4172
|
+
/**
|
|
4173
|
+
* @internal - Internal validator provider for ga-select required validation
|
|
4174
|
+
*/
|
|
4158
4175
|
const GA_SELECT_REQUIRED_VALIDATOR = {
|
|
4159
4176
|
provide: NG_VALIDATORS,
|
|
4160
4177
|
useExisting: forwardRef(() => GaSelectRequiredValidator),
|
|
4161
4178
|
multi: true,
|
|
4162
4179
|
};
|
|
4180
|
+
/**
|
|
4181
|
+
* @internal - Internal directive for ga-select required validation
|
|
4182
|
+
*/
|
|
4163
4183
|
class GaSelectRequiredValidator extends RequiredValidator {
|
|
4164
4184
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: GaSelectRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4165
4185
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.4", type: GaSelectRequiredValidator, isStandalone: true, selector: "ga-select[required][formControlName], ga-select[required][formControl], ga-select[required][ngModel]", providers: [GA_SELECT_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|