1 line
4.4 KiB
JSON
1 line
4.4 KiB
JSON
{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"../tables/user-table/user-table.component\";\nconst _c0 = [\"userTable\"];\nexport class UserComponent {\n constructor() {\n this.cellEditing = {\n enabled: true,\n rowEdit: (value, item, index) => {\n console.log(\"rowEdit\", value, item, index);\n console.log(this.userTable.selectedRows);\n return Boolean(index % 2);\n },\n cellEdit: (value, item, index) => {\n console.log(\"cellEdit\", value, item, index);\n return Boolean(index % 5);\n }\n };\n }\n onCellEditEntered() {\n console.log(\"cell edit\");\n }\n static #_ = this.ɵfac = function UserComponent_Factory(t) {\n return new (t || UserComponent)();\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: UserComponent,\n selectors: [[\"app-user\"]],\n viewQuery: function UserComponent_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.userTable = _t.first);\n }\n },\n decls: 2,\n vars: 1,\n consts: [[\"userTable\", \"\"], [3, \"cellEditing\"]],\n template: function UserComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"app-user-table\", 1, 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"cellEditing\", ctx.cellEditing);\n }\n },\n dependencies: [i1.UserTableComponent],\n styles: [\"/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJ1c2VyLmNvbXBvbmVudC5jc3MifQ== */\\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvY29tcG9uZW50cy91c2VyL3VzZXIuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsZ0tBQWdLIiwic291cmNlUm9vdCI6IiJ9 */\"]\n });\n}","map":{"version":3,"names":["UserComponent","constructor","cellEditing","enabled","rowEdit","value","item","index","console","log","userTable","selectedRows","Boolean","cellEdit","onCellEditEntered","_","_2","selectors","viewQuery","UserComponent_Query","rf","ctx","i0","ɵɵelement","ɵɵproperty"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\components\\user\\user.component.ts","E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\components\\user\\user.component.html"],"sourcesContent":["import { Component, ViewChild } from '@angular/core';\r\nimport { GuiCellEdit } from '@generic-ui/ngx-grid';\r\nimport { UserTableComponent } from '../tables/user-table/user-table.component';\r\n\r\n@Component({\r\n selector: 'app-user',\r\n templateUrl: './user.component.html',\r\n styleUrl: './user.component.css'\r\n})\r\nexport class UserComponent {\r\n\r\n cellEditing: GuiCellEdit = {\r\n enabled: true,\r\n rowEdit: (value: any, item: any, index: number) => {\r\n console.log(\"rowEdit\", value, item, index)\r\n console.log(this.userTable.selectedRows)\r\n return Boolean(index % 2);\r\n },\r\n cellEdit: (value: any, item: any, index: number) => {\r\n console.log(\"cellEdit\", value, item, index)\r\n return Boolean(index % 5);\r\n }\r\n }\r\n\r\n onCellEditEntered() {\r\n console.log(\"cell edit\")\r\n }\r\n\r\n @ViewChild(\"userTable\") userTable! : UserTableComponent\r\n}","<app-user-table #userTable [cellEditing] = \"cellEditing\"></app-user-table>"],"mappings":";;;AASA,OAAM,MAAOA,aAAa;EAL1BC,YAAA;IAOE,KAAAC,WAAW,GAAgB;MACzBC,OAAO,EAAE,IAAI;MACbC,OAAO,EAAEA,CAACC,KAAU,EAAEC,IAAS,EAAEC,KAAa,KAAI;QAChDC,OAAO,CAACC,GAAG,CAAC,SAAS,EAAEJ,KAAK,EAAEC,IAAI,EAAEC,KAAK,CAAC;QAC1CC,OAAO,CAACC,GAAG,CAAC,IAAI,CAACC,SAAS,CAACC,YAAY,CAAC;QACxC,OAAOC,OAAO,CAACL,KAAK,GAAG,CAAC,CAAC;MAC3B,CAAC;MACDM,QAAQ,EAAEA,CAACR,KAAU,EAAEC,IAAS,EAAEC,KAAa,KAAI;QACjDC,OAAO,CAACC,GAAG,CAAC,UAAU,EAAEJ,KAAK,EAAEC,IAAI,EAAEC,KAAK,CAAC;QAC3C,OAAOK,OAAO,CAACL,KAAK,GAAG,CAAC,CAAC;MAC3B;KACD;;EAEDO,iBAAiBA,CAAA;IACfN,OAAO,CAACC,GAAG,CAAC,WAAW,CAAC;EAC1B;EAAC,QAAAM,CAAA,G;qBAjBUf,aAAa;EAAA;EAAA,QAAAgB,EAAA,G;UAAbhB,aAAa;IAAAiB,SAAA;IAAAC,SAAA,WAAAC,oBAAAC,EAAA,EAAAC,GAAA;MAAA,IAAAD,EAAA;;;;;;;;;;;;;QCT1BE,EAAA,CAAAC,SAAA,2BAA0E;;;QAA/CD,EAAA,CAAAE,UAAA,gBAAAH,GAAA,CAAAnB,WAAA,CAA6B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |