jq_icons.anubis 32.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560
/*
 * Created by PyramIDE.
 * User: Jeremy
 * Date: 08/09/2012
 * Time: 16:35
 * 
 *
 */

read xlib/web/making_a_web_site.anubis
read tools/basis.anubis
read system/string.anubis

public type JQuery_icon:
  ui_icon_carat_1_n,
  ui_icon_carat_1_ne,
  ui_icon_carat_1_e,
  ui_icon_carat_1_se,
  ui_icon_carat_1_s,
  ui_icon_carat_1_sw,
  ui_icon_carat_1_w,
  ui_icon_carat_1_nw,
  ui_icon_carat_2_n_s,
  ui_icon_carat_2_e_w,
  ui_icon_triangle_1_n,
  ui_icon_triangle_1_ne,
  ui_icon_triangle_1_e,
  ui_icon_triangle_1_se,
  ui_icon_triangle_1_s,
  ui_icon_triangle_1_sw,
  ui_icon_triangle_1_w,
  ui_icon_triangle_1_nw,
  ui_icon_triangle_2_n_s,
  ui_icon_triangle_2_e_w,
  ui_icon_arrow_1_n,
  ui_icon_arrow_1_ne,
  ui_icon_arrow_1_e,
  ui_icon_arrow_1_se,
  ui_icon_arrow_1_s,
  ui_icon_arrow_1_sw,
  ui_icon_arrow_1_w,
  ui_icon_arrow_1_nw,
  ui_icon_arrow_2_n_s,
  ui_icon_arrow_2_ne_sw,
  ui_icon_arrow_2_e_w,
  ui_icon_arrow_2_se_nw,
  ui_icon_arrowstop_1_n,
  ui_icon_arrowstop_1_e,
  ui_icon_arrowstop_1_s,
  ui_icon_arrowstop_1_w,
  ui_icon_arrowthick_1_n,
  ui_icon_arrowthick_1_ne,
  ui_icon_arrowthick_1_e,
  ui_icon_arrowthick_1_se,
  ui_icon_arrowthick_1_s,
  ui_icon_arrowthick_1_sw,
  ui_icon_arrowthick_1_w,
  ui_icon_arrowthick_1_nw,
  ui_icon_arrowthick_2_n_s,
  ui_icon_arrowthick_2_ne_sw,
  ui_icon_arrowthick_2_e_w,
  ui_icon_arrowthick_2_se_nw,
  ui_icon_arrowthickstop_1_n,
  ui_icon_arrowthickstop_1_e,
  ui_icon_arrowthickstop_1_s,
  ui_icon_arrowthickstop_1_w,
  ui_icon_arrowreturnthick_1_w,
  ui_icon_arrowreturnthick_1_n,
  ui_icon_arrowreturnthick_1_e,
  ui_icon_arrowreturnthick_1_s,
  ui_icon_arrowreturn_1_w,
  ui_icon_arrowreturn_1_n,
  ui_icon_arrowreturn_1_e,
  ui_icon_arrowreturn_1_s,
  ui_icon_arrowrefresh_1_w,
  ui_icon_arrowrefresh_1_n,
  ui_icon_arrowrefresh_1_e,
  ui_icon_arrowrefresh_1_s,
  ui_icon_arrow_4,
  ui_icon_arrow_4_diag,
  ui_icon_extlink,
  ui_icon_newwin,
  ui_icon_refresh,
  ui_icon_shuffle,
  ui_icon_transfer_e_w,
  ui_icon_transferthick_e_w,
  ui_icon_folder_collapsed,
  ui_icon_folder_open,
  ui_icon_document,
  ui_icon_document_b,
  ui_icon_note,
  ui_icon_mail_closed,
  ui_icon_mail_open,
  ui_icon_suitcase,
  ui_icon_comment,
  ui_icon_person,
  ui_icon_print,
  ui_icon_trash,
  ui_icon_locked,
  ui_icon_unlocked,
  ui_icon_bookmark,
  ui_icon_tag,
  ui_icon_home,
  ui_icon_flag,
  ui_icon_calculator,
  ui_icon_cart,
  ui_icon_pencil,
  ui_icon_clock,
  ui_icon_disk,
  ui_icon_calendar,
  ui_icon_zoomin,
  ui_icon_zoomout,
  ui_icon_search,
  ui_icon_wrench,
  ui_icon_gear,
  ui_icon_heart,
  ui_icon_star,
  ui_icon_link,
  ui_icon_cancel,
  ui_icon_plus,
  ui_icon_plusthick,
  ui_icon_minus,
  ui_icon_minusthick,
  ui_icon_close,
  ui_icon_closethick,
  ui_icon_key,
  ui_icon_lightbulb,
  ui_icon_scissors,
  ui_icon_clipboard,
  ui_icon_copy,
  ui_icon_contact,
  ui_icon_image,
  ui_icon_video,
  ui_icon_script,
  ui_icon_alert,
  ui_icon_info,
  ui_icon_notice,
  ui_icon_help,
  ui_icon_check,
  ui_icon_bullet,
  ui_icon_radio_off,
  ui_icon_radio_on,
  ui_icon_pin_w,
  ui_icon_pin_s,
  ui_icon_play,
  ui_icon_pause,
  ui_icon_seek_next,
  ui_icon_seek_prev,
  ui_icon_seek_end,
  ui_icon_seek_first,
  ui_icon_stop,
  ui_icon_eject,
  ui_icon_volume_off,
  ui_icon_volume_on,
  ui_icon_power,
  ui_icon_signal_diag,
  ui_icon_signal,
  ui_icon_battery_0,
  ui_icon_battery_1,
  ui_icon_battery_2,
  ui_icon_battery_3,
  ui_icon_circle_plus,
  ui_icon_circle_minus,
  ui_icon_circle_close,
  ui_icon_circle_triangle_e,
  ui_icon_circle_triangle_s,
  ui_icon_circle_triangle_w,
  ui_icon_circle_triangle_n,
  ui_icon_circle_arrow_e,
  ui_icon_circle_arrow_s,
  ui_icon_circle_arrow_w,
  ui_icon_circle_arrow_n,
  ui_icon_circle_zoomin,
  ui_icon_circle_zoomout,
  ui_icon_circle_check,
  ui_icon_circlesmall_plus,
  ui_icon_circlesmall_minus,
  ui_icon_circlesmall_close,
  ui_icon_squaresmall_plus,
  ui_icon_squaresmall_minus,
  ui_icon_squaresmall_close,
  ui_icon_grip_dotted_vertical,
  ui_icon_grip_dotted_horizontal,
  ui_icon_grip_solid_vertical,
  ui_icon_grip_solid_horizontal,
  ui_icon_gripsmall_diagonal_se,
  ui_icon_grip_diagonal_se,
  jq_icon_none,
  jq_custom_icon(String)      // for custom icon => set it to CSS class name used to display icon => for creating a such CSS class please refer to jQueryUI Theme CSS file and see how it's done with the othe icon classes
.

public define String
  jquery_icon_to_string
  (
    JQuery_icon icon
  )
  =
    if icon is
    {
      ui_icon_carat_1_n                 then "ui-icon-carat-1-n",
      ui_icon_carat_1_ne                then "ui-icon-carat-1-ne",
      ui_icon_carat_1_e                 then "ui-icon-carat-1-e",
      ui_icon_carat_1_se                then "ui-icon-carat-1-se",
      ui_icon_carat_1_s                 then "ui-icon-carat-1-s",
      ui_icon_carat_1_sw                then "ui-icon-carat-1-sw",
      ui_icon_carat_1_w                 then "ui-icon-carat-1-w",
      ui_icon_carat_1_nw                then "ui-icon-carat-1-nw",
      ui_icon_carat_2_n_s               then "ui-icon-carat-2-n-s",
      ui_icon_carat_2_e_w               then "ui-icon-carat-2-e-w",
      ui_icon_triangle_1_n              then "ui-icon-triangle-1-n",
      ui_icon_triangle_1_ne             then "ui-icon-triangle-1-ne",
      ui_icon_triangle_1_e              then "ui-icon-triangle-1-e",
      ui_icon_triangle_1_se             then "ui-icon-triangle-1-se",
      ui_icon_triangle_1_s              then "ui-icon-triangle-1-s",
      ui_icon_triangle_1_sw             then "ui-icon-triangle-1-sw",
      ui_icon_triangle_1_w              then "ui-icon-triangle-1-w",
      ui_icon_triangle_1_nw             then "ui-icon-triangle-1-nw",
      ui_icon_triangle_2_n_s            then "ui-icon-triangle-2-n-s",
      ui_icon_triangle_2_e_w            then "ui-icon-triangle-2-e-w",
      ui_icon_arrow_1_n                 then "ui-icon-arrow-1-n",
      ui_icon_arrow_1_ne                then "ui-icon-arrow-1-ne",
      ui_icon_arrow_1_e                 then "ui-icon-arrow-1-e",
      ui_icon_arrow_1_se                then "ui-icon-arrow-1-se",
      ui_icon_arrow_1_s                 then "ui-icon-arrow-1-s",
      ui_icon_arrow_1_sw                then "ui-icon-arrow-1-sw",
      ui_icon_arrow_1_w                 then "ui-icon-arrow-1-w",
      ui_icon_arrow_1_nw                then "ui-icon-arrow-1-nw",
      ui_icon_arrow_2_n_s               then "ui-icon-arrow-2-n-s",
      ui_icon_arrow_2_ne_sw             then "ui-icon-arrow-2-ne-sw",
      ui_icon_arrow_2_e_w               then "ui-icon-arrow-2-e-w",
      ui_icon_arrow_2_se_nw             then "ui-icon-arrow-2-se-nw",
      ui_icon_arrowstop_1_n             then "ui-icon-arrowstop-1-n",
      ui_icon_arrowstop_1_e             then "ui-icon-arrowstop-1-e",
      ui_icon_arrowstop_1_s             then "ui-icon-arrowstop-1-s",
      ui_icon_arrowstop_1_w             then "ui-icon-arrowstop-1-w",
      ui_icon_arrowthick_1_n            then "ui-icon-arrowthick-1-n",
      ui_icon_arrowthick_1_ne           then "ui-icon-arrowthick-1-ne",
      ui_icon_arrowthick_1_e            then "ui-icon-arrowthick-1-e",
      ui_icon_arrowthick_1_se           then "ui-icon-arrowthick-1-se",
      ui_icon_arrowthick_1_s            then "ui-icon-arrowthick-1-s",
      ui_icon_arrowthick_1_sw           then "ui-icon-arrowthick-1-sw",
      ui_icon_arrowthick_1_w            then "ui-icon-arrowthick-1-w",
      ui_icon_arrowthick_1_nw           then "ui-icon-arrowthick-1-nw",
      ui_icon_arrowthick_2_n_s          then "ui-icon-arrowthick-2-n-s",
      ui_icon_arrowthick_2_ne_sw        then "ui-icon-arrowthick-2-ne-sw",
      ui_icon_arrowthick_2_e_w          then "ui-icon-arrowthick-2-e-w",
      ui_icon_arrowthick_2_se_nw        then "ui-icon-arrowthick-2-se-nw",
      ui_icon_arrowthickstop_1_n        then "ui-icon-arrowthickstop-1-n",
      ui_icon_arrowthickstop_1_e        then "ui-icon-arrowthickstop-1-e",
      ui_icon_arrowthickstop_1_s        then "ui-icon-arrowthickstop-1-s",
      ui_icon_arrowthickstop_1_w        then "ui-icon-arrowthickstop-1-w",
      ui_icon_arrowreturnthick_1_w      then "ui-icon-arrowreturnthick-1-w",
      ui_icon_arrowreturnthick_1_n      then "ui-icon-arrowreturnthick-1-n",
      ui_icon_arrowreturnthick_1_e      then "ui-icon-arrowreturnthick-1-e",
      ui_icon_arrowreturnthick_1_s      then "ui-icon-arrowreturnthick-1-s",
      ui_icon_arrowreturn_1_w           then "ui-icon-arrowreturn-1-w",
      ui_icon_arrowreturn_1_n           then "ui-icon-arrowreturn-1-n",
      ui_icon_arrowreturn_1_e           then "ui-icon-arrowreturn-1-e",
      ui_icon_arrowreturn_1_s           then "ui-icon-arrowreturn-1-s",
      ui_icon_arrowrefresh_1_w          then "ui-icon-arrowrefresh-1-w",
      ui_icon_arrowrefresh_1_n          then "ui-icon-arrowrefresh-1-n",
      ui_icon_arrowrefresh_1_e          then "ui-icon-arrowrefresh-1-e",
      ui_icon_arrowrefresh_1_s          then "ui-icon-arrowrefresh-1-s",
      ui_icon_arrow_4                   then "ui-icon-arrow-4",
      ui_icon_arrow_4_diag              then "ui-icon-arrow-4-diag",
      ui_icon_extlink                   then "ui-icon-extlink",
      ui_icon_newwin                    then "ui-icon-newwin",
      ui_icon_refresh                   then "ui-icon-refresh",
      ui_icon_shuffle                   then "ui-icon-shuffle",
      ui_icon_transfer_e_w              then "ui-icon-transfer-e-w",
      ui_icon_transferthick_e_w         then "ui-icon-transferthick-e-w",
      ui_icon_folder_collapsed          then "ui-icon-folder-collapsed",
      ui_icon_folder_open               then "ui-icon-folder-open",
      ui_icon_document                  then "ui-icon-document",
      ui_icon_document_b                then "ui-icon-document-b",
      ui_icon_note                      then "ui-icon-note",
      ui_icon_mail_closed               then "ui-icon-mail-closed",
      ui_icon_mail_open                 then "ui-icon-mail-open",
      ui_icon_suitcase                  then "ui-icon-suitcase",
      ui_icon_comment                   then "ui-icon-comment",
      ui_icon_person                    then "ui-icon-person",
      ui_icon_print                     then "ui-icon-print",
      ui_icon_trash                     then "ui-icon-trash",
      ui_icon_locked                    then "ui-icon-locked",
      ui_icon_unlocked                  then "ui-icon-unlocked",
      ui_icon_bookmark                  then "ui-icon-bookmark",
      ui_icon_tag                       then "ui-icon-tag",
      ui_icon_home                      then "ui-icon-home",
      ui_icon_flag                      then "ui-icon-flag",
      ui_icon_calculator                then "ui-icon-calculator",
      ui_icon_cart                      then "ui-icon-cart",
      ui_icon_pencil                    then "ui-icon-pencil",
      ui_icon_clock                     then "ui-icon-clock",
      ui_icon_disk                      then "ui-icon-disk",
      ui_icon_calendar                  then "ui-icon-calendar",
      ui_icon_zoomin                    then "ui-icon-zoomin",
      ui_icon_zoomout                   then "ui-icon-zoomout",
      ui_icon_search                    then "ui-icon-search",
      ui_icon_wrench                    then "ui-icon-wrench",
      ui_icon_gear                      then "ui-icon-gear",
      ui_icon_heart                     then "ui-icon-heart",
      ui_icon_star                      then "ui-icon-star",
      ui_icon_link                      then "ui-icon-link",
      ui_icon_cancel                    then "ui-icon-cancel",
      ui_icon_plus                      then "ui-icon-plus",
      ui_icon_plusthick                 then "ui-icon-plusthick",
      ui_icon_minus                     then "ui-icon-minus",
      ui_icon_minusthick                then "ui-icon-minusthick",
      ui_icon_close                     then "ui-icon-close",
      ui_icon_closethick                then "ui-icon-closethick",
      ui_icon_key                       then "ui-icon-key",
      ui_icon_lightbulb                 then "ui-icon-lightbulb",
      ui_icon_scissors                  then "ui-icon-scissors",
      ui_icon_clipboard                 then "ui-icon-clipboard",
      ui_icon_copy                      then "ui-icon-copy",
      ui_icon_contact                   then "ui-icon-contact",
      ui_icon_image                     then "ui-icon-image",
      ui_icon_video                     then "ui-icon-video",
      ui_icon_script                    then "ui-icon-script",
      ui_icon_alert                     then "ui-icon-alert",
      ui_icon_info                      then "ui-icon-info",
      ui_icon_notice                    then "ui-icon-notice",
      ui_icon_help                      then "ui-icon-help",
      ui_icon_check                     then "ui-icon-check",
      ui_icon_bullet                    then "ui-icon-bullet",
      ui_icon_radio_off                 then "ui-icon-radio-off",
      ui_icon_radio_on                  then "ui-icon-radio-on",
      ui_icon_pin_w                     then "ui-icon-pin-w",
      ui_icon_pin_s                     then "ui-icon-pin-s",
      ui_icon_play                      then "ui-icon-play",
      ui_icon_pause                     then "ui-icon-pause",
      ui_icon_seek_next                 then "ui-icon-seek-next",
      ui_icon_seek_prev                 then "ui-icon-seek-prev",
      ui_icon_seek_end                  then "ui-icon-seek-end",
      ui_icon_seek_first                then "ui-icon-seek-first",
      ui_icon_stop                      then "ui-icon-stop",
      ui_icon_eject                     then "ui-icon-eject",
      ui_icon_volume_off                then "ui-icon-volume-off",
      ui_icon_volume_on                 then "ui-icon-volume-on",
      ui_icon_power                     then "ui-icon-power",
      ui_icon_signal_diag               then "ui-icon-signal-diag",
      ui_icon_signal                    then "ui-icon-signal",
      ui_icon_battery_0                 then "ui-icon-battery-0",
      ui_icon_battery_1                 then "ui-icon-battery-1",
      ui_icon_battery_2                 then "ui-icon-battery-2",
      ui_icon_battery_3                 then "ui-icon-battery-3",
      ui_icon_circle_plus               then "ui-icon-circle-plus",
      ui_icon_circle_minus              then "ui-icon-circle-minus",
      ui_icon_circle_close              then "ui-icon-circle-close",
      ui_icon_circle_triangle_e         then "ui-icon-circle-triangle-e",
      ui_icon_circle_triangle_s         then "ui-icon-circle-triangle-s",
      ui_icon_circle_triangle_w         then "ui-icon-circle-triangle-w",
      ui_icon_circle_triangle_n         then "ui-icon-circle-triangle-n",
      ui_icon_circle_arrow_e            then "ui-icon-circle-arrow-e",
      ui_icon_circle_arrow_s            then "ui-icon-circle-arrow-s",
      ui_icon_circle_arrow_w            then "ui-icon-circle-arrow-w",
      ui_icon_circle_arrow_n            then "ui-icon-circle-arrow-n",
      ui_icon_circle_zoomin             then "ui-icon-circle-zoomin",
      ui_icon_circle_zoomout            then "ui-icon-circle-zoomout",
      ui_icon_circle_check              then "ui-icon-circle-check",
      ui_icon_circlesmall_plus          then "ui-icon-circlesmall-plus",
      ui_icon_circlesmall_minus         then "ui-icon-circlesmall-minus",
      ui_icon_circlesmall_close         then "ui-icon-circlesmall-close",
      ui_icon_squaresmall_plus          then "ui-icon-squaresmall-plus",
      ui_icon_squaresmall_minus         then "ui-icon-squaresmall-minus",
      ui_icon_squaresmall_close         then "ui-icon-squaresmall-close",
      ui_icon_grip_dotted_vertical      then "ui-icon-grip-dotted-vertical",
      ui_icon_grip_dotted_horizontal    then "ui-icon-grip-dotted-horizontal",
      ui_icon_grip_solid_vertical       then "ui-icon-grip-solid-vertical",
      ui_icon_grip_solid_horizontal     then "ui-icon-grip-solid-horizontal",
      ui_icon_gripsmall_diagonal_se     then "ui-icon-gripsmall-diagonal-se",
      ui_icon_grip_diagonal_se          then "ui-icon-grip-diagonal-se",
      jq_icon_none                      then "",
      jq_custom_icon(str)               then str
    }
  .
  
public define JQuery_icon
  string_to_jquery_icon
  (
    String icon_class
  )
  =
    with ic=to_lower(icon_class),
      if ic = "ui-icon-carat-1-n"                   then ui_icon_carat_1_n                  else
      if ic = "ui-icon-carat-1-ne"                  then ui_icon_carat_1_ne                 else
      if ic = "ui-icon-carat-1-e"                   then ui_icon_carat_1_e                  else
      if ic = "ui-icon-carat-1-se"                  then ui_icon_carat_1_se                 else
      if ic = "ui-icon-carat-1-s"                   then ui_icon_carat_1_s                  else
      if ic = "ui-icon-carat-1-sw"                  then ui_icon_carat_1_sw                 else
      if ic = "ui-icon-carat-1-w"                   then ui_icon_carat_1_w                  else
      if ic = "ui-icon-carat-1-nw"                  then ui_icon_carat_1_nw                 else
      if ic = "ui-icon-carat-2-n-s"                 then ui_icon_carat_2_n_s                else
      if ic = "ui-icon-carat-2-e-w"                 then ui_icon_carat_2_e_w                else
      if ic = "ui-icon-triangle-1-n"                then ui_icon_triangle_1_n               else
      if ic = "ui-icon-triangle-1-ne"               then ui_icon_triangle_1_ne              else
      if ic = "ui-icon-triangle-1-e"                then ui_icon_triangle_1_e               else
      if ic = "ui-icon-triangle-1-se"               then ui_icon_triangle_1_se              else
      if ic = "ui-icon-triangle-1-s"                then ui_icon_triangle_1_s               else
      if ic = "ui-icon-triangle-1-sw"               then ui_icon_triangle_1_sw              else
      if ic = "ui-icon-triangle-1-w"                then ui_icon_triangle_1_w               else
      if ic = "ui-icon-triangle-1-nw"               then ui_icon_triangle_1_nw              else
      if ic = "ui-icon-triangle-2-n-s"              then ui_icon_triangle_2_n_s             else
      if ic = "ui-icon-triangle-2-e-w"              then ui_icon_triangle_2_e_w             else
      if ic = "ui-icon-arrow-1-n"                   then ui_icon_arrow_1_n                  else
      if ic = "ui-icon-arrow-1-ne"                  then ui_icon_arrow_1_ne                 else
      if ic = "ui-icon-arrow-1-e"                   then ui_icon_arrow_1_e                  else
      if ic = "ui-icon-arrow-1-se"                  then ui_icon_arrow_1_se                 else
      if ic = "ui-icon-arrow-1-s"                   then ui_icon_arrow_1_s                  else
      if ic = "ui-icon-arrow-1-sw"                  then ui_icon_arrow_1_sw                 else
      if ic = "ui-icon-arrow-1-w"                   then ui_icon_arrow_1_w                  else
      if ic = "ui-icon-arrow-1-nw"                  then ui_icon_arrow_1_nw                 else
      if ic = "ui-icon-arrow-2-n-s"                 then ui_icon_arrow_2_n_s                else
      if ic = "ui-icon-arrow-2-ne-sw"               then ui_icon_arrow_2_ne_sw              else
      if ic = "ui-icon-arrow-2-e-w"                 then ui_icon_arrow_2_e_w                else
      if ic = "ui-icon-arrow-2-se-nw"               then ui_icon_arrow_2_se_nw              else
      if ic = "ui-icon-arrowstop-1-n"               then ui_icon_arrowstop_1_n              else
      if ic = "ui-icon-arrowstop-1-e"               then ui_icon_arrowstop_1_e              else
      if ic = "ui-icon-arrowstop-1-s"               then ui_icon_arrowstop_1_s              else
      if ic = "ui-icon-arrowstop-1-w"               then ui_icon_arrowstop_1_w              else
      if ic = "ui-icon-arrowthick-1-n"              then ui_icon_arrowthick_1_n             else
      if ic = "ui-icon-arrowthick-1-ne"             then ui_icon_arrowthick_1_ne            else
      if ic = "ui-icon-arrowthick-1-e"              then ui_icon_arrowthick_1_e             else
      if ic = "ui-icon-arrowthick-1-se"             then ui_icon_arrowthick_1_se            else
      if ic = "ui-icon-arrowthick-1-s"              then ui_icon_arrowthick_1_s             else
      if ic = "ui-icon-arrowthick-1-sw"             then ui_icon_arrowthick_1_sw            else
      if ic = "ui-icon-arrowthick-1-w"              then ui_icon_arrowthick_1_w             else
      if ic = "ui-icon-arrowthick-1-nw"             then ui_icon_arrowthick_1_nw            else
      if ic = "ui-icon-arrowthick-2-n-s"            then ui_icon_arrowthick_2_n_s           else
      if ic = "ui-icon-arrowthick-2-ne-sw"          then ui_icon_arrowthick_2_ne_sw         else
      if ic = "ui-icon-arrowthick-2-e-w"            then ui_icon_arrowthick_2_e_w           else
      if ic = "ui-icon-arrowthick-2-se-nw"          then ui_icon_arrowthick_2_se_nw         else
      if ic = "ui-icon-arrowthickstop-1-n"          then ui_icon_arrowthickstop_1_n         else
      if ic = "ui-icon-arrowthickstop-1-e"          then ui_icon_arrowthickstop_1_e         else
      if ic = "ui-icon-arrowthickstop-1-s"          then ui_icon_arrowthickstop_1_s         else
      if ic = "ui-icon-arrowthickstop-1-w"          then ui_icon_arrowthickstop_1_w         else
      if ic = "ui-icon-arrowreturnthick-1-w"        then ui_icon_arrowreturnthick_1_w       else
      if ic = "ui-icon-arrowreturnthick-1-n"        then ui_icon_arrowreturnthick_1_n       else
      if ic = "ui-icon-arrowreturnthick-1-e"        then ui_icon_arrowreturnthick_1_e       else
      if ic = "ui-icon-arrowreturnthick-1-s"        then ui_icon_arrowreturnthick_1_s       else
      if ic = "ui-icon-arrowreturn-1-w"             then ui_icon_arrowreturn_1_w            else
      if ic = "ui-icon-arrowreturn-1-n"             then ui_icon_arrowreturn_1_n            else
      if ic = "ui-icon-arrowreturn-1-e"             then ui_icon_arrowreturn_1_e            else
      if ic = "ui-icon-arrowreturn-1-s"             then ui_icon_arrowreturn_1_s            else
      if ic = "ui-icon-arrowrefresh-1-w"            then ui_icon_arrowrefresh_1_w           else
      if ic = "ui-icon-arrowrefresh-1-n"            then ui_icon_arrowrefresh_1_n           else
      if ic = "ui-icon-arrowrefresh-1-e"            then ui_icon_arrowrefresh_1_e           else
      if ic = "ui-icon-arrowrefresh-1-s"            then ui_icon_arrowrefresh_1_s           else
      if ic = "ui-icon-arrow-4"                     then ui_icon_arrow_4                    else
      if ic = "ui-icon-arrow-4-diag"                then ui_icon_arrow_4_diag               else
      if ic = "ui-icon-extlink"                     then ui_icon_extlink                    else
      if ic = "ui-icon-newwin"                      then ui_icon_newwin                     else
      if ic = "ui-icon-refresh"                     then ui_icon_refresh                    else
      if ic = "ui-icon-shuffle"                     then ui_icon_shuffle                    else
      if ic = "ui-icon-transfer-e-w"                then ui_icon_transfer_e_w               else
      if ic = "ui-icon-transferthick-e-w"           then ui_icon_transferthick_e_w          else
      if ic = "ui-icon-folder-collapsed"            then ui_icon_folder_collapsed           else
      if ic = "ui-icon-folder-open"                 then ui_icon_folder_open                else
      if ic = "ui-icon-document"                    then ui_icon_document                   else
      if ic = "ui-icon-document-b"                  then ui_icon_document_b                 else
      if ic = "ui-icon-note"                        then ui_icon_note                       else
      if ic = "ui-icon-mail-closed"                 then ui_icon_mail_closed                else
      if ic = "ui-icon-mail-open"                   then ui_icon_mail_open                  else
      if ic = "ui-icon-suitcase"                    then ui_icon_suitcase                   else
      if ic = "ui-icon-comment"                     then ui_icon_comment                    else
      if ic = "ui-icon-person"                      then ui_icon_person                     else
      if ic = "ui-icon-print"                       then ui_icon_print                      else
      if ic = "ui-icon-trash"                       then ui_icon_trash                      else
      if ic = "ui-icon-locked"                      then ui_icon_locked                     else
      if ic = "ui-icon-unlocked"                    then ui_icon_unlocked                   else
      if ic = "ui-icon-bookmark"                    then ui_icon_bookmark                   else
      if ic = "ui-icon-tag"                         then ui_icon_tag                        else
      if ic = "ui-icon-home"                        then ui_icon_home                       else
      if ic = "ui-icon-flag"                        then ui_icon_flag                       else
      if ic = "ui-icon-calculator"                  then ui_icon_calculator                 else
      if ic = "ui-icon-cart"                        then ui_icon_cart                       else
      if ic = "ui-icon-pencil"                      then ui_icon_pencil                     else
      if ic = "ui-icon-clock"                       then ui_icon_clock                      else
      if ic = "ui-icon-disk"                        then ui_icon_disk                       else
      if ic = "ui-icon-calendar"                    then ui_icon_calendar                   else
      if ic = "ui-icon-zoomin"                      then ui_icon_zoomin                     else
      if ic = "ui-icon-zoomout"                     then ui_icon_zoomout                    else
      if ic = "ui-icon-search"                      then ui_icon_search                     else
      if ic = "ui-icon-wrench"                      then ui_icon_wrench                     else
      if ic = "ui-icon-gear"                        then ui_icon_gear                       else
      if ic = "ui-icon-heart"                       then ui_icon_heart                      else
      if ic = "ui-icon-star"                        then ui_icon_star                       else
      if ic = "ui-icon-link"                        then ui_icon_link                       else
      if ic = "ui-icon-cancel"                      then ui_icon_cancel                     else
      if ic = "ui-icon-plus"                        then ui_icon_plus                       else
      if ic = "ui-icon-plusthick"                   then ui_icon_plusthick                  else
      if ic = "ui-icon-minus"                       then ui_icon_minus                      else
      if ic = "ui-icon-minusthick"                  then ui_icon_minusthick                 else
      if ic = "ui-icon-close"                       then ui_icon_close                      else
      if ic = "ui-icon-closethick"                  then ui_icon_closethick                 else
      if ic = "ui-icon-key"                         then ui_icon_key                        else
      if ic = "ui-icon-lightbulb"                   then ui_icon_lightbulb                  else
      if ic = "ui-icon-scissors"                    then ui_icon_scissors                   else
      if ic = "ui-icon-clipboard"                   then ui_icon_clipboard                  else
      if ic = "ui-icon-copy"                        then ui_icon_copy                       else
      if ic = "ui-icon-contact"                     then ui_icon_contact                    else
      if ic = "ui-icon-image"                       then ui_icon_image                      else
      if ic = "ui-icon-video"                       then ui_icon_video                      else
      if ic = "ui-icon-script"                      then ui_icon_script                     else
      if ic = "ui-icon-alert"                       then ui_icon_alert                      else
      if ic = "ui-icon-info"                        then ui_icon_info                       else
      if ic = "ui-icon-notice"                      then ui_icon_notice                     else
      if ic = "ui-icon-help"                        then ui_icon_help                       else
      if ic = "ui-icon-check"                       then ui_icon_check                      else
      if ic = "ui-icon-bullet"                      then ui_icon_bullet                     else
      if ic = "ui-icon-radio-off"                   then ui_icon_radio_off                  else
      if ic = "ui-icon-radio-on"                    then ui_icon_radio_on                   else
      if ic = "ui-icon-pin-w"                       then ui_icon_pin_w                      else
      if ic = "ui-icon-pin-s"                       then ui_icon_pin_s                      else
      if ic = "ui-icon-play"                        then ui_icon_play                       else
      if ic = "ui-icon-pause"                       then ui_icon_pause                      else
      if ic = "ui-icon-seek-next"                   then ui_icon_seek_next                  else
      if ic = "ui-icon-seek-prev"                   then ui_icon_seek_prev                  else
      if ic = "ui-icon-seek-end"                    then ui_icon_seek_end                   else
      if ic = "ui-icon-seek-first"                  then ui_icon_seek_first                 else
      if ic = "ui-icon-stop"                        then ui_icon_stop                       else
      if ic = "ui-icon-eject"                       then ui_icon_eject                      else
      if ic = "ui-icon-volume-off"                  then ui_icon_volume_off                 else
      if ic = "ui-icon-volume-on"                   then ui_icon_volume_on                  else
      if ic = "ui-icon-power"                       then ui_icon_power                      else
      if ic = "ui-icon-signal-diag"                 then ui_icon_signal_diag                else
      if ic = "ui-icon-signal"                      then ui_icon_signal                     else
      if ic = "ui-icon-battery-0"                   then ui_icon_battery_0                  else
      if ic = "ui-icon-battery-1"                   then ui_icon_battery_1                  else
      if ic = "ui-icon-battery-2"                   then ui_icon_battery_2                  else
      if ic = "ui-icon-battery-3"                   then ui_icon_battery_3                  else
      if ic = "ui-icon-circle-plus"                 then ui_icon_circle_plus                else
      if ic = "ui-icon-circle-minus"                then ui_icon_circle_minus               else
      if ic = "ui-icon-circle-close"                then ui_icon_circle_close               else
      if ic = "ui-icon-circle-triangle-e"           then ui_icon_circle_triangle_e          else
      if ic = "ui-icon-circle-triangle-s"           then ui_icon_circle_triangle_s          else
      if ic = "ui-icon-circle-triangle-w"           then ui_icon_circle_triangle_w          else
      if ic = "ui-icon-circle-triangle-n"           then ui_icon_circle_triangle_n          else
      if ic = "ui-icon-circle-arrow-e"              then ui_icon_circle_arrow_e             else
      if ic = "ui-icon-circle-arrow-s"              then ui_icon_circle_arrow_s             else
      if ic = "ui-icon-circle-arrow-w"              then ui_icon_circle_arrow_w             else
      if ic = "ui-icon-circle-arrow-n"              then ui_icon_circle_arrow_n             else
      if ic = "ui-icon-circle-zoomin"               then ui_icon_circle_zoomin              else
      if ic = "ui-icon-circle-zoomout"              then ui_icon_circle_zoomout             else
      if ic = "ui-icon-circle-check"                then ui_icon_circle_check               else
      if ic = "ui-icon-circlesmall-plus"            then ui_icon_circlesmall_plus           else
      if ic = "ui-icon-circlesmall-minus"           then ui_icon_circlesmall_minus          else
      if ic = "ui-icon-circlesmall-close"           then ui_icon_circlesmall_close          else
      if ic = "ui-icon-squaresmall-plus"            then ui_icon_squaresmall_plus           else
      if ic = "ui-icon-squaresmall-minus"           then ui_icon_squaresmall_minus          else
      if ic = "ui-icon-squaresmall-close"           then ui_icon_squaresmall_close          else
      if ic = "ui-icon-grip-dotted-vertical"        then ui_icon_grip_dotted_vertical       else
      if ic = "ui-icon-grip-dotted-horizontal"      then ui_icon_grip_dotted_horizontal     else
      if ic = "ui-icon-grip-solid-vertical"         then ui_icon_grip_solid_vertical        else
      if ic = "ui-icon-grip-solid-horizontal"       then ui_icon_grip_solid_horizontal      else
      if ic = "ui-icon-gripsmall-diagonal-se"       then ui_icon_gripsmall_diagonal_se      else
      if ic = "ui-icon-grip-diagonal-se"            then ui_icon_grip_diagonal_se           else
      if ic = ""                                    then jq_icon_none                       else
        jq_custom_icon(ic)
  .