@3mo/data-grid 0.12.5 → 0.12.6-preview.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.
|
@@ -9,6 +9,7 @@ import { DataGridColumnComponent } from './DataGridColumnComponent.js';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class DataGridColumnDeletion<TData> extends DataGridColumnComponent<TData, never> {
|
|
11
11
|
readonly delete: EventDispatcher<TData>;
|
|
12
|
+
tooltipText?: string;
|
|
12
13
|
icon: MaterialIcon;
|
|
13
14
|
prevent: boolean;
|
|
14
15
|
nonSortable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridColumnDeletion.d.ts","sourceRoot":"","sources":["../../columns/DataGridColumnDeletion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAMtE;;;;;;GAMG;AACH,qBACa,sBAAsB,CAAC,KAAK,CAAE,SAAQ,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9E,QAAQ,CAAC,MAAM,EAAG,eAAe,CAAC,KAAK,CAAC,CAAA;IAErC,IAAI,EAAE,YAAY,CAAW;IACZ,OAAO,UAAQ;IAEnC,WAAW,UAAO;IAClB,WAAW,UAAO;IAE3B,kBAAkB,MAAO,KAAK,SAAS,KAAK,2CAM3C;IAED,sBAAsB,YAAY;CAClC;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,8BAA8B,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;KAC/D;CACD"}
|
|
1
|
+
{"version":3,"file":"DataGridColumnDeletion.d.ts","sourceRoot":"","sources":["../../columns/DataGridColumnDeletion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAMtE;;;;;;GAMG;AACH,qBACa,sBAAsB,CAAC,KAAK,CAAE,SAAQ,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9E,QAAQ,CAAC,MAAM,EAAG,eAAe,CAAC,KAAK,CAAC,CAAA;IAErC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,YAAY,CAAW;IACZ,OAAO,UAAQ;IAEnC,WAAW,UAAO;IAClB,WAAW,UAAO;IAE3B,kBAAkB,MAAO,KAAK,SAAS,KAAK,2CAM3C;IAED,sBAAsB,YAAY;CAClC;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,8BAA8B,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;KAC/D;CACD"}
|
|
@@ -22,7 +22,7 @@ let DataGridColumnDeletion = class DataGridColumnDeletion extends DataGridColumn
|
|
|
22
22
|
this.nonEditable = true;
|
|
23
23
|
this.getContentTemplate = (_, data) => this.prevent ? html.nothing : html `
|
|
24
24
|
<mo-icon-button icon=${this.icon}
|
|
25
|
-
${tooltip(t('Delete position'))}
|
|
25
|
+
${tooltip(this.tooltipText ?? t('Delete position'))}
|
|
26
26
|
${style({ color: 'var(--mo-color-gray)', height: '40px', display: 'flex' })}
|
|
27
27
|
@click=${() => !data ? void 0 : this.delete.dispatch(data)}
|
|
28
28
|
></mo-icon-button>
|
|
@@ -33,6 +33,9 @@ let DataGridColumnDeletion = class DataGridColumnDeletion extends DataGridColumn
|
|
|
33
33
|
__decorate([
|
|
34
34
|
event()
|
|
35
35
|
], DataGridColumnDeletion.prototype, "delete", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
property()
|
|
38
|
+
], DataGridColumnDeletion.prototype, "tooltipText", void 0);
|
|
36
39
|
__decorate([
|
|
37
40
|
property()
|
|
38
41
|
], DataGridColumnDeletion.prototype, "icon", void 0);
|