@tylertech/forge 3.11.0 → 3.12.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/custom-elements.json +311 -145
- package/dist/app-bar/forge-app-bar.css +2 -0
- package/dist/button/forge-button.css +2 -0
- package/dist/checkbox/forge-checkbox.css +2 -0
- package/dist/chips/forge-chips.css +2 -0
- package/dist/floating-action-button/forge-floating-action-button.css +2 -0
- package/dist/icon-button/forge-icon-button.css +2 -0
- package/dist/lib.js +17 -17
- package/dist/lib.js.map +3 -3
- package/dist/list/forge-list.css +2 -0
- package/dist/radio/forge-radio.css +2 -0
- package/dist/skip-link/forge-skip-link.css +2 -0
- package/dist/state-layer/forge-state-layer.css +2 -0
- package/dist/switch/forge-switch.css +2 -0
- package/dist/vscode.html-custom-data.json +74 -59
- package/esm/accordion/accordion.d.ts +1 -1
- package/esm/accordion/accordion.js +1 -1
- package/esm/app-bar/app-bar/app-bar.d.ts +1 -1
- package/esm/app-bar/app-bar/app-bar.js +1 -1
- package/esm/autocomplete/autocomplete-core.js +16 -3
- package/esm/autocomplete/autocomplete.d.ts +1 -1
- package/esm/autocomplete/autocomplete.js +1 -1
- package/esm/avatar/avatar.d.ts +1 -1
- package/esm/avatar/avatar.js +1 -1
- package/esm/backdrop/backdrop.d.ts +1 -1
- package/esm/backdrop/backdrop.js +1 -1
- package/esm/badge/badge.d.ts +1 -1
- package/esm/badge/badge.js +1 -1
- package/esm/banner/banner.d.ts +1 -1
- package/esm/banner/banner.js +1 -1
- package/esm/button/button.d.ts +1 -6
- package/esm/button/button.js +1 -6
- package/esm/button-area/button-area.d.ts +1 -4
- package/esm/button-area/button-area.js +1 -4
- package/esm/button-toggle/button-toggle/button-toggle.d.ts +1 -1
- package/esm/button-toggle/button-toggle/button-toggle.js +1 -1
- package/esm/button-toggle/button-toggle-group/button-toggle-group.d.ts +1 -1
- package/esm/button-toggle/button-toggle-group/button-toggle-group.js +1 -1
- package/esm/chip-field/chip-field.d.ts +1 -1
- package/esm/chip-field/chip-field.js +1 -1
- package/esm/chips/chip/chip-adapter.d.ts +3 -0
- package/esm/chips/chip/chip-adapter.js +12 -2
- package/esm/chips/chip/chip-constants.d.ts +2 -0
- package/esm/chips/chip/chip-constants.js +2 -1
- package/esm/chips/chip/chip-core.d.ts +4 -0
- package/esm/chips/chip/chip-core.js +9 -0
- package/esm/chips/chip/chip.d.ts +4 -0
- package/esm/chips/chip/chip.js +8 -0
- package/esm/chips/chip-set/chip-set.d.ts +1 -1
- package/esm/chips/chip-set/chip-set.js +1 -1
- package/esm/circular-progress/circular-progress.d.ts +1 -2
- package/esm/circular-progress/circular-progress.js +1 -2
- package/esm/color-picker/color-picker.d.ts +1 -1
- package/esm/color-picker/color-picker.js +1 -1
- package/esm/date-picker/date-picker.d.ts +1 -1
- package/esm/date-picker/date-picker.js +1 -1
- package/esm/dialog/dialog.d.ts +1 -1
- package/esm/dialog/dialog.js +1 -1
- package/esm/divider/divider.d.ts +1 -1
- package/esm/divider/divider.js +1 -1
- package/esm/drawer/base/base-drawer-adapter.d.ts +2 -0
- package/esm/drawer/base/base-drawer-adapter.js +3 -0
- package/esm/drawer/base/base-drawer-core.js +3 -0
- package/esm/drawer/drawer/drawer.d.ts +1 -1
- package/esm/drawer/drawer/drawer.js +1 -1
- package/esm/drawer/modal-drawer/modal-drawer.d.ts +1 -1
- package/esm/drawer/modal-drawer/modal-drawer.js +1 -1
- package/esm/expansion-panel/expansion-panel.d.ts +1 -1
- package/esm/expansion-panel/expansion-panel.js +1 -1
- package/esm/field/field.d.ts +1 -2
- package/esm/field/field.js +1 -2
- package/esm/file-picker/file-picker.d.ts +2 -3
- package/esm/file-picker/file-picker.js +2 -3
- package/esm/floating-action-button/floating-action-button.d.ts +1 -1
- package/esm/floating-action-button/floating-action-button.js +1 -1
- package/esm/focus-indicator/focus-indicator.d.ts +1 -1
- package/esm/focus-indicator/focus-indicator.js +22 -21
- package/esm/icon/icon.d.ts +1 -1
- package/esm/icon/icon.js +1 -1
- package/esm/icon-button/icon-button.d.ts +1 -1
- package/esm/icon-button/icon-button.js +1 -1
- package/esm/inline-message/inline-message.d.ts +1 -1
- package/esm/inline-message/inline-message.js +1 -1
- package/esm/label/label.d.ts +1 -1
- package/esm/label/label.js +1 -1
- package/esm/label-value/label-value.d.ts +1 -1
- package/esm/label-value/label-value.js +1 -1
- package/esm/linear-progress/linear-progress.d.ts +1 -2
- package/esm/linear-progress/linear-progress.js +1 -2
- package/esm/list/list/list.d.ts +1 -1
- package/esm/list/list/list.js +1 -1
- package/esm/list/list-item/list-item-constants.js +1 -1
- package/esm/list-dropdown/list-dropdown-constants.d.ts +5 -1
- package/esm/list-dropdown/list-dropdown-utils.d.ts +3 -1
- package/esm/list-dropdown/list-dropdown-utils.js +41 -20
- package/esm/menu/menu-adapter.d.ts +2 -0
- package/esm/menu/menu-adapter.js +12 -8
- package/esm/menu/menu-constants.d.ts +1 -0
- package/esm/menu/menu-constants.js +3 -2
- package/esm/menu/menu-core.d.ts +5 -0
- package/esm/menu/menu-core.js +41 -2
- package/esm/menu/menu.d.ts +16 -1
- package/esm/menu/menu.js +14 -2
- package/esm/open-icon/open-icon.d.ts +2 -1
- package/esm/open-icon/open-icon.js +2 -1
- package/esm/overlay/overlay.d.ts +1 -2
- package/esm/overlay/overlay.js +1 -2
- package/esm/page-state/page-state.d.ts +1 -1
- package/esm/page-state/page-state.js +1 -1
- package/esm/paginator/paginator-core.d.ts +16 -0
- package/esm/paginator/paginator-core.js +29 -9
- package/esm/paginator/paginator.d.ts +37 -1
- package/esm/paginator/paginator.js +45 -1
- package/esm/popover/popover-adapter.js +1 -1
- package/esm/popover/popover-constants.d.ts +4 -0
- package/esm/popover/popover-constants.js +4 -2
- package/esm/popover/popover-core.d.ts +5 -1
- package/esm/popover/popover-core.js +13 -0
- package/esm/popover/popover.d.ts +6 -2
- package/esm/popover/popover.js +9 -1
- package/esm/profile-card/profile-card.d.ts +2 -1
- package/esm/profile-card/profile-card.js +2 -1
- package/esm/radio/radio/radio.d.ts +1 -2
- package/esm/radio/radio/radio.js +1 -2
- package/esm/scaffold/scaffold.d.ts +1 -1
- package/esm/scaffold/scaffold.js +1 -1
- package/esm/select/option/option.d.ts +1 -1
- package/esm/select/option/option.js +1 -1
- package/esm/select/select/select.d.ts +1 -1
- package/esm/select/select/select.js +2 -2
- package/esm/skeleton/skeleton.d.ts +1 -1
- package/esm/skeleton/skeleton.js +1 -1
- package/esm/skip-link/skip-link.d.ts +1 -1
- package/esm/skip-link/skip-link.js +1 -1
- package/esm/slider/slider.d.ts +1 -1
- package/esm/slider/slider.js +1 -1
- package/esm/split-button/split-button.d.ts +1 -1
- package/esm/split-button/split-button.js +1 -1
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/stack/stack.d.ts +1 -8
- package/esm/stack/stack.js +1 -8
- package/esm/state-layer/state-layer.d.ts +1 -1
- package/esm/state-layer/state-layer.js +2 -2
- package/esm/table/table-adapter.d.ts +4 -4
- package/esm/table/table-adapter.js +4 -4
- package/esm/table/table-core.js +2 -2
- package/esm/table/table-utils.d.ts +2 -2
- package/esm/table/table-utils.js +22 -18
- package/esm/table/table.d.ts +2 -2
- package/esm/table/table.js +1 -1
- package/esm/tabs/tab/tab.d.ts +1 -1
- package/esm/tabs/tab/tab.js +1 -1
- package/esm/tabs/tab-bar/tab-bar.d.ts +1 -1
- package/esm/tabs/tab-bar/tab-bar.js +1 -1
- package/esm/text-field/text-field-adapter.d.ts +6 -4
- package/esm/text-field/text-field-adapter.js +11 -4
- package/esm/text-field/text-field-core.d.ts +4 -0
- package/esm/text-field/text-field-core.js +13 -2
- package/esm/text-field/text-field.d.ts +1 -1
- package/esm/text-field/text-field.js +1 -1
- package/esm/time-picker/time-picker-adapter.js +1 -0
- package/esm/time-picker/time-picker-core.js +3 -3
- package/esm/toast/toast-adapter.d.ts +20 -0
- package/esm/toast/toast-adapter.js +30 -0
- package/esm/toast/toast-core.d.ts +17 -0
- package/esm/toast/toast-core.js +66 -0
- package/esm/toast/toast.d.ts +9 -2
- package/esm/toast/toast.js +10 -1
- package/esm/toolbar/toolbar.d.ts +1 -3
- package/esm/toolbar/toolbar.js +1 -3
- package/esm/tooltip/tooltip.d.ts +1 -1
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/view-switcher/view/view.d.ts +1 -1
- package/esm/view-switcher/view/view.js +1 -1
- package/esm/view-switcher/view-switcher.d.ts +1 -1
- package/esm/view-switcher/view-switcher.js +1 -1
- package/package.json +1 -1
- package/sass/state-layer/_core.scss +2 -0
package/esm/toast/toast-core.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import { DismissibleStack, tryDismiss } from '../core/utils/dismissible-stack';
|
|
6
7
|
import { TOAST_CONSTANTS } from './toast-constants';
|
|
7
8
|
export class ToastCore {
|
|
8
9
|
constructor(_adapter) {
|
|
@@ -14,15 +15,28 @@ export class ToastCore {
|
|
|
14
15
|
this._theme = TOAST_CONSTANTS.defaults.THEME;
|
|
15
16
|
this._actionListener = this._onAction.bind(this);
|
|
16
17
|
this._closeListener = this._onClose.bind(this);
|
|
18
|
+
this._isHovered = false;
|
|
19
|
+
this._isFocused = false;
|
|
20
|
+
this._pointerEnterListener = this._handlePointerEnter.bind(this);
|
|
21
|
+
this._pointerLeaveListener = this._handlePointerLeave.bind(this);
|
|
22
|
+
this._focusInListener = this._handleFocusIn.bind(this);
|
|
23
|
+
this._focusOutListener = this._handleFocusOut.bind(this);
|
|
24
|
+
this._keyboardListener = this._handleKeyboard.bind(this);
|
|
17
25
|
}
|
|
18
26
|
initialize() {
|
|
19
27
|
this._adapter.tryApplyGlobalConfiguration(['duration', 'placement', 'dismissible']);
|
|
28
|
+
this._adapter.addPointerEnterListener(this._pointerEnterListener);
|
|
29
|
+
this._adapter.addPointerLeaveListener(this._pointerLeaveListener);
|
|
30
|
+
this._adapter.addFocusInListener(this._focusInListener);
|
|
31
|
+
this._adapter.addFocusOutListener(this._focusOutListener);
|
|
32
|
+
this._adapter.addKeyboardListener(this._keyboardListener);
|
|
20
33
|
if (this._open) {
|
|
21
34
|
this.show();
|
|
22
35
|
}
|
|
23
36
|
}
|
|
24
37
|
show() {
|
|
25
38
|
this._adapter.show();
|
|
39
|
+
DismissibleStack.instance.add(this._adapter.hostElement);
|
|
26
40
|
if (isFinite(this._duration) && this._duration > 0) {
|
|
27
41
|
/* c8 ignore next 3 */
|
|
28
42
|
if (this._hideTimeout) {
|
|
@@ -38,6 +52,9 @@ export class ToastCore {
|
|
|
38
52
|
window.clearTimeout(this._hideTimeout);
|
|
39
53
|
this._hideTimeout = undefined;
|
|
40
54
|
}
|
|
55
|
+
this._isHovered = false;
|
|
56
|
+
this._isFocused = false;
|
|
57
|
+
DismissibleStack.instance.remove(this._adapter.hostElement);
|
|
41
58
|
await this._adapter.hide();
|
|
42
59
|
this._open = false;
|
|
43
60
|
this._adapter.toggleHostAttribute(TOAST_CONSTANTS.attributes.OPEN, this._open);
|
|
@@ -52,6 +69,55 @@ export class ToastCore {
|
|
|
52
69
|
_onClose(_evt) {
|
|
53
70
|
this.hide();
|
|
54
71
|
}
|
|
72
|
+
_handlePointerEnter() {
|
|
73
|
+
this._isHovered = true;
|
|
74
|
+
this._updateTimerState();
|
|
75
|
+
}
|
|
76
|
+
_handlePointerLeave() {
|
|
77
|
+
this._isHovered = false;
|
|
78
|
+
this._updateTimerState();
|
|
79
|
+
}
|
|
80
|
+
_handleFocusIn() {
|
|
81
|
+
this._isFocused = true;
|
|
82
|
+
this._updateTimerState();
|
|
83
|
+
}
|
|
84
|
+
_handleFocusOut() {
|
|
85
|
+
this._isFocused = false;
|
|
86
|
+
this._updateTimerState();
|
|
87
|
+
}
|
|
88
|
+
_handleKeyboard(event) {
|
|
89
|
+
if (event.key === 'Escape' && this._open) {
|
|
90
|
+
event.stopPropagation();
|
|
91
|
+
DismissibleStack.instance.dismiss(this._adapter.hostElement, { reason: 'escape' });
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
_updateTimerState() {
|
|
95
|
+
const shouldPause = this._isHovered || this._isFocused;
|
|
96
|
+
if (shouldPause && this._hideTimeout) {
|
|
97
|
+
this._pauseTimer();
|
|
98
|
+
}
|
|
99
|
+
else if (!shouldPause && !this._hideTimeout) {
|
|
100
|
+
this._resumeTimer();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
_pauseTimer() {
|
|
104
|
+
if (this._hideTimeout) {
|
|
105
|
+
window.clearTimeout(this._hideTimeout);
|
|
106
|
+
this._hideTimeout = undefined;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
_resumeTimer() {
|
|
110
|
+
if (isFinite(this._duration) && this._duration > 0) {
|
|
111
|
+
this._hideTimeout = window.setTimeout(() => this.hide(), this._duration);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
[tryDismiss](state) {
|
|
115
|
+
if (state?.reason === 'escape') {
|
|
116
|
+
this.hide();
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
55
121
|
get open() {
|
|
56
122
|
return this._open;
|
|
57
123
|
}
|
package/esm/toast/toast.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { BaseComponent } from '../core/base/base-component';
|
|
7
7
|
import { IWithDefaultAria } from '../core/mixins/internals/with-default-aria';
|
|
8
8
|
import { IWithElementInternals } from '../core/mixins/internals/with-element-internals';
|
|
9
|
+
import { IDismissible, IDismissibleStackState, tryDismiss } from '../core/utils/dismissible-stack';
|
|
9
10
|
import { IIconProperties } from '../icon';
|
|
10
11
|
import { ToastPlacement, ToastTheme } from './toast-constants';
|
|
11
12
|
export interface IToastProperties {
|
|
@@ -24,7 +25,7 @@ export interface IToastPresentConfiguration extends Partial<IToastProperties> {
|
|
|
24
25
|
icon?: Partial<IIconProperties>;
|
|
25
26
|
topLayer?: boolean;
|
|
26
27
|
}
|
|
27
|
-
export interface IToastComponent extends IToastProperties, IWithElementInternals, IWithDefaultAria {
|
|
28
|
+
export interface IToastComponent extends IToastProperties, IWithElementInternals, IWithDefaultAria, IDismissible {
|
|
28
29
|
show(): void;
|
|
29
30
|
hide(): Promise<void>;
|
|
30
31
|
}
|
|
@@ -41,7 +42,7 @@ declare const ToastComponent_base: import("../constants").AbstractConstructor<im
|
|
|
41
42
|
/**
|
|
42
43
|
* @tag forge-toast
|
|
43
44
|
*
|
|
44
|
-
* @summary Toasts are non-modal notifications that appear in response to user interactions.
|
|
45
|
+
* @summary Toasts are non-modal notifications that appear in response to user interactions. Use toasts to provide brief messages about app processes at the bottom or top of the screen. They automatically disappear after a timeout, but can also include an action button and a dismiss button.
|
|
45
46
|
*
|
|
46
47
|
* @dependency forge-overlay
|
|
47
48
|
* @dependency forge-button
|
|
@@ -117,6 +118,12 @@ export declare class ToastComponent extends ToastComponent_base implements IToas
|
|
|
117
118
|
* @returns A promise that resolves when the toast animation completes.
|
|
118
119
|
*/
|
|
119
120
|
hide(): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Attempts to dismiss the toast.
|
|
123
|
+
* @param state The dismiss state.
|
|
124
|
+
* @returns True if the toast was dismissed, false otherwise.
|
|
125
|
+
*/
|
|
126
|
+
[tryDismiss](state?: IDismissibleStackState): boolean;
|
|
120
127
|
/**
|
|
121
128
|
* Presents a toast notification.
|
|
122
129
|
* @param config The configuration for the toast.
|
package/esm/toast/toast.js
CHANGED
|
@@ -11,6 +11,7 @@ import { setDefaultAria } from '../constants';
|
|
|
11
11
|
import { BaseComponent } from '../core/base/base-component';
|
|
12
12
|
import { WithDefaultAria } from '../core/mixins/internals/with-default-aria';
|
|
13
13
|
import { WithElementInternals } from '../core/mixins/internals/with-element-internals';
|
|
14
|
+
import { tryDismiss } from '../core/utils/dismissible-stack';
|
|
14
15
|
import { DialogComponent, dialogStack } from '../dialog';
|
|
15
16
|
import { IconComponent, IconRegistry } from '../icon';
|
|
16
17
|
import { IconButtonComponent } from '../icon-button';
|
|
@@ -23,7 +24,7 @@ const styles = '@keyframes slidein{from{transform:translateY(var(--_toast-slide-
|
|
|
23
24
|
/**
|
|
24
25
|
* @tag forge-toast
|
|
25
26
|
*
|
|
26
|
-
* @summary Toasts are non-modal notifications that appear in response to user interactions.
|
|
27
|
+
* @summary Toasts are non-modal notifications that appear in response to user interactions. Use toasts to provide brief messages about app processes at the bottom or top of the screen. They automatically disappear after a timeout, but can also include an action button and a dismiss button.
|
|
27
28
|
*
|
|
28
29
|
* @dependency forge-overlay
|
|
29
30
|
* @dependency forge-button
|
|
@@ -138,6 +139,14 @@ let ToastComponent = class ToastComponent extends WithElementInternals(WithDefau
|
|
|
138
139
|
hide() {
|
|
139
140
|
return this._core.hide();
|
|
140
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Attempts to dismiss the toast.
|
|
144
|
+
* @param state The dismiss state.
|
|
145
|
+
* @returns True if the toast was dismissed, false otherwise.
|
|
146
|
+
*/
|
|
147
|
+
[tryDismiss](state) {
|
|
148
|
+
return this._core[tryDismiss](state);
|
|
149
|
+
}
|
|
141
150
|
/**
|
|
142
151
|
* Presents a toast notification.
|
|
143
152
|
* @param config The configuration for the toast.
|
package/esm/toolbar/toolbar.d.ts
CHANGED
|
@@ -15,9 +15,7 @@ declare global {
|
|
|
15
15
|
/**
|
|
16
16
|
* @tag forge-toolbar
|
|
17
17
|
*
|
|
18
|
-
* @summary
|
|
19
|
-
* Toolbars allow you to place titles and actions within a container and align them to the start, center, or end of the toolbar.
|
|
20
|
-
* This component is useful as headers and footers within pages, dialogs, sections... etc. to ensure consistent layout and alignment.
|
|
18
|
+
* @summary Toolbars allow you to place titles and actions within a container and align them to the start, center, or end of the toolbar. This component is useful as headers and footers within pages, dialogs, sections... etc. to ensure consistent layout and alignment.
|
|
21
19
|
*
|
|
22
20
|
* @property {boolean} [inverted=false] - Controls whether a bottom divider (default) or top divider (true) is used.
|
|
23
21
|
*
|
package/esm/toolbar/toolbar.js
CHANGED
|
@@ -12,9 +12,7 @@ const styles = ':host{display:block}:host([hidden]){display:none}.forge-toolbar{
|
|
|
12
12
|
/**
|
|
13
13
|
* @tag forge-toolbar
|
|
14
14
|
*
|
|
15
|
-
* @summary
|
|
16
|
-
* Toolbars allow you to place titles and actions within a container and align them to the start, center, or end of the toolbar.
|
|
17
|
-
* This component is useful as headers and footers within pages, dialogs, sections... etc. to ensure consistent layout and alignment.
|
|
15
|
+
* @summary Toolbars allow you to place titles and actions within a container and align them to the start, center, or end of the toolbar. This component is useful as headers and footers within pages, dialogs, sections... etc. to ensure consistent layout and alignment.
|
|
18
16
|
*
|
|
19
17
|
* @property {boolean} [inverted=false] - Controls whether a bottom divider (default) or top divider (true) is used.
|
|
20
18
|
*
|
package/esm/tooltip/tooltip.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare const TooltipComponent_base: import("..").AbstractConstructor<import("..
|
|
|
37
37
|
/**
|
|
38
38
|
* @tag forge-tooltip
|
|
39
39
|
*
|
|
40
|
-
* @summary Tooltips display information related to an element when the user hovers over an element.
|
|
40
|
+
* @summary Tooltips display information related to an element when the user focuses or hovers over an anchor element. Use tooltips to provide additional context or information about elements that may not be immediately apparent.
|
|
41
41
|
*
|
|
42
42
|
* @dependency forge-overlay
|
|
43
43
|
*
|
package/esm/tooltip/tooltip.js
CHANGED
|
@@ -19,7 +19,7 @@ const styles = '@keyframes slidein{from{opacity:0;transform:translateX(var(--_to
|
|
|
19
19
|
/**
|
|
20
20
|
* @tag forge-tooltip
|
|
21
21
|
*
|
|
22
|
-
* @summary Tooltips display information related to an element when the user hovers over an element.
|
|
22
|
+
* @summary Tooltips display information related to an element when the user focuses or hovers over an anchor element. Use tooltips to provide additional context or information about elements that may not be immediately apparent.
|
|
23
23
|
*
|
|
24
24
|
* @dependency forge-overlay
|
|
25
25
|
*
|
|
@@ -12,7 +12,7 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* @summary
|
|
15
|
+
* @summary Represents a single view content area within a view-switcher for organizing and displaying content sections.
|
|
16
16
|
*
|
|
17
17
|
* @tag forge-view
|
|
18
18
|
*/
|
|
@@ -10,7 +10,7 @@ import { VIEW_CONSTANTS } from './view-constants';
|
|
|
10
10
|
const template = '<template><slot></slot></template>';
|
|
11
11
|
const styles = ':host{display:block}:host([hidden]){display:none}';
|
|
12
12
|
/**
|
|
13
|
-
* @summary
|
|
13
|
+
* @summary Represents a single view content area within a view-switcher for organizing and displaying content sections.
|
|
14
14
|
*
|
|
15
15
|
* @tag forge-view
|
|
16
16
|
*/
|
|
@@ -19,7 +19,7 @@ declare global {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* @summary A container component that manages switching between multiple child
|
|
22
|
+
* @summary A container component that manages switching between multiple child `<forge-view>` elements with configurable animations and programmatic navigation controls.
|
|
23
23
|
*
|
|
24
24
|
* @tag forge-view-switcher
|
|
25
25
|
*
|
|
@@ -13,7 +13,7 @@ import { BaseComponent } from '../core/base/base-component';
|
|
|
13
13
|
const template = '<template><div class=\"forge-view-switcher\" part=\"root\"><slot></slot></div></template>';
|
|
14
14
|
const styles = ':host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto)}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}';
|
|
15
15
|
/**
|
|
16
|
-
* @summary A container component that manages switching between multiple child
|
|
16
|
+
* @summary A container component that manages switching between multiple child `<forge-view>` elements with configurable animations and programmatic navigation controls.
|
|
17
17
|
*
|
|
18
18
|
* @tag forge-view-switcher
|
|
19
19
|
*
|
package/package.json
CHANGED