@ngb-bootstrap/core 0.0.0 → 0.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +18 -0
- package/README.md +26 -0
- package/fesm2022/ngb-bootstrap-core-alert.mjs +154 -0
- package/fesm2022/ngb-bootstrap-core-alert.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-badge.mjs +100 -0
- package/fesm2022/ngb-bootstrap-core-badge.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-breadcrumb.mjs +135 -0
- package/fesm2022/ngb-bootstrap-core-breadcrumb.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-button.mjs +513 -0
- package/fesm2022/ngb-bootstrap-core-button.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-card.mjs +540 -0
- package/fesm2022/ngb-bootstrap-core-card.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-cdk.mjs +282 -0
- package/fesm2022/ngb-bootstrap-core-cdk.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-checkbox.mjs +165 -0
- package/fesm2022/ngb-bootstrap-core-checkbox.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-chips.mjs +512 -0
- package/fesm2022/ngb-bootstrap-core-chips.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-floating-label.mjs +83 -0
- package/fesm2022/ngb-bootstrap-core-floating-label.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-footer.mjs +48 -0
- package/fesm2022/ngb-bootstrap-core-footer.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-icon.mjs +243 -0
- package/fesm2022/ngb-bootstrap-core-icon.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-input.mjs +540 -0
- package/fesm2022/ngb-bootstrap-core-input.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-layout.mjs +272 -0
- package/fesm2022/ngb-bootstrap-core-layout.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-navbar.mjs +150 -0
- package/fesm2022/ngb-bootstrap-core-navbar.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-radio.mjs +279 -0
- package/fesm2022/ngb-bootstrap-core-radio.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-sidebar.mjs +425 -0
- package/fesm2022/ngb-bootstrap-core-sidebar.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-spinner.mjs +126 -0
- package/fesm2022/ngb-bootstrap-core-spinner.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core-switch.mjs +147 -0
- package/fesm2022/ngb-bootstrap-core-switch.mjs.map +1 -0
- package/fesm2022/ngb-bootstrap-core.mjs +69 -0
- package/fesm2022/ngb-bootstrap-core.mjs.map +1 -0
- package/ngb-bootstrap.css +827 -0
- package/package.json +118 -4
- package/styles/_breadcrumb.scss +9 -0
- package/styles/_button.scss +14 -0
- package/styles/_card.scss +86 -0
- package/styles/_chip.scss +10 -0
- package/styles/_choice.scss +14 -0
- package/styles/_contrast.scss +23 -0
- package/styles/_icon.scss +62 -0
- package/styles/_index.scss +33 -0
- package/styles/_input.scss +9 -0
- package/styles/_layout.scss +602 -0
- package/styles/_overlay.scss +14 -0
- package/styles/_tokens.scss +29 -0
- package/styles/_typography.scss +77 -0
- package/styles/ngb-bootstrap.scss +2 -0
- package/types/ngb-bootstrap-core-alert.d.ts +65 -0
- package/types/ngb-bootstrap-core-badge.d.ts +38 -0
- package/types/ngb-bootstrap-core-breadcrumb.d.ts +32 -0
- package/types/ngb-bootstrap-core-button.d.ts +177 -0
- package/types/ngb-bootstrap-core-card.d.ts +154 -0
- package/types/ngb-bootstrap-core-cdk.d.ts +165 -0
- package/types/ngb-bootstrap-core-checkbox.d.ts +53 -0
- package/types/ngb-bootstrap-core-chips.d.ts +170 -0
- package/types/ngb-bootstrap-core-floating-label.d.ts +22 -0
- package/types/ngb-bootstrap-core-footer.d.ts +16 -0
- package/types/ngb-bootstrap-core-icon.d.ts +99 -0
- package/types/ngb-bootstrap-core-input.d.ts +208 -0
- package/types/ngb-bootstrap-core-layout.d.ts +102 -0
- package/types/ngb-bootstrap-core-navbar.d.ts +33 -0
- package/types/ngb-bootstrap-core-radio.d.ts +96 -0
- package/types/ngb-bootstrap-core-sidebar.d.ts +62 -0
- package/types/ngb-bootstrap-core-spinner.d.ts +49 -0
- package/types/ngb-bootstrap-core-switch.d.ts +44 -0
- package/types/ngb-bootstrap-core.d.ts +82 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EnvironmentProviders, InjectionToken } from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Translatable strings used by the components. Values may contain `{name}` placeholders,
|
|
4
|
+
* which the component that uses them fills in (e.g. `{page}` in `pagination.page`).
|
|
5
|
+
*/
|
|
6
|
+
export interface NgbI18n {
|
|
7
|
+
/** Accessible label of close buttons (alerts, modals, drawers, toasts). */
|
|
8
|
+
close: string;
|
|
9
|
+
/** Accessible label of the clear button of text inputs. */
|
|
10
|
+
clear: string;
|
|
11
|
+
/** Accessible label of loading indicators (spinner, loading buttons). */
|
|
12
|
+
loading: string;
|
|
13
|
+
/** Accessible name of the toggle of a collapsed collapsible card. */
|
|
14
|
+
expand: string;
|
|
15
|
+
/** Accessible name of the toggle of an expanded collapsible card. */
|
|
16
|
+
collapse: string;
|
|
17
|
+
/** Strings of the Chips component. */
|
|
18
|
+
chip: {
|
|
19
|
+
/** Accessible name of the remove button. `{label}` is the chip's text. */
|
|
20
|
+
remove: string;
|
|
21
|
+
};
|
|
22
|
+
/** Reserved for the Pagination component. */
|
|
23
|
+
pagination: {
|
|
24
|
+
first: string;
|
|
25
|
+
previous: string;
|
|
26
|
+
next: string;
|
|
27
|
+
last: string;
|
|
28
|
+
page: string;
|
|
29
|
+
};
|
|
30
|
+
/** Reserved for the Datepicker component. */
|
|
31
|
+
datepicker: {
|
|
32
|
+
previousMonth: string;
|
|
33
|
+
nextMonth: string;
|
|
34
|
+
selectMonth: string;
|
|
35
|
+
selectYear: string;
|
|
36
|
+
};
|
|
37
|
+
/** Reserved for the File input component. */
|
|
38
|
+
file: {
|
|
39
|
+
browse: string;
|
|
40
|
+
noFileChosen: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** Same shape as {@link NgbI18n}, with every key optional at every level. */
|
|
44
|
+
export type NgbI18nOverrides = { [K in keyof NgbI18n]?: NgbI18n[K] extends string ? string : Partial<NgbI18n[K]>; };
|
|
45
|
+
/** English strings, used when nothing else is provided. */
|
|
46
|
+
export declare const NGB_DEFAULT_I18N: NgbI18n;
|
|
47
|
+
/** Injects the active strings. Defaults to English. */
|
|
48
|
+
export declare const NGB_I18N: InjectionToken<NgbI18n>;
|
|
49
|
+
/** Merges overrides onto the English defaults (one level deep, matching {@link NgbI18n}). */
|
|
50
|
+
export declare function mergeNgbI18n(overrides?: NgbI18nOverrides): NgbI18n;
|
|
51
|
+
/**
|
|
52
|
+
* Overrides some or all library strings. Also available as `provideNgb({ i18n })`.
|
|
53
|
+
*
|
|
54
|
+
* ```ts
|
|
55
|
+
* providers: [provideNgbI18n({ close: 'Fermer', loading: 'Chargement…' })]
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function provideNgbI18n(overrides: NgbI18nOverrides): EnvironmentProviders;
|
|
59
|
+
/** Library-wide defaults. Each component also exposes its own config token. */
|
|
60
|
+
export interface NgbConfig {
|
|
61
|
+
/** Disable all component animations (e.g. for tests or reduced-motion apps). */
|
|
62
|
+
animation: boolean;
|
|
63
|
+
}
|
|
64
|
+
/** Options accepted by {@link provideNgb}: the config plus translated strings. */
|
|
65
|
+
export interface NgbOptions extends Partial<NgbConfig> {
|
|
66
|
+
/** Override library strings (see `NgbI18n`). */
|
|
67
|
+
i18n?: NgbI18nOverrides;
|
|
68
|
+
}
|
|
69
|
+
export declare const NGB_DEFAULT_CONFIG: NgbConfig;
|
|
70
|
+
export declare const NGB_CONFIG: InjectionToken<NgbConfig>;
|
|
71
|
+
/**
|
|
72
|
+
* Registers library-wide configuration.
|
|
73
|
+
*
|
|
74
|
+
* ```ts
|
|
75
|
+
* bootstrapApplication(App, {
|
|
76
|
+
* providers: [provideNgb({ animation: false, i18n: { close: 'Fermer' } })],
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare function provideNgb(options?: NgbOptions): EnvironmentProviders;
|
|
81
|
+
/** Bootstrap 6 theme colours, applied with the `.theme-*` helper classes. */
|
|
82
|
+
export type NgbThemeColor = 'primary' | 'accent' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'inverse';
|