@bootkit/ng0 0.0.0-alpha.1 → 0.0.0-alpha.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/common/index.d.ts +12 -5
- package/components/accordion/index.d.ts +32 -0
- package/components/collapse/index.d.ts +59 -0
- package/components/form-field/index.d.ts +72 -0
- package/components/modal/index.d.ts +29 -0
- package/components/nav/index.d.ts +64 -0
- package/{offcanvas/offcanvas.directive.d.ts → components/offcanvas/index.d.ts} +14 -5
- package/components/overlay/index.d.ts +40 -0
- package/components/pagination/index.d.ts +30 -0
- package/components/popover/index.d.ts +36 -0
- package/components/toast/index.d.ts +101 -0
- package/components/tooltip/index.d.ts +30 -0
- package/data/index.d.ts +74 -0
- package/fesm2022/bootkit-ng0-common.mjs +11 -4
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/{bootkit-ng0-accordion.mjs → bootkit-ng0-components-accordion.mjs} +13 -13
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-collapse.mjs → bootkit-ng0-components-collapse.mjs} +12 -12
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs +147 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-modal.mjs → bootkit-ng0-components-modal.mjs} +9 -9
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-nav.mjs → bootkit-ng0-components-nav.mjs} +21 -21
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-offcanvas.mjs → bootkit-ng0-components-offcanvas.mjs} +9 -9
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-overlay.mjs +99 -0
- package/fesm2022/bootkit-ng0-components-overlay.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-pagination.mjs +85 -0
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-popover.mjs → bootkit-ng0-components-popover.mjs} +8 -8
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-toast.mjs → bootkit-ng0-components-toast.mjs} +9 -9
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-tooltip.mjs → bootkit-ng0-components-tooltip.mjs} +8 -8
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-data.mjs +153 -0
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-http.mjs +229 -0
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization.mjs +301 -0
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-security.mjs +130 -0
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -0
- package/http/index.d.ts +66 -0
- package/index.d.ts +3 -5
- package/localization/index.d.ts +178 -0
- package/package.json +60 -58
- package/security/index.d.ts +48 -0
- package/accordion/accordion-item.component.d.ts +0 -13
- package/accordion/accordion.component.d.ts +0 -13
- package/accordion/accordion.module.d.ts +0 -8
- package/accordion/index.d.ts +0 -5
- package/accordion/public-api.d.ts +0 -3
- package/collapse/collapse.component.d.ts +0 -18
- package/collapse/collapse.directive.d.ts +0 -32
- package/collapse/collapse.module.d.ts +0 -8
- package/collapse/index.d.ts +0 -5
- package/collapse/public-api.d.ts +0 -3
- package/common/public-api.d.ts +0 -2
- package/common/types.d.ts +0 -4
- package/common/utils.d.ts +0 -3
- package/esm2022/accordion/accordion-item.component.mjs +0 -34
- package/esm2022/accordion/accordion.component.mjs +0 -25
- package/esm2022/accordion/accordion.module.mjs +0 -25
- package/esm2022/accordion/bootkit-ng0-accordion.mjs +0 -5
- package/esm2022/accordion/public-api.mjs +0 -4
- package/esm2022/bootkit-ng0.mjs +0 -5
- package/esm2022/collapse/bootkit-ng0-collapse.mjs +0 -5
- package/esm2022/collapse/collapse.component.mjs +0 -46
- package/esm2022/collapse/collapse.directive.mjs +0 -94
- package/esm2022/collapse/collapse.module.mjs +0 -23
- package/esm2022/collapse/public-api.mjs +0 -4
- package/esm2022/common/bootkit-ng0-common.mjs +0 -5
- package/esm2022/common/public-api.mjs +0 -3
- package/esm2022/common/types.mjs +0 -3
- package/esm2022/common/utils.mjs +0 -16
- package/esm2022/lib/index.mjs +0 -3
- package/esm2022/lib/types.mjs +0 -2
- package/esm2022/modal/bootkit-ng0-modal.mjs +0 -5
- package/esm2022/modal/modal.component.mjs +0 -44
- package/esm2022/modal/modal.module.mjs +0 -20
- package/esm2022/modal/public-api.mjs +0 -3
- package/esm2022/modal/types.mjs +0 -3
- package/esm2022/nav/bootkit-ng0-nav.mjs +0 -5
- package/esm2022/nav/nav-item.directive.mjs +0 -26
- package/esm2022/nav/nav-link.directive.mjs +0 -45
- package/esm2022/nav/nav.directive.mjs +0 -23
- package/esm2022/nav/nav.module.mjs +0 -35
- package/esm2022/nav/public-api.mjs +0 -7
- package/esm2022/nav/tab-content.component.mjs +0 -29
- package/esm2022/nav/tab-pane.directive.mjs +0 -20
- package/esm2022/offcanvas/bootkit-ng0-offcanvas.mjs +0 -5
- package/esm2022/offcanvas/offcanvas.directive.mjs +0 -118
- package/esm2022/offcanvas/offcanvas.module.mjs +0 -19
- package/esm2022/offcanvas/public-api.mjs +0 -3
- package/esm2022/overlay/bootkit-ng0-overlay.mjs +0 -5
- package/esm2022/overlay/overlay.directive.mjs +0 -111
- package/esm2022/overlay/overlay.module.mjs +0 -22
- package/esm2022/overlay/private/utils.mjs +0 -58
- package/esm2022/overlay/public-api.mjs +0 -3
- package/esm2022/popover/bootkit-ng0-popover.mjs +0 -5
- package/esm2022/popover/popover-wrapper/popover-wrapper.component.mjs +0 -29
- package/esm2022/popover/popover.directive.mjs +0 -140
- package/esm2022/popover/public-api.mjs +0 -2
- package/esm2022/popover/types.mjs +0 -2
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/toast/bootkit-ng0-toast.mjs +0 -5
- package/esm2022/toast/public-api.mjs +0 -4
- package/esm2022/toast/toast-ref.mjs +0 -27
- package/esm2022/toast/toast.component.mjs +0 -68
- package/esm2022/toast/toast.service.mjs +0 -93
- package/esm2022/toast/types.mjs +0 -2
- package/esm2022/tooltip/bootkit-ng0-tooltip.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -3
- package/esm2022/tooltip/tooltip-wrapper/tooltip-wrapper.component.mjs +0 -44
- package/esm2022/tooltip/tooltip.directive.mjs +0 -93
- package/esm2022/tooltip/types.mjs +0 -2
- package/fesm2022/bootkit-ng0-accordion.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-collapse.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-modal.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-nav.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-offcanvas.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-overlay.mjs +0 -194
- package/fesm2022/bootkit-ng0-overlay.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-popover.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-toast.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-tooltip.mjs.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/types.d.ts +0 -1
- package/modal/index.d.ts +0 -5
- package/modal/modal.component.d.ts +0 -18
- package/modal/modal.module.d.ts +0 -7
- package/modal/public-api.d.ts +0 -2
- package/modal/types.d.ts +0 -2
- package/nav/index.d.ts +0 -5
- package/nav/nav-item.directive.d.ts +0 -13
- package/nav/nav-link.directive.d.ts +0 -16
- package/nav/nav.directive.d.ts +0 -11
- package/nav/nav.module.d.ts +0 -11
- package/nav/public-api.d.ts +0 -6
- package/nav/tab-content.component.d.ts +0 -15
- package/nav/tab-pane.directive.d.ts +0 -9
- package/offcanvas/index.d.ts +0 -5
- package/offcanvas/offcanvas.module.d.ts +0 -7
- package/offcanvas/public-api.d.ts +0 -2
- package/overlay/index.d.ts +0 -5
- package/overlay/overlay.directive.d.ts +0 -50
- package/overlay/overlay.module.d.ts +0 -10
- package/overlay/private/utils.d.ts +0 -10
- package/overlay/public-api.d.ts +0 -2
- package/popover/index.d.ts +0 -5
- package/popover/popover-wrapper/popover-wrapper.component.d.ts +0 -15
- package/popover/popover.directive.d.ts +0 -30
- package/popover/public-api.d.ts +0 -1
- package/popover/types.d.ts +0 -4
- package/public-api.d.ts +0 -1
- package/toast/index.d.ts +0 -5
- package/toast/public-api.d.ts +0 -3
- package/toast/toast-ref.d.ts +0 -12
- package/toast/toast.component.d.ts +0 -19
- package/toast/toast.service.d.ts +0 -43
- package/toast/types.d.ts +0 -44
- package/tooltip/index.d.ts +0 -5
- package/tooltip/public-api.d.ts +0 -2
- package/tooltip/tooltip-wrapper/tooltip-wrapper.component.d.ts +0 -19
- package/tooltip/tooltip.directive.d.ts +0 -24
- package/tooltip/types.d.ts +0 -3
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, PipeTransform } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
|
|
6
|
+
/** Locale dictionary */
|
|
7
|
+
type LocaleDictionary = {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
type LocaleEnums = {
|
|
11
|
+
[enumName: string]: {
|
|
12
|
+
[enumValue: string]: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/** Locale Error Translator */
|
|
16
|
+
type LocaleValidationErrorTranslator = (error: any) => string;
|
|
17
|
+
/** Locale validation error translator functions */
|
|
18
|
+
type LocaleValidationErrorTranslators = {
|
|
19
|
+
[key: string]: LocaleValidationErrorTranslator;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Locale definition
|
|
23
|
+
*/
|
|
24
|
+
interface LocaleDefinition {
|
|
25
|
+
/** Locale name */
|
|
26
|
+
readonly name: string;
|
|
27
|
+
/** Does this locale belongs to a RTL language */
|
|
28
|
+
readonly rtl?: boolean;
|
|
29
|
+
/** Locale dictionary */
|
|
30
|
+
dictionary?: LocaleDictionary;
|
|
31
|
+
enums?: LocaleEnums;
|
|
32
|
+
form?: {
|
|
33
|
+
validation?: {
|
|
34
|
+
/** Form validation error translators. */
|
|
35
|
+
errors?: LocaleValidationErrorTranslators;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
type LocaleDefinitionExtend = {
|
|
40
|
+
dictionary?: LocaleDictionary;
|
|
41
|
+
enums?: LocaleEnums;
|
|
42
|
+
form?: {
|
|
43
|
+
validation?: {
|
|
44
|
+
/** Form validation error translators. */
|
|
45
|
+
errors?: LocaleValidationErrorTranslators;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare class LocalizationService {
|
|
51
|
+
private _locales;
|
|
52
|
+
private _activeLocale?;
|
|
53
|
+
private _changeSubject;
|
|
54
|
+
readonly change: rxjs.Observable<LocaleChangeEvent>;
|
|
55
|
+
constructor();
|
|
56
|
+
/** Adds a Locale */
|
|
57
|
+
add(locale: Locale): void;
|
|
58
|
+
/** Adds an array of Locales to this LocaleProvider */
|
|
59
|
+
add(locales: Locale[]): void;
|
|
60
|
+
/** Changes the active locale */
|
|
61
|
+
set(localeName: string): void;
|
|
62
|
+
/** Gets the active locale */
|
|
63
|
+
get(): Locale | undefined;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, never>;
|
|
65
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const LOCALE: InjectionToken<LocalizationService | Locale>;
|
|
69
|
+
interface TranslatedValidationError {
|
|
70
|
+
/** Error key */
|
|
71
|
+
key: string;
|
|
72
|
+
/** Error object */
|
|
73
|
+
value: any;
|
|
74
|
+
/** localized error text */
|
|
75
|
+
text?: string;
|
|
76
|
+
}
|
|
77
|
+
interface LocaleChangeEvent {
|
|
78
|
+
old?: Locale;
|
|
79
|
+
new: Locale;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** Locale */
|
|
83
|
+
declare class Locale {
|
|
84
|
+
readonly definition: LocaleDefinition;
|
|
85
|
+
constructor(definition: LocaleDefinition);
|
|
86
|
+
/**
|
|
87
|
+
* Returns the name of the locale
|
|
88
|
+
* @returns The name of the locale
|
|
89
|
+
*/
|
|
90
|
+
get name(): string;
|
|
91
|
+
/**
|
|
92
|
+
* Translates a key in the dictionary
|
|
93
|
+
* @param key The key to look up
|
|
94
|
+
* @returns The translated string or the key itself if not found
|
|
95
|
+
*/
|
|
96
|
+
translate(key: string): string;
|
|
97
|
+
/**
|
|
98
|
+
* Translates an enum value
|
|
99
|
+
* @param enumName The name of the enum
|
|
100
|
+
* @param enumValue The value of the enum to translate
|
|
101
|
+
* @returns The translated string or the enum value itself if not found
|
|
102
|
+
*/
|
|
103
|
+
translateEnum(enumName: string, enumValue: any): string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Translates a form validation error
|
|
106
|
+
* @param errorKey The key of the error to translate
|
|
107
|
+
* @param error The error object
|
|
108
|
+
*/
|
|
109
|
+
translateError(errorKey: string, error: any, fallbackMessage?: string | undefined): string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Translates validation errors
|
|
112
|
+
* @param errors Validation errors object
|
|
113
|
+
* @returns Array of translated validation errors
|
|
114
|
+
*/
|
|
115
|
+
translateErrors(errors: any): TranslatedValidationError[];
|
|
116
|
+
/**
|
|
117
|
+
* Translates the first error in the validation errors object
|
|
118
|
+
* @param errors Validation errors object
|
|
119
|
+
* @returns TranslatedValidationError or undefined if no errors
|
|
120
|
+
*/
|
|
121
|
+
translateFirstError(errors: any, fallbackMessage?: string | undefined): TranslatedValidationError | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Clones and extends this object and returns a new Locale (without modifying this object).
|
|
124
|
+
*/
|
|
125
|
+
extend(values?: LocaleDefinitionExtend): Locale;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @param date Date string or timestamp
|
|
129
|
+
* @returns Formatted date string based on the locale
|
|
130
|
+
*/
|
|
131
|
+
formatDate(date: string | number, format: string): string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare class TranslatePipe implements PipeTransform {
|
|
135
|
+
private _locale;
|
|
136
|
+
private _recompute;
|
|
137
|
+
private _value;
|
|
138
|
+
constructor(localizationService: LocalizationService);
|
|
139
|
+
transform(dictionaryKey: string, ...args: unknown[]): string;
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
|
|
141
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "ng0Translate", true>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class EnumPipe implements PipeTransform {
|
|
145
|
+
private _locale;
|
|
146
|
+
private _recompute;
|
|
147
|
+
private _value;
|
|
148
|
+
constructor(localeProvider: LocalizationService);
|
|
149
|
+
transform(enumValue?: string | null, ...args: string[]): string;
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnumPipe, never>;
|
|
151
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EnumPipe, "ng0Enum", true>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare class BooleanPipe implements PipeTransform {
|
|
155
|
+
private localeProvider;
|
|
156
|
+
constructor(localeProvider: LocalizationService);
|
|
157
|
+
transform(value: any, falseKey: string, trueKey: 'false'): string;
|
|
158
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanPipe, never>;
|
|
159
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BooleanPipe, "ng0Bool", true>;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare class DatePipe implements PipeTransform {
|
|
163
|
+
private _locale;
|
|
164
|
+
private _value;
|
|
165
|
+
constructor(localeProvider: LocalizationService);
|
|
166
|
+
transform(value: number | string): string;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
168
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "ng0Date", true>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class LocalizationModule {
|
|
172
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationModule, never>;
|
|
173
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationModule, never, [typeof i1.CommonModule, typeof TranslatePipe, typeof EnumPipe, typeof BooleanPipe, typeof DatePipe], [typeof TranslatePipe, typeof EnumPipe, typeof BooleanPipe, typeof DatePipe]>;
|
|
174
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationModule>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export { BooleanPipe, DatePipe, EnumPipe, LOCALE, Locale, LocalizationModule, LocalizationService, TranslatePipe };
|
|
178
|
+
export type { LocaleChangeEvent, TranslatedValidationError };
|
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.3",
|
|
4
4
|
"description": "Angular+Bootstrap Component Library",
|
|
5
5
|
"homepage": "https://bootkitlib.github.io/",
|
|
6
6
|
"author": "BootKit",
|
|
@@ -33,69 +33,71 @@
|
|
|
33
33
|
},
|
|
34
34
|
".": {
|
|
35
35
|
"types": "./index.d.ts",
|
|
36
|
-
"esm2022": "./esm2022/bootkit-ng0.mjs",
|
|
37
|
-
"esm": "./esm2022/bootkit-ng0.mjs",
|
|
38
36
|
"default": "./fesm2022/bootkit-ng0.mjs"
|
|
39
37
|
},
|
|
40
|
-
"./accordion": {
|
|
41
|
-
"types": "./accordion/index.d.ts",
|
|
42
|
-
"esm2022": "./esm2022/accordion/bootkit-ng0-accordion.mjs",
|
|
43
|
-
"esm": "./esm2022/accordion/bootkit-ng0-accordion.mjs",
|
|
44
|
-
"default": "./fesm2022/bootkit-ng0-accordion.mjs"
|
|
45
|
-
},
|
|
46
|
-
"./collapse": {
|
|
47
|
-
"types": "./collapse/index.d.ts",
|
|
48
|
-
"esm2022": "./esm2022/collapse/bootkit-ng0-collapse.mjs",
|
|
49
|
-
"esm": "./esm2022/collapse/bootkit-ng0-collapse.mjs",
|
|
50
|
-
"default": "./fesm2022/bootkit-ng0-collapse.mjs"
|
|
51
|
-
},
|
|
52
|
-
"./modal": {
|
|
53
|
-
"types": "./modal/index.d.ts",
|
|
54
|
-
"esm2022": "./esm2022/modal/bootkit-ng0-modal.mjs",
|
|
55
|
-
"esm": "./esm2022/modal/bootkit-ng0-modal.mjs",
|
|
56
|
-
"default": "./fesm2022/bootkit-ng0-modal.mjs"
|
|
57
|
-
},
|
|
58
38
|
"./common": {
|
|
59
39
|
"types": "./common/index.d.ts",
|
|
60
|
-
"esm2022": "./esm2022/common/bootkit-ng0-common.mjs",
|
|
61
|
-
"esm": "./esm2022/common/bootkit-ng0-common.mjs",
|
|
62
40
|
"default": "./fesm2022/bootkit-ng0-common.mjs"
|
|
63
41
|
},
|
|
64
|
-
"./
|
|
65
|
-
"types": "./
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"default": "./fesm2022/bootkit-ng0-
|
|
75
|
-
},
|
|
76
|
-
"./
|
|
77
|
-
"types": "./
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
"default": "./fesm2022/bootkit-ng0-
|
|
87
|
-
},
|
|
88
|
-
"./
|
|
89
|
-
"types": "./
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"default": "./fesm2022/bootkit-ng0-
|
|
42
|
+
"./http": {
|
|
43
|
+
"types": "./http/index.d.ts",
|
|
44
|
+
"default": "./fesm2022/bootkit-ng0-http.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./data": {
|
|
47
|
+
"types": "./data/index.d.ts",
|
|
48
|
+
"default": "./fesm2022/bootkit-ng0-data.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./localization": {
|
|
51
|
+
"types": "./localization/index.d.ts",
|
|
52
|
+
"default": "./fesm2022/bootkit-ng0-localization.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./security": {
|
|
55
|
+
"types": "./security/index.d.ts",
|
|
56
|
+
"default": "./fesm2022/bootkit-ng0-security.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./components/collapse": {
|
|
59
|
+
"types": "./components/collapse/index.d.ts",
|
|
60
|
+
"default": "./fesm2022/bootkit-ng0-components-collapse.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./components/accordion": {
|
|
63
|
+
"types": "./components/accordion/index.d.ts",
|
|
64
|
+
"default": "./fesm2022/bootkit-ng0-components-accordion.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./components/modal": {
|
|
67
|
+
"types": "./components/modal/index.d.ts",
|
|
68
|
+
"default": "./fesm2022/bootkit-ng0-components-modal.mjs"
|
|
69
|
+
},
|
|
70
|
+
"./components/form-field": {
|
|
71
|
+
"types": "./components/form-field/index.d.ts",
|
|
72
|
+
"default": "./fesm2022/bootkit-ng0-components-form-field.mjs"
|
|
73
|
+
},
|
|
74
|
+
"./components/nav": {
|
|
75
|
+
"types": "./components/nav/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/bootkit-ng0-components-nav.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./components/offcanvas": {
|
|
79
|
+
"types": "./components/offcanvas/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/bootkit-ng0-components-offcanvas.mjs"
|
|
81
|
+
},
|
|
82
|
+
"./components/overlay": {
|
|
83
|
+
"types": "./components/overlay/index.d.ts",
|
|
84
|
+
"default": "./fesm2022/bootkit-ng0-components-overlay.mjs"
|
|
85
|
+
},
|
|
86
|
+
"./components/pagination": {
|
|
87
|
+
"types": "./components/pagination/index.d.ts",
|
|
88
|
+
"default": "./fesm2022/bootkit-ng0-components-pagination.mjs"
|
|
89
|
+
},
|
|
90
|
+
"./components/popover": {
|
|
91
|
+
"types": "./components/popover/index.d.ts",
|
|
92
|
+
"default": "./fesm2022/bootkit-ng0-components-popover.mjs"
|
|
93
|
+
},
|
|
94
|
+
"./components/toast": {
|
|
95
|
+
"types": "./components/toast/index.d.ts",
|
|
96
|
+
"default": "./fesm2022/bootkit-ng0-components-toast.mjs"
|
|
97
|
+
},
|
|
98
|
+
"./components/tooltip": {
|
|
99
|
+
"types": "./components/tooltip/index.d.ts",
|
|
100
|
+
"default": "./fesm2022/bootkit-ng0-components-tooltip.mjs"
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface ClaimObject {
|
|
5
|
+
all?: string[];
|
|
6
|
+
any?: string[];
|
|
7
|
+
}
|
|
8
|
+
type ClaimLike = string | ClaimObject;
|
|
9
|
+
|
|
10
|
+
/** User */
|
|
11
|
+
declare class User {
|
|
12
|
+
readonly claims: string[];
|
|
13
|
+
constructor(claims: string[]);
|
|
14
|
+
hasClaims(claims: string[]): boolean;
|
|
15
|
+
hasAnyClaim(claims: string[]): boolean;
|
|
16
|
+
hasClaim(claim: ClaimLike): boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare class UserStore<U extends User = User> {
|
|
20
|
+
readonly user: i0.WritableSignal<U>;
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserStore<any>, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserStore<any>>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare class UserDirective {
|
|
27
|
+
claim: i0.InputSignal<ClaimLike>;
|
|
28
|
+
private _viewCreated;
|
|
29
|
+
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, userStore: UserStore);
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserDirective, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UserDirective, "[ng0Claim]", ["ng0Claim"], { "claim": { "alias": "ng0Claim"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class GuestUserDirective {
|
|
35
|
+
private _created;
|
|
36
|
+
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, userStore: UserStore);
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuestUserDirective, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GuestUserDirective, "[ng0GuestUser]", ["ng0GuestUser"], {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class SecurityModule {
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SecurityModule, never>;
|
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SecurityModule, never, [typeof UserDirective, typeof GuestUserDirective], [typeof UserDirective, typeof GuestUserDirective]>;
|
|
44
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SecurityModule>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { GuestUserDirective, SecurityModule, User, UserDirective, UserStore };
|
|
48
|
+
export type { ClaimLike, ClaimObject };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import { AccordionComponent } from './accordion.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AccordionItemComponent {
|
|
5
|
-
private _element;
|
|
6
|
-
private _renderer;
|
|
7
|
-
private _accordion;
|
|
8
|
-
header: import("@angular/core").InputSignal<string>;
|
|
9
|
-
collapsed: import("@angular/core").ModelSignal<boolean>;
|
|
10
|
-
constructor(_element: ElementRef, _renderer: Renderer2, _accordion: AccordionComponent);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "ng0-accordion-item", ["ng0AccordionItem"], { "header": { "alias": "header"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementRef, QueryList, Renderer2 } from '@angular/core';
|
|
2
|
-
import { AccordionItemComponent } from './accordion-item.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AccordionComponent {
|
|
5
|
-
private _element;
|
|
6
|
-
private _renderer;
|
|
7
|
-
/** Items open mode */
|
|
8
|
-
mode: import("@angular/core").InputSignal<"single" | "multiple">;
|
|
9
|
-
readonly items: QueryList<AccordionItemComponent>;
|
|
10
|
-
constructor(_element: ElementRef, _renderer: Renderer2);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ng0-accordion", ["ng0Accordion"], { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./accordion.component";
|
|
3
|
-
import * as i2 from "./accordion-item.component";
|
|
4
|
-
export declare class AccordionModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AccordionModule, never, [typeof i1.AccordionComponent, typeof i2.AccordionItemComponent], [typeof i1.AccordionComponent, typeof i2.AccordionItemComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AccordionModule>;
|
|
8
|
-
}
|
package/accordion/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* A component that provides collapse and expand functionality.
|
|
4
|
-
*/
|
|
5
|
-
export declare class CollapseComponent {
|
|
6
|
-
/**
|
|
7
|
-
* Indicates whether the host element is collapsed.
|
|
8
|
-
* @model
|
|
9
|
-
*/
|
|
10
|
-
collapsed: import("@angular/core").ModelSignal<boolean>;
|
|
11
|
-
/** Animation timings for collapse/expand animations.
|
|
12
|
-
* @input
|
|
13
|
-
*/
|
|
14
|
-
timings: import("@angular/core").InputSignal<string | number>;
|
|
15
|
-
private get _collapseExpand();
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "ng0-collapse", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "timings": { "alias": "timings"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
18
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { OnInit, ElementRef, Renderer2, OnDestroy } from '@angular/core';
|
|
2
|
-
import { AnimationBuilder } from '@angular/animations';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Directive to handle the collapse and expand functionality of a host element.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CollapseDirective implements OnInit, OnDestroy {
|
|
8
|
-
private el;
|
|
9
|
-
private builder;
|
|
10
|
-
private renderer;
|
|
11
|
-
/**
|
|
12
|
-
* Indicates whether the host element is collapsed.
|
|
13
|
-
* @input
|
|
14
|
-
*/
|
|
15
|
-
collapsed: import("@angular/core").InputSignal<boolean>;
|
|
16
|
-
/** Animation timings for collapse/expand animations.
|
|
17
|
-
* @input
|
|
18
|
-
*/
|
|
19
|
-
timings: import("@angular/core").InputSignal<string | number>;
|
|
20
|
-
private _player?;
|
|
21
|
-
private _firstExecution;
|
|
22
|
-
constructor(el: ElementRef, builder: AnimationBuilder, renderer: Renderer2);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
private _collapse;
|
|
25
|
-
private _expand;
|
|
26
|
-
private _playAnimation;
|
|
27
|
-
private _addClass;
|
|
28
|
-
private _removeClass;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[ng0Collapse]", ["ng0Collapse"], { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "timings": { "alias": "timings"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./collapse.directive";
|
|
3
|
-
import * as i2 from "./collapse.component";
|
|
4
|
-
export declare class CollapseModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseModule, never, [typeof i1.CollapseDirective, typeof i2.CollapseComponent], [typeof i1.CollapseDirective, typeof i2.CollapseComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CollapseModule>;
|
|
8
|
-
}
|
package/collapse/index.d.ts
DELETED
package/collapse/public-api.d.ts
DELETED
package/common/public-api.d.ts
DELETED
package/common/types.d.ts
DELETED
package/common/utils.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, effect, input, model } from '@angular/core';
|
|
2
|
-
import { CollapseComponent } from '@bootkit/ng0/collapse';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./accordion.component";
|
|
5
|
-
export class AccordionItemComponent {
|
|
6
|
-
_element;
|
|
7
|
-
_renderer;
|
|
8
|
-
_accordion;
|
|
9
|
-
header = input();
|
|
10
|
-
collapsed = model(true);
|
|
11
|
-
constructor(_element, _renderer, _accordion) {
|
|
12
|
-
this._element = _element;
|
|
13
|
-
this._renderer = _renderer;
|
|
14
|
-
this._accordion = _accordion;
|
|
15
|
-
this._renderer.addClass(this._element.nativeElement, 'accordion-item');
|
|
16
|
-
effect(() => {
|
|
17
|
-
var collapsed = this.collapsed();
|
|
18
|
-
if (_accordion.mode() == 'single') {
|
|
19
|
-
if (!collapsed) {
|
|
20
|
-
this._accordion.items.filter(x => x !== this).forEach(x => x.collapsed.update(x => true));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}, { allowSignalWrites: true });
|
|
24
|
-
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.AccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.11", type: AccordionItemComponent, isStandalone: true, selector: "ng0-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, exportAs: ["ng0AccordionItem"], ngImport: i0, template: "<h6 class=\"accordion-header\">\r\n <button class=\"accordion-button\" type=\"button\" [class.collapsed]=\"collapsed()\" (click)=\"collapsed.set(!collapsed())\">\r\n {{header()}}\r\n </button>\r\n</h6>\r\n\r\n<ng0-collapse [collapsed]=\"collapsed()\">\r\n <div class=\"accordion-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</ng0-collapse>", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: CollapseComponent, selector: "ng0-collapse", inputs: ["collapsed", "timings"], outputs: ["collapsedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{ selector: 'ng0-accordion-item', exportAs: 'ng0AccordionItem', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
31
|
-
CollapseComponent
|
|
32
|
-
], template: "<h6 class=\"accordion-header\">\r\n <button class=\"accordion-button\" type=\"button\" [class.collapsed]=\"collapsed()\" (click)=\"collapsed.set(!collapsed())\">\r\n {{header()}}\r\n </button>\r\n</h6>\r\n\r\n<ng0-collapse [collapsed]=\"collapsed()\">\r\n <div class=\"accordion-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</ng0-collapse>", styles: [":host{display:block}\n"] }]
|
|
33
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.AccordionComponent }] });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmcwL2FjY29yZGlvbi9hY2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AgICAgICAgIH1cclxuICAgICAgICB9LCB7YWxsb3dTaWduYWxXcml0ZXM6IHRydWV9KVxyXG4gICAgfVxyXG59XHJcbiIsIjxoNiBjbGFzcz1cImFjY29yZGlvbi1oZWFkZXJcIj5cclxuICAgIDxidXR0b24gY2xhc3M9XCJhY2NvcmRpb24tYnV0dG9uXCIgdHlwZT1cImJ1dHRvblwiIFtjbGFzcy5jb2xsYXBzZWRdPVwiY29sbGFwc2VkKClcIiAoY2xpY2spPVwiY29sbGFwc2VkLnNldCghY29sbGFwc2VkKCkpXCI+XHJcbiAgICAgICAge3toZWFkZXIoKX19XHJcbiAgICA8L2J1dHRvbj5cclxuPC9oNj5cclxuXHJcbjxuZzAtY29sbGFwc2UgW2NvbGxhcHNlZF09XCJjb2xsYXBzZWQoKVwiPlxyXG4gICAgPGRpdiBjbGFzcz1cImFjY29yZGlvbi1ib2R5XCI+XHJcbiAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxyXG4gICAgPC9kaXY+XHJcbjwvbmcwLWNvbGxhcHNlPiJdfQ==
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChildren, input } from '@angular/core';
|
|
2
|
-
import { AccordionItemComponent } from './accordion-item.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class AccordionComponent {
|
|
5
|
-
_element;
|
|
6
|
-
_renderer;
|
|
7
|
-
/** Items open mode */
|
|
8
|
-
mode = input('single');
|
|
9
|
-
items;
|
|
10
|
-
constructor(_element, _renderer) {
|
|
11
|
-
this._element = _element;
|
|
12
|
-
this._renderer = _renderer;
|
|
13
|
-
this._renderer.addClass(this._element.nativeElement, 'accordion');
|
|
14
|
-
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.11", type: AccordionComponent, isStandalone: true, selector: "ng0-accordion", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: AccordionItemComponent }], exportAs: ["ng0Accordion"], ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{ selector: 'ng0-accordion', exportAs: 'ng0Accordion', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{display:block}\n"] }]
|
|
21
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { items: [{
|
|
22
|
-
type: ContentChildren,
|
|
23
|
-
args: [AccordionItemComponent]
|
|
24
|
-
}] } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nMC9hY2NvcmRpb24vYWNjb3JkaW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nMC9hY2NvcmRpb24vYWNjb3JkaW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsZUFBZSxFQUFjLEtBQUssRUFBd0IsTUFBTSxlQUFlLENBQUM7QUFDN0gsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE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9uLmNvbXBvbmVudC5odG1sJyxcclxuICAgIHN0YW5kYWxvbmU6IHRydWUsXHJcbiAgICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcclxuICAgIHN0eWxlczogYDpob3N0IHtkaXNwbGF5OiBibG9jazt9YFxyXG59KVxyXG5leHBvcnQgY2xhc3MgQWNjb3JkaW9uQ29tcG9uZW50IHtcclxuICAgIC8qKiBJdGVtcyBvcGVuIG1vZGUgKi9cclxuICAgIHB1YmxpYyBtb2RlID0gaW5wdXQ8J3NpbmdsZScgfCAnbXVsdGlwbGUnPignc2luZ2xlJyk7XHJcblxyXG4gICAgQENvbnRlbnRDaGlsZHJlbihBY2NvcmRpb25JdGVtQ29tcG9uZW50KVxyXG4gICAgcHVibGljIHJlYWRvbmx5IGl0ZW1zITogUXVlcnlMaXN0PEFjY29yZGlvbkl0ZW1Db21wb25lbnQ+O1xyXG5cclxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgX2VsZW1lbnQ6IEVsZW1lbnRSZWYsIHByaXZhdGUgX3JlbmRlcmVyOiBSZW5kZXJlcjIpIHtcclxuICAgICAgICB0aGlzLl9yZW5kZXJlci5hZGRDbGFzcyh0aGlzLl9lbGVtZW50Lm5hdGl2ZUVsZW1lbnQsICdhY2NvcmRpb24nKTtcclxuICAgIH1cclxufVxyXG4iLCI8bmctY29udGVudD48L25nLWNvbnRlbnQ+Il19
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { AccordionComponent } from './accordion.component';
|
|
3
|
-
import { AccordionItemComponent } from './accordion-item.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class AccordionModule {
|
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: AccordionModule, imports: [AccordionComponent,
|
|
8
|
-
AccordionItemComponent], exports: [AccordionComponent,
|
|
9
|
-
AccordionItemComponent] });
|
|
10
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionModule, imports: [AccordionItemComponent] });
|
|
11
|
-
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: AccordionModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
imports: [
|
|
16
|
-
AccordionComponent,
|
|
17
|
-
AccordionItemComponent,
|
|
18
|
-
],
|
|
19
|
-
exports: [
|
|
20
|
-
AccordionComponent,
|
|
21
|
-
AccordionItemComponent,
|
|
22
|
-
]
|
|
23
|
-
}]
|
|
24
|
-
}] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nMC9hY2NvcmRpb24vYWNjb3JkaW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzNELE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDOztBQVlwRSxNQUFNLE9BQU8sZUFBZTt3R0FBZixlQUFlO3lHQUFmLGVBQWUsWUFScEIsa0JBQWtCO1lBQ2xCLHNCQUFzQixhQUd0QixrQkFBa0I7WUFDbEIsc0JBQXNCO3lHQUdqQixlQUFlLFlBUHBCLHNCQUFzQjs7NEZBT2pCLGVBQWU7a0JBVjNCLFFBQVE7bUJBQUM7b0JBQ04sT0FBTyxFQUFFO3dCQUNMLGtCQUFrQjt3QkFDbEIsc0JBQXNCO3FCQUN6QjtvQkFDRCxPQUFPLEVBQUU7d0JBQ0wsa0JBQWtCO3dCQUNsQixzQkFBc0I7cUJBQ3pCO2lCQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgQWNjb3JkaW9uQ29tcG9uZW50IH0gZnJvbSAnLi9hY2NvcmRpb24uY29tcG9uZW50JztcclxuaW1wb3J0IHsgQWNjb3JkaW9uSXRlbUNvbXBvbmVudCB9IGZyb20gJy4vYWNjb3JkaW9uLWl0ZW0uY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgICBpbXBvcnRzOiBbXHJcbiAgICAgICAgQWNjb3JkaW9uQ29tcG9uZW50LFxyXG4gICAgICAgIEFjY29yZGlvbkl0ZW1Db21wb25lbnQsXHJcbiAgICBdLFxyXG4gICAgZXhwb3J0czogW1xyXG4gICAgICAgIEFjY29yZGlvbkNvbXBvbmVudCxcclxuICAgICAgICBBY2NvcmRpb25JdGVtQ29tcG9uZW50LFxyXG4gICAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQWNjb3JkaW9uTW9kdWxlIHtcclxufVxyXG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdGtpdC1uZzAtYWNjb3JkaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmcwL2FjY29yZGlvbi9ib290a2l0LW5nMC1hY2NvcmRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './accordion.component';
|
|
2
|
-
export * from './accordion-item.component';
|
|
3
|
-
export * from './accordion.module';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nMC9hY2NvcmRpb24vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWNjb3JkaW9uLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vYWNjb3JkaW9uLWl0ZW0uY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9hY2NvcmRpb24ubW9kdWxlJztcclxuIl19
|
package/esm2022/bootkit-ng0.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdGtpdC1uZzAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZzAvc3JjL2Jvb3RraXQtbmcwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdGtpdC1uZzAtY29sbGFwc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZzAvY29sbGFwc2UvYm9vdGtpdC1uZzAtY29sbGFwc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|