@memberjunction/ng-entity-viewer 6.1.4 → 6.2.0-edge.1
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/aggregate-panel/aggregate-panel.component.d.ts +18 -2
- package/dist/lib/aggregate-panel/aggregate-panel.component.d.ts.map +1 -1
- package/dist/lib/aggregate-panel/aggregate-panel.component.js +47 -18
- package/dist/lib/aggregate-panel/aggregate-panel.component.js.map +1 -1
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts +22 -0
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts.map +1 -1
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js +57 -13
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js.map +1 -1
- package/dist/lib/entity-cards/entity-cards.component.d.ts +68 -5
- package/dist/lib/entity-cards/entity-cards.component.d.ts.map +1 -1
- package/dist/lib/entity-cards/entity-cards.component.js +213 -73
- package/dist/lib/entity-cards/entity-cards.component.js.map +1 -1
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts +156 -14
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts.map +1 -1
- package/dist/lib/entity-data-grid/entity-data-grid.component.js +432 -138
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-data-grid/events/grid-events.js +67 -67
- package/dist/lib/entity-data-grid/events/grid-events.js.map +1 -1
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +112 -8
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts.map +1 -1
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js +255 -69
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts +11 -0
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +45 -8
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/pill/pill.component.d.ts +13 -3
- package/dist/lib/pill/pill.component.d.ts.map +1 -1
- package/dist/lib/pill/pill.component.js +34 -10
- package/dist/lib/pill/pill.component.js.map +1 -1
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.d.ts +29 -3
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.d.ts.map +1 -1
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.js +173 -114
- package/dist/lib/quick-save-dialog/quick-save-dialog.component.js.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin.component.d.ts +4 -0
- package/dist/lib/recycle-bin/recycle-bin.component.d.ts.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin.component.js +10 -2
- package/dist/lib/recycle-bin/recycle-bin.component.js.map +1 -1
- package/dist/lib/utils/aggregate-field.util.d.ts +21 -0
- package/dist/lib/utils/aggregate-field.util.d.ts.map +1 -0
- package/dist/lib/utils/aggregate-field.util.js +40 -0
- package/dist/lib/utils/aggregate-field.util.js.map +1 -0
- package/dist/lib/utils/highlight.util.d.ts +6 -0
- package/dist/lib/utils/highlight.util.d.ts.map +1 -1
- package/dist/lib/utils/highlight.util.js +23 -11
- package/dist/lib/utils/highlight.util.js.map +1 -1
- package/dist/lib/utils/record.util.d.ts +10 -0
- package/dist/lib/utils/record.util.d.ts.map +1 -1
- package/dist/lib/utils/record.util.js +20 -4
- package/dist/lib/utils/record.util.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +22 -2
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.js +54 -14
- package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
- package/dist/lib/view-selector/view-selector.component.js +2 -2
- package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts +15 -3
- package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/cards-view-renderer.component.js +33 -5
- package/dist/lib/view-types/renderers/cards-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +160 -5
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js +576 -36
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts +16 -2
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/map-view-renderer.component.js +37 -9
- package/dist/lib/view-types/renderers/map-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/view-type.contracts.js.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts +235 -24
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.js +600 -174
- package/dist/lib/view-workspace/view-workspace.component.js.map +1 -1
- package/dist/module.d.ts +5 -4
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +8 -1
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +21 -20
|
@@ -17,6 +17,8 @@ export declare class PillColorUtil {
|
|
|
17
17
|
* @param value The value to analyze
|
|
18
18
|
* @returns The semantic color type
|
|
19
19
|
*/
|
|
20
|
+
static GetColorType(value: string | null | undefined): PillColorType;
|
|
21
|
+
/** @deprecated Use {@link GetColorType}. */
|
|
20
22
|
static getColorType(value: string | null | undefined): PillColorType;
|
|
21
23
|
private static matchesAnyPattern;
|
|
22
24
|
}
|
|
@@ -39,11 +41,19 @@ export declare class PillComponent {
|
|
|
39
41
|
/**
|
|
40
42
|
* The value to display in the pill
|
|
41
43
|
*/
|
|
42
|
-
|
|
44
|
+
Value: string | null | undefined;
|
|
45
|
+
/** @deprecated Use {@link Value}. */
|
|
46
|
+
set value(value: string | null | undefined);
|
|
47
|
+
/** @deprecated Use {@link Value}. */
|
|
48
|
+
get value(): string | null | undefined;
|
|
43
49
|
/**
|
|
44
50
|
* Optional: Force a specific color instead of auto-detecting
|
|
45
51
|
*/
|
|
46
|
-
|
|
52
|
+
Color: PillColorType | null;
|
|
53
|
+
/** @deprecated Use {@link Color}. */
|
|
54
|
+
set color(value: PillColorType | null);
|
|
55
|
+
/** @deprecated Use {@link Color}. */
|
|
56
|
+
get color(): PillColorType | null;
|
|
47
57
|
/**
|
|
48
58
|
* Get the display value
|
|
49
59
|
*/
|
|
@@ -53,6 +63,6 @@ export declare class PillComponent {
|
|
|
53
63
|
*/
|
|
54
64
|
get effectiveColorType(): PillColorType;
|
|
55
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<PillComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PillComponent, "mj-pill", never, { "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PillComponent, "mj-pill", never, { "Value": { "alias": "Value"; "required": false; }; "value": { "alias": "value"; "required": false; }; "Color": { "alias": "Color"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
|
|
57
67
|
}
|
|
58
68
|
//# sourceMappingURL=pill.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pill.component.d.ts","sourceRoot":"","sources":["../../../src/lib/pill/pill.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;;AAEzC;;GAEG;AACH,qBAAa,aAAa;IACxB,sCAAsC;IACtC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAKrC;IAEF,8CAA8C;IAC9C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,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AAO,CAAC,MAAM,CAAC,iBAAiB;CAOjC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBA8Ca,aAAa;IACxB;;OAEG;IACM,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAM;IAE/C,qCAAqC;IACrC,IAAa,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAElD;IACD,qCAAqC;IACrC,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAErC;IAED;;OAEG;IACM,KAAK,EAAE,aAAa,GAAG,IAAI,CAAQ;IAE5C,qCAAqC;IACrC,IAAa,KAAK,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,EAE7C;IACD,qCAAqC;IACrC,IAAI,KAAK,IAAI,aAAa,GAAG,IAAI,CAEhC;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,kBAAkB,IAAI,aAAa,CAKtC;yCA5CU,aAAa;2CAAb,aAAa;CA6CzB"}
|
|
@@ -35,7 +35,7 @@ export class PillColorUtil {
|
|
|
35
35
|
* @param value The value to analyze
|
|
36
36
|
* @returns The semantic color type
|
|
37
37
|
*/
|
|
38
|
-
static
|
|
38
|
+
static GetColorType(value) {
|
|
39
39
|
if (!value)
|
|
40
40
|
return 'neutral';
|
|
41
41
|
const normalizedValue = value.toLowerCase().trim();
|
|
@@ -53,6 +53,10 @@ export class PillColorUtil {
|
|
|
53
53
|
}
|
|
54
54
|
return 'neutral';
|
|
55
55
|
}
|
|
56
|
+
/** @deprecated Use {@link GetColorType}. */
|
|
57
|
+
static getColorType(value) {
|
|
58
|
+
return this.GetColorType(value);
|
|
59
|
+
}
|
|
56
60
|
static matchesAnyPattern(value, patterns) {
|
|
57
61
|
return patterns.some(pattern => value === pattern ||
|
|
58
62
|
value.includes(pattern) ||
|
|
@@ -78,28 +82,44 @@ export class PillComponent {
|
|
|
78
82
|
/**
|
|
79
83
|
* The value to display in the pill
|
|
80
84
|
*/
|
|
81
|
-
|
|
85
|
+
Value = '';
|
|
86
|
+
/** @deprecated Use {@link Value}. */
|
|
87
|
+
set value(value) {
|
|
88
|
+
this.Value = value;
|
|
89
|
+
}
|
|
90
|
+
/** @deprecated Use {@link Value}. */
|
|
91
|
+
get value() {
|
|
92
|
+
return this.Value;
|
|
93
|
+
}
|
|
82
94
|
/**
|
|
83
95
|
* Optional: Force a specific color instead of auto-detecting
|
|
84
96
|
*/
|
|
85
|
-
|
|
97
|
+
Color = null;
|
|
98
|
+
/** @deprecated Use {@link Color}. */
|
|
99
|
+
set color(value) {
|
|
100
|
+
this.Color = value;
|
|
101
|
+
}
|
|
102
|
+
/** @deprecated Use {@link Color}. */
|
|
103
|
+
get color() {
|
|
104
|
+
return this.Color;
|
|
105
|
+
}
|
|
86
106
|
/**
|
|
87
107
|
* Get the display value
|
|
88
108
|
*/
|
|
89
109
|
get displayValue() {
|
|
90
|
-
return this.
|
|
110
|
+
return this.Value || '';
|
|
91
111
|
}
|
|
92
112
|
/**
|
|
93
113
|
* Get the effective color type (forced or auto-detected)
|
|
94
114
|
*/
|
|
95
115
|
get effectiveColorType() {
|
|
96
|
-
if (this.
|
|
97
|
-
return this.
|
|
116
|
+
if (this.Color) {
|
|
117
|
+
return this.Color;
|
|
98
118
|
}
|
|
99
|
-
return PillColorUtil.getColorType(this.
|
|
119
|
+
return PillColorUtil.getColorType(this.Value);
|
|
100
120
|
}
|
|
101
121
|
static ɵfac = function PillComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PillComponent)(); };
|
|
102
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PillComponent, selectors: [["mj-pill"]], inputs: { value: "value", color: "color" }, standalone: false, decls: 2, vars: 3, consts: [[1, "pill"]], template: function PillComponent_Template(rf, ctx) { if (rf & 1) {
|
|
122
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PillComponent, selectors: [["mj-pill"]], inputs: { Value: "Value", value: "value", Color: "Color", color: "color" }, standalone: false, decls: 2, vars: 3, consts: [[1, "pill"]], template: function PillComponent_Template(rf, ctx) { if (rf & 1) {
|
|
103
123
|
i0.ɵɵelementStart(0, "span", 0);
|
|
104
124
|
i0.ɵɵtext(1);
|
|
105
125
|
i0.ɵɵelementEnd();
|
|
@@ -116,10 +136,14 @@ export class PillComponent {
|
|
|
116
136
|
{{ displayValue }}
|
|
117
137
|
</span>
|
|
118
138
|
`, styles: ["\n .pill {\n display: inline-flex;\n align-items: center;\n padding: 3px 10px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n white-space: nowrap;\n text-transform: capitalize;\n }\n\n .pill-success {\n background-color: var(--mj-status-success-bg);\n color: var(--mj-status-success);\n }\n\n .pill-warning {\n background-color: var(--mj-status-warning-bg);\n color: var(--mj-status-warning);\n }\n\n .pill-danger {\n background-color: var(--mj-status-error-bg);\n color: var(--mj-status-error);\n }\n\n .pill-info {\n background-color: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n }\n\n .pill-neutral {\n background-color: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n }\n "] }]
|
|
119
|
-
}], null, {
|
|
139
|
+
}], null, { Value: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], value: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], Color: [{
|
|
120
144
|
type: Input
|
|
121
145
|
}], color: [{
|
|
122
146
|
type: Input
|
|
123
147
|
}] }); })();
|
|
124
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PillComponent, { className: "PillComponent", filePath: "src/lib/pill/pill.component.ts", lineNumber:
|
|
148
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PillComponent, { className: "PillComponent", filePath: "src/lib/pill/pill.component.ts", lineNumber: 139 }); })();
|
|
125
149
|
//# sourceMappingURL=pill.component.js.map
|
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AO;;YAFY,+CAAsC;YACvD,cACF;YADE,iDACF;;;iFAwCS,aAAa;cA9CzB,SAAS;6BACI,KAAK,YACP,SAAS,YACT;;;;GAIT;;kBA2CA,KAAK;;kBAGL,KAAK;;kBAWL,KAAK;;kBAGL,KAAK;;kFArBK,aAAa","sourcesContent":["import { Component, Input } from '@angular/core';\nimport { PillColorType } from '../types';\n\n/**\n * Utility class to determine pill colors based on value semantics\n */\nexport class PillColorUtil {\n /** Positive/success values - green */\n private static readonly successPatterns = [\n 'active', 'approved', 'complete', 'completed', 'success', 'successful',\n 'enabled', 'yes', 'true', 'verified', 'confirmed', 'published',\n 'accepted', 'valid', 'available', 'open', 'live', 'running', 'healthy',\n 'done', 'resolved', 'paid', 'shipped', 'delivered'\n ];\n\n /** Warning/attention values - yellow/amber */\n private static readonly warningPatterns = [\n 'pending', 'waiting', 'review', 'in review', 'in progress', 'processing',\n 'draft', 'scheduled', 'queued', 'on hold', 'paused', 'partial',\n 'incomplete', 'warning', 'attention', 'moderate', 'medium'\n ];\n\n /** Negative/danger values - red */\n private static readonly dangerPatterns = [\n 'failed', 'failure', 'error', 'rejected', 'declined', 'denied',\n 'expired', 'inactive', 'disabled', 'no', 'false', 'invalid',\n 'cancelled', 'canceled', 'closed', 'blocked', 'suspended',\n 'deleted', 'removed', 'terminated', 'critical', 'high', 'urgent',\n 'overdue', 'unpaid', 'refunded', 'returned'\n ];\n\n /** Informational values - blue */\n private static readonly infoPatterns = [\n 'new', 'info', 'information', 'note', 'update', 'updated',\n 'created', 'modified', 'changed', 'low', 'minor'\n ];\n\n /**\n * Determine the appropriate color type for a given value\n * @param value The value to analyze\n * @returns The semantic color type\n */\n static GetColorType(value: string | null | undefined): PillColorType {\n if (!value) return 'neutral';\n\n const normalizedValue = value.toLowerCase().trim();\n\n if (this.matchesAnyPattern(normalizedValue, this.successPatterns)) {\n return 'success';\n }\n if (this.matchesAnyPattern(normalizedValue, this.dangerPatterns)) {\n return 'danger';\n }\n if (this.matchesAnyPattern(normalizedValue, this.warningPatterns)) {\n return 'warning';\n }\n if (this.matchesAnyPattern(normalizedValue, this.infoPatterns)) {\n return 'info';\n }\n\n return 'neutral';\n }\n\n /** @deprecated Use {@link GetColorType}. */\n static getColorType(value: string | null | undefined): PillColorType {\n return this.GetColorType(value);\n }\n\n private static matchesAnyPattern(value: string, patterns: string[]): boolean {\n return patterns.some(pattern =>\n value === pattern ||\n value.includes(pattern) ||\n value.replace(/[_-]/g, ' ').includes(pattern)\n );\n }\n}\n\n/**\n * PillComponent - displays categorical values as colored pills\n *\n * Automatically determines color based on semantic meaning of the value.\n * Works for status, type, category, priority, or any enum-like field.\n *\n * @example\n * ```html\n * <!-- Auto-color based on value semantics -->\n * <mj-pill [value]=\"record.Status\"></mj-pill>\n *\n * <!-- Force a specific color -->\n * <mj-pill [value]=\"record.Type\" color=\"info\"></mj-pill>\n * ```\n */\n@Component({\n standalone: false,\n selector: 'mj-pill',\n template: `\n <span class=\"pill\" [class]=\"'pill-' + effectiveColorType\">\n {{ displayValue }}\n </span>\n `,\n styles: [`\n .pill {\n display: inline-flex;\n align-items: center;\n padding: 3px 10px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n white-space: nowrap;\n text-transform: capitalize;\n }\n\n .pill-success {\n background-color: var(--mj-status-success-bg);\n color: var(--mj-status-success);\n }\n\n .pill-warning {\n background-color: var(--mj-status-warning-bg);\n color: var(--mj-status-warning);\n }\n\n .pill-danger {\n background-color: var(--mj-status-error-bg);\n color: var(--mj-status-error);\n }\n\n .pill-info {\n background-color: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n }\n\n .pill-neutral {\n background-color: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n }\n `]\n})\nexport class PillComponent {\n /**\n * The value to display in the pill\n */\n @Input() Value: string | null | undefined = '';\n\n /** @deprecated Use {@link Value}. */\n @Input() set value(value: string | null | undefined) {\n this.Value = value;\n }\n /** @deprecated Use {@link Value}. */\n get value(): string | null | undefined {\n return this.Value;\n }\n\n /**\n * Optional: Force a specific color instead of auto-detecting\n */\n @Input() Color: PillColorType | null = null;\n\n /** @deprecated Use {@link Color}. */\n @Input() set color(value: PillColorType | null) {\n this.Color = value;\n }\n /** @deprecated Use {@link Color}. */\n get color(): PillColorType | null {\n return this.Color;\n }\n\n /**\n * Get the display value\n */\n get displayValue(): string { // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n return this.Value || '';\n }\n\n /**\n * Get the effective color type (forced or auto-detected)\n */\n get effectiveColorType(): PillColorType { // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n if (this.Color) {\n return this.Color;\n }\n return PillColorUtil.getColorType(this.Value);\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, AfterViewInit, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { MJUserViewEntityExtended } from '@memberjunction/core-entities';
|
|
3
3
|
import { ViewConfigSummary, QuickSaveEvent, QuickSaveAdvancedEvent } from '../types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -27,7 +27,7 @@ import * as i0 from "@angular/core";
|
|
|
27
27
|
* </mj-quick-save-dialog>
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export declare class QuickSaveDialogComponent implements OnChanges {
|
|
30
|
+
export declare class QuickSaveDialogComponent implements OnChanges, AfterViewInit {
|
|
31
31
|
private cdr;
|
|
32
32
|
/**
|
|
33
33
|
* Whether the dialog is open
|
|
@@ -53,6 +53,13 @@ export declare class QuickSaveDialogComponent implements OnChanges {
|
|
|
53
53
|
* Whether to default to Save As New mode (no longer used for toggle, kept for API compat)
|
|
54
54
|
*/
|
|
55
55
|
DefaultSaveAsNew: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Name to pre-fill when creating a NEW view, so the user can accept it with a single click.
|
|
58
|
+
* The field is focused and its text selected on open, so typing replaces it outright.
|
|
59
|
+
*
|
|
60
|
+
* Ignored when {@link ViewEntity} is set — an existing view's own name always wins.
|
|
61
|
+
*/
|
|
62
|
+
SuggestedName: string;
|
|
56
63
|
/**
|
|
57
64
|
* Emitted when the user saves
|
|
58
65
|
*/
|
|
@@ -66,16 +73,35 @@ export declare class QuickSaveDialogComponent implements OnChanges {
|
|
|
66
73
|
* Carries the partially-filled form data so the config panel can continue the flow.
|
|
67
74
|
*/
|
|
68
75
|
OpenAdvanced: EventEmitter<QuickSaveAdvancedEvent>;
|
|
76
|
+
/** The name input, focused and selected whenever the dialog opens. */
|
|
77
|
+
private nameInput?;
|
|
69
78
|
Name: string;
|
|
70
79
|
Description: string;
|
|
71
80
|
IsShared: boolean;
|
|
72
81
|
NameTouched: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* True when the dialog opened before the view existed, so the focus has to wait for
|
|
84
|
+
* `ngAfterViewInit`. The panel is always in the DOM (only `[class.open]` toggles), so after
|
|
85
|
+
* the first render the ViewChild is resolved and opening can focus synchronously.
|
|
86
|
+
*/
|
|
87
|
+
private focusPending;
|
|
88
|
+
private viewReady;
|
|
73
89
|
constructor(cdr: ChangeDetectorRef);
|
|
74
90
|
ngOnChanges(changes: SimpleChanges): void;
|
|
91
|
+
ngAfterViewInit(): void;
|
|
75
92
|
/**
|
|
76
93
|
* Initialize form from view entity or defaults
|
|
77
94
|
*/
|
|
78
95
|
private initializeForm;
|
|
96
|
+
/**
|
|
97
|
+
* Put the cursor in the name field with its text selected: one click accepts a suggested
|
|
98
|
+
* name, one keystroke replaces it.
|
|
99
|
+
*
|
|
100
|
+
* Deferred by a microtask because `ngModel` writes the seeded value to the element on one of
|
|
101
|
+
* its own — selecting first would select an empty field and leave the caret at the end once
|
|
102
|
+
* the value landed.
|
|
103
|
+
*/
|
|
104
|
+
private focusNameField;
|
|
79
105
|
/**
|
|
80
106
|
* Handle save button click
|
|
81
107
|
* @param saveAsNew - true to create a new view, false to update existing
|
|
@@ -90,6 +116,6 @@ export declare class QuickSaveDialogComponent implements OnChanges {
|
|
|
90
116
|
*/
|
|
91
117
|
OnOpenAdvanced(): void;
|
|
92
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuickSaveDialogComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuickSaveDialogComponent, "mj-quick-save-dialog", never, { "IsOpen": { "alias": "IsOpen"; "required": false; }; "ViewEntity": { "alias": "ViewEntity"; "required": false; }; "EntityName": { "alias": "EntityName"; "required": false; }; "Summary": { "alias": "Summary"; "required": false; }; "IsSaving": { "alias": "IsSaving"; "required": false; }; "DefaultSaveAsNew": { "alias": "DefaultSaveAsNew"; "required": false; }; }, { "Save": "Save"; "Close": "Close"; "OpenAdvanced": "OpenAdvanced"; }, never, never, false, never>;
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuickSaveDialogComponent, "mj-quick-save-dialog", never, { "IsOpen": { "alias": "IsOpen"; "required": false; }; "ViewEntity": { "alias": "ViewEntity"; "required": false; }; "EntityName": { "alias": "EntityName"; "required": false; }; "Summary": { "alias": "Summary"; "required": false; }; "IsSaving": { "alias": "IsSaving"; "required": false; }; "DefaultSaveAsNew": { "alias": "DefaultSaveAsNew"; "required": false; }; "SuggestedName": { "alias": "SuggestedName"; "required": false; }; }, { "Save": "Save"; "Close": "Close"; "OpenAdvanced": "OpenAdvanced"; }, never, never, false, never>;
|
|
94
120
|
}
|
|
95
121
|
//# sourceMappingURL=quick-save-dialog.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-save-dialog.component.d.ts","sourceRoot":"","sources":["../../../src/lib/quick-save-dialog/quick-save-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":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