{"version":3,"sources":["webpack:///./src/components/journals/PlanJournal/PlanJournal.vue?2168","webpack:///./src/components/journals/PlanJournal/PlanJournal.vue","webpack:///./src/components/journals/PlanJournal/PlanJournal.vue?5107"],"names":["_hoisted_1","class","_hoisted_2","components","CatalogueGrid","props","filters","required","showPageSizeSelector","default","selectMode","type","Boolean","gridHeight","String","getSelectedData","Function","changeSelectedData","searchPanelVisible","computed","planInfoDialog","methods","onContentReady","e","this","customFilterApplied","grid","component","forEach","x","columnOption","column","value","data","editingConfig","allowUpdating","allowAdding","allowDeleting","confirmDelete","allowDataFill","allowClearFilter","allowDeleteMultipleRows","pageEditing","allowCopy","pageName","showInfo","selectModeEditingConfig","allowExport","columns","dataField","caption","readOnly","editVisible","format","allowSearch","validationRules","enumType","modelField","modelDescField","descriptionColumnName","mode","sortOrder","designConfig","popUpColumnsCount","popUpWidth","heightScroll","horizontalScroll","selectionConfig","pageSizes","created","height","__exports__","_ctx","_cache","$props","$setup","$data","$options","_component_CatalogueGrid","catalogue","controller","filterRowVisible","groupPanelVisible","headerFilterVisible","filterPanelVisible","pageSize","popupInfoComponent"],"mappings":"mIAEMA,EAAa,CAAEC,MAAO,oBACtBC,EAA0B,6BAAoB,KAAM,KAAM,SAAU,G,sICU3D,4BAAgB,CAC7BC,WAAY,CACVC,gBAAA,SAEFC,MAAO,CAELC,QAAS,CAAEC,UAAU,GAErBC,qBAAsB,CAAED,UAAU,EAAOE,SAAS,GAElDC,WAAY,CAAEH,UAAU,EAAOI,KAAMC,QAASH,SAAS,GACvDI,WAAY,CAAEN,UAAU,EAAOI,KAAMG,OAAQL,QAAS,MAEtDM,gBAAiB,CAAEJ,KAAMK,UAEzBC,mBAAoB,CAAEN,KAAMK,UAE5BE,mBAAoB,CAAEX,UAAU,EAAOI,KAAMC,UAE/CO,SAAU,CACRC,eADQ,WAEN,OAAO,YAGXC,QAAS,CACPC,eADO,SACQC,GACb,IAAKC,KAAKC,qBAAuBD,KAAKlB,QAAS,CAC7C,IAAM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M,WAERQ,UAAW,CAAC,GAAI,GAAI,GAAI,OAG5BC,QApH6B,WAqHvB7C,KAAKd,aACPc,KAAKU,cAAgBV,KAAKsB,yBAExBtB,KAAKX,aACPW,KAAKsC,aAAaQ,OAAS9C,KAAKX,e,YCjItC,MAAM0D,E,MAA2B,GAAgB,EAAQ,CAAC,CAAC,SFArD,SAAiBC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA2B,2BAAkB,iBAEnD,OAAQ,sBAAc,6BAAoB,MAAO,CAC/C7E,MAAO,yBAAgB,CAAE8E,WAAYP,EAAK9D,cACzC,CACD,6BAAoB,MAAOV,EAAY,CACrCE,EACA,sBAAa4E,EAA0B,CACrCE,WAAY,OACZhC,QAASwB,EAAKxB,QACdiC,kBAAmBT,EAAK9D,WACxBwE,mBAAoBV,EAAK9D,WACzByE,qBAAsBX,EAAK9D,WAC3B0E,oBAAoB,EACpBlE,mBAAoBsD,EAAKtD,mBACzBV,qBAAsBgE,EAAKhE,qBAC3B6E,SAAU,GACVjB,UAAWI,EAAKJ,UAChBlC,cAAesC,EAAKtC,cACpBiC,gBAAiBK,EAAKL,gBACtBL,aAAcU,EAAKV,aACnB/C,gBAAiByD,EAAKzD,gBACtBE,mBAAoBuD,EAAKvD,mBACzBP,WAAY8D,EAAK9D,WACjB4E,mBAAoBd,EAAKpD,eACzBE,eAAgBkD,EAAKlD,gBACpB,KAAM,EAAG,CAAC,UAAW,mBAAoB,oBAAqB,sBAAuB,qBAAsB,uBAAwB,YAAa,gBAAiB,kBAAmB,eAAgB,kBAAmB,qBAAsB,aAAc,qBAAsB,sBAErR,OE3BU","file":"js/chunk-2d0aa203.19f63f27.js","sourcesContent":["import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"u-magrinDataGrid\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"h1\", null, \"Планы\", -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_CatalogueGrid = _resolveComponent(\"CatalogueGrid\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass({ catalogue: !_ctx.selectMode })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createVNode(_component_CatalogueGrid, {\n controller: 'Plan',\n columns: _ctx.columns,\n filterRowVisible: !_ctx.selectMode,\n groupPanelVisible: !_ctx.selectMode,\n headerFilterVisible: !_ctx.selectMode,\n filterPanelVisible: false,\n searchPanelVisible: _ctx.searchPanelVisible,\n showPageSizeSelector: _ctx.showPageSizeSelector,\n pageSize: 10,\n pageSizes: _ctx.pageSizes,\n editingConfig: _ctx.editingConfig,\n selectionConfig: _ctx.selectionConfig,\n designConfig: _ctx.designConfig,\n getSelectedData: _ctx.getSelectedData,\n changeSelectedData: _ctx.changeSelectedData,\n selectMode: _ctx.selectMode,\n popupInfoComponent: _ctx.planInfoDialog,\n onContentReady: _ctx.onContentReady\n }, null, 8, [\"columns\", \"filterRowVisible\", \"groupPanelVisible\", \"headerFilterVisible\", \"searchPanelVisible\", \"showPageSizeSelector\", \"pageSizes\", \"editingConfig\", \"selectionConfig\", \"designConfig\", \"getSelectedData\", \"changeSelectedData\", \"selectMode\", \"popupInfoComponent\", \"onContentReady\"])\n ])\n ], 2))\n}","\r\nimport { defineComponent } from \"vue\";\r\nimport { TableEditingConfig } from \"@/components/controls/catalogueGrid/tableEditingConfig\";\r\nimport { TableSelectionConfig } from \"@/components/controls/catalogueGrid/tableSelectionConfig\";\r\nimport { TableDesignConfig } from \"@/components/controls/catalogueGrid/tableDesignConfig\";\r\nimport { TextColumnConfig } from \"@/components/controls/catalogueGrid/columns/textColumnConfig\";\r\nimport { IntegerColumnConfig } from \"@/components/controls/catalogueGrid/columns/integerColumnConfig\";\r\nimport { requiredRule } from \"@/components/controls/catalogueGrid/columns/baseValidationRules\";\r\nimport CatalogueGrid from \"@/components/controls/catalogueGrid/CatalogueGrid.vue\";\r\nimport { EnumColumnConfig } from \"@/components/controls/catalogueGrid/columns/enumColumnConfig\";\r\nimport { DateColumnConfig } from \"@/components/controls/catalogueGrid/columns/dateColumnConfig\";\r\nimport planInfoDialog from \"@/components/info/PlanInfoDialog.vue\";\r\n\r\nexport default defineComponent({\r\n components: {\r\n CatalogueGrid,\r\n },\r\n props: {\r\n //установленные фильтры\r\n filters: { required: false },\r\n //панель выбора страницы\r\n showPageSizeSelector: { required: false, default: true },\r\n //показатель режима выбора\r\n selectMode: { required: false, type: Boolean, default: false },\r\n gridHeight: { required: false, type: String, default: null },\r\n //функция для получения выбранных элементов\r\n getSelectedData: { type: Function },\r\n //функция для вызова при изменении выбранных элементов\r\n changeSelectedData: { type: Function },\r\n //отображение поиска\r\n searchPanelVisible: { required: false, type: Boolean }\r\n },\r\n computed: {\r\n planInfoDialog(): any {\r\n return planInfoDialog;\r\n },\r\n },\r\n methods: {\r\n onContentReady(e: any) {\r\n if (!this.customFilterApplied && this.filters) {\r\n const grid = e.component;\r\n this.filters.forEach((x: { column: any; value: any }) => {\r\n grid.columnOption(x.column, \"filterValue\", x.value);\r\n });\r\n this.customFilterApplied = true;\r\n }\r\n },\r\n },\r\n data() {\r\n return {\r\n customFilterApplied: false,\r\n editingConfig: new TableEditingConfig({\r\n allowUpdating: true,\r\n allowAdding: true,\r\n allowDeleting: true,\r\n confirmDelete: true,\r\n allowDataFill: false,\r\n allowClearFilter: true,\r\n allowDeleteMultipleRows: false,\r\n pageEditing: true,\r\n allowCopy: true,\r\n pageName: \"plan\",\r\n showInfo: true,\r\n }),\r\n selectModeEditingConfig: new TableEditingConfig({\r\n allowUpdating: false,\r\n allowAdding: false,\r\n allowDeleting: false,\r\n confirmDelete: false,\r\n allowDataFill: false,\r\n allowExport: false,\r\n allowDeleteMultipleRows: false,\r\n }),\r\n columns: [\r\n new IntegerColumnConfig({\r\n dataField: \"id\",\r\n caption: \"ID плана\",\r\n readOnly: true,\r\n editVisible: false,\r\n format: \"\",\r\n allowSearch: this.searchPanelVisible,\r\n }),\r\n new TextColumnConfig({\r\n dataField: \"name\",\r\n caption: \"Наименование\",\r\n validationRules: [requiredRule],\r\n allowSearch: this.searchPanelVisible,\r\n }),\r\n new EnumColumnConfig({\r\n dataField: \"stateDescription\",\r\n caption: \"Тип\",\r\n enumType: \"planState\",\r\n modelField: \"state\",\r\n modelDescField: \"stateDescription\",\r\n descriptionColumnName: \"stateDescription\",\r\n validationRules: [requiredRule],\r\n }),\r\n new DateColumnConfig({\r\n dataField: \"calcCompletedDate\",\r\n caption: \"Дата расчета\",\r\n mode: \"datetime\",\r\n allowSearch: this.searchPanelVisible,\r\n }),\r\n new DateColumnConfig({\r\n dataField: \"creationDate\",\r\n caption: \"Дата создания\",\r\n mode: \"datetime\",\r\n validationRules: [requiredRule],\r\n sortOrder: \"desc\",\r\n allowSearch: this.searchPanelVisible,\r\n }),\r\n new TextColumnConfig({\r\n dataField: \"calcUserDescription\",\r\n caption: \"Пользователь\",\r\n validationRules: [requiredRule],\r\n }),\r\n ],\r\n designConfig: new TableDesignConfig({\r\n popUpColumnsCount: 1,\r\n popUpWidth: \"850px\",\r\n heightScroll: !this.selectMode ? \"calc(100vh - 205px)\" : \"400px\",\r\n horizontalScroll: true,\r\n }),\r\n selectionConfig: new TableSelectionConfig({\r\n mode: \"single\",\r\n }),\r\n pageSizes: [10, 20, 50, 100],\r\n };\r\n },\r\n created() {\r\n if (this.selectMode) {\r\n this.editingConfig = this.selectModeEditingConfig;\r\n }\r\n if (this.gridHeight) {\r\n this.designConfig.height = this.gridHeight;\r\n }\r\n },\r\n});\r\n","import { render } from \"./PlanJournal.vue?vue&type=template&id=32f951ce&ts=true\"\nimport script from \"./PlanJournal.vue?vue&type=script&lang=ts\"\nexport * from \"./PlanJournal.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\BuildAgent\\\\work\\\\2f08168a1cda37d3\\\\Loading\\\\loading_ui\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}