@@ -102,41 +102,21 @@ function( $config, $ref ) {
102102
103103 public function getFields (): array
104104 {
105- if ( ! $ this ->getParameter ( '__experimental ' ) ) {
106- return [
107- 'steps ' => [
108- 'required ' => true ,
109- 'wrap ' => false ,
110- 'label ' => $ this ->trans ( 'Add steps ' ),
111- 'type ' => 'entities ' ,
112- 'entity ' => 'routine ' ,
113- 'columns ' => [
114- 'config ' => [
115- 'prop ' => 'tasks ' ,
116- 'type ' => 'task ' ,
117- 'badge ' => [
118- 'type ' => 'task ' ,
119- 'label ' => [
120- 'type ' => 'task ' ,
121- 'prefix ' => $ this ->trans ( 'Task ' ) . ': ' ,
122- 'value ' => '{{ _class }} ' ,
123- 'parse ' => 'tag|model ' ,
124- ],
125- ],
126- ],
127- ],
128- ],
129- ];
130- }
131-
132105 return [
133106 'type ' => [
134107 'type ' => 'radio ' ,
135- 'button ' => 'secondary ' ,
108+ 'button ' => 'outline-flow ' ,
109+ 'subtle ' => true ,
136110 'inline ' => true ,
137111 'choices ' => [
138- 'flow ' => $ this ->trans ( 'Dynamic Flow ' ),
139- 'sequence ' => $ this ->trans ( 'Sequence ' ),
112+ 'flow ' => [
113+ 'icon ' => '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M5.5 2.25A2.5 2.5 0 0 1 7.885 4h8.865l.219.006a4.25 4.25 0 0 1-.219 8.494h-9.5a2.75 2.75 0 1 0 0 5.5h8.865a2.5 2.5 0 1 1 0 1.5H7.25a4.25 4.25 0 0 1 0-8.5h9.5a2.75 2.75 0 0 0 .281-5.485L16.75 5.5H7.885A2.5 2.5 0 1 1 5.5 2.25"/></svg> ' ,
114+ 'title ' => $ this ->trans ( 'Dynamic ' ),
115+ ],
116+ 'sequence ' => [
117+ 'icon ' => '<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M208 112H48a16 16 0 0 0-16 16v24a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-24a16 16 0 0 0-16-16m0 40H48v-24h160zm0-112H48a16 16 0 0 0-16 16v24a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 40H48V56h160zm-48 136a8 8 0 0 1-8 8h-16v16a8 8 0 0 1-16 0v-16h-16a8 8 0 0 1 0-16h16v-16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 8 8"/></svg> ' ,
118+ 'title ' => $ this ->trans ( 'Sequence ' ),
119+ ]
140120 ],
141121 ],
142122 'flow ' => [
@@ -161,22 +141,6 @@ public function getFields(): array
161141 'conditions ' => [
162142 'type ' => 'sequence ' ,
163143 ],
164- //'config' => $this->getParameter( '__experimental' ) ? 'entity:_step.fields' : '',
165- /*'columns' => [
166- 'config' => [
167- 'prop' => 'tasks',
168- 'type' => 'task',
169- 'badge' => [
170- 'type' => 'task',
171- 'label' => [
172- 'type' => 'task',
173- 'prefix' => $this->trans( 'Task' ) . ': ',
174- 'value' => '{{ _class }}',
175- 'parse' => 'tag|model',
176- ],
177- ],
178- ],
179- ],*/
180144 ],
181145 ];
182146 }
0 commit comments