@aaamb/ngx-design-system 1.0.0 → 1.0.1
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.
|
@@ -293,7 +293,7 @@ class CheckboxComponent {
|
|
|
293
293
|
return this.disabled() || this.cvaDisabled;
|
|
294
294
|
}
|
|
295
295
|
wrapperClasses() {
|
|
296
|
-
return '
|
|
296
|
+
return 'flex items-center gap-2.5 select-none';
|
|
297
297
|
}
|
|
298
298
|
labelClasses() {
|
|
299
299
|
const base = 'text-base leading-6';
|
|
@@ -402,7 +402,7 @@ class CheckboxComponent {
|
|
|
402
402
|
this.cvaDisabled = isDisabled;
|
|
403
403
|
}
|
|
404
404
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
405
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CheckboxComponent, isStandalone: true, selector: "ads-checkbox", inputs: { appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, labelColor: { classPropertyName: "labelColor", publicName: "labelColor", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, providers: [
|
|
405
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: CheckboxComponent, isStandalone: true, selector: "ads-checkbox", inputs: { appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, labelColor: { classPropertyName: "labelColor", publicName: "labelColor", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, host: { classAttribute: "inline-block align-middle" }, providers: [
|
|
406
406
|
{
|
|
407
407
|
provide: NG_VALUE_ACCESSOR,
|
|
408
408
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
@@ -412,7 +412,9 @@ class CheckboxComponent {
|
|
|
412
412
|
}
|
|
413
413
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
414
414
|
type: Component,
|
|
415
|
-
args: [{ selector: 'ads-checkbox', standalone: true, imports: [IconComponent],
|
|
415
|
+
args: [{ selector: 'ads-checkbox', standalone: true, imports: [IconComponent], host: {
|
|
416
|
+
class: 'inline-block align-middle',
|
|
417
|
+
}, providers: [
|
|
416
418
|
{
|
|
417
419
|
provide: NG_VALUE_ACCESSOR,
|
|
418
420
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
@@ -1007,7 +1009,7 @@ class InputDatepickerComponent {
|
|
|
1007
1009
|
useExisting: forwardRef(() => InputDatepickerComponent),
|
|
1008
1010
|
multi: true,
|
|
1009
1011
|
},
|
|
1010
|
-
], viewQueries: [{ propertyName: "datePickerRef", first: true, predicate: ["datePicker"], descendants: true }], ngImport: i0, template: "@if (label()) {\n
|
|
1012
|
+
], viewQueries: [{ propertyName: "datePickerRef", first: true, predicate: ["datePicker"], descendants: true }], ngImport: i0, template: "<div class=\"flex w-full flex-col gap-1.5\">\n @if (label()) {\n <label class=\"text-sm font-medium text-green-1\">{{ label() }}</label>\n }\n\n <div class=\"relative w-full h-9.5\">\n <input\n type=\"text\"\n [class]=\"inputStateClass()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"datePickerPlaceholder()\"\n [ngModel]=\"selectedDate()\"\n (ngModelChange)=\"onInputTextChange($event)\"\n (blur)=\"onInputBlur()\"\n [mask]=\"'00/00/0000'\"\n />\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-3': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n <nz-date-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedDateObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"datePickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-date-picker>\n </div>\n\n @if (hasVisualError()) {\n <p class=\"text-sm text-red-3\">{{ resolvedErrorMessage() }}</p>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzInline", "nzAllowClear", "nzAutoFocus", "nzDisabled", "nzInputReadOnly", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzVariant", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ads-icon", inputs: ["iconName", "size", "title", "color"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }] });
|
|
1011
1013
|
}
|
|
1012
1014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: InputDatepickerComponent, decorators: [{
|
|
1013
1015
|
type: Component,
|
|
@@ -1024,7 +1026,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1024
1026
|
useExisting: forwardRef(() => InputDatepickerComponent),
|
|
1025
1027
|
multi: true,
|
|
1026
1028
|
},
|
|
1027
|
-
], template: "@if (label()) {\n
|
|
1029
|
+
], template: "<div class=\"flex w-full flex-col gap-1.5\">\n @if (label()) {\n <label class=\"text-sm font-medium text-green-1\">{{ label() }}</label>\n }\n\n <div class=\"relative w-full h-9.5\">\n <input\n type=\"text\"\n [class]=\"inputStateClass()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"datePickerPlaceholder()\"\n [ngModel]=\"selectedDate()\"\n (ngModelChange)=\"onInputTextChange($event)\"\n (blur)=\"onInputBlur()\"\n [mask]=\"'00/00/0000'\"\n />\n <button\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openDatePicker()\"\n class=\"w-6 h-6 top-[50%] translate-y-[-50%] absolute right-3 flex items-center justify-center border-0 outline-none ring-0 focus:outline-none focus:ring-0 active:outline-none active:ring-0 bg-transparent\"\n >\n <ads-icon\n [ngClass]=\"{\n 'cursor-pointer': !isDisabled(),\n 'text-green-1': !hasVisualError() && !isDisabled(),\n 'text-red-3': hasVisualError(),\n 'text-gray-500': isDisabled(),\n }\"\n [iconName]=\"'calendar'\"\n [size]=\"24\"\n ></ads-icon>\n </button>\n <nz-date-picker\n style=\"position: absolute\"\n class=\"opacity-0 pointer-events-none w-full h-full left-0 top-0\"\n #datePicker\n [ngModel]=\"selectedDateObj()\"\n [nzDisabled]=\"isDisabled()\"\n [nzDisabledDate]=\"disabledDate\"\n [nzOpen]=\"isDatePickerOpen\"\n [nzPlaceHolder]=\"datePickerPlaceholder()\"\n [nzPlacement]=\"'bottomRight'\"\n [nzFormat]=\"'MM/dd/yyyy'\"\n (ngModelChange)=\"onInputValue($event)\"\n (nzOnOpenChange)=\"onOpenChange($event)\"\n ></nz-date-picker>\n </div>\n\n @if (hasVisualError()) {\n <p class=\"text-sm text-red-3\">{{ resolvedErrorMessage() }}</p>\n }\n</div>\n" }]
|
|
1028
1030
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { isPickerDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isPickerDisabled", required: false }] }], datePickerPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "datePickerPlaceholder", required: false }] }], hasError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasError", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], futureDatesAllowed: [{ type: i0.Input, args: [{ isSignal: true, alias: "futureDatesAllowed", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], datePickerRef: [{
|
|
1029
1031
|
type: ViewChild,
|
|
1030
1032
|
args: ['datePicker']
|
|
@@ -2111,7 +2113,7 @@ class TabsComponent {
|
|
|
2111
2113
|
}
|
|
2112
2114
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2113
2115
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: TabsComponent, isStandalone: true, selector: "ads-tabs", inputs: { tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: true, transformFunction: null }, selectedTabId: { classPropertyName: "selectedTabId", publicName: "selectedTabId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tabChanged: "tabChanged" }, ngImport: i0, template: `
|
|
2114
|
-
<div class="w-full
|
|
2116
|
+
<div class="w-full flex items-center justify-between">
|
|
2115
2117
|
<div
|
|
2116
2118
|
class="flex w-full h-full overflow-y-hidden overflow-x-auto border border-neutral-disabled-bg rounded-[0.62rem] scrollbar-green min-w-30"
|
|
2117
2119
|
>
|
|
@@ -2135,7 +2137,7 @@ class TabsComponent {
|
|
|
2135
2137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TabsComponent, decorators: [{
|
|
2136
2138
|
type: Component,
|
|
2137
2139
|
args: [{ selector: 'ads-tabs', standalone: true, imports: [NgClass], template: `
|
|
2138
|
-
<div class="w-full
|
|
2140
|
+
<div class="w-full flex items-center justify-between">
|
|
2139
2141
|
<div
|
|
2140
2142
|
class="flex w-full h-full overflow-y-hidden overflow-x-auto border border-neutral-disabled-bg rounded-[0.62rem] scrollbar-green min-w-30"
|
|
2141
2143
|
>
|
|
@@ -2200,13 +2202,13 @@ class SideNavComponent {
|
|
|
2200
2202
|
}
|
|
2201
2203
|
isOptionActive(option) {
|
|
2202
2204
|
const isCurrentUrlActive = option.url
|
|
2203
|
-
? this.
|
|
2205
|
+
? this.isRouteActive(option.url)
|
|
2204
2206
|
: false;
|
|
2205
|
-
const isChildActive = option.children?.some((child) => this.
|
|
2207
|
+
const isChildActive = option.children?.some((child) => this.isRouteActive(child.url)) ?? false;
|
|
2206
2208
|
return isCurrentUrlActive || isChildActive;
|
|
2207
2209
|
}
|
|
2208
2210
|
isPathActive(path) {
|
|
2209
|
-
return this.
|
|
2211
|
+
return this.isRouteActive(path);
|
|
2210
2212
|
}
|
|
2211
2213
|
optionButtonClasses(option) {
|
|
2212
2214
|
const base = this.isCollapsed()
|
|
@@ -2220,13 +2222,21 @@ class SideNavComponent {
|
|
|
2220
2222
|
childButtonClasses(path, collapsed) {
|
|
2221
2223
|
const base = collapsed
|
|
2222
2224
|
? 'justify-center bg-transparent p-0 w-5 h-5'
|
|
2223
|
-
: '
|
|
2225
|
+
: 'text-base font-normal px-4';
|
|
2224
2226
|
if (this.isPathActive(path)) {
|
|
2225
2227
|
return collapsed
|
|
2226
2228
|
? 'justify-center bg-transparent p-0 w-5 h-5'
|
|
2227
2229
|
: `${base} bg-white text-green-base`;
|
|
2228
2230
|
}
|
|
2229
|
-
return collapsed
|
|
2231
|
+
return collapsed
|
|
2232
|
+
? base
|
|
2233
|
+
: `${base} bg-transparent text-neutral-light-text hover:bg-[#006761]`;
|
|
2234
|
+
}
|
|
2235
|
+
isRouteActive(route) {
|
|
2236
|
+
const normalizedRoute = this.normalizeRoute(route);
|
|
2237
|
+
const activePath = this.normalizeRoute(this.currentActivePath());
|
|
2238
|
+
return (activePath === normalizedRoute ||
|
|
2239
|
+
activePath.startsWith(`${normalizedRoute}/`));
|
|
2230
2240
|
}
|
|
2231
2241
|
normalizeRoute(route) {
|
|
2232
2242
|
if (Array.isArray(route)) {
|
|
@@ -2248,7 +2258,9 @@ class SideNavComponent {
|
|
|
2248
2258
|
<aside
|
|
2249
2259
|
class="w-full h-full bg-green-base flex flex-col items-center select-none"
|
|
2250
2260
|
>
|
|
2251
|
-
<div
|
|
2261
|
+
<div
|
|
2262
|
+
class="w-full h-16 flex items-center justify-center bg-white p-2"
|
|
2263
|
+
>
|
|
2252
2264
|
@if (currentLogoSrc()) {
|
|
2253
2265
|
<img
|
|
2254
2266
|
[src]="currentLogoSrc()"
|
|
@@ -2421,7 +2433,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2421
2433
|
<aside
|
|
2422
2434
|
class="w-full h-full bg-green-base flex flex-col items-center select-none"
|
|
2423
2435
|
>
|
|
2424
|
-
<div
|
|
2436
|
+
<div
|
|
2437
|
+
class="w-full h-16 flex items-center justify-center bg-white p-2"
|
|
2438
|
+
>
|
|
2425
2439
|
@if (currentLogoSrc()) {
|
|
2426
2440
|
<img
|
|
2427
2441
|
[src]="currentLogoSrc()"
|