@bootkit/ng0 0.0.0-alpha.31 → 0.0.0-alpha.33

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.
Files changed (61) hide show
  1. package/components/dropdown/index.d.ts +47 -31
  2. package/components/list/index.d.ts +1 -0
  3. package/components/select/index.d.ts +7 -6
  4. package/components/sidenav/index.d.ts +95 -34
  5. package/fesm2022/bootkit-ng0-common.mjs +4 -4
  6. package/fesm2022/bootkit-ng0-components-accordion.mjs +12 -12
  7. package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
  8. package/fesm2022/bootkit-ng0-components-backdrop.mjs +7 -7
  9. package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +1 -1
  10. package/fesm2022/bootkit-ng0-components-button.mjs +8 -8
  11. package/fesm2022/bootkit-ng0-components-card.mjs +11 -11
  12. package/fesm2022/bootkit-ng0-components-code.mjs +7 -7
  13. package/fesm2022/bootkit-ng0-components-collapse.mjs +12 -12
  14. package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
  15. package/fesm2022/bootkit-ng0-components-confirmation.mjs +13 -13
  16. package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -1
  17. package/fesm2022/bootkit-ng0-components-dropdown.mjs +55 -49
  18. package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -1
  19. package/fesm2022/bootkit-ng0-components-form-field.mjs +8 -8
  20. package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -1
  21. package/fesm2022/bootkit-ng0-components-list.mjs +19 -18
  22. package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -1
  23. package/fesm2022/bootkit-ng0-components-modal.mjs +8 -8
  24. package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
  25. package/fesm2022/bootkit-ng0-components-nav.mjs +23 -23
  26. package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
  27. package/fesm2022/bootkit-ng0-components-offcanvas.mjs +8 -8
  28. package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -1
  29. package/fesm2022/bootkit-ng0-components-pagination.mjs +8 -8
  30. package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
  31. package/fesm2022/bootkit-ng0-components-popover.mjs +7 -7
  32. package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
  33. package/fesm2022/bootkit-ng0-components-select.mjs +12 -11
  34. package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -1
  35. package/fesm2022/bootkit-ng0-components-sidenav.mjs +192 -64
  36. package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -1
  37. package/fesm2022/bootkit-ng0-components-stepper.mjs +12 -12
  38. package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
  39. package/fesm2022/bootkit-ng0-components-table.mjs +15 -15
  40. package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
  41. package/fesm2022/bootkit-ng0-components-toast.mjs +6 -6
  42. package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
  43. package/fesm2022/bootkit-ng0-components-tooltip.mjs +7 -7
  44. package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
  45. package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +22 -22
  46. package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -1
  47. package/fesm2022/bootkit-ng0-form.mjs +29 -29
  48. package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
  49. package/fesm2022/bootkit-ng0-http.mjs +3 -3
  50. package/fesm2022/bootkit-ng0-layouts-layout1.mjs +13 -38
  51. package/fesm2022/bootkit-ng0-layouts-layout1.mjs.map +1 -1
  52. package/fesm2022/bootkit-ng0-localization.mjs +153 -73
  53. package/fesm2022/bootkit-ng0-localization.mjs.map +1 -1
  54. package/fesm2022/bootkit-ng0-platform-browser.mjs +7 -7
  55. package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -1
  56. package/fesm2022/bootkit-ng0-routing.mjs +3 -3
  57. package/fesm2022/bootkit-ng0-script.mjs +3 -3
  58. package/fesm2022/bootkit-ng0-security.mjs +14 -14
  59. package/layouts/layout1/index.d.ts +16 -27
  60. package/localization/index.d.ts +63 -8
  61. package/package.json +19 -19
@@ -1 +1 @@
1
- {"version":3,"file":"bootkit-ng0-platform-browser.mjs","sources":["../../../projects/ng0/platform/browser/clipboard/clipboard.service.ts","../../../projects/ng0/platform/browser/clipboard/clipboard-copy.directive.ts","../../../projects/ng0/platform/browser/bootkit-ng0-platform-browser.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ClipboardService {\r\n private _writeSubject = new Subject<any>;\r\n public readonly write = this._writeSubject.asObservable();\r\n\r\n constructor() { }\r\n\r\n public writeText(text: string) {\r\n window.navigator.clipboard.writeText(text);\r\n this._writeSubject.next(text);\r\n }\r\n}\r\n","import { Directive, HostListener, input } from '@angular/core';\r\nimport { ClipboardService } from './clipboard.service';\r\n\r\n@Directive({\r\n selector: '[ng0-clipboard-copy]',\r\n standalone: true\r\n})\r\nexport class ClipboardCopyDirective {\r\n public value = input<string>(undefined, {alias: 'ng0-clipboard-copy'})\r\n\r\n constructor(private clipboardService: ClipboardService) {\r\n }\r\n\r\n \r\n\r\n @HostListener('click') private _onHostClick() {\r\n this.clipboardService.writeText(this.value()!);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.ClipboardService"],"mappings":";;;;MAMa,gBAAgB,CAAA;IACnB,aAAa,GAAG,IAAI,OAAY;AACxB,IAAA,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE;AAEzD,IAAA,WAAA,GAAA,EAAgB;AAET,IAAA,SAAS,CAAC,IAAY,EAAA;QAC3B,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC;AAC1C,QAAA,IAAI,CAAC,aAAa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A,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE;AACb,iBAAA;kFASgC,YAAY,EAAA,CAAA;sBAA1C,YAAY;uBAAC,OAAO;;;ACfvB;;AAEG;;;;"}
1
+ {"version":3,"file":"bootkit-ng0-platform-browser.mjs","sources":["../../../projects/ng0/platform/browser/clipboard/clipboard.service.ts","../../../projects/ng0/platform/browser/clipboard/clipboard-copy.directive.ts","../../../projects/ng0/platform/browser/bootkit-ng0-platform-browser.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ClipboardService {\r\n private _writeSubject = new Subject<any>;\r\n public readonly write = this._writeSubject.asObservable();\r\n\r\n constructor() { }\r\n\r\n public writeText(text: string) {\r\n window.navigator.clipboard.writeText(text);\r\n this._writeSubject.next(text);\r\n }\r\n}\r\n","import { Directive, HostListener, input } from '@angular/core';\r\nimport { ClipboardService } from './clipboard.service';\r\n\r\n@Directive({\r\n selector: '[ng0-clipboard-copy]',\r\n standalone: true\r\n})\r\nexport class ClipboardCopyDirective {\r\n public value = input<string>(undefined, {alias: 'ng0-clipboard-copy'})\r\n\r\n constructor(private clipboardService: ClipboardService) {\r\n }\r\n\r\n \r\n\r\n @HostListener('click') private _onHostClick() {\r\n this.clipboardService.writeText(this.value()!);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.ClipboardService"],"mappings":";;;;MAMa,gBAAgB,CAAA;IACnB,aAAa,GAAG,IAAI,OAAY;AACxB,IAAA,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE;AAEzD,IAAA,WAAA,GAAA,EA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EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE;AACb,iBAAA;;sBASE,YAAY;uBAAC,OAAO;;;ACfvB;;AAEG;;;;"}
@@ -64,10 +64,10 @@ class RouterService {
64
64
  .map(x => this._mapRoute(x, outlets))
65
65
  };
66
66
  }
67
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
68
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RouterService, providedIn: 'root' });
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: RouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
68
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: RouterService, providedIn: 'root' });
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: RouterService, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: RouterService, decorators: [{
71
71
  type: Injectable,
72
72
  args: [{ providedIn: 'root' }]
73
73
  }] });
@@ -38,10 +38,10 @@ class ScriptLoader {
38
38
  this._renderer.appendChild(this._document.body, elm);
39
39
  });
40
40
  }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ScriptLoader, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
42
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ScriptLoader, providedIn: 'root' });
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: ScriptLoader, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
42
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: ScriptLoader, providedIn: 'root' });
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ScriptLoader, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: ScriptLoader, decorators: [{
45
45
  type: Injectable,
46
46
  args: [{
47
47
  providedIn: 'root'
@@ -38,10 +38,10 @@ class UserStore {
38
38
  user = signal(undefined, ...(ngDevMode ? [{ debugName: "user" }] : []));
39
39
  constructor() {
40
40
  }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: UserStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: UserStore, providedIn: 'root' });
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: UserStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: UserStore, providedIn: 'root' });
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: UserStore, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: UserStore, decorators: [{
45
45
  type: Injectable,
46
46
  args: [{ providedIn: 'root' }]
47
47
  }], ctorParameters: () => [] });
@@ -64,17 +64,17 @@ class UserDirective {
64
64
  }
65
65
  });
66
66
  }
67
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: UserDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: UserStore }], target: i0.ɵɵFactoryTarget.Directive });
68
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.1", type: UserDirective, isStandalone: true, selector: "[ng0Claim]", inputs: { claim: { classPropertyName: "claim", publicName: "ng0Claim", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["ng0Claim"], ngImport: i0 });
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: UserDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: UserStore }], target: i0.ɵɵFactoryTarget.Directive });
68
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.9", type: UserDirective, isStandalone: true, selector: "[ng0Claim]", inputs: { claim: { classPropertyName: "claim", publicName: "ng0Claim", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["ng0Claim"], ngImport: i0 });
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: UserDirective, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: UserDirective, decorators: [{
71
71
  type: Directive,
72
72
  args: [{
73
73
  selector: '[ng0Claim]',
74
74
  exportAs: 'ng0Claim',
75
75
  standalone: true
76
76
  }]
77
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: UserStore }] });
77
+ }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: UserStore }], propDecorators: { claim: [{ type: i0.Input, args: [{ isSignal: true, alias: "ng0Claim", required: false }] }] } });
78
78
 
79
79
  class GuestUserDirective {
80
80
  _created = false;
@@ -91,10 +91,10 @@ class GuestUserDirective {
91
91
  }
92
92
  });
93
93
  }
94
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GuestUserDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: UserStore }], target: i0.ɵɵFactoryTarget.Directive });
95
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: GuestUserDirective, isStandalone: true, selector: "[ng0GuestUser]", exportAs: ["ng0GuestUser"], ngImport: i0 });
94
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: GuestUserDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: UserStore }], target: i0.ɵɵFactoryTarget.Directive });
95
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.9", type: GuestUserDirective, isStandalone: true, selector: "[ng0GuestUser]", exportAs: ["ng0GuestUser"], ngImport: i0 });
96
96
  }
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GuestUserDirective, decorators: [{
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: GuestUserDirective, decorators: [{
98
98
  type: Directive,
99
99
  args: [{
100
100
  selector: '[ng0GuestUser]',
@@ -108,13 +108,13 @@ const items = [
108
108
  GuestUserDirective
109
109
  ];
110
110
  class SecurityModule {
111
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SecurityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
112
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: SecurityModule, imports: [UserDirective,
111
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: SecurityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
112
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.9", ngImport: i0, type: SecurityModule, imports: [UserDirective,
113
113
  GuestUserDirective], exports: [UserDirective,
114
114
  GuestUserDirective] });
115
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SecurityModule });
115
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: SecurityModule });
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SecurityModule, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: SecurityModule, decorators: [{
118
118
  type: NgModule,
119
119
  args: [{
120
120
  imports: items,
@@ -1,13 +1,14 @@
1
- import * as _angular_core from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
2
  import { TemplateRef } from '@angular/core';
3
- import { SidenavMode } from '@bootkit/ng0/components/sidenav';
3
+ import { SidenavPosition, SidenavMode } from '@bootkit/ng0/components/sidenav';
4
4
 
5
5
  /**
6
6
  * Represents a secondary sidenav configuration in the Layout1Component.
7
7
  */
8
8
  interface Layout1SidenavConfiguration {
9
9
  template: TemplateRef<any>;
10
- size: number;
10
+ size: number | string | undefined;
11
+ position: SidenavPosition;
11
12
  zIndex: number;
12
13
  closeByBackdropClick: boolean;
13
14
  }
@@ -20,37 +21,25 @@ declare class Layout1Manager {
20
21
  /**
21
22
  * Whether the start sidenav is open.
22
23
  */
23
- readonly startSidenavOpen: _angular_core.WritableSignal<boolean>;
24
+ readonly startSidenavOpen: i0.WritableSignal<boolean>;
24
25
  /**
25
26
  * The mode of the start sidenav.
26
27
  */
27
- readonly startSidenavMode: _angular_core.WritableSignal<SidenavMode>;
28
+ readonly startSidenavMode: i0.WritableSignal<SidenavMode>;
28
29
  /**
29
30
  * Whether the start sidenav is fixed.
30
31
  */
31
- readonly startSidenavFixed: _angular_core.WritableSignal<boolean>;
32
- /**
33
- * Default size of the first secondary sidenav.
34
- */
35
- readonly secondarySidenavDefaultSize: _angular_core.WritableSignal<number>;
36
- /**
37
- * Reduce size step for the secondary sidenavs.
38
- */
39
- readonly secondarySidenavReduceSize: _angular_core.WritableSignal<number>;
40
- /**
41
- * Minimum size of a secondary sidenav.
42
- */
43
- readonly secondarySidenavMinSize: _angular_core.WritableSignal<number>;
32
+ readonly startSidenavFixed: i0.WritableSignal<boolean>;
44
33
  /**
45
34
  * List of secondary sidenavs.
46
35
  */
47
- readonly secondarySidenavs: _angular_core.WritableSignal<Layout1SidenavConfiguration[]>;
36
+ readonly secondarySidenavs: i0.WritableSignal<Layout1SidenavConfiguration[]>;
48
37
  /**
49
38
  * Header mode.
50
39
  * 'default' - Header scrolls with the page.
51
40
  * 'sticky' - Header is fixed at the top.
52
41
  */
53
- readonly headerMode: _angular_core.WritableSignal<"default" | "sticky">;
42
+ readonly headerMode: i0.WritableSignal<"default" | "sticky">;
54
43
  /**
55
44
  * Push a new secondary sidenav onto the stack.
56
45
  * @param template TemplateRef of the sidenav content.
@@ -66,8 +55,8 @@ declare class Layout1Manager {
66
55
  * Toggle the open state of the start sidenav.
67
56
  */
68
57
  toggleStartSidenav(): void;
69
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1Manager, never>;
70
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<Layout1Manager>;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<Layout1Manager, never>;
59
+ static ɵprov: i0.ɵɵInjectableDeclaration<Layout1Manager>;
71
60
  }
72
61
 
73
62
  /**
@@ -75,17 +64,17 @@ declare class Layout1Manager {
75
64
  */
76
65
  declare class Layout1Component {
77
66
  readonly config: Layout1Manager;
78
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1Component, never>;
79
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Layout1Component, "ng0-layout1", never, {}, {}, never, ["header", "content", "start-sidenav"], true, never>;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<Layout1Component, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<Layout1Component, "ng0-layout1", never, {}, {}, never, ["header", "content", "start-sidenav"], true, never>;
80
69
  }
81
70
 
82
71
  /**
83
72
  * Layout1Module
84
73
  */
85
74
  declare class Layout1Module {
86
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1Module, never>;
87
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<Layout1Module, never, [typeof Layout1Component], [typeof Layout1Component]>;
88
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<Layout1Module>;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<Layout1Module, never>;
76
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Layout1Module, never, [typeof Layout1Component], [typeof Layout1Component]>;
77
+ static ɵinj: i0.ɵɵInjectorDeclaration<Layout1Module>;
89
78
  }
90
79
 
91
80
  export { Layout1Component, Layout1Manager, Layout1Module };
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, PipeTransform } from '@angular/core';
2
+ import { EnvironmentInjector, InjectionToken, PipeTransform } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
 
5
5
  /**
@@ -12,26 +12,80 @@ type ObjectFormatter = (obj: any, ...params: any[]) => any;
12
12
  /**
13
13
  * Object formatter-like types.
14
14
  */
15
- type ObjectFormatterLike = ObjectFormatter | string | number | Array<ObjectFormatter | string | number>;
15
+ type ObjectFormatterLike = ObjectFormatter | string | number | Array<ObjectFormatter | string | number | boolean | undefined>;
16
16
  /**
17
17
  * Default object formatter function.
18
18
  * @param value The item to format.
19
19
  * @returns The formatted string.
20
20
  */
21
21
  declare function defaultFormatter(obj: any): string;
22
+ /**
23
+ * Creates a field formatter that retrieves the value of a specified field from an object.
24
+ * @param field The field name to retrieve.
25
+ * @returns An ObjectFormatter function.
26
+ */
27
+ declare function fieldFormatter(field: string): ObjectFormatter;
28
+ /**
29
+ * Creates an index formatter that retrieves the value at a specified index from an array.
30
+ * @param index The index to retrieve (number or boolean).
31
+ * @returns An ObjectFormatter function.
32
+ */
33
+ declare function indexFormatter(index: number | boolean): ObjectFormatter;
34
+ /**
35
+ * Creates an array formatter.
36
+ * @param array
37
+ * @returns An ObjectFormatter function.
38
+ */
39
+ declare function arrayFormatter(array: Array<any>): ObjectFormatter;
40
+ /**
41
+ * Creates a number formatter.
42
+ * @param minimumIntegerDigits
43
+ * @param minimumFractionDigits
44
+ * @param maximumFractionDigits
45
+ * @param useGrouping
46
+ * @returns An ObjectFormatter function.
47
+ */
48
+ declare function numberFormatter(minimumIntegerDigits?: number, minimumFractionDigits?: number, maximumFractionDigits?: number, useGrouping?: boolean): ObjectFormatter;
49
+ /**
50
+ * Creates a currency formatter.
51
+ * @param minFractions
52
+ * @param maxFractions
53
+ * @returns
54
+ */
55
+ declare function currencyFormatter(minFractions?: number, maxFractions?: number): ObjectFormatter;
56
+ /**
57
+ * Creates a date formatter.
58
+ * @returns
59
+ */
60
+ declare function dateFormatter(options?: Intl.DateTimeFormatOptions): ObjectFormatter;
61
+ /**
62
+ * Creates a locale-based formatter.
63
+ * @param locale The Locale object.
64
+ * @param formatterName The format string in the form of "formatterName:param1:param2:..."
65
+ * @returns A ValueFormatterFunction
66
+ * @private
67
+ */
68
+ declare function localeFormatter(formatterName: string): ObjectFormatter;
69
+ /**
70
+ * Creates a composite formatter that applies multiple formatters in sequence.
71
+ * @param formatters The list of ObjectFormatterLike values to compose.
72
+ * @returns An ObjectFormatter function.
73
+ */
74
+ declare function composite(...formatters: ObjectFormatterLike[]): ObjectFormatter;
22
75
  /**
23
76
  * Creates an ObjectFormatter from various ObjectFormatterLike types.
24
77
  * @param formatter The ObjectFormatterLike value to convert.
25
78
  * @param locale Optional locale object for locale-based formatting.
79
+ * @param params Additional parameters for the formatter.
26
80
  * @returns An ObjectFormatter function.
27
81
  */
28
- declare function createObjectFormatter(formatter: ObjectFormatterLike, locale?: Locale): ObjectFormatter;
82
+ declare function createObjectFormatter(formatter: ObjectFormatterLike, ...params: any[]): ObjectFormatter;
29
83
  /**
30
- * Creates a function that converts a ObjectFormatterLike value into a ObjectFormatter.
31
- * @param locale Optional locale object for locale-based formatting.
84
+ * Creates a transform function that converts a ObjectFormatterLike value into a ObjectFormatter.
85
+ * @param injector The EnvironmentInjector to use for dependency injection.
32
86
  * @returns A function that takes a ObjectFormatterLike and returns a ObjectFormatter.
33
87
  */
34
- declare function objectFormatterAttribute(locale?: Locale): ((v: ObjectFormatterLike) => ObjectFormatter);
88
+ declare function objectFormatterAttribute(injector: EnvironmentInjector): ((v: ObjectFormatterLike) => ObjectFormatter);
35
89
 
36
90
  /** Locale dictionary */
37
91
  type LocaleDictionary = {
@@ -204,6 +258,7 @@ declare class Locale {
204
258
  * @returns Formatted date string based on the locale
205
259
  */
206
260
  formatDate(date: Date | string | number, format?: string): string;
261
+ format(object: any, formatterName: string, ...params: any[]): string;
207
262
  }
208
263
 
209
264
  /**
@@ -256,7 +311,7 @@ declare class DatePipe implements PipeTransform {
256
311
  * Format pipe to format objects using various formatter types.
257
312
  */
258
313
  declare class FormatPipe implements PipeTransform {
259
- private _localizationService;
314
+ private _injector;
260
315
  transform(obj: any, formatter: ObjectFormatterLike, ...params: any[]): any;
261
316
  static ɵfac: i0.ɵɵFactoryDeclaration<FormatPipe, never>;
262
317
  static ɵpipe: i0.ɵɵPipeDeclaration<FormatPipe, "ng0Format", true>;
@@ -313,5 +368,5 @@ declare class LocalizationModule {
313
368
  static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationModule>;
314
369
  }
315
370
 
316
- export { DatePipe, FormatPipe, LOCALE, Locale, LocalizationModule, LocalizationService, LocalizeBooleanPipe, LocalizeDatePipe, LocalizeEnumPipe, LocalizePipe, TranslateBooleanPipe, TranslateEnumPipe, TranslatePipe, createObjectFormatter, defaultFormatter, objectFormatterAttribute };
371
+ export { DatePipe, FormatPipe, LOCALE, Locale, LocalizationModule, LocalizationService, LocalizeBooleanPipe, LocalizeDatePipe, LocalizeEnumPipe, LocalizePipe, TranslateBooleanPipe, TranslateEnumPipe, TranslatePipe, arrayFormatter, composite, createObjectFormatter, currencyFormatter, dateFormatter, defaultFormatter, fieldFormatter, indexFormatter, localeFormatter, numberFormatter, objectFormatterAttribute };
317
372
  export type { LocaleChangeEvent, LocaleDefinition, LocaleDictionary, LocaleEnums, LocaleValidationErrorTranslator, LocaleValidationErrorTranslators, ObjectFormatter, ObjectFormatterLike, TableComponentPagingFormatter, TranslatedValidationError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootkit/ng0",
3
- "version": "0.0.0-alpha.31",
3
+ "version": "0.0.0-alpha.33",
4
4
  "description": "Angular+Bootstrap Component Library",
5
5
  "homepage": "https://bootkitlib.github.io/",
6
6
  "author": "BootKit",
@@ -43,14 +43,14 @@
43
43
  "types": "./data/index.d.ts",
44
44
  "default": "./fesm2022/bootkit-ng0-data.mjs"
45
45
  },
46
- "./date": {
47
- "types": "./date/index.d.ts",
48
- "default": "./fesm2022/bootkit-ng0-date.mjs"
49
- },
50
46
  "./file": {
51
47
  "types": "./file/index.d.ts",
52
48
  "default": "./fesm2022/bootkit-ng0-file.mjs"
53
49
  },
50
+ "./date": {
51
+ "types": "./date/index.d.ts",
52
+ "default": "./fesm2022/bootkit-ng0-date.mjs"
53
+ },
54
54
  "./form": {
55
55
  "types": "./form/index.d.ts",
56
56
  "default": "./fesm2022/bootkit-ng0-form.mjs"
@@ -67,14 +67,14 @@
67
67
  "types": "./routing/index.d.ts",
68
68
  "default": "./fesm2022/bootkit-ng0-routing.mjs"
69
69
  },
70
- "./script": {
71
- "types": "./script/index.d.ts",
72
- "default": "./fesm2022/bootkit-ng0-script.mjs"
73
- },
74
70
  "./security": {
75
71
  "types": "./security/index.d.ts",
76
72
  "default": "./fesm2022/bootkit-ng0-security.mjs"
77
73
  },
74
+ "./script": {
75
+ "types": "./script/index.d.ts",
76
+ "default": "./fesm2022/bootkit-ng0-script.mjs"
77
+ },
78
78
  "./components/accordion": {
79
79
  "types": "./components/accordion/index.d.ts",
80
80
  "default": "./fesm2022/bootkit-ng0-components-accordion.mjs"
@@ -95,30 +95,30 @@
95
95
  "types": "./components/code/index.d.ts",
96
96
  "default": "./fesm2022/bootkit-ng0-components-code.mjs"
97
97
  },
98
- "./components/confirmation": {
99
- "types": "./components/confirmation/index.d.ts",
100
- "default": "./fesm2022/bootkit-ng0-components-confirmation.mjs"
101
- },
102
98
  "./components/collapse": {
103
99
  "types": "./components/collapse/index.d.ts",
104
100
  "default": "./fesm2022/bootkit-ng0-components-collapse.mjs"
105
101
  },
106
- "./components/form-field": {
107
- "types": "./components/form-field/index.d.ts",
108
- "default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
102
+ "./components/confirmation": {
103
+ "types": "./components/confirmation/index.d.ts",
104
+ "default": "./fesm2022/bootkit-ng0-components-confirmation.mjs"
109
105
  },
110
106
  "./components/dropdown": {
111
107
  "types": "./components/dropdown/index.d.ts",
112
108
  "default": "./fesm2022/bootkit-ng0-components-dropdown.mjs"
113
109
  },
114
- "./components/modal": {
115
- "types": "./components/modal/index.d.ts",
116
- "default": "./fesm2022/bootkit-ng0-components-modal.mjs"
110
+ "./components/form-field": {
111
+ "types": "./components/form-field/index.d.ts",
112
+ "default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
117
113
  },
118
114
  "./components/list": {
119
115
  "types": "./components/list/index.d.ts",
120
116
  "default": "./fesm2022/bootkit-ng0-components-list.mjs"
121
117
  },
118
+ "./components/modal": {
119
+ "types": "./components/modal/index.d.ts",
120
+ "default": "./fesm2022/bootkit-ng0-components-modal.mjs"
121
+ },
122
122
  "./components/nav": {
123
123
  "types": "./components/nav/index.d.ts",
124
124
  "default": "./fesm2022/bootkit-ng0-components-nav.mjs"