@memberjunction/ng-ui-components 6.2.0-edge.0 → 6.2.0-edge.2
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/README.md +43 -10
- package/dist/lib/a11y/named-control.base.d.ts +91 -0
- package/dist/lib/a11y/named-control.base.d.ts.map +1 -0
- package/dist/lib/a11y/named-control.base.js +121 -0
- package/dist/lib/a11y/named-control.base.js.map +1 -0
- package/dist/lib/a11y/unnamed-control-guard.d.ts +52 -0
- package/dist/lib/a11y/unnamed-control-guard.d.ts.map +1 -0
- package/dist/lib/a11y/unnamed-control-guard.js +94 -0
- package/dist/lib/a11y/unnamed-control-guard.js.map +1 -0
- package/dist/lib/accordion/accordion.component.d.ts +16 -4
- package/dist/lib/accordion/accordion.component.d.ts.map +1 -1
- package/dist/lib/accordion/accordion.component.js +36 -12
- package/dist/lib/accordion/accordion.component.js.map +1 -1
- package/dist/lib/applied-filters/applied-filters.component.js.map +1 -1
- package/dist/lib/button/button.directive.d.ts +34 -6
- package/dist/lib/button/button.directive.d.ts.map +1 -1
- package/dist/lib/button/button.directive.js +85 -25
- package/dist/lib/button/button.directive.js.map +1 -1
- package/dist/lib/card-grid/card-grid.component.d.ts +3 -1
- package/dist/lib/card-grid/card-grid.component.d.ts.map +1 -1
- package/dist/lib/card-grid/card-grid.component.js +13 -9
- package/dist/lib/card-grid/card-grid.component.js.map +1 -1
- package/dist/lib/clickable/clickable.directive.d.ts +11 -3
- package/dist/lib/clickable/clickable.directive.d.ts.map +1 -1
- package/dist/lib/clickable/clickable.directive.js +25 -5
- package/dist/lib/clickable/clickable.directive.js.map +1 -1
- package/dist/lib/combobox/combobox.component.d.ts +44 -3
- package/dist/lib/combobox/combobox.component.d.ts.map +1 -1
- package/dist/lib/combobox/combobox.component.js +135 -51
- package/dist/lib/combobox/combobox.component.js.map +1 -1
- package/dist/lib/confirm-dialog/confirm-dialog.component.d.ts +6 -0
- package/dist/lib/confirm-dialog/confirm-dialog.component.d.ts.map +1 -1
- package/dist/lib/confirm-dialog/confirm-dialog.component.js +16 -4
- package/dist/lib/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/dist/lib/datepicker/datepicker.component.d.ts +28 -2
- package/dist/lib/datepicker/datepicker.component.d.ts.map +1 -1
- package/dist/lib/datepicker/datepicker.component.js +114 -42
- package/dist/lib/datepicker/datepicker.component.js.map +1 -1
- package/dist/lib/dialog/dialog.component.d.ts +82 -2
- package/dist/lib/dialog/dialog.component.d.ts.map +1 -1
- package/dist/lib/dialog/dialog.component.js +302 -12
- package/dist/lib/dialog/dialog.component.js.map +1 -1
- package/dist/lib/dialog/dialog.service.js.map +1 -1
- package/dist/lib/dropdown/dropdown.component.d.ts +19 -44
- package/dist/lib/dropdown/dropdown.component.d.ts.map +1 -1
- package/dist/lib/dropdown/dropdown.component.js +45 -76
- package/dist/lib/dropdown/dropdown.component.js.map +1 -1
- package/dist/lib/dropdown/dropdown.scss +0 -16
- package/dist/lib/filter-panel/filter-panel.component.d.ts +8 -0
- package/dist/lib/filter-panel/filter-panel.component.d.ts.map +1 -1
- package/dist/lib/filter-panel/filter-panel.component.js +25 -9
- package/dist/lib/filter-panel/filter-panel.component.js.map +1 -1
- package/dist/lib/numeric-input/numeric-input.component.d.ts +15 -1
- package/dist/lib/numeric-input/numeric-input.component.d.ts.map +1 -1
- package/dist/lib/numeric-input/numeric-input.component.js +36 -9
- package/dist/lib/numeric-input/numeric-input.component.js.map +1 -1
- package/dist/lib/page-search/page-search.component.d.ts +32 -3
- package/dist/lib/page-search/page-search.component.d.ts.map +1 -1
- package/dist/lib/page-search/page-search.component.js +68 -12
- package/dist/lib/page-search/page-search.component.js.map +1 -1
- package/dist/lib/switch/switch.component.d.ts +22 -1
- package/dist/lib/switch/switch.component.d.ts.map +1 -1
- package/dist/lib/switch/switch.component.js +50 -16
- package/dist/lib/switch/switch.component.js.map +1 -1
- package/dist/lib/tabs/tab-chrome-guard.d.ts +2 -0
- package/dist/lib/tabs/tab-chrome-guard.d.ts.map +1 -1
- package/dist/lib/tabs/tab-chrome-guard.js +5 -1
- package/dist/lib/tabs/tab-chrome-guard.js.map +1 -1
- package/dist/lib/window/window.component.d.ts +10 -0
- package/dist/lib/window/window.component.d.ts.map +1 -1
- package/dist/lib/window/window.component.js +27 -7
- package/dist/lib/window/window.component.js.map +1 -1
- package/dist/lib/workspace-tabs/workspace-tab-strip.component.d.ts +10 -0
- package/dist/lib/workspace-tabs/workspace-tab-strip.component.d.ts.map +1 -1
- package/dist/lib/workspace-tabs/workspace-tab-strip.component.js +27 -7
- package/dist/lib/workspace-tabs/workspace-tab-strip.component.js.map +1 -1
- package/dist/public-api.d.ts +2 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +2 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
|
|
3
3
|
import { CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
|
|
4
4
|
import { MJWorkspaceTipDirective } from './workspace-tip.directive';
|
|
5
5
|
import { MJTabListDirective } from '../tabs/tab-list.directive';
|
|
6
|
-
import {
|
|
6
|
+
import { WarnIfTabChromeMissing } from '../tabs/tab-chrome-guard';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
const _forTrack0 = ($index, $item) => $item.Id;
|
|
9
9
|
function MJWorkspaceTabStripComponent_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -88,7 +88,7 @@ function MJWorkspaceTabStripComponent_Conditional_4_Template(rf, ctx) { if (rf &
|
|
|
88
88
|
export class MJWorkspaceTabStripComponent {
|
|
89
89
|
elementRef = inject(ElementRef);
|
|
90
90
|
ngAfterViewInit() {
|
|
91
|
-
|
|
91
|
+
WarnIfTabChromeMissing(this.elementRef.nativeElement);
|
|
92
92
|
}
|
|
93
93
|
Tabs = [];
|
|
94
94
|
ActiveId = null;
|
|
@@ -115,16 +115,20 @@ export class MJWorkspaceTabStripComponent {
|
|
|
115
115
|
NewTabRequested = new EventEmitter();
|
|
116
116
|
TabReordered = new EventEmitter();
|
|
117
117
|
/** CDK drop — emit the reorder intent; the host applies it to the store (the strip stays dumb). */
|
|
118
|
-
|
|
118
|
+
OnDrop(event) {
|
|
119
119
|
if (event.previousIndex !== event.currentIndex) {
|
|
120
120
|
this.TabReordered.emit({ previousIndex: event.previousIndex, currentIndex: event.currentIndex });
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
+
/** @deprecated Use {@link OnDrop}. */
|
|
124
|
+
onDrop(event) {
|
|
125
|
+
return this.OnDrop(event);
|
|
126
|
+
}
|
|
123
127
|
/**
|
|
124
128
|
* The tab's accessible name. The dirty dot and the rejected colour/icon are the only signals for
|
|
125
129
|
* those states, and neither survives being read aloud — so they are spelled out here instead.
|
|
126
130
|
*/
|
|
127
|
-
|
|
131
|
+
TabAccessibleName(tab) {
|
|
128
132
|
const parts = [tab.Label];
|
|
129
133
|
if (tab.Status === 'rejected')
|
|
130
134
|
parts.push('(rejected)');
|
|
@@ -132,25 +136,41 @@ export class MJWorkspaceTabStripComponent {
|
|
|
132
136
|
parts.push('(unsaved changes)');
|
|
133
137
|
return parts.join(' ');
|
|
134
138
|
}
|
|
139
|
+
/** @deprecated Use {@link TabAccessibleName}. */
|
|
140
|
+
tabAccessibleName(tab) {
|
|
141
|
+
return this.TabAccessibleName(tab);
|
|
142
|
+
}
|
|
135
143
|
/** Keyboard arrow/Home/End/Enter from `mjTabList` — map the position back onto our id. */
|
|
136
|
-
|
|
144
|
+
OnActivateRequested(request) {
|
|
137
145
|
const tab = this.Tabs[request.Index];
|
|
138
146
|
if (tab) {
|
|
139
147
|
this.TabSelected.emit(tab.Id);
|
|
140
148
|
}
|
|
141
149
|
}
|
|
150
|
+
/** @deprecated Use {@link OnActivateRequested}. */
|
|
151
|
+
onActivateRequested(request) {
|
|
152
|
+
return this.OnActivateRequested(request);
|
|
153
|
+
}
|
|
142
154
|
/** Delete/Backspace on a focused tab — the APG close gesture for a closeable tab. */
|
|
143
|
-
|
|
155
|
+
OnCloseRequested(request) {
|
|
144
156
|
const tab = this.Tabs[request.Index];
|
|
145
157
|
if (tab) {
|
|
146
158
|
this.TabClosed.emit(tab.Id);
|
|
147
159
|
}
|
|
148
160
|
}
|
|
161
|
+
/** @deprecated Use {@link OnCloseRequested}. */
|
|
162
|
+
onCloseRequested(request) {
|
|
163
|
+
return this.OnCloseRequested(request);
|
|
164
|
+
}
|
|
149
165
|
/** The close button sits inside the tab, so its click would otherwise also select the tab. */
|
|
150
|
-
|
|
166
|
+
OnCloseClick(event, id) {
|
|
151
167
|
event.stopPropagation();
|
|
152
168
|
this.TabClosed.emit(id);
|
|
153
169
|
}
|
|
170
|
+
/** @deprecated Use {@link OnCloseClick}. */
|
|
171
|
+
onCloseClick(event, id) {
|
|
172
|
+
return this.OnCloseClick(event, id);
|
|
173
|
+
}
|
|
154
174
|
static ɵfac = function MJWorkspaceTabStripComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJWorkspaceTabStripComponent)(); };
|
|
155
175
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJWorkspaceTabStripComponent, selectors: [["mj-workspace-tab-strip"]], inputs: { Tabs: "Tabs", ActiveId: "ActiveId", ShowNewTab: "ShowNewTab", NewTabLabel: "NewTabLabel", AllowReorder: "AllowReorder" }, outputs: { TabSelected: "TabSelected", TabClosed: "TabClosed", NewTabRequested: "NewTabRequested", TabReordered: "TabReordered" }, decls: 5, vars: 1, consts: [[1, "mj-tabs", "mj-tabs__bar"], ["mjTabList", "", "cdkDropList", "", "cdkDropListOrientation", "horizontal", 1, "mj-tabs__list", 3, "TabActivateRequested", "TabCloseRequested", "cdkDropListDropped"], ["cdkDrag", "", "role", "tab", 1, "mj-tabs__tab", 3, "cdkDragDisabled", "cdkDragStartDelay", "mj-tabs__tab--active", "mj-tabs__tab--rejected", "mj-tabs__tab--complete"], ["type", "button", 1, "mj-tabs__new"], ["cdkDrag", "", "role", "tab", 1, "mj-tabs__tab", 3, "click", "cdkDragDisabled", "cdkDragStartDelay"], ["aria-hidden", "true", 1, "mj-tabs__icon", 3, "class"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation", "mj-tabs__status-icon"], [1, "mj-tabs__label", 3, "mjTip"], ["aria-hidden", "true", 1, "mj-tabs__dirty"], ["type", "button", "tabindex", "-1", 1, "mj-tabs__close", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-xmark"], ["aria-hidden", "true", 1, "mj-tabs__icon"], ["type", "button", 1, "mj-tabs__new", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-plus"]], template: function MJWorkspaceTabStripComponent_Template(rf, ctx) { if (rf & 1) {
|
|
156
176
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-tab-strip.component.js","sourceRoot":"","sources":["../../../src/lib/workspace-tabs/workspace-tab-strip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,uBAAuB,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnI,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;;;;IA2DpD,wBAAmE;;;IAAhE,0BAAkB;;;IAGrB,uBAAwF;;;IAOxF,+BAAgD;IAAA,sBAAM;IAAA,iBAAO;;;;IAvBjE,8BAWqC;IAAnC,8MAAS,kCAAwB,KAAC;IAClC,kGAAgB;IAGhB,kGAAiC;I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tC,AAHA,AADA,0IAAwB,+BAA2B,IAAC,uHAC/B,4BAAwB,IAAC,yHAGxB,kBAAc,IAAC;YACrC,gGAyCC;YACH,iBAAM;YACN,iGAAkB;YAMpB,iBAAM;;YAjDF,eAyCC;YAzCD,uBAyCC;YAEH,eAKC;YALD,yCAKC;4BA5DK,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,kBAAkB;;iFAiE9E,4BAA4B;cApExC,SAAS;6BACI,IAAI,YACN,wBAAwB,WACzB,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,CAAC,mBACzE,uBAAuB,CAAC,MAAM,YACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DT;;kBAUA,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAOL,KAAK;;kBAaL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kFAjCI,4BAA4B","sourcesContent":["import { AfterViewInit, Component, ChangeDetectionStrategy, ElementRef, EventEmitter, Input, Output, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CdkDropList, CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';\nimport { MJWorkspaceTab } from './workspace-tabs.types';\nimport { MJWorkspaceTipDirective } from './workspace-tip.directive';\nimport { MJTabListDirective, MJTabListRequest } from '../tabs/tab-list.directive';\nimport { warnIfTabChromeMissing } from '../tabs/tab-chrome-guard';\n\n/** A drag-reorder request from the strip: move the tab at `previousIndex` to `currentIndex`. */\nexport interface MJTabReorder {\n previousIndex: number;\n currentIndex: number;\n}\n\n/**\n * `<mj-workspace-tab-strip>` — browser-style draft tabs, presentation over `MJWorkspaceTabStore`.\n *\n * Dumb by design: it renders the tabs it is handed and emits intent. The store holds the state\n * machine; the host owns what a tab's payload means. That split keeps it app-agnostic.\n *\n * **Browser-tab behavior lives HERE** so every consumer inherits it:\n * - pinned new-tab button; the tab LIST scrolls horizontally *behind* it on overflow;\n * - tabs size to their text up to `--mj-tab-max`, then ellipsize; the inline unsaved-dot pushes the label;\n * - the tab body keeps the default arrow cursor (like browser tabs);\n * - the full label shows via the reusable `mjTip` tooltip when a tab is truncated (delayed, non-interactive);\n * - drag-reorder via CDK, emitted as intent for the host to apply to its store.\n *\n * **Appearance and keyboard behaviour are NOT owned here.** The look comes from the global\n * `.mj-tabs*` chrome in `tabs.scss`, and the ARIA tabs keyboard contract from `mjTabList` — both\n * shared with `mj-tabstrip`, so the two strips cannot drift apart visually or behaviourally even\n * though they keep different state models.\n */\n@Component({\n standalone: true,\n selector: 'mj-workspace-tab-strip',\n imports: [CommonModule, CdkDropList, CdkDrag, MJWorkspaceTipDirective, MJTabListDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"mj-tabs mj-tabs__bar\">\n <div\n class=\"mj-tabs__list\"\n mjTabList\n (TabActivateRequested)=\"onActivateRequested($event)\"\n (TabCloseRequested)=\"onCloseRequested($event)\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onDrop($event)\">\n @for (tab of Tabs; track tab.Id) {\n <!-- role=\"tab\" sits on the FOCUSABLE element, not on a wrapper around one. tabindex is\n owned by mjTabList (roving), so it is deliberately not bound here. The accessible\n name folds in the unsaved/rejected state, because those are conveyed visually by a\n dot and a colour that a screen reader cannot see. -->\n <div\n class=\"mj-tabs__tab\"\n cdkDrag\n [cdkDragDisabled]=\"!AllowReorder\"\n [cdkDragStartDelay]=\"DragStartDelay\"\n [class.mj-tabs__tab--active]=\"tab.Id === ActiveId\"\n [class.mj-tabs__tab--rejected]=\"tab.Status === 'rejected'\"\n [class.mj-tabs__tab--complete]=\"tab.Status === 'complete'\"\n role=\"tab\"\n [attr.aria-selected]=\"tab.Id === ActiveId\"\n [attr.aria-label]=\"tabAccessibleName(tab)\"\n (click)=\"TabSelected.emit(tab.Id)\">\n @if (tab.Icon) {\n <i [class]=\"tab.Icon\" class=\"mj-tabs__icon\" aria-hidden=\"true\"></i>\n }\n @if (tab.Status === 'rejected') {\n <i class=\"fa-solid fa-triangle-exclamation mj-tabs__status-icon\" aria-hidden=\"true\"></i>\n }\n <span class=\"mj-tabs__label\" [mjTip]=\"tab.Label\">{{ tab.Label }}</span>\n @if (tab.Dirty) {\n <!-- Inline dot (no reserved slot): it PUSHES the label, so the ellipsis shifts left on\n a capped tab and a short tab grows by the dot's width. Silent to assistive tech —\n the state is already in the tab's accessible name. -->\n <span class=\"mj-tabs__dirty\" aria-hidden=\"true\">•</span>\n }\n <!-- tabindex=\"-1\": the TAB is the focus stop and Delete closes it, so a second stop per\n tab would double the length of the strip in the page tab order. -->\n <button\n type=\"button\"\n class=\"mj-tabs__close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Close ' + tab.Label\"\n (click)=\"onCloseClick($event, tab.Id)\">\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n </div>\n @if (ShowNewTab) {\n <button type=\"button\" class=\"mj-tabs__new\" (click)=\"NewTabRequested.emit()\" [attr.aria-label]=\"NewTabLabel\">\n <i class=\"fa-solid fa-plus\" aria-hidden=\"true\"></i>\n <span>{{ NewTabLabel }}</span>\n </button>\n }\n </div>\n `,\n styleUrls: ['./workspace-tab-strip.component.css'],\n})\nexport class MJWorkspaceTabStripComponent implements AfterViewInit {\n private readonly elementRef = inject(ElementRef);\n\n ngAfterViewInit(): void {\n warnIfTabChromeMissing(this.elementRef.nativeElement);\n }\n\n @Input() Tabs: MJWorkspaceTab[] = [];\n @Input() ActiveId: string | null = null;\n @Input() ShowNewTab = true;\n @Input() NewTabLabel = 'New';\n\n /**\n * Whether tabs can be drag-reordered at all. The escape hatch for hosts where even long-press\n * dragging is wrong (a kiosk surface, a read-only review screen) — reorder simply isn't offered\n * and every touch gesture belongs to scrolling.\n */\n @Input() AllowReorder = true;\n\n /**\n * Per-pointer-type drag threshold, resolving the touch conflict between REORDER and SCROLL: an\n * overflowing tab list scrolls by horizontal swipe, and a swipe starts on a tab — with an\n * immediate drag threshold, CDK claims that touch and the list becomes unscrollable on phones.\n * A hold-to-drag delay is the platform idiom for exactly this (iOS home screen, mobile browser\n * tabs): a moving finger within the delay window is a SCROLL and CDK lets it through natively; a\n * still finger past it is a DRAG. Mouse stays immediate — pointer users scroll with the wheel or\n * scrollbar, so there is no gesture to disambiguate and a delay would just feel laggy.\n */\n public readonly DragStartDelay = { touch: 400, mouse: 0 };\n\n @Output() TabSelected = new EventEmitter<string>();\n @Output() TabClosed = new EventEmitter<string>();\n @Output() NewTabRequested = new EventEmitter<void>();\n @Output() TabReordered = new EventEmitter<MJTabReorder>();\n\n /** CDK drop — emit the reorder intent; the host applies it to the store (the strip stays dumb). */\n public onDrop(event: CdkDragDrop<MJWorkspaceTab[]>): void {\n if (event.previousIndex !== event.currentIndex) {\n this.TabReordered.emit({ previousIndex: event.previousIndex, currentIndex: event.currentIndex });\n }\n }\n\n /**\n * The tab's accessible name. The dirty dot and the rejected colour/icon are the only signals for\n * those states, and neither survives being read aloud — so they are spelled out here instead.\n */\n public tabAccessibleName(tab: MJWorkspaceTab): string {\n const parts = [tab.Label];\n if (tab.Status === 'rejected') parts.push('(rejected)');\n if (tab.Dirty) parts.push('(unsaved changes)');\n return parts.join(' ');\n }\n\n /** Keyboard arrow/Home/End/Enter from `mjTabList` — map the position back onto our id. */\n public onActivateRequested(request: MJTabListRequest): void {\n const tab = this.Tabs[request.Index];\n if (tab) {\n this.TabSelected.emit(tab.Id);\n }\n }\n\n /** Delete/Backspace on a focused tab — the APG close gesture for a closeable tab. */\n public onCloseRequested(request: MJTabListRequest): void {\n const tab = this.Tabs[request.Index];\n if (tab) {\n this.TabClosed.emit(tab.Id);\n }\n }\n\n /** The close button sits inside the tab, so its click would otherwise also select the tab. */\n public onCloseClick(event: MouseEvent, id: string): void {\n event.stopPropagation();\n this.TabClosed.emit(id);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"workspace-tab-strip.component.js","sourceRoot":"","sources":["../../../src/lib/workspace-tabs/workspace-tab-strip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,uBAAuB,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnI,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;;;;IA2DpD,wBAAmE;;;IAAhE,0BAAkB;;;IAGrB,uBAAwF;;;IAOxF,+BAAgD;IAAA,sBAAM;IAAA,iBAAO;;;;IAvBjE,8BAWqC;IAAnC,8MAAS,kCAAwB,KAAC;IAClC,kGAAgB;IAGhB,kGAAiC;IAGjC,+BAAiD;IAAA,YAAe;IAAA,iBAAO;IACvE,qGAAiB;IAQjB,iCAKyC;IAAvC,uNAAS,sCAA4B,KAAC;IACtC,wBAAoD;IAExD,AADE,iBAAS,EACL;;;;IA5BJ,AADA,AADA,qEAAkD,wDACQ,wDACA;IAH1D,AADA,sDAAiC,4CACG;;IAQpC,cAEC;IAFD,sCAEC;IACD,cAEC;IAFD,uDAEC;IAC4B,cAAmB;IAAnB,oCAAmB;IAAC,cAAe;IAAf,kCAAe;IAChE,cAKC;IALD,uCAKC;IAOC,cAAwC;;;;;IAQ9C,kCAA4G;IAAjE,gMAAS,6BAAsB,KAAC;IACzE,wBAAmD;IACnD,4BAAM;IAAA,YAAiB;IACzB,AADyB,iBAAO,EACvB;;;;IADD,eAAiB;IAAjB,wCAAiB;;AA/EjC;;;;;;;;;;;;;;;;;GAiBG;AAqEH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A7DnC,AADF,8BAAkC,aAQQ;YAAtC,AAHA,AADA,0IAAwB,+BAA2B,IAAC,uHAC/B,4BAAwB,IAAC,yHAGxB,kBAAc,IAAC;YACrC,gGAyCC;YACH,iBAAM;YACN,iGAAkB;YAMpB,iBAAM;;YAjDF,eAyCC;YAzCD,uBAyCC;YAEH,eAKC;YALD,yCAKC;4BA5DK,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,kBAAkB;;iFAiE9E,4BAA4B;cApExC,SAAS;6BACI,IAAI,YACN,wBAAwB,WACzB,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,CAAC,mBACzE,uBAAuB,CAAC,MAAM,YACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DT;;kBAUA,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAOL,KAAK;;kBAaL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kFAjCI,4BAA4B","sourcesContent":["import { AfterViewInit, Component, ChangeDetectionStrategy, ElementRef, EventEmitter, Input, Output, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CdkDropList, CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';\nimport { MJWorkspaceTab } from './workspace-tabs.types';\nimport { MJWorkspaceTipDirective } from './workspace-tip.directive';\nimport { MJTabListDirective, MJTabListRequest } from '../tabs/tab-list.directive';\nimport { WarnIfTabChromeMissing } from '../tabs/tab-chrome-guard';\n\n/** A drag-reorder request from the strip: move the tab at `previousIndex` to `currentIndex`. */\nexport interface MJTabReorder {\n previousIndex: number;\n currentIndex: number;\n}\n\n/**\n * `<mj-workspace-tab-strip>` — browser-style draft tabs, presentation over `MJWorkspaceTabStore`.\n *\n * Dumb by design: it renders the tabs it is handed and emits intent. The store holds the state\n * machine; the host owns what a tab's payload means. That split keeps it app-agnostic.\n *\n * **Browser-tab behavior lives HERE** so every consumer inherits it:\n * - pinned new-tab button; the tab LIST scrolls horizontally *behind* it on overflow;\n * - tabs size to their text up to `--mj-tab-max`, then ellipsize; the inline unsaved-dot pushes the label;\n * - the tab body keeps the default arrow cursor (like browser tabs);\n * - the full label shows via the reusable `mjTip` tooltip when a tab is truncated (delayed, non-interactive);\n * - drag-reorder via CDK, emitted as intent for the host to apply to its store.\n *\n * **Appearance and keyboard behaviour are NOT owned here.** The look comes from the global\n * `.mj-tabs*` chrome in `tabs.scss`, and the ARIA tabs keyboard contract from `mjTabList` — both\n * shared with `mj-tabstrip`, so the two strips cannot drift apart visually or behaviourally even\n * though they keep different state models.\n */\n@Component({\n standalone: true,\n selector: 'mj-workspace-tab-strip',\n imports: [CommonModule, CdkDropList, CdkDrag, MJWorkspaceTipDirective, MJTabListDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"mj-tabs mj-tabs__bar\">\n <div\n class=\"mj-tabs__list\"\n mjTabList\n (TabActivateRequested)=\"onActivateRequested($event)\"\n (TabCloseRequested)=\"onCloseRequested($event)\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onDrop($event)\">\n @for (tab of Tabs; track tab.Id) {\n <!-- role=\"tab\" sits on the FOCUSABLE element, not on a wrapper around one. tabindex is\n owned by mjTabList (roving), so it is deliberately not bound here. The accessible\n name folds in the unsaved/rejected state, because those are conveyed visually by a\n dot and a colour that a screen reader cannot see. -->\n <div\n class=\"mj-tabs__tab\"\n cdkDrag\n [cdkDragDisabled]=\"!AllowReorder\"\n [cdkDragStartDelay]=\"DragStartDelay\"\n [class.mj-tabs__tab--active]=\"tab.Id === ActiveId\"\n [class.mj-tabs__tab--rejected]=\"tab.Status === 'rejected'\"\n [class.mj-tabs__tab--complete]=\"tab.Status === 'complete'\"\n role=\"tab\"\n [attr.aria-selected]=\"tab.Id === ActiveId\"\n [attr.aria-label]=\"tabAccessibleName(tab)\"\n (click)=\"TabSelected.emit(tab.Id)\">\n @if (tab.Icon) {\n <i [class]=\"tab.Icon\" class=\"mj-tabs__icon\" aria-hidden=\"true\"></i>\n }\n @if (tab.Status === 'rejected') {\n <i class=\"fa-solid fa-triangle-exclamation mj-tabs__status-icon\" aria-hidden=\"true\"></i>\n }\n <span class=\"mj-tabs__label\" [mjTip]=\"tab.Label\">{{ tab.Label }}</span>\n @if (tab.Dirty) {\n <!-- Inline dot (no reserved slot): it PUSHES the label, so the ellipsis shifts left on\n a capped tab and a short tab grows by the dot's width. Silent to assistive tech —\n the state is already in the tab's accessible name. -->\n <span class=\"mj-tabs__dirty\" aria-hidden=\"true\">•</span>\n }\n <!-- tabindex=\"-1\": the TAB is the focus stop and Delete closes it, so a second stop per\n tab would double the length of the strip in the page tab order. -->\n <button\n type=\"button\"\n class=\"mj-tabs__close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"'Close ' + tab.Label\"\n (click)=\"onCloseClick($event, tab.Id)\">\n <i class=\"fa-solid fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n </div>\n @if (ShowNewTab) {\n <button type=\"button\" class=\"mj-tabs__new\" (click)=\"NewTabRequested.emit()\" [attr.aria-label]=\"NewTabLabel\">\n <i class=\"fa-solid fa-plus\" aria-hidden=\"true\"></i>\n <span>{{ NewTabLabel }}</span>\n </button>\n }\n </div>\n `,\n styleUrls: ['./workspace-tab-strip.component.css'],\n})\nexport class MJWorkspaceTabStripComponent implements AfterViewInit {\n private readonly elementRef = inject(ElementRef);\n\n ngAfterViewInit(): void {\n WarnIfTabChromeMissing(this.elementRef.nativeElement);\n }\n\n @Input() Tabs: MJWorkspaceTab[] = [];\n @Input() ActiveId: string | null = null;\n @Input() ShowNewTab = true;\n @Input() NewTabLabel = 'New';\n\n /**\n * Whether tabs can be drag-reordered at all. The escape hatch for hosts where even long-press\n * dragging is wrong (a kiosk surface, a read-only review screen) — reorder simply isn't offered\n * and every touch gesture belongs to scrolling.\n */\n @Input() AllowReorder = true;\n\n /**\n * Per-pointer-type drag threshold, resolving the touch conflict between REORDER and SCROLL: an\n * overflowing tab list scrolls by horizontal swipe, and a swipe starts on a tab — with an\n * immediate drag threshold, CDK claims that touch and the list becomes unscrollable on phones.\n * A hold-to-drag delay is the platform idiom for exactly this (iOS home screen, mobile browser\n * tabs): a moving finger within the delay window is a SCROLL and CDK lets it through natively; a\n * still finger past it is a DRAG. Mouse stays immediate — pointer users scroll with the wheel or\n * scrollbar, so there is no gesture to disambiguate and a delay would just feel laggy.\n */\n public readonly DragStartDelay = { touch: 400, mouse: 0 };\n\n @Output() TabSelected = new EventEmitter<string>();\n @Output() TabClosed = new EventEmitter<string>();\n @Output() NewTabRequested = new EventEmitter<void>();\n @Output() TabReordered = new EventEmitter<MJTabReorder>();\n\n /** CDK drop — emit the reorder intent; the host applies it to the store (the strip stays dumb). */\n public OnDrop(event: CdkDragDrop<MJWorkspaceTab[]>): void {\n if (event.previousIndex !== event.currentIndex) {\n this.TabReordered.emit({ previousIndex: event.previousIndex, currentIndex: event.currentIndex });\n }\n }\n\n /** @deprecated Use {@link OnDrop}. */\n public onDrop(event: CdkDragDrop<MJWorkspaceTab[]>): void {\n return this.OnDrop(event);\n }\n\n /**\n * The tab's accessible name. The dirty dot and the rejected colour/icon are the only signals for\n * those states, and neither survives being read aloud — so they are spelled out here instead.\n */\n public TabAccessibleName(tab: MJWorkspaceTab): string {\n const parts = [tab.Label];\n if (tab.Status === 'rejected') parts.push('(rejected)');\n if (tab.Dirty) parts.push('(unsaved changes)');\n return parts.join(' ');\n }\n\n /** @deprecated Use {@link TabAccessibleName}. */\n public tabAccessibleName(tab: MJWorkspaceTab): string {\n return this.TabAccessibleName(tab);\n }\n\n /** Keyboard arrow/Home/End/Enter from `mjTabList` — map the position back onto our id. */\n public OnActivateRequested(request: MJTabListRequest): void {\n const tab = this.Tabs[request.Index];\n if (tab) {\n this.TabSelected.emit(tab.Id);\n }\n }\n\n /** @deprecated Use {@link OnActivateRequested}. */\n public onActivateRequested(request: MJTabListRequest): void {\n return this.OnActivateRequested(request);\n }\n\n /** Delete/Backspace on a focused tab — the APG close gesture for a closeable tab. */\n public OnCloseRequested(request: MJTabListRequest): void {\n const tab = this.Tabs[request.Index];\n if (tab) {\n this.TabClosed.emit(tab.Id);\n }\n }\n\n /** @deprecated Use {@link OnCloseRequested}. */\n public onCloseRequested(request: MJTabListRequest): void {\n return this.OnCloseRequested(request);\n }\n\n /** The close button sits inside the tab, so its click would otherwise also select the tab. */\n public OnCloseClick(event: MouseEvent, id: string): void {\n event.stopPropagation();\n this.TabClosed.emit(id);\n }\n\n /** @deprecated Use {@link OnCloseClick}. */\n public onCloseClick(event: MouseEvent, id: string): void {\n return this.OnCloseClick(event, id);\n }\n}\n"]}
|
package/dist/public-api.d.ts
CHANGED
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAGA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc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AC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC"}
|
package/dist/public-api.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// @memberjunction/ng-ui-components
|
|
2
2
|
// Reusable standalone Angular UI components for MemberJunction
|
|
3
|
+
export * from './lib/a11y/named-control.base';
|
|
4
|
+
export * from './lib/a11y/unnamed-control-guard';
|
|
3
5
|
export * from './lib/button/button.directive';
|
|
4
6
|
export * from './lib/clickable/clickable.directive';
|
|
5
7
|
export * from './lib/dialog/dialog.component';
|
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,+DAA+D;AAE/D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC","sourcesContent":["// @memberjunction/ng-ui-components\n// Reusable standalone Angular UI components for MemberJunction\n\nexport * from './lib/button/button.directive';\nexport * from './lib/clickable/clickable.directive';\nexport * from './lib/dialog/dialog.component';\nexport * from './lib/dialog/dialog.service';\nexport * from './lib/confirm-dialog/confirm-dialog.component';\nexport * from './lib/confirm-dialog/confirm-dialog.service';\nexport * from './lib/dropdown/dropdown.component';\nexport * from './lib/switch/switch.component';\nexport * from './lib/numeric-input/numeric-input.component';\nexport * from './lib/progress-bar/progress-bar.component';\nexport * from './lib/calendar/calendar-utils';\nexport * from './lib/datepicker/datepicker.component';\nexport * from './lib/splitter/splitter.component';\nexport * from './lib/accordion/accordion.component';\nexport * from './lib/alert/alert.component';\nexport * from './lib/window/window.component';\nexport * from './lib/slide-panel/slide-panel.component';\nexport * from './lib/bottom-sheet/bottom-sheet.component';\nexport * from './lib/combobox/combobox.component';\nexport * from './lib/page-header/page-header.component';\nexport * from './lib/page-layout/page-layout.component';\nexport * from './lib/page-body/page-body.component';\nexport * from './lib/stat-badge/stat-badge.component';\nexport * from './lib/refresh-button/refresh-button.component';\nexport * from './lib/filter-popover/filter-popover.component';\nexport * from './lib/page-search/page-search.component';\nexport * from './lib/filter-chip/filter-chip.component';\nexport * from './lib/filter-field/filter-field.component';\nexport * from './lib/filter-panel/filter-panel.component';\nexport * from './lib/tab-nav/tab-nav.component';\nexport * from './lib/tabs/tab-list.directive';\nexport * from './lib/tabs/tab-chrome-guard';\nexport * from './lib/workspace-tabs/workspace-tabs.types';\nexport * from './lib/workspace-tabs/workspace-tab-store';\nexport * from './lib/workspace-tabs/workspace-tab-strip.component';\nexport * from './lib/workspace-tabs/workspace-card.component';\nexport * from './lib/workspace-tabs/workspace-tip.directive';\nexport * from './lib/view-toggle/view-toggle.component';\nexport * from './lib/left-nav/left-nav.component';\nexport * from './lib/left-nav/left-nav-content.component';\nexport * from './lib/page-header-interior/page-header-interior.component';\nexport * from './lib/page-body-interior/page-body-interior.component';\nexport * from './lib/empty-state/empty-state.component';\nexport * from './lib/card-grid/card-grid.component';\n"]}
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,+DAA+D;AAE/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AqC,CAAC","sourcesContent":["// @memberjunction/ng-ui-components\n// Reusable standalone Angular UI components for MemberJunction\n\nexport * from './lib/a11y/named-control.base';\nexport * from './lib/a11y/unnamed-control-guard';\nexport * from './lib/button/button.directive';\nexport * from './lib/clickable/clickable.directive';\nexport * from './lib/dialog/dialog.component';\nexport * from './lib/dialog/dialog.service';\nexport * from './lib/confirm-dialog/confirm-dialog.component';\nexport * from './lib/confirm-dialog/confirm-dialog.service';\nexport * from './lib/dropdown/dropdown.component';\nexport * from './lib/switch/switch.component';\nexport * from './lib/numeric-input/numeric-input.component';\nexport * from './lib/progress-bar/progress-bar.component';\nexport * from './lib/calendar/calendar-utils';\nexport * from './lib/datepicker/datepicker.component';\nexport * from './lib/splitter/splitter.component';\nexport * from './lib/accordion/accordion.component';\nexport * from './lib/alert/alert.component';\nexport * from './lib/window/window.component';\nexport * from './lib/slide-panel/slide-panel.component';\nexport * from './lib/bottom-sheet/bottom-sheet.component';\nexport * from './lib/combobox/combobox.component';\nexport * from './lib/page-header/page-header.component';\nexport * from './lib/page-layout/page-layout.component';\nexport * from './lib/page-body/page-body.component';\nexport * from './lib/stat-badge/stat-badge.component';\nexport * from './lib/refresh-button/refresh-button.component';\nexport * from './lib/filter-popover/filter-popover.component';\nexport * from './lib/page-search/page-search.component';\nexport * from './lib/filter-chip/filter-chip.component';\nexport * from './lib/filter-field/filter-field.component';\nexport * from './lib/filter-panel/filter-panel.component';\nexport * from './lib/tab-nav/tab-nav.component';\nexport * from './lib/tabs/tab-list.directive';\nexport * from './lib/tabs/tab-chrome-guard';\nexport * from './lib/workspace-tabs/workspace-tabs.types';\nexport * from './lib/workspace-tabs/workspace-tab-store';\nexport * from './lib/workspace-tabs/workspace-tab-strip.component';\nexport * from './lib/workspace-tabs/workspace-card.component';\nexport * from './lib/workspace-tabs/workspace-tip.directive';\nexport * from './lib/view-toggle/view-toggle.component';\nexport * from './lib/left-nav/left-nav.component';\nexport * from './lib/left-nav/left-nav-content.component';\nexport * from './lib/page-header-interior/page-header-interior.component';\nexport * from './lib/page-body-interior/page-body-interior.component';\nexport * from './lib/empty-state/empty-state.component';\nexport * from './lib/card-grid/card-grid.component';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-ui-components",
|
|
3
|
-
"version": "6.2.0-edge.
|
|
3
|
+
"version": "6.2.0-edge.2",
|
|
4
4
|
"description": "MemberJunction: Angular UI Components - reusable standalone components replacing Kendo UI dependencies.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@angular/compiler": "21.2.22",
|
|
18
18
|
"@angular/compiler-cli": "21.2.22",
|
|
19
|
-
"@memberjunction/ng-test-utils": "6.2.0-edge.
|
|
19
|
+
"@memberjunction/ng-test-utils": "6.2.0-edge.2",
|
|
20
20
|
"vitest": "^4.0.18"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|