Browse Source

UI: Top flow meter SCADA symbol.

pull/11391/head
Igor Kulikov 2 years ago
parent
commit
6445b7db04
  1. 31
      application/src/main/data/json/system/scada_symbols/top-black-counter.svg
  2. 758
      application/src/main/data/json/system/scada_symbols/top-flow-meter.svg
  3. 31
      application/src/main/data/json/system/scada_symbols/top-white-counter.svg
  4. 3
      application/src/main/data/json/system/widget_bundles/scada_water_system_symbols.json
  5. 6
      ui-ngx/src/app/modules/home/components/widget/lib/scada/scada-symbol.models.ts
  6. 2
      ui-ngx/src/app/shared/models/widget.models.ts
  7. 24
      ui-ngx/src/assets/locale/locale.constant-en_US.json

31
application/src/main/data/json/system/scada_symbols/top-black-counter.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

758
application/src/main/data/json/system/scada_symbols/top-flow-meter.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 66 KiB

31
application/src/main/data/json/system/scada_symbols/top-white-counter.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

3
application/src/main/data/json/system/widget_bundles/scada_water_system_symbols.json

@ -22,12 +22,11 @@
"bottom_tee_pipe", "bottom_tee_pipe",
"right_tee_pipe", "right_tee_pipe",
"top_tee_pipe", "top_tee_pipe",
"top_flow_meter",
"horizontal_tank_with_screen", "horizontal_tank_with_screen",
"horizontal_faucet", "horizontal_faucet",
"top_white_counter",
"water_blower_right_connector", "water_blower_right_connector",
"vertical_tank_with_level", "vertical_tank_with_level",
"top_black_counter",
"pump_left", "pump_left",
"pump", "pump",
"level_and_fan" "level_and_fan"

6
ui-ngx/src/app/modules/home/components/widget/lib/scada/scada-symbol.models.ts

@ -359,10 +359,10 @@ const defaultSetValueSettings = (set: ScadaSymbolBehaviorAction): SetValueSettin
}); });
const defaultWidgetActionSettings = (widgetAction: ScadaSymbolBehavior): WidgetAction => ({ const defaultWidgetActionSettings = (widgetAction: ScadaSymbolBehavior): WidgetAction => ({
type: WidgetActionType.updateDashboardState, type: WidgetActionType.doNothing,
targetDashboardStateId: null, targetDashboardStateId: null,
openRightLayout: false, openRightLayout: false,
setEntityId: true, setEntityId: false,
stateEntityParamName: null stateEntityParamName: null
}); });
@ -457,7 +457,7 @@ export class ScadaSymbolObject {
for (const tag of this.metadata.tags) { for (const tag of this.metadata.tags) {
const elements = this.context.tags[tag.tag]; const elements = this.context.tags[tag.tag];
elements.forEach(element => { elements.forEach(element => {
element.timeline().finish(); element.timeline().stop();
element.timeline(null); element.timeline(null);
}); });
} }

2
ui-ngx/src/app/shared/models/widget.models.ts

@ -539,6 +539,7 @@ export interface LegendData {
} }
export enum WidgetActionType { export enum WidgetActionType {
doNothing = 'doNothing',
openDashboardState = 'openDashboardState', openDashboardState = 'openDashboardState',
updateDashboardState = 'updateDashboardState', updateDashboardState = 'updateDashboardState',
openDashboard = 'openDashboard', openDashboard = 'openDashboard',
@ -563,6 +564,7 @@ export const widgetActionTypes = Object.keys(WidgetActionType) as WidgetActionTy
export const widgetActionTypeTranslationMap = new Map<WidgetActionType, string>( export const widgetActionTypeTranslationMap = new Map<WidgetActionType, string>(
[ [
[ WidgetActionType.doNothing, 'widget-action.do-nothing' ],
[ WidgetActionType.openDashboardState, 'widget-action.open-dashboard-state' ], [ WidgetActionType.openDashboardState, 'widget-action.open-dashboard-state' ],
[ WidgetActionType.updateDashboardState, 'widget-action.update-dashboard-state' ], [ WidgetActionType.updateDashboardState, 'widget-action.update-dashboard-state' ],
[ WidgetActionType.openDashboard, 'widget-action.open-dashboard' ], [ WidgetActionType.openDashboard, 'widget-action.open-dashboard' ],

24
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -3620,7 +3620,28 @@
"left-fluid-color": "Left fluid color", "left-fluid-color": "Left fluid color",
"right-fluid-color": "Right fluid color", "right-fluid-color": "Right fluid color",
"top-fluid-color": "Top fluid color", "top-fluid-color": "Top fluid color",
"bottom-fluid-color": "Bottom fluid color" "bottom-fluid-color": "Bottom fluid color",
"value": "Value",
"flow-meter-value-hint": "Double value showing on flow meter display",
"warning-state": "Warning state",
"warning": "Warning",
"warning-state-hint": "Indicates whether component is in warning state.",
"critical-state": "Critical state",
"critical": "Critical",
"critical-state-hint": "Indicates whether component is in critical state.",
"critical-state-animation": "Critical state animation",
"critical-state-animation-hint": "Whether to enable blinking animation when component is in critical state.",
"animation": "Animation",
"broken": "Broken",
"broken-hint": "Indicates whether component is broken.",
"on-display-click": "On display click",
"on-display-click-hint": "Action invoked when user clicks on the display.",
"pipe": "Pipe",
"default-border-color": "Default border color",
"active-border-color": "Active border color",
"warning-border-color": "Warning border color",
"critical-border-color": "Critical border color",
"background-color": "Background color"
} }
}, },
"item": { "item": {
@ -5571,6 +5592,7 @@
}, },
"widget-action": { "widget-action": {
"header-button": "Widget header button", "header-button": "Widget header button",
"do-nothing": "Do nothing",
"open-dashboard-state": "Navigate to new dashboard state", "open-dashboard-state": "Navigate to new dashboard state",
"update-dashboard-state": "Update current dashboard state", "update-dashboard-state": "Update current dashboard state",
"open-dashboard": "Navigate to other dashboard", "open-dashboard": "Navigate to other dashboard",

Loading…
Cancel
Save