From d1d42f371378a436f011bf5fd61f400a5222175c Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Tue, 10 Mar 2015 16:07:58 +0100 Subject: [PATCH] chore(project): upgrade to latest bpmn-font --- .../context-pad/ContextPadProvider.js | 14 ++-- .../context-pad/ReplaceMenuEntries.js | 70 +++++++++---------- lib/features/palette/PaletteProvider.js | 8 +-- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/lib/features/context-pad/ContextPadProvider.js b/lib/features/context-pad/ContextPadProvider.js index 2296d755..1b40401c 100644 --- a/lib/features/context-pad/ContextPadProvider.js +++ b/lib/features/context-pad/ContextPadProvider.js @@ -122,11 +122,11 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { !isEventType(bpmnElement, 'bpmn:IntermediateThrowEvent', 'bpmn:LinkEventDefinition')) { assign(actions, { - 'append.end-event': appendAction('bpmn:EndEvent', 'icon-01-none-end-event'), - 'append.gateway': appendAction('bpmn:ExclusiveGateway', 'icon-exclusive-gateway'), + 'append.end-event': appendAction('bpmn:EndEvent', 'icon-end-event-none'), + 'append.gateway': appendAction('bpmn:ExclusiveGateway', 'icon-gateway-xor'), 'append.append-task': appendAction('bpmn:Task', 'icon-task'), 'append.intermediate-event': appendAction('bpmn:IntermediateThrowEvent', - 'icon-01-none-intermediate-throw-event'), + 'icon-intermediate-event-none'), 'connect': { group: 'connect', className: 'icon-connection', @@ -143,16 +143,16 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { assign(actions, { 'append.receive-task': appendAction('bpmn:ReceiveTask', 'icon-receive-task'), 'append.message-intermediate-event': appendAction('bpmn:IntermediateCatchEvent', - 'icon-02-message-intermediate-event', + 'icon-intermediate-event-catch-message', { _eventDefinitionType: 'bpmn:MessageEventDefinition'}), 'append.timer-intermediate-event': appendAction('bpmn:IntermediateCatchEvent', - 'icon-03-timer-intermediate-event', + 'icon-intermediate-event-catch-timer', { _eventDefinitionType: 'bpmn:TimerEventDefinition'}), 'append.condtion-intermediate-event': appendAction('bpmn:IntermediateCatchEvent', - 'icon-05-conditional-intermediate-event', + 'icon-intermediate-event-catch-condition', { _eventDefinitionType: 'bpmn:ConditionalEventDefinition'}), 'append.signal-intermediate-event': appendAction('bpmn:IntermediateCatchEvent', - 'icon-10-signal-intermediate-event', + 'icon-intermediate-event-catch-signal', { _eventDefinitionType: 'bpmn:SignalEventDefinition'}), 'connect': { group: 'connect', diff --git a/lib/features/context-pad/ReplaceMenuEntries.js b/lib/features/context-pad/ReplaceMenuEntries.js index baa27cb2..06747de6 100644 --- a/lib/features/context-pad/ReplaceMenuEntries.js +++ b/lib/features/context-pad/ReplaceMenuEntries.js @@ -7,7 +7,7 @@ var startEventReplace = [ }, label: 'Start Event', actionName: 'replace-with-none-start', - className: 'icon-01-none-start-event', + className: 'icon-start-event-none', targetType: 'bpmn:StartEvent' }, { @@ -16,7 +16,7 @@ var startEventReplace = [ }, label: 'Intermediate Throw Event', actionName: 'replace-with-intermediate-throwing', - className: 'icon-01-none-intermediate-throw-event', + className: 'icon-intermediate-event-none', targetType: 'bpmn:IntermediateThrowEvent' }, { @@ -25,13 +25,13 @@ var startEventReplace = [ }, label: 'End Event', actionName: 'replace-with-message-end', - className: 'icon-01-none-end-event', + className: 'icon-end-event-none', targetType: 'bpmn:EndEvent' }, { label: 'Message Start Event', actionName: 'replace-with-message-start', - className: 'icon-02-message-start-event', + className: 'icon-start-event-message', targetType: 'bpmn:StartEvent', options: { eventDefinition: 'bpmn:MessageEventDefinition' @@ -40,7 +40,7 @@ var startEventReplace = [ { label: 'Timer Start Event', actionName: 'replace-with-timer-start', - className: 'icon-03-timer-start-event', + className: 'icon-start-event-timer', targetType: 'bpmn:StartEvent', options: { eventDefinition: 'bpmn:TimerEventDefinition' @@ -49,7 +49,7 @@ var startEventReplace = [ { label: 'Conditional Start Event', actionName: 'replace-with-conditional-start', - className: 'icon-05-conditional-start-event', + className: 'icon-start-event-condition', targetType: 'bpmn:StartEvent', options:{ eventDefinition: 'bpmn:ConditionalEventDefinition' @@ -58,7 +58,7 @@ var startEventReplace = [ { label: 'Signal Start Event', actionName: 'replace-with-signal-start', - className: 'icon-10-signal-start-event', + className: 'icon-start-event-signal', targetType: 'bpmn:StartEvent', options: { eventDefinition: 'bpmn:SignalEventDefinition' @@ -70,7 +70,7 @@ var startEventReplace = [ { label: 'Start Event', actionName: 'replace-with-none-start', - className: 'icon-01-none-start-event', + className: 'icon-start-event-none', targetType: 'bpmn:StartEvent', options: { eventDefinition: '' @@ -79,7 +79,7 @@ var startEventReplace = [ { label: 'Intermediate Throw Event', actionName: 'replace-with-message-intermediate-throw', - className: 'icon-01-none-intermediate-throw-event', + className: 'icon-intermediate-event-none', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: '' @@ -88,7 +88,7 @@ var startEventReplace = [ { label: 'End Event', actionName: 'replace-with-message-end', - className: 'icon-01-none-end-event', + className: 'icon-end-event-none', targetType: 'bpmn:EndEvent', options: { eventDefinition: '' @@ -97,7 +97,7 @@ var startEventReplace = [ { label: 'Message Intermediate Catch Event', actionName: 'replace-with-intermediate-catch', - className: 'icon-02-message-intermediate-event', + className: 'icon-intermediate-event-catch-message', targetType: 'bpmn:IntermediateCatchEvent', options: { eventDefinition: 'bpmn:MessageEventDefinition' @@ -106,7 +106,7 @@ var startEventReplace = [ { label: 'Message Intermediate Throw Event', actionName: 'replace-with-intermediate-throw', - className: 'icon-02-message-intermediate-throw-event', + className: 'icon-intermediate-event-throw-message', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: 'bpmn:MessageEventDefinition' @@ -115,7 +115,7 @@ var startEventReplace = [ { label: 'Timer Intermediate Catch Event', actionName: 'replace-with-timer-intermediate-catch', - className: 'icon-03-timer-intermediate-event', + className: 'icon-intermediate-event-catch-timer', targetType: 'bpmn:IntermediateCatchEvent', options: { eventDefinition: 'bpmn:TimerEventDefinition' @@ -124,7 +124,7 @@ var startEventReplace = [ { label: 'Escalation Intermediate Catch Event', actionName: 'replace-with-escalation-catch', - className: 'icon-04-escalation-intermediate-event', + className: 'icon-intermediate-event-catch-escalation', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: 'bpmn:EscalationEventDefinition' @@ -133,7 +133,7 @@ var startEventReplace = [ { label: 'Conditional Intermediate Catch Event', actionName: 'replace-with-conditional-intermediate-catch', - className: 'icon-05-conditional-intermediate-event', + className: 'icon-intermediate-event-catch-condition', targetType: 'bpmn:IntermediateCatchEvent', options: { eventDefinition: 'bpmn:ConditionalEventDefinition' @@ -142,7 +142,7 @@ var startEventReplace = [ { label: 'Link Intermediate Catch Event', actionName: 'replace-with-link-intermediate-catch', - className: 'icon-06-link-intermediate-event', + className: 'icon-intermediate-event-catch-link', targetType: 'bpmn:IntermediateCatchEvent', options: { eventDefinition: 'bpmn:LinkEventDefinition' @@ -151,7 +151,7 @@ var startEventReplace = [ { label: 'Link Intermediate Throw Event', actionName: 'replace-with-link-intermediate-throw', - className: 'icon-06-link-intermediate-throw-event', + className: 'icon-intermediate-event-throw-link', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: 'bpmn:LinkEventDefinition' @@ -160,7 +160,7 @@ var startEventReplace = [ { label: 'Compensation Intermediate Throw Event', actionName: 'replace-with-compensation-intermediate-throw', - className: 'icon-09-compensation-intermediate-throw-event', + className: 'icon-intermediate-event-throw-compensation', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: 'bpmn:CompensateEventDefinition' @@ -169,7 +169,7 @@ var startEventReplace = [ { label: 'Signal Throw Catch Event', actionName: 'replace-with-throw-intermediate-catch', - className: 'icon-10-signal-intermediate-event', + className: 'icon-intermediate-event-catch-signal', targetType: 'bpmn:IntermediateCatchEvent', options: { eventDefinition: 'bpmn:SignalEventDefinition' @@ -178,7 +178,7 @@ var startEventReplace = [ { label: 'Signal Intermediate Throw Event', actionName: 'replace-with-signal-intermediate-throw', - className: 'icon-10-signal-intermediate-throw-event', + className: 'icon-intermediate-event-throw-signal', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: 'bpmn:SignalEventDefinition' @@ -192,7 +192,7 @@ var endEventReplace = [ { label: 'Start Event', actionName: 'replace-with-none-start', - className: 'icon-01-none-start-event', + className: 'icon-start-event-none', targetType: 'bpmn:StartEvent', options: { eventDefinition: '' @@ -201,7 +201,7 @@ var endEventReplace = [ { label: 'Intermediate Throw Event', actionName: 'replace-with-message-intermediate-throw', - className: 'icon-01-none-intermediate-throw-event', + className: 'icon-intermediate-event-none', targetType: 'bpmn:IntermediateThrowEvent', options: { eventDefinition: '' @@ -210,7 +210,7 @@ var endEventReplace = [ { label: 'End Event', actionName: 'replace-with-none-end', - className: 'icon-01-none-end-event', + className: 'icon-end-event-none', targetType: 'bpmn:EndEvent', options: { eventDefinition: '' @@ -219,7 +219,7 @@ var endEventReplace = [ { label: 'Message End Event', actionName: 'replace-with-message-end', - className: 'icon-02-message-end-event', + className: 'icon-end-event-message', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:MessageEventDefinition' @@ -228,7 +228,7 @@ var endEventReplace = [ { label: 'Escalation End Event', actionName: 'replace-with-escalation-end', - className: 'icon-04-escalation-end-event', + className: 'icon-end-event-escalation', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:EscalationEventDefinition' @@ -237,7 +237,7 @@ var endEventReplace = [ { label: 'Error End Event', actionName: 'replace-with-error-end', - className: 'icon-07-error-end-event', + className: 'icon-end-event-error', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:ErrorEventDefinition' @@ -246,7 +246,7 @@ var endEventReplace = [ { label: 'Cancel End Event', actionName: 'replace-with-cancel-end', - className: 'icon-08-cancel-end-event', + className: 'icon-end-event-cancel', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:CancelEventDefinition' @@ -255,7 +255,7 @@ var endEventReplace = [ { label: 'Compensation End Event', actionName: 'replace-with-compensation-end', - className: 'icon-09-compensation-end-event', + className: 'icon-end-event-compensation', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:CompensateEventDefinition' @@ -264,7 +264,7 @@ var endEventReplace = [ { label: 'Signal End Event', actionName: 'replace-with-signal-end', - className: 'icon-10-signal-end-event', + className: 'icon-end-event-signal', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:SignalEventDefinition' @@ -273,7 +273,7 @@ var endEventReplace = [ { label: 'Terminate End Event', actionName: 'replace-with-terminate-end', - className: 'icon-13-terminate-end-event', + className: 'icon-end-event-terminate', targetType: 'bpmn:EndEvent', options: { eventDefinition: 'bpmn:TerminateEventDefinition' @@ -285,31 +285,31 @@ var gatewayReplace = [ { label: 'Exclusive Gateway', actionName: 'replace-with-exclusive-gateway', - className: 'icon-exclusive-gateway', + className: 'icon-gateway-xor', targetType: 'bpmn:ExclusiveGateway' }, { label: 'Parallel Gateway', actionName: 'replace-with-parallel-gateway', - className: 'icon-parallel-gateway', + className: 'icon-gateway-parallel', targetType: 'bpmn:ParallelGateway' }, { label: 'Inclusive Gateway', actionName: 'replace-with-inclusive-gateway', - className: 'icon-inclusive-gateway', + className: 'icon-gateway-or', targetType: 'bpmn:InclusiveGateway' }, { label: 'Complex Gateway', actionName: 'replace-with-complex-gateway', - className: 'icon-complex-gateway', + className: 'icon-gateway-complex', targetType: 'bpmn:ComplexGateway' }, { label: 'Event based Gateway', actionName: 'replace-with-event-based-gateway', - className: 'icon-event-based-gateway', + className: 'icon-gateway-eventbased', targetType: 'bpmn:EventBasedGateway', options: { newBusinessAtt: { instantiate: false, eventGatewayType: 'Exclusive' } diff --git a/lib/features/palette/PaletteProvider.js b/lib/features/palette/PaletteProvider.js index ed19f1ca..0625bb6f 100644 --- a/lib/features/palette/PaletteProvider.js +++ b/lib/features/palette/PaletteProvider.js @@ -50,16 +50,16 @@ PaletteProvider.prototype.getPaletteEntries = function(element) { assign(actions, { 'create.start-event': createAction( - 'bpmn:StartEvent', 'event', 'icon-01-none-start-event' + 'bpmn:StartEvent', 'event', 'icon-start-event-none' ), 'create.intermediate-event': createAction( - 'bpmn:IntermediateThrowEvent', 'event', 'icon-01-none-intermediate-throw-event' + 'bpmn:IntermediateThrowEvent', 'event', 'icon-intermediate-event-none' ), 'create.end-event': createAction( - 'bpmn:EndEvent', 'event', 'icon-01-none-end-event' + 'bpmn:EndEvent', 'event', 'icon-end-event-none' ), 'create.exclusive-gateway': createAction( - 'bpmn:ExclusiveGateway', 'gateway', 'icon-exclusive-gateway' + 'bpmn:ExclusiveGateway', 'gateway', 'icon-gateway-xor' ), 'create.task': createAction( 'bpmn:Task', 'activity', 'icon-task'