@logosphere-ui/angular 1.0.0-beta.1 → 1.0.0-beta.3
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/logosphere-ui-angular-src-lib-accordion.mjs +8 -8
- package/fesm2022/logosphere-ui-angular-src-lib-accordion.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-badge.mjs +10 -10
- package/fesm2022/logosphere-ui-angular-src-lib-badge.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-breadcrumb.mjs +5 -13
- package/fesm2022/logosphere-ui-angular-src-lib-breadcrumb.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-button.mjs +12 -12
- package/fesm2022/logosphere-ui-angular-src-lib-button.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-calendar.mjs +38 -23
- package/fesm2022/logosphere-ui-angular-src-lib-calendar.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-card.mjs +8 -8
- package/fesm2022/logosphere-ui-angular-src-lib-card.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-chatbot.mjs +15 -23
- package/fesm2022/logosphere-ui-angular-src-lib-chatbot.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-checkbox.mjs +10 -10
- package/fesm2022/logosphere-ui-angular-src-lib-checkbox.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-chip-group.mjs +4 -4
- package/fesm2022/logosphere-ui-angular-src-lib-chip-group.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-collapse.mjs +12 -12
- package/fesm2022/logosphere-ui-angular-src-lib-collapse.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-combobox.mjs +58 -39
- package/fesm2022/logosphere-ui-angular-src-lib-combobox.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-datepicker.mjs +41 -26
- package/fesm2022/logosphere-ui-angular-src-lib-datepicker.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-drawer.mjs +10 -10
- package/fesm2022/logosphere-ui-angular-src-lib-drawer.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-formfield.mjs +41 -27
- package/fesm2022/logosphere-ui-angular-src-lib-formfield.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-input.mjs +50 -34
- package/fesm2022/logosphere-ui-angular-src-lib-input.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-left-menu.mjs +31 -8
- package/fesm2022/logosphere-ui-angular-src-lib-left-menu.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-loading.mjs +2 -2
- package/fesm2022/logosphere-ui-angular-src-lib-loading.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-modal.mjs +39 -9
- package/fesm2022/logosphere-ui-angular-src-lib-modal.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-note.mjs +10 -10
- package/fesm2022/logosphere-ui-angular-src-lib-note.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-pagination.mjs +25 -33
- package/fesm2022/logosphere-ui-angular-src-lib-pagination.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-popover.mjs +21 -12
- package/fesm2022/logosphere-ui-angular-src-lib-popover.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-slider.mjs +24 -24
- package/fesm2022/logosphere-ui-angular-src-lib-slider.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-split-button.mjs +10 -10
- package/fesm2022/logosphere-ui-angular-src-lib-split-button.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-stepper.mjs +6 -6
- package/fesm2022/logosphere-ui-angular-src-lib-stepper.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-switch.mjs +15 -8
- package/fesm2022/logosphere-ui-angular-src-lib-switch.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-tab.mjs +9 -17
- package/fesm2022/logosphere-ui-angular-src-lib-tab.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-table.mjs +36 -25
- package/fesm2022/logosphere-ui-angular-src-lib-table.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-textarea.mjs +55 -34
- package/fesm2022/logosphere-ui-angular-src-lib-textarea.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-timepicker.mjs +29 -22
- package/fesm2022/logosphere-ui-angular-src-lib-timepicker.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-toast.mjs +41 -18
- package/fesm2022/logosphere-ui-angular-src-lib-toast.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-tree-menu.mjs +14 -18
- package/fesm2022/logosphere-ui-angular-src-lib-tree-menu.mjs.map +1 -1
- package/fesm2022/logosphere-ui-angular-src-lib-uploader.mjs +96 -0
- package/fesm2022/logosphere-ui-angular-src-lib-uploader.mjs.map +1 -0
- package/fesm2022/logosphere-ui-angular.mjs +767 -506
- package/fesm2022/logosphere-ui-angular.mjs.map +1 -1
- package/package.json +6 -2
- package/types/logosphere-ui-angular-src-lib-breadcrumb.d.ts +0 -2
- package/types/logosphere-ui-angular-src-lib-calendar.d.ts +6 -3
- package/types/logosphere-ui-angular-src-lib-chatbot.d.ts +0 -2
- package/types/logosphere-ui-angular-src-lib-combobox.d.ts +5 -1
- package/types/logosphere-ui-angular-src-lib-datepicker.d.ts +6 -3
- package/types/logosphere-ui-angular-src-lib-formfield.d.ts +9 -1
- package/types/logosphere-ui-angular-src-lib-input.d.ts +8 -1
- package/types/logosphere-ui-angular-src-lib-left-menu.d.ts +39 -1
- package/types/logosphere-ui-angular-src-lib-modal.d.ts +13 -1
- package/types/logosphere-ui-angular-src-lib-pagination.d.ts +0 -2
- package/types/logosphere-ui-angular-src-lib-popover.d.ts +4 -1
- package/types/logosphere-ui-angular-src-lib-switch.d.ts +3 -1
- package/types/logosphere-ui-angular-src-lib-tab.d.ts +0 -2
- package/types/logosphere-ui-angular-src-lib-table.d.ts +2 -0
- package/types/logosphere-ui-angular-src-lib-textarea.d.ts +13 -1
- package/types/logosphere-ui-angular-src-lib-timepicker.d.ts +5 -1
- package/types/logosphere-ui-angular-src-lib-toast.d.ts +29 -5
- package/types/logosphere-ui-angular-src-lib-tree-menu.d.ts +16 -7
- package/types/logosphere-ui-angular-src-lib-uploader.d.ts +54 -0
- package/types/logosphere-ui-angular.d.ts +206 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
2
|
+
import { input, output, CUSTOM_ELEMENTS_SCHEMA, Component, ViewChild } from '@angular/core';
|
|
3
3
|
import '@logosphere-ui/core/toast';
|
|
4
4
|
|
|
5
5
|
class LogosphereToast {
|
|
@@ -10,21 +10,27 @@ class LogosphereToast {
|
|
|
10
10
|
closeable = input(true, ...(ngDevMode ? [{ debugName: "closeable" }] : []));
|
|
11
11
|
duration = input(5000, ...(ngDevMode ? [{ debugName: "duration" }] : []));
|
|
12
12
|
autoDismiss = input(true, ...(ngDevMode ? [{ debugName: "autoDismiss" }] : []));
|
|
13
|
+
action = input(undefined, ...(ngDevMode ? [{ debugName: "action" }] : []));
|
|
14
|
+
toastClose = output();
|
|
15
|
+
/** @deprecated `toastClose` kullanın — aynı anda yayınlanır. */
|
|
13
16
|
dismiss = output();
|
|
14
|
-
|
|
17
|
+
onToastClose(event) {
|
|
18
|
+
const e = event;
|
|
19
|
+
this.toastClose.emit(e.detail);
|
|
15
20
|
this.dismiss.emit();
|
|
16
21
|
}
|
|
17
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereToast, isStandalone: true, selector: "lgs-toast", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, toastTitle: { classPropertyName: "toastTitle", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, autoDismiss: { classPropertyName: "autoDismiss", publicName: "autoDismiss", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismiss: "dismiss" }, ngImport: i0, template: `
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereToast, isStandalone: true, selector: "lgs-toast", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, toastTitle: { classPropertyName: "toastTitle", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, autoDismiss: { classPropertyName: "autoDismiss", publicName: "autoDismiss", isSignal: true, isRequired: false, transformFunction: null }, action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toastClose: "toastClose", dismiss: "dismiss" }, ngImport: i0, template: `
|
|
19
24
|
<logosphere-toast
|
|
20
|
-
[type]="type()"
|
|
21
|
-
[title]="toastTitle()"
|
|
22
|
-
[text]="text()"
|
|
23
|
-
[icon]="icon()"
|
|
25
|
+
[attr.type]="type()"
|
|
26
|
+
[attr.toast-title]="toastTitle()"
|
|
27
|
+
[attr.text]="text()"
|
|
28
|
+
[attr.icon]="icon()"
|
|
24
29
|
[closeable]="closeable()"
|
|
25
|
-
[duration]="duration()"
|
|
30
|
+
[attr.duration]="duration()"
|
|
26
31
|
[autoDismiss]="autoDismiss()"
|
|
27
|
-
|
|
32
|
+
[action]="action()"
|
|
33
|
+
(toast-close)="onToastClose($event)"
|
|
28
34
|
></logosphere-toast>
|
|
29
35
|
`, isInline: true });
|
|
30
36
|
}
|
|
@@ -35,22 +41,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImpor
|
|
|
35
41
|
imports: [],
|
|
36
42
|
template: `
|
|
37
43
|
<logosphere-toast
|
|
38
|
-
[type]="type()"
|
|
39
|
-
[title]="toastTitle()"
|
|
40
|
-
[text]="text()"
|
|
41
|
-
[icon]="icon()"
|
|
44
|
+
[attr.type]="type()"
|
|
45
|
+
[attr.toast-title]="toastTitle()"
|
|
46
|
+
[attr.text]="text()"
|
|
47
|
+
[attr.icon]="icon()"
|
|
42
48
|
[closeable]="closeable()"
|
|
43
|
-
[duration]="duration()"
|
|
49
|
+
[attr.duration]="duration()"
|
|
44
50
|
[autoDismiss]="autoDismiss()"
|
|
45
|
-
|
|
51
|
+
[action]="action()"
|
|
52
|
+
(toast-close)="onToastClose($event)"
|
|
46
53
|
></logosphere-toast>
|
|
47
54
|
`,
|
|
48
55
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
49
56
|
}]
|
|
50
|
-
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], toastTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], autoDismiss: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDismiss", required: false }] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }] } });
|
|
57
|
+
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], toastTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], autoDismiss: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDismiss", required: false }] }], action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], toastClose: [{ type: i0.Output, args: ["toastClose"] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }] } });
|
|
51
58
|
class LogosphereToastContainer {
|
|
59
|
+
el;
|
|
60
|
+
get host() {
|
|
61
|
+
return this.el.nativeElement;
|
|
62
|
+
}
|
|
63
|
+
show(options) {
|
|
64
|
+
return this.host.show(options);
|
|
65
|
+
}
|
|
66
|
+
close(id) {
|
|
67
|
+
this.host.close(id);
|
|
68
|
+
}
|
|
69
|
+
clear() {
|
|
70
|
+
this.host.clear();
|
|
71
|
+
}
|
|
52
72
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereToastContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.7", type: LogosphereToastContainer, isStandalone: true, selector: "lgs-toast-container", ngImport: i0, template: `
|
|
73
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.7", type: LogosphereToastContainer, isStandalone: true, selector: "lgs-toast-container", viewQueries: [{ propertyName: "el", first: true, predicate: ["el"], descendants: true, static: true }], ngImport: i0, template: `
|
|
54
74
|
<logosphere-toast-container #el></logosphere-toast-container>
|
|
55
75
|
`, isInline: true });
|
|
56
76
|
}
|
|
@@ -64,7 +84,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImpor
|
|
|
64
84
|
`,
|
|
65
85
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
66
86
|
}]
|
|
67
|
-
}]
|
|
87
|
+
}], propDecorators: { el: [{
|
|
88
|
+
type: ViewChild,
|
|
89
|
+
args: ['el', { static: true }]
|
|
90
|
+
}] } });
|
|
68
91
|
|
|
69
92
|
/**
|
|
70
93
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logosphere-ui-angular-src-lib-toast.mjs","sources":["../../projects/wrapper/src/lib/toast/toast.ts","../../projects/wrapper/src/lib/toast/logosphere-ui-angular-src-lib-toast.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA, input, output} from '@angular/core';\nimport '@logosphere-ui/core/toast';\n\nexport type ToastType = 'success' | 'danger' | 'warning' | 'info';\n\nexport type ToastActionConfig = {\n
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular-src-lib-toast.mjs","sources":["../../projects/wrapper/src/lib/toast/toast.ts","../../projects/wrapper/src/lib/toast/logosphere-ui-angular-src-lib-toast.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA, ElementRef, input, output, ViewChild} from '@angular/core';\nimport '@logosphere-ui/core/toast';\n\nexport type ToastType = 'success' | 'danger' | 'warning' | 'info';\n\nexport type ToastActionConfig = {\n okayLabel?: string;\n cancelLabel?: string;\n onOkay?: () => void;\n onCancel?: () => void;\n closeOnAction?: boolean;\n};\n\nexport type ToastOptions = {\n id?: string;\n type?: ToastType;\n title?: string;\n text: string;\n icon?: string;\n closeable?: boolean;\n autoDismiss?: boolean;\n duration?: number;\n action?: ToastActionConfig;\n};\n\n@Component({\n selector: 'lgs-toast',\n imports: [],\n template: `\n <logosphere-toast\n [attr.type]=\"type()\"\n [attr.toast-title]=\"toastTitle()\"\n [attr.text]=\"text()\"\n [attr.icon]=\"icon()\"\n [closeable]=\"closeable()\"\n [attr.duration]=\"duration()\"\n [autoDismiss]=\"autoDismiss()\"\n [action]=\"action()\"\n (toast-close)=\"onToastClose($event)\"\n ></logosphere-toast>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereToast {\n type = input<ToastType>('info');\n toastTitle = input<string>('', { alias: 'title' });\n text = input<string>('');\n icon = input<string>('');\n closeable = input<boolean>(true);\n duration = input<number>(5000);\n autoDismiss = input<boolean>(true);\n action = input<ToastActionConfig | undefined>(undefined);\n\n toastClose = output<{ reason: 'manual' | 'auto' }>();\n /** @deprecated `toastClose` kullanın — aynı anda yayınlanır. */\n dismiss = output<void>();\n\n onToastClose(event: Event) {\n const e = event as CustomEvent<{ reason: 'manual' | 'auto' }>;\n this.toastClose.emit(e.detail);\n this.dismiss.emit();\n }\n}\n\n@Component({\n selector: 'lgs-toast-container',\n imports: [],\n template: `\n <logosphere-toast-container #el></logosphere-toast-container>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereToastContainer {\n @ViewChild('el', { static: true }) private el!: ElementRef<HTMLElement>;\n\n private get host() {\n return this.el.nativeElement as HTMLElement & {\n show(options: ToastOptions): string;\n close(id: string): void;\n clear(): void;\n };\n }\n\n show(options: ToastOptions): string {\n return this.host.show(options);\n }\n\n close(id: string) {\n this.host.close(id);\n }\n\n clear() {\n this.host.clear();\n }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MA2Ca,eAAe,CAAA;AAC1B,IAAA,IAAI,GAAG,KAAK,CAAY,MA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AO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;sBAEE,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;ACzEnC;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output,
|
|
2
|
+
import { input, output, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
3
|
import '@logosphere-ui/core/tree-menu';
|
|
4
4
|
|
|
5
5
|
class LogosphereTreeMenu {
|
|
@@ -8,16 +8,11 @@ class LogosphereTreeMenu {
|
|
|
8
8
|
expandOnLabelClick = input(true, ...(ngDevMode ? [{ debugName: "expandOnLabelClick" }] : []));
|
|
9
9
|
chevronPosition = input('left', ...(ngDevMode ? [{ debugName: "chevronPosition" }] : []));
|
|
10
10
|
showLabels = input(true, ...(ngDevMode ? [{ debugName: "showLabels" }] : []));
|
|
11
|
+
leading = input(true, ...(ngDevMode ? [{ debugName: "leading" }] : []));
|
|
11
12
|
iconSize = input(16, ...(ngDevMode ? [{ debugName: "iconSize" }] : []));
|
|
12
13
|
toggle = output();
|
|
13
14
|
itemClick = output();
|
|
14
15
|
nodeClick = output();
|
|
15
|
-
set elRef(element) {
|
|
16
|
-
if (element) {
|
|
17
|
-
element.nativeElement.items = this.items();
|
|
18
|
-
element.nativeElement.expandedIds = this.expandedIds();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
16
|
onToggle(event) {
|
|
22
17
|
const e = event;
|
|
23
18
|
this.toggle.emit(e.detail);
|
|
@@ -31,13 +26,15 @@ class LogosphereTreeMenu {
|
|
|
31
26
|
this.nodeClick.emit(e.detail);
|
|
32
27
|
}
|
|
33
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereTreeMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereTreeMenu, isStandalone: true, selector: "lgs-tree-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, expandOnLabelClick: { classPropertyName: "expandOnLabelClick", publicName: "expandOnLabelClick", isSignal: true, isRequired: false, transformFunction: null }, chevronPosition: { classPropertyName: "chevronPosition", publicName: "chevronPosition", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null },
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereTreeMenu, isStandalone: true, selector: "lgs-tree-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, expandOnLabelClick: { classPropertyName: "expandOnLabelClick", publicName: "expandOnLabelClick", isSignal: true, isRequired: false, transformFunction: null }, chevronPosition: { classPropertyName: "chevronPosition", publicName: "chevronPosition", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, leading: { classPropertyName: "leading", publicName: "leading", isSignal: true, isRequired: false, transformFunction: null }, iconSize: { classPropertyName: "iconSize", publicName: "iconSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle", itemClick: "itemClick", nodeClick: "nodeClick" }, ngImport: i0, template: `
|
|
35
30
|
<logosphere-tree-menu
|
|
36
|
-
|
|
31
|
+
[items]="items()"
|
|
32
|
+
[expandedIds]="expandedIds()"
|
|
37
33
|
[expandOnLabelClick]="expandOnLabelClick()"
|
|
38
|
-
[
|
|
34
|
+
[attr.chevronposition]="chevronPosition()"
|
|
39
35
|
[showLabels]="showLabels()"
|
|
40
|
-
[
|
|
36
|
+
[leading]="leading()"
|
|
37
|
+
[attr.iconsize]="iconSize()"
|
|
41
38
|
(toggle)="onToggle($event)"
|
|
42
39
|
(item-click)="onItemClick($event)"
|
|
43
40
|
(node-click)="onNodeClick($event)"
|
|
@@ -51,11 +48,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImpor
|
|
|
51
48
|
imports: [],
|
|
52
49
|
template: `
|
|
53
50
|
<logosphere-tree-menu
|
|
54
|
-
|
|
51
|
+
[items]="items()"
|
|
52
|
+
[expandedIds]="expandedIds()"
|
|
55
53
|
[expandOnLabelClick]="expandOnLabelClick()"
|
|
56
|
-
[
|
|
54
|
+
[attr.chevronposition]="chevronPosition()"
|
|
57
55
|
[showLabels]="showLabels()"
|
|
58
|
-
[
|
|
56
|
+
[leading]="leading()"
|
|
57
|
+
[attr.iconsize]="iconSize()"
|
|
59
58
|
(toggle)="onToggle($event)"
|
|
60
59
|
(item-click)="onItemClick($event)"
|
|
61
60
|
(node-click)="onNodeClick($event)"
|
|
@@ -63,10 +62,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImpor
|
|
|
63
62
|
`,
|
|
64
63
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
65
64
|
}]
|
|
66
|
-
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }], expandOnLabelClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandOnLabelClick", required: false }] }], chevronPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "chevronPosition", required: false }] }], showLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabels", required: false }] }], iconSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSize", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], nodeClick: [{ type: i0.Output, args: ["nodeClick"] }]
|
|
67
|
-
type: ViewChild,
|
|
68
|
-
args: ['el', { static: false }]
|
|
69
|
-
}] } });
|
|
65
|
+
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }], expandOnLabelClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandOnLabelClick", required: false }] }], chevronPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "chevronPosition", required: false }] }], showLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabels", required: false }] }], leading: [{ type: i0.Input, args: [{ isSignal: true, alias: "leading", required: false }] }], iconSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSize", required: false }] }], toggle: [{ type: i0.Output, args: ["toggle"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], nodeClick: [{ type: i0.Output, args: ["nodeClick"] }] } });
|
|
70
66
|
|
|
71
67
|
/**
|
|
72
68
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logosphere-ui-angular-src-lib-tree-menu.mjs","sources":["../../projects/wrapper/src/lib/tree-menu/tree-menu.ts","../../projects/wrapper/src/lib/tree-menu/logosphere-ui-angular-src-lib-tree-menu.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA,
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular-src-lib-tree-menu.mjs","sources":["../../projects/wrapper/src/lib/tree-menu/tree-menu.ts","../../projects/wrapper/src/lib/tree-menu/logosphere-ui-angular-src-lib-tree-menu.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA, input, output} from '@angular/core';\nimport '@logosphere-ui/core/tree-menu';\n\nexport interface TreeMenuBadge {\n text: string;\n variant?: string;\n size?: string;\n isRound?: boolean;\n}\n\nexport interface TreeMenuItem {\n id: string;\n label: string;\n disabled?: boolean;\n active?: boolean;\n iconName?: string;\n badges?: TreeMenuBadge[];\n children?: TreeMenuItem[];\n onClick?: (item: TreeMenuItem) => void;\n data?: unknown;\n}\n\n@Component({\n selector: 'lgs-tree-menu',\n imports: [],\n template: `\n <logosphere-tree-menu\n [items]=\"items()\"\n [expandedIds]=\"expandedIds()\"\n [expandOnLabelClick]=\"expandOnLabelClick()\"\n [attr.chevronposition]=\"chevronPosition()\"\n [showLabels]=\"showLabels()\"\n [leading]=\"leading()\"\n [attr.iconsize]=\"iconSize()\"\n (toggle)=\"onToggle($event)\"\n (item-click)=\"onItemClick($event)\"\n (node-click)=\"onNodeClick($event)\"\n ></logosphere-tree-menu>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereTreeMenu {\n items = input<TreeMenuItem[]>([]);\n expandedIds = input<string[]>([]);\n expandOnLabelClick = input<boolean>(true);\n chevronPosition = input<'left' | 'right'>('left');\n showLabels = input<boolean>(true);\n leading = input<boolean>(true);\n iconSize = input<number>(16);\n\n toggle = output<{ item: TreeMenuItem; expanded: boolean }>();\n itemClick = output<{ item: TreeMenuItem }>();\n nodeClick = output<{ item: TreeMenuItem; hasChildren: boolean }>();\n\n onToggle(event: Event) {\n const e = event as CustomEvent<{ item: TreeMenuItem; expanded: boolean }>;\n this.toggle.emit(e.detail);\n }\n\n onItemClick(event: Event) {\n const e = event as CustomEvent<{ item: TreeMenuItem }>;\n this.itemClick.emit(e.detail);\n }\n\n onNodeClick(event: Event) {\n const e = event as CustomEvent<{ item: TreeMenuItem; hasChildren: boolean }>;\n this.nodeClick.emit(e.detail);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAyCa,kBAAkB,CAAA;AAC7B,IAAA,KAAK,GAAG,KAAK,CAAiB,EAAE,iDAAC;AACjC,IAAA,WAAW,GAAG,KAAK,CAA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AAA,OAAO,EAAE,EAAE;AACX,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;AAaT,EAAA,CAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;;ACxCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
|
+
import '@logosphere-ui/core/uploader';
|
|
4
|
+
|
|
5
|
+
class LogosphereUploader {
|
|
6
|
+
files = input([], ...(ngDevMode ? [{ debugName: "files" }] : []));
|
|
7
|
+
accept = input('', ...(ngDevMode ? [{ debugName: "accept" }] : []));
|
|
8
|
+
multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
9
|
+
maxSize = input(0, ...(ngDevMode ? [{ debugName: "maxSize" }] : []));
|
|
10
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
11
|
+
size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
12
|
+
selectable = input(false, ...(ngDevMode ? [{ debugName: "selectable" }] : []));
|
|
13
|
+
hideDropArea = input(false, ...(ngDevMode ? [{ debugName: "hideDropArea" }] : []));
|
|
14
|
+
label = input('Yüklemek için tıklayın', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
15
|
+
labelSuffix = input('veya bu alana sürükleyin', ...(ngDevMode ? [{ debugName: "labelSuffix" }] : []));
|
|
16
|
+
helper = input('', ...(ngDevMode ? [{ debugName: "helper" }] : []));
|
|
17
|
+
error = input('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
18
|
+
filesAdded = output();
|
|
19
|
+
fileRemove = output();
|
|
20
|
+
fileRetry = output();
|
|
21
|
+
fileCancel = output();
|
|
22
|
+
fileSelect = output();
|
|
23
|
+
onFilesAdded(event) {
|
|
24
|
+
this.filesAdded.emit(event.detail);
|
|
25
|
+
}
|
|
26
|
+
onFileRemove(event) {
|
|
27
|
+
this.fileRemove.emit(event.detail);
|
|
28
|
+
}
|
|
29
|
+
onFileRetry(event) {
|
|
30
|
+
this.fileRetry.emit(event.detail);
|
|
31
|
+
}
|
|
32
|
+
onFileCancel(event) {
|
|
33
|
+
this.fileCancel.emit(event.detail);
|
|
34
|
+
}
|
|
35
|
+
onFileSelect(event) {
|
|
36
|
+
this.fileSelect.emit(event.detail);
|
|
37
|
+
}
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereUploader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereUploader, isStandalone: true, selector: "lgs-uploader", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, hideDropArea: { classPropertyName: "hideDropArea", publicName: "hideDropArea", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelSuffix: { classPropertyName: "labelSuffix", publicName: "labelSuffix", isSignal: true, isRequired: false, transformFunction: null }, helper: { classPropertyName: "helper", publicName: "helper", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filesAdded: "filesAdded", fileRemove: "fileRemove", fileRetry: "fileRetry", fileCancel: "fileCancel", fileSelect: "fileSelect" }, ngImport: i0, template: `
|
|
40
|
+
<logosphere-uploader
|
|
41
|
+
[files]="files()"
|
|
42
|
+
[attr.accept]="accept()"
|
|
43
|
+
[attr.multiple]="multiple() ? '' : null"
|
|
44
|
+
[attr.max-size]="maxSize()"
|
|
45
|
+
[attr.disabled]="disabled() ? '' : null"
|
|
46
|
+
[attr.size]="size()"
|
|
47
|
+
[attr.selectable]="selectable() ? '' : null"
|
|
48
|
+
[attr.hide-drop-area]="hideDropArea() ? '' : null"
|
|
49
|
+
[attr.label]="label()"
|
|
50
|
+
[attr.label-suffix]="labelSuffix()"
|
|
51
|
+
[attr.helper]="helper()"
|
|
52
|
+
[attr.error]="error()"
|
|
53
|
+
(files-added)="onFilesAdded($event)"
|
|
54
|
+
(file-remove)="onFileRemove($event)"
|
|
55
|
+
(file-retry)="onFileRetry($event)"
|
|
56
|
+
(file-cancel)="onFileCancel($event)"
|
|
57
|
+
(file-select)="onFileSelect($event)"
|
|
58
|
+
></logosphere-uploader>
|
|
59
|
+
`, isInline: true });
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereUploader, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{
|
|
64
|
+
selector: 'lgs-uploader',
|
|
65
|
+
imports: [],
|
|
66
|
+
template: `
|
|
67
|
+
<logosphere-uploader
|
|
68
|
+
[files]="files()"
|
|
69
|
+
[attr.accept]="accept()"
|
|
70
|
+
[attr.multiple]="multiple() ? '' : null"
|
|
71
|
+
[attr.max-size]="maxSize()"
|
|
72
|
+
[attr.disabled]="disabled() ? '' : null"
|
|
73
|
+
[attr.size]="size()"
|
|
74
|
+
[attr.selectable]="selectable() ? '' : null"
|
|
75
|
+
[attr.hide-drop-area]="hideDropArea() ? '' : null"
|
|
76
|
+
[attr.label]="label()"
|
|
77
|
+
[attr.label-suffix]="labelSuffix()"
|
|
78
|
+
[attr.helper]="helper()"
|
|
79
|
+
[attr.error]="error()"
|
|
80
|
+
(files-added)="onFilesAdded($event)"
|
|
81
|
+
(file-remove)="onFileRemove($event)"
|
|
82
|
+
(file-retry)="onFileRetry($event)"
|
|
83
|
+
(file-cancel)="onFileCancel($event)"
|
|
84
|
+
(file-select)="onFileSelect($event)"
|
|
85
|
+
></logosphere-uploader>
|
|
86
|
+
`,
|
|
87
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
88
|
+
}]
|
|
89
|
+
}], propDecorators: { files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], maxSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSize", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], hideDropArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideDropArea", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelSuffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelSuffix", required: false }] }], helper: [{ type: i0.Input, args: [{ isSignal: true, alias: "helper", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], filesAdded: [{ type: i0.Output, args: ["filesAdded"] }], fileRemove: [{ type: i0.Output, args: ["fileRemove"] }], fileRetry: [{ type: i0.Output, args: ["fileRetry"] }], fileCancel: [{ type: i0.Output, args: ["fileCancel"] }], fileSelect: [{ type: i0.Output, args: ["fileSelect"] }] } });
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Generated bundle index. Do not edit.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
export { LogosphereUploader };
|
|
96
|
+
//# sourceMappingURL=logosphere-ui-angular-src-lib-uploader.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular-src-lib-uploader.mjs","sources":["../../projects/wrapper/src/lib/uploader/uploader.ts","../../projects/wrapper/src/lib/uploader/logosphere-ui-angular-src-lib-uploader.ts"],"sourcesContent":["import { Component, CUSTOM_ELEMENTS_SCHEMA, input, output } from '@angular/core';\nimport '@logosphere-ui/core/uploader';\n\nexport type UploaderFileStatus = 'pending' | 'uploading' | 'completed' | 'error';\nexport type UploaderSize = 'default' | 'small';\n\nexport interface UploaderFile {\n id: string;\n name: string;\n size?: number;\n status?: UploaderFileStatus;\n progress?: number;\n error?: string;\n previewUrl?: string;\n meta?: string;\n selected?: boolean;\n}\n\nexport interface UploaderFilesAddedDetail {\n files: File[];\n rejected: Array<{ file: File; reason: 'type' | 'size' }>;\n}\n\nexport interface UploaderFileDetail {\n id: string;\n}\n\n@Component({\n selector: 'lgs-uploader',\n imports: [],\n template: `\n <logosphere-uploader\n [files]=\"files()\"\n [attr.accept]=\"accept()\"\n [attr.multiple]=\"multiple() ? '' : null\"\n [attr.max-size]=\"maxSize()\"\n [attr.disabled]=\"disabled() ? '' : null\"\n [attr.size]=\"size()\"\n [attr.selectable]=\"selectable() ? '' : null\"\n [attr.hide-drop-area]=\"hideDropArea() ? '' : null\"\n [attr.label]=\"label()\"\n [attr.label-suffix]=\"labelSuffix()\"\n [attr.helper]=\"helper()\"\n [attr.error]=\"error()\"\n (files-added)=\"onFilesAdded($event)\"\n (file-remove)=\"onFileRemove($event)\"\n (file-retry)=\"onFileRetry($event)\"\n (file-cancel)=\"onFileCancel($event)\"\n (file-select)=\"onFileSelect($event)\"\n ></logosphere-uploader>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereUploader {\n files = input<UploaderFile[]>([]);\n accept = input<string>('');\n multiple = input<boolean>(false);\n maxSize = input<number>(0);\n disabled = input<boolean>(false);\n size = input<UploaderSize>('default');\n selectable = input<boolean>(false);\n hideDropArea = input<boolean>(false);\n label = input<string>('Yüklemek için tıklayın');\n labelSuffix = input<string>('veya bu alana sürükleyin');\n helper = input<string>('');\n error = input<string>('');\n\n filesAdded = output<UploaderFilesAddedDetail>();\n fileRemove = output<UploaderFileDetail>();\n fileRetry = output<UploaderFileDetail>();\n fileCancel = output<UploaderFileDetail>();\n fileSelect = output<UploaderFileDetail>();\n\n onFilesAdded(event: Event) {\n this.filesAdded.emit((event as CustomEvent<UploaderFilesAddedDetail>).detail);\n }\n\n onFileRemove(event: Event) {\n this.fileRemove.emit((event as CustomEvent<UploaderFileDetail>).detail);\n }\n\n onFileRetry(event: Event) {\n this.fileRetry.emit((event as CustomEvent<UploaderFileDetail>).detail);\n }\n\n onFileCancel(event: Event) {\n this.fileCancel.emit((event as CustomEvent<UploaderFileDetail>).detail);\n }\n\n onFileSelect(event: Event) {\n this.fileSelect.emit((event as CustomEvent<UploaderFileDetail>).detail);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAqDa,kBAAkB,CAAA;AAC7B,IAAA,KAAK,GAAG,KAAK,CAAiB,EAAE,iDAAC;AACjC,IAAA,MAAM,GAAG,KAAK,CAAS,EAAE,kDAAC;AAC1B,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAS,CAAC,mDAAC;AAC1B,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAChC,IAAA,IAAI,GAAG,KAAK,CAAe,SAAS,gDAAC;AACrC,IAAA,UAAU,GAAG,KAAK,CAAU,KAAK,sDAAC;AAClC,IAAA,YAAY,GAAG,KAAK,CAAU,KAAK,wDAAC;AACpC,IAAA,KAAK,GAAG,KAAK,CAAS,wBAAwB,iDAAC;AAC/C,IAAA,WAA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