purity-world-ui 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/index.cjs +397 -0
- package/index.d.ts +1 -0
- package/index.js +1939 -0
- package/package.json +46 -0
- package/style.css +1 -0
- package/style.d.ts +1 -0
- package/styles/_base.scss +525 -0
- package/styles/_mixins.scss +57 -0
- package/styles/_theme-dark.scss +103 -0
- package/styles/_theme-light.scss +103 -0
- package/styles/_themes.scss +34 -0
- package/styles/_ui.scss +28 -0
- package/styles/_variables.scss +72 -0
- package/styles/index.scss +7 -0
- package/types/app/shared/behaviors/draggable/draggable.d.ts +14 -0
- package/types/app/shared/behaviors/draggable/draggable.d.ts.map +1 -0
- package/types/app/shared/behaviors/droppable/droppable.d.ts +23 -0
- package/types/app/shared/behaviors/droppable/droppable.d.ts.map +1 -0
- package/types/app/shared/components/date-time-picker/date-time-picker.component.d.ts +91 -0
- package/types/app/shared/components/date-time-picker/date-time-picker.component.d.ts.map +1 -0
- package/types/app/shared/components/expander/expander.component.d.ts +36 -0
- package/types/app/shared/components/expander/expander.component.d.ts.map +1 -0
- package/types/app/shared/components/loader/loader.component.d.ts +21 -0
- package/types/app/shared/components/loader/loader.component.d.ts.map +1 -0
- package/types/app/shared/components/modal/modal-view.component.d.ts +19 -0
- package/types/app/shared/components/modal/modal-view.component.d.ts.map +1 -0
- package/types/app/shared/components/navigation-menu/navigation-menu.component.d.ts +19 -0
- package/types/app/shared/components/navigation-menu/navigation-menu.component.d.ts.map +1 -0
- package/types/app/shared/components/notification/notification.component.d.ts +13 -0
- package/types/app/shared/components/notification/notification.component.d.ts.map +1 -0
- package/types/app/shared/components/popover/popover.component.d.ts +45 -0
- package/types/app/shared/components/popover/popover.component.d.ts.map +1 -0
- package/types/app/shared/components/radial-context-menu/radial-context-menu.component.d.ts +57 -0
- package/types/app/shared/components/radial-context-menu/radial-context-menu.component.d.ts.map +1 -0
- package/types/app/shared/components/switch-button/switch-button.component.d.ts +27 -0
- package/types/app/shared/components/switch-button/switch-button.component.d.ts.map +1 -0
- package/types/app/shared/directives/dropdown/dropdown.directive.d.ts +35 -0
- package/types/app/shared/directives/dropdown/dropdown.directive.d.ts.map +1 -0
- package/types/app/shared/directives/highlight/highlight.directive.d.ts +11 -0
- package/types/app/shared/directives/highlight/highlight.directive.d.ts.map +1 -0
- package/types/app/shared/interceptors/auth.interceptor.d.ts +11 -0
- package/types/app/shared/interceptors/auth.interceptor.d.ts.map +1 -0
- package/types/app/shared/interceptors/logging.interceptor.d.ts +9 -0
- package/types/app/shared/interceptors/logging.interceptor.d.ts.map +1 -0
- package/types/app/shared/pipes/date.pipe.d.ts +10 -0
- package/types/app/shared/pipes/date.pipe.d.ts.map +1 -0
- package/types/app/shared/pipes/transform-sample.pipe.d.ts +5 -0
- package/types/app/shared/pipes/transform-sample.pipe.d.ts.map +1 -0
- package/types/app/shared/pipes/uppercase.pipe.d.ts +5 -0
- package/types/app/shared/pipes/uppercase.pipe.d.ts.map +1 -0
- package/types/app/shared/validators/forms-validation.validator.d.ts +6 -0
- package/types/app/shared/validators/forms-validation.validator.d.ts.map +1 -0
- package/types/app/shared/widgets/analogue-clock/analogue-clock.component.d.ts +84 -0
- package/types/app/shared/widgets/analogue-clock/analogue-clock.component.d.ts.map +1 -0
- package/types/data/notify.service.d.ts +65 -0
- package/types/data/notify.service.d.ts.map +1 -0
- package/types/data/theme.service.d.ts +20 -0
- package/types/data/theme.service.d.ts.map +1 -0
- package/types/framework/bootstrap.d.ts +42 -0
- package/types/framework/bootstrap.d.ts.map +1 -0
- package/types/framework/component.d.ts +57 -0
- package/types/framework/component.d.ts.map +1 -0
- package/types/framework/core.d.ts +46 -0
- package/types/framework/core.d.ts.map +1 -0
- package/types/framework/di.d.ts +53 -0
- package/types/framework/di.d.ts.map +1 -0
- package/types/framework/directive.d.ts +47 -0
- package/types/framework/directive.d.ts.map +1 -0
- package/types/framework/http.d.ts +211 -0
- package/types/framework/http.d.ts.map +1 -0
- package/types/framework/pipe.d.ts +34 -0
- package/types/framework/pipe.d.ts.map +1 -0
- package/types/framework/router.d.ts +145 -0
- package/types/framework/router.d.ts.map +1 -0
- package/types/framework/seo.d.ts +134 -0
- package/types/framework/seo.d.ts.map +1 -0
- package/types/framework/validator.d.ts +73 -0
- package/types/framework/validator.d.ts.map +1 -0
- package/types/framework/virtual-for.d.ts +36 -0
- package/types/framework/virtual-for.d.ts.map +1 -0
- package/types/ui.d.ts +30 -0
- package/types/ui.d.ts.map +1 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import './switch-button.component.scss';
|
|
2
|
+
export declare class SwitchButtonComponent {
|
|
3
|
+
/** Reactive signal property for the switch state */
|
|
4
|
+
isOn: import("purity-world/core").Signal<boolean>;
|
|
5
|
+
/** Alias pointing to the exact same signal instance for standard checkbox/switch convention */
|
|
6
|
+
checked: import("purity-world/core").Signal<boolean>;
|
|
7
|
+
/** Reactive signal for disabled state */
|
|
8
|
+
disabled: import("purity-world/core").Signal<boolean>;
|
|
9
|
+
private handleClick;
|
|
10
|
+
private handleKeydown;
|
|
11
|
+
protected onInit(): void;
|
|
12
|
+
protected onDestroy(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Turns the switch ON (state = true).
|
|
15
|
+
*/
|
|
16
|
+
switchOn(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Turns the switch OFF (state = false).
|
|
19
|
+
*/
|
|
20
|
+
switchOff(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Toggles the switch between ON and OFF states.
|
|
23
|
+
*/
|
|
24
|
+
toggle(): void;
|
|
25
|
+
private dispatchChangeEvent;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=switch-button.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch-button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/app/shared/components/switch-button/switch-button.component.ts"],"names":[],"mappings":"AACA,OAAO,gCAAgC,CAAC;AAExC,qBAIa,qBAAqB;IAC9B,oDAAoD;IAC7C,IAAI,yCAA0B;IAErC,+FAA+F;IACxF,OAAO,yCAAa;IAE3B,yCAAyC;IAClC,QAAQ,yCAA0B;IAEzC,OAAO,CAAC,WAAW,CAOjB;IAEF,OAAO,CAAC,aAAa,CAMnB;IAEF,SAAS,CAAC,MAAM,IAAI,IAAI,CAwDvB;IAED,SAAS,CAAC,SAAS,IAAI,IAAI,CAM1B;IAED;;OAEG;IACI,QAAQ,IAAI,IAAI,CAMtB;IAED;;OAEG;IACI,SAAS,IAAI,IAAI,CAMvB;IAED;;OAEG;IACI,MAAM,IAAI,IAAI,CAKpB;IAED,OAAO,CAAC,mBAAmB;CAY9B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BaseDirective } from 'purity-world/core';
|
|
2
|
+
import './dropdown.directive.scss';
|
|
3
|
+
export interface DropdownSelectDetail {
|
|
4
|
+
item: HTMLElement;
|
|
5
|
+
value: string | null;
|
|
6
|
+
label: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare class DropdownDirective extends BaseDirective {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
private triggerEl;
|
|
11
|
+
private labelEl;
|
|
12
|
+
private bodyEl;
|
|
13
|
+
private boundDocClick?;
|
|
14
|
+
private boundKeydown?;
|
|
15
|
+
private boundTriggerClick?;
|
|
16
|
+
private boundBodyClick?;
|
|
17
|
+
private boundResize?;
|
|
18
|
+
private boundScroll?;
|
|
19
|
+
private isCustomTrigger;
|
|
20
|
+
private openedAt;
|
|
21
|
+
onInit(): void;
|
|
22
|
+
onChanges(newValue: any): void;
|
|
23
|
+
onDOMChange(recordOrEvent: MutationRecord | Event): void;
|
|
24
|
+
open(): void;
|
|
25
|
+
close(): void;
|
|
26
|
+
toggle(): void;
|
|
27
|
+
setLabel(text: string): void;
|
|
28
|
+
updatePosition(): void;
|
|
29
|
+
onDestroy(): void;
|
|
30
|
+
private setupDOM;
|
|
31
|
+
private bindEvents;
|
|
32
|
+
private navigateItems;
|
|
33
|
+
private isDisabled;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=dropdown.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.directive.d.ts","sourceRoot":"","sources":["../../../../../../src/app/shared/directives/dropdown/dropdown.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,2BAA2B,CAAC;AAEnC,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,qBACa,iBAAkB,SAAQ,aAAa;IACzC,MAAM,UAAS;IACtB,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,aAAa,CAAC,CAA0B;IAChD,OAAO,CAAC,YAAY,CAAC,CAA6B;IAClD,OAAO,CAAC,iBAAiB,CAAC,CAA0B;IACpD,OAAO,CAAC,cAAc,CAAC,CAA0B;IACjD,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAK;IAEd,MAAM,IAAI,IAAI,CAQpB;IAEM,SAAS,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI,CAIpC;IAEM,WAAW,CAAC,aAAa,EAAE,cAAc,GAAG,KAAK,GAAG,IAAI,CAwB9D;IAEM,IAAI,IAAI,IAAI,CAmBlB;IAEM,KAAK,IAAI,IAAI,CAYnB;IAEM,MAAM,IAAI,IAAI,CAMpB;IAEM,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIlC;IAEM,cAAc,IAAI,IAAI,CAqD5B;IAEM,SAAS,IAAI,IAAI,CAyBvB;IAED,OAAO,CAAC,QAAQ;IAuEhB,OAAO,CAAC,UAAU;IA+GlB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,UAAU;CAGrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseDirective } from 'purity-world/core';
|
|
2
|
+
import './highlight.directive.scss';
|
|
3
|
+
export declare class HighlightDirective extends BaseDirective {
|
|
4
|
+
private currentModifierClass;
|
|
5
|
+
onInit(): void;
|
|
6
|
+
onChanges(newValue: any): void;
|
|
7
|
+
onDOMChange(recordOrEvent: MutationRecord | Event): void;
|
|
8
|
+
onDestroy(): void;
|
|
9
|
+
private applyHighlightClass;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=highlight.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight.directive.d.ts","sourceRoot":"","sources":["../../../../../../src/app/shared/directives/highlight/highlight.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,4BAA4B,CAAC;AAEpC,qBACa,kBAAmB,SAAQ,aAAa;IACjD,OAAO,CAAC,oBAAoB,CAAM;IAElC,MAAM,SAGL;IAED,SAAS,CAAC,QAAQ,EAAE,GAAG,QAEtB;IAED,WAAW,CAAC,aAAa,EAAE,cAAc,GAAG,KAAK,QAiBhD;IAED,SAAS,SAKR;IAED,OAAO,CAAC,mBAAmB;CAgB9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HttpInterceptor, HttpRequest, HttpResponse, HttpNextFn } from 'purity-world/core';
|
|
2
|
+
/**
|
|
3
|
+
* Centralized Authentication Interceptor.
|
|
4
|
+
* Automatically injects Bearer authorization tokens into outgoing HTTP requests.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AuthInterceptor implements HttpInterceptor {
|
|
7
|
+
private token;
|
|
8
|
+
setToken(token: string): void;
|
|
9
|
+
intercept(req: HttpRequest, next: HttpNextFn): Promise<HttpResponse<any>>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=auth.interceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/app/shared/interceptors/auth.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3F;;;GAGG;AACH,qBAAa,eAAgB,YAAW,eAAe;IACnD,OAAO,CAAC,KAAK,CAA6B;IAEnC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEnC;IAEY,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAWrF;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HttpInterceptor, HttpRequest, HttpResponse, HttpNextFn } from 'purity-world/core';
|
|
2
|
+
/**
|
|
3
|
+
* Centralized Logging Interceptor.
|
|
4
|
+
* Measures request duration, logs URLs, status codes, and network errors to the console.
|
|
5
|
+
*/
|
|
6
|
+
export declare class LoggingInterceptor implements HttpInterceptor {
|
|
7
|
+
intercept(req: HttpRequest, next: HttpNextFn): Promise<HttpResponse<any>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=logging.interceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/app/shared/interceptors/logging.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3F;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,eAAe;IACzC,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAoCrF;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BasePipe } from 'purity-world/core';
|
|
2
|
+
/**
|
|
3
|
+
* Transforms dates, timestamps, or date strings into formatted strings in Handlebars expressions.
|
|
4
|
+
* Example: `{{ selectedDate() | date: 'MMM dd, yyyy HH:mm' }}`
|
|
5
|
+
*/
|
|
6
|
+
export declare class DatePipe extends BasePipe {
|
|
7
|
+
transform(value: any, format?: string): string;
|
|
8
|
+
private formatDate;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=date.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.pipe.d.ts","sourceRoot":"","sources":["../../../../../src/app/shared/pipes/date.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AA4B9C;;;GAGG;AACH,qBACa,QAAS,SAAQ,QAAQ;IAClC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,SAAe,GAAG,MAAM,CAoBnD;IAED,OAAO,CAAC,UAAU;CA6DrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-sample.pipe.d.ts","sourceRoot":"","sources":["../../../../../src/app/shared/pipes/transform-sample.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9C,qBACa,eAAgB,SAAQ,QAAQ;IACzC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,WAAW,GAAE,OAAe,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAO3E;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uppercase.pipe.d.ts","sourceRoot":"","sources":["../../../../../src/app/shared/pipes/uppercase.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9C,qBACa,aAAc,SAAQ,QAAQ;IACvC,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG5B;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms-validation.validator.d.ts","sourceRoot":"","sources":["../../../../../src/app/shared/validators/forms-validation.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,cAAc,CAAC;AAExD,qBASa,wBAAyB,SAAQ,aAAa;IACvD,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErC;IAED,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErC;CACJ"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import './analogue-clock.component.scss';
|
|
2
|
+
export interface ClockOptions {
|
|
3
|
+
size?: number;
|
|
4
|
+
title?: string;
|
|
5
|
+
timezone?: string;
|
|
6
|
+
smoothSeconds?: boolean;
|
|
7
|
+
showSeconds?: boolean;
|
|
8
|
+
showNumbers?: boolean;
|
|
9
|
+
showDateBadge?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class AnalogueClockComponent {
|
|
12
|
+
private themeService;
|
|
13
|
+
private canvasEl?;
|
|
14
|
+
size: import("purity-world/core").Signal<number>;
|
|
15
|
+
title: import("purity-world/core").Signal<string>;
|
|
16
|
+
timezone: import("purity-world/core").Signal<string>;
|
|
17
|
+
smoothSeconds: import("purity-world/core").Signal<boolean>;
|
|
18
|
+
showSeconds: import("purity-world/core").Signal<boolean>;
|
|
19
|
+
showNumbers: import("purity-world/core").Signal<boolean>;
|
|
20
|
+
showDateBadge: import("purity-world/core").Signal<boolean>;
|
|
21
|
+
digitalTime: import("purity-world/core").Signal<string>;
|
|
22
|
+
dateString: import("purity-world/core").Signal<string>;
|
|
23
|
+
timezoneLabel: import("purity-world/core").Signal<string>;
|
|
24
|
+
private animationFrameId;
|
|
25
|
+
private ctx;
|
|
26
|
+
protected onInit(): void;
|
|
27
|
+
onDestroy(): void;
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
private initCanvas;
|
|
30
|
+
private startClockLoop;
|
|
31
|
+
private stopClockLoop;
|
|
32
|
+
private getTimeData;
|
|
33
|
+
private updateLabels;
|
|
34
|
+
/**
|
|
35
|
+
* Master Canvas Rendering Engine
|
|
36
|
+
*/
|
|
37
|
+
private renderClock;
|
|
38
|
+
/**
|
|
39
|
+
* Outer Metallic & Glass Bezel Rim
|
|
40
|
+
*/
|
|
41
|
+
private drawBezel;
|
|
42
|
+
/**
|
|
43
|
+
* Dial Face with Deep Frosted Glassmorphism
|
|
44
|
+
*/
|
|
45
|
+
private drawDialFace;
|
|
46
|
+
/**
|
|
47
|
+
* Date Aperture Window at 3 o'clock
|
|
48
|
+
*/
|
|
49
|
+
private drawDateAperture;
|
|
50
|
+
/**
|
|
51
|
+
* Hour Markers, Accents, and Minute Ticks
|
|
52
|
+
*/
|
|
53
|
+
private drawMarkersAndTicks;
|
|
54
|
+
/**
|
|
55
|
+
* Numerals (12, 3, 6, 9)
|
|
56
|
+
*/
|
|
57
|
+
private drawNumerals;
|
|
58
|
+
/**
|
|
59
|
+
* Convex Watch Crystal Glass Specular Arc Reflection
|
|
60
|
+
*/
|
|
61
|
+
private drawGlassReflection;
|
|
62
|
+
/**
|
|
63
|
+
* 3D Beveled Sword Hour Hand
|
|
64
|
+
*/
|
|
65
|
+
private drawHourHand;
|
|
66
|
+
/**
|
|
67
|
+
* 3D Beveled Sword Minute Hand
|
|
68
|
+
*/
|
|
69
|
+
private drawMinuteHand;
|
|
70
|
+
/**
|
|
71
|
+
* Ultra-Fine Needle Second Hand with Glowing Luminous Tip & Counterbalance Ring
|
|
72
|
+
*/
|
|
73
|
+
private drawSecondHand;
|
|
74
|
+
/**
|
|
75
|
+
* Center Pivot Cap with Specular Ring & Blue Center Jewel
|
|
76
|
+
*/
|
|
77
|
+
private drawCenterPivot;
|
|
78
|
+
toggleSweep(): void;
|
|
79
|
+
toggleSeconds(): void;
|
|
80
|
+
toggleNumbers(): void;
|
|
81
|
+
toggleDateBadge(): void;
|
|
82
|
+
onTimezoneChange(tz: string): void;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=analogue-clock.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analogue-clock.component.d.ts","sourceRoot":"","sources":["../../../../../../src/app/shared/widgets/analogue-clock/analogue-clock.component.ts"],"names":[],"mappings":"AAEA,OAAO,iCAAiC,CAAC;AAEzC,MAAM,WAAW,YAAY;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,qBAIa,sBAAsB;IAC/B,OAAO,CAAC,YAAY,CAAwB;IAG5C,OAAO,CAAC,QAAQ,CAAC,CAA2B;IAGrC,IAAI,wCAAuB;IAC3B,KAAK,wCAAmC;IACxC,QAAQ,wCAA2B;IACnC,aAAa,yCAAyB;IACtC,WAAW,yCAAyB;IACpC,WAAW,yCAAyB;IACpC,aAAa,yCAAyB;IAEtC,WAAW,wCAA8B;IACzC,UAAU,wCAAsB;IAChC,aAAa,wCAAgC;IAEpD,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,GAAG,CAAyC;IAEpD,SAAS,CAAC,MAAM,IAAI,IAAI,CA6CvB;IAEM,SAAS,IAAI,IAAI,CAEvB;IAEM,oBAAoB,IAAI,IAAI,CAElC;IAED,OAAO,CAAC,UAAU;IAuBlB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,WAAW;IAyCnB,OAAO,CAAC,YAAY;IAYpB;;OAEG;IACH,OAAO,CAAC,WAAW;IAwEnB;;OAEG;IACH,OAAO,CAAC,SAAS;IAwDjB;;OAEG;IACH,OAAO,CAAC,YAAY;IAuDpB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAkDxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAwE3B;;OAEG;IACH,OAAO,CAAC,YAAY;IA2BpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAsC3B;;OAEG;IACH,OAAO,CAAC,YAAY;IA2CpB;;OAEG;IACH,OAAO,CAAC,cAAc;IA2CtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAqDtB;;OAEG;IACH,OAAO,CAAC,eAAe;IAoDhB,WAAW,IAAI,IAAI,CAEzB;IAEM,aAAa,IAAI,IAAI,CAE3B;IAEM,aAAa,IAAI,IAAI,CAE3B;IAEM,eAAe,IAAI,IAAI,CAE7B;IAEM,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAGxC;CACJ"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export type NotificationType = 'error' | 'warn' | 'info' | 'success';
|
|
2
|
+
export type NotificationPosition = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center' | 'center';
|
|
3
|
+
export interface NotificationOptions {
|
|
4
|
+
id?: string;
|
|
5
|
+
type?: NotificationType;
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
position?: NotificationPosition;
|
|
9
|
+
duration?: number;
|
|
10
|
+
blink?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
height?: string;
|
|
13
|
+
dismissible?: boolean;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface NotificationItem {
|
|
17
|
+
id: string;
|
|
18
|
+
type: NotificationType;
|
|
19
|
+
title: string;
|
|
20
|
+
subtitle: string;
|
|
21
|
+
position: NotificationPosition;
|
|
22
|
+
duration: number;
|
|
23
|
+
remainingSeconds: number;
|
|
24
|
+
blink: boolean;
|
|
25
|
+
width: string;
|
|
26
|
+
height: string;
|
|
27
|
+
dismissible: boolean;
|
|
28
|
+
createdAt: number;
|
|
29
|
+
onClose?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare class NotifyService {
|
|
32
|
+
notifications: import("purity-world/core").Signal<NotificationItem[]>;
|
|
33
|
+
private timers;
|
|
34
|
+
private tickerInterval;
|
|
35
|
+
private ensureTicker;
|
|
36
|
+
/**
|
|
37
|
+
* Dispatches a new notification toast.
|
|
38
|
+
*/
|
|
39
|
+
notify(options: NotificationOptions): string;
|
|
40
|
+
/**
|
|
41
|
+
* Dispatches a success notification.
|
|
42
|
+
*/
|
|
43
|
+
success(title: string, subtitle?: string, options?: Partial<NotificationOptions>): string;
|
|
44
|
+
/**
|
|
45
|
+
* Dispatches an error notification.
|
|
46
|
+
*/
|
|
47
|
+
error(title: string, subtitle?: string, options?: Partial<NotificationOptions>): string;
|
|
48
|
+
/**
|
|
49
|
+
* Dispatches a warning notification.
|
|
50
|
+
*/
|
|
51
|
+
warn(title: string, subtitle?: string, options?: Partial<NotificationOptions>): string;
|
|
52
|
+
/**
|
|
53
|
+
* Dispatches an informational notification.
|
|
54
|
+
*/
|
|
55
|
+
info(title: string, subtitle?: string, options?: Partial<NotificationOptions>): string;
|
|
56
|
+
/**
|
|
57
|
+
* Dismisses an active notification by ID.
|
|
58
|
+
*/
|
|
59
|
+
dismiss(id: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* Clears all active notifications.
|
|
62
|
+
*/
|
|
63
|
+
clear(): void;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=notify.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notify.service.d.ts","sourceRoot":"","sources":["../../../src/data/notify.service.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GA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kClD;IAED;;OAEG;IACI,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAO/F;IAED;;OAEG;IACI,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAO7F;IAED;;OAEG;IACI,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAO5F;IAED;;OAEG;IACI,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAO5F;IAED;;OAEG;IACI,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAuB/B;IAED;;OAEG;IACI,KAAK,IAAI,IAAI,CAUnB;CACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type AppTheme = 'dark' | 'light';
|
|
2
|
+
export declare class ThemeService {
|
|
3
|
+
currentTheme: import("purity-world/core").Signal<AppTheme>;
|
|
4
|
+
isDark: import("purity-world/core").Signal<boolean>;
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* Initializes theme state with Dark as base default or restored from localStorage.
|
|
8
|
+
*/
|
|
9
|
+
private applyInitialTheme;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the active theme ('dark' or 'light') and persists preference to localStorage.
|
|
12
|
+
*/
|
|
13
|
+
setTheme(theme: AppTheme): void;
|
|
14
|
+
/**
|
|
15
|
+
* Toggles between 'dark' and 'light' themes.
|
|
16
|
+
*/
|
|
17
|
+
toggleTheme(): void;
|
|
18
|
+
private applyTheme;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=theme.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.service.d.ts","sourceRoot":"","sources":["../../../src/data/theme.service.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAExC,qBACa,YAAY;IACd,YAAY,0CAA4B;IACxC,MAAM,yCAAyB;IAEtC,cAEC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAErC;IAED;;OAEG;IACI,WAAW,IAAI,IAAI,CAGzB;IAED,OAAO,CAAC,UAAU;CAiBrB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type Token, type Constructor } from './di';
|
|
2
|
+
import { type HttpInterceptor, type HttpInterceptorFn } from './http';
|
|
3
|
+
import { type Route, type RouterOptions } from './router';
|
|
4
|
+
export interface EnvironmentConfig {
|
|
5
|
+
production: boolean;
|
|
6
|
+
appName?: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
enableDebugTools?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export type Provider = Constructor | {
|
|
12
|
+
provide: Token;
|
|
13
|
+
useValue: any;
|
|
14
|
+
} | {
|
|
15
|
+
provide: Token;
|
|
16
|
+
useClass: Constructor;
|
|
17
|
+
};
|
|
18
|
+
export interface BootstrapOptions {
|
|
19
|
+
environment?: EnvironmentConfig;
|
|
20
|
+
providers?: Provider[];
|
|
21
|
+
interceptors?: Array<HttpInterceptor | (new (...args: any[]) => HttpInterceptor) | HttpInterceptorFn>;
|
|
22
|
+
routes?: Route[];
|
|
23
|
+
routerOptions?: RouterOptions;
|
|
24
|
+
rootSelector?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ApplicationRef {
|
|
27
|
+
rootComponent: any;
|
|
28
|
+
rootElement: HTMLElement | null;
|
|
29
|
+
environment: EnvironmentConfig;
|
|
30
|
+
destroy: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const ENVIRONMENT_TOKEN: Token<EnvironmentConfig>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the active bootstrapped ApplicationRef instance.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getApplicationRef(): ApplicationRef | null;
|
|
37
|
+
/**
|
|
38
|
+
* Bootstraps a Purity application with a root component, environment settings, service providers,
|
|
39
|
+
* and HTTP interceptors, while automatically managing theme and lifecycle.
|
|
40
|
+
*/
|
|
41
|
+
export declare function bootstrapApplication(rootComponent: any, options?: BootstrapOptions): Promise<ApplicationRef>;
|
|
42
|
+
//# sourceMappingURL=bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/framework/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAClF,OAAO,EAAU,KAAK,KAAK,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,MAAM,QAAQ,GACd,WAAW,GACX;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,GACjC;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC7B,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,eAAe,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,eAAe,CAAC,GAAG,iBAAiB,CAAC,CAAC;IACtG,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAiB,CAAC;AAIzE;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,IAAI,CAEzD;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACtC,aAAa,EAAE,GAAG,EAClB,OAAO,GAAE,gBAAqB,GAC/B,OAAO,CAAC,cAAc,CAAC,CAyGzB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { bindVirtualFor, hasVirtualForAttribute, getVirtualForAttribute } from './virtual-for';
|
|
2
|
+
export { bindVirtualFor, hasVirtualForAttribute, getVirtualForAttribute };
|
|
3
|
+
export interface ComponentOptions {
|
|
4
|
+
selector?: string;
|
|
5
|
+
templateUrl?: string;
|
|
6
|
+
template?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const componentRegistry: Map<string, any>;
|
|
9
|
+
/**
|
|
10
|
+
* Transforms template pipe expressions (e.g. `value | myPipe: true : arg2`)
|
|
11
|
+
* into executable JavaScript function calls (e.g. `__pipe('myPipe', (value), true, arg2)`).
|
|
12
|
+
*/
|
|
13
|
+
export declare function transformPipeExpression(rawExpr: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Checks if a DOM node is located inside a nested custom element child of rootEl.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isInsideNestedComponent(node: Node, rootEl: HTMLElement): boolean;
|
|
18
|
+
export interface ConditionalBranch {
|
|
19
|
+
type: 'if' | 'else-if' | 'else';
|
|
20
|
+
expr: string;
|
|
21
|
+
templateEl: HTMLElement;
|
|
22
|
+
}
|
|
23
|
+
export declare function getIfAttribute(el: Element): string | null;
|
|
24
|
+
export declare function getElseIfAttribute(el: Element): string | null;
|
|
25
|
+
export declare function hasElseAttribute(el: Element): boolean;
|
|
26
|
+
export declare function isStructuralConditional(el: Element): boolean;
|
|
27
|
+
export declare function getForAttribute(el: Element): string | null;
|
|
28
|
+
export declare function hasForAttribute(el: Element): boolean;
|
|
29
|
+
export declare function mountComponentOnElement(el: HTMLElement, ComponentClass: any): void;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a reactive context chain for child components, resolving component properties
|
|
32
|
+
* and methods first, and delegating to parent/repeater context (item, index, parent methods) as fallback.
|
|
33
|
+
*/
|
|
34
|
+
export declare function createComponentContext(instance: any, parentContext?: any): any;
|
|
35
|
+
/**
|
|
36
|
+
* Decorator that transforms a class into a native Web Component (Custom Element).
|
|
37
|
+
* Automatically registers the custom element with customElements.define().
|
|
38
|
+
*/
|
|
39
|
+
export declare function Component(selectorOrOptions?: string | ComponentOptions): any;
|
|
40
|
+
export interface ViewChildOptions {
|
|
41
|
+
read?: 'element' | 'component';
|
|
42
|
+
}
|
|
43
|
+
export type ChildViewOptions = ViewChildOptions;
|
|
44
|
+
/**
|
|
45
|
+
* ViewChild Decorator
|
|
46
|
+
* Automatically queries and binds child elements / custom components when accessing the decorated property.
|
|
47
|
+
* If selector is omitted, the selector is implicitly inferred from the property name in kebab-case
|
|
48
|
+
* (e.g. `testDemoComponent` -> `<test-demo-component>` / `#test-demo-component`, `loader` -> `<loader-component>` / `#loader`).
|
|
49
|
+
* An explicit selector is optional and only needed when disambiguating between multiple instances.
|
|
50
|
+
*
|
|
51
|
+
* @param selectorOrTarget Optional CSS selector string (e.g. '#component1' or 'custom-component'), or target for bare decorator usage
|
|
52
|
+
* @param propertyKeyOrOptions Optional property key or ViewChild options
|
|
53
|
+
*/
|
|
54
|
+
export declare function ViewChild(selectorOrTarget?: string | any, propertyKeyOrOptions?: any): any;
|
|
55
|
+
export declare const ChildView: typeof ViewChild;
|
|
56
|
+
export declare const defineComponent: (name: string, component: any) => void;
|
|
57
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/framework/component.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE/F,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;AAE1E,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,eAAO,MAAM,iBAAiB,kBAAyB,CAAC;AAExD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA8H/D;AAyCD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAYhF;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,WAAW,CAAC;CAC3B;AAQD,wBAAgB,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAQzD;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAW7D;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAQrD;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAE5D;AAID,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAQ1D;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAEpD;AAkBD,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,GAAG,IAAI,CA6ClF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CA4B9E;AAmuBD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,GAAG,CAgI5E;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAEhD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,GAAG,EAAE,oBAAoB,CAAC,EAAE,GAAG,GAAG,GAAG,CAgD1F;AAqBD,eAAO,MAAM,SAAS,kBAAY,CAAC;AAEnC,eAAO,MAAM,eAAe,SAAU,MAAM,aAAa,GAAG,SAiB3D,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type Signal<T> = {
|
|
2
|
+
(): T;
|
|
3
|
+
set(value: T): void;
|
|
4
|
+
update(fn: (val: T) => T): void;
|
|
5
|
+
};
|
|
6
|
+
export type ReadonlySignal<T> = () => T;
|
|
7
|
+
export type ComputedSignal<T> = ReadonlySignal<T>;
|
|
8
|
+
/**
|
|
9
|
+
* Reactivity Primitives
|
|
10
|
+
*/
|
|
11
|
+
export declare const signal: <T>(initialValue: T) => Signal<T>;
|
|
12
|
+
export declare const effect: (fn: Function) => (() => void);
|
|
13
|
+
/**
|
|
14
|
+
* Executes a function without capturing signal dependencies in the current reactive context.
|
|
15
|
+
*/
|
|
16
|
+
export declare const untrack: <T>(fn: () => T) => T;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a read-only computed signal that automatically derives its value
|
|
19
|
+
* and reacts synchronously whenever any dependent signals change.
|
|
20
|
+
*/
|
|
21
|
+
export declare const computed: <T>(fn: () => T) => ReadonlySignal<T>;
|
|
22
|
+
/**
|
|
23
|
+
* DOM Utilities
|
|
24
|
+
*/
|
|
25
|
+
export declare const updateTargets: (elements: HTMLElement[], newValue: string | null, ifNullValue?: string) => void;
|
|
26
|
+
export declare const updateStyles: (elements: HTMLElement[], newValue: string) => void;
|
|
27
|
+
export declare const updateValues: (elements: HTMLInputElement[], newValue: string | null, ifNullValue?: string) => void;
|
|
28
|
+
export declare const eventListener: (elements: HTMLElement[], event: string, handler: EventListenerOrEventListenerObject) => {
|
|
29
|
+
dispose: () => void;
|
|
30
|
+
};
|
|
31
|
+
export declare const getElement: (selector: string, rootEl?: HTMLElement | Document) => HTMLElement | null;
|
|
32
|
+
export declare const getElements: (selectors: Record<string, string>, rootEl?: HTMLElement | Document) => Map<string, HTMLElement>;
|
|
33
|
+
/**
|
|
34
|
+
* Framework Submodules
|
|
35
|
+
*/
|
|
36
|
+
export * from './component';
|
|
37
|
+
export * from './di';
|
|
38
|
+
export * from './directive';
|
|
39
|
+
export * from './validator';
|
|
40
|
+
export * from './pipe';
|
|
41
|
+
export * from './bootstrap';
|
|
42
|
+
export * from './http';
|
|
43
|
+
export * from './router';
|
|
44
|
+
export * from './virtual-for';
|
|
45
|
+
export * from './seo';
|
|
46
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/framework/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B,WAAW,GAAG,QAAQ,KAChC,GAAG,CAAC,MAAM,EAAE,WAAW,CAYzB,CAAC;AAEF;;GAEG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type Constructor<T = any> = new (...args: any[]) => T;
|
|
2
|
+
export type Token<T = any> = string | symbol | Constructor<T>;
|
|
3
|
+
export interface InjectableOptions {
|
|
4
|
+
name?: string;
|
|
5
|
+
singleton?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare class DependencyContainer {
|
|
8
|
+
private registry;
|
|
9
|
+
private instances;
|
|
10
|
+
/**
|
|
11
|
+
* Registers a service constructor under a specific token.
|
|
12
|
+
*/
|
|
13
|
+
register<T>(token: Token<T>, target: Constructor<T>, options?: InjectableOptions): void;
|
|
14
|
+
/**
|
|
15
|
+
* Registers a pre-existing value or instance under a specific token.
|
|
16
|
+
*/
|
|
17
|
+
registerValue<T>(token: Token<T>, value: T): void;
|
|
18
|
+
/**
|
|
19
|
+
* Resolves and returns an instance of the requested service.
|
|
20
|
+
*/
|
|
21
|
+
resolve<T>(token: Token<T>): T;
|
|
22
|
+
/**
|
|
23
|
+
* Clears registered services and singleton instances (useful for testing).
|
|
24
|
+
*/
|
|
25
|
+
clear(): void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Global Dependency Injection Container
|
|
29
|
+
*/
|
|
30
|
+
export declare const container: DependencyContainer;
|
|
31
|
+
/**
|
|
32
|
+
* Decorator to register a class as an injectable service.
|
|
33
|
+
* Supports:
|
|
34
|
+
* - @Injectable
|
|
35
|
+
* - @Injectable()
|
|
36
|
+
* - @Injectable('customName')
|
|
37
|
+
* - @Injectable({ name: 'customName', singleton: true })
|
|
38
|
+
*/
|
|
39
|
+
export declare function Injectable(optionsOrNameOrTarget?: string | InjectableOptions | Constructor, context?: any): any;
|
|
40
|
+
/**
|
|
41
|
+
* Alias for @Injectable
|
|
42
|
+
*/
|
|
43
|
+
export declare const Service: typeof Injectable;
|
|
44
|
+
/**
|
|
45
|
+
* Injects and resolves a registered service by token (name or class constructor).
|
|
46
|
+
*/
|
|
47
|
+
export declare function inject<T>(token: Token<T>): T;
|
|
48
|
+
/**
|
|
49
|
+
* Registers an existing value or instance in the DI container.
|
|
50
|
+
*/
|
|
51
|
+
export declare function registerValue<T>(token: Token<T>, value: T): void;
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=di.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/framework/di.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAC7D,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAE9D,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAQD,cAAM,mBAAmB;IACrB,OAAO,CAAC,QAAQ,CAAyC;IACzD,OAAO,CAAC,SAAS,CAAyB;IAE1C;;OAEG;IACH,QAAQ,CAAC,CAAC,EACN,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EACf,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,EACtB,OAAO,GAAE,iBAAuC,GACjD,IAAI,CAKN;IAED;;OAEG;IACH,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAEhD;IAED;;OAEG;IACH,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAgC7B;IAED;;OAEG;IACH,KAAK,IAAI,IAAI,CAGZ;CACJ;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,qBAA4B,CAAC;AAEnD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACtB,qBAAqB,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,WAAW,EAChE,OAAO,CAAC,EAAE,GAAG,GACd,GAAG,CAgCL;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,mBAAa,CAAC;AAElC;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAE5C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAEhE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Constructor } from './di';
|
|
2
|
+
export interface DirectiveLifecycle {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
value?: any;
|
|
5
|
+
onInit?(): void;
|
|
6
|
+
onChanges?(value: any, oldValue?: any): void;
|
|
7
|
+
onDOMChange?(record: MutationRecord | Event): void;
|
|
8
|
+
onDestroy?(): void;
|
|
9
|
+
}
|
|
10
|
+
export interface DirectiveOptions {
|
|
11
|
+
selector: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const directiveRegistry: Map<string, Constructor<DirectiveLifecycle>>;
|
|
14
|
+
/**
|
|
15
|
+
* Normalizes directive selectors (e.g. '[highlight]' -> 'highlight')
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalizeDirectiveSelector(selector: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Decorator to register a class as a Directive.
|
|
20
|
+
* Supports:
|
|
21
|
+
* - @Directive('directiveName')
|
|
22
|
+
* - @Directive({ selector: 'directiveName' })
|
|
23
|
+
* - @Directive('[directiveName]')
|
|
24
|
+
* - @Directive
|
|
25
|
+
*/
|
|
26
|
+
export declare function Directive(selectorOrOptionsOrTarget: string | DirectiveOptions | Constructor, context?: any): any;
|
|
27
|
+
/**
|
|
28
|
+
* Base class for directives providing DOM reference, value, and lifecycle hooks.
|
|
29
|
+
*/
|
|
30
|
+
export declare abstract class BaseDirective implements DirectiveLifecycle {
|
|
31
|
+
element: HTMLElement;
|
|
32
|
+
value?: any;
|
|
33
|
+
context?: any;
|
|
34
|
+
constructor(element?: HTMLElement, value?: any, context?: any);
|
|
35
|
+
destroy(): void;
|
|
36
|
+
onInit?(): void;
|
|
37
|
+
onChanges?(value: any, oldValue?: any): void;
|
|
38
|
+
onDOMChange?(record: MutationRecord | Event): void;
|
|
39
|
+
onDestroy?(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Scans a DOM tree for attributes matching registered directives and initializes them.
|
|
43
|
+
*/
|
|
44
|
+
export declare function bindDirectives(root: HTMLElement, context?: any): Array<{
|
|
45
|
+
destroy: () => void;
|
|
46
|
+
}>;
|
|
47
|
+
//# sourceMappingURL=directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive.d.ts","sourceRoot":"","sources":["../../../src/framework/directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAGxC,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,IAAI,IAAI,CAAC;IAChB,SAAS,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,CAAC,MAAM,EA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