@bootkit/ng0 0.0.0-alpha.38 → 0.0.0-alpha.39
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.
|
@@ -89,7 +89,7 @@ class IntersectionObserverDirective {
|
|
|
89
89
|
* If true, the observer will disconnect after the first intersection event.
|
|
90
90
|
* @default false
|
|
91
91
|
*/
|
|
92
|
-
once = input(
|
|
92
|
+
once = input(true, ...(ngDevMode ? [{ debugName: "once", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
93
93
|
/**
|
|
94
94
|
* Event emitted when the element enters the viewport.
|
|
95
95
|
*/
|
|
@@ -111,9 +111,9 @@ class IntersectionObserverDirective {
|
|
|
111
111
|
if (entry.isIntersecting) {
|
|
112
112
|
if (this.enterClass()) {
|
|
113
113
|
this._addClass(this.enterClass());
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
if (this._entered === false && this.leaveClass()) {
|
|
115
|
+
this._removeClass(this.leaveClass());
|
|
116
|
+
}
|
|
117
117
|
}
|
|
118
118
|
this._entered = true;
|
|
119
119
|
this.enter.emit(entry);
|
|
@@ -125,9 +125,9 @@ class IntersectionObserverDirective {
|
|
|
125
125
|
if (this._entered) {
|
|
126
126
|
if (this.leaveClass()) {
|
|
127
127
|
this._addClass(this.leaveClass());
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
if (this.enterClass()) {
|
|
129
|
+
this._removeClass(this.enterClass());
|
|
130
|
+
}
|
|
131
131
|
}
|
|
132
132
|
this._entered = false;
|
|
133
133
|
this.leave.emit(entry);
|
|
@@ -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/intersection-observer.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","import { ElementRef, input, OnInit, PLATFORM_ID, Directive, OnDestroy, Output, EventEmitter, inject, Renderer2, booleanAttribute } from '@angular/core';\r\nimport { isPlatformServer } from '@angular/common';\r\n\r\n/**\r\n * Directive that observes the intersection of an element with the viewport and optionally applies CSS classes when the element enters or leaves the viewport.\r\n * It uses the Intersection Observer API to monitor visibility changes.\r\n * It can be used to trigger animate-on-scroll (AOS) animations, lazy loading, or other actions based on element visibility.\r\n */\r\n@Directive({\r\n selector: '[ng0IntersectionObserver]',\r\n exportAs: 'ng0IntersectionObserver',\r\n standalone: true\r\n})\r\nexport class IntersectionObserverDirective implements OnInit, OnDestroy {\r\n private readonly _platformId = inject(PLATFORM_ID);\r\n private readonly _elementRef = inject(ElementRef);\r\n private readonly _renderer = inject(Renderer2);\r\n private _entered?: boolean;\r\n private _observer?: IntersectionObserver;\r\n private _addClass(c: string) { this._renderer.addClass(this._elementRef.nativeElement, c) };\r\n private _removeClass(c: string) { this._renderer.removeClass(this._elementRef.nativeElement, c) };\r\n\r\n /**\r\n * Threshold(s) at which to trigger the intersection callback.\r\n * Can be a single number or an array of numbers between 0 and 1.\r\n * For example, 0.5 means the callback will be triggered when 50% of the element is visible in the viewport.\r\n */\r\n public readonly threshold = input<number | number[] | undefined>();\r\n\r\n /**\r\n * Root element to use for intersection observation. \r\n * If not provided, the viewport (browser window) is used as the root.\r\n */\r\n public readonly root = input<Element | Document | null | undefined>();\r\n\r\n /**\r\n * Root margin to apply to the intersection observer.\r\n * This can be a string similar to the CSS margin property, e.g., '10px 20px 30px 40px'.\r\n * It defines the margin around the root element (viewport) to consider for intersection.\r\n */\r\n public readonly rootMargin = input<string | undefined>();\r\n\r\n /**\r\n * Css class to apply when the element enters the viewport.\r\n */\r\n public readonly enterClass = input<string | undefined>();\r\n\r\n /**\r\n * Css class to apply when the element leaves the viewport.\r\n */\r\n public readonly leaveClass = input<string | undefined>();\r\n\r\n /**\r\n * Whether to observe only once (true) or continuously (false).\r\n * If true, the observer will disconnect after the first intersection event.\r\n * @default false\r\n */\r\n public readonly once = input(false, { transform: booleanAttribute });\r\n\r\n /**\r\n * Event emitted when the element enters the viewport.\r\n */\r\n @Output() public readonly enter = new EventEmitter<IntersectionObserverEntry>();\r\n\r\n /**\r\n * Event emitted when the element leaves the viewport.\r\n * This event will only be emitted if the element has previously entered the viewport.\r\n */\r\n @Output() public readonly leave = new EventEmitter<IntersectionObserverEntry>();\r\n\r\n\r\n ngOnInit(): void {\r\n if (isPlatformServer(this._platformId)) {\r\n return;\r\n }\r\n\r\n this._setupObserver();\r\n }\r\n\r\n private _setupObserver() {\r\n this._observer = new IntersectionObserver(\r\n (entries) => {\r\n entries.forEach(entry => {\r\n if (entry.isIntersecting) {\r\n if (this.enterClass()) {\r\n this._addClass(this.enterClass()!);\r\n }\r\n if (this._entered === false && this.leaveClass()) {\r\n this._removeClass(this.leaveClass()!);\r\n }\r\n\r\n this._entered = true;\r\n this.enter.emit(entry);\r\n\r\n if (this.once()) {\r\n this.disconnect();\r\n }\r\n } else {\r\n if (this._entered) {\r\n if (this.leaveClass()) {\r\n this._addClass(this.leaveClass()!);\r\n }\r\n if (this.enterClass()) {\r\n this._removeClass(this.enterClass()!);\r\n }\r\n\r\n this._entered = false;\r\n this.leave.emit(entry);\r\n\r\n if (this.once()) {\r\n this.disconnect();\r\n }\r\n }\r\n }\r\n });\r\n },\r\n {\r\n root: this.root(),\r\n threshold: this.threshold(),\r\n rootMargin: this.rootMargin()\r\n }\r\n );\r\n\r\n this._observer.takeRecords(); // Clear initial records\r\n this._observer.observe(this._elementRef.nativeElement);\r\n }\r\n\r\n /**\r\n * Disconnects the intersection observer.\r\n * This stops all observation and releases resources.\r\n */\r\n public disconnect(): void {\r\n this._observer?.disconnect();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.disconnect();\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,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B;uGATW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA;;2FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAA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AA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,CAAA,yBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBALzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE;AACf,iBAAA;;sBAkDI;;sBAMA;;;ACpEL;;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/intersection-observer.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","import { ElementRef, input, OnInit, PLATFORM_ID, Directive, OnDestroy, Output, EventEmitter, inject, Renderer2, booleanAttribute } from '@angular/core';\r\nimport { isPlatformServer } from '@angular/common';\r\n\r\n/**\r\n * Directive that observes the intersection of an element with the viewport and optionally applies CSS classes when the element enters or leaves the viewport.\r\n * It uses the Intersection Observer API to monitor visibility changes.\r\n * It can be used to trigger animate-on-scroll (AOS) animations, lazy loading, or other actions based on element visibility.\r\n */\r\n@Directive({\r\n selector: '[ng0IntersectionObserver]',\r\n exportAs: 'ng0IntersectionObserver',\r\n standalone: true\r\n})\r\nexport class IntersectionObserverDirective implements OnInit, OnDestroy {\r\n private readonly _platformId = inject(PLATFORM_ID);\r\n private readonly _elementRef = inject(ElementRef);\r\n private readonly _renderer = inject(Renderer2);\r\n private _entered?: boolean;\r\n private _observer?: IntersectionObserver;\r\n private _addClass(c: string) { this._renderer.addClass(this._elementRef.nativeElement, c) };\r\n private _removeClass(c: string) { this._renderer.removeClass(this._elementRef.nativeElement, c) };\r\n\r\n /**\r\n * Threshold(s) at which to trigger the intersection callback.\r\n * Can be a single number or an array of numbers between 0 and 1.\r\n * For example, 0.5 means the callback will be triggered when 50% of the element is visible in the viewport.\r\n */\r\n public readonly threshold = input<number | number[] | undefined>();\r\n\r\n /**\r\n * Root element to use for intersection observation. \r\n * If not provided, the viewport (browser window) is used as the root.\r\n */\r\n public readonly root = input<Element | Document | null | undefined>();\r\n\r\n /**\r\n * Root margin to apply to the intersection observer.\r\n * This can be a string similar to the CSS margin property, e.g., '10px 20px 30px 40px'.\r\n * It defines the margin around the root element (viewport) to consider for intersection.\r\n */\r\n public readonly rootMargin = input<string | undefined>();\r\n\r\n /**\r\n * Css class to apply when the element enters the viewport.\r\n */\r\n public readonly enterClass = input<string | undefined>();\r\n\r\n /**\r\n * Css class to apply when the element leaves the viewport.\r\n */\r\n public readonly leaveClass = input<string | undefined>();\r\n\r\n /**\r\n * Whether to observe only once (true) or continuously (false).\r\n * If true, the observer will disconnect after the first intersection event.\r\n * @default false\r\n */\r\n public readonly once = input(true, { transform: booleanAttribute });\r\n\r\n /**\r\n * Event emitted when the element enters the viewport.\r\n */\r\n @Output() public readonly enter = new EventEmitter<IntersectionObserverEntry>();\r\n\r\n /**\r\n * Event emitted when the element leaves the viewport.\r\n * This event will only be emitted if the element has previously entered the viewport.\r\n */\r\n @Output() public readonly leave = new EventEmitter<IntersectionObserverEntry>();\r\n\r\n\r\n ngOnInit(): void {\r\n if (isPlatformServer(this._platformId)) {\r\n return;\r\n }\r\n\r\n this._setupObserver();\r\n }\r\n\r\n private _setupObserver() {\r\n this._observer = new IntersectionObserver(\r\n (entries) => {\r\n entries.forEach(entry => {\r\n if (entry.isIntersecting) {\r\n if (this.enterClass()) {\r\n this._addClass(this.enterClass()!);\r\n\r\n if (this._entered === false && this.leaveClass()) {\r\n this._removeClass(this.leaveClass()!);\r\n }\r\n }\r\n\r\n this._entered = true;\r\n this.enter.emit(entry);\r\n\r\n if (this.once()) {\r\n this.disconnect();\r\n }\r\n } else {\r\n if (this._entered) {\r\n if (this.leaveClass()) {\r\n this._addClass(this.leaveClass()!);\r\n\r\n if (this.enterClass()) {\r\n this._removeClass(this.enterClass()!);\r\n }\r\n }\r\n\r\n this._entered = false;\r\n this.leave.emit(entry);\r\n\r\n if (this.once()) {\r\n this.disconnect();\r\n }\r\n }\r\n }\r\n });\r\n },\r\n {\r\n root: this.root(),\r\n threshold: this.threshold(),\r\n rootMargin: this.rootMargin()\r\n }\r\n );\r\n\r\n this._observer.takeRecords(); // Clear initial records\r\n this._observer.observe(this._elementRef.nativeElement);\r\n }\r\n\r\n /**\r\n * Disconnects the intersection observer.\r\n * This stops all observation and releases resources.\r\n */\r\n public disconnect(): void {\r\n this._observer?.disconnect();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.disconnect();\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,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B;uGATW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA;;2FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCEY,sBAAsB,CAAA;AAGb,IAAA,gBAAA;AAFb,IAAA,KAAK,GAAG,KAAK,CAAS,SAAS,yCAAG,KAAK,EAAE,oBAAoB,EAAA,CAAA,GAAA,CAA5B,EAAC,KAAK,EAAE,oBAAoB,EAAC,GAAC;AAEtE,IAAA,WAAA,C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A,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,CAAA,yBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBALzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE;AACf,iBAAA;;sBAkDI;;sBAMA;;;ACpEL;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootkit/ng0",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.39",
|
|
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
|
-
"./file": {
|
|
47
|
-
"types": "./file/index.d.ts",
|
|
48
|
-
"default": "./fesm2022/bootkit-ng0-file.mjs"
|
|
49
|
-
},
|
|
50
46
|
"./date": {
|
|
51
47
|
"types": "./date/index.d.ts",
|
|
52
48
|
"default": "./fesm2022/bootkit-ng0-date.mjs"
|
|
53
49
|
},
|
|
50
|
+
"./file": {
|
|
51
|
+
"types": "./file/index.d.ts",
|
|
52
|
+
"default": "./fesm2022/bootkit-ng0-file.mjs"
|
|
53
|
+
},
|
|
54
54
|
"./form": {
|
|
55
55
|
"types": "./form/index.d.ts",
|
|
56
56
|
"default": "./fesm2022/bootkit-ng0-form.mjs"
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"types": "./localization/index.d.ts",
|
|
64
64
|
"default": "./fesm2022/bootkit-ng0-localization.mjs"
|
|
65
65
|
},
|
|
66
|
-
"./script": {
|
|
67
|
-
"types": "./script/index.d.ts",
|
|
68
|
-
"default": "./fesm2022/bootkit-ng0-script.mjs"
|
|
69
|
-
},
|
|
70
66
|
"./routing": {
|
|
71
67
|
"types": "./routing/index.d.ts",
|
|
72
68
|
"default": "./fesm2022/bootkit-ng0-routing.mjs"
|
|
73
69
|
},
|
|
70
|
+
"./script": {
|
|
71
|
+
"types": "./script/index.d.ts",
|
|
72
|
+
"default": "./fesm2022/bootkit-ng0-script.mjs"
|
|
73
|
+
},
|
|
74
74
|
"./security": {
|
|
75
75
|
"types": "./security/index.d.ts",
|
|
76
76
|
"default": "./fesm2022/bootkit-ng0-security.mjs"
|
|
@@ -103,14 +103,14 @@
|
|
|
103
103
|
"types": "./components/confirmation/index.d.ts",
|
|
104
104
|
"default": "./fesm2022/bootkit-ng0-components-confirmation.mjs"
|
|
105
105
|
},
|
|
106
|
-
"./components/form-field": {
|
|
107
|
-
"types": "./components/form-field/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
|
|
109
|
-
},
|
|
110
106
|
"./components/dropdown": {
|
|
111
107
|
"types": "./components/dropdown/index.d.ts",
|
|
112
108
|
"default": "./fesm2022/bootkit-ng0-components-dropdown.mjs"
|
|
113
109
|
},
|
|
110
|
+
"./components/form-field": {
|
|
111
|
+
"types": "./components/form-field/index.d.ts",
|
|
112
|
+
"default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
|
|
113
|
+
},
|
|
114
114
|
"./components/list": {
|
|
115
115
|
"types": "./components/list/index.d.ts",
|
|
116
116
|
"default": "./fesm2022/bootkit-ng0-components-list.mjs"
|
|
@@ -143,22 +143,22 @@
|
|
|
143
143
|
"types": "./components/select/index.d.ts",
|
|
144
144
|
"default": "./fesm2022/bootkit-ng0-components-select.mjs"
|
|
145
145
|
},
|
|
146
|
-
"./components/stepper": {
|
|
147
|
-
"types": "./components/stepper/index.d.ts",
|
|
148
|
-
"default": "./fesm2022/bootkit-ng0-components-stepper.mjs"
|
|
149
|
-
},
|
|
150
146
|
"./components/sidenav": {
|
|
151
147
|
"types": "./components/sidenav/index.d.ts",
|
|
152
148
|
"default": "./fesm2022/bootkit-ng0-components-sidenav.mjs"
|
|
153
149
|
},
|
|
154
|
-
"./components/
|
|
155
|
-
"types": "./components/
|
|
156
|
-
"default": "./fesm2022/bootkit-ng0-components-
|
|
150
|
+
"./components/stepper": {
|
|
151
|
+
"types": "./components/stepper/index.d.ts",
|
|
152
|
+
"default": "./fesm2022/bootkit-ng0-components-stepper.mjs"
|
|
157
153
|
},
|
|
158
154
|
"./components/table": {
|
|
159
155
|
"types": "./components/table/index.d.ts",
|
|
160
156
|
"default": "./fesm2022/bootkit-ng0-components-table.mjs"
|
|
161
157
|
},
|
|
158
|
+
"./components/toast": {
|
|
159
|
+
"types": "./components/toast/index.d.ts",
|
|
160
|
+
"default": "./fesm2022/bootkit-ng0-components-toast.mjs"
|
|
161
|
+
},
|
|
162
162
|
"./components/tooltip": {
|
|
163
163
|
"types": "./components/tooltip/index.d.ts",
|
|
164
164
|
"default": "./fesm2022/bootkit-ng0-components-tooltip.mjs"
|