@theseam/ui-common 0.4.10 → 0.4.12
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/buttons/badge-button/badge-button.component.d.ts +7 -7
- package/buttons/button/button.component.d.ts +6 -6
- package/buttons/buttons.module.d.ts +1 -1
- package/buttons/progress-circle-button/progress-circle-button.component.d.ts +4 -4
- package/buttons/toggle-button/toggle-button.component.d.ts +4 -4
- package/esm2020/buttons/badge-button/badge-button.component.mjs +10 -10
- package/esm2020/buttons/button/button.component.mjs +9 -9
- package/esm2020/buttons/buttons.module.mjs +29 -29
- package/esm2020/buttons/progress-circle-button/progress-circle-button.component.mjs +10 -10
- package/esm2020/buttons/toggle-button/toggle-button.component.mjs +8 -8
- package/esm2020/carousel/carousel.component.mjs +3 -2
- package/esm2020/datatable/datatable-export-button/datatable-export-button.component.mjs +1 -1
- package/esm2020/framework/dashboard/dashboard-widgets/dashboard-widgets.component.mjs +1 -1
- package/esm2020/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.mjs +1 -1
- package/esm2020/framework/side-nav/side-nav-item/side-nav-item.component.mjs +11 -3
- package/esm2020/framework/side-nav/side-nav.component.mjs +29 -4
- package/esm2020/framework/side-nav/side-nav.models.mjs +1 -1
- package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.mjs +3 -3
- package/esm2020/loading/loading/loading.component.mjs +5 -5
- package/esm2020/loading/loading-overlay.service.mjs +3 -3
- package/esm2020/loading/loading.module.mjs +6 -6
- package/esm2020/services/preferences/preferences-accessor.mjs +1 -1
- package/esm2020/services/preferences/preferences-manager.service.mjs +1 -1
- package/esm2020/services/preferences/preferences-record.mjs +1 -1
- package/esm2020/services/preferences/preferences.models.mjs +1 -1
- package/esm2020/story-helpers/arg-type-helpers.mjs +5 -9
- package/esm2020/story-helpers/story-preferences-accessor.service.mjs +1 -1
- package/esm2020/testing/get-harness.mjs +8 -2
- package/esm2020/testing/story-expect.mjs +3 -2
- package/esm2020/toggle-edit/toggle-edit.component.mjs +1 -1
- package/esm2020/utils/geo-json/coerce-feature-collection.mjs +1 -1
- package/esm2020/utils/geo-json/is-feature-collection.validator.mjs +1 -1
- package/esm2020/utils/geo-json/is-only-geometry-types.mjs +1 -1
- package/esm2020/utils/geo-json/merge-polygons.mjs +1 -1
- package/esm2020/utils/geo-json/no-inner-rings.validator.mjs +1 -1
- package/esm2020/utils/geo-json/split-multi-polygons.mjs +1 -1
- package/esm2020/widget/preferences/widget-preferences.models.mjs +1 -1
- package/esm2020/widget/preferences/widget-preferences.service.mjs +1 -1
- package/esm2020/widget/preferences/widget-preferences.token.mjs +1 -1
- package/esm2020/widget/widget/widget.component.mjs +3 -3
- package/esm2020/widget/widget.models.mjs +1 -1
- package/fesm2015/theseam-ui-common-buttons.mjs +55 -55
- package/fesm2015/theseam-ui-common-buttons.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-carousel.mjs +2 -1
- package/fesm2015/theseam-ui-common-carousel.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-datatable.mjs +1 -1
- package/fesm2015/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-framework.mjs +41 -8
- package/fesm2015/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-google-maps.mjs +2 -2
- package/fesm2015/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-loading.mjs +10 -10
- package/fesm2015/theseam-ui-common-loading.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-services.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-story-helpers.mjs +4 -8
- package/fesm2015/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-testing.mjs +9 -2
- package/fesm2015/theseam-ui-common-testing.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-toggle-edit.mjs +1 -1
- package/fesm2015/theseam-ui-common-toggle-edit.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-utils.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-widget.mjs +2 -2
- package/fesm2015/theseam-ui-common-widget.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-buttons.mjs +55 -55
- package/fesm2020/theseam-ui-common-buttons.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-carousel.mjs +2 -1
- package/fesm2020/theseam-ui-common-carousel.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-datatable.mjs +1 -1
- package/fesm2020/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-framework.mjs +40 -7
- package/fesm2020/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-google-maps.mjs +2 -2
- package/fesm2020/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-loading.mjs +10 -10
- package/fesm2020/theseam-ui-common-loading.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-services.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-story-helpers.mjs +4 -8
- package/fesm2020/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-testing.mjs +9 -2
- package/fesm2020/theseam-ui-common-testing.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-toggle-edit.mjs +1 -1
- package/fesm2020/theseam-ui-common-toggle-edit.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-utils.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-widget.mjs +2 -2
- package/fesm2020/theseam-ui-common-widget.mjs.map +1 -1
- package/framework/side-nav/side-nav-item/side-nav-item.component.d.ts +5 -2
- package/framework/side-nav/side-nav.component.d.ts +6 -2
- package/framework/side-nav/side-nav.models.d.ts +12 -0
- package/loading/loading/loading.component.d.ts +3 -3
- package/loading/loading.module.d.ts +1 -1
- package/package.json +1 -1
- package/testing/get-harness.d.ts +2 -2
- package/testing/story-expect.d.ts +1 -0
|
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import type { SeamIcon } from '@theseam/ui-common/icon';
|
|
5
5
|
import type { ThemeTypes } from '@theseam/ui-common/models';
|
|
6
6
|
import { SideNavAccessor } from '../side-nav-tokens';
|
|
7
|
-
import { ISideNavItem } from '../side-nav.models';
|
|
7
|
+
import { ISideNavItem, SideNavItemMenuItemTooltipConfig } from '../side-nav.models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export interface SideNavItemBadgeTooltip {
|
|
10
10
|
tooltip?: string;
|
|
@@ -45,6 +45,7 @@ export declare class SideNavItemComponent implements OnDestroy {
|
|
|
45
45
|
get compact(): boolean;
|
|
46
46
|
private readonly _compact;
|
|
47
47
|
readonly compact$: Observable<boolean>;
|
|
48
|
+
isMobile: boolean | undefined | null;
|
|
48
49
|
badgeText: string | undefined | null;
|
|
49
50
|
badgeTheme: ThemeTypes | undefined | null;
|
|
50
51
|
/**
|
|
@@ -54,6 +55,8 @@ export declare class SideNavItemComponent implements OnDestroy {
|
|
|
54
55
|
get badgeTooltip(): string | SideNavItemBadgeTooltip | undefined | null;
|
|
55
56
|
set badgeTooltip(value: string | SideNavItemBadgeTooltip | undefined | null);
|
|
56
57
|
private _badgeTooltip;
|
|
58
|
+
menuItemTooltipConfig: SideNavItemMenuItemTooltipConfig | undefined | null;
|
|
59
|
+
menuItemTooltipDisabled: boolean | undefined | null;
|
|
57
60
|
get _isActiveCssClass(): boolean;
|
|
58
61
|
get _attrDataHierLevel(): number;
|
|
59
62
|
readonly childGroupAnimState$: Observable<string>;
|
|
@@ -64,5 +67,5 @@ export declare class SideNavItemComponent implements OnDestroy {
|
|
|
64
67
|
toggleChildren(): void;
|
|
65
68
|
_linkClicked(): void;
|
|
66
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavItemComponent, [null, { optional: true; host: true; skipSelf: true; }]>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavItemComponent, "seam-side-nav-item", ["seamSideNavItem"], { "itemType": "itemType"; "icon": "icon"; "label": "label"; "active": "active"; "link": "link"; "queryParams": "queryParams"; "children": "children"; "hierLevel": "hierLevel"; "indentSize": "indentSize"; "expanded": "expanded"; "compact": "compact"; "badgeText": "badgeText"; "badgeTheme": "badgeTheme"; "badgeSrContent": "badgeSrContent"; "badgeTooltip": "badgeTooltip"; }, {}, never, never, false, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavItemComponent, "seam-side-nav-item", ["seamSideNavItem"], { "itemType": "itemType"; "icon": "icon"; "label": "label"; "active": "active"; "link": "link"; "queryParams": "queryParams"; "children": "children"; "hierLevel": "hierLevel"; "indentSize": "indentSize"; "expanded": "expanded"; "compact": "compact"; "isMobile": "isMobile"; "badgeText": "badgeText"; "badgeTheme": "badgeTheme"; "badgeSrContent": "badgeSrContent"; "badgeTooltip": "badgeTooltip"; "menuItemTooltipConfig": "menuItemTooltipConfig"; "menuItemTooltipDisabled": "menuItemTooltipDisabled"; }, {}, never, never, false, never>;
|
|
68
71
|
}
|
|
@@ -4,7 +4,7 @@ import { EventEmitter, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '
|
|
|
4
4
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import { TheSeamLayoutService } from '@theseam/ui-common/layout';
|
|
6
6
|
import { ITheSeamBaseLayoutNav, ITheSeamBaseLayoutRef } from '../base-layout/index';
|
|
7
|
-
import { ISideNavItem } from './side-nav.models';
|
|
7
|
+
import { ISideNavItem, SideNavItemMenuItemTooltipConfig } from './side-nav.models';
|
|
8
8
|
import { TheSeamSideNavService } from './side-nav.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare function sideNavExpandStateChangeFn(fromState: string, toState: string): boolean;
|
|
@@ -29,6 +29,10 @@ export declare class SideNavComponent implements OnInit, OnDestroy, ITheSeamBase
|
|
|
29
29
|
set overlay(value: boolean);
|
|
30
30
|
private _overlay;
|
|
31
31
|
readonly overlay$: Observable<boolean>;
|
|
32
|
+
private _menuItemTooltipConfig;
|
|
33
|
+
get menuItemTooltipConfig(): SideNavItemMenuItemTooltipConfig | undefined | null;
|
|
34
|
+
set menuItemTooltipConfig(value: SideNavItemMenuItemTooltipConfig | undefined | null);
|
|
35
|
+
menuItemTooltipDisabled$: Observable<boolean> | undefined | null;
|
|
32
36
|
toggleExpand: EventEmitter<boolean>;
|
|
33
37
|
readonly isMobile$: Observable<boolean>;
|
|
34
38
|
readonly sideNavExpandedState$: Observable<string>;
|
|
@@ -44,5 +48,5 @@ export declare class SideNavComponent implements OnInit, OnDestroy, ITheSeamBase
|
|
|
44
48
|
animateStart(): void;
|
|
45
49
|
animateEnd(): void;
|
|
46
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideNavComponent, [null, null, null, { optional: true; }]>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavComponent, "seam-side-nav", never, { "hasHeaderToggle": "hasHeaderToggle"; "items": "items"; "expanded": "expanded"; "overlay": "overlay"; }, { "toggleExpand": "toggleExpand"; }, ["_sideBarFooterTpl"], never, false, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideNavComponent, "seam-side-nav", never, { "hasHeaderToggle": "hasHeaderToggle"; "items": "items"; "expanded": "expanded"; "overlay": "overlay"; "menuItemTooltipConfig": "menuItemTooltipConfig"; }, { "toggleExpand": "toggleExpand"; }, ["_sideBarFooterTpl"], never, false, never>;
|
|
48
52
|
}
|
|
@@ -62,3 +62,15 @@ export interface SideNavItemStateChanged {
|
|
|
62
62
|
prevValue: any;
|
|
63
63
|
newValue: any;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* When `never`, menu item tooltip is always disabled.
|
|
67
|
+
* When `always`, menu item tooltip is always enabled.
|
|
68
|
+
* When `collapseOnly`, menu item tooltip is enabled only when the sidenav is collapsed.
|
|
69
|
+
*/
|
|
70
|
+
export type SideNavItemMenuItemTooltipBehavior = 'never' | 'always' | 'collapseOnly';
|
|
71
|
+
export interface SideNavItemMenuItemTooltipConfig {
|
|
72
|
+
class?: string;
|
|
73
|
+
placement?: string;
|
|
74
|
+
container?: string;
|
|
75
|
+
behavior?: SideNavItemMenuItemTooltipBehavior;
|
|
76
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NgxLoadingConfig } from '@marklb/ngx-loading';
|
|
2
2
|
import type { TheSeamLoadingTheme } from '../loading.models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class TheSeamLoadingComponent {
|
|
5
5
|
set theme(value: TheSeamLoadingTheme);
|
|
6
6
|
_theme: NgxLoadingConfig;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamLoadingComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheSeamLoadingComponent, "seam-loading", never, { "theme": "theme"; }, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -8,6 +8,6 @@ import * as i5 from "@marklb/ngx-loading";
|
|
|
8
8
|
export declare const loadingForRoot: import("@angular/core").ModuleWithProviders<NgxLoadingModule>;
|
|
9
9
|
export declare class TheSeamLoadingModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamLoadingModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TheSeamLoadingModule, [typeof i1.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TheSeamLoadingModule, [typeof i1.TheSeamLoadingComponent], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.PortalModule, typeof i5.NgxLoadingModule], [typeof i1.TheSeamLoadingComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<TheSeamLoadingModule>;
|
|
13
13
|
}
|
package/package.json
CHANGED
package/testing/get-harness.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentHarness,
|
|
1
|
+
import { ComponentHarness, HarnessQuery } from '@angular/cdk/testing';
|
|
2
2
|
import { ComponentFixture } from '@angular/core/testing';
|
|
3
3
|
export interface GetHarnessOptions<TComponent = any> {
|
|
4
4
|
canvasElement?: HTMLElement;
|
|
5
5
|
fixture?: ComponentFixture<TComponent>;
|
|
6
6
|
}
|
|
7
|
-
export declare function getHarness<T extends ComponentHarness>(harnessType:
|
|
7
|
+
export declare function getHarness<T extends ComponentHarness>(harnessType: HarnessQuery<T>, options: GetHarnessOptions): Promise<T>;
|