@jablonowski/dsb-components 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.
@@ -0,0 +1,672 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, forwardRef, HostListener, ContentChild, Directive, ContentChildren } from '@angular/core';
3
+ import { NgClass, NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
4
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
+
6
+ class ButtonComponent {
7
+ variant = 'primary';
8
+ size = 'md';
9
+ disabled = false;
10
+ loading = false;
11
+ fullWidth = false;
12
+ type = 'button';
13
+ onClick = new EventEmitter();
14
+ get classes() {
15
+ return {
16
+ btn: true,
17
+ [`btn-${this.variant}`]: true,
18
+ [`btn-${this.size}`]: true,
19
+ 'btn-full': this.fullWidth,
20
+ 'btn-loading': this.loading,
21
+ };
22
+ }
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: ButtonComponent, isStandalone: true, selector: "dsb-button", inputs: { variant: "variant", size: "size", disabled: "disabled", loading: "loading", fullWidth: "fullWidth", type: "type" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<button\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"classes\"\n (click)=\"onClick.emit($event)\"\n>\n <span *ngIf=\"loading\" class=\"spinner\" aria-hidden=\"true\"></span>\n <ng-content></ng-content>\n</button>\n", styles: [".btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;font-weight:500;letter-spacing:.01em;border-radius:6px;border:1.5px solid transparent;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease,opacity .12s ease;white-space:nowrap;text-decoration:none;outline:none;position:relative}.btn-sm{font-size:12px;padding:6px 12px;height:30px}.btn-md{font-size:14px;padding:8px 16px;height:36px}.btn-lg{font-size:15px;padding:10px 20px;height:44px}.btn-full{width:100%}.btn:focus-visible{outline:2px solid #0071e3;outline-offset:2px}.btn:disabled{opacity:.42;cursor:not-allowed;pointer-events:none}.btn-primary{background:#111;color:#fff;border-color:#111}.btn-primary:hover:not(:disabled){background:#333;border-color:#333}.btn-primary:active:not(:disabled){background:#000;border-color:#000}.btn-secondary{background:#fff;color:#111;border-color:#d4d4d4}.btn-secondary:hover:not(:disabled){background:#f5f5f5;border-color:#bbb}.btn-secondary:active:not(:disabled){background:#ebebeb}.btn-ghost{background:transparent;color:#555;border-color:transparent}.btn-ghost:hover:not(:disabled){background:#f5f5f5;color:#111}.btn-danger{background:#fff;color:#d93025;border-color:#f0a9a4}.btn-danger:hover:not(:disabled){background:#fef2f2;border-color:#d93025}.spinner{width:12px;height:12px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.btn-secondary:hover:not(:disabled){background:var(--color-surface);border-color:var(--color-text-main)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ButtonComponent, decorators: [{
27
+ type: Component,
28
+ args: [{ selector: 'dsb-button', standalone: true, imports: [NgClass, NgIf], template: "<button\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"classes\"\n (click)=\"onClick.emit($event)\"\n>\n <span *ngIf=\"loading\" class=\"spinner\" aria-hidden=\"true\"></span>\n <ng-content></ng-content>\n</button>\n", styles: [".btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;font-weight:500;letter-spacing:.01em;border-radius:6px;border:1.5px solid transparent;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease,opacity .12s ease;white-space:nowrap;text-decoration:none;outline:none;position:relative}.btn-sm{font-size:12px;padding:6px 12px;height:30px}.btn-md{font-size:14px;padding:8px 16px;height:36px}.btn-lg{font-size:15px;padding:10px 20px;height:44px}.btn-full{width:100%}.btn:focus-visible{outline:2px solid #0071e3;outline-offset:2px}.btn:disabled{opacity:.42;cursor:not-allowed;pointer-events:none}.btn-primary{background:#111;color:#fff;border-color:#111}.btn-primary:hover:not(:disabled){background:#333;border-color:#333}.btn-primary:active:not(:disabled){background:#000;border-color:#000}.btn-secondary{background:#fff;color:#111;border-color:#d4d4d4}.btn-secondary:hover:not(:disabled){background:#f5f5f5;border-color:#bbb}.btn-secondary:active:not(:disabled){background:#ebebeb}.btn-ghost{background:transparent;color:#555;border-color:transparent}.btn-ghost:hover:not(:disabled){background:#f5f5f5;color:#111}.btn-danger{background:#fff;color:#d93025;border-color:#f0a9a4}.btn-danger:hover:not(:disabled){background:#fef2f2;border-color:#d93025}.spinner{width:12px;height:12px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.btn-secondary:hover:not(:disabled){background:var(--color-surface);border-color:var(--color-text-main)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}\n"] }]
29
+ }], propDecorators: { variant: [{
30
+ type: Input
31
+ }], size: [{
32
+ type: Input
33
+ }], disabled: [{
34
+ type: Input
35
+ }], loading: [{
36
+ type: Input
37
+ }], fullWidth: [{
38
+ type: Input
39
+ }], type: [{
40
+ type: Input
41
+ }], onClick: [{
42
+ type: Output
43
+ }] } });
44
+
45
+ class InputComponent {
46
+ static idCounter = 0;
47
+ label = '';
48
+ type = 'text';
49
+ placeholder = '';
50
+ size = 'md';
51
+ hasError = false;
52
+ errorMessage = '';
53
+ hint = '';
54
+ disabled = false;
55
+ inputId = `dsb-input-${++InputComponent.idCounter}`;
56
+ valueChange = new EventEmitter();
57
+ value = '';
58
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
59
+ onTouched = () => { };
60
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
61
+ onChange = () => { };
62
+ onInput(event) {
63
+ const val = event.target.value;
64
+ this.value = val;
65
+ this.onChange(val);
66
+ this.valueChange.emit(val);
67
+ }
68
+ writeValue(val) { this.value = val ?? ''; }
69
+ registerOnChange(fn) { this.onChange = fn; }
70
+ registerOnTouched(fn) { this.onTouched = fn; }
71
+ setDisabledState(disabled) { this.disabled = disabled; }
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
73
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: InputComponent, isStandalone: true, selector: "dsb-input", inputs: { label: "label", type: "type", placeholder: "placeholder", size: "size", hasError: "hasError", errorMessage: "errorMessage", hint: "hint", disabled: "disabled", inputId: "inputId" }, outputs: { valueChange: "valueChange" }, providers: [
74
+ {
75
+ provide: NG_VALUE_ACCESSOR,
76
+ useExisting: forwardRef(() => InputComponent),
77
+ multi: true,
78
+ },
79
+ ], ngImport: i0, template: "<div class=\"field\" [ngClass]=\"{ 'field-error': hasError, 'field-disabled': disabled }\">\n <label *ngIf=\"label\" [attr.for]=\"inputId\" class=\"label\">{{ label }}</label>\n <div class=\"input-wrap\">\n <input\n [id]=\"inputId\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [attr.aria-describedby]=\"hasError && errorMessage ? inputId + '-error' : null\"\n [attr.aria-invalid]=\"hasError || null\"\n class=\"input\"\n [ngClass]=\"['input-' + size]\"\n [value]=\"value\"\n (input)=\"onInput($event)\"\n (blur)=\"onTouched()\"\n />\n </div>\n <p *ngIf=\"hasError && errorMessage\" [id]=\"inputId + '-error'\" class=\"error-msg\">\n {{ errorMessage }}\n </p>\n <p *ngIf=\"hint && !hasError\" class=\"hint\">{{ hint }}</p>\n</div>\n", styles: [".field{display:flex;flex-direction:column;gap:5px}.label{font-size:13px;font-weight:500;color:#111;line-height:1.4}.input-wrap{position:relative;display:flex;align-items:center}.input{width:100%;font-family:inherit;color:#111;background:#fff;border:1.5px solid #d4d4d4;border-radius:6px;outline:none;transition:border-color .12s ease,box-shadow .12s ease;appearance:none;-webkit-appearance:none}.input-sm{font-size:12px;padding:5px 10px;height:30px}.input-md{font-size:14px;padding:7px 12px;height:36px}.input-lg{font-size:15px;padding:9px 14px;height:44px}.input::placeholder{color:#aaa}.input:focus{border-color:#111;box-shadow:0 0 0 3px #0000000f}.field-error .input{border-color:#d93025}.field-error .input:focus{box-shadow:0 0 0 3px #d930251a}.field-disabled .input{background:#f5f5f5;color:#999;cursor:not-allowed}.field-disabled .label{color:#999}.error-msg{font-size:12px;color:#d93025;margin:0;line-height:1.4}.hint{font-size:12px;color:#888;margin:0;line-height:1.4}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
80
+ }
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InputComponent, decorators: [{
82
+ type: Component,
83
+ args: [{ selector: 'dsb-input', standalone: true, imports: [NgClass, NgIf], providers: [
84
+ {
85
+ provide: NG_VALUE_ACCESSOR,
86
+ useExisting: forwardRef(() => InputComponent),
87
+ multi: true,
88
+ },
89
+ ], template: "<div class=\"field\" [ngClass]=\"{ 'field-error': hasError, 'field-disabled': disabled }\">\n <label *ngIf=\"label\" [attr.for]=\"inputId\" class=\"label\">{{ label }}</label>\n <div class=\"input-wrap\">\n <input\n [id]=\"inputId\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [attr.aria-describedby]=\"hasError && errorMessage ? inputId + '-error' : null\"\n [attr.aria-invalid]=\"hasError || null\"\n class=\"input\"\n [ngClass]=\"['input-' + size]\"\n [value]=\"value\"\n (input)=\"onInput($event)\"\n (blur)=\"onTouched()\"\n />\n </div>\n <p *ngIf=\"hasError && errorMessage\" [id]=\"inputId + '-error'\" class=\"error-msg\">\n {{ errorMessage }}\n </p>\n <p *ngIf=\"hint && !hasError\" class=\"hint\">{{ hint }}</p>\n</div>\n", styles: [".field{display:flex;flex-direction:column;gap:5px}.label{font-size:13px;font-weight:500;color:#111;line-height:1.4}.input-wrap{position:relative;display:flex;align-items:center}.input{width:100%;font-family:inherit;color:#111;background:#fff;border:1.5px solid #d4d4d4;border-radius:6px;outline:none;transition:border-color .12s ease,box-shadow .12s ease;appearance:none;-webkit-appearance:none}.input-sm{font-size:12px;padding:5px 10px;height:30px}.input-md{font-size:14px;padding:7px 12px;height:36px}.input-lg{font-size:15px;padding:9px 14px;height:44px}.input::placeholder{color:#aaa}.input:focus{border-color:#111;box-shadow:0 0 0 3px #0000000f}.field-error .input{border-color:#d93025}.field-error .input:focus{box-shadow:0 0 0 3px #d930251a}.field-disabled .input{background:#f5f5f5;color:#999;cursor:not-allowed}.field-disabled .label{color:#999}.error-msg{font-size:12px;color:#d93025;margin:0;line-height:1.4}.hint{font-size:12px;color:#888;margin:0;line-height:1.4}\n"] }]
90
+ }], propDecorators: { label: [{
91
+ type: Input
92
+ }], type: [{
93
+ type: Input
94
+ }], placeholder: [{
95
+ type: Input
96
+ }], size: [{
97
+ type: Input
98
+ }], hasError: [{
99
+ type: Input
100
+ }], errorMessage: [{
101
+ type: Input
102
+ }], hint: [{
103
+ type: Input
104
+ }], disabled: [{
105
+ type: Input
106
+ }], inputId: [{
107
+ type: Input
108
+ }], valueChange: [{
109
+ type: Output
110
+ }] } });
111
+
112
+ class CheckboxComponent {
113
+ static idCounter = 0;
114
+ label = '';
115
+ checked = false;
116
+ disabled = false;
117
+ hasError = false;
118
+ errorMessage = '';
119
+ hint = '';
120
+ checkboxId = `dsb-checkbox-${++CheckboxComponent.idCounter}`;
121
+ checkedChange = new EventEmitter();
122
+ onTouched = () => { };
123
+ onChange = () => { };
124
+ onToggle(event) {
125
+ const val = event.target.checked;
126
+ this.checked = val;
127
+ this.onChange(val);
128
+ this.checkedChange.emit(val);
129
+ }
130
+ writeValue(val) { this.checked = !!val; }
131
+ registerOnChange(fn) { this.onChange = fn; }
132
+ registerOnTouched(fn) { this.onTouched = fn; }
133
+ setDisabledState(disabled) { this.disabled = disabled; }
134
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
135
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: CheckboxComponent, isStandalone: true, selector: "dsb-checkbox", inputs: { label: "label", checked: "checked", disabled: "disabled", hasError: "hasError", errorMessage: "errorMessage", hint: "hint", checkboxId: "checkboxId" }, outputs: { checkedChange: "checkedChange" }, providers: [
136
+ {
137
+ provide: NG_VALUE_ACCESSOR,
138
+ useExisting: forwardRef(() => CheckboxComponent),
139
+ multi: true,
140
+ },
141
+ ], ngImport: i0, template: "<label\n class=\"checkbox-root\"\n [ngClass]=\"{ 'checkbox-disabled': disabled, 'checkbox-checked': checked }\"\n>\n <span class=\"checkbox-box\" [ngClass]=\"{ 'checkbox-box--checked': checked, 'checkbox-box--error': hasError }\">\n <svg *ngIf=\"checked\" class=\"checkbox-icon\" viewBox=\"0 0 12 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 5l3.5 3.5L11 1\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </span>\n <input\n class=\"checkbox-input\"\n type=\"checkbox\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.aria-describedby]=\"hasError && errorMessage ? checkboxId + '-error' : null\"\n [id]=\"checkboxId\"\n (change)=\"onToggle($event)\"\n (blur)=\"onTouched()\"\n />\n <span *ngIf=\"label\" class=\"checkbox-label\">{{ label }}</span>\n</label>\n<p *ngIf=\"hasError && errorMessage\" [id]=\"checkboxId + '-error'\" class=\"checkbox-error\">{{ errorMessage }}</p>\n<p *ngIf=\"hint && !hasError\" class=\"checkbox-hint\">{{ hint }}</p>\n", styles: [".checkbox-root{display:inline-flex;align-items:flex-start;gap:9px;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.checkbox-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkbox-box{flex-shrink:0;width:16px;height:16px;border-radius:4px;border:1.5px solid #d4d4d4;background:#fff;display:flex;align-items:center;justify-content:center;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease;margin-top:1px}.checkbox-root:hover:not(.checkbox-disabled) .checkbox-box{border-color:#111}.checkbox-root:focus-within .checkbox-box{outline:2px solid #111;outline-offset:2px}.checkbox-box--checked{background:#111;border-color:#111;color:#fff}.checkbox-box--error{border-color:#d93025}.checkbox-box--checked.checkbox-box--error{background:#d93025;border-color:#d93025}.checkbox-icon{width:12px;height:10px}.checkbox-label{font-size:14px;color:#111;line-height:1.5}.checkbox-disabled{cursor:not-allowed;opacity:.42}.checkbox-error{font-size:12px;color:#d93025;margin:5px 0 0 25px;line-height:1.4}.checkbox-hint{font-size:12px;color:#888;margin:5px 0 0 25px;line-height:1.4}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
142
+ }
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CheckboxComponent, decorators: [{
144
+ type: Component,
145
+ args: [{ selector: 'dsb-checkbox', standalone: true, imports: [NgClass, NgIf], providers: [
146
+ {
147
+ provide: NG_VALUE_ACCESSOR,
148
+ useExisting: forwardRef(() => CheckboxComponent),
149
+ multi: true,
150
+ },
151
+ ], template: "<label\n class=\"checkbox-root\"\n [ngClass]=\"{ 'checkbox-disabled': disabled, 'checkbox-checked': checked }\"\n>\n <span class=\"checkbox-box\" [ngClass]=\"{ 'checkbox-box--checked': checked, 'checkbox-box--error': hasError }\">\n <svg *ngIf=\"checked\" class=\"checkbox-icon\" viewBox=\"0 0 12 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 5l3.5 3.5L11 1\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </span>\n <input\n class=\"checkbox-input\"\n type=\"checkbox\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.aria-describedby]=\"hasError && errorMessage ? checkboxId + '-error' : null\"\n [id]=\"checkboxId\"\n (change)=\"onToggle($event)\"\n (blur)=\"onTouched()\"\n />\n <span *ngIf=\"label\" class=\"checkbox-label\">{{ label }}</span>\n</label>\n<p *ngIf=\"hasError && errorMessage\" [id]=\"checkboxId + '-error'\" class=\"checkbox-error\">{{ errorMessage }}</p>\n<p *ngIf=\"hint && !hasError\" class=\"checkbox-hint\">{{ hint }}</p>\n", styles: [".checkbox-root{display:inline-flex;align-items:flex-start;gap:9px;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.checkbox-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkbox-box{flex-shrink:0;width:16px;height:16px;border-radius:4px;border:1.5px solid #d4d4d4;background:#fff;display:flex;align-items:center;justify-content:center;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease;margin-top:1px}.checkbox-root:hover:not(.checkbox-disabled) .checkbox-box{border-color:#111}.checkbox-root:focus-within .checkbox-box{outline:2px solid #111;outline-offset:2px}.checkbox-box--checked{background:#111;border-color:#111;color:#fff}.checkbox-box--error{border-color:#d93025}.checkbox-box--checked.checkbox-box--error{background:#d93025;border-color:#d93025}.checkbox-icon{width:12px;height:10px}.checkbox-label{font-size:14px;color:#111;line-height:1.5}.checkbox-disabled{cursor:not-allowed;opacity:.42}.checkbox-error{font-size:12px;color:#d93025;margin:5px 0 0 25px;line-height:1.4}.checkbox-hint{font-size:12px;color:#888;margin:5px 0 0 25px;line-height:1.4}\n"] }]
152
+ }], propDecorators: { label: [{
153
+ type: Input
154
+ }], checked: [{
155
+ type: Input
156
+ }], disabled: [{
157
+ type: Input
158
+ }], hasError: [{
159
+ type: Input
160
+ }], errorMessage: [{
161
+ type: Input
162
+ }], hint: [{
163
+ type: Input
164
+ }], checkboxId: [{
165
+ type: Input
166
+ }], checkedChange: [{
167
+ type: Output
168
+ }] } });
169
+
170
+ class RadioGroupComponent {
171
+ static idCounter = 0;
172
+ options = [];
173
+ legend = '';
174
+ disabled = false;
175
+ hasError = false;
176
+ errorMessage = '';
177
+ inline = false;
178
+ groupName = `dsb-radio-${++RadioGroupComponent.idCounter}`;
179
+ valueChange = new EventEmitter();
180
+ value = '';
181
+ onTouched = () => { };
182
+ onChange = () => { };
183
+ onSelect(val) {
184
+ this.value = val;
185
+ this.onChange(val);
186
+ this.valueChange.emit(val);
187
+ }
188
+ writeValue(val) { this.value = val ?? ''; }
189
+ registerOnChange(fn) { this.onChange = fn; }
190
+ registerOnTouched(fn) { this.onTouched = fn; }
191
+ setDisabledState(disabled) { this.disabled = disabled; }
192
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: RadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
193
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: RadioGroupComponent, isStandalone: true, selector: "dsb-radio-group", inputs: { options: "options", legend: "legend", disabled: "disabled", hasError: "hasError", errorMessage: "errorMessage", inline: "inline", groupName: "groupName" }, outputs: { valueChange: "valueChange" }, providers: [
194
+ {
195
+ provide: NG_VALUE_ACCESSOR,
196
+ useExisting: forwardRef(() => RadioGroupComponent),
197
+ multi: true,
198
+ },
199
+ ], ngImport: i0, template: "<fieldset class=\"radio-group\" [ngClass]=\"{ 'radio-group-inline': inline }\">\n <legend *ngIf=\"legend\" class=\"radio-legend\">{{ legend }}</legend>\n <div\n *ngFor=\"let option of options\"\n class=\"radio-item\"\n [ngClass]=\"{ 'radio-item--disabled': option.disabled || disabled }\"\n >\n <label class=\"radio-root\">\n <span\n class=\"radio-circle\"\n [ngClass]=\"{ 'radio-circle--checked': value === option.value, 'radio-circle--error': hasError }\"\n >\n <span *ngIf=\"value === option.value\" class=\"radio-dot\"></span>\n </span>\n <input\n class=\"radio-input\"\n type=\"radio\"\n [name]=\"groupName\"\n [value]=\"option.value\"\n [checked]=\"value === option.value\"\n [disabled]=\"option.disabled || disabled\"\n (change)=\"onSelect(option.value)\"\n (blur)=\"onTouched()\"\n />\n <span class=\"radio-label-wrap\">\n <span class=\"radio-label\">{{ option.label }}</span>\n <span *ngIf=\"option.hint\" class=\"radio-hint\">{{ option.hint }}</span>\n </span>\n </label>\n </div>\n <p *ngIf=\"hasError && errorMessage\" class=\"radio-error\">{{ errorMessage }}</p>\n</fieldset>\n", styles: [".radio-group{border:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.radio-group-inline{flex-direction:row;flex-wrap:wrap;gap:16px}.radio-legend{font-size:13px;font-weight:500;color:#111;margin-bottom:10px;float:left;width:100%}.radio-item{display:flex}.radio-item--disabled{opacity:.42;pointer-events:none}.radio-root{display:inline-flex;align-items:flex-start;gap:9px;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.radio-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.radio-circle{flex-shrink:0;width:16px;height:16px;border-radius:50%;border:1.5px solid #d4d4d4;background:#fff;display:flex;align-items:center;justify-content:center;transition:border-color .12s ease,background .12s ease;margin-top:2px}.radio-root:hover .radio-circle{border-color:#111}.radio-root:focus-within .radio-circle{outline:2px solid #111;outline-offset:2px}.radio-circle--checked{border-color:#111;background:#fff}.radio-circle--error{border-color:#d93025}.radio-dot{width:7px;height:7px;border-radius:50%;background:#111}.radio-label-wrap{display:flex;flex-direction:column;gap:2px}.radio-label{font-size:14px;color:#111;line-height:1.5}.radio-hint{font-size:12px;color:#888;line-height:1.4}.radio-error{font-size:12px;color:#d93025;margin:4px 0 0;line-height:1.4}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
200
+ }
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: RadioGroupComponent, decorators: [{
202
+ type: Component,
203
+ args: [{ selector: 'dsb-radio-group', standalone: true, imports: [NgClass, NgIf, NgFor], providers: [
204
+ {
205
+ provide: NG_VALUE_ACCESSOR,
206
+ useExisting: forwardRef(() => RadioGroupComponent),
207
+ multi: true,
208
+ },
209
+ ], template: "<fieldset class=\"radio-group\" [ngClass]=\"{ 'radio-group-inline': inline }\">\n <legend *ngIf=\"legend\" class=\"radio-legend\">{{ legend }}</legend>\n <div\n *ngFor=\"let option of options\"\n class=\"radio-item\"\n [ngClass]=\"{ 'radio-item--disabled': option.disabled || disabled }\"\n >\n <label class=\"radio-root\">\n <span\n class=\"radio-circle\"\n [ngClass]=\"{ 'radio-circle--checked': value === option.value, 'radio-circle--error': hasError }\"\n >\n <span *ngIf=\"value === option.value\" class=\"radio-dot\"></span>\n </span>\n <input\n class=\"radio-input\"\n type=\"radio\"\n [name]=\"groupName\"\n [value]=\"option.value\"\n [checked]=\"value === option.value\"\n [disabled]=\"option.disabled || disabled\"\n (change)=\"onSelect(option.value)\"\n (blur)=\"onTouched()\"\n />\n <span class=\"radio-label-wrap\">\n <span class=\"radio-label\">{{ option.label }}</span>\n <span *ngIf=\"option.hint\" class=\"radio-hint\">{{ option.hint }}</span>\n </span>\n </label>\n </div>\n <p *ngIf=\"hasError && errorMessage\" class=\"radio-error\">{{ errorMessage }}</p>\n</fieldset>\n", styles: [".radio-group{border:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.radio-group-inline{flex-direction:row;flex-wrap:wrap;gap:16px}.radio-legend{font-size:13px;font-weight:500;color:#111;margin-bottom:10px;float:left;width:100%}.radio-item{display:flex}.radio-item--disabled{opacity:.42;pointer-events:none}.radio-root{display:inline-flex;align-items:flex-start;gap:9px;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.radio-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.radio-circle{flex-shrink:0;width:16px;height:16px;border-radius:50%;border:1.5px solid #d4d4d4;background:#fff;display:flex;align-items:center;justify-content:center;transition:border-color .12s ease,background .12s ease;margin-top:2px}.radio-root:hover .radio-circle{border-color:#111}.radio-root:focus-within .radio-circle{outline:2px solid #111;outline-offset:2px}.radio-circle--checked{border-color:#111;background:#fff}.radio-circle--error{border-color:#d93025}.radio-dot{width:7px;height:7px;border-radius:50%;background:#111}.radio-label-wrap{display:flex;flex-direction:column;gap:2px}.radio-label{font-size:14px;color:#111;line-height:1.5}.radio-hint{font-size:12px;color:#888;line-height:1.4}.radio-error{font-size:12px;color:#d93025;margin:4px 0 0;line-height:1.4}\n"] }]
210
+ }], propDecorators: { options: [{
211
+ type: Input
212
+ }], legend: [{
213
+ type: Input
214
+ }], disabled: [{
215
+ type: Input
216
+ }], hasError: [{
217
+ type: Input
218
+ }], errorMessage: [{
219
+ type: Input
220
+ }], inline: [{
221
+ type: Input
222
+ }], groupName: [{
223
+ type: Input
224
+ }], valueChange: [{
225
+ type: Output
226
+ }] } });
227
+
228
+ class DropdownComponent {
229
+ elRef;
230
+ static idCounter = 0;
231
+ options = [];
232
+ label = '';
233
+ placeholder = 'Select an option';
234
+ size = 'md';
235
+ disabled = false;
236
+ hasError = false;
237
+ errorMessage = '';
238
+ hint = '';
239
+ dropdownId = `dsb-dropdown-${++DropdownComponent.idCounter}`;
240
+ valueChange = new EventEmitter();
241
+ value = '';
242
+ open = false;
243
+ onTouched = () => { };
244
+ onChange = () => { };
245
+ constructor(elRef) {
246
+ this.elRef = elRef;
247
+ }
248
+ get selectedLabel() {
249
+ return this.options.find(o => o.value === this.value)?.label ?? '';
250
+ }
251
+ toggle() {
252
+ this.open = !this.open;
253
+ }
254
+ select(option) {
255
+ if (option.disabled)
256
+ return;
257
+ this.value = option.value;
258
+ this.open = false;
259
+ this.onChange(option.value);
260
+ this.valueChange.emit(option.value);
261
+ }
262
+ onDocumentClick(event) {
263
+ if (!this.elRef.nativeElement.contains(event.target)) {
264
+ this.open = false;
265
+ }
266
+ }
267
+ onEscape() { this.open = false; }
268
+ writeValue(val) { this.value = val ?? ''; }
269
+ registerOnChange(fn) { this.onChange = fn; }
270
+ registerOnTouched(fn) { this.onTouched = fn; }
271
+ setDisabledState(disabled) { this.disabled = disabled; }
272
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
273
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: DropdownComponent, isStandalone: true, selector: "dsb-dropdown", inputs: { options: "options", label: "label", placeholder: "placeholder", size: "size", disabled: "disabled", hasError: "hasError", errorMessage: "errorMessage", hint: "hint", dropdownId: "dropdownId" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "document:click": "onDocumentClick($event)", "keydown.escape": "onEscape()" } }, providers: [
274
+ {
275
+ provide: NG_VALUE_ACCESSOR,
276
+ useExisting: forwardRef(() => DropdownComponent),
277
+ multi: true,
278
+ },
279
+ ], ngImport: i0, template: "<div class=\"dropdown-field\" [ngClass]=\"{ 'dropdown-error': hasError, 'dropdown-disabled': disabled }\">\n <label *ngIf=\"label\" [attr.for]=\"dropdownId\" class=\"dropdown-label\">{{ label }}</label>\n <div class=\"dropdown-wrap\">\n <button\n [id]=\"dropdownId\"\n type=\"button\"\n class=\"dropdown-trigger\"\n [ngClass]=\"['dropdown-' + size, open ? 'dropdown-trigger--open' : '']\"\n [disabled]=\"disabled\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-invalid]=\"hasError || null\"\n (click)=\"toggle()\"\n (blur)=\"onTouched()\"\n >\n <span class=\"dropdown-value\" [ngClass]=\"{ 'dropdown-placeholder': !selectedLabel }\">\n {{ selectedLabel || placeholder }}\n </span>\n <svg class=\"dropdown-arrow\" [ngClass]=\"{ 'dropdown-arrow--open': open }\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1l4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <ul *ngIf=\"open\" class=\"dropdown-menu\" role=\"listbox\" [attr.aria-label]=\"label || placeholder\">\n <li\n *ngFor=\"let option of options\"\n class=\"dropdown-option\"\n [ngClass]=\"{ 'dropdown-option--selected': value === option.value, 'dropdown-option--disabled': option.disabled }\"\n role=\"option\"\n [attr.aria-selected]=\"value === option.value\"\n [attr.aria-disabled]=\"option.disabled || null\"\n (click)=\"select(option)\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n <p *ngIf=\"hasError && errorMessage\" class=\"dropdown-error-msg\">{{ errorMessage }}</p>\n <p *ngIf=\"hint && !hasError\" class=\"dropdown-hint\">{{ hint }}</p>\n</div>\n", styles: [".dropdown-field{display:flex;flex-direction:column;gap:5px}.dropdown-label{font-size:13px;font-weight:500;color:#111;line-height:1.4}.dropdown-wrap{position:relative}.dropdown-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1.5px solid #d4d4d4;border-radius:6px;background:#fff;cursor:pointer;font-family:inherit;font-size:14px;color:#111;transition:border-color .12s ease,box-shadow .12s ease;text-align:left}.dropdown-trigger:hover:not(:disabled){border-color:#111}.dropdown-trigger:focus-visible{outline:2px solid #111;outline-offset:2px;border-color:#111}.dropdown-trigger--open{border-color:#111}.dropdown-trigger:disabled{cursor:not-allowed}.dropdown-sm{height:32px;padding:0 10px;font-size:13px}.dropdown-md{height:40px;padding:0 12px;font-size:14px}.dropdown-lg{height:48px;padding:0 14px;font-size:15px}.dropdown-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-placeholder{color:#a0a0a0}.dropdown-arrow{flex-shrink:0;width:10px;height:6px;color:#888;transition:transform .15s ease}.dropdown-arrow--open{transform:rotate(180deg)}.dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:100;background:#fff;border:1.5px solid #d4d4d4;border-radius:6px;box-shadow:0 4px 12px #00000014;list-style:none;margin:0;padding:4px;max-height:240px;overflow-y:auto}.dropdown-option{padding:8px 10px;font-size:14px;color:#111;border-radius:4px;cursor:pointer;transition:background .1s ease}.dropdown-option:hover:not(.dropdown-option--disabled){background:#f5f5f5}.dropdown-option--selected{background:#f0f0f0;font-weight:500}.dropdown-option--disabled{color:#b0b0b0;cursor:not-allowed}.dropdown-error .dropdown-trigger{border-color:#d93025}.dropdown-error .dropdown-trigger:hover{border-color:#b0261e}.dropdown-disabled{opacity:.42;pointer-events:none}.dropdown-error-msg{font-size:12px;color:#d93025;margin:0;line-height:1.4}.dropdown-hint{font-size:12px;color:#888;margin:0;line-height:1.4}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
280
+ }
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownComponent, decorators: [{
282
+ type: Component,
283
+ args: [{ selector: 'dsb-dropdown', standalone: true, imports: [NgClass, NgIf, NgFor], providers: [
284
+ {
285
+ provide: NG_VALUE_ACCESSOR,
286
+ useExisting: forwardRef(() => DropdownComponent),
287
+ multi: true,
288
+ },
289
+ ], template: "<div class=\"dropdown-field\" [ngClass]=\"{ 'dropdown-error': hasError, 'dropdown-disabled': disabled }\">\n <label *ngIf=\"label\" [attr.for]=\"dropdownId\" class=\"dropdown-label\">{{ label }}</label>\n <div class=\"dropdown-wrap\">\n <button\n [id]=\"dropdownId\"\n type=\"button\"\n class=\"dropdown-trigger\"\n [ngClass]=\"['dropdown-' + size, open ? 'dropdown-trigger--open' : '']\"\n [disabled]=\"disabled\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-invalid]=\"hasError || null\"\n (click)=\"toggle()\"\n (blur)=\"onTouched()\"\n >\n <span class=\"dropdown-value\" [ngClass]=\"{ 'dropdown-placeholder': !selectedLabel }\">\n {{ selectedLabel || placeholder }}\n </span>\n <svg class=\"dropdown-arrow\" [ngClass]=\"{ 'dropdown-arrow--open': open }\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1l4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <ul *ngIf=\"open\" class=\"dropdown-menu\" role=\"listbox\" [attr.aria-label]=\"label || placeholder\">\n <li\n *ngFor=\"let option of options\"\n class=\"dropdown-option\"\n [ngClass]=\"{ 'dropdown-option--selected': value === option.value, 'dropdown-option--disabled': option.disabled }\"\n role=\"option\"\n [attr.aria-selected]=\"value === option.value\"\n [attr.aria-disabled]=\"option.disabled || null\"\n (click)=\"select(option)\"\n >\n {{ option.label }}\n </li>\n </ul>\n </div>\n <p *ngIf=\"hasError && errorMessage\" class=\"dropdown-error-msg\">{{ errorMessage }}</p>\n <p *ngIf=\"hint && !hasError\" class=\"dropdown-hint\">{{ hint }}</p>\n</div>\n", styles: [".dropdown-field{display:flex;flex-direction:column;gap:5px}.dropdown-label{font-size:13px;font-weight:500;color:#111;line-height:1.4}.dropdown-wrap{position:relative}.dropdown-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1.5px solid #d4d4d4;border-radius:6px;background:#fff;cursor:pointer;font-family:inherit;font-size:14px;color:#111;transition:border-color .12s ease,box-shadow .12s ease;text-align:left}.dropdown-trigger:hover:not(:disabled){border-color:#111}.dropdown-trigger:focus-visible{outline:2px solid #111;outline-offset:2px;border-color:#111}.dropdown-trigger--open{border-color:#111}.dropdown-trigger:disabled{cursor:not-allowed}.dropdown-sm{height:32px;padding:0 10px;font-size:13px}.dropdown-md{height:40px;padding:0 12px;font-size:14px}.dropdown-lg{height:48px;padding:0 14px;font-size:15px}.dropdown-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-placeholder{color:#a0a0a0}.dropdown-arrow{flex-shrink:0;width:10px;height:6px;color:#888;transition:transform .15s ease}.dropdown-arrow--open{transform:rotate(180deg)}.dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:100;background:#fff;border:1.5px solid #d4d4d4;border-radius:6px;box-shadow:0 4px 12px #00000014;list-style:none;margin:0;padding:4px;max-height:240px;overflow-y:auto}.dropdown-option{padding:8px 10px;font-size:14px;color:#111;border-radius:4px;cursor:pointer;transition:background .1s ease}.dropdown-option:hover:not(.dropdown-option--disabled){background:#f5f5f5}.dropdown-option--selected{background:#f0f0f0;font-weight:500}.dropdown-option--disabled{color:#b0b0b0;cursor:not-allowed}.dropdown-error .dropdown-trigger{border-color:#d93025}.dropdown-error .dropdown-trigger:hover{border-color:#b0261e}.dropdown-disabled{opacity:.42;pointer-events:none}.dropdown-error-msg{font-size:12px;color:#d93025;margin:0;line-height:1.4}.dropdown-hint{font-size:12px;color:#888;margin:0;line-height:1.4}\n"] }]
290
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
291
+ type: Input
292
+ }], label: [{
293
+ type: Input
294
+ }], placeholder: [{
295
+ type: Input
296
+ }], size: [{
297
+ type: Input
298
+ }], disabled: [{
299
+ type: Input
300
+ }], hasError: [{
301
+ type: Input
302
+ }], errorMessage: [{
303
+ type: Input
304
+ }], hint: [{
305
+ type: Input
306
+ }], dropdownId: [{
307
+ type: Input
308
+ }], valueChange: [{
309
+ type: Output
310
+ }], onDocumentClick: [{
311
+ type: HostListener,
312
+ args: ['document:click', ['$event']]
313
+ }], onEscape: [{
314
+ type: HostListener,
315
+ args: ['keydown.escape']
316
+ }] } });
317
+
318
+ class BreadcrumbsComponent {
319
+ items = [];
320
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
321
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: BreadcrumbsComponent, isStandalone: true, selector: "dsb-breadcrumbs", inputs: { items: "items" }, ngImport: i0, template: "<nav aria-label=\"Breadcrumb\">\n <ol class=\"breadcrumbs\">\n <li *ngFor=\"let item of items; let last = last; let i = index\" class=\"breadcrumbs-item\">\n <a\n *ngIf=\"item.href && !last; else labelTpl\"\n [href]=\"item.href\"\n class=\"breadcrumbs-link\"\n >{{ item.label }}</a>\n <ng-template #labelTpl>\n <span\n class=\"breadcrumbs-current\"\n [attr.aria-current]=\"last ? 'page' : null\"\n >{{ item.label }}</span>\n </ng-template>\n <span *ngIf=\"!last\" class=\"breadcrumbs-sep\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 6 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"10\">\n <path d=\"M1 1l4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </span>\n </li>\n </ol>\n</nav>\n", styles: [".breadcrumbs{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px}.breadcrumbs-item{display:flex;align-items:center;gap:4px}.breadcrumbs-link{font-size:13px;color:#666;text-decoration:none;line-height:1.4;border-radius:3px;padding:1px 2px;transition:color .12s ease}.breadcrumbs-link:hover{color:#111;text-decoration:underline}.breadcrumbs-link:focus-visible{outline:2px solid #111;outline-offset:2px}.breadcrumbs-current{font-size:13px;color:#111;font-weight:500;line-height:1.4}.breadcrumbs-sep{display:flex;align-items:center;color:silver;margin:0 2px}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
322
+ }
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BreadcrumbsComponent, decorators: [{
324
+ type: Component,
325
+ args: [{ selector: 'dsb-breadcrumbs', standalone: true, imports: [NgFor, NgIf], template: "<nav aria-label=\"Breadcrumb\">\n <ol class=\"breadcrumbs\">\n <li *ngFor=\"let item of items; let last = last; let i = index\" class=\"breadcrumbs-item\">\n <a\n *ngIf=\"item.href && !last; else labelTpl\"\n [href]=\"item.href\"\n class=\"breadcrumbs-link\"\n >{{ item.label }}</a>\n <ng-template #labelTpl>\n <span\n class=\"breadcrumbs-current\"\n [attr.aria-current]=\"last ? 'page' : null\"\n >{{ item.label }}</span>\n </ng-template>\n <span *ngIf=\"!last\" class=\"breadcrumbs-sep\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 6 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"10\">\n <path d=\"M1 1l4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </span>\n </li>\n </ol>\n</nav>\n", styles: [".breadcrumbs{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px}.breadcrumbs-item{display:flex;align-items:center;gap:4px}.breadcrumbs-link{font-size:13px;color:#666;text-decoration:none;line-height:1.4;border-radius:3px;padding:1px 2px;transition:color .12s ease}.breadcrumbs-link:hover{color:#111;text-decoration:underline}.breadcrumbs-link:focus-visible{outline:2px solid #111;outline-offset:2px}.breadcrumbs-current{font-size:13px;color:#111;font-weight:500;line-height:1.4}.breadcrumbs-sep{display:flex;align-items:center;color:silver;margin:0 2px}\n"] }]
326
+ }], propDecorators: { items: [{
327
+ type: Input
328
+ }] } });
329
+
330
+ class HeaderComponent {
331
+ brandName = 'Design System';
332
+ logoSrc = '';
333
+ logoAlt = 'Logo';
334
+ logoHref = '/';
335
+ navItems = [];
336
+ ctaLabel = '';
337
+ ctaHref = '#';
338
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
339
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: HeaderComponent, isStandalone: true, selector: "dsb-header", inputs: { brandName: "brandName", logoSrc: "logoSrc", logoAlt: "logoAlt", logoHref: "logoHref", navItems: "navItems", ctaLabel: "ctaLabel", ctaHref: "ctaHref" }, ngImport: i0, template: "<header class=\"header\">\n <div class=\"header-inner\">\n <a [href]=\"logoHref\" class=\"header-logo\" [attr.aria-label]=\"logoAlt\">\n <svg *ngIf=\"!logoSrc\" class=\"header-logo-icon\" viewBox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <rect width=\"28\" height=\"28\" rx=\"6\" fill=\"#111\"/>\n <path d=\"M8 20V8h5.5a4.5 4.5 0 010 9H8m0 0h6\" stroke=\"#fff\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n <img *ngIf=\"logoSrc\" [src]=\"logoSrc\" [alt]=\"logoAlt\" class=\"header-logo-img\" />\n <span *ngIf=\"brandName\" class=\"header-brand\">{{ brandName }}</span>\n </a>\n\n <nav *ngIf=\"navItems && navItems.length\" class=\"header-nav\" aria-label=\"Main navigation\">\n <ul class=\"header-nav-list\">\n <li *ngFor=\"let item of navItems\">\n <a\n [href]=\"item.href\"\n class=\"header-nav-link\"\n [class.header-nav-link--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n >{{ item.label }}</a>\n </li>\n </ul>\n </nav>\n\n <div *ngIf=\"ctaLabel\" class=\"header-actions\">\n <a [href]=\"ctaHref\" class=\"header-cta\">{{ ctaLabel }}</a>\n </div>\n </div>\n</header>\n", styles: [".header{width:100%;background:#fff;border-bottom:1px solid #ebebeb}.header-inner{max-width:1200px;margin:0 auto;padding:0 24px;height:56px;display:flex;align-items:center;gap:32px}.header-logo{display:flex;align-items:center;gap:9px;text-decoration:none;flex-shrink:0;border-radius:4px}.header-logo:focus-visible{outline:2px solid #111;outline-offset:2px}.header-logo-icon{width:28px;height:28px}.header-logo-img{height:28px;width:auto;display:block}.header-brand{font-size:15px;font-weight:600;color:#111;letter-spacing:-.02em}.header-nav{flex:1}.header-nav-list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px}.header-nav-link{display:inline-block;padding:5px 10px;font-size:14px;color:#555;text-decoration:none;border-radius:5px;transition:color .12s ease,background .12s ease}.header-nav-link:hover{color:#111;background:#f5f5f5}.header-nav-link--active{color:#111;font-weight:500}.header-nav-link:focus-visible{outline:2px solid #111;outline-offset:2px}.header-actions{margin-left:auto;flex-shrink:0}.header-cta{display:inline-block;padding:7px 16px;font-size:14px;font-weight:500;color:#fff;background:#111;border-radius:6px;text-decoration:none;transition:background .12s ease}.header-cta:hover{background:#333}.header-cta:focus-visible{outline:2px solid #111;outline-offset:3px}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
340
+ }
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: HeaderComponent, decorators: [{
342
+ type: Component,
343
+ args: [{ selector: 'dsb-header', standalone: true, imports: [NgFor, NgIf], template: "<header class=\"header\">\n <div class=\"header-inner\">\n <a [href]=\"logoHref\" class=\"header-logo\" [attr.aria-label]=\"logoAlt\">\n <svg *ngIf=\"!logoSrc\" class=\"header-logo-icon\" viewBox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <rect width=\"28\" height=\"28\" rx=\"6\" fill=\"#111\"/>\n <path d=\"M8 20V8h5.5a4.5 4.5 0 010 9H8m0 0h6\" stroke=\"#fff\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n <img *ngIf=\"logoSrc\" [src]=\"logoSrc\" [alt]=\"logoAlt\" class=\"header-logo-img\" />\n <span *ngIf=\"brandName\" class=\"header-brand\">{{ brandName }}</span>\n </a>\n\n <nav *ngIf=\"navItems && navItems.length\" class=\"header-nav\" aria-label=\"Main navigation\">\n <ul class=\"header-nav-list\">\n <li *ngFor=\"let item of navItems\">\n <a\n [href]=\"item.href\"\n class=\"header-nav-link\"\n [class.header-nav-link--active]=\"item.active\"\n [attr.aria-current]=\"item.active ? 'page' : null\"\n >{{ item.label }}</a>\n </li>\n </ul>\n </nav>\n\n <div *ngIf=\"ctaLabel\" class=\"header-actions\">\n <a [href]=\"ctaHref\" class=\"header-cta\">{{ ctaLabel }}</a>\n </div>\n </div>\n</header>\n", styles: [".header{width:100%;background:#fff;border-bottom:1px solid #ebebeb}.header-inner{max-width:1200px;margin:0 auto;padding:0 24px;height:56px;display:flex;align-items:center;gap:32px}.header-logo{display:flex;align-items:center;gap:9px;text-decoration:none;flex-shrink:0;border-radius:4px}.header-logo:focus-visible{outline:2px solid #111;outline-offset:2px}.header-logo-icon{width:28px;height:28px}.header-logo-img{height:28px;width:auto;display:block}.header-brand{font-size:15px;font-weight:600;color:#111;letter-spacing:-.02em}.header-nav{flex:1}.header-nav-list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px}.header-nav-link{display:inline-block;padding:5px 10px;font-size:14px;color:#555;text-decoration:none;border-radius:5px;transition:color .12s ease,background .12s ease}.header-nav-link:hover{color:#111;background:#f5f5f5}.header-nav-link--active{color:#111;font-weight:500}.header-nav-link:focus-visible{outline:2px solid #111;outline-offset:2px}.header-actions{margin-left:auto;flex-shrink:0}.header-cta{display:inline-block;padding:7px 16px;font-size:14px;font-weight:500;color:#fff;background:#111;border-radius:6px;text-decoration:none;transition:background .12s ease}.header-cta:hover{background:#333}.header-cta:focus-visible{outline:2px solid #111;outline-offset:3px}\n"] }]
344
+ }], propDecorators: { brandName: [{
345
+ type: Input
346
+ }], logoSrc: [{
347
+ type: Input
348
+ }], logoAlt: [{
349
+ type: Input
350
+ }], logoHref: [{
351
+ type: Input
352
+ }], navItems: [{
353
+ type: Input
354
+ }], ctaLabel: [{
355
+ type: Input
356
+ }], ctaHref: [{
357
+ type: Input
358
+ }] } });
359
+
360
+ class FooterComponent {
361
+ brandName = 'Design System';
362
+ logoSrc = '';
363
+ logoHref = '/';
364
+ tagline = '';
365
+ columns = [];
366
+ copyright = `© ${new Date().getFullYear()} Blueprint. All rights reserved.`;
367
+ legalLinks = [];
368
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
369
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: FooterComponent, isStandalone: true, selector: "dsb-footer", inputs: { brandName: "brandName", logoSrc: "logoSrc", logoHref: "logoHref", tagline: "tagline", columns: "columns", copyright: "copyright", legalLinks: "legalLinks" }, ngImport: i0, template: "<footer class=\"footer\">\n <div class=\"footer-inner\">\n <div class=\"footer-top\">\n <div class=\"footer-brand\">\n <a [href]=\"logoHref\" class=\"footer-logo-link\">\n <svg *ngIf=\"!logoSrc\" class=\"footer-logo-icon\" viewBox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <rect width=\"28\" height=\"28\" rx=\"6\" fill=\"#111\"/>\n <path d=\"M8 20V8h5.5a4.5 4.5 0 010 9H8m0 0h6\" stroke=\"#fff\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n <img *ngIf=\"logoSrc\" [src]=\"logoSrc\" [alt]=\"brandName\" class=\"footer-logo-img\" />\n <span class=\"footer-brand-name\">{{ brandName }}</span>\n </a>\n <p *ngIf=\"tagline\" class=\"footer-tagline\">{{ tagline }}</p>\n </div>\n\n <nav *ngIf=\"columns && columns.length\" class=\"footer-nav\" aria-label=\"Footer navigation\">\n <div *ngFor=\"let col of columns\" class=\"footer-col\">\n <h3 class=\"footer-col-heading\">{{ col.heading }}</h3>\n <ul class=\"footer-col-list\">\n <li *ngFor=\"let link of col.links\">\n <a [href]=\"link.href\" class=\"footer-link\">{{ link.label }}</a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div class=\"footer-bottom\">\n <p class=\"footer-copy\">{{ copyright }}</p>\n <ul *ngIf=\"legalLinks && legalLinks.length\" class=\"footer-legal\">\n <li *ngFor=\"let link of legalLinks\">\n <a [href]=\"link.href\" class=\"footer-legal-link\">{{ link.label }}</a>\n </li>\n </ul>\n </div>\n </div>\n</footer>\n", styles: [".footer{width:100%;background:#fff;border-top:1px solid #ebebeb}.footer-inner{max-width:1200px;margin:0 auto;padding:48px 24px 24px}.footer-top{display:flex;gap:48px;margin-bottom:40px}.footer-brand{flex-shrink:0;min-width:180px}.footer-logo-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border-radius:4px}.footer-logo-link:focus-visible{outline:2px solid #111;outline-offset:2px}.footer-logo-icon{width:26px;height:26px}.footer-logo-img{height:26px;width:auto;display:block}.footer-brand-name{font-size:15px;font-weight:600;color:#111;letter-spacing:-.02em}.footer-tagline{font-size:13px;color:#888;margin:10px 0 0;line-height:1.5;max-width:200px}.footer-nav{flex:1;display:flex;gap:32px;flex-wrap:wrap;justify-content:flex-end}.footer-col{min-width:120px}.footer-col-heading{font-size:12px;font-weight:600;color:#111;text-transform:uppercase;letter-spacing:.06em;margin:0 0 12px}.footer-col-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.footer-link{font-size:13px;color:#666;text-decoration:none;border-radius:3px;transition:color .12s ease}.footer-link:hover{color:#111}.footer-link:focus-visible{outline:2px solid #111;outline-offset:2px}.footer-bottom{padding-top:20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.footer-copy{font-size:12px;color:#aaa;margin:0}.footer-legal{list-style:none;margin:0;padding:0;display:flex;gap:16px}.footer-legal-link{font-size:12px;color:#aaa;text-decoration:none;transition:color .12s ease}.footer-legal-link:hover{color:#555}.footer-legal-link:focus-visible{outline:2px solid #111;outline-offset:2px}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
370
+ }
371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FooterComponent, decorators: [{
372
+ type: Component,
373
+ args: [{ selector: 'dsb-footer', standalone: true, imports: [NgFor, NgIf], template: "<footer class=\"footer\">\n <div class=\"footer-inner\">\n <div class=\"footer-top\">\n <div class=\"footer-brand\">\n <a [href]=\"logoHref\" class=\"footer-logo-link\">\n <svg *ngIf=\"!logoSrc\" class=\"footer-logo-icon\" viewBox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <rect width=\"28\" height=\"28\" rx=\"6\" fill=\"#111\"/>\n <path d=\"M8 20V8h5.5a4.5 4.5 0 010 9H8m0 0h6\" stroke=\"#fff\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n <img *ngIf=\"logoSrc\" [src]=\"logoSrc\" [alt]=\"brandName\" class=\"footer-logo-img\" />\n <span class=\"footer-brand-name\">{{ brandName }}</span>\n </a>\n <p *ngIf=\"tagline\" class=\"footer-tagline\">{{ tagline }}</p>\n </div>\n\n <nav *ngIf=\"columns && columns.length\" class=\"footer-nav\" aria-label=\"Footer navigation\">\n <div *ngFor=\"let col of columns\" class=\"footer-col\">\n <h3 class=\"footer-col-heading\">{{ col.heading }}</h3>\n <ul class=\"footer-col-list\">\n <li *ngFor=\"let link of col.links\">\n <a [href]=\"link.href\" class=\"footer-link\">{{ link.label }}</a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div class=\"footer-bottom\">\n <p class=\"footer-copy\">{{ copyright }}</p>\n <ul *ngIf=\"legalLinks && legalLinks.length\" class=\"footer-legal\">\n <li *ngFor=\"let link of legalLinks\">\n <a [href]=\"link.href\" class=\"footer-legal-link\">{{ link.label }}</a>\n </li>\n </ul>\n </div>\n </div>\n</footer>\n", styles: [".footer{width:100%;background:#fff;border-top:1px solid #ebebeb}.footer-inner{max-width:1200px;margin:0 auto;padding:48px 24px 24px}.footer-top{display:flex;gap:48px;margin-bottom:40px}.footer-brand{flex-shrink:0;min-width:180px}.footer-logo-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border-radius:4px}.footer-logo-link:focus-visible{outline:2px solid #111;outline-offset:2px}.footer-logo-icon{width:26px;height:26px}.footer-logo-img{height:26px;width:auto;display:block}.footer-brand-name{font-size:15px;font-weight:600;color:#111;letter-spacing:-.02em}.footer-tagline{font-size:13px;color:#888;margin:10px 0 0;line-height:1.5;max-width:200px}.footer-nav{flex:1;display:flex;gap:32px;flex-wrap:wrap;justify-content:flex-end}.footer-col{min-width:120px}.footer-col-heading{font-size:12px;font-weight:600;color:#111;text-transform:uppercase;letter-spacing:.06em;margin:0 0 12px}.footer-col-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.footer-link{font-size:13px;color:#666;text-decoration:none;border-radius:3px;transition:color .12s ease}.footer-link:hover{color:#111}.footer-link:focus-visible{outline:2px solid #111;outline-offset:2px}.footer-bottom{padding-top:20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.footer-copy{font-size:12px;color:#aaa;margin:0}.footer-legal{list-style:none;margin:0;padding:0;display:flex;gap:16px}.footer-legal-link{font-size:12px;color:#aaa;text-decoration:none;transition:color .12s ease}.footer-legal-link:hover{color:#555}.footer-legal-link:focus-visible{outline:2px solid #111;outline-offset:2px}\n"] }]
374
+ }], propDecorators: { brandName: [{
375
+ type: Input
376
+ }], logoSrc: [{
377
+ type: Input
378
+ }], logoHref: [{
379
+ type: Input
380
+ }], tagline: [{
381
+ type: Input
382
+ }], columns: [{
383
+ type: Input
384
+ }], copyright: [{
385
+ type: Input
386
+ }], legalLinks: [{
387
+ type: Input
388
+ }] } });
389
+
390
+ class TagComponent {
391
+ variant = 'default';
392
+ size = 'md';
393
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
394
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: TagComponent, isStandalone: true, selector: "dsb-tag", inputs: { variant: "variant", size: "size" }, ngImport: i0, template: "<span class=\"tag\" [ngClass]=\"['tag-' + variant, 'tag-' + size]\">\n <ng-content></ng-content>\n</span>\n", styles: [".tag{display:inline-flex;align-items:center;font-family:inherit;font-weight:500;border-radius:4px;white-space:nowrap;letter-spacing:.01em}.tag-sm{font-size:11px;padding:2px 7px}.tag-md{font-size:12px;padding:3px 9px}.tag-default{background:#f0f0f0;color:#444}.tag-primary{background:#111;color:#fff}.tag-success{background:#e6f4ea;color:#1a7f3c}.tag-warning{background:#fef3cd;color:#92600a}.tag-danger{background:#fce8e6;color:#c5221f}.tag-info{background:#e8f0fe;color:#1a56db}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
395
+ }
396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TagComponent, decorators: [{
397
+ type: Component,
398
+ args: [{ selector: 'dsb-tag', standalone: true, imports: [NgClass], template: "<span class=\"tag\" [ngClass]=\"['tag-' + variant, 'tag-' + size]\">\n <ng-content></ng-content>\n</span>\n", styles: [".tag{display:inline-flex;align-items:center;font-family:inherit;font-weight:500;border-radius:4px;white-space:nowrap;letter-spacing:.01em}.tag-sm{font-size:11px;padding:2px 7px}.tag-md{font-size:12px;padding:3px 9px}.tag-default{background:#f0f0f0;color:#444}.tag-primary{background:#111;color:#fff}.tag-success{background:#e6f4ea;color:#1a7f3c}.tag-warning{background:#fef3cd;color:#92600a}.tag-danger{background:#fce8e6;color:#c5221f}.tag-info{background:#e8f0fe;color:#1a56db}\n"] }]
399
+ }], propDecorators: { variant: [{
400
+ type: Input
401
+ }], size: [{
402
+ type: Input
403
+ }] } });
404
+
405
+ class AvatarComponent {
406
+ src = '';
407
+ alt = '';
408
+ name = '';
409
+ size = 'md';
410
+ shape = 'circle';
411
+ get initials() {
412
+ if (!this.name)
413
+ return '?';
414
+ const parts = this.name.trim().split(/\s+/);
415
+ return parts.length >= 2
416
+ ? (parts[0][0] + parts[parts.length - 1][0]).toUpperCase()
417
+ : parts[0].slice(0, 2).toUpperCase();
418
+ }
419
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
420
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: AvatarComponent, isStandalone: true, selector: "dsb-avatar", inputs: { src: "src", alt: "alt", name: "name", size: "size", shape: "shape" }, ngImport: i0, template: "<span\n class=\"avatar\"\n [ngClass]=\"['avatar-' + size, 'avatar-' + shape, src ? 'avatar-img' : 'avatar-initials']\"\n [attr.aria-label]=\"alt || name || null\"\n role=\"img\"\n>\n <img *ngIf=\"src\" [src]=\"src\" [alt]=\"alt || name\" class=\"avatar-image\" />\n <span *ngIf=\"!src\" class=\"avatar-text\">{{ initials }}</span>\n</span>\n", styles: [".avatar{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;background:#e8e8e8;font-family:inherit;font-weight:600;letter-spacing:.02em;color:#555;-webkit-user-select:none;user-select:none}.avatar-circle{border-radius:50%}.avatar-rounded{border-radius:6px}.avatar-xs{width:24px;height:24px;font-size:9px}.avatar-sm{width:32px;height:32px;font-size:12px}.avatar-md{width:40px;height:40px;font-size:14px}.avatar-lg{width:52px;height:52px;font-size:18px}.avatar-xl{width:68px;height:68px;font-size:22px}.avatar-image{width:100%;height:100%;object-fit:cover;display:block}.avatar-text{line-height:1}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
421
+ }
422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AvatarComponent, decorators: [{
423
+ type: Component,
424
+ args: [{ selector: 'dsb-avatar', standalone: true, imports: [NgClass, NgIf], template: "<span\n class=\"avatar\"\n [ngClass]=\"['avatar-' + size, 'avatar-' + shape, src ? 'avatar-img' : 'avatar-initials']\"\n [attr.aria-label]=\"alt || name || null\"\n role=\"img\"\n>\n <img *ngIf=\"src\" [src]=\"src\" [alt]=\"alt || name\" class=\"avatar-image\" />\n <span *ngIf=\"!src\" class=\"avatar-text\">{{ initials }}</span>\n</span>\n", styles: [".avatar{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;background:#e8e8e8;font-family:inherit;font-weight:600;letter-spacing:.02em;color:#555;-webkit-user-select:none;user-select:none}.avatar-circle{border-radius:50%}.avatar-rounded{border-radius:6px}.avatar-xs{width:24px;height:24px;font-size:9px}.avatar-sm{width:32px;height:32px;font-size:12px}.avatar-md{width:40px;height:40px;font-size:14px}.avatar-lg{width:52px;height:52px;font-size:18px}.avatar-xl{width:68px;height:68px;font-size:22px}.avatar-image{width:100%;height:100%;object-fit:cover;display:block}.avatar-text{line-height:1}\n"] }]
425
+ }], propDecorators: { src: [{
426
+ type: Input
427
+ }], alt: [{
428
+ type: Input
429
+ }], name: [{
430
+ type: Input
431
+ }], size: [{
432
+ type: Input
433
+ }], shape: [{
434
+ type: Input
435
+ }] } });
436
+
437
+ class ModalComponent {
438
+ open = false;
439
+ title = '';
440
+ size = 'md';
441
+ closeOnBackdrop = true;
442
+ openChange = new EventEmitter();
443
+ closed = new EventEmitter();
444
+ ngOnChanges(changes) {
445
+ if (changes['open']) {
446
+ if (this.open) {
447
+ document.body.style.overflow = 'hidden';
448
+ }
449
+ else {
450
+ document.body.style.overflow = '';
451
+ }
452
+ }
453
+ }
454
+ close() {
455
+ this.open = false;
456
+ document.body.style.overflow = '';
457
+ this.openChange.emit(false);
458
+ this.closed.emit();
459
+ }
460
+ onBackdropClick(event) {
461
+ if (this.closeOnBackdrop && event.target === event.currentTarget) {
462
+ this.close();
463
+ }
464
+ }
465
+ onEscape() {
466
+ if (this.open)
467
+ this.close();
468
+ }
469
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
470
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: ModalComponent, isStandalone: true, selector: "dsb-modal", inputs: { open: "open", title: "title", size: "size", closeOnBackdrop: "closeOnBackdrop" }, outputs: { openChange: "openChange", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"open\" class=\"modal-backdrop\" (click)=\"onBackdropClick($event)\" role=\"presentation\">\n <div\n class=\"modal-panel\"\n [ngClass]=\"'modal-' + size\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-labelledby]=\"title ? 'modal-title' : null\"\n >\n <div class=\"modal-header\">\n <h2 *ngIf=\"title\" id=\"modal-title\" class=\"modal-title\">{{ title }}</h2>\n <div *ngIf=\"!title\" class=\"modal-title-slot\"><ng-content select=\"[modal-title]\"></ng-content></div>\n <button\n class=\"modal-close\"\n type=\"button\"\n aria-label=\"Close modal\"\n (click)=\"close()\"\n >\n <svg viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" width=\"14\" height=\"14\">\n <path d=\"M1 1l12 12M13 1L1 13\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"/>\n </svg>\n </button>\n </div>\n\n <div class=\"modal-body\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"modal-footer\">\n <ng-content select=\"[modal-footer]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [".modal-backdrop{position:fixed;inset:0;z-index:1000;background:#0006;display:flex;align-items:center;justify-content:center;padding:16px}.modal-panel{background:#fff;border-radius:10px;box-shadow:0 8px 32px #00000024;display:flex;flex-direction:column;max-height:calc(100vh - 64px);width:100%;animation:modal-in .16s ease}@keyframes modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-sm{max-width:400px}.modal-md{max-width:540px}.modal-lg{max-width:720px}.modal-xl{max-width:960px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 20px 0;flex-shrink:0}.modal-title{font-size:16px;font-weight:600;color:#111;margin:0;line-height:1.4}.modal-title-slot{flex:1}.modal-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border:none;background:transparent;color:#888;cursor:pointer;border-radius:5px;transition:background .12s ease,color .12s ease;padding:0;margin-top:-2px}.modal-close:hover{background:#f0f0f0;color:#111}.modal-close:focus-visible{outline:2px solid #111;outline-offset:2px}.modal-body{padding:16px 20px;overflow-y:auto;flex:1;font-size:14px;color:#333;line-height:1.6}.modal-footer{padding:0 20px 20px;flex-shrink:0;display:flex;justify-content:flex-end;gap:8px}.modal-footer:empty{display:none}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
471
+ }
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ModalComponent, decorators: [{
473
+ type: Component,
474
+ args: [{ selector: 'dsb-modal', standalone: true, imports: [NgClass, NgIf], template: "<div *ngIf=\"open\" class=\"modal-backdrop\" (click)=\"onBackdropClick($event)\" role=\"presentation\">\n <div\n class=\"modal-panel\"\n [ngClass]=\"'modal-' + size\"\n role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-labelledby]=\"title ? 'modal-title' : null\"\n >\n <div class=\"modal-header\">\n <h2 *ngIf=\"title\" id=\"modal-title\" class=\"modal-title\">{{ title }}</h2>\n <div *ngIf=\"!title\" class=\"modal-title-slot\"><ng-content select=\"[modal-title]\"></ng-content></div>\n <button\n class=\"modal-close\"\n type=\"button\"\n aria-label=\"Close modal\"\n (click)=\"close()\"\n >\n <svg viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" width=\"14\" height=\"14\">\n <path d=\"M1 1l12 12M13 1L1 13\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\"/>\n </svg>\n </button>\n </div>\n\n <div class=\"modal-body\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"modal-footer\">\n <ng-content select=\"[modal-footer]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [".modal-backdrop{position:fixed;inset:0;z-index:1000;background:#0006;display:flex;align-items:center;justify-content:center;padding:16px}.modal-panel{background:#fff;border-radius:10px;box-shadow:0 8px 32px #00000024;display:flex;flex-direction:column;max-height:calc(100vh - 64px);width:100%;animation:modal-in .16s ease}@keyframes modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-sm{max-width:400px}.modal-md{max-width:540px}.modal-lg{max-width:720px}.modal-xl{max-width:960px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 20px 0;flex-shrink:0}.modal-title{font-size:16px;font-weight:600;color:#111;margin:0;line-height:1.4}.modal-title-slot{flex:1}.modal-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border:none;background:transparent;color:#888;cursor:pointer;border-radius:5px;transition:background .12s ease,color .12s ease;padding:0;margin-top:-2px}.modal-close:hover{background:#f0f0f0;color:#111}.modal-close:focus-visible{outline:2px solid #111;outline-offset:2px}.modal-body{padding:16px 20px;overflow-y:auto;flex:1;font-size:14px;color:#333;line-height:1.6}.modal-footer{padding:0 20px 20px;flex-shrink:0;display:flex;justify-content:flex-end;gap:8px}.modal-footer:empty{display:none}\n"] }]
475
+ }], propDecorators: { open: [{
476
+ type: Input
477
+ }], title: [{
478
+ type: Input
479
+ }], size: [{
480
+ type: Input
481
+ }], closeOnBackdrop: [{
482
+ type: Input
483
+ }], openChange: [{
484
+ type: Output
485
+ }], closed: [{
486
+ type: Output
487
+ }], onEscape: [{
488
+ type: HostListener,
489
+ args: ['document:keydown.escape']
490
+ }] } });
491
+
492
+ class ColumnDefDirective {
493
+ key;
494
+ header = '';
495
+ width = '';
496
+ align = 'left';
497
+ cellTemplate;
498
+ headerTemplate;
499
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ColumnDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
500
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: ColumnDefDirective, isStandalone: true, selector: "dsb-column", inputs: { key: "key", header: "header", width: "width", align: "align" }, queries: [{ propertyName: "cellTemplate", first: true, predicate: ["cell"], descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ["headerCell"], descendants: true }], ngImport: i0 });
501
+ }
502
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ColumnDefDirective, decorators: [{
503
+ type: Directive,
504
+ args: [{ selector: 'dsb-column', standalone: true }]
505
+ }], propDecorators: { key: [{
506
+ type: Input,
507
+ args: [{ required: true }]
508
+ }], header: [{
509
+ type: Input
510
+ }], width: [{
511
+ type: Input
512
+ }], align: [{
513
+ type: Input
514
+ }], cellTemplate: [{
515
+ type: ContentChild,
516
+ args: ['cell']
517
+ }], headerTemplate: [{
518
+ type: ContentChild,
519
+ args: ['headerCell']
520
+ }] } });
521
+
522
+ class TableComponent {
523
+ rows = [];
524
+ striped = false;
525
+ hoverable = true;
526
+ loading = false;
527
+ rowClickable = false;
528
+ emptyMessage = 'No data to display.';
529
+ rowClick = new EventEmitter();
530
+ columnDefs;
531
+ columns = [];
532
+ ngAfterContentInit() {
533
+ this.columns = this.columnDefs.toArray();
534
+ this.columnDefs.changes.subscribe(() => {
535
+ this.columns = this.columnDefs.toArray();
536
+ });
537
+ }
538
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
539
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: TableComponent, isStandalone: true, selector: "dsb-table", inputs: { rows: "rows", striped: "striped", hoverable: "hoverable", loading: "loading", rowClickable: "rowClickable", emptyMessage: "emptyMessage" }, outputs: { rowClick: "rowClick" }, queries: [{ propertyName: "columnDefs", predicate: ColumnDefDirective }], ngImport: i0, template: "<div class=\"table-wrap\">\n <table class=\"table\" [ngClass]=\"{ 'table-striped': striped, 'table-hoverable': hoverable }\">\n <thead class=\"table-head\">\n <tr>\n <th\n *ngFor=\"let col of columns\"\n class=\"table-th\"\n [style.width]=\"col.width || null\"\n [ngClass]=\"'align-' + col.align\"\n >\n <ng-container *ngIf=\"col.headerTemplate; else defaultHeader\">\n <ng-container [ngTemplateOutlet]=\"col.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultHeader>{{ col.header }}</ng-template>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngIf=\"loading\">\n <td [attr.colspan]=\"columns.length\" class=\"table-td table-td-state\">\n <span class=\"table-spinner\" aria-hidden=\"true\"></span>\n <span class=\"sr-only\">Loading\u2026</span>\n </td>\n </tr>\n <tr *ngIf=\"!loading && rows.length === 0\">\n <td [attr.colspan]=\"columns.length\" class=\"table-td table-td-state\">\n {{ emptyMessage }}\n </td>\n </tr>\n <tr\n *ngFor=\"let row of rows; let i = index\"\n class=\"table-row\"\n [ngClass]=\"{ 'table-row-clickable': rowClickable }\"\n (click)=\"rowClick.emit(row)\"\n >\n <td\n *ngFor=\"let col of columns\"\n class=\"table-td\"\n [ngClass]=\"'align-' + col.align\"\n >\n <ng-container\n *ngIf=\"col.cellTemplate; else defaultCell\"\n [ngTemplateOutlet]=\"col.cellTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row[col.key], row: row, index: i }\"\n ></ng-container>\n <ng-template #defaultCell>{{ row[col.key] }}</ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".table-wrap{width:100%;overflow-x:auto;border:1.5px solid #ebebeb;border-radius:8px;background:#fff}.table{width:100%;border-collapse:collapse;font-size:14px;color:#111}.table-head{border-bottom:1.5px solid #ebebeb}.table-th{padding:10px 16px;font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.06em;background:#fafafa;white-space:nowrap}.table-td{padding:12px 16px;border-bottom:1px solid #f0f0f0;vertical-align:middle;color:#333;font-size:14px;line-height:1.5}.table-row:last-child .table-td{border-bottom:none}.align-left{text-align:left}.align-center{text-align:center}.align-right{text-align:right}.table-striped .table-row:nth-child(2n) .table-td{background:#fafafa}.table-hoverable .table-row:hover .table-td{background:#f7f7f7;transition:background .1s ease}.table-row-clickable{cursor:pointer}.table-td-state{text-align:center;color:#aaa;padding:40px 16px;font-size:14px}.table-spinner{display:inline-block;width:18px;height:18px;border:2px solid #e0e0e0;border-top-color:#111;border-radius:50%;animation:table-spin .7s linear infinite}@keyframes table-spin{to{transform:rotate(360deg)}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
540
+ }
541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TableComponent, decorators: [{
542
+ type: Component,
543
+ args: [{ selector: 'dsb-table', standalone: true, imports: [NgFor, NgIf, NgClass, NgTemplateOutlet], template: "<div class=\"table-wrap\">\n <table class=\"table\" [ngClass]=\"{ 'table-striped': striped, 'table-hoverable': hoverable }\">\n <thead class=\"table-head\">\n <tr>\n <th\n *ngFor=\"let col of columns\"\n class=\"table-th\"\n [style.width]=\"col.width || null\"\n [ngClass]=\"'align-' + col.align\"\n >\n <ng-container *ngIf=\"col.headerTemplate; else defaultHeader\">\n <ng-container [ngTemplateOutlet]=\"col.headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultHeader>{{ col.header }}</ng-template>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngIf=\"loading\">\n <td [attr.colspan]=\"columns.length\" class=\"table-td table-td-state\">\n <span class=\"table-spinner\" aria-hidden=\"true\"></span>\n <span class=\"sr-only\">Loading\u2026</span>\n </td>\n </tr>\n <tr *ngIf=\"!loading && rows.length === 0\">\n <td [attr.colspan]=\"columns.length\" class=\"table-td table-td-state\">\n {{ emptyMessage }}\n </td>\n </tr>\n <tr\n *ngFor=\"let row of rows; let i = index\"\n class=\"table-row\"\n [ngClass]=\"{ 'table-row-clickable': rowClickable }\"\n (click)=\"rowClick.emit(row)\"\n >\n <td\n *ngFor=\"let col of columns\"\n class=\"table-td\"\n [ngClass]=\"'align-' + col.align\"\n >\n <ng-container\n *ngIf=\"col.cellTemplate; else defaultCell\"\n [ngTemplateOutlet]=\"col.cellTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: row[col.key], row: row, index: i }\"\n ></ng-container>\n <ng-template #defaultCell>{{ row[col.key] }}</ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".table-wrap{width:100%;overflow-x:auto;border:1.5px solid #ebebeb;border-radius:8px;background:#fff}.table{width:100%;border-collapse:collapse;font-size:14px;color:#111}.table-head{border-bottom:1.5px solid #ebebeb}.table-th{padding:10px 16px;font-size:11px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.06em;background:#fafafa;white-space:nowrap}.table-td{padding:12px 16px;border-bottom:1px solid #f0f0f0;vertical-align:middle;color:#333;font-size:14px;line-height:1.5}.table-row:last-child .table-td{border-bottom:none}.align-left{text-align:left}.align-center{text-align:center}.align-right{text-align:right}.table-striped .table-row:nth-child(2n) .table-td{background:#fafafa}.table-hoverable .table-row:hover .table-td{background:#f7f7f7;transition:background .1s ease}.table-row-clickable{cursor:pointer}.table-td-state{text-align:center;color:#aaa;padding:40px 16px;font-size:14px}.table-spinner{display:inline-block;width:18px;height:18px;border:2px solid #e0e0e0;border-top-color:#111;border-radius:50%;animation:table-spin .7s linear infinite}@keyframes table-spin{to{transform:rotate(360deg)}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}\n"] }]
544
+ }], propDecorators: { rows: [{
545
+ type: Input
546
+ }], striped: [{
547
+ type: Input
548
+ }], hoverable: [{
549
+ type: Input
550
+ }], loading: [{
551
+ type: Input
552
+ }], rowClickable: [{
553
+ type: Input
554
+ }], emptyMessage: [{
555
+ type: Input
556
+ }], rowClick: [{
557
+ type: Output
558
+ }], columnDefs: [{
559
+ type: ContentChildren,
560
+ args: [ColumnDefDirective]
561
+ }] } });
562
+
563
+ class ListComponent {
564
+ divided = true;
565
+ bordered = false;
566
+ compact = false;
567
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
568
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: ListComponent, isStandalone: true, selector: "dsb-list", inputs: { divided: "divided", bordered: "bordered", compact: "compact" }, ngImport: i0, template: "<ul\n class=\"list\"\n [ngClass]=\"{\n 'list-divided': divided,\n 'list-bordered': bordered,\n 'list-compact': compact\n }\"\n>\n <ng-content></ng-content>\n</ul>\n", styles: [".list{list-style:none;margin:0;padding:0}.list-bordered{border:1.5px solid #ebebeb;border-radius:8px;overflow:hidden}.list-divided .list-item+.list-item{border-top:1px solid #f0f0f0}.list-compact .list-item{padding:8px 12px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
569
+ }
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ListComponent, decorators: [{
571
+ type: Component,
572
+ args: [{ selector: 'dsb-list', standalone: true, imports: [NgClass], template: "<ul\n class=\"list\"\n [ngClass]=\"{\n 'list-divided': divided,\n 'list-bordered': bordered,\n 'list-compact': compact\n }\"\n>\n <ng-content></ng-content>\n</ul>\n", styles: [".list{list-style:none;margin:0;padding:0}.list-bordered{border:1.5px solid #ebebeb;border-radius:8px;overflow:hidden}.list-divided .list-item+.list-item{border-top:1px solid #f0f0f0}.list-compact .list-item{padding:8px 12px}\n"] }]
573
+ }], propDecorators: { divided: [{
574
+ type: Input
575
+ }], bordered: [{
576
+ type: Input
577
+ }], compact: [{
578
+ type: Input
579
+ }] } });
580
+
581
+ class ListItemComponent {
582
+ label = '';
583
+ description = '';
584
+ meta = '';
585
+ variant = 'default';
586
+ indicator = false;
587
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
588
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: ListItemComponent, isStandalone: true, selector: "dsb-list-item", inputs: { label: "label", description: "description", meta: "meta", variant: "variant", indicator: "indicator" }, ngImport: i0, template: "<li\n class=\"list-item\"\n [ngClass]=\"['list-item--' + variant, indicator ? 'list-item--indicator' : '']\"\n>\n <span *ngIf=\"indicator\" class=\"list-item-dot\" [ngClass]=\"'dot--' + variant\"></span>\n\n <div class=\"list-item-leading\">\n <ng-content select=\"[list-leading]\"></ng-content>\n </div>\n\n <div class=\"list-item-body\">\n <div *ngIf=\"label || meta\" class=\"list-item-top\">\n <span *ngIf=\"label\" class=\"list-item-label\">{{ label }}</span>\n <span *ngIf=\"meta\" class=\"list-item-meta\">{{ meta }}</span>\n </div>\n <p *ngIf=\"description\" class=\"list-item-description\">{{ description }}</p>\n <ng-content></ng-content>\n </div>\n\n <div class=\"list-item-trailing\">\n <ng-content select=\"[list-trailing]\"></ng-content>\n </div>\n</li>\n", styles: [".list-item{display:flex;align-items:center;gap:12px;padding:12px 16px}.list-item-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%}.dot--default{background:#d4d4d4}.dot--info{background:#1a56db}.dot--success{background:#1a7f3c}.dot--warning{background:#92600a}.dot--error{background:#c5221f}.list-item-leading{flex-shrink:0;display:flex;align-items:center}.list-item-leading:empty{display:none}.list-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.list-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.list-item-label{font-size:14px;font-weight:500;color:#111;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-item--info .list-item-label{color:#1a56db}.list-item--success .list-item-label{color:#1a7f3c}.list-item--warning .list-item-label{color:#92600a}.list-item--error .list-item-label{color:#c5221f}.list-item-meta{flex-shrink:0;font-size:11px;color:#aaa;white-space:nowrap;font-variant-numeric:tabular-nums}.list-item-description{font-size:13px;color:#666;margin:0;line-height:1.5}.list-item-trailing{flex-shrink:0;display:flex;align-items:center;gap:6px}.list-item-trailing:empty{display:none}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
589
+ }
590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ListItemComponent, decorators: [{
591
+ type: Component,
592
+ args: [{ selector: 'dsb-list-item', standalone: true, imports: [NgClass, NgIf], template: "<li\n class=\"list-item\"\n [ngClass]=\"['list-item--' + variant, indicator ? 'list-item--indicator' : '']\"\n>\n <span *ngIf=\"indicator\" class=\"list-item-dot\" [ngClass]=\"'dot--' + variant\"></span>\n\n <div class=\"list-item-leading\">\n <ng-content select=\"[list-leading]\"></ng-content>\n </div>\n\n <div class=\"list-item-body\">\n <div *ngIf=\"label || meta\" class=\"list-item-top\">\n <span *ngIf=\"label\" class=\"list-item-label\">{{ label }}</span>\n <span *ngIf=\"meta\" class=\"list-item-meta\">{{ meta }}</span>\n </div>\n <p *ngIf=\"description\" class=\"list-item-description\">{{ description }}</p>\n <ng-content></ng-content>\n </div>\n\n <div class=\"list-item-trailing\">\n <ng-content select=\"[list-trailing]\"></ng-content>\n </div>\n</li>\n", styles: [".list-item{display:flex;align-items:center;gap:12px;padding:12px 16px}.list-item-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%}.dot--default{background:#d4d4d4}.dot--info{background:#1a56db}.dot--success{background:#1a7f3c}.dot--warning{background:#92600a}.dot--error{background:#c5221f}.list-item-leading{flex-shrink:0;display:flex;align-items:center}.list-item-leading:empty{display:none}.list-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.list-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.list-item-label{font-size:14px;font-weight:500;color:#111;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-item--info .list-item-label{color:#1a56db}.list-item--success .list-item-label{color:#1a7f3c}.list-item--warning .list-item-label{color:#92600a}.list-item--error .list-item-label{color:#c5221f}.list-item-meta{flex-shrink:0;font-size:11px;color:#aaa;white-space:nowrap;font-variant-numeric:tabular-nums}.list-item-description{font-size:13px;color:#666;margin:0;line-height:1.5}.list-item-trailing{flex-shrink:0;display:flex;align-items:center;gap:6px}.list-item-trailing:empty{display:none}\n"] }]
593
+ }], propDecorators: { label: [{
594
+ type: Input
595
+ }], description: [{
596
+ type: Input
597
+ }], meta: [{
598
+ type: Input
599
+ }], variant: [{
600
+ type: Input
601
+ }], indicator: [{
602
+ type: Input
603
+ }] } });
604
+
605
+ class AccordionItemComponent {
606
+ title = '';
607
+ open = false;
608
+ disabled = false;
609
+ /** Internal event used by AccordionComponent to coordinate exclusive mode */
610
+ toggled = new EventEmitter();
611
+ toggle() {
612
+ this.open = !this.open;
613
+ this.toggled.emit();
614
+ }
615
+ close() {
616
+ this.open = false;
617
+ }
618
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
619
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: AccordionItemComponent, isStandalone: true, selector: "dsb-accordion-item", inputs: { title: "title", open: "open", disabled: "disabled" }, ngImport: i0, template: "<div class=\"accordion-item\" [ngClass]=\"{ 'accordion-item--open': open, 'accordion-item--disabled': disabled }\">\n <button\n type=\"button\"\n class=\"accordion-trigger\"\n [attr.aria-expanded]=\"open\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n >\n <span class=\"accordion-title\">{{ title }}</span>\n <svg\n class=\"accordion-chevron\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path d=\"M1 1l4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n\n <div class=\"accordion-body\" [ngClass]=\"{ 'accordion-body--open': open }\">\n <div class=\"accordion-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [".accordion-item{border-bottom:1px solid #f0f0f0}.accordion-item:first-child{border-top:1px solid #f0f0f0}.accordion-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;border:none;padding:16px 0;cursor:pointer;font-family:inherit;text-align:left}.accordion-trigger:focus-visible{outline:2px solid #111;outline-offset:2px;border-radius:3px}.accordion-item--disabled .accordion-trigger{opacity:.42;cursor:not-allowed}.accordion-title{font-size:14px;font-weight:500;color:#111;line-height:1.5}.accordion-chevron{flex-shrink:0;width:10px;height:6px;color:#888;transition:transform .2s ease}.accordion-item--open .accordion-chevron{transform:rotate(180deg)}.accordion-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}.accordion-body--open{grid-template-rows:1fr}.accordion-content{overflow:hidden;font-size:14px;color:#555;line-height:1.6}.accordion-body--open .accordion-content{padding-bottom:16px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
620
+ }
621
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AccordionItemComponent, decorators: [{
622
+ type: Component,
623
+ args: [{ selector: 'dsb-accordion-item', standalone: true, imports: [NgClass, NgIf], template: "<div class=\"accordion-item\" [ngClass]=\"{ 'accordion-item--open': open, 'accordion-item--disabled': disabled }\">\n <button\n type=\"button\"\n class=\"accordion-trigger\"\n [attr.aria-expanded]=\"open\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n >\n <span class=\"accordion-title\">{{ title }}</span>\n <svg\n class=\"accordion-chevron\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path d=\"M1 1l4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n\n <div class=\"accordion-body\" [ngClass]=\"{ 'accordion-body--open': open }\">\n <div class=\"accordion-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n", styles: [".accordion-item{border-bottom:1px solid #f0f0f0}.accordion-item:first-child{border-top:1px solid #f0f0f0}.accordion-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;border:none;padding:16px 0;cursor:pointer;font-family:inherit;text-align:left}.accordion-trigger:focus-visible{outline:2px solid #111;outline-offset:2px;border-radius:3px}.accordion-item--disabled .accordion-trigger{opacity:.42;cursor:not-allowed}.accordion-title{font-size:14px;font-weight:500;color:#111;line-height:1.5}.accordion-chevron{flex-shrink:0;width:10px;height:6px;color:#888;transition:transform .2s ease}.accordion-item--open .accordion-chevron{transform:rotate(180deg)}.accordion-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}.accordion-body--open{grid-template-rows:1fr}.accordion-content{overflow:hidden;font-size:14px;color:#555;line-height:1.6}.accordion-body--open .accordion-content{padding-bottom:16px}\n"] }]
624
+ }], propDecorators: { title: [{
625
+ type: Input
626
+ }], open: [{
627
+ type: Input
628
+ }], disabled: [{
629
+ type: Input
630
+ }] } });
631
+
632
+ class AccordionComponent {
633
+ /** When true only one item can be open at a time */
634
+ exclusive = false;
635
+ items;
636
+ ngAfterContentInit() {
637
+ this.items.forEach(item => {
638
+ item.toggled.subscribe(() => {
639
+ if (this.exclusive && item.open) {
640
+ this.items.filter(i => i !== item).forEach(i => i.close());
641
+ }
642
+ });
643
+ });
644
+ this.items.changes.subscribe(() => {
645
+ this.items.forEach(item => {
646
+ item.toggled.subscribe(() => {
647
+ if (this.exclusive && item.open) {
648
+ this.items.filter(i => i !== item).forEach(i => i.close());
649
+ }
650
+ });
651
+ });
652
+ });
653
+ }
654
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
655
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: AccordionComponent, isStandalone: true, selector: "dsb-accordion", inputs: { exclusive: "exclusive" }, queries: [{ propertyName: "items", predicate: AccordionItemComponent }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] });
656
+ }
657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AccordionComponent, decorators: [{
658
+ type: Component,
659
+ args: [{ selector: 'dsb-accordion', standalone: true, imports: [], template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }]
660
+ }], propDecorators: { exclusive: [{
661
+ type: Input
662
+ }], items: [{
663
+ type: ContentChildren,
664
+ args: [AccordionItemComponent]
665
+ }] } });
666
+
667
+ /**
668
+ * Generated bundle index. Do not edit.
669
+ */
670
+
671
+ export { AccordionComponent, AccordionItemComponent, AvatarComponent, BreadcrumbsComponent, ButtonComponent, CheckboxComponent, ColumnDefDirective, DropdownComponent, FooterComponent, HeaderComponent, InputComponent, ListComponent, ListItemComponent, ModalComponent, RadioGroupComponent, TableComponent, TagComponent };
672
+ //# sourceMappingURL=jablonowski-dsb-components.mjs.map