2019-09-20 20:30:43 +03:00
|
|
|
///
|
2022-01-17 14:07:46 +02:00
|
|
|
/// Copyright © 2016-2022 The Thingsboard Authors
|
2019-09-20 20:30:43 +03:00
|
|
|
///
|
|
|
|
|
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
/// you may not use this file except in compliance with the License.
|
|
|
|
|
/// You may obtain a copy of the License at
|
|
|
|
|
///
|
|
|
|
|
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
///
|
|
|
|
|
/// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
/// See the License for the specific language governing permissions and
|
|
|
|
|
/// limitations under the License.
|
|
|
|
|
///
|
|
|
|
|
|
|
|
|
|
import { IStateController, StateObject } from '@core/api/widget-api.models';
|
2021-01-21 18:03:36 +02:00
|
|
|
import { IDashboardController } from '@home/components/dashboard-page/dashboard-page.models';
|
2019-09-20 20:30:43 +03:00
|
|
|
import { DashboardState } from '@shared/models/dashboard.models';
|
|
|
|
|
|
|
|
|
|
export declare type StateControllerState = StateObject[];
|
|
|
|
|
|
|
|
|
|
export interface IStateControllerComponent extends IStateController {
|
2021-01-21 18:03:36 +02:00
|
|
|
stateControllerInstanceId: string;
|
2019-09-20 20:30:43 +03:00
|
|
|
state: string;
|
2021-01-21 18:03:36 +02:00
|
|
|
currentState: string;
|
2021-02-05 11:50:35 +02:00
|
|
|
syncStateWithQueryParam: boolean;
|
2019-09-20 20:30:43 +03:00
|
|
|
isMobile: boolean;
|
|
|
|
|
states: {[id: string]: DashboardState };
|
|
|
|
|
dashboardId: string;
|
|
|
|
|
preservedState: any;
|
2019-11-15 12:22:14 +02:00
|
|
|
reInit(): void;
|
2021-12-23 19:01:43 +02:00
|
|
|
init(): void;
|
2019-09-20 20:30:43 +03:00
|
|
|
}
|