@genesislcap/foundation-entity-management 14.428.0 → 14.428.1-alpha-035cbdd.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3038,6 +3038,38 @@
|
|
|
3038
3038
|
}
|
|
3039
3039
|
]
|
|
3040
3040
|
},
|
|
3041
|
+
{
|
|
3042
|
+
"kind": "method",
|
|
3043
|
+
"name": "actionColumnIcon",
|
|
3044
|
+
"privacy": "private",
|
|
3045
|
+
"parameters": [
|
|
3046
|
+
{
|
|
3047
|
+
"name": "iconName",
|
|
3048
|
+
"type": {
|
|
3049
|
+
"text": "string"
|
|
3050
|
+
}
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
"name": "variant",
|
|
3054
|
+
"default": "'solid'",
|
|
3055
|
+
"type": {
|
|
3056
|
+
"text": "'solid' | 'regular'"
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
],
|
|
3060
|
+
"description": "Shared markup for CRUD / custom action column icons (grid cell renderers)."
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
"kind": "method",
|
|
3064
|
+
"name": "populateActionButtonsConfig",
|
|
3065
|
+
"privacy": "private",
|
|
3066
|
+
"return": {
|
|
3067
|
+
"type": {
|
|
3068
|
+
"text": "void"
|
|
3069
|
+
}
|
|
3070
|
+
},
|
|
3071
|
+
"description": "Builds column defs for CRUD / custom actions in the grid (pinned action column)."
|
|
3072
|
+
},
|
|
3041
3073
|
{
|
|
3042
3074
|
"kind": "field",
|
|
3043
3075
|
"name": "criteria",
|
package/dist/dts/list/list.d.ts
CHANGED
|
@@ -445,6 +445,14 @@ export declare class List extends List_base {
|
|
|
445
445
|
get isServerSideDatasource(): boolean;
|
|
446
446
|
connectedCallback(): void;
|
|
447
447
|
handleCellEditRequest(event: CustomEvent<CellEditRequestEvent>): Promise<void>;
|
|
448
|
+
/**
|
|
449
|
+
* Shared markup for CRUD / custom action column icons (grid cell renderers).
|
|
450
|
+
*/
|
|
451
|
+
private actionColumnIcon;
|
|
452
|
+
/**
|
|
453
|
+
* Builds column defs for CRUD / custom actions in the grid (pinned action column).
|
|
454
|
+
*/
|
|
455
|
+
private populateActionButtonsConfig;
|
|
448
456
|
disconnectedCallback(): Promise<void>;
|
|
449
457
|
get criteria(): string;
|
|
450
458
|
get fields(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAU,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAE,cAAc,EAA2C,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAIL,cAAc,EAIf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;;;;;;;kBAsDuB,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAU,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;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,IACI,UAAU,YAEb;IAED,IACI,OAAO,WAEV;IAED,IACI,OAAO,WAEV;IAED,IACI,UAAU,YAEb;IAED,IACI,OAAO,WAEV;IAED,IACI,eAAe,WAElB;IAED,IACI,iBAAiB,aAEpB;IAED,IACI,OAAO,QAEV;IAED,IACI,OAAO,YAEV;IAED,IACI,UAAU,WAEb;IAED,IACI,cAAc,YAEjB;IAED,IACI,gBAAgB,YAEnB;IAED,gBAAgB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAItC,mBAAmB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAIzC,oBAAoB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAI1C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,mBAAmB;IAK3B,iBAAiB,CAAC,CAAC,EAAE,WAAW;IAIhC,sBAAsB,CAAC,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC;IAI5D,OAAO,CAAC,IAAI,CAEV;IAEI,MAAM,CAAC,CAAC,KAAA;IAId,OAAO,CAAC,kBAAkB,CAExB;CACH"}
|
package/dist/esm/list/list.js
CHANGED
|
@@ -54,44 +54,15 @@ let List = class List extends LifecycleMixin(GenesisElement) {
|
|
|
54
54
|
return this.datasourceType === 'server';
|
|
55
55
|
}
|
|
56
56
|
connectedCallback() {
|
|
57
|
+
// Populate before super.connectedCallback() so the template's repeat binding renders
|
|
58
|
+
// action grid-pro-column elements in the first pass. This guarantees they are in the DOM
|
|
59
|
+
// before the datasource fires datasource-schema-updated (which requires a network round-trip
|
|
60
|
+
// after grid-ready), so mergeAllColumnDefsAndStates finds them via querySelectorAll.
|
|
61
|
+
this.populateActionButtonsConfig();
|
|
57
62
|
super.connectedCallback();
|
|
58
63
|
if (!this.shouldRunConnect)
|
|
59
64
|
return;
|
|
60
65
|
this.grid.addEventListener(Events.EVENT_GRID_READY, () => {
|
|
61
|
-
this.actionButtonsConfig = [];
|
|
62
|
-
const gridCustomActions = this.customActions.filter((action) => (action.position || CrudMenuPosition.Column) === CrudMenuPosition.Column);
|
|
63
|
-
gridCustomActions.forEach((action) => {
|
|
64
|
-
this.actionButtonsConfig.push(buttonCellRenderer(action.name, () => this.handleCustomAction(action.name), html `
|
|
65
|
-
<${this.prefix}-icon
|
|
66
|
-
style="pointer-events: none; opacity: 0.5"
|
|
67
|
-
class="icon-button"
|
|
68
|
-
variant="solid"
|
|
69
|
-
name="${action.icon || 'gear'}"
|
|
70
|
-
size="1x"
|
|
71
|
-
></${this.prefix}-icon>
|
|
72
|
-
`, action.tooltip || action.name));
|
|
73
|
-
});
|
|
74
|
-
if (this.updateEvent && !this.hideEdit) {
|
|
75
|
-
this.actionButtonsConfig.push(buttonCellRenderer('Edit', this.edit, html `
|
|
76
|
-
<${this.prefix}-icon
|
|
77
|
-
style="pointer-events: none; opacity: 0.5"
|
|
78
|
-
class="icon-button"
|
|
79
|
-
variant="solid"
|
|
80
|
-
name="pen"
|
|
81
|
-
size="1x"
|
|
82
|
-
></${this.prefix}-icon>
|
|
83
|
-
`));
|
|
84
|
-
}
|
|
85
|
-
if (this.deleteEvent && !this.hideDelete) {
|
|
86
|
-
this.actionButtonsConfig.push(buttonCellRenderer('Delete', (e) => this.delete(e), html `
|
|
87
|
-
<${this.prefix}-icon
|
|
88
|
-
style="opacity: 0.5"
|
|
89
|
-
variant="regular"
|
|
90
|
-
name="trash-alt"
|
|
91
|
-
size="1x"
|
|
92
|
-
></${this.prefix}-icon>
|
|
93
|
-
`));
|
|
94
|
-
}
|
|
95
66
|
if (this.enableFilterBar) {
|
|
96
67
|
this.addEventListener('filter-changed', this.handleFilterChanged);
|
|
97
68
|
this.addEventListener('filter-cleared', this.handleFilterCleared);
|
|
@@ -132,6 +103,36 @@ let List = class List extends LifecycleMixin(GenesisElement) {
|
|
|
132
103
|
}
|
|
133
104
|
});
|
|
134
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Shared markup for CRUD / custom action column icons (grid cell renderers).
|
|
108
|
+
*/
|
|
109
|
+
actionColumnIcon(iconName, variant = 'solid') {
|
|
110
|
+
return html `
|
|
111
|
+
<${this.prefix}-icon
|
|
112
|
+
style="pointer-events: none; opacity: 0.5"
|
|
113
|
+
class="icon-button"
|
|
114
|
+
variant="${variant}"
|
|
115
|
+
name="${iconName}"
|
|
116
|
+
size="1x"
|
|
117
|
+
></${this.prefix}-icon>
|
|
118
|
+
`;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Builds column defs for CRUD / custom actions in the grid (pinned action column).
|
|
122
|
+
*/
|
|
123
|
+
populateActionButtonsConfig() {
|
|
124
|
+
this.actionButtonsConfig = [];
|
|
125
|
+
const gridCustomActions = this.customActions.filter((action) => (action.position || CrudMenuPosition.Column) === CrudMenuPosition.Column);
|
|
126
|
+
gridCustomActions.forEach((action) => {
|
|
127
|
+
this.actionButtonsConfig.push(buttonCellRenderer(action.name, () => this.handleCustomAction(action.name), this.actionColumnIcon(action.icon || 'gear'), action.tooltip || action.name));
|
|
128
|
+
});
|
|
129
|
+
if (this.updateEvent && !this.hideEdit) {
|
|
130
|
+
this.actionButtonsConfig.push(buttonCellRenderer('Edit', this.edit, this.actionColumnIcon('pen')));
|
|
131
|
+
}
|
|
132
|
+
if (this.deleteEvent && !this.hideDelete) {
|
|
133
|
+
this.actionButtonsConfig.push(buttonCellRenderer('Delete', (e) => this.delete(e), this.actionColumnIcon('trash-alt', 'regular')));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
135
136
|
disconnectedCallback() {
|
|
136
137
|
const _super = Object.create(null, {
|
|
137
138
|
disconnectedCallback: { get: () => super.disconnectedCallback }
|
|
@@ -1338,6 +1338,14 @@ export declare class List extends List_base {
|
|
|
1338
1338
|
get isServerSideDatasource(): boolean;
|
|
1339
1339
|
connectedCallback(): void;
|
|
1340
1340
|
handleCellEditRequest(event: CustomEvent<CellEditRequestEvent>): Promise<void>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Shared markup for CRUD / custom action column icons (grid cell renderers).
|
|
1343
|
+
*/
|
|
1344
|
+
private actionColumnIcon;
|
|
1345
|
+
/**
|
|
1346
|
+
* Builds column defs for CRUD / custom actions in the grid (pinned action column).
|
|
1347
|
+
*/
|
|
1348
|
+
private populateActionButtonsConfig;
|
|
1341
1349
|
disconnectedCallback(): Promise<void>;
|
|
1342
1350
|
get criteria(): string;
|
|
1343
1351
|
get fields(): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-entity-management",
|
|
3
3
|
"description": "Genesis Foundation Entity Management",
|
|
4
|
-
"version": "14.428.0",
|
|
4
|
+
"version": "14.428.1-alpha-035cbdd.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -54,32 +54,32 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@genesislcap/foundation-testing": "14.428.0",
|
|
58
|
-
"@genesislcap/genx": "14.428.0",
|
|
59
|
-
"@genesislcap/rollup-builder": "14.428.0",
|
|
60
|
-
"@genesislcap/ts-builder": "14.428.0",
|
|
61
|
-
"@genesislcap/uvu-playwright-builder": "14.428.0",
|
|
62
|
-
"@genesislcap/vite-builder": "14.428.0",
|
|
63
|
-
"@genesislcap/webpack-builder": "14.428.0"
|
|
57
|
+
"@genesislcap/foundation-testing": "14.428.1-alpha-035cbdd.0",
|
|
58
|
+
"@genesislcap/genx": "14.428.1-alpha-035cbdd.0",
|
|
59
|
+
"@genesislcap/rollup-builder": "14.428.1-alpha-035cbdd.0",
|
|
60
|
+
"@genesislcap/ts-builder": "14.428.1-alpha-035cbdd.0",
|
|
61
|
+
"@genesislcap/uvu-playwright-builder": "14.428.1-alpha-035cbdd.0",
|
|
62
|
+
"@genesislcap/vite-builder": "14.428.1-alpha-035cbdd.0",
|
|
63
|
+
"@genesislcap/webpack-builder": "14.428.1-alpha-035cbdd.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@ag-grid-community/core": "29.2.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@genesislcap/foundation-ai": "14.428.0",
|
|
70
|
-
"@genesislcap/foundation-comms": "14.428.0",
|
|
71
|
-
"@genesislcap/foundation-errors": "14.428.0",
|
|
72
|
-
"@genesislcap/foundation-events": "14.428.0",
|
|
73
|
-
"@genesislcap/foundation-forms": "14.428.0",
|
|
74
|
-
"@genesislcap/foundation-logger": "14.428.0",
|
|
75
|
-
"@genesislcap/foundation-login": "14.428.0",
|
|
76
|
-
"@genesislcap/foundation-notifications": "14.428.0",
|
|
77
|
-
"@genesislcap/foundation-ui": "14.428.0",
|
|
78
|
-
"@genesislcap/foundation-utils": "14.428.0",
|
|
79
|
-
"@genesislcap/foundation-zero": "14.428.0",
|
|
80
|
-
"@genesislcap/foundation-zero-grid-pro": "14.428.0",
|
|
81
|
-
"@genesislcap/grid-pro": "14.428.0",
|
|
82
|
-
"@genesislcap/web-core": "14.428.0",
|
|
69
|
+
"@genesislcap/foundation-ai": "14.428.1-alpha-035cbdd.0",
|
|
70
|
+
"@genesislcap/foundation-comms": "14.428.1-alpha-035cbdd.0",
|
|
71
|
+
"@genesislcap/foundation-errors": "14.428.1-alpha-035cbdd.0",
|
|
72
|
+
"@genesislcap/foundation-events": "14.428.1-alpha-035cbdd.0",
|
|
73
|
+
"@genesislcap/foundation-forms": "14.428.1-alpha-035cbdd.0",
|
|
74
|
+
"@genesislcap/foundation-logger": "14.428.1-alpha-035cbdd.0",
|
|
75
|
+
"@genesislcap/foundation-login": "14.428.1-alpha-035cbdd.0",
|
|
76
|
+
"@genesislcap/foundation-notifications": "14.428.1-alpha-035cbdd.0",
|
|
77
|
+
"@genesislcap/foundation-ui": "14.428.1-alpha-035cbdd.0",
|
|
78
|
+
"@genesislcap/foundation-utils": "14.428.1-alpha-035cbdd.0",
|
|
79
|
+
"@genesislcap/foundation-zero": "14.428.1-alpha-035cbdd.0",
|
|
80
|
+
"@genesislcap/foundation-zero-grid-pro": "14.428.1-alpha-035cbdd.0",
|
|
81
|
+
"@genesislcap/grid-pro": "14.428.1-alpha-035cbdd.0",
|
|
82
|
+
"@genesislcap/web-core": "14.428.1-alpha-035cbdd.0",
|
|
83
83
|
"change-case": "^4.1.2"
|
|
84
84
|
},
|
|
85
85
|
"repository": {
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"require": "./dist/react.cjs"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "9769544233b28bf7fe0fd4441287c94f6b347d98"
|
|
106
106
|
}
|