@ship-ui/core 0.13.23 → 0.13.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ship-ui-core.mjs +376 -372
- package/fesm2022/ship-ui-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -16,12 +16,12 @@ class ShipIconComponent {
|
|
|
16
16
|
this.#renderer.addClass(this.#selfRef.nativeElement, potentialType);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipIconComponent, isStandalone: true, selector: "sh-icon", ngImport: i0, template: `
|
|
21
21
|
<ng-content />
|
|
22
22
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
23
|
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipIconComponent, decorators: [{
|
|
25
25
|
type: Component,
|
|
26
26
|
args: [{
|
|
27
27
|
selector: 'sh-icon',
|
|
@@ -37,17 +37,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
37
37
|
class ShipAlertComponent {
|
|
38
38
|
constructor() {
|
|
39
39
|
this._el = inject(ElementRef); // Used by alert container
|
|
40
|
-
this.alertService = input(null);
|
|
41
|
-
this.id = input(null);
|
|
42
|
-
this.alertClasses = computed(() => this._el.nativeElement.classList.toString());
|
|
40
|
+
this.alertService = input(null, ...(ngDevMode ? [{ debugName: "alertService" }] : []));
|
|
41
|
+
this.id = input(null, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
42
|
+
this.alertClasses = computed(() => this._el.nativeElement.classList.toString(), ...(ngDevMode ? [{ debugName: "alertClasses" }] : []));
|
|
43
43
|
}
|
|
44
44
|
removeAlert() {
|
|
45
45
|
if (this.id() && this.alertService()) {
|
|
46
46
|
this.alertService()?.removeAlert(this.id());
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
50
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipAlertComponent, isStandalone: true, selector: "sh-alert", inputs: { alertService: { classPropertyName: "alertService", publicName: "alertService", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
51
51
|
<div class="alert">
|
|
52
52
|
<div #ref class="icon" [style.display]="!ref.children.length ? 'none' : 'block'">
|
|
53
53
|
<ng-content select="[icon]"></ng-content>
|
|
@@ -86,7 +86,7 @@ class ShipAlertComponent {
|
|
|
86
86
|
</div>
|
|
87
87
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertComponent, decorators: [{
|
|
90
90
|
type: Component,
|
|
91
91
|
args: [{
|
|
92
92
|
selector: 'sh-alert',
|
|
@@ -135,21 +135,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
135
135
|
|
|
136
136
|
class ShipAlertContainerComponent {
|
|
137
137
|
constructor() {
|
|
138
|
-
this.inline = input(null);
|
|
138
|
+
this.inline = input(null, ...(ngDevMode ? [{ debugName: "inline" }] : []));
|
|
139
139
|
this.alerts = viewChild.required('alerts');
|
|
140
140
|
this.scroller = viewChild.required('scroller');
|
|
141
|
-
this.alertService = input.required();
|
|
141
|
+
this.alertService = input.required(...(ngDevMode ? [{ debugName: "alertService" }] : []));
|
|
142
142
|
this.alertHistory = this.alertService()?.alertHistory;
|
|
143
143
|
this.alertHistoryIsOpen = this.alertService()?.alertHistoryIsOpen;
|
|
144
144
|
this.alertHistoryIsHidden = this.alertService()?.alertHistoryIsHidden;
|
|
145
145
|
this.numberOfOpenAlerts = computed(() => {
|
|
146
146
|
return this.alertHistory().filter((x) => x.isOpen).length;
|
|
147
|
-
});
|
|
147
|
+
}, ...(ngDevMode ? [{ debugName: "numberOfOpenAlerts" }] : []));
|
|
148
148
|
this.#e = effect(() => {
|
|
149
149
|
this.alertHistory();
|
|
150
150
|
this.alertHistoryIsOpen();
|
|
151
151
|
this.#scrollToBottom();
|
|
152
|
-
});
|
|
152
|
+
}, ...(ngDevMode ? [{ debugName: "#e" }] : []));
|
|
153
153
|
}
|
|
154
154
|
#e;
|
|
155
155
|
#scrollToBottom() {
|
|
@@ -188,10 +188,10 @@ class ShipAlertContainerComponent {
|
|
|
188
188
|
transitionDelay(i, allOpen = false) {
|
|
189
189
|
return allOpen ? this.alertHistory().length - 1 * 40 + 'ms' : (this.numberOfOpenAlerts() - i) * 40 + 'ms';
|
|
190
190
|
}
|
|
191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
192
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
191
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
192
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipAlertContainerComponent, isStandalone: true, selector: "ship-alert-container", inputs: { inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, alertService: { classPropertyName: "alertService", publicName: "alertService", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, viewQueries: [{ propertyName: "alerts", first: true, predicate: ["alerts"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"scroller\" #scroller>\n <div class=\"container\">\n @for (alert of alertHistory(); track $index) {\n <sh-alert\n #alerts\n [class]=\"alert.type\"\n [id]=\"alert.id\"\n [alertService]=\"alertService()\"\n [style.transition-delay]=\"transitionDelay($index, true)\"\n [class.animate-in]=\"alert.animateIn\"\n [class.animate-out]=\"alert.animateOut\"\n [class.is-hidden]=\"alertHistoryIsHidden() && !alert.isOpen\">\n <div title>{{ alert.title }}</div>\n\n @if (alert.content) {\n <div content>\n {{ alert.content }}\n </div>\n }\n </sh-alert>\n }\n </div>\n</div>\n<div\n class=\"tray\"\n [class.tray-is-hidden]=\"!alertHistoryIsHidden()\"\n (mouseover)=\"this.onMouseOver()\"\n (mouseout)=\"this.onMouseOut()\">\n <sh-icon class=\"small\">info</sh-icon>\n</div>\n", dependencies: [{ kind: "component", type: ShipAlertComponent, selector: "sh-alert", inputs: ["alertService", "id"] }, { kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
193
193
|
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertContainerComponent, decorators: [{
|
|
195
195
|
type: Component,
|
|
196
196
|
args: [{ selector: 'ship-alert-container', imports: [ShipAlertComponent, ShipIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"scroller\" #scroller>\n <div class=\"container\">\n @for (alert of alertHistory(); track $index) {\n <sh-alert\n #alerts\n [class]=\"alert.type\"\n [id]=\"alert.id\"\n [alertService]=\"alertService()\"\n [style.transition-delay]=\"transitionDelay($index, true)\"\n [class.animate-in]=\"alert.animateIn\"\n [class.animate-out]=\"alert.animateOut\"\n [class.is-hidden]=\"alertHistoryIsHidden() && !alert.isOpen\">\n <div title>{{ alert.title }}</div>\n\n @if (alert.content) {\n <div content>\n {{ alert.content }}\n </div>\n }\n </sh-alert>\n }\n </div>\n</div>\n<div\n class=\"tray\"\n [class.tray-is-hidden]=\"!alertHistoryIsHidden()\"\n (mouseover)=\"this.onMouseOver()\"\n (mouseout)=\"this.onMouseOut()\">\n <sh-icon class=\"small\">info</sh-icon>\n</div>\n" }]
|
|
197
197
|
}], propDecorators: { onMouseOver: [{
|
|
@@ -203,11 +203,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
203
203
|
}] } });
|
|
204
204
|
|
|
205
205
|
class ShipAlertModule {
|
|
206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
207
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
208
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
207
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertModule, imports: [ShipAlertComponent, ShipAlertContainerComponent], exports: [ShipAlertComponent, ShipAlertContainerComponent] }); }
|
|
208
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertModule }); }
|
|
209
209
|
}
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertModule, decorators: [{
|
|
211
211
|
type: NgModule,
|
|
212
212
|
args: [{
|
|
213
213
|
imports: [ShipAlertComponent, ShipAlertContainerComponent],
|
|
@@ -222,9 +222,9 @@ function generateUniqueId() {
|
|
|
222
222
|
|
|
223
223
|
class ShipAlertService {
|
|
224
224
|
constructor() {
|
|
225
|
-
this.alertHistory = signal([]);
|
|
226
|
-
this.alertHistoryIsOpen = signal(false);
|
|
227
|
-
this.alertHistoryIsHidden = signal(true);
|
|
225
|
+
this.alertHistory = signal([], ...(ngDevMode ? [{ debugName: "alertHistory" }] : []));
|
|
226
|
+
this.alertHistoryIsOpen = signal(false, ...(ngDevMode ? [{ debugName: "alertHistoryIsOpen" }] : []));
|
|
227
|
+
this.alertHistoryIsHidden = signal(true, ...(ngDevMode ? [{ debugName: "alertHistoryIsHidden" }] : []));
|
|
228
228
|
}
|
|
229
229
|
error(message) {
|
|
230
230
|
this.addAlert({
|
|
@@ -290,10 +290,10 @@ class ShipAlertService {
|
|
|
290
290
|
setHidden(isHidden) {
|
|
291
291
|
this.alertHistoryIsHidden.set(isHidden);
|
|
292
292
|
}
|
|
293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
294
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertService, providedIn: 'root' }); }
|
|
295
295
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertService, decorators: [{
|
|
297
297
|
type: Injectable,
|
|
298
298
|
args: [{
|
|
299
299
|
providedIn: 'root',
|
|
@@ -315,15 +315,15 @@ const DEFAULT_OPTIONS$1 = {
|
|
|
315
315
|
class ShipDialogComponent {
|
|
316
316
|
constructor() {
|
|
317
317
|
this.#shConfig = inject(SHIP_CONFIG, { optional: true });
|
|
318
|
-
this.dialogRef = viewChild('dialogRef');
|
|
319
|
-
this.isOpen = model(false);
|
|
320
|
-
this.options = input();
|
|
318
|
+
this.dialogRef = viewChild('dialogRef', ...(ngDevMode ? [{ debugName: "dialogRef" }] : []));
|
|
319
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
320
|
+
this.options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : []));
|
|
321
321
|
this.closed = output();
|
|
322
322
|
this.defaultOptionMerge = computed(() => ({
|
|
323
323
|
...DEFAULT_OPTIONS$1,
|
|
324
324
|
...{ class: this.#shConfig?.dialogType ?? 'default' },
|
|
325
325
|
...this.options(),
|
|
326
|
-
}));
|
|
326
|
+
}), ...(ngDevMode ? [{ debugName: "defaultOptionMerge" }] : []));
|
|
327
327
|
this.abortController = null;
|
|
328
328
|
this.isOpenEffect = effect(() => {
|
|
329
329
|
const dialogEl = this.dialogRef()?.nativeElement;
|
|
@@ -354,14 +354,14 @@ class ShipDialogComponent {
|
|
|
354
354
|
this.closed.emit();
|
|
355
355
|
dialogEl?.close();
|
|
356
356
|
}
|
|
357
|
-
});
|
|
357
|
+
}, ...(ngDevMode ? [{ debugName: "isOpenEffect" }] : []));
|
|
358
358
|
}
|
|
359
359
|
#shConfig;
|
|
360
360
|
ngOnDestroy() {
|
|
361
361
|
this.abortController?.abort();
|
|
362
362
|
}
|
|
363
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
364
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
364
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipDialogComponent, isStandalone: true, selector: "sh-dialog", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", closed: "closed" }, viewQueries: [{ propertyName: "dialogRef", first: true, predicate: ["dialogRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
365
365
|
@let options = this.defaultOptionMerge();
|
|
366
366
|
<dialog
|
|
367
367
|
shDialog
|
|
@@ -381,7 +381,7 @@ class ShipDialogComponent {
|
|
|
381
381
|
</dialog>
|
|
382
382
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
383
383
|
}
|
|
384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDialogComponent, decorators: [{
|
|
385
385
|
type: Component,
|
|
386
386
|
args: [{
|
|
387
387
|
selector: 'sh-dialog',
|
|
@@ -496,10 +496,10 @@ class ShipDialogService {
|
|
|
496
496
|
ngOnDestroy() {
|
|
497
497
|
this.#cleanupRefs();
|
|
498
498
|
}
|
|
499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
500
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
500
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDialogService, providedIn: 'root' }); }
|
|
501
501
|
}
|
|
502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDialogService, decorators: [{
|
|
503
503
|
type: Injectable,
|
|
504
504
|
args: [{
|
|
505
505
|
providedIn: 'root',
|
|
@@ -507,12 +507,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
507
507
|
}] });
|
|
508
508
|
|
|
509
509
|
class ShipButtonGroupComponent {
|
|
510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
511
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
510
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
511
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipButtonGroupComponent, isStandalone: true, selector: "sh-button-group", ngImport: i0, template: `
|
|
512
512
|
<ng-content></ng-content>
|
|
513
513
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
514
514
|
}
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipButtonGroupComponent, decorators: [{
|
|
516
516
|
type: Component,
|
|
517
517
|
args: [{
|
|
518
518
|
selector: 'sh-button-group',
|
|
@@ -525,10 +525,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
525
525
|
}] });
|
|
526
526
|
|
|
527
527
|
class ShipButtonComponent {
|
|
528
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
529
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
528
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
529
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipButtonComponent, isStandalone: true, selector: "[shButton]", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
530
530
|
}
|
|
531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipButtonComponent, decorators: [{
|
|
532
532
|
type: Component,
|
|
533
533
|
args: [{
|
|
534
534
|
selector: '[shButton]',
|
|
@@ -541,15 +541,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
541
541
|
class ShipCardComponent {
|
|
542
542
|
constructor() {
|
|
543
543
|
this.#shConfig = inject(SHIP_CONFIG, { optional: true });
|
|
544
|
-
this.class = signal(this.#shConfig?.cardType ?? 'default');
|
|
544
|
+
this.class = signal(this.#shConfig?.cardType ?? 'default', ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
545
545
|
}
|
|
546
546
|
#shConfig;
|
|
547
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
548
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
547
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
548
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipCardComponent, isStandalone: true, selector: "sh-card", host: { properties: { "class": "class()" } }, ngImport: i0, template: `
|
|
549
549
|
<ng-content></ng-content>
|
|
550
550
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
551
551
|
}
|
|
552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipCardComponent, decorators: [{
|
|
553
553
|
type: Component,
|
|
554
554
|
args: [{
|
|
555
555
|
selector: 'sh-card',
|
|
@@ -566,8 +566,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
566
566
|
|
|
567
567
|
class ShipCheckboxComponent {
|
|
568
568
|
#selfRef = inject(ElementRef);
|
|
569
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
570
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
570
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipCheckboxComponent, isStandalone: true, selector: "sh-checkbox", ngImport: i0, template: `
|
|
571
571
|
<div class="box">
|
|
572
572
|
<sh-icon class="inherit default-indicator">check-bold</sh-icon>
|
|
573
573
|
<sh-icon class="inherit indeterminate-indicator">minus-bold</sh-icon>
|
|
@@ -576,7 +576,7 @@ class ShipCheckboxComponent {
|
|
|
576
576
|
<ng-content />
|
|
577
577
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
578
578
|
}
|
|
579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipCheckboxComponent, decorators: [{
|
|
580
580
|
type: Component,
|
|
581
581
|
args: [{
|
|
582
582
|
selector: 'sh-checkbox',
|
|
@@ -594,10 +594,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
594
594
|
}] });
|
|
595
595
|
|
|
596
596
|
class ShipChipComponent {
|
|
597
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
598
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
597
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
598
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipChipComponent, isStandalone: true, selector: "sh-chip", ngImport: i0, template: '<div><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
599
599
|
}
|
|
600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipChipComponent, decorators: [{
|
|
601
601
|
type: Component,
|
|
602
602
|
args: [{
|
|
603
603
|
selector: 'sh-chip',
|
|
@@ -613,22 +613,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
613
613
|
class ShipColorPickerComponent {
|
|
614
614
|
constructor() {
|
|
615
615
|
this.canvasRef = viewChild.required('colorCanvas');
|
|
616
|
-
this.canvasData = signal(null);
|
|
617
|
-
this.showDarkColors = input(false);
|
|
618
|
-
this.renderingType = input('hsl');
|
|
619
|
-
this.gridSize = input(20);
|
|
620
|
-
this.hue = input(0);
|
|
621
|
-
this.direction = input('horizontal');
|
|
622
|
-
this.selectedColor = model([255, 255, 255]);
|
|
616
|
+
this.canvasData = signal(null, ...(ngDevMode ? [{ debugName: "canvasData" }] : []));
|
|
617
|
+
this.showDarkColors = input(false, ...(ngDevMode ? [{ debugName: "showDarkColors" }] : []));
|
|
618
|
+
this.renderingType = input('hsl', ...(ngDevMode ? [{ debugName: "renderingType" }] : []));
|
|
619
|
+
this.gridSize = input(20, ...(ngDevMode ? [{ debugName: "gridSize" }] : []));
|
|
620
|
+
this.hue = input(0, ...(ngDevMode ? [{ debugName: "hue" }] : []));
|
|
621
|
+
this.direction = input('horizontal', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
622
|
+
this.selectedColor = model([255, 255, 255], ...(ngDevMode ? [{ debugName: "selectedColor" }] : []));
|
|
623
623
|
this.currentColor = output();
|
|
624
|
-
this.centerLightness = computed(() => (this.showDarkColors() ? 200 : 100));
|
|
625
|
-
this.isDragging = signal(false);
|
|
626
|
-
this.markerPosition = signal({ x: '50%', y: '50%' });
|
|
624
|
+
this.centerLightness = computed(() => (this.showDarkColors() ? 200 : 100), ...(ngDevMode ? [{ debugName: "centerLightness" }] : []));
|
|
625
|
+
this.isDragging = signal(false, ...(ngDevMode ? [{ debugName: "isDragging" }] : []));
|
|
626
|
+
this.markerPosition = signal({ x: '50%', y: '50%' }, ...(ngDevMode ? [{ debugName: "markerPosition" }] : []));
|
|
627
627
|
this._pos = { x: '0', y: '0' };
|
|
628
|
-
this._markerPosition = effect(() => (this._pos = this.markerPosition()));
|
|
629
|
-
this.selectedColorRgb = computed(() => `rgb(${this.selectedColor().join(',')})
|
|
630
|
-
this.selectedColorHex = computed(() => this.rgbToHex(...this.selectedColor()));
|
|
631
|
-
this.selectedColorHsl = computed(() => this.rgbToHsl(...this.selectedColor()));
|
|
628
|
+
this._markerPosition = effect(() => (this._pos = this.markerPosition()), ...(ngDevMode ? [{ debugName: "_markerPosition" }] : []));
|
|
629
|
+
this.selectedColorRgb = computed(() => `rgb(${this.selectedColor().join(',')})`, ...(ngDevMode ? [{ debugName: "selectedColorRgb" }] : []));
|
|
630
|
+
this.selectedColorHex = computed(() => this.rgbToHex(...this.selectedColor()), ...(ngDevMode ? [{ debugName: "selectedColorHex" }] : []));
|
|
631
|
+
this.selectedColorHsl = computed(() => this.rgbToHsl(...this.selectedColor()), ...(ngDevMode ? [{ debugName: "selectedColorHsl" }] : []));
|
|
632
632
|
this.selectedColorEffect = effect(() => {
|
|
633
633
|
const selectedColor = this.selectedColor();
|
|
634
634
|
const hsl = this.rgbToHsl(...selectedColor);
|
|
@@ -641,7 +641,7 @@ class ShipColorPickerComponent {
|
|
|
641
641
|
hue: hsl.match(/\d+/g).map(Number)[0],
|
|
642
642
|
saturation: hsl.match(/\d+/g).map(Number)[1],
|
|
643
643
|
});
|
|
644
|
-
});
|
|
644
|
+
}, ...(ngDevMode ? [{ debugName: "selectedColorEffect" }] : []));
|
|
645
645
|
this.renderingTypeEffect = effect(() => {
|
|
646
646
|
const currentRenderingType = this.renderingType();
|
|
647
647
|
if (this.canvasData()) {
|
|
@@ -654,7 +654,7 @@ class ShipColorPickerComponent {
|
|
|
654
654
|
this.updateMarkerFromColor(this.selectedColor());
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
});
|
|
657
|
+
}, ...(ngDevMode ? [{ debugName: "renderingTypeEffect" }] : []));
|
|
658
658
|
this.initColor = null;
|
|
659
659
|
}
|
|
660
660
|
onResize() {
|
|
@@ -919,8 +919,8 @@ class ShipColorPickerComponent {
|
|
|
919
919
|
}
|
|
920
920
|
return `hsl(${Math.floor(h * 360)}, ${Math.round(s * 100)}%, ${Math.round(l * 100)}%)`;
|
|
921
921
|
}
|
|
922
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
923
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
922
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
923
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.6", type: ShipColorPickerComponent, isStandalone: true, selector: "sh-color-picker", inputs: { showDarkColors: { classPropertyName: "showDarkColors", publicName: "showDarkColors", isSignal: true, isRequired: false, transformFunction: null }, renderingType: { classPropertyName: "renderingType", publicName: "renderingType", isSignal: true, isRequired: false, transformFunction: null }, gridSize: { classPropertyName: "gridSize", publicName: "gridSize", isSignal: true, isRequired: false, transformFunction: null }, hue: { classPropertyName: "hue", publicName: "hue", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, selectedColor: { classPropertyName: "selectedColor", publicName: "selectedColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedColor: "selectedColorChange", currentColor: "currentColor" }, host: { listeners: { "window:resize": "onResize($event)" }, properties: { "class": "renderingType()", "class.vertical": "(renderingType() === \"hue\" || renderingType() === \"saturation\") && direction() === \"vertical\"" } }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["colorCanvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
924
924
|
<canvas #colorCanvas></canvas>
|
|
925
925
|
<div
|
|
926
926
|
class="marker"
|
|
@@ -929,7 +929,7 @@ class ShipColorPickerComponent {
|
|
|
929
929
|
[style.background]="selectedColorRgb()"></div>
|
|
930
930
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
931
931
|
}
|
|
932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipColorPickerComponent, decorators: [{
|
|
933
933
|
type: Component,
|
|
934
934
|
args: [{
|
|
935
935
|
selector: 'sh-color-picker',
|
|
@@ -964,19 +964,19 @@ class ShipPopoverComponent {
|
|
|
964
964
|
constructor() {
|
|
965
965
|
this.#BASE_SPACE = 4;
|
|
966
966
|
this.SUPPORTS_ANCHOR = typeof CSS !== 'undefined' && CSS.supports('position-anchor', '--abc') && CSS.supports('anchor-name', '--abc');
|
|
967
|
-
this.asMultiLayer = input(false);
|
|
968
|
-
this.disableOpenByClick = input(false);
|
|
969
|
-
this.isOpen = model(false);
|
|
970
|
-
this.options = input();
|
|
967
|
+
this.asMultiLayer = input(false, ...(ngDevMode ? [{ debugName: "asMultiLayer" }] : []));
|
|
968
|
+
this.disableOpenByClick = input(false, ...(ngDevMode ? [{ debugName: "disableOpenByClick" }] : []));
|
|
969
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
970
|
+
this.options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : []));
|
|
971
971
|
this.closed = output();
|
|
972
972
|
this.defaultOptionMerge = computed(() => ({
|
|
973
973
|
...DEFAULT_OPTIONS,
|
|
974
974
|
...this.options(),
|
|
975
|
-
}));
|
|
975
|
+
}), ...(ngDevMode ? [{ debugName: "defaultOptionMerge" }] : []));
|
|
976
976
|
this.triggerRef = viewChild.required('triggerRef');
|
|
977
977
|
this.popoverRef = viewChild.required('popoverRef');
|
|
978
|
-
this.id = signal('--' + generateUniqueId());
|
|
979
|
-
this.menuStyle = signal(null);
|
|
978
|
+
this.id = signal('--' + generateUniqueId(), ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
979
|
+
this.menuStyle = signal(null, ...(ngDevMode ? [{ debugName: "menuStyle" }] : []));
|
|
980
980
|
this.openAbort = null;
|
|
981
981
|
this.openEffect = effect(() => {
|
|
982
982
|
const popoverEl = this.popoverRef()?.nativeElement;
|
|
@@ -1010,7 +1010,7 @@ class ShipPopoverComponent {
|
|
|
1010
1010
|
this.openAbort?.abort();
|
|
1011
1011
|
this.closed.emit();
|
|
1012
1012
|
}
|
|
1013
|
-
});
|
|
1013
|
+
}, ...(ngDevMode ? [{ debugName: "openEffect" }] : []));
|
|
1014
1014
|
}
|
|
1015
1015
|
#BASE_SPACE;
|
|
1016
1016
|
toggleIsOpen(event) {
|
|
@@ -1067,8 +1067,8 @@ class ShipPopoverComponent {
|
|
|
1067
1067
|
this.menuStyle.set(style);
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1071
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
1070
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1071
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.6", type: ShipPopoverComponent, isStandalone: true, selector: "sh-popover", inputs: { asMultiLayer: { classPropertyName: "asMultiLayer", publicName: "asMultiLayer", isSignal: true, isRequired: false, transformFunction: null }, disableOpenByClick: { classPropertyName: "disableOpenByClick", publicName: "disableOpenByClick", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", closed: "closed" }, host: { properties: { "class.multi-layer": "asMultiLayer()" } }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["triggerRef"], descendants: true, isSignal: true }, { propertyName: "popoverRef", first: true, predicate: ["popoverRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1072
1072
|
<div class="trigger" #triggerRef [style.anchor-name]="id()" (click)="toggleIsOpen($event)">
|
|
1073
1073
|
<div class="trigger-wrapper">
|
|
1074
1074
|
<ng-content select="[trigger]" />
|
|
@@ -1083,7 +1083,7 @@ class ShipPopoverComponent {
|
|
|
1083
1083
|
</div>
|
|
1084
1084
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1085
1085
|
}
|
|
1086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipPopoverComponent, decorators: [{
|
|
1087
1087
|
type: Component,
|
|
1088
1088
|
args: [{
|
|
1089
1089
|
selector: 'sh-popover',
|
|
@@ -1112,7 +1112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
1112
1112
|
class ShipFormFieldPopoverComponent {
|
|
1113
1113
|
constructor() {
|
|
1114
1114
|
this.#selfRef = inject(ElementRef);
|
|
1115
|
-
this.isOpen = model(false);
|
|
1115
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
1116
1116
|
this.closed = output();
|
|
1117
1117
|
}
|
|
1118
1118
|
#selfRef;
|
|
@@ -1150,8 +1150,8 @@ class ShipFormFieldPopoverComponent {
|
|
|
1150
1150
|
resize();
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1154
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
1153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFormFieldPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: ShipFormFieldPopoverComponent, isStandalone: true, selector: "sh-form-field-popover", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", closed: "closed" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0, template: `
|
|
1155
1155
|
<ng-content select="label"></ng-content>
|
|
1156
1156
|
|
|
1157
1157
|
<div class="input-wrap">
|
|
@@ -1193,7 +1193,7 @@ class ShipFormFieldPopoverComponent {
|
|
|
1193
1193
|
</div>
|
|
1194
1194
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipPopoverComponent, selector: "sh-popover", inputs: ["asMultiLayer", "disableOpenByClick", "isOpen", "options"], outputs: ["isOpenChange", "closed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1195
1195
|
}
|
|
1196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFormFieldPopoverComponent, decorators: [{
|
|
1197
1197
|
type: Component,
|
|
1198
1198
|
args: [{
|
|
1199
1199
|
selector: 'sh-form-field-popover',
|
|
@@ -1249,29 +1249,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
1249
1249
|
class ShipDatepickerComponent {
|
|
1250
1250
|
constructor() {
|
|
1251
1251
|
this.#INIT_DATE = this.#getUTCDate(new Date());
|
|
1252
|
-
this.date = model(null);
|
|
1253
|
-
this.endDate = model(null);
|
|
1254
|
-
this.asRange = input(false);
|
|
1255
|
-
this.monthsToShow = input(1);
|
|
1256
|
-
this.disabled = input(false);
|
|
1257
|
-
this.startOfWeek = input(1);
|
|
1258
|
-
this.weekdayLabels = input(['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']);
|
|
1259
|
-
this.daysRef = viewChild('daysRef');
|
|
1260
|
-
this.currentDate = signal(this.date() ?? this.#INIT_DATE);
|
|
1252
|
+
this.date = model(null, ...(ngDevMode ? [{ debugName: "date" }] : []));
|
|
1253
|
+
this.endDate = model(null, ...(ngDevMode ? [{ debugName: "endDate" }] : []));
|
|
1254
|
+
this.asRange = input(false, ...(ngDevMode ? [{ debugName: "asRange" }] : []));
|
|
1255
|
+
this.monthsToShow = input(1, ...(ngDevMode ? [{ debugName: "monthsToShow" }] : []));
|
|
1256
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
1257
|
+
this.startOfWeek = input(1, ...(ngDevMode ? [{ debugName: "startOfWeek" }] : []));
|
|
1258
|
+
this.weekdayLabels = input(['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], ...(ngDevMode ? [{ debugName: "weekdayLabels" }] : []));
|
|
1259
|
+
this.daysRef = viewChild('daysRef', ...(ngDevMode ? [{ debugName: "daysRef" }] : []));
|
|
1260
|
+
this.currentDate = signal(this.date() ?? this.#INIT_DATE, ...(ngDevMode ? [{ debugName: "currentDate" }] : []));
|
|
1261
1261
|
this.monthOffsets = computed(() => {
|
|
1262
1262
|
return Array.from({ length: this.monthsToShow() }, (_, i) => i);
|
|
1263
|
-
});
|
|
1264
|
-
this.selectedDateStylePosition = signal(null);
|
|
1263
|
+
}, ...(ngDevMode ? [{ debugName: "monthOffsets" }] : []));
|
|
1264
|
+
this.selectedDateStylePosition = signal(null, ...(ngDevMode ? [{ debugName: "selectedDateStylePosition" }] : []));
|
|
1265
1265
|
this.weekdays = computed(() => {
|
|
1266
1266
|
const startOfWeek = this.startOfWeek();
|
|
1267
1267
|
const weekdayLabels = this.weekdayLabels();
|
|
1268
1268
|
return weekdayLabels.slice(startOfWeek).concat(weekdayLabels.slice(0, startOfWeek));
|
|
1269
|
-
});
|
|
1269
|
+
}, ...(ngDevMode ? [{ debugName: "weekdays" }] : []));
|
|
1270
1270
|
this.#newDateEffect = effect(() => {
|
|
1271
1271
|
if (this.monthsToShow() > 1)
|
|
1272
1272
|
return;
|
|
1273
1273
|
this.#setDateAsCurrent();
|
|
1274
|
-
});
|
|
1274
|
+
}, ...(ngDevMode ? [{ debugName: "#newDateEffect" }] : []));
|
|
1275
1275
|
}
|
|
1276
1276
|
#INIT_DATE;
|
|
1277
1277
|
getLastVisibleMonth() {
|
|
@@ -1468,8 +1468,8 @@ class ShipDatepickerComponent {
|
|
|
1468
1468
|
const timeDiffMillis = offsetMinutes * 60 * 1000;
|
|
1469
1469
|
return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()) + timeDiffMillis);
|
|
1470
1470
|
}
|
|
1471
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1472
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1471
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1472
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipDatepickerComponent, isStandalone: true, selector: "sh-datepicker", inputs: { date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, endDate: { classPropertyName: "endDate", publicName: "endDate", isSignal: true, isRequired: false, transformFunction: null }, asRange: { classPropertyName: "asRange", publicName: "asRange", isSignal: true, isRequired: false, transformFunction: null }, monthsToShow: { classPropertyName: "monthsToShow", publicName: "monthsToShow", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, startOfWeek: { classPropertyName: "startOfWeek", publicName: "startOfWeek", isSignal: true, isRequired: false, transformFunction: null }, weekdayLabels: { classPropertyName: "weekdayLabels", publicName: "weekdayLabels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { date: "dateChange", endDate: "endDateChange" }, host: { properties: { "class.as-range": "asRange()", "class": "\"columns-\" + monthsToShow()", "class.disabled": "disabled()" } }, viewQueries: [{ propertyName: "daysRef", first: true, predicate: ["daysRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1473
1473
|
<header>
|
|
1474
1474
|
<button (click)="previousMonth()"><sh-icon>caret-left</sh-icon></button>
|
|
1475
1475
|
<div class="title">
|
|
@@ -1513,7 +1513,7 @@ class ShipDatepickerComponent {
|
|
|
1513
1513
|
</section>
|
|
1514
1514
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1515
1515
|
}
|
|
1516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDatepickerComponent, decorators: [{
|
|
1517
1517
|
type: Component,
|
|
1518
1518
|
args: [{
|
|
1519
1519
|
selector: 'sh-datepicker',
|
|
@@ -1575,10 +1575,10 @@ class ShipDatepickerInputComponent {
|
|
|
1575
1575
|
this.#INIT_DATE = this.#getUTCDate(new Date());
|
|
1576
1576
|
this.#datePipe = inject(DatePipe);
|
|
1577
1577
|
this.#elementRef = inject((ElementRef));
|
|
1578
|
-
this.#inputRef = signal(null);
|
|
1579
|
-
this.#triggerInput = signal(false);
|
|
1578
|
+
this.#inputRef = signal(null, ...(ngDevMode ? [{ debugName: "#inputRef" }] : []));
|
|
1579
|
+
this.#triggerInput = signal(false, ...(ngDevMode ? [{ debugName: "#triggerInput" }] : []));
|
|
1580
1580
|
this.inputWrapRef = viewChild.required('inputWrap');
|
|
1581
|
-
this.masking = input('mediumDate');
|
|
1581
|
+
this.masking = input('mediumDate', ...(ngDevMode ? [{ debugName: "masking" }] : []));
|
|
1582
1582
|
this.closed = output();
|
|
1583
1583
|
this._maskedDate = computed(() => {
|
|
1584
1584
|
const date = this.internalDate();
|
|
@@ -1589,10 +1589,10 @@ class ShipDatepickerInputComponent {
|
|
|
1589
1589
|
if (!date)
|
|
1590
1590
|
return null;
|
|
1591
1591
|
return this.#datePipe.transform(date, mask);
|
|
1592
|
-
});
|
|
1593
|
-
this.internalDate = signal(this.#INIT_DATE);
|
|
1594
|
-
this.isOpen = model(false);
|
|
1595
|
-
this.styleClasses = signal(null);
|
|
1592
|
+
}, ...(ngDevMode ? [{ debugName: "_maskedDate" }] : []));
|
|
1593
|
+
this.internalDate = signal(this.#INIT_DATE, ...(ngDevMode ? [{ debugName: "internalDate" }] : []));
|
|
1594
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
1595
|
+
this.styleClasses = signal(null, ...(ngDevMode ? [{ debugName: "styleClasses" }] : []));
|
|
1596
1596
|
this.#styleObserver = typeof MutationObserver !== 'undefined' &&
|
|
1597
1597
|
new MutationObserver((mutations) => {
|
|
1598
1598
|
mutations.forEach((mutation) => {
|
|
@@ -1632,7 +1632,7 @@ class ShipDatepickerInputComponent {
|
|
|
1632
1632
|
if (typeof input.value === 'string') {
|
|
1633
1633
|
this.internalDate.set(input.value ? this.#getUTCDate(new Date(input.value)) : null);
|
|
1634
1634
|
}
|
|
1635
|
-
});
|
|
1635
|
+
}, ...(ngDevMode ? [{ debugName: "#inputRefEffect" }] : []));
|
|
1636
1636
|
}
|
|
1637
1637
|
#INIT_DATE;
|
|
1638
1638
|
#datePipe;
|
|
@@ -1698,8 +1698,8 @@ class ShipDatepickerInputComponent {
|
|
|
1698
1698
|
const timeDiffMillis = offsetMinutes * 60 * 1000;
|
|
1699
1699
|
return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()) + timeDiffMillis);
|
|
1700
1700
|
}
|
|
1701
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1702
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1701
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDatepickerInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1702
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipDatepickerInputComponent, isStandalone: true, selector: "sh-datepicker-input", inputs: { masking: { classPropertyName: "masking", publicName: "masking", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed", isOpen: "isOpenChange" }, providers: [DatePipe], viewQueries: [{ propertyName: "inputWrapRef", first: true, predicate: ["inputWrap"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1703
1703
|
<sh-form-field-popover (click)="open($event)" (closed)="close()" [(isOpen)]="isOpen">
|
|
1704
1704
|
<ng-content select="label" ngProjectAs="label" />
|
|
1705
1705
|
|
|
@@ -1729,7 +1729,7 @@ class ShipDatepickerInputComponent {
|
|
|
1729
1729
|
<ng-template #defaultIndicator></ng-template>
|
|
1730
1730
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipDatepickerComponent, selector: "sh-datepicker", inputs: ["date", "endDate", "asRange", "monthsToShow", "disabled", "startOfWeek", "weekdayLabels"], outputs: ["dateChange", "endDateChange"] }, { kind: "component", type: ShipFormFieldPopoverComponent, selector: "sh-form-field-popover", inputs: ["isOpen"], outputs: ["isOpenChange", "closed"] }, { kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1731
1731
|
}
|
|
1732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDatepickerInputComponent, decorators: [{
|
|
1733
1733
|
type: Component,
|
|
1734
1734
|
args: [{
|
|
1735
1735
|
selector: 'sh-datepicker-input',
|
|
@@ -1776,29 +1776,29 @@ class ShipDaterangeInputComponent {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
constructor() {
|
|
1778
1778
|
this.#selfRef = inject(ElementRef);
|
|
1779
|
-
this.startDateInputs = contentChildren('startDate');
|
|
1780
|
-
this.endDateInputs = contentChildren('endDate');
|
|
1779
|
+
this.startDateInputs = contentChildren('startDate', ...(ngDevMode ? [{ debugName: "startDateInputs" }] : []));
|
|
1780
|
+
this.endDateInputs = contentChildren('endDate', ...(ngDevMode ? [{ debugName: "endDateInputs" }] : []));
|
|
1781
1781
|
this.#datePipe = inject(DatePipe);
|
|
1782
|
-
this.monthsToShow = input(1);
|
|
1783
|
-
this.masking = input('mediumDate');
|
|
1782
|
+
this.monthsToShow = input(1, ...(ngDevMode ? [{ debugName: "monthsToShow" }] : []));
|
|
1783
|
+
this.masking = input('mediumDate', ...(ngDevMode ? [{ debugName: "masking" }] : []));
|
|
1784
1784
|
this.closed = output();
|
|
1785
|
-
this.startDate = signal(null);
|
|
1786
|
-
this.endDate = signal(null);
|
|
1787
|
-
this.isOpen = model(false);
|
|
1785
|
+
this.startDate = signal(null, ...(ngDevMode ? [{ debugName: "startDate" }] : []));
|
|
1786
|
+
this.endDate = signal(null, ...(ngDevMode ? [{ debugName: "endDate" }] : []));
|
|
1787
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
1788
1788
|
this._maskedStartDate = computed(() => {
|
|
1789
1789
|
const date = this.startDate();
|
|
1790
1790
|
const mask = this.masking();
|
|
1791
1791
|
if (!mask || !date)
|
|
1792
1792
|
return null;
|
|
1793
1793
|
return this.#datePipe.transform(date, mask);
|
|
1794
|
-
});
|
|
1794
|
+
}, ...(ngDevMode ? [{ debugName: "_maskedStartDate" }] : []));
|
|
1795
1795
|
this._maskedEndDate = computed(() => {
|
|
1796
1796
|
const date = this.endDate();
|
|
1797
1797
|
const mask = this.masking();
|
|
1798
1798
|
if (!mask || !date)
|
|
1799
1799
|
return null;
|
|
1800
1800
|
return this.#datePipe.transform(date, mask);
|
|
1801
|
-
});
|
|
1801
|
+
}, ...(ngDevMode ? [{ debugName: "_maskedEndDate" }] : []));
|
|
1802
1802
|
effect(() => {
|
|
1803
1803
|
// Setup start date inputs
|
|
1804
1804
|
this.startDateInputs().forEach((input) => {
|
|
@@ -1871,8 +1871,8 @@ class ShipDaterangeInputComponent {
|
|
|
1871
1871
|
end: this.endDate(),
|
|
1872
1872
|
});
|
|
1873
1873
|
}
|
|
1874
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1875
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1874
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDaterangeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1875
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipDaterangeInputComponent, isStandalone: true, selector: "sh-daterange-input", inputs: { monthsToShow: { classPropertyName: "monthsToShow", publicName: "monthsToShow", isSignal: true, isRequired: false, transformFunction: null }, masking: { classPropertyName: "masking", publicName: "masking", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed", isOpen: "isOpenChange" }, providers: [DatePipe], queries: [{ propertyName: "startDateInputs", predicate: ["startDate"], isSignal: true }, { propertyName: "endDateInputs", predicate: ["endDate"], isSignal: true }], ngImport: i0, template: `
|
|
1876
1876
|
<sh-form-field-popover
|
|
1877
1877
|
[class]="'columns-' + monthsToShow()"
|
|
1878
1878
|
(click)="open($event)"
|
|
@@ -1911,7 +1911,7 @@ class ShipDaterangeInputComponent {
|
|
|
1911
1911
|
</sh-form-field-popover>
|
|
1912
1912
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipDatepickerComponent, selector: "sh-datepicker", inputs: ["date", "endDate", "asRange", "monthsToShow", "disabled", "startOfWeek", "weekdayLabels"], outputs: ["dateChange", "endDateChange"] }, { kind: "component", type: ShipFormFieldPopoverComponent, selector: "sh-form-field-popover", inputs: ["isOpen"], outputs: ["isOpenChange", "closed"] }, { kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1913
1913
|
}
|
|
1914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDaterangeInputComponent, decorators: [{
|
|
1915
1915
|
type: Component,
|
|
1916
1916
|
args: [{
|
|
1917
1917
|
selector: 'sh-daterange-input',
|
|
@@ -1960,12 +1960,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
1960
1960
|
}], ctorParameters: () => [] });
|
|
1961
1961
|
|
|
1962
1962
|
class ShipDividerComponent {
|
|
1963
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1964
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
1963
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1964
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipDividerComponent, isStandalone: true, selector: "sh-divider", ngImport: i0, template: `
|
|
1965
1965
|
<ng-content />
|
|
1966
1966
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1967
1967
|
}
|
|
1968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipDividerComponent, decorators: [{
|
|
1969
1969
|
type: Component,
|
|
1970
1970
|
args: [{
|
|
1971
1971
|
selector: 'sh-divider',
|
|
@@ -2011,8 +2011,8 @@ class ShipFormFieldComponent {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2015
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2014
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2015
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipFormFieldComponent, isStandalone: true, selector: "sh-form-field", host: { listeners: { "click": "onClick()" } }, ngImport: i0, template: `
|
|
2016
2016
|
<ng-content select="label"></ng-content>
|
|
2017
2017
|
|
|
2018
2018
|
<div class="input-wrap">
|
|
@@ -2043,7 +2043,7 @@ class ShipFormFieldComponent {
|
|
|
2043
2043
|
</div>
|
|
2044
2044
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2045
2045
|
}
|
|
2046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFormFieldComponent, decorators: [{
|
|
2047
2047
|
type: Component,
|
|
2048
2048
|
args: [{
|
|
2049
2049
|
selector: 'sh-form-field',
|
|
@@ -2089,13 +2089,13 @@ class ShipFileUploadComponent {
|
|
|
2089
2089
|
constructor() {
|
|
2090
2090
|
this._el = inject(ElementRef);
|
|
2091
2091
|
this.inputRef = viewChild.required('input');
|
|
2092
|
-
this.filesOver = signal(false);
|
|
2093
|
-
this.multiple = input();
|
|
2094
|
-
this.accept = input(null);
|
|
2095
|
-
this.placeholder = model('Click or drag files here');
|
|
2096
|
-
this.overlayText = input('Drop files here');
|
|
2097
|
-
this.files = model([]);
|
|
2098
|
-
this.fileUploadClasses = computed(() => this._el.nativeElement.classList.toString());
|
|
2092
|
+
this.filesOver = signal(false, ...(ngDevMode ? [{ debugName: "filesOver" }] : []));
|
|
2093
|
+
this.multiple = input(...(ngDevMode ? [undefined, { debugName: "multiple" }] : []));
|
|
2094
|
+
this.accept = input(null, ...(ngDevMode ? [{ debugName: "accept" }] : []));
|
|
2095
|
+
this.placeholder = model('Click or drag files here', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
2096
|
+
this.overlayText = input('Drop files here', ...(ngDevMode ? [{ debugName: "overlayText" }] : []));
|
|
2097
|
+
this.files = model([], ...(ngDevMode ? [{ debugName: "files" }] : []));
|
|
2098
|
+
this.fileUploadClasses = computed(() => this._el.nativeElement.classList.toString(), ...(ngDevMode ? [{ debugName: "fileUploadClasses" }] : []));
|
|
2099
2099
|
this.inputEffect = effect(() => {
|
|
2100
2100
|
const input = this.inputRef().nativeElement;
|
|
2101
2101
|
if (!input)
|
|
@@ -2124,7 +2124,7 @@ class ShipFileUploadComponent {
|
|
|
2124
2124
|
e.preventDefault();
|
|
2125
2125
|
this.handleFileUpload(Array.from(e.target.files));
|
|
2126
2126
|
});
|
|
2127
|
-
});
|
|
2127
|
+
}, ...(ngDevMode ? [{ debugName: "inputEffect" }] : []));
|
|
2128
2128
|
}
|
|
2129
2129
|
handleFileUpload(newFiles) {
|
|
2130
2130
|
if (this.multiple()) {
|
|
@@ -2134,8 +2134,8 @@ class ShipFileUploadComponent {
|
|
|
2134
2134
|
this.files.set(newFiles);
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2138
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
2137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2138
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipFileUploadComponent, isStandalone: true, selector: "sh-file-upload", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, overlayText: { classPropertyName: "overlayText", publicName: "overlayText", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { placeholder: "placeholderChange", files: "filesChange" }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2139
2139
|
<sh-form-field [class]="fileUploadClasses()">
|
|
2140
2140
|
<ng-content select="label" ngProjectAs="label"></ng-content>
|
|
2141
2141
|
|
|
@@ -2155,7 +2155,7 @@ class ShipFileUploadComponent {
|
|
|
2155
2155
|
</sh-form-field>
|
|
2156
2156
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipFormFieldComponent, selector: "sh-form-field" }, { kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2157
2157
|
}
|
|
2158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFileUploadComponent, decorators: [{
|
|
2159
2159
|
type: Component,
|
|
2160
2160
|
args: [{
|
|
2161
2161
|
selector: 'sh-file-upload',
|
|
@@ -2184,12 +2184,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
2184
2184
|
}] });
|
|
2185
2185
|
|
|
2186
2186
|
class ShipListComponent {
|
|
2187
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2188
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2187
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2188
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipListComponent, isStandalone: true, selector: "sh-list", ngImport: i0, template: `
|
|
2189
2189
|
<ng-content />
|
|
2190
2190
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2191
2191
|
}
|
|
2192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipListComponent, decorators: [{
|
|
2193
2193
|
type: Component,
|
|
2194
2194
|
args: [{
|
|
2195
2195
|
selector: 'sh-list',
|
|
@@ -2204,7 +2204,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
2204
2204
|
function createInputSignal(input, options) {
|
|
2205
2205
|
const injector = options?.injector || (assertInInjectionContext(createInputSignal), inject(Injector));
|
|
2206
2206
|
const { debounce = 0, initialValue = undefined, transform = (value) => value, compare = (a, b) => a === b, forceType = undefined, returnPreviousValue = true, } = options || {};
|
|
2207
|
-
const valueSignal = signal(initialValue);
|
|
2207
|
+
const valueSignal = signal(initialValue, ...(ngDevMode ? [{ debugName: "valueSignal" }] : []));
|
|
2208
2208
|
const destroyRef = injector.get(DestroyRef);
|
|
2209
2209
|
const inputElementRef = computed(() => {
|
|
2210
2210
|
const inputElement = input()?.nativeElement;
|
|
@@ -2212,7 +2212,7 @@ function createInputSignal(input, options) {
|
|
|
2212
2212
|
return;
|
|
2213
2213
|
}
|
|
2214
2214
|
return createCustomInputEventListener(inputElement);
|
|
2215
|
-
});
|
|
2215
|
+
}, ...(ngDevMode ? [{ debugName: "inputElementRef" }] : []));
|
|
2216
2216
|
let isUpdating = false;
|
|
2217
2217
|
let previousValue;
|
|
2218
2218
|
let timeoutId = null;
|
|
@@ -2321,7 +2321,7 @@ function createInputSignal(input, options) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
2323
|
function observeFirstChild(parentEl, elementTags) {
|
|
2324
|
-
const elementSignal = signal(null);
|
|
2324
|
+
const elementSignal = signal(null, ...(ngDevMode ? [{ debugName: "elementSignal" }] : []));
|
|
2325
2325
|
const _upperCaseElementTags = elementTags.map((tag) => tag.toUpperCase());
|
|
2326
2326
|
const injector = inject(Injector);
|
|
2327
2327
|
const destroyRef = injector.get(DestroyRef);
|
|
@@ -2355,7 +2355,7 @@ function observeFirstChild(parentEl, elementTags) {
|
|
|
2355
2355
|
function observeChildren(parentEl, elementTags) {
|
|
2356
2356
|
const injector = inject(Injector);
|
|
2357
2357
|
const destroyRef = injector.get(DestroyRef);
|
|
2358
|
-
const elementsSignal = signal([]);
|
|
2358
|
+
const elementsSignal = signal([], ...(ngDevMode ? [{ debugName: "elementsSignal" }] : []));
|
|
2359
2359
|
let effectOnSignal = null;
|
|
2360
2360
|
let observer = null;
|
|
2361
2361
|
const setupObserver = (el, elementTags) => {
|
|
@@ -2409,20 +2409,20 @@ function observeChildren(parentEl, elementTags) {
|
|
|
2409
2409
|
class ShipMenuComponent {
|
|
2410
2410
|
constructor() {
|
|
2411
2411
|
this.#renderer = inject(Renderer2);
|
|
2412
|
-
this.asMultiLayer = input(false);
|
|
2413
|
-
this.openIndicator = input(false);
|
|
2414
|
-
this.disabled = input(false);
|
|
2415
|
-
this.customOptionElementSelectors = input(['button']);
|
|
2416
|
-
this.keepClickedOptionActive = input(false);
|
|
2417
|
-
this.closeOnClick = input(true);
|
|
2418
|
-
this.isOpen = model(false);
|
|
2412
|
+
this.asMultiLayer = input(false, ...(ngDevMode ? [{ debugName: "asMultiLayer" }] : []));
|
|
2413
|
+
this.openIndicator = input(false, ...(ngDevMode ? [{ debugName: "openIndicator" }] : []));
|
|
2414
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2415
|
+
this.customOptionElementSelectors = input(['button'], ...(ngDevMode ? [{ debugName: "customOptionElementSelectors" }] : []));
|
|
2416
|
+
this.keepClickedOptionActive = input(false, ...(ngDevMode ? [{ debugName: "keepClickedOptionActive" }] : []));
|
|
2417
|
+
this.closeOnClick = input(true, ...(ngDevMode ? [{ debugName: "closeOnClick" }] : []));
|
|
2418
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
2419
2419
|
this.closed = output();
|
|
2420
|
-
this.searchable = input(false);
|
|
2421
|
-
this.activeOptionIndex = signal(-1);
|
|
2422
|
-
this.inputRef = viewChild('input');
|
|
2423
|
-
this.optionsRef = viewChild('optionsRef');
|
|
2420
|
+
this.searchable = input(false, ...(ngDevMode ? [{ debugName: "searchable" }] : []));
|
|
2421
|
+
this.activeOptionIndex = signal(-1, ...(ngDevMode ? [{ debugName: "activeOptionIndex" }] : []));
|
|
2422
|
+
this.inputRef = viewChild('input', ...(ngDevMode ? [{ debugName: "inputRef" }] : []));
|
|
2423
|
+
this.optionsRef = viewChild('optionsRef', ...(ngDevMode ? [{ debugName: "optionsRef" }] : []));
|
|
2424
2424
|
this.options = observeChildren(this.optionsRef, this.customOptionElementSelectors);
|
|
2425
|
-
this.optionsEl = computed(() => this.options.signal().filter((x) => !x.disabled));
|
|
2425
|
+
this.optionsEl = computed(() => this.options.signal().filter((x) => !x.disabled), ...(ngDevMode ? [{ debugName: "optionsEl" }] : []));
|
|
2426
2426
|
this.inputValue = createInputSignal(this.inputRef);
|
|
2427
2427
|
this.abortController = null;
|
|
2428
2428
|
this.optionsEffect = effect(() => {
|
|
@@ -2478,9 +2478,9 @@ class ShipMenuComponent {
|
|
|
2478
2478
|
}, {
|
|
2479
2479
|
signal: this.abortController.signal,
|
|
2480
2480
|
});
|
|
2481
|
-
});
|
|
2481
|
+
}, ...(ngDevMode ? [{ debugName: "optionsEffect" }] : []));
|
|
2482
2482
|
this._lastElementList = [];
|
|
2483
|
-
this.activeElements = signal([]);
|
|
2483
|
+
this.activeElements = signal([], ...(ngDevMode ? [{ debugName: "activeElements" }] : []));
|
|
2484
2484
|
this.lastInputValue = '';
|
|
2485
2485
|
this.inputValueEffect = effect(() => {
|
|
2486
2486
|
const searchable = this.searchable();
|
|
@@ -2508,7 +2508,7 @@ class ShipMenuComponent {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
this.activeElements.set(optionElements);
|
|
2510
2510
|
this._lastElementList = optionElements;
|
|
2511
|
-
});
|
|
2511
|
+
}, ...(ngDevMode ? [{ debugName: "inputValueEffect" }] : []));
|
|
2512
2512
|
this.activeOptionIndexEffect = effect(() => {
|
|
2513
2513
|
const optionElements = this.activeElements();
|
|
2514
2514
|
const activeOptionIndex = this.activeOptionIndex();
|
|
@@ -2519,7 +2519,7 @@ class ShipMenuComponent {
|
|
|
2519
2519
|
optionElements[activeOptionIndex].scrollIntoView({ block: 'center' });
|
|
2520
2520
|
optionElements[activeOptionIndex].classList.add('active');
|
|
2521
2521
|
}
|
|
2522
|
-
});
|
|
2522
|
+
}, ...(ngDevMode ? [{ debugName: "activeOptionIndexEffect" }] : []));
|
|
2523
2523
|
}
|
|
2524
2524
|
#renderer;
|
|
2525
2525
|
#calculateMatchScore(option, input) {
|
|
@@ -2614,8 +2614,8 @@ class ShipMenuComponent {
|
|
|
2614
2614
|
this.abortController = null;
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2618
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
2617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2618
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipMenuComponent, isStandalone: true, selector: "sh-menu", inputs: { asMultiLayer: { classPropertyName: "asMultiLayer", publicName: "asMultiLayer", isSignal: true, isRequired: false, transformFunction: null }, openIndicator: { classPropertyName: "openIndicator", publicName: "openIndicator", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, customOptionElementSelectors: { classPropertyName: "customOptionElementSelectors", publicName: "customOptionElementSelectors", isSignal: true, isRequired: false, transformFunction: null }, keepClickedOptionActive: { classPropertyName: "keepClickedOptionActive", publicName: "keepClickedOptionActive", isSignal: true, isRequired: false, transformFunction: null }, closeOnClick: { classPropertyName: "closeOnClick", publicName: "closeOnClick", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", closed: "closed" }, host: { properties: { "class.disabled": "disabled()", "class.has-search": "searchable()", "class.multi-layer": "asMultiLayer()" } }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "optionsRef", first: true, predicate: ["optionsRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2619
2619
|
<sh-popover
|
|
2620
2620
|
#formFieldWrapper
|
|
2621
2621
|
[(isOpen)]="isOpen"
|
|
@@ -2650,7 +2650,7 @@ class ShipMenuComponent {
|
|
|
2650
2650
|
</sh-popover>
|
|
2651
2651
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipPopoverComponent, selector: "sh-popover", inputs: ["asMultiLayer", "disableOpenByClick", "isOpen", "options"], outputs: ["isOpenChange", "closed"] }, { kind: "component", type: ShipFormFieldComponent, selector: "sh-form-field" }, { kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2652
2652
|
}
|
|
2653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipMenuComponent, decorators: [{
|
|
2654
2654
|
type: Component,
|
|
2655
2655
|
args: [{
|
|
2656
2656
|
selector: 'sh-menu',
|
|
@@ -2700,14 +2700,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
2700
2700
|
|
|
2701
2701
|
class ShipProgressBarComponent {
|
|
2702
2702
|
constructor() {
|
|
2703
|
-
this.value = input(undefined);
|
|
2703
|
+
this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
2704
2704
|
}
|
|
2705
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2706
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
2705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2706
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: ShipProgressBarComponent, isStandalone: true, selector: "sh-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2707
2707
|
<div class="progress-bar" [style.width.%]="value()"></div>
|
|
2708
2708
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2709
2709
|
}
|
|
2710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipProgressBarComponent, decorators: [{
|
|
2711
2711
|
type: Component,
|
|
2712
2712
|
args: [{
|
|
2713
2713
|
selector: 'sh-progress-bar',
|
|
@@ -2726,14 +2726,14 @@ class ShipRadioComponent {
|
|
|
2726
2726
|
this.#selfRef.nativeElement.querySelector('input').focus();
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2730
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2729
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2730
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipRadioComponent, isStandalone: true, selector: "sh-radio", host: { listeners: { "click": "onClick()" } }, ngImport: i0, template: `
|
|
2731
2731
|
<div class="radio"></div>
|
|
2732
2732
|
|
|
2733
2733
|
<ng-content />
|
|
2734
2734
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2735
2735
|
}
|
|
2736
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipRadioComponent, decorators: [{
|
|
2737
2737
|
type: Component,
|
|
2738
2738
|
args: [{
|
|
2739
2739
|
selector: 'sh-radio',
|
|
@@ -2756,13 +2756,13 @@ class ShipRangeSliderComponent {
|
|
|
2756
2756
|
this.#observer = null;
|
|
2757
2757
|
this.#inputElement = null;
|
|
2758
2758
|
this.#initialDefaultValue = 0;
|
|
2759
|
-
this.unit = input('');
|
|
2760
|
-
this.value = model(this.#initialDefaultValue);
|
|
2759
|
+
this.unit = input('', ...(ngDevMode ? [{ debugName: "unit" }] : []));
|
|
2760
|
+
this.value = model(this.#initialDefaultValue, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
2761
2761
|
this.inputState = signal({
|
|
2762
2762
|
min: 0,
|
|
2763
2763
|
max: 100,
|
|
2764
2764
|
step: 1,
|
|
2765
|
-
});
|
|
2765
|
+
}, ...(ngDevMode ? [{ debugName: "inputState" }] : []));
|
|
2766
2766
|
this.valuePercentage = computed(() => {
|
|
2767
2767
|
const { min, max } = this.inputState();
|
|
2768
2768
|
const currentValue = this.value() ?? min;
|
|
@@ -2773,9 +2773,9 @@ class ShipRangeSliderComponent {
|
|
|
2773
2773
|
return 0;
|
|
2774
2774
|
const percentage = ((currentValue - min) / range) * 100;
|
|
2775
2775
|
return Math.max(0, Math.min(100, percentage));
|
|
2776
|
-
});
|
|
2777
|
-
this.trackFilledPercentage = computed(() => this.valuePercentage());
|
|
2778
|
-
this.thumbPositionPercentage = computed(() => this.valuePercentage());
|
|
2776
|
+
}, ...(ngDevMode ? [{ debugName: "valuePercentage" }] : []));
|
|
2777
|
+
this.trackFilledPercentage = computed(() => this.valuePercentage(), ...(ngDevMode ? [{ debugName: "trackFilledPercentage" }] : []));
|
|
2778
|
+
this.thumbPositionPercentage = computed(() => this.valuePercentage(), ...(ngDevMode ? [{ debugName: "thumbPositionPercentage" }] : []));
|
|
2779
2779
|
this.syncModelToInputEffect = effect(() => {
|
|
2780
2780
|
const modelValue = this.value();
|
|
2781
2781
|
if (this.#inputElement) {
|
|
@@ -2784,7 +2784,7 @@ class ShipRangeSliderComponent {
|
|
|
2784
2784
|
this.#inputElement.value = String(modelValue);
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
});
|
|
2787
|
+
}, ...(ngDevMode ? [{ debugName: "syncModelToInputEffect" }] : []));
|
|
2788
2788
|
}
|
|
2789
2789
|
#selfRef;
|
|
2790
2790
|
#observer;
|
|
@@ -2931,8 +2931,8 @@ class ShipRangeSliderComponent {
|
|
|
2931
2931
|
this.#inputElement.oninput = null;
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2935
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
2934
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipRangeSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2935
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: ShipRangeSliderComponent, isStandalone: true, selector: "sh-range-slider", inputs: { unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class.has-input": "this.hasInputElement" } }, ngImport: i0, template: `
|
|
2936
2936
|
<div class="label">
|
|
2937
2937
|
<ng-content select="label"></ng-content>
|
|
2938
2938
|
</div>
|
|
@@ -2958,7 +2958,7 @@ class ShipRangeSliderComponent {
|
|
|
2958
2958
|
</div>
|
|
2959
2959
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2960
2960
|
}
|
|
2961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipRangeSliderComponent, decorators: [{
|
|
2962
2962
|
type: Component,
|
|
2963
2963
|
args: [{
|
|
2964
2964
|
selector: 'sh-range-slider',
|
|
@@ -2996,10 +2996,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
2996
2996
|
}] } });
|
|
2997
2997
|
|
|
2998
2998
|
class ShipSpinnerComponent {
|
|
2999
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3000
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
2999
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3000
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipSpinnerComponent, isStandalone: true, selector: "sh-spinner", ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3001
3001
|
}
|
|
3002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSpinnerComponent, decorators: [{
|
|
3003
3003
|
type: Component,
|
|
3004
3004
|
args: [{
|
|
3005
3005
|
selector: 'sh-spinner',
|
|
@@ -3012,29 +3012,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
3012
3012
|
class ShipSelectComponent {
|
|
3013
3013
|
constructor() {
|
|
3014
3014
|
this.#selfRef = inject((ElementRef));
|
|
3015
|
-
this.value = input();
|
|
3016
|
-
this.label = input();
|
|
3017
|
-
this.asFreeText = input(false);
|
|
3018
|
-
this.optionTitle = input(null);
|
|
3019
|
-
this.freeTextTitle = input(null);
|
|
3020
|
-
this.freeTextPlaceholder = input('Type to create a new option');
|
|
3021
|
-
this.validateFreeText = input();
|
|
3022
|
-
this.placeholder = input();
|
|
3023
|
-
this.readonly = model(false);
|
|
3024
|
-
this.disabled = model(false);
|
|
3025
|
-
this.lazySearch = input(false);
|
|
3026
|
-
this.inlineSearch = input(false);
|
|
3027
|
-
this.asText = input(false);
|
|
3028
|
-
this.isClearable = input(true);
|
|
3029
|
-
this.selectMultiple = input(false);
|
|
3030
|
-
this.optionTemplate = input(null);
|
|
3031
|
-
this.selectedOptionTemplate = input(null);
|
|
3032
|
-
this.placeholderTemplate = input(null);
|
|
3033
|
-
this.freeTextOptionTemplate = input(null);
|
|
3034
|
-
this.isOpen = model(false);
|
|
3035
|
-
this.isLoading = model(false);
|
|
3036
|
-
this.options = model([]);
|
|
3037
|
-
this.selectedOptions = model([]);
|
|
3015
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
3016
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
3017
|
+
this.asFreeText = input(false, ...(ngDevMode ? [{ debugName: "asFreeText" }] : []));
|
|
3018
|
+
this.optionTitle = input(null, ...(ngDevMode ? [{ debugName: "optionTitle" }] : []));
|
|
3019
|
+
this.freeTextTitle = input(null, ...(ngDevMode ? [{ debugName: "freeTextTitle" }] : []));
|
|
3020
|
+
this.freeTextPlaceholder = input('Type to create a new option', ...(ngDevMode ? [{ debugName: "freeTextPlaceholder" }] : []));
|
|
3021
|
+
this.validateFreeText = input(...(ngDevMode ? [undefined, { debugName: "validateFreeText" }] : []));
|
|
3022
|
+
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
|
|
3023
|
+
this.readonly = model(false, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
3024
|
+
this.disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
3025
|
+
this.lazySearch = input(false, ...(ngDevMode ? [{ debugName: "lazySearch" }] : []));
|
|
3026
|
+
this.inlineSearch = input(false, ...(ngDevMode ? [{ debugName: "inlineSearch" }] : []));
|
|
3027
|
+
this.asText = input(false, ...(ngDevMode ? [{ debugName: "asText" }] : []));
|
|
3028
|
+
this.isClearable = input(true, ...(ngDevMode ? [{ debugName: "isClearable" }] : []));
|
|
3029
|
+
this.selectMultiple = input(false, ...(ngDevMode ? [{ debugName: "selectMultiple" }] : []));
|
|
3030
|
+
this.optionTemplate = input(null, ...(ngDevMode ? [{ debugName: "optionTemplate" }] : []));
|
|
3031
|
+
this.selectedOptionTemplate = input(null, ...(ngDevMode ? [{ debugName: "selectedOptionTemplate" }] : []));
|
|
3032
|
+
this.placeholderTemplate = input(null, ...(ngDevMode ? [{ debugName: "placeholderTemplate" }] : []));
|
|
3033
|
+
this.freeTextOptionTemplate = input(null, ...(ngDevMode ? [{ debugName: "freeTextOptionTemplate" }] : []));
|
|
3034
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
3035
|
+
this.isLoading = model(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
3036
|
+
this.options = model([], ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
3037
|
+
this.selectedOptions = model([], ...(ngDevMode ? [{ debugName: "selectedOptions" }] : []));
|
|
3038
3038
|
this.cleared = output();
|
|
3039
3039
|
this.onAddNewFreeTextOption = output();
|
|
3040
3040
|
this.computedFreeTextOption = computed(() => {
|
|
@@ -3045,11 +3045,11 @@ class ShipSelectComponent {
|
|
|
3045
3045
|
newOption[valueKey] = inputValue;
|
|
3046
3046
|
}
|
|
3047
3047
|
return newOption;
|
|
3048
|
-
});
|
|
3049
|
-
this.#previousSelectedOptions = signal(null);
|
|
3050
|
-
this.inlineTemplate = contentChild(TemplateRef);
|
|
3048
|
+
}, ...(ngDevMode ? [{ debugName: "computedFreeTextOption" }] : []));
|
|
3049
|
+
this.#previousSelectedOptions = signal(null, ...(ngDevMode ? [{ debugName: "#previousSelectedOptions" }] : []));
|
|
3050
|
+
this.inlineTemplate = contentChild(TemplateRef, ...(ngDevMode ? [{ debugName: "inlineTemplate" }] : []));
|
|
3051
3051
|
this.optionsWrapRef = viewChild.required('optionsWrap');
|
|
3052
|
-
this.inputRefInput = signal(null);
|
|
3052
|
+
this.inputRefInput = signal(null, ...(ngDevMode ? [{ debugName: "inputRefInput" }] : []));
|
|
3053
3053
|
this.#inputObserver = typeof MutationObserver !== 'undefined' &&
|
|
3054
3054
|
new MutationObserver((mutations) => {
|
|
3055
3055
|
for (var mutation of mutations) {
|
|
@@ -3059,25 +3059,25 @@ class ShipSelectComponent {
|
|
|
3059
3059
|
}
|
|
3060
3060
|
}
|
|
3061
3061
|
});
|
|
3062
|
-
this.inputValue = signal('');
|
|
3063
|
-
this.prevInputValue = signal(null);
|
|
3064
|
-
this.focusedOptionIndex = signal(-1);
|
|
3065
|
-
this._isClearable = computed(() => this.selectMultiple() || this.isClearable());
|
|
3066
|
-
this.selectClasses = computed(() => this.#selfRef.nativeElement.classList.toString());
|
|
3067
|
-
this.stretch = computed(() => this.selectClasses().includes('stretch'));
|
|
3068
|
-
this.small = computed(() => this.selectClasses().includes('small'));
|
|
3062
|
+
this.inputValue = signal('', ...(ngDevMode ? [{ debugName: "inputValue" }] : []));
|
|
3063
|
+
this.prevInputValue = signal(null, ...(ngDevMode ? [{ debugName: "prevInputValue" }] : []));
|
|
3064
|
+
this.focusedOptionIndex = signal(-1, ...(ngDevMode ? [{ debugName: "focusedOptionIndex" }] : []));
|
|
3065
|
+
this._isClearable = computed(() => this.selectMultiple() || this.isClearable(), ...(ngDevMode ? [{ debugName: "_isClearable" }] : []));
|
|
3066
|
+
this.selectClasses = computed(() => this.#selfRef.nativeElement.classList.toString(), ...(ngDevMode ? [{ debugName: "selectClasses" }] : []));
|
|
3067
|
+
this.stretch = computed(() => this.selectClasses().includes('stretch'), ...(ngDevMode ? [{ debugName: "stretch" }] : []));
|
|
3068
|
+
this.small = computed(() => this.selectClasses().includes('small'), ...(ngDevMode ? [{ debugName: "small" }] : []));
|
|
3069
3069
|
this.placeholderText = computed(() => {
|
|
3070
3070
|
const placeholder = this.placeholder();
|
|
3071
3071
|
const inputRefEl = this.inputRefEl();
|
|
3072
3072
|
return placeholder || inputRefEl?.placeholder || null;
|
|
3073
|
-
});
|
|
3073
|
+
}, ...(ngDevMode ? [{ debugName: "placeholderText" }] : []));
|
|
3074
3074
|
this.selectedOptionValues = computed(() => {
|
|
3075
3075
|
const selectedOptions = this.selectedOptions();
|
|
3076
3076
|
const valueKey = this.value();
|
|
3077
3077
|
return valueKey
|
|
3078
3078
|
? selectedOptions.map((selectedOption) => this.#getProperty(selectedOption, valueKey))
|
|
3079
3079
|
: selectedOptions;
|
|
3080
|
-
});
|
|
3080
|
+
}, ...(ngDevMode ? [{ debugName: "selectedOptionValues" }] : []));
|
|
3081
3081
|
this.filteredOptions = computed(() => {
|
|
3082
3082
|
const opts = this.options() || [];
|
|
3083
3083
|
const label = this.label();
|
|
@@ -3113,7 +3113,7 @@ class ShipSelectComponent {
|
|
|
3113
3113
|
});
|
|
3114
3114
|
scoredOptions.sort((a, b) => b.score - a.score);
|
|
3115
3115
|
return scoredOptions.map((scoredOption) => scoredOption.item);
|
|
3116
|
-
});
|
|
3116
|
+
}, ...(ngDevMode ? [{ debugName: "filteredOptions" }] : []));
|
|
3117
3117
|
this.#componentId = generateUniqueId();
|
|
3118
3118
|
this.inputRefEl = computed(() => {
|
|
3119
3119
|
const inputRefInput = this.inputRefInput();
|
|
@@ -3160,7 +3160,7 @@ class ShipSelectComponent {
|
|
|
3160
3160
|
this.#setFirstSelectedOptionAsFocused();
|
|
3161
3161
|
});
|
|
3162
3162
|
return input;
|
|
3163
|
-
});
|
|
3163
|
+
}, ...(ngDevMode ? [{ debugName: "inputRefEl" }] : []));
|
|
3164
3164
|
this.focusEffect = effect(() => {
|
|
3165
3165
|
const input = this.inputRefEl();
|
|
3166
3166
|
if (!input)
|
|
@@ -3172,7 +3172,7 @@ class ShipSelectComponent {
|
|
|
3172
3172
|
else {
|
|
3173
3173
|
input.removeAttribute('aria-activedescendant');
|
|
3174
3174
|
}
|
|
3175
|
-
});
|
|
3175
|
+
}, ...(ngDevMode ? [{ debugName: "focusEffect" }] : []));
|
|
3176
3176
|
this.openAbortController = null;
|
|
3177
3177
|
this.isOpenEffect = effect(() => {
|
|
3178
3178
|
const isOpen = this.isOpen();
|
|
@@ -3219,12 +3219,12 @@ class ShipSelectComponent {
|
|
|
3219
3219
|
this.openAbortController = null;
|
|
3220
3220
|
}
|
|
3221
3221
|
}
|
|
3222
|
-
});
|
|
3222
|
+
}, ...(ngDevMode ? [{ debugName: "isOpenEffect" }] : []));
|
|
3223
3223
|
this._inputValue = '';
|
|
3224
3224
|
this.inputValueEffect = effect(() => {
|
|
3225
3225
|
const inputValue = this.inputValue();
|
|
3226
3226
|
this._inputValue = inputValue;
|
|
3227
|
-
});
|
|
3227
|
+
}, ...(ngDevMode ? [{ debugName: "inputValueEffect" }] : []));
|
|
3228
3228
|
this.inputRefElEffect = effect(() => {
|
|
3229
3229
|
const input = this.inputRefEl();
|
|
3230
3230
|
if (!input)
|
|
@@ -3234,7 +3234,7 @@ class ShipSelectComponent {
|
|
|
3234
3234
|
this.disabled.set(input.disabled);
|
|
3235
3235
|
this.setSelectedOptionsFromValue(input.value);
|
|
3236
3236
|
this.setInputValueFromOptions(this.selectedOptions());
|
|
3237
|
-
});
|
|
3237
|
+
}, ...(ngDevMode ? [{ debugName: "inputRefElEffect" }] : []));
|
|
3238
3238
|
this.selectedLabels = computed(() => {
|
|
3239
3239
|
const selected = this.selectedOptions();
|
|
3240
3240
|
const label = this.label();
|
|
@@ -3242,7 +3242,7 @@ class ShipSelectComponent {
|
|
|
3242
3242
|
return selected.join(', ');
|
|
3243
3243
|
}
|
|
3244
3244
|
return selected.map((selected) => this.getLabel(selected)).join(', ');
|
|
3245
|
-
});
|
|
3245
|
+
}, ...(ngDevMode ? [{ debugName: "selectedLabels" }] : []));
|
|
3246
3246
|
this.inputState = computed(() => {
|
|
3247
3247
|
if ((this.selectedOptions().length > 0 || (this.asFreeText() && this.inputValue().length > 0)) && !this.isOpen()) {
|
|
3248
3248
|
return 'selected';
|
|
@@ -3260,8 +3260,8 @@ class ShipSelectComponent {
|
|
|
3260
3260
|
return 'searching';
|
|
3261
3261
|
}
|
|
3262
3262
|
return 'closed';
|
|
3263
|
-
});
|
|
3264
|
-
this.hasSearch = computed(() => this.inlineSearch() || this.lazySearch());
|
|
3263
|
+
}, ...(ngDevMode ? [{ debugName: "inputState" }] : []));
|
|
3264
|
+
this.hasSearch = computed(() => this.inlineSearch() || this.lazySearch(), ...(ngDevMode ? [{ debugName: "hasSearch" }] : []));
|
|
3265
3265
|
this.#selectedOptionsEffect = effect(() => {
|
|
3266
3266
|
if (this.selectMultiple() && this.hasSearch()) {
|
|
3267
3267
|
return;
|
|
@@ -3275,7 +3275,7 @@ class ShipSelectComponent {
|
|
|
3275
3275
|
})
|
|
3276
3276
|
.join(',');
|
|
3277
3277
|
this.inputValue.set(inputValue);
|
|
3278
|
-
});
|
|
3278
|
+
}, ...(ngDevMode ? [{ debugName: "#selectedOptionsEffect" }] : []));
|
|
3279
3279
|
}
|
|
3280
3280
|
#selfRef;
|
|
3281
3281
|
#previousSelectedOptions;
|
|
@@ -3574,8 +3574,8 @@ class ShipSelectComponent {
|
|
|
3574
3574
|
this.#inputObserver.disconnect();
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3578
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
3577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3578
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipSelectComponent, isStandalone: true, selector: "sh-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, asFreeText: { classPropertyName: "asFreeText", publicName: "asFreeText", isSignal: true, isRequired: false, transformFunction: null }, optionTitle: { classPropertyName: "optionTitle", publicName: "optionTitle", isSignal: true, isRequired: false, transformFunction: null }, freeTextTitle: { classPropertyName: "freeTextTitle", publicName: "freeTextTitle", isSignal: true, isRequired: false, transformFunction: null }, freeTextPlaceholder: { classPropertyName: "freeTextPlaceholder", publicName: "freeTextPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, validateFreeText: { classPropertyName: "validateFreeText", publicName: "validateFreeText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, lazySearch: { classPropertyName: "lazySearch", publicName: "lazySearch", isSignal: true, isRequired: false, transformFunction: null }, inlineSearch: { classPropertyName: "inlineSearch", publicName: "inlineSearch", isSignal: true, isRequired: false, transformFunction: null }, asText: { classPropertyName: "asText", publicName: "asText", isSignal: true, isRequired: false, transformFunction: null }, isClearable: { classPropertyName: "isClearable", publicName: "isClearable", isSignal: true, isRequired: false, transformFunction: null }, selectMultiple: { classPropertyName: "selectMultiple", publicName: "selectMultiple", isSignal: true, isRequired: false, transformFunction: null }, optionTemplate: { classPropertyName: "optionTemplate", publicName: "optionTemplate", isSignal: true, isRequired: false, transformFunction: null }, selectedOptionTemplate: { classPropertyName: "selectedOptionTemplate", publicName: "selectedOptionTemplate", isSignal: true, isRequired: false, transformFunction: null }, placeholderTemplate: { classPropertyName: "placeholderTemplate", publicName: "placeholderTemplate", isSignal: true, isRequired: false, transformFunction: null }, freeTextOptionTemplate: { classPropertyName: "freeTextOptionTemplate", publicName: "freeTextOptionTemplate", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, selectedOptions: { classPropertyName: "selectedOptions", publicName: "selectedOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { readonly: "readonlyChange", disabled: "disabledChange", isOpen: "isOpenChange", isLoading: "isLoadingChange", options: "optionsChange", selectedOptions: "selectedOptionsChange", cleared: "cleared", onAddNewFreeTextOption: "onAddNewFreeTextOption" }, host: { properties: { "class.multiple": "selectMultiple()" } }, queries: [{ propertyName: "inlineTemplate", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "optionsWrapRef", first: true, predicate: ["optionsWrap"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
3579
3579
|
@let _placeholderTemplate = placeholderTemplate();
|
|
3580
3580
|
@let _optionTemplate = optionTemplate();
|
|
3581
3581
|
@let _freeTextOptionTemplate = freeTextOptionTemplate();
|
|
@@ -3621,7 +3621,8 @@ class ShipSelectComponent {
|
|
|
3621
3621
|
class="small"
|
|
3622
3622
|
(click)="removeSelectedOptionByIndex($event, $index)">
|
|
3623
3623
|
@if (_selOptionTemplate) {
|
|
3624
|
-
<ng-container
|
|
3624
|
+
<ng-container
|
|
3625
|
+
*ngTemplateOutlet="_selOptionTemplate; context: { $implicit: selectedOption, last: $last }" />
|
|
3625
3626
|
} @else {
|
|
3626
3627
|
{{ getLabel(selectedOption) }}
|
|
3627
3628
|
}
|
|
@@ -3631,7 +3632,8 @@ class ShipSelectComponent {
|
|
|
3631
3632
|
} @else {
|
|
3632
3633
|
@if (!_showSearchText) {
|
|
3633
3634
|
@if (_selOptionTemplate) {
|
|
3634
|
-
<ng-container
|
|
3635
|
+
<ng-container
|
|
3636
|
+
*ngTemplateOutlet="_selOptionTemplate; context: { $implicit: selectedOption, last: $last }" />
|
|
3635
3637
|
} @else {
|
|
3636
3638
|
{{ $last ? getLabel(selectedOption) : getLabel(selectedOption) + ',' }}
|
|
3637
3639
|
}
|
|
@@ -3728,7 +3730,7 @@ class ShipSelectComponent {
|
|
|
3728
3730
|
</sh-popover>
|
|
3729
3731
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ShipPopoverComponent, selector: "sh-popover", inputs: ["asMultiLayer", "disableOpenByClick", "isOpen", "options"], outputs: ["isOpenChange", "closed"] }, { kind: "component", type: ShipFormFieldComponent, selector: "sh-form-field" }, { kind: "component", type: ShipIconComponent, selector: "sh-icon" }, { kind: "component", type: ShipCheckboxComponent, selector: "sh-checkbox" }, { kind: "component", type: ShipSpinnerComponent, selector: "sh-spinner" }, { kind: "component", type: ShipChipComponent, selector: "sh-chip" }, { kind: "component", type: ShipDividerComponent, selector: "sh-divider" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3730
3732
|
}
|
|
3731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSelectComponent, decorators: [{
|
|
3732
3734
|
type: Component,
|
|
3733
3735
|
args: [{
|
|
3734
3736
|
selector: 'sh-select',
|
|
@@ -3788,7 +3790,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
3788
3790
|
class="small"
|
|
3789
3791
|
(click)="removeSelectedOptionByIndex($event, $index)">
|
|
3790
3792
|
@if (_selOptionTemplate) {
|
|
3791
|
-
<ng-container
|
|
3793
|
+
<ng-container
|
|
3794
|
+
*ngTemplateOutlet="_selOptionTemplate; context: { $implicit: selectedOption, last: $last }" />
|
|
3792
3795
|
} @else {
|
|
3793
3796
|
{{ getLabel(selectedOption) }}
|
|
3794
3797
|
}
|
|
@@ -3798,7 +3801,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
3798
3801
|
} @else {
|
|
3799
3802
|
@if (!_showSearchText) {
|
|
3800
3803
|
@if (_selOptionTemplate) {
|
|
3801
|
-
<ng-container
|
|
3804
|
+
<ng-container
|
|
3805
|
+
*ngTemplateOutlet="_selOptionTemplate; context: { $implicit: selectedOption, last: $last }" />
|
|
3802
3806
|
} @else {
|
|
3803
3807
|
{{ $last ? getLabel(selectedOption) : getLabel(selectedOption) + ',' }}
|
|
3804
3808
|
}
|
|
@@ -3904,7 +3908,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
3904
3908
|
function watchHostClass(className) {
|
|
3905
3909
|
const elementRef = inject(ElementRef);
|
|
3906
3910
|
const destroyRef = inject(DestroyRef);
|
|
3907
|
-
const hasClass = signal(false);
|
|
3911
|
+
const hasClass = signal(false, ...(ngDevMode ? [{ debugName: "hasClass" }] : []));
|
|
3908
3912
|
const observer = typeof MutationObserver !== 'undefined' &&
|
|
3909
3913
|
new MutationObserver((mutations) => {
|
|
3910
3914
|
mutations.forEach((mutation) => {
|
|
@@ -3931,16 +3935,16 @@ class ShipSidenavComponent {
|
|
|
3931
3935
|
this.#selfRef = inject(ElementRef);
|
|
3932
3936
|
this.openWidth = 280;
|
|
3933
3937
|
this.openWidthTreshold = this.openWidth * 0.5;
|
|
3934
|
-
this.disableDrag = input(false);
|
|
3935
|
-
this.isOpen = model(false);
|
|
3938
|
+
this.disableDrag = input(false, ...(ngDevMode ? [{ debugName: "disableDrag" }] : []));
|
|
3939
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
3936
3940
|
this.isOverlay = watchHostClass('overlay');
|
|
3937
3941
|
this.#closestParent = this.#selfRef.nativeElement.parentElement;
|
|
3938
3942
|
this.#closestParentRect = this.#closestParent.getBoundingClientRect && this.#closestParent.getBoundingClientRect();
|
|
3939
3943
|
this.dragImageElement = viewChild.required('dragImageElement');
|
|
3940
|
-
this.dragIsEnding = signal(false);
|
|
3941
|
-
this.dragIsOnScreen = signal(true);
|
|
3942
|
-
this.isDragging = signal(false);
|
|
3943
|
-
this.dragPositionX = signal(0);
|
|
3944
|
+
this.dragIsEnding = signal(false, ...(ngDevMode ? [{ debugName: "dragIsEnding" }] : []));
|
|
3945
|
+
this.dragIsOnScreen = signal(true, ...(ngDevMode ? [{ debugName: "dragIsOnScreen" }] : []));
|
|
3946
|
+
this.isDragging = signal(false, ...(ngDevMode ? [{ debugName: "isDragging" }] : []));
|
|
3947
|
+
this.dragPositionX = signal(0, ...(ngDevMode ? [{ debugName: "dragPositionX" }] : []));
|
|
3944
3948
|
this.dragActualPositionX = computed(() => {
|
|
3945
3949
|
const dragPosition = this.dragPositionX();
|
|
3946
3950
|
const openWidth = 280;
|
|
@@ -3962,7 +3966,7 @@ class ShipSidenavComponent {
|
|
|
3962
3966
|
return deadZoneStart - dampenedDistance;
|
|
3963
3967
|
}
|
|
3964
3968
|
return dragPosition;
|
|
3965
|
-
});
|
|
3969
|
+
}, ...(ngDevMode ? [{ debugName: "dragActualPositionX" }] : []));
|
|
3966
3970
|
this.draggingStyle = computed(() => {
|
|
3967
3971
|
if (!this.isOverlay())
|
|
3968
3972
|
return null;
|
|
@@ -3970,7 +3974,7 @@ class ShipSidenavComponent {
|
|
|
3970
3974
|
return `translateX(${this.dragActualPositionX()}px)`;
|
|
3971
3975
|
}
|
|
3972
3976
|
return this.isOpen() ? `translateX(${this.openWidth}px)` : `translateX(0px)`;
|
|
3973
|
-
});
|
|
3977
|
+
}, ...(ngDevMode ? [{ debugName: "draggingStyle" }] : []));
|
|
3974
3978
|
this.draggingEffect = effect(() => {
|
|
3975
3979
|
if (typeof document === 'undefined')
|
|
3976
3980
|
return;
|
|
@@ -3980,7 +3984,7 @@ class ShipSidenavComponent {
|
|
|
3980
3984
|
else {
|
|
3981
3985
|
document.body.classList.remove('dragging');
|
|
3982
3986
|
}
|
|
3983
|
-
});
|
|
3987
|
+
}, ...(ngDevMode ? [{ debugName: "draggingEffect" }] : []));
|
|
3984
3988
|
}
|
|
3985
3989
|
#selfRef;
|
|
3986
3990
|
#closestParent;
|
|
@@ -4045,8 +4049,8 @@ class ShipSidenavComponent {
|
|
|
4045
4049
|
e.stopPropagation();
|
|
4046
4050
|
this.isDragging.set(false);
|
|
4047
4051
|
}
|
|
4048
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4049
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
4052
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4053
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipSidenavComponent, isStandalone: true, selector: "sh-sidenav", inputs: { disableDrag: { classPropertyName: "disableDrag", publicName: "disableDrag", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange" }, host: { properties: { "class.open": "isOpen()", "class.closed": "!isOpen()", "class.is-dragging": "isDragging()" } }, viewQueries: [{ propertyName: "dragImageElement", first: true, predicate: ["dragImageElement"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
4050
4054
|
@if (isOverlay()) {
|
|
4051
4055
|
<div #dragImageElement class="drag-image"></div>
|
|
4052
4056
|
}
|
|
@@ -4083,7 +4087,7 @@ class ShipSidenavComponent {
|
|
|
4083
4087
|
</div>
|
|
4084
4088
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4085
4089
|
}
|
|
4086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSidenavComponent, decorators: [{
|
|
4087
4091
|
type: Component,
|
|
4088
4092
|
args: [{
|
|
4089
4093
|
selector: 'sh-sidenav',
|
|
@@ -4162,10 +4166,10 @@ class GridSortableDirective {
|
|
|
4162
4166
|
}
|
|
4163
4167
|
});
|
|
4164
4168
|
}
|
|
4165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4166
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
4169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: GridSortableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4170
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.6", type: GridSortableDirective, isStandalone: true, selector: "[shGridSortable]", host: { listeners: { "dragstart": "onDragStart($event)", "dragover": "onDragOver($event)", "dragenter": "onDragEnter($event)" } }, ngImport: i0 }); }
|
|
4167
4171
|
}
|
|
4168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: GridSortableDirective, decorators: [{
|
|
4169
4173
|
type: Directive,
|
|
4170
4174
|
args: [{
|
|
4171
4175
|
standalone: true,
|
|
@@ -4187,10 +4191,10 @@ class ShipSortableComponent {
|
|
|
4187
4191
|
this.templateOne = contentChild.required('templateOne');
|
|
4188
4192
|
this.templateTwo = contentChild.required('templateTwo');
|
|
4189
4193
|
this.placeholderRef = viewChild.required('placeholderRef');
|
|
4190
|
-
this.items = model([]);
|
|
4194
|
+
this.items = model([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
4191
4195
|
}
|
|
4192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4193
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
4196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSortableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4197
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipSortableComponent, isStandalone: true, selector: "sh-sortable", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { items: "itemsChange" }, queries: [{ propertyName: "templateOne", first: true, predicate: ["templateOne"], descendants: true, isSignal: true }, { propertyName: "templateTwo", first: true, predicate: ["templateTwo"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "placeholderRef", first: true, predicate: ["placeholderRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
4194
4198
|
<div class="placeholder" #placeholderRef></div>
|
|
4195
4199
|
|
|
4196
4200
|
@for (item of items(); track $index) {
|
|
@@ -4202,7 +4206,7 @@ class ShipSortableComponent {
|
|
|
4202
4206
|
}
|
|
4203
4207
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4204
4208
|
}
|
|
4205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSortableComponent, decorators: [{
|
|
4206
4210
|
type: Component,
|
|
4207
4211
|
args: [{
|
|
4208
4212
|
selector: 'sh-sortable',
|
|
@@ -4226,12 +4230,12 @@ class ShipSortableDirective {
|
|
|
4226
4230
|
constructor() {
|
|
4227
4231
|
this.#selfEl = inject((ElementRef));
|
|
4228
4232
|
this.#renderer = inject(Renderer2);
|
|
4229
|
-
this.#placeholderEl = signal(null);
|
|
4230
|
-
this.#ghostEl = signal(null);
|
|
4231
|
-
this.#parentGap = signal(0);
|
|
4232
|
-
this.dragStartIndex = signal(-1);
|
|
4233
|
-
this.dragToIndex = signal(-1);
|
|
4234
|
-
this.dragables = signal([]);
|
|
4233
|
+
this.#placeholderEl = signal(null, ...(ngDevMode ? [{ debugName: "#placeholderEl" }] : []));
|
|
4234
|
+
this.#ghostEl = signal(null, ...(ngDevMode ? [{ debugName: "#ghostEl" }] : []));
|
|
4235
|
+
this.#parentGap = signal(0, ...(ngDevMode ? [{ debugName: "#parentGap" }] : []));
|
|
4236
|
+
this.dragStartIndex = signal(-1, ...(ngDevMode ? [{ debugName: "dragStartIndex" }] : []));
|
|
4237
|
+
this.dragToIndex = signal(-1, ...(ngDevMode ? [{ debugName: "dragToIndex" }] : []));
|
|
4238
|
+
this.dragables = signal([], ...(ngDevMode ? [{ debugName: "dragables" }] : []));
|
|
4235
4239
|
this.afterDrop = output();
|
|
4236
4240
|
this.abortController = null;
|
|
4237
4241
|
this.isDropping = false;
|
|
@@ -4278,7 +4282,7 @@ class ShipSortableDirective {
|
|
|
4278
4282
|
}
|
|
4279
4283
|
}
|
|
4280
4284
|
}
|
|
4281
|
-
});
|
|
4285
|
+
}, ...(ngDevMode ? [{ debugName: "draggingEffect" }] : []));
|
|
4282
4286
|
this.draggablesEffect = effect(() => {
|
|
4283
4287
|
const els = this.dragables();
|
|
4284
4288
|
if (this.abortController) {
|
|
@@ -4289,7 +4293,7 @@ class ShipSortableDirective {
|
|
|
4289
4293
|
el.addEventListener('dragstart', (e) => this.dragStart(e), { signal: this.abortController.signal });
|
|
4290
4294
|
el.addEventListener('dragend', () => this.dragEnd(), { signal: this.abortController.signal });
|
|
4291
4295
|
}
|
|
4292
|
-
});
|
|
4296
|
+
}, ...(ngDevMode ? [{ debugName: "draggablesEffect" }] : []));
|
|
4293
4297
|
this.#dragableObserver = typeof MutationObserver !== 'undefined' &&
|
|
4294
4298
|
new MutationObserver((mutations) => {
|
|
4295
4299
|
for (const mutation of mutations) {
|
|
@@ -4436,10 +4440,10 @@ class ShipSortableDirective {
|
|
|
4436
4440
|
this.#dragableObserver?.disconnect();
|
|
4437
4441
|
this.abortController?.abort();
|
|
4438
4442
|
}
|
|
4439
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4440
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
4443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSortableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4444
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.6", type: ShipSortableDirective, isStandalone: true, selector: "[shSortable]", outputs: { afterDrop: "afterDrop" }, host: { listeners: { "dragover": "dragOver($event)", "drop": "drop()" } }, ngImport: i0 }); }
|
|
4441
4445
|
}
|
|
4442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSortableDirective, decorators: [{
|
|
4443
4447
|
type: Directive,
|
|
4444
4448
|
args: [{
|
|
4445
4449
|
selector: '[shSortable]',
|
|
@@ -4464,12 +4468,12 @@ function moveIndex(array, event) {
|
|
|
4464
4468
|
}
|
|
4465
4469
|
|
|
4466
4470
|
class ShipStepperComponent {
|
|
4467
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4468
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4471
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4472
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipStepperComponent, isStandalone: true, selector: "sh-stepper", ngImport: i0, template: `
|
|
4469
4473
|
<ng-content></ng-content>
|
|
4470
4474
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4471
4475
|
}
|
|
4472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipStepperComponent, decorators: [{
|
|
4473
4477
|
type: Component,
|
|
4474
4478
|
args: [{
|
|
4475
4479
|
selector: 'sh-stepper',
|
|
@@ -4486,9 +4490,9 @@ class ShipResizeDirective {
|
|
|
4486
4490
|
this.#el = inject(ElementRef);
|
|
4487
4491
|
this.#renderer = inject(Renderer2);
|
|
4488
4492
|
this.#table = inject(ShipTableComponent);
|
|
4489
|
-
this.resizable = input(true);
|
|
4490
|
-
this.minWidth = input(50);
|
|
4491
|
-
this.maxWidth = input(null);
|
|
4493
|
+
this.resizable = input(true, ...(ngDevMode ? [{ debugName: "resizable" }] : []));
|
|
4494
|
+
this.minWidth = input(50, ...(ngDevMode ? [{ debugName: "minWidth" }] : []));
|
|
4495
|
+
this.maxWidth = input(null, ...(ngDevMode ? [{ debugName: "maxWidth" }] : []));
|
|
4492
4496
|
this.#resizing = false;
|
|
4493
4497
|
this.#animationFrameRequest = null; // Store request ID
|
|
4494
4498
|
}
|
|
@@ -4560,10 +4564,10 @@ class ShipResizeDirective {
|
|
|
4560
4564
|
cancelAnimationFrame(this.#animationFrameRequest);
|
|
4561
4565
|
}
|
|
4562
4566
|
}
|
|
4563
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4564
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
4567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipResizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4568
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.6", type: ShipResizeDirective, isStandalone: true, selector: "[shResize]", inputs: { resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:mousemove": "onMouseMove($event)", "document:mouseup": "onMouseUp($event)", "document:click": "onClick($event)" } }, ngImport: i0 }); }
|
|
4565
4569
|
}
|
|
4566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipResizeDirective, decorators: [{
|
|
4567
4571
|
type: Directive,
|
|
4568
4572
|
args: [{
|
|
4569
4573
|
selector: '[shResize]',
|
|
@@ -4582,21 +4586,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
4582
4586
|
class ShipSortDirective {
|
|
4583
4587
|
constructor() {
|
|
4584
4588
|
this.#table = inject(ShipTableComponent);
|
|
4585
|
-
this.shSort = input();
|
|
4589
|
+
this.shSort = input(...(ngDevMode ? [undefined, { debugName: "shSort" }] : []));
|
|
4586
4590
|
this.sortAsc = computed(() => {
|
|
4587
4591
|
const currentSort = this.#table.sortByColumn();
|
|
4588
4592
|
const thisColumn = this.shSort();
|
|
4589
4593
|
if (!currentSort || !thisColumn)
|
|
4590
4594
|
return false;
|
|
4591
4595
|
return currentSort === thisColumn;
|
|
4592
|
-
});
|
|
4596
|
+
}, ...(ngDevMode ? [{ debugName: "sortAsc" }] : []));
|
|
4593
4597
|
this.sortDesc = computed(() => {
|
|
4594
4598
|
const currentSort = this.#table.sortByColumn();
|
|
4595
4599
|
const thisColumn = this.shSort();
|
|
4596
4600
|
if (!currentSort || !thisColumn)
|
|
4597
4601
|
return false;
|
|
4598
4602
|
return currentSort === `-${thisColumn}`;
|
|
4599
|
-
});
|
|
4603
|
+
}, ...(ngDevMode ? [{ debugName: "sortDesc" }] : []));
|
|
4600
4604
|
}
|
|
4601
4605
|
#table;
|
|
4602
4606
|
toggleSort() {
|
|
@@ -4605,10 +4609,10 @@ class ShipSortDirective {
|
|
|
4605
4609
|
return;
|
|
4606
4610
|
this.#table.toggleSort(sortCol);
|
|
4607
4611
|
}
|
|
4608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4609
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
4612
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSortDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4613
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.6", type: ShipSortDirective, isStandalone: true, selector: "[shSort]", inputs: { shSort: { classPropertyName: "shSort", publicName: "shSort", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mousedown": "toggleSort()" }, properties: { "class.sort-asc": "sortAsc()", "class.sort-desc": "sortDesc()" }, classAttribute: "sortable" }, ngImport: i0 }); }
|
|
4610
4614
|
}
|
|
4611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipSortDirective, decorators: [{
|
|
4612
4616
|
type: Directive,
|
|
4613
4617
|
args: [{
|
|
4614
4618
|
selector: '[shSort]',
|
|
@@ -4625,7 +4629,7 @@ class ShipStickyRowsDirective {
|
|
|
4625
4629
|
constructor() {
|
|
4626
4630
|
this.#elementRef = inject(ElementRef);
|
|
4627
4631
|
this.#renderer = inject(Renderer2);
|
|
4628
|
-
this.shStickyRows = input('start');
|
|
4632
|
+
this.shStickyRows = input('start', ...(ngDevMode ? [{ debugName: "shStickyRows" }] : []));
|
|
4629
4633
|
}
|
|
4630
4634
|
#elementRef;
|
|
4631
4635
|
#renderer;
|
|
@@ -4642,10 +4646,10 @@ class ShipStickyRowsDirective {
|
|
|
4642
4646
|
this.#renderer.setStyle(nativeElement, 'grid-row', position === 'end' ? `-${rowSpanCount + 1} / -1` : `1 / ${rowSpanCount + 1}`);
|
|
4643
4647
|
}
|
|
4644
4648
|
}
|
|
4645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4646
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
4649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipStickyRowsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4650
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.6", type: ShipStickyRowsDirective, isStandalone: true, selector: "[shStickyRows]", inputs: { shStickyRows: { classPropertyName: "shStickyRows", publicName: "shStickyRows", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.sticky": "shStickyRows() === \"start\"", "class.sticky-end": "shStickyRows() === \"end\"" } }, ngImport: i0 }); }
|
|
4647
4651
|
}
|
|
4648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipStickyRowsDirective, decorators: [{
|
|
4649
4653
|
type: Directive,
|
|
4650
4654
|
args: [{
|
|
4651
4655
|
selector: '[shStickyRows]',
|
|
@@ -4659,7 +4663,7 @@ class ShipStickyColumnsDirective {
|
|
|
4659
4663
|
constructor() {
|
|
4660
4664
|
this.#elementRef = inject(ElementRef);
|
|
4661
4665
|
this.#renderer = inject(Renderer2);
|
|
4662
|
-
this.shStickyColumns = input('start');
|
|
4666
|
+
this.shStickyColumns = input('start', ...(ngDevMode ? [{ debugName: "shStickyColumns" }] : []));
|
|
4663
4667
|
}
|
|
4664
4668
|
#elementRef;
|
|
4665
4669
|
#renderer;
|
|
@@ -4675,10 +4679,10 @@ class ShipStickyColumnsDirective {
|
|
|
4675
4679
|
this.#renderer.setStyle(nativeElement, 'grid-column', position === 'end' ? `-${columnSpanCount + 1} / -1` : `1 / ${columnSpanCount + 1}`);
|
|
4676
4680
|
}
|
|
4677
4681
|
}
|
|
4678
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4679
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
4682
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipStickyColumnsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4683
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.6", type: ShipStickyColumnsDirective, isStandalone: true, selector: "[shStickyColumns]", inputs: { shStickyColumns: { classPropertyName: "shStickyColumns", publicName: "shStickyColumns", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.sticky": "shStickyColumns() === \"start\"", "class.sticky-end": "shStickyColumns() === \"end\"" } }, ngImport: i0 }); }
|
|
4680
4684
|
}
|
|
4681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipStickyColumnsDirective, decorators: [{
|
|
4682
4686
|
type: Directive,
|
|
4683
4687
|
args: [{
|
|
4684
4688
|
selector: '[shStickyColumns]',
|
|
@@ -4693,22 +4697,22 @@ class ShipTableComponent {
|
|
|
4693
4697
|
constructor() {
|
|
4694
4698
|
this.#el = inject(ElementRef);
|
|
4695
4699
|
this.#shConfig = inject(SHIP_CONFIG, { optional: true });
|
|
4696
|
-
this.loading = input(false);
|
|
4697
|
-
this.data = input([]);
|
|
4700
|
+
this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
4701
|
+
this.data = input([], ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
4698
4702
|
this.dataChange = output();
|
|
4699
|
-
this.sortByColumn = model(null);
|
|
4703
|
+
this.sortByColumn = model(null, ...(ngDevMode ? [{ debugName: "sortByColumn" }] : []));
|
|
4700
4704
|
// thead = viewChild<ElementRef<HTMLTableSectionElement>>('thead');
|
|
4701
|
-
this.tbody = viewChild('tbody');
|
|
4705
|
+
this.tbody = viewChild('tbody', ...(ngDevMode ? [{ debugName: "tbody" }] : []));
|
|
4702
4706
|
this.columns = observeChildren(this.tbody, ['tr:first-child th']);
|
|
4703
|
-
this.class = signal(this.#shConfig?.tableType ?? 'default');
|
|
4704
|
-
this.resizing = signal(false);
|
|
4705
|
-
this.sizeTrigger = signal(true);
|
|
4707
|
+
this.class = signal(this.#shConfig?.tableType ?? 'default', ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
4708
|
+
this.resizing = signal(false, ...(ngDevMode ? [{ debugName: "resizing" }] : []));
|
|
4709
|
+
this.sizeTrigger = signal(true, ...(ngDevMode ? [{ debugName: "sizeTrigger" }] : []));
|
|
4706
4710
|
this.#initialData = null;
|
|
4707
|
-
this.#initialDataSet = signal(false);
|
|
4708
|
-
this.scrollXState = signal(-1);
|
|
4709
|
-
this.scrollYState = signal(-1);
|
|
4710
|
-
this.canScrollX = signal(false);
|
|
4711
|
-
this.canScrollY = signal(false);
|
|
4711
|
+
this.#initialDataSet = signal(false, ...(ngDevMode ? [{ debugName: "#initialDataSet" }] : []));
|
|
4712
|
+
this.scrollXState = signal(-1, ...(ngDevMode ? [{ debugName: "scrollXState" }] : []));
|
|
4713
|
+
this.scrollYState = signal(-1, ...(ngDevMode ? [{ debugName: "scrollYState" }] : []));
|
|
4714
|
+
this.canScrollX = signal(false, ...(ngDevMode ? [{ debugName: "canScrollX" }] : []));
|
|
4715
|
+
this.canScrollY = signal(false, ...(ngDevMode ? [{ debugName: "canScrollY" }] : []));
|
|
4712
4716
|
this.columnSizes = computed(() => {
|
|
4713
4717
|
this.sizeTrigger();
|
|
4714
4718
|
const colSignal = this.columns.signal();
|
|
@@ -4727,7 +4731,7 @@ class ShipTableComponent {
|
|
|
4727
4731
|
}
|
|
4728
4732
|
return `${acc} 1fr`;
|
|
4729
4733
|
}, '');
|
|
4730
|
-
});
|
|
4734
|
+
}, ...(ngDevMode ? [{ debugName: "columnSizes" }] : []));
|
|
4731
4735
|
this.e = effect(() => {
|
|
4732
4736
|
const sortByColumn = this.sortByColumn();
|
|
4733
4737
|
if (sortByColumn === null) {
|
|
@@ -4755,7 +4759,7 @@ class ShipTableComponent {
|
|
|
4755
4759
|
return isDescending ? -comparison : comparison;
|
|
4756
4760
|
});
|
|
4757
4761
|
this.dataChange.emit(sortedData);
|
|
4758
|
-
});
|
|
4762
|
+
}, ...(ngDevMode ? [{ debugName: "e" }] : []));
|
|
4759
4763
|
}
|
|
4760
4764
|
#el;
|
|
4761
4765
|
#shConfig;
|
|
@@ -4809,8 +4813,8 @@ class ShipTableComponent {
|
|
|
4809
4813
|
this.scrollYState.set(nextYState);
|
|
4810
4814
|
this.canScrollY.set(canScrollY);
|
|
4811
4815
|
}
|
|
4812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4813
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
4816
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4817
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipTableComponent, isStandalone: true, selector: "sh-table", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, sortByColumn: { classPropertyName: "sortByColumn", publicName: "sortByColumn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dataChange: "dataChange", sortByColumn: "sortByColumnChange" }, host: { listeners: { "scroll": "onScroll()", "window:resize": "onResize($event)" }, properties: { "class": "class()", "style.grid-template-columns": "columnSizes()", "class.resizing": "resizing()", "class.can-scroll-x": "canScrollX()", "class.can-scroll-y": "canScrollY()", "class.scrolled-x": "scrollXState() >= 0", "class.scrolled-x-end": "scrollXState() === 1", "class.scrolled-y": "scrollYState() >= 0", "class.scrolled-y-end": "scrollYState() === 1" } }, viewQueries: [{ propertyName: "tbody", first: true, predicate: ["tbody"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
4814
4818
|
@if (loading()) {
|
|
4815
4819
|
<sh-progress-bar class="indeterminate primary" />
|
|
4816
4820
|
}
|
|
@@ -4826,7 +4830,7 @@ class ShipTableComponent {
|
|
|
4826
4830
|
}
|
|
4827
4831
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipProgressBarComponent, selector: "sh-progress-bar", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4828
4832
|
}
|
|
4829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTableComponent, decorators: [{
|
|
4830
4834
|
type: Component,
|
|
4831
4835
|
args: [{
|
|
4832
4836
|
selector: 'sh-table',
|
|
@@ -4866,12 +4870,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
4866
4870
|
}] } });
|
|
4867
4871
|
|
|
4868
4872
|
class ShipTabsComponent {
|
|
4869
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4870
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4874
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipTabsComponent, isStandalone: true, selector: "sh-tabs", ngImport: i0, template: `
|
|
4871
4875
|
<ng-content />
|
|
4872
4876
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4873
4877
|
}
|
|
4874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTabsComponent, decorators: [{
|
|
4875
4879
|
type: Component,
|
|
4876
4880
|
args: [{
|
|
4877
4881
|
selector: 'sh-tabs',
|
|
@@ -4885,8 +4889,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
4885
4889
|
|
|
4886
4890
|
class ShipToggleCardComponent {
|
|
4887
4891
|
constructor() {
|
|
4888
|
-
this.isActive = model(false);
|
|
4889
|
-
this.disallowToggle = input(false);
|
|
4892
|
+
this.isActive = model(false, ...(ngDevMode ? [{ debugName: "isActive" }] : []));
|
|
4893
|
+
this.disallowToggle = input(false, ...(ngDevMode ? [{ debugName: "disallowToggle" }] : []));
|
|
4890
4894
|
}
|
|
4891
4895
|
ngOnInit() {
|
|
4892
4896
|
if (this.disallowToggle()) {
|
|
@@ -4896,8 +4900,8 @@ class ShipToggleCardComponent {
|
|
|
4896
4900
|
toggle() {
|
|
4897
4901
|
this.isActive.set(!this.isActive());
|
|
4898
4902
|
}
|
|
4899
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4900
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
4903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipToggleCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4904
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipToggleCardComponent, isStandalone: true, selector: "sh-toggle-card", inputs: { isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null }, disallowToggle: { classPropertyName: "disallowToggle", publicName: "disallowToggle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isActive: "isActiveChange" }, host: { properties: { "class.active": "isActive()" } }, ngImport: i0, template: `
|
|
4901
4905
|
<h3 (click)="disallowToggle() || toggle()">
|
|
4902
4906
|
<ng-content select="[title]">Title</ng-content>
|
|
4903
4907
|
|
|
@@ -4913,7 +4917,7 @@ class ShipToggleCardComponent {
|
|
|
4913
4917
|
</div>
|
|
4914
4918
|
`, isInline: true, dependencies: [{ kind: "component", type: ShipIconComponent, selector: "sh-icon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4915
4919
|
}
|
|
4916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipToggleCardComponent, decorators: [{
|
|
4917
4921
|
type: Component,
|
|
4918
4922
|
args: [{
|
|
4919
4923
|
selector: 'sh-toggle-card',
|
|
@@ -4941,8 +4945,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
4941
4945
|
}] });
|
|
4942
4946
|
|
|
4943
4947
|
class ShipToggleComponent {
|
|
4944
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4945
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
4948
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4949
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ShipToggleComponent, isStandalone: true, selector: "sh-toggle", ngImport: i0, template: `
|
|
4946
4950
|
<div class="box">
|
|
4947
4951
|
<div class="knob"></div>
|
|
4948
4952
|
</div>
|
|
@@ -4950,7 +4954,7 @@ class ShipToggleComponent {
|
|
|
4950
4954
|
<ng-content />
|
|
4951
4955
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4952
4956
|
}
|
|
4953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipToggleComponent, decorators: [{
|
|
4954
4958
|
type: Component,
|
|
4955
4959
|
args: [{
|
|
4956
4960
|
selector: 'sh-toggle',
|
|
@@ -4970,18 +4974,18 @@ class ShipTooltipComponent {
|
|
|
4970
4974
|
constructor() {
|
|
4971
4975
|
this.#BASE_SPACE = 4;
|
|
4972
4976
|
this.SUPPORTS_ANCHOR = CSS.supports('position-anchor', '--abc') && CSS.supports('anchor-name', '--abc');
|
|
4973
|
-
this.disabled = input(false);
|
|
4974
|
-
this.above = input(false);
|
|
4975
|
-
this.right = input(false);
|
|
4976
|
-
this._above = signal(this.above());
|
|
4977
|
-
this._right = signal(this.right());
|
|
4978
|
-
this.message = input.required();
|
|
4979
|
-
this.isOpen = model(false);
|
|
4977
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
4978
|
+
this.above = input(false, ...(ngDevMode ? [{ debugName: "above" }] : []));
|
|
4979
|
+
this.right = input(false, ...(ngDevMode ? [{ debugName: "right" }] : []));
|
|
4980
|
+
this._above = signal(this.above(), ...(ngDevMode ? [{ debugName: "_above" }] : []));
|
|
4981
|
+
this._right = signal(this.right(), ...(ngDevMode ? [{ debugName: "_right" }] : []));
|
|
4982
|
+
this.message = input.required(...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
4983
|
+
this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
4980
4984
|
this.closed = output();
|
|
4981
4985
|
this.triggerRef = viewChild.required('triggerRef');
|
|
4982
4986
|
this.tooltipRef = viewChild.required('tooltipRef');
|
|
4983
|
-
this.id = signal('--' + generateUniqueId());
|
|
4984
|
-
this.menuStyle = signal(null);
|
|
4987
|
+
this.id = signal('--' + generateUniqueId(), ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
4988
|
+
this.menuStyle = signal(null, ...(ngDevMode ? [{ debugName: "menuStyle" }] : []));
|
|
4985
4989
|
this.isCalculatingPosition = computed(() => {
|
|
4986
4990
|
const tooltipEl = this.tooltipRef()?.nativeElement;
|
|
4987
4991
|
const open = this.isOpen();
|
|
@@ -4995,7 +4999,7 @@ class ShipTooltipComponent {
|
|
|
4995
4999
|
this.closed.emit();
|
|
4996
5000
|
return false;
|
|
4997
5001
|
}
|
|
4998
|
-
});
|
|
5002
|
+
}, ...(ngDevMode ? [{ debugName: "isCalculatingPosition" }] : []));
|
|
4999
5003
|
this.abortController = null;
|
|
5000
5004
|
this.calcPositionEffect = effect(() => {
|
|
5001
5005
|
const isCalculatingPosition = this.isCalculatingPosition();
|
|
@@ -5010,7 +5014,7 @@ class ShipTooltipComponent {
|
|
|
5010
5014
|
const scrollableParent = this.#findScrollableParent(this.tooltipRef()?.nativeElement);
|
|
5011
5015
|
scrollableParent.addEventListener('scroll', () => this.calculateMenuPosition(), { signal });
|
|
5012
5016
|
document.addEventListener('resize', () => this.calculateMenuPosition(), { signal });
|
|
5013
|
-
});
|
|
5017
|
+
}, ...(ngDevMode ? [{ debugName: "calcPositionEffect" }] : []));
|
|
5014
5018
|
this.scrollableStyles = ['scroll', 'auto'];
|
|
5015
5019
|
}
|
|
5016
5020
|
#BASE_SPACE;
|
|
@@ -5078,8 +5082,8 @@ class ShipTooltipComponent {
|
|
|
5078
5082
|
});
|
|
5079
5083
|
}
|
|
5080
5084
|
}
|
|
5081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5082
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
5085
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5086
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.6", type: ShipTooltipComponent, isStandalone: true, selector: "sh-tooltip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, above: { classPropertyName: "above", publicName: "above", isSignal: true, isRequired: false, transformFunction: null }, right: { classPropertyName: "right", publicName: "right", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: true, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", closed: "closed" }, host: { properties: { "class.above": "_above()", "class.right": "_right()", "class.disabled": "disabled()" } }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["triggerRef"], descendants: true, isSignal: true }, { propertyName: "tooltipRef", first: true, predicate: ["tooltipRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
5083
5087
|
<div
|
|
5084
5088
|
class="trigger"
|
|
5085
5089
|
#triggerRef
|
|
@@ -5094,7 +5098,7 @@ class ShipTooltipComponent {
|
|
|
5094
5098
|
</div>
|
|
5095
5099
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5096
5100
|
}
|
|
5097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTooltipComponent, decorators: [{
|
|
5098
5102
|
type: Component,
|
|
5099
5103
|
args: [{
|
|
5100
5104
|
selector: 'sh-tooltip',
|
|
@@ -5128,14 +5132,14 @@ class ShipVirtualScrollComponent {
|
|
|
5128
5132
|
this.#renderer = inject(Renderer2);
|
|
5129
5133
|
this.#hostElement = inject(ElementRef);
|
|
5130
5134
|
this.viewportRef = viewChild.required('viewport');
|
|
5131
|
-
this.itemElements = viewChildren('item');
|
|
5132
|
-
this.bufferSize = signal(10);
|
|
5133
|
-
this.itemHeights = signal([]);
|
|
5134
|
-
this.startIndex = signal(0);
|
|
5135
|
-
this.endIndex = signal(0);
|
|
5136
|
-
this.translateY = signal(0);
|
|
5137
|
-
this.totalHeight = computed(() => this.itemHeights().reduce((sum, height) => sum + height, 0));
|
|
5138
|
-
this.numberOfRenderedItems = signal(0);
|
|
5135
|
+
this.itemElements = viewChildren('item', ...(ngDevMode ? [{ debugName: "itemElements" }] : []));
|
|
5136
|
+
this.bufferSize = signal(10, ...(ngDevMode ? [{ debugName: "bufferSize" }] : []));
|
|
5137
|
+
this.itemHeights = signal([], ...(ngDevMode ? [{ debugName: "itemHeights" }] : []));
|
|
5138
|
+
this.startIndex = signal(0, ...(ngDevMode ? [{ debugName: "startIndex" }] : []));
|
|
5139
|
+
this.endIndex = signal(0, ...(ngDevMode ? [{ debugName: "endIndex" }] : []));
|
|
5140
|
+
this.translateY = signal(0, ...(ngDevMode ? [{ debugName: "translateY" }] : []));
|
|
5141
|
+
this.totalHeight = computed(() => this.itemHeights().reduce((sum, height) => sum + height, 0), ...(ngDevMode ? [{ debugName: "totalHeight" }] : []));
|
|
5142
|
+
this.numberOfRenderedItems = signal(0, ...(ngDevMode ? [{ debugName: "numberOfRenderedItems" }] : []));
|
|
5139
5143
|
this.#resizeObserver = null;
|
|
5140
5144
|
this.#hostResizeObserver = null;
|
|
5141
5145
|
this.#itemHeightsEffect = effect(() => {
|
|
@@ -5149,11 +5153,11 @@ class ShipVirtualScrollComponent {
|
|
|
5149
5153
|
}
|
|
5150
5154
|
this.translateY.set(newTranslateY);
|
|
5151
5155
|
}
|
|
5152
|
-
});
|
|
5156
|
+
}, ...(ngDevMode ? [{ debugName: "#itemHeightsEffect" }] : []));
|
|
5153
5157
|
this.#totalHeightEffect = effect(() => {
|
|
5154
5158
|
const _ = this.totalHeight();
|
|
5155
5159
|
this.#changeRef.detectChanges();
|
|
5156
|
-
});
|
|
5160
|
+
}, ...(ngDevMode ? [{ debugName: "#totalHeightEffect" }] : []));
|
|
5157
5161
|
this.#itemElementsEffect = effect(() => {
|
|
5158
5162
|
const itemElements = this.itemElements();
|
|
5159
5163
|
if (this.#resizeObserver && itemElements) {
|
|
@@ -5168,7 +5172,7 @@ class ShipVirtualScrollComponent {
|
|
|
5168
5172
|
this.itemHeights.set(heights);
|
|
5169
5173
|
this.#calculateVisibleItems();
|
|
5170
5174
|
}
|
|
5171
|
-
});
|
|
5175
|
+
}, ...(ngDevMode ? [{ debugName: "#itemElementsEffect" }] : []));
|
|
5172
5176
|
}
|
|
5173
5177
|
#changeRef;
|
|
5174
5178
|
#renderer;
|
|
@@ -5262,8 +5266,8 @@ class ShipVirtualScrollComponent {
|
|
|
5262
5266
|
this.#cleanupResizeObserver();
|
|
5263
5267
|
this.#cleanupHostResizeObserver();
|
|
5264
5268
|
}
|
|
5265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5266
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
5269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipVirtualScrollComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5270
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.6", type: ShipVirtualScrollComponent, isStandalone: true, selector: "sh-virtual-scroll", viewQueries: [{ propertyName: "viewportRef", first: true, predicate: ["viewport"], descendants: true, isSignal: true }, { propertyName: "itemElements", predicate: ["item"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
5267
5271
|
<div class="viewport" #viewport (scroll)="onScroll()">
|
|
5268
5272
|
<div class="total-height" [style.height]="totalHeight() + 'px'"></div>
|
|
5269
5273
|
<div class="items-container" [style.transform]="'translateY(' + translateY() + 'px)'">
|
|
@@ -5272,7 +5276,7 @@ class ShipVirtualScrollComponent {
|
|
|
5272
5276
|
</div>
|
|
5273
5277
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5274
5278
|
}
|
|
5275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipVirtualScrollComponent, decorators: [{
|
|
5276
5280
|
type: Component,
|
|
5277
5281
|
args: [{
|
|
5278
5282
|
selector: 'sh-virtual-scroll',
|
|
@@ -5291,7 +5295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
5291
5295
|
|
|
5292
5296
|
class ShipFileDragDropDirective {
|
|
5293
5297
|
constructor() {
|
|
5294
|
-
this.filesOver = signal(false);
|
|
5298
|
+
this.filesOver = signal(false, ...(ngDevMode ? [{ debugName: "filesOver" }] : []));
|
|
5295
5299
|
this.filesDropped = output();
|
|
5296
5300
|
}
|
|
5297
5301
|
onDragOver(e) {
|
|
@@ -5313,10 +5317,10 @@ class ShipFileDragDropDirective {
|
|
|
5313
5317
|
this.filesDropped.emit(files);
|
|
5314
5318
|
}
|
|
5315
5319
|
}
|
|
5316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5317
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
5320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFileDragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5321
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.6", type: ShipFileDragDropDirective, isStandalone: true, selector: "[shDragDrop]", outputs: { filesDropped: "filesDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.filesover": "filesOver()" } }, ngImport: i0 }); }
|
|
5318
5322
|
}
|
|
5319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipFileDragDropDirective, decorators: [{
|
|
5320
5324
|
type: Directive,
|
|
5321
5325
|
args: [{
|
|
5322
5326
|
selector: '[shDragDrop]',
|
|
@@ -5340,10 +5344,10 @@ class ShipPreventWheelDirective {
|
|
|
5340
5344
|
wheel(event) {
|
|
5341
5345
|
event.preventDefault();
|
|
5342
5346
|
}
|
|
5343
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5344
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
5347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipPreventWheelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5348
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.6", type: ShipPreventWheelDirective, isStandalone: true, selector: "[shPreventWheel]", host: { listeners: { "wheel": "wheel($event)" } }, ngImport: i0 }); }
|
|
5345
5349
|
}
|
|
5346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipPreventWheelDirective, decorators: [{
|
|
5347
5351
|
type: Directive,
|
|
5348
5352
|
args: [{
|
|
5349
5353
|
selector: '[shPreventWheel]',
|
|
@@ -5359,15 +5363,15 @@ class ShipTooltipWrapper {
|
|
|
5359
5363
|
#renderer;
|
|
5360
5364
|
#positionAbort;
|
|
5361
5365
|
constructor() {
|
|
5362
|
-
this.positionAnchorName = input.required();
|
|
5363
|
-
this.anchorEl = input.required();
|
|
5364
|
-
this.isOpen = input(false);
|
|
5366
|
+
this.positionAnchorName = input.required(...(ngDevMode ? [{ debugName: "positionAnchorName" }] : []));
|
|
5367
|
+
this.anchorEl = input.required(...(ngDevMode ? [{ debugName: "anchorEl" }] : []));
|
|
5368
|
+
this.isOpen = input(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
5365
5369
|
this.#selfRef = inject((ElementRef));
|
|
5366
5370
|
this.#renderer = inject(Renderer2);
|
|
5367
5371
|
this.#positionAbort = null;
|
|
5368
5372
|
// readonly BASE_SPACE = 8;
|
|
5369
5373
|
this.SUPPORTS_ANCHOR = typeof CSS !== 'undefined' && CSS.supports('position-anchor', '--abc');
|
|
5370
|
-
this.isBelow = signal(false);
|
|
5374
|
+
this.isBelow = signal(false, ...(ngDevMode ? [{ debugName: "isBelow" }] : []));
|
|
5371
5375
|
this.openEffect = effect(() => {
|
|
5372
5376
|
if (this.isOpen()) {
|
|
5373
5377
|
setTimeout(() => {
|
|
@@ -5378,7 +5382,7 @@ class ShipTooltipWrapper {
|
|
|
5378
5382
|
else {
|
|
5379
5383
|
this.#selfRef.nativeElement.hidePopover();
|
|
5380
5384
|
}
|
|
5381
|
-
});
|
|
5385
|
+
}, ...(ngDevMode ? [{ debugName: "openEffect" }] : []));
|
|
5382
5386
|
this.calculateTooltipPosition = () => {
|
|
5383
5387
|
if (!this.anchorEl())
|
|
5384
5388
|
return;
|
|
@@ -5417,14 +5421,14 @@ class ShipTooltipWrapper {
|
|
|
5417
5421
|
ngOnDestroy() {
|
|
5418
5422
|
this.#positionAbort?.abort();
|
|
5419
5423
|
}
|
|
5420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5421
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
5424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTooltipWrapper, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5425
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.6", type: ShipTooltipWrapper, isStandalone: true, selector: "ship-tooltip-wrapper", inputs: { positionAnchorName: { classPropertyName: "positionAnchorName", publicName: "positionAnchorName", isSignal: true, isRequired: true, transformFunction: null }, anchorEl: { classPropertyName: "anchorEl", publicName: "anchorEl", isSignal: true, isRequired: true, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tooltip" }, properties: { "attr.popover": "\"auto\"", "style.position-anchor": "positionAnchorName()", "class.below": "isBelow()" } }, ngImport: i0, template: `
|
|
5422
5426
|
<div class="tooltip-content">
|
|
5423
5427
|
<ng-content></ng-content>
|
|
5424
5428
|
</div>
|
|
5425
5429
|
`, isInline: true }); }
|
|
5426
5430
|
}
|
|
5427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTooltipWrapper, decorators: [{
|
|
5428
5432
|
type: Component,
|
|
5429
5433
|
args: [{
|
|
5430
5434
|
selector: 'ship-tooltip-wrapper',
|
|
@@ -5444,7 +5448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
|
|
|
5444
5448
|
}], ctorParameters: () => [] });
|
|
5445
5449
|
class ShipTooltipDirective {
|
|
5446
5450
|
constructor() {
|
|
5447
|
-
this.shTooltip = input.required();
|
|
5451
|
+
this.shTooltip = input.required(...(ngDevMode ? [{ debugName: "shTooltip" }] : []));
|
|
5448
5452
|
this.#elementRef = inject((ElementRef));
|
|
5449
5453
|
this.#viewContainerRef = inject(ViewContainerRef);
|
|
5450
5454
|
this.#environmentInjector = inject(EnvironmentInjector);
|
|
@@ -5452,7 +5456,7 @@ class ShipTooltipDirective {
|
|
|
5452
5456
|
this.#wrapperComponentRef = null;
|
|
5453
5457
|
this.#projectedViewRef = null;
|
|
5454
5458
|
this.anchorName = `--${generateUniqueId()}`;
|
|
5455
|
-
this.isOpen = signal(false);
|
|
5459
|
+
this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
5456
5460
|
}
|
|
5457
5461
|
#elementRef;
|
|
5458
5462
|
#viewContainerRef;
|
|
@@ -5504,10 +5508,10 @@ class ShipTooltipDirective {
|
|
|
5504
5508
|
this.#projectedViewRef = null;
|
|
5505
5509
|
}
|
|
5506
5510
|
}
|
|
5507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5508
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
5511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5512
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.6", type: ShipTooltipDirective, isStandalone: true, selector: "[shTooltip]", inputs: { shTooltip: { classPropertyName: "shTooltip", publicName: "shTooltip", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter()" }, properties: { "style.anchor-name": "anchorName", "class.active": "isOpen()" }, classAttribute: "tooltip" }, ngImport: i0 }); }
|
|
5509
5513
|
}
|
|
5510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipTooltipDirective, decorators: [{
|
|
5511
5515
|
type: Directive,
|
|
5512
5516
|
args: [{
|
|
5513
5517
|
selector: '[shTooltip]',
|