@bravobit/bb-foundation 0.54.4 → 0.55.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/auth/index.d.ts +267 -5
- package/collections/index.d.ts +350 -5
- package/combobox/index.d.ts +58 -5
- package/dashboard/index.d.ts +104 -5
- package/dialog/index.d.ts +168 -5
- package/elements/index.d.ts +838 -5
- package/fesm2022/bravobit-bb-foundation-auth.mjs +22 -22
- package/fesm2022/bravobit-bb-foundation-auth.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-collections.mjs +44 -44
- package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-combobox.mjs +15 -15
- package/fesm2022/bravobit-bb-foundation-combobox.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-dashboard.mjs +25 -25
- package/fesm2022/bravobit-bb-foundation-dashboard.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-dialog.mjs +33 -33
- package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-elements.mjs +102 -102
- package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-http.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-http.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-localize.mjs +18 -18
- package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-masking.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation-masking.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-notifications.mjs +15 -15
- package/fesm2022/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-permissions.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-permissions.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +11 -12
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-select.mjs +21 -21
- package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-storage.mjs +3 -3
- package/fesm2022/bravobit-bb-foundation-storage.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-table.mjs +22 -22
- package/fesm2022/bravobit-bb-foundation-table.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-tooltip.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-tooltip.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-utils.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation-utils.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation.mjs +25 -25
- package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
- package/http/index.d.ts +78 -5
- package/index.d.ts +215 -5
- package/localize/index.d.ts +546 -5
- package/masking/index.d.ts +104 -5
- package/notifications/index.d.ts +78 -5
- package/package.json +19 -19
- package/permissions/index.d.ts +89 -5
- package/recaptcha/index.d.ts +92 -5
- package/rxjs/index.d.ts +19 -5
- package/select/index.d.ts +129 -5
- package/storage/index.d.ts +109 -5
- package/table/index.d.ts +197 -5
- package/tooltip/index.d.ts +45 -5
- package/utils/index.d.ts +66 -5
- package/auth/lib/acting.interceptor.d.ts +0 -9
- package/auth/lib/acting.service.d.ts +0 -17
- package/auth/lib/auth.config.d.ts +0 -3
- package/auth/lib/auth.interceptor.d.ts +0 -20
- package/auth/lib/auth.module.d.ts +0 -10
- package/auth/lib/auth.service.d.ts +0 -51
- package/auth/lib/auth.session.d.ts +0 -50
- package/auth/lib/directives/anonymous.directive.d.ts +0 -20
- package/auth/lib/directives/authenticated.directive.d.ts +0 -20
- package/auth/lib/guards/anonymous.guard.d.ts +0 -2
- package/auth/lib/guards/authenticated.guard.d.ts +0 -2
- package/auth/lib/helpers/jwt.helper.d.ts +0 -8
- package/auth/lib/interfaces/config.interface.d.ts +0 -27
- package/auth/lib/interfaces/provider.interface.d.ts +0 -23
- package/auth/lib/interfaces/token.interface.d.ts +0 -11
- package/auth/lib/providers/email.provider.d.ts +0 -9
- package/auth/lib/providers/verify.provider.d.ts +0 -9
- package/auth/lib/tokens/use-authorization.token.d.ts +0 -2
- package/auth/public_api.d.ts +0 -17
- package/collections/lib/classes/array.collection.d.ts +0 -17
- package/collections/lib/collection.d.ts +0 -40
- package/collections/lib/collections.config.d.ts +0 -3
- package/collections/lib/collections.interfaces.d.ts +0 -10
- package/collections/lib/collections.module.d.ts +0 -19
- package/collections/lib/components/collections-actions/collections-actions.component.d.ts +0 -13
- package/collections/lib/components/collections-grid/collections-grid.component.d.ts +0 -18
- package/collections/lib/components/collections-pager/collections-pager.component.d.ts +0 -38
- package/collections/lib/components/collections-table/collections-table.component.d.ts +0 -26
- package/collections/lib/components/collections-table-label/collections-table-label.component.d.ts +0 -11
- package/collections/lib/components/collections-table-sorting/collections-table-sorting.component.d.ts +0 -18
- package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +0 -16
- package/collections/lib/directives/collections-data-row.directive.d.ts +0 -14
- package/collections/lib/directives/collections-data.directive.d.ts +0 -14
- package/collections/lib/directives/collections-empty.directive.d.ts +0 -14
- package/collections/lib/directives/collections-error.directive.d.ts +0 -14
- package/collections/lib/directives/collections-initial.directive.d.ts +0 -11
- package/collections/lib/directives/collections-item.directive.d.ts +0 -14
- package/collections/lib/interfaces/array-collection.interface.d.ts +0 -6
- package/collections/lib/interfaces/collection.interface.d.ts +0 -32
- package/collections/lib/providers/api-collection.provider.d.ts +0 -19
- package/collections/lib/providers/collection.provider.d.ts +0 -9
- package/collections/lib/providers/local-collection.provider.d.ts +0 -16
- package/collections/public_api.d.ts +0 -23
- package/combobox/combobox/combobox-container.directive.d.ts +0 -28
- package/combobox/combobox/combobox.component.d.ts +0 -37
- package/combobox/combobox-label.directive.d.ts +0 -5
- package/combobox/combobox-option.directive.d.ts +0 -7
- package/combobox/combobox-panel/combobox-panel.animation.d.ts +0 -1
- package/combobox/combobox-panel/combobox-panel.component.d.ts +0 -18
- package/combobox/combobox.interface.d.ts +0 -8
- package/combobox/public_api.d.ts +0 -3
- package/dashboard/lib/dashboard/dashboard.component.d.ts +0 -17
- package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +0 -9
- package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +0 -9
- package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +0 -8
- package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +0 -19
- package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +0 -22
- package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +0 -16
- package/dashboard/lib/dashboard.module.d.ts +0 -13
- package/dashboard/public_api.d.ts +0 -8
- package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +0 -5
- package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +0 -22
- package/dialog/lib/dialog-container/dialog-container.component.d.ts +0 -23
- package/dialog/lib/dialog-header/dialog-header.component.d.ts +0 -13
- package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +0 -16
- package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +0 -19
- package/dialog/lib/dialog.config.d.ts +0 -3
- package/dialog/lib/dialog.insertion.d.ts +0 -7
- package/dialog/lib/dialog.interfaces.d.ts +0 -21
- package/dialog/lib/dialog.module.d.ts +0 -17
- package/dialog/lib/dialog.ref.d.ts +0 -8
- package/dialog/lib/dialog.service.d.ts +0 -15
- package/dialog/lib/directives/confirm.directive.d.ts +0 -14
- package/dialog/public_api.d.ts +0 -10
- package/elements/lib/avatar/avatar.component.d.ts +0 -31
- package/elements/lib/button/button.component.d.ts +0 -21
- package/elements/lib/checkbox/checkbox.component.d.ts +0 -36
- package/elements/lib/checkbox-group/checkbox-group.component.d.ts +0 -13
- package/elements/lib/color-picker/color-picker.component.d.ts +0 -18
- package/elements/lib/color-slider/color-slider.component.d.ts +0 -24
- package/elements/lib/date-picker/date-picker.component.d.ts +0 -77
- package/elements/lib/directives/color-picker.directive.d.ts +0 -27
- package/elements/lib/directives/extra-error-controls.directive.d.ts +0 -13
- package/elements/lib/directives/file-drop.directive.d.ts +0 -13
- package/elements/lib/directives/form-submit.directive.d.ts +0 -17
- package/elements/lib/directives/form-submitter.directive.d.ts +0 -9
- package/elements/lib/directives/image-upload.directive.d.ts +0 -25
- package/elements/lib/directives/input.directive.d.ts +0 -16
- package/elements/lib/elements.config.d.ts +0 -3
- package/elements/lib/elements.inject.d.ts +0 -3
- package/elements/lib/elements.interfaces.d.ts +0 -41
- package/elements/lib/elements.module.d.ts +0 -39
- package/elements/lib/file-picker/file-picker.component.d.ts +0 -57
- package/elements/lib/form-control/form-control.component.d.ts +0 -20
- package/elements/lib/form-error/form-error.component.d.ts +0 -36
- package/elements/lib/form-group/form-group.component.d.ts +0 -7
- package/elements/lib/icon/icon.component.d.ts +0 -26
- package/elements/lib/image-control/image-control.component.d.ts +0 -44
- package/elements/lib/image-picker/image-picker.component.d.ts +0 -39
- package/elements/lib/multi-file-control/multi-file-control.component.d.ts +0 -72
- package/elements/lib/pincode-control/pincode-control.component.d.ts +0 -65
- package/elements/lib/pipes/date.pipe.d.ts +0 -9
- package/elements/lib/pipes/file-data-url.pipe.d.ts +0 -12
- package/elements/lib/pipes/file-image.pipe.d.ts +0 -14
- package/elements/lib/pipes/file-size.pipe.d.ts +0 -7
- package/elements/lib/pipes/relative-time.pipe.d.ts +0 -19
- package/elements/lib/radio-button/radio-button.component.d.ts +0 -16
- package/elements/lib/radio-group/radio-group.component.d.ts +0 -38
- package/elements/lib/spinner/spinner.component.d.ts +0 -9
- package/elements/public_api.d.ts +0 -35
- package/http/lib/classes/http.config.d.ts +0 -9
- package/http/lib/classes/http.error.d.ts +0 -7
- package/http/lib/http.config.d.ts +0 -5
- package/http/lib/http.interfaces.d.ts +0 -21
- package/http/lib/http.module.d.ts +0 -11
- package/http/lib/interceptors/base-url.interceptor.d.ts +0 -15
- package/http/lib/interceptors/error.interceptor.d.ts +0 -9
- package/http/public_api.d.ts +0 -7
- package/lib/core/colors/hex.d.ts +0 -18
- package/lib/core/colors/hsl.d.ts +0 -7
- package/lib/core/colors/hsv.d.ts +0 -13
- package/lib/core/colors/rgb.d.ts +0 -7
- package/lib/core/functions/array.utils.d.ts +0 -1
- package/lib/core/functions/date.utils.d.ts +0 -4
- package/lib/core/functions/file.utils.d.ts +0 -3
- package/lib/core/functions/format.utils.d.ts +0 -1
- package/lib/core/functions/password.utils.d.ts +0 -1
- package/lib/core/functions/route-cache.utils.d.ts +0 -10
- package/lib/core/functions/utils.d.ts +0 -1
- package/lib/core/miscellaneous/coercion.d.ts +0 -2
- package/lib/core/miscellaneous/regex.d.ts +0 -5
- package/lib/core/miscellaneous/validator.d.ts +0 -13
- package/lib/core/services/exif.service.d.ts +0 -12
- package/lib/core/services/file-loader.service.d.ts +0 -13
- package/lib/core/services/files.service.d.ts +0 -15
- package/lib/core/services/image-converter.service.d.ts +0 -17
- package/lib/core/services/languages.service.d.ts +0 -15
- package/lib/core/services/network.service.d.ts +0 -13
- package/lib/core/services/patch.service.d.ts +0 -14
- package/lib/core/tokens/accept-language.token.d.ts +0 -2
- package/lib/core/tokens/cookie.token.d.ts +0 -2
- package/lib/core/tokens/global-focus-mode.token.d.ts +0 -4
- package/lib/core/tokens/location.token.d.ts +0 -2
- package/lib/core/tokens/navigator.token.d.ts +0 -2
- package/lib/core/tokens/window.token.d.ts +0 -2
- package/localize/lib/dictionary/dictionary.class.d.ts +0 -28
- package/localize/lib/dictionary/dictionary.context.d.ts +0 -7
- package/localize/lib/dictionary/dictionary.data.d.ts +0 -7
- package/localize/lib/functions/date.function.d.ts +0 -5
- package/localize/lib/functions/lowercase.function.d.ts +0 -5
- package/localize/lib/functions/uppercase.function.d.ts +0 -5
- package/localize/lib/handlers/missing.handler.d.ts +0 -6
- package/localize/lib/interfaces/config.interfaces.d.ts +0 -18
- package/localize/lib/interfaces/functions.interfaces.d.ts +0 -7
- package/localize/lib/interfaces/handlers.interfaces.d.ts +0 -6
- package/localize/lib/interfaces/options.interfaces.d.ts +0 -11
- package/localize/lib/localizations/dutch.localization.d.ts +0 -74
- package/localize/lib/localizations/english.localization.d.ts +0 -74
- package/localize/lib/localizations/papiamento.localization.d.ts +0 -74
- package/localize/lib/localizations/spanish.localization.d.ts +0 -74
- package/localize/lib/localize.config.d.ts +0 -5
- package/localize/lib/localize.module.d.ts +0 -12
- package/localize/lib/localize.pipe.d.ts +0 -12
- package/localize/lib/localize.service.d.ts +0 -43
- package/localize/lib/localize.tokens.d.ts +0 -11
- package/localize/lib/transforms/abstract.transform.d.ts +0 -13
- package/localize/lib/transforms/interpolate.transform.d.ts +0 -13
- package/localize/lib/transforms/plural.transform.d.ts +0 -16
- package/localize/lib/transforms/reference.transform.d.ts +0 -9
- package/localize/lib/views/localize-string/localize-string.component.d.ts +0 -23
- package/localize/lib/views/localize-template.directive.d.ts +0 -9
- package/localize/public_api.d.ts +0 -26
- package/masking/lib/directives/currency-mask.directive.d.ts +0 -17
- package/masking/lib/directives/date-mask.directive.d.ts +0 -17
- package/masking/lib/directives/input-mask.directive.d.ts +0 -38
- package/masking/lib/input-mask.interface.d.ts +0 -19
- package/masking/lib/masking.module.d.ts +0 -9
- package/masking/lib/masking.service.d.ts +0 -12
- package/masking/public_api.d.ts +0 -6
- package/notifications/lib/notifications-item/notifications-item.component.d.ts +0 -33
- package/notifications/lib/notifications-list/notifications-list.component.d.ts +0 -18
- package/notifications/lib/notifications.animations.d.ts +0 -1
- package/notifications/lib/notifications.config.d.ts +0 -3
- package/notifications/lib/notifications.interfaces.d.ts +0 -36
- package/notifications/lib/notifications.module.d.ts +0 -9
- package/notifications/lib/notifications.service.d.ts +0 -30
- package/notifications/public_api.d.ts +0 -4
- package/permissions/lib/directives/permission.directive.d.ts +0 -27
- package/permissions/lib/guards/permission.guard.d.ts +0 -3
- package/permissions/lib/handlers/abstract.handler.d.ts +0 -4
- package/permissions/lib/handlers/local.handler.d.ts +0 -10
- package/permissions/lib/permissions.config.d.ts +0 -3
- package/permissions/lib/permissions.interface.d.ts +0 -13
- package/permissions/lib/permissions.module.d.ts +0 -10
- package/permissions/lib/permissions.service.d.ts +0 -23
- package/permissions/public_api.d.ts +0 -8
- package/public_api.d.ts +0 -27
- package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +0 -47
- package/recaptcha/lib/recaptcha-loader.service.d.ts +0 -19
- package/recaptcha/lib/recaptcha.config.d.ts +0 -3
- package/recaptcha/lib/recaptcha.interface.d.ts +0 -13
- package/recaptcha/lib/recaptcha.module.d.ts +0 -10
- package/recaptcha/public_api.d.ts +0 -5
- package/rxjs/lib/observables/get-control-value.observable.d.ts +0 -3
- package/rxjs/lib/observables/get-route-param.observable.d.ts +0 -3
- package/rxjs/lib/operators/combine-latest-map.operator.d.ts +0 -8
- package/rxjs/lib/operators/filter-nil.operator.d.ts +0 -1
- package/rxjs/public_api.d.ts +0 -4
- package/select/lib/select/select.component.d.ts +0 -94
- package/select/lib/select-label.directive.d.ts +0 -7
- package/select/lib/select-multi-label.directive.d.ts +0 -7
- package/select/lib/select-option-group.directive.d.ts +0 -7
- package/select/lib/select-option.directive.d.ts +0 -7
- package/select/lib/select.config.d.ts +0 -2
- package/select/lib/select.module.d.ts +0 -11
- package/select/public_api.d.ts +0 -7
- package/storage/lib/interfaces/attributes.interface.d.ts +0 -13
- package/storage/lib/interfaces/memory.interface.d.ts +0 -7
- package/storage/lib/interfaces/strategy.interface.d.ts +0 -17
- package/storage/lib/storage.service.d.ts +0 -25
- package/storage/lib/strategies/cookie-storage.strategy.d.ts +0 -20
- package/storage/lib/strategies/memory-storage.strategy.d.ts +0 -11
- package/storage/lib/strategies/polyfill-storage.strategy.d.ts +0 -15
- package/storage/public_api.d.ts +0 -7
- package/table/lib/components/table/table.component.d.ts +0 -57
- package/table/lib/components/table-cell/table-cell.component.d.ts +0 -5
- package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +0 -26
- package/table/lib/components/table-pager/table-pager.component.d.ts +0 -40
- package/table/lib/data/datasource.data.d.ts +0 -14
- package/table/lib/data/generic.data.d.ts +0 -25
- package/table/lib/interfaces/datasource.interface.d.ts +0 -17
- package/table/lib/interfaces/table.interfaces.d.ts +0 -11
- package/table/lib/table.config.d.ts +0 -3
- package/table/lib/table.module.d.ts +0 -10
- package/table/public_api.d.ts +0 -10
- package/tooltip/lib/tooltip-container/tooltip-container.component.d.ts +0 -9
- package/tooltip/lib/tooltip.directive.d.ts +0 -23
- package/tooltip/lib/tooltip.interfaces.d.ts +0 -4
- package/tooltip/lib/tooltip.module.d.ts +0 -7
- package/tooltip/public_api.d.ts +0 -4
- package/utils/lib/directives/autosize.directive.d.ts +0 -19
- package/utils/lib/directives/focus-trap.directive.d.ts +0 -14
- package/utils/lib/directives/focus.directive.d.ts +0 -16
- package/utils/lib/directives/template.directive.d.ts +0 -10
- package/utils/lib/utils.module.d.ts +0 -10
- package/utils/public_api.d.ts +0 -5
package/auth/public_api.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './lib/interfaces/token.interface';
|
|
2
|
-
export * from './lib/interfaces/config.interface';
|
|
3
|
-
export * from './lib/interfaces/provider.interface';
|
|
4
|
-
export * from './lib/tokens/use-authorization.token';
|
|
5
|
-
export * from './lib/helpers/jwt.helper';
|
|
6
|
-
export * from './lib/directives/authenticated.directive';
|
|
7
|
-
export * from './lib/directives/anonymous.directive';
|
|
8
|
-
export * from './lib/guards/anonymous.guard';
|
|
9
|
-
export * from './lib/guards/authenticated.guard';
|
|
10
|
-
export * from './lib/providers/email.provider';
|
|
11
|
-
export * from './lib/providers/verify.provider';
|
|
12
|
-
export * from './lib/acting.service';
|
|
13
|
-
export * from './lib/acting.interceptor';
|
|
14
|
-
export * from './lib/auth.session';
|
|
15
|
-
export * from './lib/auth.service';
|
|
16
|
-
export * from './lib/auth.config';
|
|
17
|
-
export * from './lib/auth.module';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ArrayCollectionStringKeys } from '../interfaces/array-collection.interface';
|
|
2
|
-
import { CollectionRequestSort } from '../interfaces/collection.interface';
|
|
3
|
-
export declare class ArrayCollection<T> {
|
|
4
|
-
protected value: T[];
|
|
5
|
-
constructor(value: T[]);
|
|
6
|
-
search(query: string, fields: ArrayCollectionStringKeys<T>[]): this;
|
|
7
|
-
sortBy(sort: CollectionRequestSort<keyof T> | CollectionRequestSort<keyof T>[], sortables: Partial<Record<ArrayCollectionStringKeys<T>, 'string' | 'number'>>): this;
|
|
8
|
-
toPage(pageNumber: number, pageSize: number): {
|
|
9
|
-
totalPages: number;
|
|
10
|
-
totalEntries: number;
|
|
11
|
-
pageSize: number;
|
|
12
|
-
pageNumber: number;
|
|
13
|
-
data: T[];
|
|
14
|
-
};
|
|
15
|
-
toArray(): T[];
|
|
16
|
-
protected normalizeValueAsString(value: unknown): string;
|
|
17
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CollectionData, CollectionRequest, CollectionRequestSort } from './interfaces/collection.interface';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { CollectionProvider } from './providers/collection.provider';
|
|
4
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
-
export declare const enum CollectionState {
|
|
6
|
-
Initial = "initial",
|
|
7
|
-
Error = "error",
|
|
8
|
-
Empty = "empty",
|
|
9
|
-
Data = "data"
|
|
10
|
-
}
|
|
11
|
-
export declare class Collection<T> {
|
|
12
|
-
private readonly _provider;
|
|
13
|
-
readonly _initialValues: Partial<CollectionRequest>;
|
|
14
|
-
readonly queryControl: FormControl<string | null>;
|
|
15
|
-
readonly queryFieldsControl: FormControl<string[]>;
|
|
16
|
-
readonly pageNumberControl: FormControl<number>;
|
|
17
|
-
readonly pageSizeControl: FormControl<number>;
|
|
18
|
-
readonly sortControl: FormControl<CollectionRequestSort | CollectionRequestSort[]>;
|
|
19
|
-
readonly data$: Observable<{
|
|
20
|
-
response?: CollectionData<T>;
|
|
21
|
-
request?: CollectionRequest;
|
|
22
|
-
error?: Error;
|
|
23
|
-
state: CollectionState;
|
|
24
|
-
loading: boolean;
|
|
25
|
-
initial: boolean;
|
|
26
|
-
}>;
|
|
27
|
-
readonly raw$: BehaviorSubject<CollectionData<T>>;
|
|
28
|
-
readonly loading$: BehaviorSubject<boolean>;
|
|
29
|
-
private _formatter;
|
|
30
|
-
private _refresh$;
|
|
31
|
-
constructor(_provider: CollectionProvider<T>, _initialValues?: Partial<CollectionRequest>);
|
|
32
|
-
refresh(): void;
|
|
33
|
-
setFormatter(callback: (items: T[]) => T[] | Observable<T[]>): this;
|
|
34
|
-
private getData;
|
|
35
|
-
private formatResponse;
|
|
36
|
-
private getState;
|
|
37
|
-
private cacheCollectionData;
|
|
38
|
-
private get request();
|
|
39
|
-
private getQueryObservable;
|
|
40
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export declare const COLLECTIONS_CONFIG: InjectionToken<CollectionsConfig>;
|
|
3
|
-
export interface CollectionsConfig {
|
|
4
|
-
icons?: {
|
|
5
|
-
actionsSearch?: string;
|
|
6
|
-
actionsClose?: string;
|
|
7
|
-
pagerArrowPrevious?: string;
|
|
8
|
-
pagerArrowNext?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/collections-viewer/collections-viewer.component";
|
|
3
|
-
import * as i2 from "./components/collections-pager/collections-pager.component";
|
|
4
|
-
import * as i3 from "./components/collections-table/collections-table.component";
|
|
5
|
-
import * as i4 from "./components/collections-table-sorting/collections-table-sorting.component";
|
|
6
|
-
import * as i5 from "./components/collections-table-label/collections-table-label.component";
|
|
7
|
-
import * as i6 from "./components/collections-grid/collections-grid.component";
|
|
8
|
-
import * as i7 from "./components/collections-actions/collections-actions.component";
|
|
9
|
-
import * as i8 from "./directives/collections-data.directive";
|
|
10
|
-
import * as i9 from "./directives/collections-data-row.directive";
|
|
11
|
-
import * as i10 from "./directives/collections-empty.directive";
|
|
12
|
-
import * as i11 from "./directives/collections-error.directive";
|
|
13
|
-
import * as i12 from "./directives/collections-initial.directive";
|
|
14
|
-
import * as i13 from "./directives/collections-item.directive";
|
|
15
|
-
export declare class CollectionsModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CollectionsModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CollectionsModule, never, [typeof i1.BbCollectionsViewer, typeof i2.BbCollectionsPager, typeof i3.BbCollectionsTable, typeof i4.BbCollectionsTableSorting, typeof i5.BbCollectionsTableLabel, typeof i6.BbCollectionsGrid, typeof i7.BbCollectionsActions, typeof i8.BbCollectionsData, typeof i9.BbCollectionsDataRow, typeof i10.BbCollectionsEmpty, typeof i11.BbCollectionsError, typeof i12.BbCollectionsInitial, typeof i13.BbCollectionsItem], [typeof i1.BbCollectionsViewer, typeof i2.BbCollectionsPager, typeof i3.BbCollectionsTable, typeof i4.BbCollectionsTableSorting, typeof i5.BbCollectionsTableLabel, typeof i6.BbCollectionsGrid, typeof i7.BbCollectionsActions, typeof i8.BbCollectionsData, typeof i9.BbCollectionsDataRow, typeof i10.BbCollectionsEmpty, typeof i11.BbCollectionsError, typeof i12.BbCollectionsInitial, typeof i13.BbCollectionsItem]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CollectionsModule>;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Collection } from '../../collection';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsActions<T> {
|
|
4
|
-
private readonly _config?;
|
|
5
|
-
readonly searchIconName: string;
|
|
6
|
-
readonly closeIconName: string;
|
|
7
|
-
collection: Collection<T> | null;
|
|
8
|
-
queryPlaceholder: string | null;
|
|
9
|
-
standalone: boolean;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsActions<any>, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsActions<any>, "bb-collections-actions", never, { "collection": { "alias": "collection"; "required": true; }; "queryPlaceholder": { "alias": "queryPlaceholder"; "required": false; }; "standalone": { "alias": "standalone"; "required": false; }; }, {}, never, ["[data-collections-action]", "*"], true, never>;
|
|
12
|
-
static ngAcceptInputType_standalone: unknown;
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { BbCollectionsItemContext } from '../../directives/collections-item.directive';
|
|
3
|
-
import { Collection } from '../../collection';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BbCollectionsGrid<T> {
|
|
7
|
-
readonly collection$: BehaviorSubject<Collection<T>>;
|
|
8
|
-
itemTemplate?: TemplateRef<BbCollectionsItemContext<T>>;
|
|
9
|
-
queryPlaceholder: string | null;
|
|
10
|
-
hideActions: boolean;
|
|
11
|
-
hidePager: boolean;
|
|
12
|
-
set collection(collection: Collection<T>);
|
|
13
|
-
get collection(): Collection<T>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsGrid<any>, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsGrid<any>, "bb-collections-grid", never, { "queryPlaceholder": { "alias": "queryPlaceholder"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hidePager": { "alias": "hidePager"; "required": false; }; "collection": { "alias": "collection"; "required": true; }; }, {}, ["itemTemplate"], ["[data-collections-action]", "[data-collections-row]"], true, never>;
|
|
16
|
-
static ngAcceptInputType_hideActions: unknown;
|
|
17
|
-
static ngAcceptInputType_hidePager: unknown;
|
|
18
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Collection } from '../../collection';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BbCollectionsPager implements OnInit, OnDestroy {
|
|
6
|
-
private readonly _config?;
|
|
7
|
-
readonly arrowPreviousIconName: string;
|
|
8
|
-
readonly arrowNextIconName: string;
|
|
9
|
-
set maxAmountOfButtons(value: number);
|
|
10
|
-
get maxAmountOfButtons(): number;
|
|
11
|
-
set collection(collection: Collection<unknown> | null);
|
|
12
|
-
get collection(): Collection<unknown> | null;
|
|
13
|
-
data$: Observable<{
|
|
14
|
-
start?: number;
|
|
15
|
-
end?: number;
|
|
16
|
-
totalEntries?: number;
|
|
17
|
-
totalPages?: number;
|
|
18
|
-
pageNumber?: number;
|
|
19
|
-
pages?: {
|
|
20
|
-
page: number;
|
|
21
|
-
active: boolean;
|
|
22
|
-
}[];
|
|
23
|
-
}>;
|
|
24
|
-
private _collection;
|
|
25
|
-
private _subscription;
|
|
26
|
-
private _cache$;
|
|
27
|
-
private _maxAmountOfButtons$;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
setPage(pageNumber: number, totalPages: number): void;
|
|
31
|
-
private setData;
|
|
32
|
-
private observeCollectionChanges;
|
|
33
|
-
private calculatePages;
|
|
34
|
-
private filterActivePages;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsPager, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsPager, "bb-collections-pager", never, { "maxAmountOfButtons": { "alias": "maxAmountOfButtons"; "required": false; }; "collection": { "alias": "collection"; "required": true; }; }, {}, never, never, true, never>;
|
|
37
|
-
static ngAcceptInputType_maxAmountOfButtons: unknown;
|
|
38
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { BbCollectionsDataRowContext } from '../../directives/collections-data-row.directive';
|
|
3
|
-
import { BbCollectionsDataContext } from '../../directives/collections-data.directive';
|
|
4
|
-
import { Collection } from '../../collection';
|
|
5
|
-
import { BehaviorSubject } from 'rxjs';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class BbCollectionsTable<T = any> {
|
|
8
|
-
readonly collection$: BehaviorSubject<Collection<T>>;
|
|
9
|
-
dataTemplate?: TemplateRef<BbCollectionsDataContext<T>>;
|
|
10
|
-
dataRowTemplate?: TemplateRef<BbCollectionsDataRowContext<T>>;
|
|
11
|
-
queryPlaceholder: string | null;
|
|
12
|
-
emptyContent: string | TemplateRef<any> | null;
|
|
13
|
-
noResultsContent: string | TemplateRef<any> | null;
|
|
14
|
-
errorContent: string | TemplateRef<any> | null;
|
|
15
|
-
trackByProperty: string | null;
|
|
16
|
-
includeVerticalLines: boolean;
|
|
17
|
-
hideActions: boolean;
|
|
18
|
-
hidePager: boolean;
|
|
19
|
-
set collection(collection: Collection<T>);
|
|
20
|
-
get collection(): Collection<T>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsTable<any>, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsTable<any>, "bb-collections-table", never, { "queryPlaceholder": { "alias": "queryPlaceholder"; "required": false; }; "emptyContent": { "alias": "emptyContent"; "required": false; }; "noResultsContent": { "alias": "noResultsContent"; "required": false; }; "errorContent": { "alias": "errorContent"; "required": false; }; "trackByProperty": { "alias": "trackByProperty"; "required": false; }; "includeVerticalLines": { "alias": "includeVerticalLines"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hidePager": { "alias": "hidePager"; "required": false; }; "collection": { "alias": "collection"; "required": true; }; }, {}, ["dataTemplate", "dataRowTemplate"], ["[data-collections-action]", "[data-collections-row]", "[data-collections-header]", "thead", "tfoot"], true, never>;
|
|
23
|
-
static ngAcceptInputType_includeVerticalLines: unknown;
|
|
24
|
-
static ngAcceptInputType_hideActions: unknown;
|
|
25
|
-
static ngAcceptInputType_hidePager: unknown;
|
|
26
|
-
}
|
package/collections/lib/components/collections-table-label/collections-table-label.component.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsTableLabel {
|
|
4
|
-
titleLabel: string | TemplateRef<any> | null;
|
|
5
|
-
descriptionLabel: string | TemplateRef<any> | null;
|
|
6
|
-
imageUrl: string | null;
|
|
7
|
-
alt: string | null;
|
|
8
|
-
type: 'image' | 'avatar' | 'content';
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsTableLabel, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsTableLabel, "[bb-collections-table-label]", never, { "titleLabel": { "alias": "titleLabel"; "required": true; }; "descriptionLabel": { "alias": "descriptionLabel"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BbCollectionsTable } from '../collections-table/collections-table.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BbCollectionsTableSorting implements OnInit, OnDestroy {
|
|
5
|
-
private _name;
|
|
6
|
-
private _changeDetectorRef;
|
|
7
|
-
private _parent?;
|
|
8
|
-
readonly orderedOptions: [null, 'asc', 'desc'];
|
|
9
|
-
direction: 'asc' | 'desc' | null;
|
|
10
|
-
private _subscription;
|
|
11
|
-
constructor(_name: string, _changeDetectorRef: ChangeDetectorRef, _parent?: BbCollectionsTable<unknown>);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
onClick(): void;
|
|
15
|
-
private getNextOption;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsTableSorting, [{ attribute: "bb-collections-table-sorting"; }, null, { optional: true; }]>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsTableSorting, "th[bb-collections-table-sorting]", never, {}, {}, never, ["*"], true, never>;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { BbCollectionsInitialContext } from '../../directives/collections-initial.directive';
|
|
3
|
-
import { BbCollectionsErrorContext } from '../../directives/collections-error.directive';
|
|
4
|
-
import { BbCollectionsEmptyContext } from '../../directives/collections-empty.directive';
|
|
5
|
-
import { BbCollectionsDataContext } from '../../directives/collections-data.directive';
|
|
6
|
-
import { Collection } from '../../collection';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class BbCollectionsViewer<T = unknown> {
|
|
9
|
-
dataTemplate?: TemplateRef<BbCollectionsDataContext<T>>;
|
|
10
|
-
emptyTemplate?: TemplateRef<BbCollectionsEmptyContext<T>>;
|
|
11
|
-
errorTemplate?: TemplateRef<BbCollectionsErrorContext<T>>;
|
|
12
|
-
initialTemplate?: TemplateRef<BbCollectionsInitialContext<T>>;
|
|
13
|
-
collection: Collection<T> | null;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsViewer<any>, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCollectionsViewer<any>, "[bb-collections-viewer]", never, { "collection": { "alias": "collection"; "required": false; }; }, {}, ["dataTemplate", "emptyTemplate", "errorTemplate", "initialTemplate"], never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsDataRowContext<T> {
|
|
4
|
-
item: T;
|
|
5
|
-
$implicit: T;
|
|
6
|
-
constructor(item: T);
|
|
7
|
-
}
|
|
8
|
-
export declare class BbCollectionsDataRow<T> {
|
|
9
|
-
template: TemplateRef<BbCollectionsDataRowContext<T>>;
|
|
10
|
-
constructor(template: TemplateRef<BbCollectionsDataRowContext<T>>);
|
|
11
|
-
static ngTemplateContextGuard<T>(dir: BbCollectionsDataRow<T>, ctx: unknown): ctx is BbCollectionsDataRowContext<T>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsDataRow<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCollectionsDataRow<any>, "ng-template[bbCollectionsDataRow]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsDataContext<T> {
|
|
4
|
-
items: T[];
|
|
5
|
-
loading: boolean;
|
|
6
|
-
constructor(items: T[], loading: boolean);
|
|
7
|
-
}
|
|
8
|
-
export declare class BbCollectionsData<T> {
|
|
9
|
-
template: TemplateRef<BbCollectionsDataContext<T>>;
|
|
10
|
-
constructor(template: TemplateRef<BbCollectionsDataContext<T>>);
|
|
11
|
-
static ngTemplateContextGuard<T>(dir: BbCollectionsData<T>, ctx: unknown): ctx is BbCollectionsDataContext<T>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsData<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCollectionsData<any>, "ng-template[bbCollectionsData]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsEmptyContext<T> {
|
|
4
|
-
query: string;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
constructor(query: string, loading: boolean);
|
|
7
|
-
}
|
|
8
|
-
export declare class BbCollectionsEmpty<T> {
|
|
9
|
-
template: TemplateRef<BbCollectionsEmptyContext<T>>;
|
|
10
|
-
constructor(template: TemplateRef<BbCollectionsEmptyContext<T>>);
|
|
11
|
-
static ngTemplateContextGuard<T>(dir: BbCollectionsEmpty<T>, ctx: unknown): ctx is BbCollectionsEmptyContext<T>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsEmpty<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCollectionsEmpty<any>, "ng-template[bbCollectionsEmpty]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsErrorContext<T> {
|
|
4
|
-
error: Error;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
constructor(error: Error, loading: boolean);
|
|
7
|
-
}
|
|
8
|
-
export declare class BbCollectionsError<T> {
|
|
9
|
-
template: TemplateRef<BbCollectionsErrorContext<T>>;
|
|
10
|
-
constructor(template: TemplateRef<BbCollectionsErrorContext<T>>);
|
|
11
|
-
static ngTemplateContextGuard<T>(dir: BbCollectionsError<T>, ctx: unknown): ctx is BbCollectionsErrorContext<T>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsError<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCollectionsError<any>, "ng-template[bbCollectionsError]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsInitialContext<T> {
|
|
4
|
-
}
|
|
5
|
-
export declare class BbCollectionsInitial<T> {
|
|
6
|
-
template: TemplateRef<BbCollectionsInitialContext<T>>;
|
|
7
|
-
constructor(template: TemplateRef<BbCollectionsInitialContext<T>>);
|
|
8
|
-
static ngTemplateContextGuard<T>(dir: BbCollectionsInitial<T>, ctx: unknown): ctx is BbCollectionsInitialContext<T>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsInitial<any>, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCollectionsInitial<any>, "ng-template[bbCollectionsInitial]", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbCollectionsItemContext<T> {
|
|
4
|
-
item: T;
|
|
5
|
-
$implicit: T;
|
|
6
|
-
constructor(item: T);
|
|
7
|
-
}
|
|
8
|
-
export declare class BbCollectionsItem<T> {
|
|
9
|
-
template: TemplateRef<BbCollectionsItemContext<T>>;
|
|
10
|
-
constructor(template: TemplateRef<BbCollectionsItemContext<T>>);
|
|
11
|
-
static ngTemplateContextGuard<T>(dir: BbCollectionsItem<T>, ctx: unknown): ctx is BbCollectionsItemContext<T>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCollectionsItem<any>, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbCollectionsItem<any>, "ng-template[bbCollectionsItem]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Collection } from '../collection';
|
|
2
|
-
export interface CollectionRequest {
|
|
3
|
-
pageNumber: number;
|
|
4
|
-
pageSize: number;
|
|
5
|
-
query: string | null;
|
|
6
|
-
queryFields: string[];
|
|
7
|
-
sort: CollectionRequestSort | CollectionRequestSort[];
|
|
8
|
-
}
|
|
9
|
-
export interface CollectionRequestSort<T = string> {
|
|
10
|
-
name: T;
|
|
11
|
-
direction: 'asc' | 'desc';
|
|
12
|
-
}
|
|
13
|
-
export interface CollectionData<T> {
|
|
14
|
-
pageNumber: number;
|
|
15
|
-
pageSize: number;
|
|
16
|
-
totalPages: number;
|
|
17
|
-
totalEntries: number;
|
|
18
|
-
data: T[];
|
|
19
|
-
raw?: any;
|
|
20
|
-
}
|
|
21
|
-
export interface CollectionApiResponse<T> {
|
|
22
|
-
page_number: number;
|
|
23
|
-
page_size: number;
|
|
24
|
-
total_pages: number;
|
|
25
|
-
total_entries: number;
|
|
26
|
-
data: T[];
|
|
27
|
-
[key: string]: unknown;
|
|
28
|
-
}
|
|
29
|
-
export type CollectionApiParams = string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
30
|
-
export interface CollectionContext<T> {
|
|
31
|
-
collection: Collection<T>;
|
|
32
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CollectionApiResponse, CollectionData, CollectionApiParams, CollectionRequest, CollectionContext } from '../interfaces/collection.interface';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { CollectionProvider } from './collection.provider';
|
|
4
|
-
import { HttpClient } from '@angular/common/http';
|
|
5
|
-
export declare class ApiCollectionProvider<T> extends CollectionProvider<T> {
|
|
6
|
-
protected readonly endpoint: string | Observable<string>;
|
|
7
|
-
protected readonly httpClient: HttpClient;
|
|
8
|
-
protected extraParams: Record<string, Observable<CollectionApiParams>>;
|
|
9
|
-
protected extraObjectParams: Observable<Record<string, CollectionApiParams>>[];
|
|
10
|
-
constructor(endpoint: string | Observable<string>, httpClient: HttpClient);
|
|
11
|
-
append(name: string, value: CollectionApiParams | Observable<CollectionApiParams>): this;
|
|
12
|
-
appendObject(value: Record<string, CollectionApiParams> | Observable<Record<string, CollectionApiParams>>): void;
|
|
13
|
-
transform(request: CollectionRequest, context: CollectionContext<T>): Observable<CollectionData<T>>;
|
|
14
|
-
protected validateParams(request: Record<string, CollectionApiParams>, context: CollectionContext<T>): Record<string, CollectionApiParams>;
|
|
15
|
-
protected getExtraParams(params: Record<string, Observable<CollectionApiParams>>): Observable<{}>;
|
|
16
|
-
protected getExtraObjectParams(params$: Observable<Record<string, CollectionApiParams>>[]): Observable<{}>;
|
|
17
|
-
protected formatToCollectionData(response: CollectionApiResponse<T> | T[]): CollectionData<T>;
|
|
18
|
-
protected getBackendFormat(request: CollectionRequest): {};
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CollectionApiParams, CollectionContext, CollectionData, CollectionRequest } from '../interfaces/collection.interface';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare abstract class CollectionProvider<T> {
|
|
4
|
-
protected cachedRequestParams: Record<string, CollectionApiParams> | null;
|
|
5
|
-
abstract transform(request: CollectionRequest, context: CollectionContext<T>): Observable<CollectionData<T>>;
|
|
6
|
-
protected validateParams(request: Record<string, CollectionApiParams>, _context: CollectionContext<T>): Record<string, CollectionApiParams>;
|
|
7
|
-
protected formatArrayToCollectionData(items: T[]): CollectionData<T>;
|
|
8
|
-
protected deepCompare(value1: unknown, value2: unknown): boolean;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ArrayCollectionOptions } from '../interfaces/array-collection.interface';
|
|
2
|
-
import { CollectionRequest } from '../interfaces/collection.interface';
|
|
3
|
-
import { CollectionProvider } from './collection.provider';
|
|
4
|
-
export declare class LocalCollectionProvider<T> extends CollectionProvider<T> {
|
|
5
|
-
private _options?;
|
|
6
|
-
private _items$;
|
|
7
|
-
constructor(items: T[], _options?: ArrayCollectionOptions<T>);
|
|
8
|
-
update(value: T[]): void;
|
|
9
|
-
transform(request: CollectionRequest): import("rxjs").Observable<{
|
|
10
|
-
totalPages: number;
|
|
11
|
-
totalEntries: number;
|
|
12
|
-
pageSize: number;
|
|
13
|
-
pageNumber: number;
|
|
14
|
-
data: T[];
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export * from './lib/interfaces/collection.interface';
|
|
2
|
-
export * from './lib/interfaces/array-collection.interface';
|
|
3
|
-
export * from './lib/providers/collection.provider';
|
|
4
|
-
export * from './lib/providers/api-collection.provider';
|
|
5
|
-
export * from './lib/providers/local-collection.provider';
|
|
6
|
-
export * from './lib/directives/collections-data.directive';
|
|
7
|
-
export * from './lib/directives/collections-data-row.directive';
|
|
8
|
-
export * from './lib/directives/collections-empty.directive';
|
|
9
|
-
export * from './lib/directives/collections-error.directive';
|
|
10
|
-
export * from './lib/directives/collections-initial.directive';
|
|
11
|
-
export * from './lib/directives/collections-item.directive';
|
|
12
|
-
export * from './lib/components/collections-viewer/collections-viewer.component';
|
|
13
|
-
export * from './lib/components/collections-pager/collections-pager.component';
|
|
14
|
-
export * from './lib/components/collections-table/collections-table.component';
|
|
15
|
-
export * from './lib/components/collections-table-sorting/collections-table-sorting.component';
|
|
16
|
-
export * from './lib/components/collections-table-label/collections-table-label.component';
|
|
17
|
-
export * from './lib/components/collections-grid/collections-grid.component';
|
|
18
|
-
export * from './lib/components/collections-actions/collections-actions.component';
|
|
19
|
-
export * from './lib/classes/array.collection';
|
|
20
|
-
export * from './lib/collection';
|
|
21
|
-
export * from './lib/collections.module';
|
|
22
|
-
export * from './lib/collections.interfaces';
|
|
23
|
-
export * from './lib/collections.config';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
3
|
-
import { BbCombobox } from './combobox.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BbComboboxContainer implements OnInit, OnDestroy {
|
|
6
|
-
private _overlay;
|
|
7
|
-
private _combobox;
|
|
8
|
-
private _viewContainerRef;
|
|
9
|
-
private _elementRef;
|
|
10
|
-
private _window;
|
|
11
|
-
private _overlayRef;
|
|
12
|
-
private _subscription;
|
|
13
|
-
constructor(_overlay: Overlay, _combobox: BbCombobox, _viewContainerRef: ViewContainerRef, _elementRef: ElementRef<HTMLElement>, _window: Window);
|
|
14
|
-
get width(): number;
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
toggle(): void;
|
|
18
|
-
open(): void;
|
|
19
|
-
close(): void;
|
|
20
|
-
private getPositionStrategy;
|
|
21
|
-
private getPositions;
|
|
22
|
-
private resize;
|
|
23
|
-
private createOverlay;
|
|
24
|
-
private handleBackdropClick;
|
|
25
|
-
private handleResizing;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbComboboxContainer, [null, null, null, null, { optional: true; }]>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbComboboxContainer, "[bbComboboxContainer]", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ComboboxItem, ComboboxOptionContext } from '../combobox.interface';
|
|
4
|
-
import { BbComboboxLabel } from '../combobox-label.directive';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BbCombobox<T = unknown> implements OnInit, OnDestroy {
|
|
7
|
-
labelComponent?: TemplateRef<BbComboboxLabel>;
|
|
8
|
-
optionTemplate?: TemplateRef<ComboboxOptionContext>;
|
|
9
|
-
value: T | null;
|
|
10
|
-
bindLabel: string | null;
|
|
11
|
-
bindValue: string | null;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
set data(items: T[] | Observable<T[]>);
|
|
14
|
-
get data(): T[] | Observable<T[]>;
|
|
15
|
-
valueChange: EventEmitter<T>;
|
|
16
|
-
items$: Observable<ComboboxItem<T>[]>;
|
|
17
|
-
onChange: (newValue: T) => void;
|
|
18
|
-
onTouched: () => void;
|
|
19
|
-
private _cache$;
|
|
20
|
-
private _dataSubscription;
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
registerOnChange(fn: (newValue: T) => void): void;
|
|
24
|
-
registerOnTouched(fn: () => void): void;
|
|
25
|
-
setDisabledState(isDisabled: boolean): void;
|
|
26
|
-
writeValue(newValue: T): void;
|
|
27
|
-
select(value: T): void;
|
|
28
|
-
private setItems;
|
|
29
|
-
private createComboboxItem;
|
|
30
|
-
private setCache;
|
|
31
|
-
private handleData;
|
|
32
|
-
private handleDataObservable;
|
|
33
|
-
private emitChangeEvent;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbCombobox<any>, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbCombobox<any>, "bb-combobox", never, { "value": { "alias": "value"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "valueChange": "valueChange"; }, ["labelComponent", "optionTemplate"], never, true, never>;
|
|
36
|
-
static ngAcceptInputType_disabled: unknown;
|
|
37
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComboboxOptionContext } from './combobox.interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BbComboboxOption {
|
|
4
|
-
static ngTemplateContextGuard(directive: BbComboboxOption, context: unknown): context is ComboboxOptionContext;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbComboboxOption, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BbComboboxOption, "ng-template[bbComboboxOption]", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const comboboxPanelAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { BbComboboxContainer } from '../combobox/combobox-container.directive';
|
|
3
|
-
import { ComboboxItem, ComboboxOptionContext } from '../combobox.interface';
|
|
4
|
-
import { BbCombobox } from '../combobox/combobox.component';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/cdk/a11y";
|
|
8
|
-
export declare class BbComboboxPanel {
|
|
9
|
-
private _combobox;
|
|
10
|
-
private _container;
|
|
11
|
-
readonly items$: Observable<ComboboxItem<unknown>[]>;
|
|
12
|
-
readonly optionTemplate: TemplateRef<ComboboxOptionContext>;
|
|
13
|
-
animation: boolean;
|
|
14
|
-
constructor(_combobox: BbCombobox, _container: BbComboboxContainer);
|
|
15
|
-
select(item: ComboboxItem<unknown>): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbComboboxPanel, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbComboboxPanel, "bb-combobox-panel", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkTrapFocus; inputs: {}; outputs: {}; }]>;
|
|
18
|
-
}
|
package/combobox/public_api.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BbDashboardSidebar } from '../dashboard-sidebar/dashboard-sidebar.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BbDashboard implements OnInit, OnDestroy {
|
|
5
|
-
private readonly _patch;
|
|
6
|
-
private readonly _platform;
|
|
7
|
-
private readonly _renderer;
|
|
8
|
-
sidebar?: BbDashboardSidebar;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
maxWidth: string;
|
|
11
|
-
padding: string;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
private setHtmlClass;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BbDashboard, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbDashboard, "bb-dashboard", never, { "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; }, {}, ["sidebar"], ["bb-dashboard-sidebar", "bb-dashboard-header", "bb-dashboard-menu", "*", "bb-dashboard-footer"], true, never>;
|
|
17
|
-
}
|