@memberjunction/ng-base-forms 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/dist/lib/base-form-component.d.ts +34 -0
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +68 -1
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/base-form-section-info.js +5 -5
- package/dist/lib/base-form-section-info.js.map +1 -1
- package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
- package/dist/lib/chrome/resolve-form-chrome.js +22 -12
- package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
- package/dist/lib/container/record-form-container.component.d.ts +41 -12
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
- package/dist/lib/container/record-form-container.component.js +476 -378
- package/dist/lib/container/record-form-container.component.js.map +1 -1
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts +150 -0
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts.map +1 -0
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.js +263 -0
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.js.map +1 -0
- package/dist/lib/explorer-entity-data-grid.component.d.ts +18 -1
- package/dist/lib/explorer-entity-data-grid.component.d.ts.map +1 -1
- package/dist/lib/explorer-entity-data-grid.component.js +38 -10
- package/dist/lib/explorer-entity-data-grid.component.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +42 -5
- package/dist/lib/field/form-field.component.d.ts.map +1 -1
- package/dist/lib/field/form-field.component.js +118 -23
- package/dist/lib/field/form-field.component.js.map +1 -1
- package/dist/lib/form-field-edit.coordinator.d.ts +25 -0
- package/dist/lib/form-field-edit.coordinator.d.ts.map +1 -0
- package/dist/lib/form-field-edit.coordinator.js +27 -0
- package/dist/lib/form-field-edit.coordinator.js.map +1 -0
- package/dist/lib/form-state.service.d.ts +58 -0
- package/dist/lib/form-state.service.d.ts.map +1 -1
- package/dist/lib/form-state.service.js +156 -40
- package/dist/lib/form-state.service.js.map +1 -1
- package/dist/lib/host/entity-form-host.component.d.ts +10 -2
- package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
- package/dist/lib/host/entity-form-host.component.js +24 -8
- package/dist/lib/host/entity-form-host.component.js.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.d.ts +16 -4
- package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.js +38 -12
- package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-card.component.d.ts +3 -3
- package/dist/lib/isa-related-panel/isa-related-card.component.js +6 -6
- package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-panel.component.d.ts +3 -3
- package/dist/lib/isa-related-panel/isa-related-panel.component.js +8 -8
- package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
- package/dist/lib/overlays/form-slide-in.component.d.ts +2 -0
- package/dist/lib/overlays/form-slide-in.component.d.ts.map +1 -1
- package/dist/lib/overlays/form-slide-in.component.js +5 -1
- package/dist/lib/overlays/form-slide-in.component.js.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.d.ts +9 -9
- package/dist/lib/panel/collapsible-panel.component.js +23 -23
- package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
- package/dist/lib/panel-slot/base-form-panel.d.ts +2 -0
- package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
- package/dist/lib/panel-slot/base-form-panel.js +5 -1
- package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
- package/dist/lib/panel-slot/form-contribution.d.ts +12 -0
- package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-contribution.js +43 -10
- package/dist/lib/panel-slot/form-contribution.js.map +1 -1
- package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +10 -0
- package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-slot-coordinator.service.js +25 -5
- package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
- package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.js +5 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
- package/dist/lib/section-loader-component.d.ts +5 -1
- package/dist/lib/section-loader-component.d.ts.map +1 -1
- package/dist/lib/section-loader-component.js +13 -5
- package/dist/lib/section-loader-component.js.map +1 -1
- package/dist/lib/section-manager/section-manager.component.d.ts +2 -2
- package/dist/lib/section-manager/section-manager.component.js +6 -6
- package/dist/lib/section-manager/section-manager.component.js.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.d.ts +127 -7
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.js +935 -334
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
- package/dist/lib/types/form-events.d.ts +6 -0
- package/dist/lib/types/form-events.d.ts.map +1 -1
- package/dist/lib/types/form-events.js +6 -0
- package/dist/lib/types/form-events.js.map +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts +20 -1
- package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
- package/dist/lib/types/form-toolbar-item.js.map +1 -1
- package/dist/lib/types/form-types.d.ts +7 -0
- package/dist/lib/types/form-types.d.ts.map +1 -1
- package/dist/lib/types/form-types.js +5 -1
- package/dist/lib/types/form-types.js.map +1 -1
- package/dist/lib/types/toolbar-config.d.ts +16 -0
- package/dist/lib/types/toolbar-config.d.ts.map +1 -1
- package/dist/lib/types/toolbar-config.js +3 -0
- package/dist/lib/types/toolbar-config.js.map +1 -1
- package/dist/module.d.ts +2 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +7 -3
- package/dist/module.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 +3 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +20 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-loader-component.js","sourceRoot":"","sources":["../../src/lib/section-loader-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAa,SAAS,EAAE,gBAAgB,EAA2C,MAAM,EAAE,YAAY,EAA2B,MAAM,eAAe,CAAC;AACjL,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;;;AAQzE,MAAM,OAAO,sBAAsB;
|
|
1
|
+
{"version":3,"file":"section-loader-component.js","sourceRoot":"","sources":["../../src/lib/section-loader-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAa,SAAS,EAAE,gBAAgB,EAA2C,MAAM,EAAE,YAAY,EAA2B,MAAM,eAAe,CAAC;AACjL,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;;;AAQzE,MAAM,OAAO,sBAAsB;IAmBX;IAlBX,MAAM,CAAU;IAChB,OAAO,CAAU;IACjB,MAAM,CAAc;IACpB,QAAQ,GAAY,KAAK,CAAC;IACzB,YAAY,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAElB,SAAS,CAAoB;IAEjF,yCAAyC;IACzC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IACD,yCAAyC;IACzC,IAAI,SAAS,CAAC,KAAuB;QACnC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,CAAC;IAEO,WAAW,GAAoC,IAAI,CAAC;IAC5D,YAAoB,GAAsB;QAAtB,QAAG,GAAH,GAAG,CA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AC;IACzB,CAAC;gHAvDQ,sBAAsB;6DAAtB,sBAAsB;mCAOC,gBAAgB;;;;;YATvC,8BAA0B;YAAA,wHAAwB;YAAc,iBAAM;;;iFAEtE,sBAAsB;cALlC,SAAS;eAAC;gBACT,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,iBAAiB;gBAC3B,QAAQ,EAAE,wEAAwE;aACnF;;kBAEI,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,MAAM;;kBAEN,SAAS;mBAAC,WAAW,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;;kFAPzC,sBAAsB","sourcesContent":["import { Component, Input, OnDestroy, ViewChild, ViewContainerRef, AfterViewInit, OnChanges, SimpleChanges, Output, EventEmitter, ChangeDetectorRef, Type } from '@angular/core';\nimport { MJGlobal } from '@memberjunction/global';\nimport { BaseFormSectionComponent } from './base-form-section-component';\nimport { BaseEntity } from '@memberjunction/core';\n\n@Component({\n standalone: false,\n selector: 'mj-form-section',\n template: `<div class=\"form-section\"><ng-template #container></ng-template></div>`\n})\nexport class SectionLoaderComponent implements AfterViewInit, OnDestroy, OnChanges {\n @Input() Entity!: string;\n @Input() Section!: string;\n @Input() record!: BaseEntity;\n @Input() EditMode: boolean = false;\n @Output() LoadComplete: EventEmitter<void> = new EventEmitter<void>();\n\n @ViewChild('container', { read: ViewContainerRef }) Container!: ViewContainerRef;\n\n /** @deprecated Use {@link Container}. */\n get container(): ViewContainerRef {\n return this.Container;\n }\n /** @deprecated Use {@link Container}. */\n set container(value: ViewContainerRef) {\n this.Container = value;\n }\n \n private _sectionObj: BaseFormSectionComponent | null = null;\n constructor(private cdr: ChangeDetectorRef) { }\n\n ngOnChanges(changes: SimpleChanges): void {\n // react to EditMode change\n if (changes['EditMode'] && !changes['EditMode'].firstChange && this._sectionObj) {\n this._sectionObj.EditMode = this.EditMode;\n }\n }\n\n ngAfterViewInit(): void {\n // do this via a promise in order to defer the load by one pass of the event loop\n // because that results in Angular not complaining about change detection due to dynamic\n // nature of the inner component\n Promise.resolve().then(() => this.loadComponent());\n }\n\n private loadComponent() { \n //console.log(\"loading component?\", `${this.Entity}.${this.Section}`);\n const sectionInfo = MJGlobal.Instance.ClassFactory.GetRegistration(BaseFormSectionComponent,`${this.Entity}.${this.Section}`);\n if (sectionInfo) {\n const componentRef = this.Container.createComponent(sectionInfo.SubClass as Type<BaseFormSectionComponent>); \n // pass in record and edit mode\n this._sectionObj = <BaseFormSectionComponent>componentRef.instance;\n this._sectionObj.record = this.record;\n this._sectionObj.EditMode = this.EditMode;\n this.cdr.detectChanges(); // Manually trigger change detection so that the call below to LoadComplete.emit() will occur after DOM is updated\n }\n else{\n console.log(\"no section info\");\n }\n this.LoadComplete.emit();\n }\n \n ngOnDestroy() {\n // Don't forget to cleanup dynamically created components\n this.Container.clear();\n }\n}"]}
|
|
@@ -71,8 +71,8 @@ export declare class MjSectionManagerComponent implements OnChanges {
|
|
|
71
71
|
OnReset(): void;
|
|
72
72
|
GetVariantIcon(variant: PanelVariant): string;
|
|
73
73
|
GetVariantLabel(variant: PanelVariant): string;
|
|
74
|
-
private
|
|
75
|
-
private
|
|
74
|
+
private rebuildOrderedSections;
|
|
75
|
+
private applyOrder;
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<MjSectionManagerComponent, never>;
|
|
77
77
|
static ɵcmp: i0.ɵɵComponentDeclaration<MjSectionManagerComponent, "mj-section-manager", never, { "Sections": { "alias": "Sections"; "required": false; }; "SectionOrder": { "alias": "SectionOrder"; "required": false; }; "MoreSectionKeys": { "alias": "MoreSectionKeys"; "required": false; }; "LockedMoreKeys": { "alias": "LockedMoreKeys"; "required": false; }; "Visible": { "alias": "Visible"; "required": false; }; }, { "SectionOrderChange": "SectionOrderChange"; "MembershipChange": "MembershipChange"; "Closed": "Closed"; "ResetRequested": "ResetRequested"; }, never, never, false, never>;
|
|
78
78
|
}
|
|
@@ -221,7 +221,7 @@ export class MjSectionManagerComponent {
|
|
|
221
221
|
MoreSections = [];
|
|
222
222
|
ngOnChanges(changes) {
|
|
223
223
|
if (changes['Sections'] || changes['SectionOrder'] || changes['MoreSectionKeys'] || changes['LockedMoreKeys']) {
|
|
224
|
-
this.
|
|
224
|
+
this.rebuildOrderedSections();
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
get HasMoreGroup() {
|
|
@@ -245,7 +245,7 @@ export class MjSectionManagerComponent {
|
|
|
245
245
|
const newOrder = this.OrderedSections.map(s => s.SectionKey);
|
|
246
246
|
[newOrder[index - 1], newOrder[index]] = [newOrder[index], newOrder[index - 1]];
|
|
247
247
|
this.SectionOrderChange.emit(newOrder);
|
|
248
|
-
this.
|
|
248
|
+
this.applyOrder(newOrder);
|
|
249
249
|
}
|
|
250
250
|
OnMoveDown(index) {
|
|
251
251
|
if (index >= this.OrderedSections.length - 1)
|
|
@@ -253,7 +253,7 @@ export class MjSectionManagerComponent {
|
|
|
253
253
|
const newOrder = this.OrderedSections.map(s => s.SectionKey);
|
|
254
254
|
[newOrder[index], newOrder[index + 1]] = [newOrder[index + 1], newOrder[index]];
|
|
255
255
|
this.SectionOrderChange.emit(newOrder);
|
|
256
|
-
this.
|
|
256
|
+
this.applyOrder(newOrder);
|
|
257
257
|
}
|
|
258
258
|
OnMoveGroupUp(list, index) {
|
|
259
259
|
if (index <= 0)
|
|
@@ -292,7 +292,7 @@ export class MjSectionManagerComponent {
|
|
|
292
292
|
? [...keys, ...other.map((s) => s.SectionKey)]
|
|
293
293
|
: [...other.map((s) => s.SectionKey), ...keys];
|
|
294
294
|
this.SectionOrderChange.emit(combined);
|
|
295
|
-
this.
|
|
295
|
+
this.applyOrder(combined);
|
|
296
296
|
}
|
|
297
297
|
OnReset() {
|
|
298
298
|
this.ResetRequested.emit();
|
|
@@ -311,7 +311,7 @@ export class MjSectionManagerComponent {
|
|
|
311
311
|
default: return 'Fields';
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
rebuildOrderedSections() {
|
|
315
315
|
if (!this.Sections || this.Sections.length === 0) {
|
|
316
316
|
this.OrderedSections = [];
|
|
317
317
|
return;
|
|
@@ -341,7 +341,7 @@ export class MjSectionManagerComponent {
|
|
|
341
341
|
this.MoreSections = ordered.filter((s) => moreSet.has(s.SectionKey));
|
|
342
342
|
this.cdr.markForCheck();
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
applyOrder(newOrder) {
|
|
345
345
|
const sectionMap = new Map();
|
|
346
346
|
for (const s of this.OrderedSections) {
|
|
347
347
|
sectionMap.set(s.SectionKey, s);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-manager.component.js","sourceRoot":"","sources":["../../../src/lib/section-manager/section-manager.component.ts","../../../src/lib/section-manager/section-manager.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EACtC,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAEnD,MAAM,eAAe,CAAC;;;;;ICkBT,AADF,+BAAuB,cACO;IAC1B,wBAAqD;IACrD,gCAA6B;IAAA,YAAyB;IAAA,iBAAO;IAC7D,4BAAqE;IACnE,YACF;IACF,AADE,iBAAO,EACH;IAEJ,AADF,+BAA+B,iBAIL;IADhB,+OAAS,8DAAoC,KAAC;IAEpD,wBAAsC;IACxC,iBAAS;IACT,mCAG0B;IADlB,gPAAS,gEAAsC,KAAC;IAEtD,yBAAwC;IAC1C,iBAAS;IACT,mCAE6B;IADrB,gPAAS,+BAAqB,KAAC;IAErC,yBAAuC;IAG7C,AADE,AADE,iBAAS,EACL,EACF;;;;;IAzBC,eAAsB;IAAtB,8BAAsB;IACI,eAAyB;IAAzB,4CAAyB;IAChD,cAA8D;IAA9D,cAAA,0EAA8D,CAAA;IAClE,cACF;IADE,2EACF;IAIQ,eAAoB;IAApB,8CAAoB;IAMpB,eAAgD;IAAhD,iFAAgD;;;IAc5D,+BAAyB;IAAA,wCAAwB;IAAA,iBAAM;;;;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MAAM,CAAC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACrC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;QACD,IAAI,CAAC,eAAe,GAAG,QAAQ;aAC5B,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aAC/B,MAAM,CAAC,CAAC,CAAC,EAA2B,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IAC1B,CAAC;mHAxLU,yBAAyB;6DAAzB,yBAAyB;YC9CtC,4FAAe;;YAAf,sCA4HC;;;iFD9EY,yBAAyB;cAPrC,SAAS;6BACI,KAAK,YACP,oBAAoB,mBACb,uBAAuB,CAAC,MAAM;;kBAQ9C,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kFA5BI,yBAAyB","sourcesContent":["import {\n Component, Input, Output, EventEmitter,\n ChangeDetectionStrategy, ChangeDetectorRef, inject,\n OnChanges, SimpleChanges\n} from '@angular/core';\nimport { PanelVariant } from '../types/form-types';\n\n/**\n * Info about a section, passed from the container to the Section Manager drawer.\n */\nexport interface SectionManagerItem {\n SectionKey: string;\n SectionName: string;\n Variant: PanelVariant;\n Icon: string;\n}\n\nexport interface ChromeMembershipChange {\n moreSectionKeys: string[];\n firstClassSectionKeys: string[];\n}\n\n/**\n * Slide-in drawer for managing section order.\n *\n * Provides an accessible, keyboard-friendly alternative to drag-and-drop\n * for reordering form sections. Each section is displayed as a row with\n * up/down arrow buttons to change position.\n *\n * @example\n * ```html\n * <mj-section-manager\n * [Sections]=\"sectionList\"\n * [SectionOrder]=\"currentOrder\"\n * [Visible]=\"showDrawer\"\n * (SectionOrderChange)=\"onOrderChange($event)\"\n * (Closed)=\"showDrawer = false\">\n * </mj-section-manager>\n * ```\n */\n@Component({\n standalone: false,\n selector: 'mj-section-manager',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './section-manager.component.html',\n styleUrls: ['./section-manager.component.css']\n})\nexport class MjSectionManagerComponent implements OnChanges {\n private cdr = inject(ChangeDetectorRef);\n\n /** All available sections (unordered) */\n @Input() Sections: SectionManagerItem[] = [];\n\n /** Current section order (array of section keys) */\n @Input() SectionOrder: string[] = [];\n\n /** Section keys currently in More. Empty keeps a single list. */\n @Input() MoreSectionKeys: string[] = [];\n\n /** Keys that cannot leave More (System Metadata). */\n @Input() LockedMoreKeys: string[] = [];\n\n /** Whether the drawer is visible */\n @Input() Visible = false;\n\n /** Emits the new section order when the user reorders */\n @Output() SectionOrderChange = new EventEmitter<string[]>();\n\n /** Emits when the user moves a section in or out of More. */\n @Output() MembershipChange = new EventEmitter<ChromeMembershipChange>();\n\n /** Emits when the drawer is closed */\n @Output() Closed = new EventEmitter<void>();\n\n /** Emits when the user resets to default order */\n @Output() ResetRequested = new EventEmitter<void>();\n\n /** Ordered list of sections for display */\n OrderedSections: SectionManagerItem[] = [];\n FirstClassSections: SectionManagerItem[] = [];\n MoreSections: SectionManagerItem[] = [];\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['Sections'] || changes['SectionOrder'] || changes['MoreSectionKeys'] || changes['LockedMoreKeys']) {\n this.RebuildOrderedSections();\n }\n }\n\n get HasMoreGroup(): boolean {\n return this.MoreSections.length > 0 || this.MoreSectionKeys.length > 0;\n }\n\n IsLockedInMore(section: SectionManagerItem): boolean {\n return this.LockedMoreKeys.includes(section.SectionKey);\n }\n\n OnClose(): void {\n this.Closed.emit();\n }\n\n OnOverlayClick(event: MouseEvent): void {\n // Only close if clicking the overlay itself, not the drawer\n if (event.target === event.currentTarget) {\n this.OnClose();\n }\n }\n\n OnMoveUp(index: number): void {\n if (index <= 0) return;\n const newOrder = this.OrderedSections.map(s => s.SectionKey);\n [newOrder[index - 1], newOrder[index]] = [newOrder[index], newOrder[index - 1]];\n this.SectionOrderChange.emit(newOrder);\n this.ApplyOrder(newOrder);\n }\n\n OnMoveDown(index: number): void {\n if (index >= this.OrderedSections.length - 1) return;\n const newOrder = this.OrderedSections.map(s => s.SectionKey);\n [newOrder[index], newOrder[index + 1]] = [newOrder[index + 1], newOrder[index]];\n this.SectionOrderChange.emit(newOrder);\n this.ApplyOrder(newOrder);\n }\n\n OnMoveGroupUp(list: SectionManagerItem[], index: number): void {\n if (index <= 0) return;\n this.emitReorderedGroup(list, index, index - 1);\n }\n\n OnMoveGroupDown(list: SectionManagerItem[], index: number): void {\n if (index >= list.length - 1) return;\n this.emitReorderedGroup(list, index, index + 1);\n }\n\n OnMoveToMore(section: SectionManagerItem): void {\n if (this.MoreSectionKeys.includes(section.SectionKey)) return;\n const more = [...this.MoreSectionKeys, section.SectionKey];\n const firstClass = this.FirstClassSections\n .map((s) => s.SectionKey)\n .filter((key) => key !== section.SectionKey);\n this.MembershipChange.emit({ moreSectionKeys: more, firstClassSectionKeys: firstClass });\n }\n\n OnMoveToForm(section: SectionManagerItem): void {\n if (this.IsLockedInMore(section)) return;\n const more = this.MoreSectionKeys.filter((key) => key !== section.SectionKey);\n const firstClass = [\n ...this.FirstClassSections.map((s) => s.SectionKey),\n section.SectionKey,\n ];\n this.MembershipChange.emit({ moreSectionKeys: more, firstClassSectionKeys: firstClass });\n }\n\n private emitReorderedGroup(list: SectionManagerItem[], from: number, to: number): void {\n const keys = list.map((s) => s.SectionKey);\n [keys[from], keys[to]] = [keys[to], keys[from]];\n const other = list === this.FirstClassSections ? this.MoreSections : this.FirstClassSections;\n const combined = list === this.FirstClassSections\n ? [...keys, ...other.map((s) => s.SectionKey)]\n : [...other.map((s) => s.SectionKey), ...keys];\n this.SectionOrderChange.emit(combined);\n this.ApplyOrder(combined);\n }\n\n OnReset(): void {\n this.ResetRequested.emit();\n }\n\n GetVariantIcon(variant: PanelVariant): string {\n switch (variant) {\n case 'related-entity': return 'fa-solid fa-link';\n case 'inherited': return 'fa-solid fa-arrow-up';\n default: return 'fa-solid fa-table-cells';\n }\n }\n\n GetVariantLabel(variant: PanelVariant): string {\n switch (variant) {\n case 'related-entity': return 'Related';\n case 'inherited': return 'Inherited';\n default: return 'Fields';\n }\n }\n\n private RebuildOrderedSections(): void {\n if (!this.Sections || this.Sections.length === 0) {\n this.OrderedSections = [];\n return;\n }\n\n const sectionMap = new Map<string, SectionManagerItem>();\n for (const s of this.Sections) {\n sectionMap.set(s.SectionKey, s);\n }\n\n const ordered: SectionManagerItem[] = [];\n\n // Add sections in persisted order first\n if (this.SectionOrder && this.SectionOrder.length > 0) {\n for (const key of this.SectionOrder) {\n const section = sectionMap.get(key);\n if (section) {\n ordered.push(section);\n sectionMap.delete(key);\n }\n }\n }\n\n // Append any sections not in the persisted order (new sections)\n for (const section of sectionMap.values()) {\n ordered.push(section);\n }\n\n this.OrderedSections = ordered;\n const moreSet = new Set(this.MoreSectionKeys);\n this.FirstClassSections = ordered.filter((s) => !moreSet.has(s.SectionKey));\n this.MoreSections = ordered.filter((s) => moreSet.has(s.SectionKey));\n this.cdr.markForCheck();\n }\n\n private ApplyOrder(newOrder: string[]): void {\n const sectionMap = new Map<string, SectionManagerItem>();\n for (const s of this.OrderedSections) {\n sectionMap.set(s.SectionKey, s);\n }\n this.OrderedSections = newOrder\n .map(key => sectionMap.get(key))\n .filter((s): s is SectionManagerItem => s !== undefined);\n const moreSet = new Set(this.MoreSectionKeys);\n this.FirstClassSections = this.OrderedSections.filter((s) => !moreSet.has(s.SectionKey));\n this.MoreSections = this.OrderedSections.filter((s) => moreSet.has(s.SectionKey));\n this.cdr.markForCheck();\n }\n}\n","<!-- Overlay backdrop -->\n@if (Visible) {\n <div class=\"mj-sm-overlay\" (click)=\"OnOverlayClick($event)\">\n <!-- Drawer panel -->\n <div class=\"mj-sm-drawer\" (click)=\"$event.stopPropagation()\">\n <!-- Header -->\n <div class=\"mj-sm-header\">\n <h3 class=\"mj-sm-title\">\n <i class=\"fa-solid fa-bars-staggered\"></i>\n Manage Sections\n </h3>\n <button class=\"mj-sm-close\" (click)=\"OnClose()\" title=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n\n <!-- Section list -->\n <div class=\"mj-sm-list\">\n @if (HasMoreGroup) {\n <div class=\"mj-sm-group-label\">On the form</div>\n @for (section of FirstClassSections; track section.SectionKey; let i = $index) {\n <div class=\"mj-sm-row\">\n <div class=\"mj-sm-row-info\">\n <i [class]=\"section.Icon\" class=\"mj-sm-row-icon\"></i>\n <span class=\"mj-sm-row-name\">{{ section.SectionName }}</span>\n <span class=\"mj-sm-row-badge mj-sm-row-badge--{{ section.Variant }}\">\n {{ GetVariantLabel(section.Variant) }}\n </span>\n </div>\n <div class=\"mj-sm-row-actions\">\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === 0\"\n (click)=\"OnMoveGroupUp(FirstClassSections, i)\"\n title=\"Move up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === FirstClassSections.length - 1\"\n (click)=\"OnMoveGroupDown(FirstClassSections, i)\"\n title=\"Move down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n <button class=\"mj-sm-arrow mj-sm-move\"\n (click)=\"OnMoveToMore(section)\"\n title=\"Move to More\">\n <i class=\"fa-solid fa-folder-plus\"></i>\n </button>\n </div>\n </div>\n }\n @if (FirstClassSections.length === 0) {\n <div class=\"mj-sm-empty\">Nothing on the form yet.</div>\n }\n\n <div class=\"mj-sm-group-label\">More</div>\n @for (section of MoreSections; track section.SectionKey; let i = $index) {\n <div class=\"mj-sm-row is-more\">\n <div class=\"mj-sm-row-info\">\n <i [class]=\"section.Icon\" class=\"mj-sm-row-icon\"></i>\n <span class=\"mj-sm-row-name\">{{ section.SectionName }}</span>\n <span class=\"mj-sm-row-badge mj-sm-row-badge--more\">More</span>\n </div>\n <div class=\"mj-sm-row-actions\">\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === 0\"\n (click)=\"OnMoveGroupUp(MoreSections, i)\"\n title=\"Move up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === MoreSections.length - 1\"\n (click)=\"OnMoveGroupDown(MoreSections, i)\"\n title=\"Move down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n <button class=\"mj-sm-arrow mj-sm-move\"\n [disabled]=\"IsLockedInMore(section)\"\n (click)=\"OnMoveToForm(section)\"\n [title]=\"IsLockedInMore(section) ? 'Always in More' : 'Move to form'\">\n <i class=\"fa-solid fa-arrow-up-from-bracket\"></i>\n </button>\n </div>\n </div>\n }\n @if (MoreSections.length === 0) {\n <div class=\"mj-sm-empty\">Nothing in More.</div>\n }\n } @else {\n @for (section of OrderedSections; track section.SectionKey; let i = $index) {\n <div class=\"mj-sm-row\">\n <div class=\"mj-sm-row-info\">\n <i [class]=\"section.Icon\" class=\"mj-sm-row-icon\"></i>\n <span class=\"mj-sm-row-name\">{{ section.SectionName }}</span>\n <span class=\"mj-sm-row-badge mj-sm-row-badge--{{ section.Variant }}\">\n {{ GetVariantLabel(section.Variant) }}\n </span>\n </div>\n <div class=\"mj-sm-row-actions\">\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === 0\"\n (click)=\"OnMoveUp(i)\"\n title=\"Move up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === OrderedSections.length - 1\"\n (click)=\"OnMoveDown(i)\"\n title=\"Move down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n </div>\n </div>\n }\n }\n </div>\n\n <!-- Footer -->\n <div class=\"mj-sm-footer\">\n <button class=\"mj-sm-reset\" (click)=\"OnReset()\">\n <i class=\"fa-solid fa-arrow-rotate-left\"></i>\n Reset to defaults\n </button>\n </div>\n </div>\n </div>\n}\n"]}
|
|
1
|
+
{"version":3,"file":"section-manager.component.js","sourceRoot":"","sources":["../../../src/lib/section-manager/section-manager.component.ts","../../../src/lib/section-manager/section-manager.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EACtC,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAEnD,MAAM,eAAe,CAAC;;;;;ICkBT,AADF,+BAAuB,cACO;IAC1B,wBAAqD;IACrD,gCAA6B;IAAA,YAAyB;IAAA,iBAAO;IAC7D,4BAAqE;IACnE,YACF;IACF,AADE,iBAAO,EACH;IAEJ,AADF,+BAA+B,iBAIL;IADhB,+OAAS,8DAAoC,KAAC;IAEpD,wBAAsC;IACxC,iBAAS;IACT,mCAG0B;IADlB,gPAAS,gEAAsC,KAAC;IAEtD,yBAAwC;IAC1C,iBAAS;IACT,mCAE6B;IADrB,gPAAS,+BAAqB,KAAC;IAErC,yBAAuC;IAG7C,AADE,AADE,iBAAS,EACL,EACF;;;;;IAzBC,eAAsB;IAAtB,8BAAsB;IACI,eAAyB;IAAzB,4CAAyB;IAChD,cAA8D;IAA9D,cAAA,0EAA8D,CAAA;IAClE,cACF;IADE,2EACF;IAIQ,eAAoB;IAApB,8CAAoB;IAMpB,eAAgD;IAAhD,iFAAgD;;;IAc5D,+BAAyB;IAA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G,EAA8B,CAAC;QACzD,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACrC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;QACD,IAAI,CAAC,eAAe,GAAG,QAAQ;aAC5B,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aAC/B,MAAM,CAAC,CAAC,CAAC,EAA2B,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IAC1B,CAAC;mHAxLU,yBAAyB;6DAAzB,yBAAyB;YC9CtC,4FAAe;;YAAf,sCA4HC;;;iFD9EY,yBAAyB;cAPrC,SAAS;6BACI,KAAK,YACP,oBAAoB,mBACb,uBAAuB,CAAC,MAAM;;kBAQ9C,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kFA5BI,yBAAyB","sourcesContent":["import {\n Component, Input, Output, EventEmitter,\n ChangeDetectionStrategy, ChangeDetectorRef, inject,\n OnChanges, SimpleChanges\n} from '@angular/core';\nimport { PanelVariant } from '../types/form-types';\n\n/**\n * Info about a section, passed from the container to the Section Manager drawer.\n */\nexport interface SectionManagerItem {\n SectionKey: string;\n SectionName: string;\n Variant: PanelVariant;\n Icon: string;\n}\n\nexport interface ChromeMembershipChange {\n moreSectionKeys: string[];\n firstClassSectionKeys: string[];\n}\n\n/**\n * Slide-in drawer for managing section order.\n *\n * Provides an accessible, keyboard-friendly alternative to drag-and-drop\n * for reordering form sections. Each section is displayed as a row with\n * up/down arrow buttons to change position.\n *\n * @example\n * ```html\n * <mj-section-manager\n * [Sections]=\"sectionList\"\n * [SectionOrder]=\"currentOrder\"\n * [Visible]=\"showDrawer\"\n * (SectionOrderChange)=\"onOrderChange($event)\"\n * (Closed)=\"showDrawer = false\">\n * </mj-section-manager>\n * ```\n */\n@Component({\n standalone: false,\n selector: 'mj-section-manager',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './section-manager.component.html',\n styleUrls: ['./section-manager.component.css']\n})\nexport class MjSectionManagerComponent implements OnChanges {\n private cdr = inject(ChangeDetectorRef);\n\n /** All available sections (unordered) */\n @Input() Sections: SectionManagerItem[] = [];\n\n /** Current section order (array of section keys) */\n @Input() SectionOrder: string[] = [];\n\n /** Section keys currently in More. Empty keeps a single list. */\n @Input() MoreSectionKeys: string[] = [];\n\n /** Keys that cannot leave More (System Metadata). */\n @Input() LockedMoreKeys: string[] = [];\n\n /** Whether the drawer is visible */\n @Input() Visible = false;\n\n /** Emits the new section order when the user reorders */\n @Output() SectionOrderChange = new EventEmitter<string[]>();\n\n /** Emits when the user moves a section in or out of More. */\n @Output() MembershipChange = new EventEmitter<ChromeMembershipChange>();\n\n /** Emits when the drawer is closed */\n @Output() Closed = new EventEmitter<void>();\n\n /** Emits when the user resets to default order */\n @Output() ResetRequested = new EventEmitter<void>();\n\n /** Ordered list of sections for display */\n OrderedSections: SectionManagerItem[] = [];\n FirstClassSections: SectionManagerItem[] = [];\n MoreSections: SectionManagerItem[] = [];\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['Sections'] || changes['SectionOrder'] || changes['MoreSectionKeys'] || changes['LockedMoreKeys']) {\n this.rebuildOrderedSections();\n }\n }\n\n get HasMoreGroup(): boolean {\n return this.MoreSections.length > 0 || this.MoreSectionKeys.length > 0;\n }\n\n IsLockedInMore(section: SectionManagerItem): boolean {\n return this.LockedMoreKeys.includes(section.SectionKey);\n }\n\n OnClose(): void {\n this.Closed.emit();\n }\n\n OnOverlayClick(event: MouseEvent): void {\n // Only close if clicking the overlay itself, not the drawer\n if (event.target === event.currentTarget) {\n this.OnClose();\n }\n }\n\n OnMoveUp(index: number): void {\n if (index <= 0) return;\n const newOrder = this.OrderedSections.map(s => s.SectionKey);\n [newOrder[index - 1], newOrder[index]] = [newOrder[index], newOrder[index - 1]];\n this.SectionOrderChange.emit(newOrder);\n this.applyOrder(newOrder);\n }\n\n OnMoveDown(index: number): void {\n if (index >= this.OrderedSections.length - 1) return;\n const newOrder = this.OrderedSections.map(s => s.SectionKey);\n [newOrder[index], newOrder[index + 1]] = [newOrder[index + 1], newOrder[index]];\n this.SectionOrderChange.emit(newOrder);\n this.applyOrder(newOrder);\n }\n\n OnMoveGroupUp(list: SectionManagerItem[], index: number): void {\n if (index <= 0) return;\n this.emitReorderedGroup(list, index, index - 1);\n }\n\n OnMoveGroupDown(list: SectionManagerItem[], index: number): void {\n if (index >= list.length - 1) return;\n this.emitReorderedGroup(list, index, index + 1);\n }\n\n OnMoveToMore(section: SectionManagerItem): void {\n if (this.MoreSectionKeys.includes(section.SectionKey)) return;\n const more = [...this.MoreSectionKeys, section.SectionKey];\n const firstClass = this.FirstClassSections\n .map((s) => s.SectionKey)\n .filter((key) => key !== section.SectionKey);\n this.MembershipChange.emit({ moreSectionKeys: more, firstClassSectionKeys: firstClass });\n }\n\n OnMoveToForm(section: SectionManagerItem): void {\n if (this.IsLockedInMore(section)) return;\n const more = this.MoreSectionKeys.filter((key) => key !== section.SectionKey);\n const firstClass = [\n ...this.FirstClassSections.map((s) => s.SectionKey),\n section.SectionKey,\n ];\n this.MembershipChange.emit({ moreSectionKeys: more, firstClassSectionKeys: firstClass });\n }\n\n private emitReorderedGroup(list: SectionManagerItem[], from: number, to: number): void {\n const keys = list.map((s) => s.SectionKey);\n [keys[from], keys[to]] = [keys[to], keys[from]];\n const other = list === this.FirstClassSections ? this.MoreSections : this.FirstClassSections;\n const combined = list === this.FirstClassSections\n ? [...keys, ...other.map((s) => s.SectionKey)]\n : [...other.map((s) => s.SectionKey), ...keys];\n this.SectionOrderChange.emit(combined);\n this.applyOrder(combined);\n }\n\n OnReset(): void {\n this.ResetRequested.emit();\n }\n\n GetVariantIcon(variant: PanelVariant): string {\n switch (variant) {\n case 'related-entity': return 'fa-solid fa-link';\n case 'inherited': return 'fa-solid fa-arrow-up';\n default: return 'fa-solid fa-table-cells';\n }\n }\n\n GetVariantLabel(variant: PanelVariant): string {\n switch (variant) {\n case 'related-entity': return 'Related';\n case 'inherited': return 'Inherited';\n default: return 'Fields';\n }\n }\n\n private rebuildOrderedSections(): void {\n if (!this.Sections || this.Sections.length === 0) {\n this.OrderedSections = [];\n return;\n }\n\n const sectionMap = new Map<string, SectionManagerItem>();\n for (const s of this.Sections) {\n sectionMap.set(s.SectionKey, s);\n }\n\n const ordered: SectionManagerItem[] = [];\n\n // Add sections in persisted order first\n if (this.SectionOrder && this.SectionOrder.length > 0) {\n for (const key of this.SectionOrder) {\n const section = sectionMap.get(key);\n if (section) {\n ordered.push(section);\n sectionMap.delete(key);\n }\n }\n }\n\n // Append any sections not in the persisted order (new sections)\n for (const section of sectionMap.values()) {\n ordered.push(section);\n }\n\n this.OrderedSections = ordered;\n const moreSet = new Set(this.MoreSectionKeys);\n this.FirstClassSections = ordered.filter((s) => !moreSet.has(s.SectionKey));\n this.MoreSections = ordered.filter((s) => moreSet.has(s.SectionKey));\n this.cdr.markForCheck();\n }\n\n private applyOrder(newOrder: string[]): void {\n const sectionMap = new Map<string, SectionManagerItem>();\n for (const s of this.OrderedSections) {\n sectionMap.set(s.SectionKey, s);\n }\n this.OrderedSections = newOrder\n .map(key => sectionMap.get(key))\n .filter((s): s is SectionManagerItem => s !== undefined);\n const moreSet = new Set(this.MoreSectionKeys);\n this.FirstClassSections = this.OrderedSections.filter((s) => !moreSet.has(s.SectionKey));\n this.MoreSections = this.OrderedSections.filter((s) => moreSet.has(s.SectionKey));\n this.cdr.markForCheck();\n }\n}\n","<!-- Overlay backdrop -->\n@if (Visible) {\n <div class=\"mj-sm-overlay\" (click)=\"OnOverlayClick($event)\">\n <!-- Drawer panel -->\n <div class=\"mj-sm-drawer\" (click)=\"$event.stopPropagation()\">\n <!-- Header -->\n <div class=\"mj-sm-header\">\n <h3 class=\"mj-sm-title\">\n <i class=\"fa-solid fa-bars-staggered\"></i>\n Manage Sections\n </h3>\n <button class=\"mj-sm-close\" (click)=\"OnClose()\" title=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n\n <!-- Section list -->\n <div class=\"mj-sm-list\">\n @if (HasMoreGroup) {\n <div class=\"mj-sm-group-label\">On the form</div>\n @for (section of FirstClassSections; track section.SectionKey; let i = $index) {\n <div class=\"mj-sm-row\">\n <div class=\"mj-sm-row-info\">\n <i [class]=\"section.Icon\" class=\"mj-sm-row-icon\"></i>\n <span class=\"mj-sm-row-name\">{{ section.SectionName }}</span>\n <span class=\"mj-sm-row-badge mj-sm-row-badge--{{ section.Variant }}\">\n {{ GetVariantLabel(section.Variant) }}\n </span>\n </div>\n <div class=\"mj-sm-row-actions\">\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === 0\"\n (click)=\"OnMoveGroupUp(FirstClassSections, i)\"\n title=\"Move up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === FirstClassSections.length - 1\"\n (click)=\"OnMoveGroupDown(FirstClassSections, i)\"\n title=\"Move down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n <button class=\"mj-sm-arrow mj-sm-move\"\n (click)=\"OnMoveToMore(section)\"\n title=\"Move to More\">\n <i class=\"fa-solid fa-folder-plus\"></i>\n </button>\n </div>\n </div>\n }\n @if (FirstClassSections.length === 0) {\n <div class=\"mj-sm-empty\">Nothing on the form yet.</div>\n }\n\n <div class=\"mj-sm-group-label\">More</div>\n @for (section of MoreSections; track section.SectionKey; let i = $index) {\n <div class=\"mj-sm-row is-more\">\n <div class=\"mj-sm-row-info\">\n <i [class]=\"section.Icon\" class=\"mj-sm-row-icon\"></i>\n <span class=\"mj-sm-row-name\">{{ section.SectionName }}</span>\n <span class=\"mj-sm-row-badge mj-sm-row-badge--more\">More</span>\n </div>\n <div class=\"mj-sm-row-actions\">\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === 0\"\n (click)=\"OnMoveGroupUp(MoreSections, i)\"\n title=\"Move up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === MoreSections.length - 1\"\n (click)=\"OnMoveGroupDown(MoreSections, i)\"\n title=\"Move down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n <button class=\"mj-sm-arrow mj-sm-move\"\n [disabled]=\"IsLockedInMore(section)\"\n (click)=\"OnMoveToForm(section)\"\n [title]=\"IsLockedInMore(section) ? 'Always in More' : 'Move to form'\">\n <i class=\"fa-solid fa-arrow-up-from-bracket\"></i>\n </button>\n </div>\n </div>\n }\n @if (MoreSections.length === 0) {\n <div class=\"mj-sm-empty\">Nothing in More.</div>\n }\n } @else {\n @for (section of OrderedSections; track section.SectionKey; let i = $index) {\n <div class=\"mj-sm-row\">\n <div class=\"mj-sm-row-info\">\n <i [class]=\"section.Icon\" class=\"mj-sm-row-icon\"></i>\n <span class=\"mj-sm-row-name\">{{ section.SectionName }}</span>\n <span class=\"mj-sm-row-badge mj-sm-row-badge--{{ section.Variant }}\">\n {{ GetVariantLabel(section.Variant) }}\n </span>\n </div>\n <div class=\"mj-sm-row-actions\">\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === 0\"\n (click)=\"OnMoveUp(i)\"\n title=\"Move up\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n <button class=\"mj-sm-arrow\"\n [disabled]=\"i === OrderedSections.length - 1\"\n (click)=\"OnMoveDown(i)\"\n title=\"Move down\">\n <i class=\"fa-solid fa-chevron-down\"></i>\n </button>\n </div>\n </div>\n }\n }\n </div>\n\n <!-- Footer -->\n <div class=\"mj-sm-footer\">\n <button class=\"mj-sm-reset\" (click)=\"OnReset()\">\n <i class=\"fa-solid fa-arrow-rotate-left\"></i>\n Reset to defaults\n </button>\n </div>\n </div>\n </div>\n}\n"]}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef, DoCheck, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
3
3
|
import { BaseEntity, EntityInfo } from '@memberjunction/core';
|
|
4
|
+
import { type CloneCompletedEvent, type CloneNavigationEvent } from '@memberjunction/ng-record-clone';
|
|
4
5
|
import { FormToolbarConfig } from '../types/toolbar-config';
|
|
5
6
|
import { FormToolbarItemConfig, FormToolbarItemClickEventArgs, ResolvedToolbarItem } from '../types/form-toolbar-item';
|
|
6
7
|
import { FormNavigationEvent } from '../types/navigation-events';
|
|
7
8
|
import { IsaRelatedItem } from '../isa-related-panel/isa-hierarchy-utils';
|
|
8
9
|
import { FormWidthMode } from '../types/form-types';
|
|
9
|
-
import { BeforeSaveEventArgs, BeforeDeleteEventArgs, BeforeRefreshEventArgs, BeforeCancelEventArgs, BeforeHistoryViewEventArgs, BeforeListManagementEventArgs, CustomToolbarButtonClickEventArgs, CustomToolbarButton } from '../types/form-events';
|
|
10
|
+
import { BeforeSaveEventArgs, BeforeDeleteEventArgs, BeforeRefreshEventArgs, BeforeCancelEventArgs, BeforeHistoryViewEventArgs, BeforeListManagementEventArgs, BeforeCloneEventArgs, CustomToolbarButtonClickEventArgs, CustomToolbarButton } from '../types/form-events';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
12
|
+
/** User setting that stores the toolbar actions a user pinned, shared across every form. */
|
|
13
|
+
export declare const TOOLBAR_PINS_SETTING_KEY = "mj.form.toolbar.pinnedActions";
|
|
14
|
+
/** Built-in actions that start pinned for a user who has not chosen pins. */
|
|
15
|
+
export declare const DEFAULT_PINNED_TOOLBAR_ACTIONS: readonly string[];
|
|
11
16
|
/**
|
|
12
17
|
* Configurable form toolbar component.
|
|
13
18
|
*
|
|
@@ -33,6 +38,9 @@ import * as i0 from "@angular/core";
|
|
|
33
38
|
export declare class MjFormToolbarComponent extends BaseAngularComponent implements DoCheck, OnInit, OnDestroy {
|
|
34
39
|
private cdr;
|
|
35
40
|
private recordRefresh;
|
|
41
|
+
private cloneService;
|
|
42
|
+
private host;
|
|
43
|
+
private renderer;
|
|
36
44
|
private destroy$;
|
|
37
45
|
private _formRef;
|
|
38
46
|
/**
|
|
@@ -175,6 +183,10 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
175
183
|
WidthModeChange: EventEmitter<FormWidthMode>;
|
|
176
184
|
ResetSectionOrderRequested: EventEmitter<void>;
|
|
177
185
|
ManageSectionsRequested: EventEmitter<void>;
|
|
186
|
+
/** Emitted before the clone slide-in opens. Set `Cancel` to handle cloning yourself. */
|
|
187
|
+
BeforeClone: EventEmitter<BeforeCloneEventArgs>;
|
|
188
|
+
/** Emitted after the clone slide-in commits a clone of this record. */
|
|
189
|
+
CloneCompleted: EventEmitter<CloneCompletedEvent>;
|
|
178
190
|
ShowDeleteDialog: boolean;
|
|
179
191
|
ShowDiscardDialog: boolean;
|
|
180
192
|
/** Computed descendant tree for breadcrumb display */
|
|
@@ -184,11 +196,13 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
184
196
|
ngOnInit(): void;
|
|
185
197
|
ngOnDestroy(): void;
|
|
186
198
|
ngDoCheck(): void;
|
|
199
|
+
/** Redraws when the saved pins changed elsewhere (another open form, another tab). */
|
|
200
|
+
private checkPinsChanged;
|
|
187
201
|
/**
|
|
188
202
|
* Sync toolbar state from the legacy form reference.
|
|
189
203
|
* Only active when [Form] is set (backward-compat mode).
|
|
190
204
|
*/
|
|
191
|
-
private
|
|
205
|
+
private syncFromFormRef;
|
|
192
206
|
/** Whether entity tracks record changes (for history button) */
|
|
193
207
|
get TracksChanges(): boolean;
|
|
194
208
|
/** IS-A parent chain for breadcrumb display */
|
|
@@ -245,12 +259,12 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
245
259
|
* Check if descendant chains need recomputation (called from DoCheck).
|
|
246
260
|
* Only triggers async computation when the record identity changes.
|
|
247
261
|
*/
|
|
248
|
-
private
|
|
262
|
+
private checkDescendantChains;
|
|
249
263
|
/**
|
|
250
264
|
* Asynchronously discover all IS-A descendants and convert to chains
|
|
251
265
|
* for breadcrumb display. Each chain is a root-to-leaf path of entity names.
|
|
252
266
|
*/
|
|
253
|
-
private
|
|
267
|
+
private computeDescendantChains;
|
|
254
268
|
/**
|
|
255
269
|
* Navigate to a descendant entity record in the IS-A hierarchy.
|
|
256
270
|
*/
|
|
@@ -260,7 +274,7 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
260
274
|
OnCancel(): void;
|
|
261
275
|
OnDiscardConfirm(): void;
|
|
262
276
|
OnDiscardCancel(): void;
|
|
263
|
-
private
|
|
277
|
+
private emitCancel;
|
|
264
278
|
OnDeleteClick(): void;
|
|
265
279
|
OnDeleteConfirm(): void;
|
|
266
280
|
OnDeleteCancel(): void;
|
|
@@ -276,11 +290,113 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
276
290
|
* evaluated against the current Record and EditMode.
|
|
277
291
|
*/
|
|
278
292
|
get ResolvedToolbarItems(): ResolvedToolbarItem[];
|
|
293
|
+
/** The resolved items for the current change-detection pass; cleared in ngDoCheck. */
|
|
294
|
+
private _resolvedItems;
|
|
295
|
+
private resolveToolbarItems;
|
|
279
296
|
get ResolvedActionItems(): ResolvedToolbarItem[];
|
|
280
297
|
get ResolvedEditBeforeSaveItems(): ResolvedToolbarItem[];
|
|
281
298
|
get ResolvedEditAfterSaveItems(): ResolvedToolbarItem[];
|
|
282
299
|
get ResolvedRightItems(): ResolvedToolbarItem[];
|
|
300
|
+
/** Whether the More menu is open. */
|
|
301
|
+
MoreMenuOpen: boolean;
|
|
302
|
+
/** Whether the View menu (section and layout controls) is open. */
|
|
303
|
+
ViewMenuOpen: boolean;
|
|
304
|
+
/** Last raw pins setting read from UserInfoEngine, and its parse, so each change detection pass doesn't re-parse. */
|
|
305
|
+
private _pinsRaw;
|
|
306
|
+
private _pinsParsed;
|
|
307
|
+
/** Pins set in this session when no user settings are available (tests, anonymous hosts). */
|
|
308
|
+
private _localPins;
|
|
309
|
+
/** The maximum number of pinned buttons, the same for every user. */
|
|
310
|
+
get MaxPinnedActions(): number;
|
|
311
|
+
/**
|
|
312
|
+
* Keys the user pinned, in their order, or the configured defaults until they choose. Read from
|
|
313
|
+
* UserInfoEngine on every pass (pending debounced writes included), so every open form agrees.
|
|
314
|
+
* May include actions this form doesn't offer; those neither render nor use a slot here.
|
|
315
|
+
*/
|
|
316
|
+
get PinnedKeys(): string[];
|
|
317
|
+
/** Read-mode actions that always render as buttons: Edit and custom items that are not pinnable. */
|
|
318
|
+
get InlineActionItems(): ResolvedToolbarItem[];
|
|
319
|
+
/** Pinned actions this form offers, in pin order, up to MaxPinnedActions. Computed once per pass. */
|
|
320
|
+
get PinnedActionItems(): ResolvedToolbarItem[];
|
|
321
|
+
/**
|
|
322
|
+
* The pinned items for the current change-detection pass (cleared in ngDoCheck): those shown as
|
|
323
|
+
* buttons, and every pinned key this form offers, including ones past the cap.
|
|
324
|
+
*/
|
|
325
|
+
private _pinnedItems;
|
|
326
|
+
private resolvePinnedItems;
|
|
327
|
+
/** Pinnable actions listed in the More menu, Delete excluded (it has its own row). */
|
|
328
|
+
get MoreMenuItems(): ResolvedToolbarItem[];
|
|
329
|
+
/** The Delete action, shown last in the More menu, unless a host made it an inline button. */
|
|
330
|
+
get DeleteMenuItem(): ResolvedToolbarItem | undefined;
|
|
331
|
+
get ShowMoreMenu(): boolean;
|
|
332
|
+
/** Whether the action is pinned for this user and offered on this form (shown as a button, or waiting past the cap). */
|
|
333
|
+
IsPinned(key: string): boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Pinned (in the user's list) but not shown on this form, because the pins before it filled every
|
|
336
|
+
* slot. Pins count per form, so one saved on a form without some of the others can land here.
|
|
337
|
+
*/
|
|
338
|
+
IsPinnedOverCap(key: string): boolean;
|
|
339
|
+
/** Whether another action can be pinned here; counts only the pinned buttons this form shows. */
|
|
340
|
+
get CanPinMore(): boolean;
|
|
341
|
+
/**
|
|
342
|
+
* Pins or unpins an action for this user and saves the choice. Pins for actions this form
|
|
343
|
+
* doesn't offer are kept, so they come back on forms that do.
|
|
344
|
+
*/
|
|
345
|
+
TogglePin(key: string): void;
|
|
346
|
+
private static nextMenuId;
|
|
347
|
+
/** Prefix for the More and View panels' ids, unique per toolbar, for the triggers' aria-controls. */
|
|
348
|
+
readonly MenuIdPrefix: string;
|
|
349
|
+
ToggleMoreMenu(): void;
|
|
350
|
+
ToggleViewMenu(): void;
|
|
351
|
+
/** Puts focus back on a panel's trigger, for when the control that had focus goes away with the panel. */
|
|
352
|
+
private focusTrigger;
|
|
353
|
+
/** Moves focus into a just-opened panel, once it has rendered, so keyboard users land in it. */
|
|
354
|
+
private focusFirstIn;
|
|
355
|
+
/**
|
|
356
|
+
* Runs a More-menu item and closes the menu. Focus goes back to the More button first, so a
|
|
357
|
+
* keyboard user isn't left on <body>; an item that opens its own drawer or dialog then takes it.
|
|
358
|
+
*/
|
|
359
|
+
OnMenuItemClick(item: ResolvedToolbarItem, event: MouseEvent): void;
|
|
360
|
+
CloseMenus(): void;
|
|
361
|
+
/** Document listeners run only while a panel is open, so a click elsewhere in the app costs closed toolbars nothing. */
|
|
362
|
+
private _unlistenDocument;
|
|
363
|
+
private syncDocumentListeners;
|
|
364
|
+
private stopDocumentListeners;
|
|
365
|
+
/** Whether the View menu has anything to show. */
|
|
366
|
+
get ShowViewMenu(): boolean;
|
|
367
|
+
OnDocumentClick(event: MouseEvent): void;
|
|
368
|
+
OnEscape(event?: Event): void;
|
|
369
|
+
/**
|
|
370
|
+
* The engine for this component's provider (a multi-provider host has one per connection), else
|
|
371
|
+
* the global one. Resolved once per change-detection pass (cleared in ngDoCheck).
|
|
372
|
+
*/
|
|
373
|
+
private get userInfoEngine();
|
|
374
|
+
private _userInfoEngine;
|
|
375
|
+
private resolveUserInfoEngine;
|
|
376
|
+
private readPins;
|
|
377
|
+
private writePins;
|
|
283
378
|
OnToolbarItemClick(item: ResolvedToolbarItem, event: MouseEvent): Promise<void>;
|
|
379
|
+
/** Whether the clone slide-in is open. */
|
|
380
|
+
IsClonePanelOpen: boolean;
|
|
381
|
+
/** Whether the server said this user may clone records of the current entity. */
|
|
382
|
+
CanCloneEntity: boolean;
|
|
383
|
+
/** The entity name the last clone capability check ran for. */
|
|
384
|
+
private _cloneCheckedEntity;
|
|
385
|
+
private _cloneRecordKey;
|
|
386
|
+
/** True when the Clone action should render for the current record. */
|
|
387
|
+
get ShowCloneAction(): boolean;
|
|
388
|
+
/** Opens the clone slide-in, unless a `BeforeClone` handler cancels. */
|
|
389
|
+
OnClone(): void;
|
|
390
|
+
OnClonePanelVisibleChange(visible: boolean): void;
|
|
391
|
+
OnCloneCompleted(event: CloneCompletedEvent): void;
|
|
392
|
+
/** Turns the clone widget's navigation request into the toolbar's own `Navigate` event. */
|
|
393
|
+
OnCloneNavigate(event: CloneNavigationEvent): void;
|
|
394
|
+
/**
|
|
395
|
+
* Asks `RecordClone.Describe` (cached per entity per session) once per entity whether the
|
|
396
|
+
* user may clone it. Entities whose `Configuration.Clone.Enabled` is not true are skipped
|
|
397
|
+
* without a server call.
|
|
398
|
+
*/
|
|
399
|
+
private checkCloneCapability;
|
|
284
400
|
OnShowChanges(): void;
|
|
285
401
|
/** Whether the variant-picker dropdown is currently open. */
|
|
286
402
|
VariantMenuOpen: boolean;
|
|
@@ -304,7 +420,9 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
304
420
|
Scope: string;
|
|
305
421
|
Status: string;
|
|
306
422
|
}): string;
|
|
423
|
+
/** @deprecated The variant list lives in the View panel; nothing opens a separate variant menu. */
|
|
307
424
|
ToggleVariantMenu(): void;
|
|
425
|
+
/** @deprecated The variant list lives in the View panel; use {@link CloseMenus}. */
|
|
308
426
|
CloseVariantMenu(): void;
|
|
309
427
|
/**
|
|
310
428
|
* User picked a row in the variant menu. Closes the menu and emits
|
|
@@ -316,7 +434,7 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
316
434
|
* Try to call a method on the legacy form reference.
|
|
317
435
|
* Returns true if the method was found and called, false otherwise.
|
|
318
436
|
*/
|
|
319
|
-
private
|
|
437
|
+
private dispatchToFormRef;
|
|
320
438
|
/**
|
|
321
439
|
* Navigate to a parent entity record in the IS-A hierarchy.
|
|
322
440
|
*/
|
|
@@ -343,8 +461,10 @@ export declare class MjFormToolbarComponent extends BaseAngularComponent impleme
|
|
|
343
461
|
OnToggleEmptyFields(): void;
|
|
344
462
|
OnToggleWidthMode(): void;
|
|
345
463
|
OnResetSectionOrder(): void;
|
|
464
|
+
/** "Reorder sections" in the View panel: close it properly (listeners, focus on View), then open the manager. */
|
|
465
|
+
OnReorderSectionsFromView(): void;
|
|
346
466
|
OnManageSections(): void;
|
|
347
467
|
static ɵfac: i0.ɵɵFactoryDeclaration<MjFormToolbarComponent, never>;
|
|
348
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MjFormToolbarComponent, "mj-form-toolbar", never, { "Form": { "alias": "Form"; "required": false; }; "_deprecatedForm": { "alias": "form"; "required": false; }; "Record": { "alias": "Record"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "UserCanEdit": { "alias": "UserCanEdit"; "required": false; }; "UserCanDelete": { "alias": "UserCanDelete"; "required": false; }; "IsFavorite": { "alias": "IsFavorite"; "required": false; }; "FavoriteInitDone": { "alias": "FavoriteInitDone"; "required": false; }; "IsDirty": { "alias": "IsDirty"; "required": false; }; "DirtyFieldNames": { "alias": "DirtyFieldNames"; "required": false; }; "ListCount": { "alias": "ListCount"; "required": false; }; "TagCount": { "alias": "TagCount"; "required": false; }; "IsTagsPanelOpen": { "alias": "IsTagsPanelOpen"; "required": false; }; "AttachmentCount": { "alias": "AttachmentCount"; "required": false; }; "AttachmentsAvailable": { "alias": "AttachmentsAvailable"; "required": false; }; "IsAttachmentsPanelOpen": { "alias": "IsAttachmentsPanelOpen"; "required": false; }; "VersionCount": { "alias": "VersionCount"; "required": false; }; "EntityInfo": { "alias": "EntityInfo"; "required": false; }; "Config": { "alias": "Config"; "required": false; }; "IsSaving": { "alias": "IsSaving"; "required": false; }; "IsRefreshing": { "alias": "IsRefreshing"; "required": false; }; "VisibleSectionCount": { "alias": "VisibleSectionCount"; "required": false; }; "TotalSectionCount": { "alias": "TotalSectionCount"; "required": false; }; "ExpandedSectionCount": { "alias": "ExpandedSectionCount"; "required": false; }; "SearchFilter": { "alias": "SearchFilter"; "required": false; }; "ShowEmptyFields": { "alias": "ShowEmptyFields"; "required": false; }; "WidthMode": { "alias": "WidthMode"; "required": false; }; "HasCustomSectionOrder": { "alias": "HasCustomSectionOrder"; "required": false; }; "ChromeLayout": { "alias": "ChromeLayout"; "required": false; }; "AdditionalActionsTemplate": { "alias": "AdditionalActionsTemplate"; "required": false; }; "Variants": { "alias": "Variants"; "required": false; }; "RegisteredItems": { "alias": "RegisteredItems"; "required": false; }; "ItemOverrides": { "alias": "ItemOverrides"; "required": false; }; "FormComponent": { "alias": "FormComponent"; "required": false; }; "CurrentVariantID": { "alias": "CurrentVariantID"; "required": false; }; }, { "ToolbarItemClick": "ToolbarItemClick"; "Navigate": "Navigate"; "EditModeChange": "EditModeChange"; "BeforeSave": "BeforeSave"; "SaveRequested": "SaveRequested"; "BeforeCancel": "BeforeCancel"; "CancelRequested": "CancelRequested"; "BeforeDelete": "BeforeDelete"; "DeleteRequested": "DeleteRequested"; "BeforeRefresh": "BeforeRefresh"; "RefreshRequested": "RefreshRequested"; "FavoriteToggled": "FavoriteToggled"; "BeforeHistoryView": "BeforeHistoryView"; "HistoryRequested": "HistoryRequested"; "BeforeListManagement": "BeforeListManagement"; "ListManagementRequested": "ListManagementRequested"; "TagsPanelToggled": "TagsPanelToggled"; "AttachmentsPanelToggled": "AttachmentsPanelToggled"; "ShowChangesRequested": "ShowChangesRequested"; "VariantPicked": "VariantPicked"; "CustomButtonClick": "CustomButtonClick"; "FilterChange": "FilterChange"; "ExpandAllRequested": "ExpandAllRequested"; "CollapseAllRequested": "CollapseAllRequested"; "ShowEmptyFieldsChange": "ShowEmptyFieldsChange"; "WidthModeChange": "WidthModeChange"; "ResetSectionOrderRequested": "ResetSectionOrderRequested"; "ManageSectionsRequested": "ManageSectionsRequested"; }, never, ["[toolbar-additional-controls]"], false, never>;
|
|
468
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MjFormToolbarComponent, "mj-form-toolbar", never, { "Form": { "alias": "Form"; "required": false; }; "_deprecatedForm": { "alias": "form"; "required": false; }; "Record": { "alias": "Record"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "UserCanEdit": { "alias": "UserCanEdit"; "required": false; }; "UserCanDelete": { "alias": "UserCanDelete"; "required": false; }; "IsFavorite": { "alias": "IsFavorite"; "required": false; }; "FavoriteInitDone": { "alias": "FavoriteInitDone"; "required": false; }; "IsDirty": { "alias": "IsDirty"; "required": false; }; "DirtyFieldNames": { "alias": "DirtyFieldNames"; "required": false; }; "ListCount": { "alias": "ListCount"; "required": false; }; "TagCount": { "alias": "TagCount"; "required": false; }; "IsTagsPanelOpen": { "alias": "IsTagsPanelOpen"; "required": false; }; "AttachmentCount": { "alias": "AttachmentCount"; "required": false; }; "AttachmentsAvailable": { "alias": "AttachmentsAvailable"; "required": false; }; "IsAttachmentsPanelOpen": { "alias": "IsAttachmentsPanelOpen"; "required": false; }; "VersionCount": { "alias": "VersionCount"; "required": false; }; "EntityInfo": { "alias": "EntityInfo"; "required": false; }; "Config": { "alias": "Config"; "required": false; }; "IsSaving": { "alias": "IsSaving"; "required": false; }; "IsRefreshing": { "alias": "IsRefreshing"; "required": false; }; "VisibleSectionCount": { "alias": "VisibleSectionCount"; "required": false; }; "TotalSectionCount": { "alias": "TotalSectionCount"; "required": false; }; "ExpandedSectionCount": { "alias": "ExpandedSectionCount"; "required": false; }; "SearchFilter": { "alias": "SearchFilter"; "required": false; }; "ShowEmptyFields": { "alias": "ShowEmptyFields"; "required": false; }; "WidthMode": { "alias": "WidthMode"; "required": false; }; "HasCustomSectionOrder": { "alias": "HasCustomSectionOrder"; "required": false; }; "ChromeLayout": { "alias": "ChromeLayout"; "required": false; }; "AdditionalActionsTemplate": { "alias": "AdditionalActionsTemplate"; "required": false; }; "Variants": { "alias": "Variants"; "required": false; }; "RegisteredItems": { "alias": "RegisteredItems"; "required": false; }; "ItemOverrides": { "alias": "ItemOverrides"; "required": false; }; "FormComponent": { "alias": "FormComponent"; "required": false; }; "CurrentVariantID": { "alias": "CurrentVariantID"; "required": false; }; }, { "ToolbarItemClick": "ToolbarItemClick"; "Navigate": "Navigate"; "EditModeChange": "EditModeChange"; "BeforeSave": "BeforeSave"; "SaveRequested": "SaveRequested"; "BeforeCancel": "BeforeCancel"; "CancelRequested": "CancelRequested"; "BeforeDelete": "BeforeDelete"; "DeleteRequested": "DeleteRequested"; "BeforeRefresh": "BeforeRefresh"; "RefreshRequested": "RefreshRequested"; "FavoriteToggled": "FavoriteToggled"; "BeforeHistoryView": "BeforeHistoryView"; "HistoryRequested": "HistoryRequested"; "BeforeListManagement": "BeforeListManagement"; "ListManagementRequested": "ListManagementRequested"; "TagsPanelToggled": "TagsPanelToggled"; "AttachmentsPanelToggled": "AttachmentsPanelToggled"; "ShowChangesRequested": "ShowChangesRequested"; "VariantPicked": "VariantPicked"; "CustomButtonClick": "CustomButtonClick"; "FilterChange": "FilterChange"; "ExpandAllRequested": "ExpandAllRequested"; "CollapseAllRequested": "CollapseAllRequested"; "ShowEmptyFieldsChange": "ShowEmptyFieldsChange"; "WidthModeChange": "WidthModeChange"; "ResetSectionOrderRequested": "ResetSectionOrderRequested"; "ManageSectionsRequested": "ManageSectionsRequested"; "BeforeClone": "BeforeClone"; "CloneCompleted": "CloneCompleted"; }, never, ["[toolbar-additional-controls]"], false, never>;
|
|
349
469
|
}
|
|
350
470
|
//# sourceMappingURL=form-toolbar.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-toolbar.component.d.ts","sourceRoot":"","sources":["../../../src/lib/toolbar/form-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA2B,WAAW,EAA6B,OAAO,EAAE,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"form-toolbar.component.d.ts","sourceRoot":"","sources":["../../../src/lib/toolbar/form-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA2B,WAAW,EAA6B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAyB,MAAM,eAAe,CAAC;AAG3L,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,UAAU,EAA0B,MAAM,sBAAsB,CAAC;AAGtF,OAAO,EAAsB,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC1H,OAAO,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAsB,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE3I,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAA+C,cAAc,EAAE,MAAM,0C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