1 line
1.7 KiB
JSON
1 line
1.7 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 let UserComponent = /*#__PURE__*/(() => {\n 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 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 });\n }\n return UserComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]} |