{ "version": 3, "sources": ["src/app/shared/store/entities/widgets-entity/widgets-entity.action.ts"], "sourcesContent": ["import { Update } from '@ngrx/entity';\nimport { Action } from '@ngrx/store';\n\nexport enum WidgetActionTypes {\n LoadWidgets = '[Widget] Load Widgets',\n AddWidget = '[Widget] Add Widget',\n UpsertWidget = '[Widget] Upsert Widget',\n AddWidgets = '[Widget] Add Widgets',\n UpsertWidgets = '[Widget] Upsert Widgets',\n UpdateWidget = '[Widget] Update Widget',\n UpdateWidgets = '[Widget] Update Widgets',\n DeleteWidget = '[Widget] Delete Widget',\n DeleteWidgets = '[Widget] Delete Widgets',\n ClearWidgets = '[Widget] Clear Widgets',\n}\n\nexport class LoadWidgets implements Action {\n readonly type = WidgetActionTypes.LoadWidgets;\n\n constructor(public payload: { widgets: any[] }) {}\n}\n\nexport class AddWidget implements Action {\n readonly type = WidgetActionTypes.AddWidget;\n\n constructor(public payload: { widget: any }) {}\n}\n\nexport class UpsertWidget implements Action {\n readonly type = WidgetActionTypes.UpsertWidget;\n\n constructor(public payload: { widget: any }) {}\n}\n\nexport class AddWidgets implements Action {\n readonly type = WidgetActionTypes.AddWidgets;\n\n constructor(public payload: { widgets: any[] }) {}\n}\n\nexport class UpsertWidgets implements Action {\n readonly type = WidgetActionTypes.UpsertWidgets;\n\n constructor(public payload: { widgets: any[] }) {}\n}\n\nexport class UpdateWidget implements Action {\n readonly type = WidgetActionTypes.UpdateWidget;\n\n constructor(public payload: { widget: Update }) {}\n}\n\nexport class UpdateWidgets implements Action {\n readonly type = WidgetActionTypes.UpdateWidgets;\n\n constructor(public payload: { widgets: Update[] }) {}\n}\n\nexport class DeleteWidget implements Action {\n readonly type = WidgetActionTypes.DeleteWidget;\n\n constructor(public payload: { id: string }) {}\n}\n\nexport class DeleteWidgets implements Action {\n readonly type = WidgetActionTypes.DeleteWidgets;\n\n constructor(public payload: { ids: string[] }) {}\n}\n\nexport class ClearWidgets implements Action {\n readonly type = WidgetActionTypes.ClearWidgets;\n}\n\nexport type WidgetActions =\n | LoadWidgets\n | AddWidget\n | UpsertWidget\n | AddWidgets\n | UpsertWidgets\n | UpdateWidget\n | UpdateWidgets\n | DeleteWidget\n | DeleteWidgets\n | ClearWidgets;\n"], "mappings": ";AAGA,IAAY;CAAZ,SAAYA,oBAAiB;AAC3B,EAAAA,mBAAA,aAAA,IAAA;AACA,EAAAA,mBAAA,WAAA,IAAA;AACA,EAAAA,mBAAA,cAAA,IAAA;AACA,EAAAA,mBAAA,YAAA,IAAA;AACA,EAAAA,mBAAA,eAAA,IAAA;AACA,EAAAA,mBAAA,cAAA,IAAA;AACA,EAAAA,mBAAA,eAAA,IAAA;AACA,EAAAA,mBAAA,cAAA,IAAA;AACA,EAAAA,mBAAA,eAAA,IAAA;AACA,EAAAA,mBAAA,cAAA,IAAA;AACF,GAXY,sBAAA,oBAAiB,CAAA,EAAA;", "names": ["WidgetActionTypes"] }