diff --git a/app-v2/assets/icons.css b/app-v2/assets/icons.css index ca9a054..f6dcf88 100644 --- a/app-v2/assets/icons.css +++ b/app-v2/assets/icons.css @@ -1,685 +1,585 @@ .icon-domain-story-person::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "perm_identity"; - */ + /* renamed from original Material Icons name: "perm_identity" */ } .icon-domain-story-group::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "group"; - */ } .icon-domain-story-system::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "computer"; - */ + /* renamed from original Material Icons name: "computer" */ } .icon-domain-story-how-to-reg::before { content: url('data:image/svg+xml;utf8,'); - /* font:"Material-Icons"; - icon_name: "how_to_reg"; - */ } .icon-domain-story-document::before { content: url('data:image/svg+xml;utf8,'); - /* font:"Material Icons"; - icon_name: "description"; - */ + /* renamed from original Material Icons name: "description" */ } .icon-domain-story-folder::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "folder"; - */ } .icon-domain-story-call::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - content:"phone"; - */ + /* renamed from original Material Icons name: "phone" */ } .icon-domain-story-email::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "alternate_email"; - */ + /* renamed from original Material Icons name: "alternate_email" */ } .icon-domain-story-conversation::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "chat_bubble_outline"; - */ + /* renamed from original Material Icons name: "chat_bubble_outline" */ } .icon-domain-story-info::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "info"; - */ } .icon-domain-story-tool-group::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "crop_5_4"; - */ + /* renamed from original Material Icons name: "crop_5_4" */ } .icon-domain-story-changeDirection::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "swap_horiz"; - */ + /* renamed from original Material Icons name: "swap_horiz" */ } .icon-domain-story-spellcheck::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "spellcheck"; - */ } .icon-domain-story-color-picker::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "color_lens"; - */ + /* renamed from original Material Icons name: "color_lens" */ } .icon-domain-story-flag::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "flag"; - */ } .icon-domain-story-printer::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "print"; - */ + /* renamed from original Material Icons name: "print" */ } .icon-domain-story-euro::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "euro_symbol"; - */ + /* renamed from original Material Icons name: "euro_symbol" */ } .icon-domain-story-courthouse::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "account_balance"; - */ + /* renamed from original Material Icons name: "account_balance" */ } .icon-domain-story-alarm::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "alarm"; - */ } .icon-domain-story-wrench::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "build"; - */ + /* renamed from original Material Icons name: "build" */ } .icon-domain-story-commute::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "commute"; - */ } .icon-domain-story-copyright::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "copyright"; - */ } .icon-domain-story-circle-arrows::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "cached"; - */ + /* renamed from original Material Icons name: "cached" */ } .icon-domain-story-receipt::before { content: url('data:image/svg+xml;utf-8,'); - /* font:"Material Icons"; - icon_name:"receipt"; - */ } .icon-domain-story-calendar::before { content: url('data:image/svg+xml;utf6,'); - /* font:"Material Icons"; - icon_name: "today"; - */ + /* renamed from original Material Icons name: "today" */ } .icon-domain-story-label::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material-Icons"; - icon_name: "label"; - */ } .icon-domain-story-credit-card::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "credit_card"; - */ } .icon-domain-story-dns::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "dns"; - */ } .icon-domain-story-grid::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "grid_on"; - */ + /* font: "Material Icons" icon_name: "grid_on" */ } .icon-domain-story-favorite::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "favorite_border"; - */ + /* renamed from original Material Icons name: "favorite_border" */ } .icon-domain-story-gavel::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "gavel"; - */ } .icon-domain-story-blind::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "group_work"; - */ + /* renamed from original Material Icons name: "group_work" */ } .icon-domain-story-hourglass::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "hourglass_empty"; - */ + /* renamed from original Material Icons name: "hourglass_empty" */ } .icon-domain-story-world::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "public"; - */ + /* renamed from original Material Icons name: "public" */ } .icon-domain-story-motorcycle::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "motorcycle"; - */ } .icon-domain-story-pet::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "pet"; - */ + /* renamed from original Material Icons name: "pets" */ } .icon-domain-story-time::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "schedule"; - */ + /* renamed from original Material Icons name: "schedule" */ } .icon-domain-story-search::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "search"; - */ } .icon-domain-story-settings::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "settings"; - */ } .icon-domain-story-cellphone::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "settings_cell"; - */ + /* renamed from original Material Icons name: "settings_cell" */ } .icon-domain-story-shopping::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "shopping_cart"; - */ } .icon-domain-story-store::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "store"; - */ } .icon-domain-story-theater::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "theaters"; - */ + /* renamed from original Material Icons name: "theaters" */ } .icon-domain-story-thumb-up::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "thumb_up"; - */ } .icon-domain-story-thumb-down::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "thumb_down"; - */ } .icon-domain-story-thumb-up-down::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "thumbs_up_down"; - */ } .icon-domain-story-update::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "update"; - */ } .icon-domain-story-briefcase::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "work_outline"; - */ + /* renamed from original Material Icons name: "work_outline" */ } .icon-domain-story-microphone::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "mic_none"; - */ + /* renamed from original Material Icons name: "mic_none" */ } .icon-domain-story-business::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "business"; - */ } .icon-domain-story-signal::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "rss_feed"; - */ + /* renamed from original Material Icons name: "rss_feed" */ } .icon-domain-story-key::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "vpn_key"; - */ + /* renamed from original Material Icons name: "vpn_key" */ } .icon-domain-story-pencil::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "create"; - */ + /* renamed from original Material Icons name: "create" */ } .icon-domain-story-couch::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "weekend"; - */ + /* renamed from original Material Icons name: "weekend" */ } .icon-domain-story-water::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "waves"; - */ + /* renamed from original Material Icons name: "waves" */ } .icon-domain-story-attach::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "attach_file"; - */ + /* renamed from original Material Icons name: "attach_file" */ } .icon-domain-story-dollar::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "attach_money"; - */ + /* renamed from original Material Icons name: "attach_money" */ } .icon-domain-story-sum::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "functions"; - */ + /* renamed from original Material Icons name: "functions" */ } .icon-domain-story-headset::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "headset_mic"; - */ + /* renamed from original Material Icons name: "headset_mic" */ } .icon-domain-story-keyboard::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "keyboard"; - */ } .icon-domain-story-mouse::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "mouse"; - */ } .icon-domain-story-router::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "router"; - */ } .icon-domain-story-scanner::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "scanner"; - */ } .icon-domain-story-security::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "security"; - */ } .icon-domain-story-tv::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "tv"; - */ } .icon-domain-story-watch::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "watch"; - */ } .icon-domain-story-ruler::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "straighten"; - */ + /* renamed from original Material Icons name: "straighten" */ } .icon-domain-story-car::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "directions_car"; - */ + /* renamed from original Material Icons name: "directions_car" */ } .icon-domain-story-bus::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "directions_bus"; - */ + /* renamed from original Material Icons name: "directions_bus" */ } .icon-domain-story-train::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "train"; - */ } .icon-domain-story-hotel::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "hotel"; - */ } .icon-domain-story-dining::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "local_dining"; - */ + /* renamed from original Material Icons name: "local_dining" */ } .icon-domain-story-gas-station::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "local_gas_station"; - */ + /* renamed from original Material Icons name: "local_gas_station" */ } .icon-domain-story-truck::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "local_shipping"; - */ + /* renamed from original Material Icons name: "local_shipping" */ } .icon-domain-story-taxi::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "local_taxi"; - */ + /* renamed from original Material Icons name: "local_taxi" */ } .icon-domain-story-education::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "school"; - */ + /* renamed from original Material Icons name: "school" */ } .icon-domain-story-meeting-room::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "meeting_room"; - */ } .icon-domain-story-bike::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "directions_bike"; - */ + /* renamed from original Material Icons name: "directions_bike" */ } .icon-domain-story-boat::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "directions_boat"; - */ + /* renamed from original Material Icons name: "directions_boat" */ } .icon-domain-story-walking::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "directions_walk"; - */ + /* renamed from original Material Icons name: "directions_walk" */ } .icon-domain-story-traffic::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "traffic"; - */ } .icon-domain-story-plane::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "flight"; - */ + /* renamed from original Material Icons name: "flight" */ } .icon-domain-story-shuttle::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "airport_shuttle"; - */ + /* renamed from original Material Icons name: "airport_shuttle" */ } .icon-domain-story-flight-takeoff::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "flight_takeoff"; - */ } .icon-domain-story-flight-landing::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "flight_land"; - */ + /* renamed from original Material Icons name: "flight_land" */ } .icon-domain-story-video::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "video_label"; - */ + /* renamed from original Material Icons name: "video_label" */ } .icon-domain-story-desktop::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "desktop_windows"; - */ + /* renamed from original Material Icons name: "desktop_windows" */ } .icon-domain-story-speaker-phone::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "speaker_phone"; - */ } .icon-domain-story-tablet::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "tablet_android"; - */ + /* renamed from original Material Icons name: "tablet_android" */ } .icon-domain-story-cloud::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "cloud"; - */ } .icon-domain-story-assessment::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "assessment"; - */ } .icon-domain-story-dashboard::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "dashboard"; - */ } .icon-domain-story-pie-chart::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "pie_chart"; - */ } .icon-domain-story-insert-chart::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "insert_chart"; - */ } .icon-domain-story-picture-as-pdf::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "picture_as_pdf"; - */ } .icon-domain-story-view-list::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "view_list"; - */ } .icon-domain-story-problem::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "report_problem"; - */ + /* renamed from original Material Icons name: "report_problem" */ } .icon-domain-story-place::before { content: url('data:image/svg+xml;utf8,'); - /* font: "Material Icons"; - icon_name: "place"; - */ +} + +.icon-domain-story-accessible::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-account-circle::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-assignment::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-battery::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-book::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-bug::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "bug_report" */ +} + +.icon-domain-story-change-history::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-check-circle::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-crop::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-code::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-dvr::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-error::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "error_outline" */ +} + +.icon-domain-story-extension::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-face::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-fastfood::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-fingerprint::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-hand::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "pan_tool" */ +} + +.icon-domain-story-help::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "help_outline" */ +} + +.icon-domain-story-image::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-lightbulb::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-lock::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-picture-in-picture::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-portrait::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-rocket::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-satellite::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "satellite_alt" */ +} + +.icon-domain-story-share::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-slideshow::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-star::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "star_outline" */ +} + +.icon-domain-story-sun::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "wb_sunny" */ +} + +.icon-domain-story-table::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "table_restaurant" */ +} + +.icon-domain-story-videocam::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-wysiwyg::before { + content: url('data:image/svg+xml;utf8,'); +} + +.icon-domain-story-contact-mail::before { + content: url('data:image/svg+xml;utf8,'); + /* renamed from original Material Icons name: "contact_mail" */ } diff --git a/app-v2/assets/logo/edit_blue.png b/app-v2/assets/logo/edit_blue.png deleted file mode 100644 index 50d432d..0000000 Binary files a/app-v2/assets/logo/edit_blue.png and /dev/null differ diff --git a/app-v2/index.html b/app-v2/index.html index c2a20d1..beaafd1 100644 --- a/app-v2/index.html +++ b/app-v2/index.html @@ -10,7 +10,7 @@ - + - + diff --git a/app-v2/main.280af988d52fee80.js b/app-v2/main.df56d47d7ad7cc8a.js similarity index 99% rename from app-v2/main.280af988d52fee80.js rename to app-v2/main.df56d47d7ad7cc8a.js index c542a09..96f6c72 100644 --- a/app-v2/main.280af988d52fee80.js +++ b/app-v2/main.df56d47d7ad7cc8a.js @@ -63593,21 +63593,23 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ AppComponent: () => (/* binding */ AppComponent) /* harmony export */ }); -/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 95981); +/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ 95981); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../environments/environment */ 45312); -/* harmony import */ var ngx_color_picker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-color-picker */ 54743); +/* harmony import */ var ngx_color_picker__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-color-picker */ 54743); /* harmony import */ var _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./domain/entities/constants */ 40550); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 2978); +/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 2978); /* harmony import */ var src_app_workbench_services_settings_settings_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/workbench/services/settings/settings.service */ 1299); /* harmony import */ var _tools_title_services_title_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tools/title/services/title.service */ 41535); /* harmony import */ var _tools_export_services_export_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tools/export/services/export.service */ 39595); /* harmony import */ var _tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tools/autosave/services/autosave.service */ 41707); -/* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/snack-bar */ 93289); +/* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/snack-bar */ 93289); /* harmony import */ var _tools_replay_services_replay_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tools/replay/services/replay.service */ 3687); -/* harmony import */ var _workbench_presentation_header_header_header_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./workbench/presentation/header/header/header.component */ 38361); -/* harmony import */ var _workbench_presentation_settings_settings_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./workbench/presentation/settings/settings.component */ 45263); -/* harmony import */ var _tools_modeler_presentation_modeler_modeler_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tools/modeler/presentation/modeler/modeler.component */ 87286); -/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 56610); +/* harmony import */ var _tools_modeler_services_modeler_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tools/modeler/services/modeler.service */ 40439); +/* harmony import */ var _workbench_presentation_header_header_header_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./workbench/presentation/header/header/header.component */ 38361); +/* harmony import */ var _workbench_presentation_settings_settings_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./workbench/presentation/settings/settings.component */ 45263); +/* harmony import */ var _tools_import_directive_dragDrop_directive__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tools/import/directive/dragDrop.directive */ 42482); +/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 56610); + @@ -63626,25 +63628,26 @@ __webpack_require__.r(__webpack_exports__); function AppComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) { - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](0, "app-settings"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](0, "app-settings"); } } let AppComponent = /*#__PURE__*/(() => { class AppComponent { - constructor(settingsService, titleService, exportService, autosaveService, cd, snackbar, replayService) { + constructor(settingsService, titleService, exportService, autosaveService, cd, snackbar, replayService, modelerService) { this.settingsService = settingsService; this.titleService = titleService; this.exportService = exportService; this.autosaveService = autosaveService; this.cd = cd; this.snackbar = snackbar; + this.modelerService = modelerService; this.version = _environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.version; this.color = _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.BLACK; this.skipNextColorUpdate = false; // define preset colors that have good contrast on white background and are compatible to EventStorming notation this.colorBox = [_domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.YELLOW, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.ORANGE, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.RED, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.LIGHT_PINK, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.DARK_PINK, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.PURPLE, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.BLUE, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.CYAN, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.GREEN, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.LIME, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.GREY, _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.BLACK]; - this.showSettings$ = new rxjs__WEBPACK_IMPORTED_MODULE_11__.BehaviorSubject(false); - this.showDescription$ = new rxjs__WEBPACK_IMPORTED_MODULE_11__.BehaviorSubject(true); + this.showSettings$ = new rxjs__WEBPACK_IMPORTED_MODULE_12__.BehaviorSubject(false); + this.showDescription$ = new rxjs__WEBPACK_IMPORTED_MODULE_12__.BehaviorSubject(true); document.addEventListener('keydown', e => { if (e.ctrlKey && e.key === 's') { e.preventDefault(); @@ -63688,12 +63691,13 @@ let AppComponent = /*#__PURE__*/(() => { }); document.addEventListener('errorColoringOnlySvg', () => { this.snackbar.open('Only SVG icons can be colored', undefined, { - duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.SNACKBAR_DURATION * 2, + duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.SNACKBAR_DURATION_LONG, panelClass: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.SNACKBAR_INFO }); }); } ngOnInit() { + this.modelerService.postInit(); this.showDescription$ = this.titleService.showDescription$; this.showSettings$ = this.settingsService.showSettings$; } @@ -63713,93 +63717,93 @@ let AppComponent = /*#__PURE__*/(() => { this.cd.detectChanges(); } static #_ = this.ɵfac = function AppComponent_Factory(t) { - return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_workbench_services_settings_settings_service__WEBPACK_IMPORTED_MODULE_2__.SettingsService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_tools_title_services_title_service__WEBPACK_IMPORTED_MODULE_3__.TitleService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_tools_export_services_export_service__WEBPACK_IMPORTED_MODULE_4__.ExportService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_5__.AutosaveService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_10__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_12__.MatSnackBar), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_tools_replay_services_replay_service__WEBPACK_IMPORTED_MODULE_6__.ReplayService)); + return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_workbench_services_settings_settings_service__WEBPACK_IMPORTED_MODULE_2__.SettingsService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_tools_title_services_title_service__WEBPACK_IMPORTED_MODULE_3__.TitleService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_tools_export_services_export_service__WEBPACK_IMPORTED_MODULE_4__.ExportService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_5__.AutosaveService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_11__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__.MatSnackBar), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_tools_replay_services_replay_service__WEBPACK_IMPORTED_MODULE_6__.ReplayService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_tools_modeler_services_modeler_service__WEBPACK_IMPORTED_MODULE_7__.ModelerService)); }; - static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({ + static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app-root"]], viewQuery: function AppComponent_Query(rf, ctx) { if (rf & 1) { - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵviewQuery"](ngx_color_picker__WEBPACK_IMPORTED_MODULE_13__.ColorPickerDirective, 5); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵviewQuery"](ngx_color_picker__WEBPACK_IMPORTED_MODULE_14__.ColorPickerDirective, 5); } if (rf & 2) { let _t; - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵloadQuery"]()) && (ctx.colorPicker = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵloadQuery"]()) && (ctx.colorPicker = _t.first); } }, decls: 36, vars: 40, - consts: [["role", "main", 1, "content"], ["id", "colorPicker", 2, "display", "none", "height", "0", 3, "colorPickerChange", "colorPickerClose", "cpPresetColors", "colorPicker"], ["src", "favicon.ico", "height", "24", "alt", "Egon Logo"], ["href", "https://egon.io", "target", "_blank"], ["href", "https://egon.io/changelog", "target", "_blank"], ["src", "assets/logo/wps-icon.ico", "height", "24", "alt", "WPS Logo"], ["href", "https://www.wps.de/", "target", "_blank"], ["href", "https://www.wps.de/datenschutz/", "target", "_blank"], ["href", "https://www.wps.de/impressum/", "target", "_blank"]], + consts: [["role", "main", 1, "content"], ["id", "colorPicker", 2, "display", "none", "height", "0", 3, "colorPickerChange", "colorPickerClose", "cpPresetColors", "colorPicker"], ["appDrag", "", "id", "canvas"], ["src", "favicon.ico", "height", "24", "alt", "Egon Logo"], ["href", "https://egon.io", "target", "_blank"], ["href", "https://egon.io/changelog", "target", "_blank"], ["src", "assets/logo/wps-icon.ico", "height", "24", "alt", "WPS Logo"], ["href", "https://www.wps.de/", "target", "_blank"], ["href", "https://www.wps.de/datenschutz/", "target", "_blank"], ["href", "https://www.wps.de/impressum/", "target", "_blank"]], template: function AppComponent_Template(rf, ctx) { if (rf & 1) { - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "input", 1); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtwoWayListener"]("colorPickerChange", function AppComponent_Template_input_colorPickerChange_1_listener($event) { - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtwoWayBindingSet"](ctx.color, $event) || (ctx.color = $event); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 0)(1, "input", 1); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayListener"]("colorPickerChange", function AppComponent_Template_input_colorPickerChange_1_listener($event) { + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayBindingSet"](ctx.color, $event) || (ctx.color = $event); return $event; }); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("colorPickerClose", function AppComponent_Template_input_colorPickerClose_1_listener($event) { + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("colorPickerClose", function AppComponent_Template_input_colorPickerClose_1_listener($event) { return ctx.onColorChanged($event); }); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, AppComponent_Conditional_2_Template, 1, 0, "app-settings"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](5, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](6, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](7, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](8, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](9, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](10, "app-header"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](11, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](12, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](13, "app-modeler"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](14, "div"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](15, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](16, "async"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](17, "span"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](18, "img", 2); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](19, "a", 3); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](20, " egon.io"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](21, "span"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](22, "version: "); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](23, "a", 4); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](24); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](25, "span"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](26, "by "); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](27, "img", 5); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](28, "a", 6); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](29, "WPS"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()(); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](30, "span")(31, "a", 7); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](32, "Privacy"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()(); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](33, "span")(34, "a", 8); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](35, "Imprint"); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()(); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](2, AppComponent_Conditional_2_Template, 1, 0, "app-settings"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](3, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "div"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](5, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](6, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](7, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](8, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](9, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](10, "app-header"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](11, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](12, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](13, "div", 2); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](14, "div"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](15, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](16, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](17, "span"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](18, "img", 3); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](19, "a", 4); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](20, " egon.io"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](21, "span"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](22, "version: "); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](23, "a", 5); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](24); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](25, "span"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](26, "by "); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](27, "img", 6); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](28, "a", 7); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](29, "WPS"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](30, "span")(31, "a", 8); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](32, "Privacy"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](33, "span")(34, "a", 9); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](35, "Imprint"); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()(); } if (rf & 2) { - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵstyleProp"]("background", ctx.color); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("cpPresetColors", ctx.colorBox); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtwoWayProperty"]("colorPicker", ctx.color); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](2, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 20, ctx.showSettings$) ? 2 : -1); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("headerAndCanvas", !_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](5, 22, ctx.showSettings$) && _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](6, 24, ctx.showDescription$))("headerAndCanvasCollapsed", !_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](7, 26, ctx.showSettings$) && !_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](8, 28, ctx.showDescription$))("hidden", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](9, 30, ctx.showSettings$)); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("header", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](11, 32, ctx.showDescription$))("headerCollapsed", !_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](12, 34, ctx.showDescription$)); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassProp"]("logoContainer", !_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](15, 36, ctx.showSettings$))("hidden", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](16, 38, ctx.showSettings$)); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10); - _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](ctx.version); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵstyleProp"]("background", ctx.color); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("cpPresetColors", ctx.colorBox); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtwoWayProperty"]("colorPicker", ctx.color); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵconditional"](2, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](3, 20, ctx.showSettings$) ? 2 : -1); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("headerAndCanvas", !_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](5, 22, ctx.showSettings$) && _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](6, 24, ctx.showDescription$))("headerAndCanvasCollapsed", !_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](7, 26, ctx.showSettings$) && !_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](8, 28, ctx.showDescription$))("hidden", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](9, 30, ctx.showSettings$)); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("header", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](11, 32, ctx.showDescription$))("headerCollapsed", !_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](12, 34, ctx.showDescription$)); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("logoContainer", !_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](15, 36, ctx.showSettings$))("hidden", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](16, 38, ctx.showSettings$)); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](10); + _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx.version); } }, - dependencies: [ngx_color_picker__WEBPACK_IMPORTED_MODULE_13__.ColorPickerDirective, _workbench_presentation_header_header_header_component__WEBPACK_IMPORTED_MODULE_7__.HeaderComponent, _workbench_presentation_settings_settings_component__WEBPACK_IMPORTED_MODULE_8__.SettingsComponent, _tools_modeler_presentation_modeler_modeler_component__WEBPACK_IMPORTED_MODULE_9__.ModelerComponent, _angular_common__WEBPACK_IMPORTED_MODULE_14__.AsyncPipe], + dependencies: [ngx_color_picker__WEBPACK_IMPORTED_MODULE_14__.ColorPickerDirective, _workbench_presentation_header_header_header_component__WEBPACK_IMPORTED_MODULE_8__.HeaderComponent, _workbench_presentation_settings_settings_component__WEBPACK_IMPORTED_MODULE_9__.SettingsComponent, _tools_import_directive_dragDrop_directive__WEBPACK_IMPORTED_MODULE_10__.DragDirective, _angular_common__WEBPACK_IMPORTED_MODULE_15__.AsyncPipe], styles: [".content[_ngcontent-%COMP%] {\n height: 100%;\n overflow: hidden;\n}\n\n\n\n.headerAndCanvas[_ngcontent-%COMP%] {\n height: 100%;\n width: 100%;\n display: grid;\n grid-template-rows: min-content auto;\n overflow: hidden;\n}\n\n.headerAndCanvasCollapsed[_ngcontent-%COMP%] {\n height: 100%;\n width: 100%;\n display: grid;\n grid-template-rows: min-content auto;\n overflow: hidden;\n}\n\n.settings[_ngcontent-%COMP%] {\n height: 100%;\n}\n\n.header[_ngcontent-%COMP%] {\n display: grid;\n grid-template-rows: min-content 155px;\n}\n\n\n\n.logoContainer[_ngcontent-%COMP%] {\n display: flex;\n position: absolute;\n bottom: 0;\n right: 100px;\n align-items: flex-end;\n}\n.logoContainer[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n margin-left: 16px;\n margin-bottom: 14px;\n align-items: center;\n}\n\n.hidden[_ngcontent-%COMP%] {\n height: 1px;\n width: 1px;\n}\n\n#wrapper[_ngcontent-%COMP%] {\n padding: 16px;\n min-height: 100%;\n height: 100%;\n box-sizing: border-box; \n\n}\n\n#tab-group[_ngcontent-%COMP%] {\n height: 100%;\n}\n\n#tab-group[_ngcontent-%COMP%] mat-tab-body[_ngcontent-%COMP%] {\n flex-grow: 1;\n}\n\n.mat-button-toggle-label-content[_ngcontent-%COMP%] {\n font-size: 10pt !important;\n padding: 0 5px !important;\n line-height: inherit !important;\n}\n\n .mdc-text-field--filled:not(.mdc-text-field--disabled) {\n background-color: white;\n}\n\nspan[_ngcontent-%COMP%] *[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\nspan[_ngcontent-%COMP%] {\n height: 24px;\n}"] }); } @@ -63819,19 +63823,19 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ AppModule: () => (/* binding */ AppModule) /* harmony export */ }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/core */ 2978); -/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @angular/platform-browser */ 76098); -/* harmony import */ var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/material/checkbox */ 63422); -/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7573); +/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @angular/core */ 2978); +/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @angular/platform-browser */ 76098); +/* harmony import */ var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @angular/material/checkbox */ 63422); +/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7573); /* harmony import */ var src_app_app_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/app.component */ 20092); /* harmony import */ var src_app_tools_import_services_import_domain_story_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/tools/import/services/import-domain-story.service */ 93586); /* harmony import */ var src_app_tools_label_dictionary_services_label_dictionary_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/tools/label-dictionary/services/label-dictionary.service */ 69731); /* harmony import */ var src_app_domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/domain/services/element-registry.service */ 85511); /* harmony import */ var src_app_tools_icon_set_config_services_icon_set_configuration_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/tools/icon-set-config/services/icon-set-configuration.service */ 46527); -/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @angular/forms */ 37222); +/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/forms */ 37222); /* harmony import */ var src_app_tools_icon_set_config_services_icon_dictionary_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/tools/icon-set-config/services/icon-dictionary.service */ 6932); /* harmony import */ var _material_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./material.module */ 89439); -/* harmony import */ var ngx_color_picker__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ngx-color-picker */ 54743); +/* harmony import */ var ngx_color_picker__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ngx-color-picker */ 54743); /* harmony import */ var _domain_services_dirty_flag_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./domain/services/dirty-flag.service */ 94658); /* harmony import */ var _tools_icon_set_config_services_icon_set_customization_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tools/icon-set-config/services/icon-set-customization.service */ 46252); /* harmony import */ var _tools_modeler_bpmn_modeler_context_pad_domainStoryContextPadProvider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tools/modeler/bpmn/modeler/context-pad/domainStoryContextPadProvider */ 57218); @@ -63850,7 +63854,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _tools_label_dictionary_presentation_label_dictionary_module__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./tools/label-dictionary/presentation/label-dictionary.module */ 10462); /* harmony import */ var _tools_modeler_presentation_modeler_module__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tools/modeler/presentation/modeler.module */ 71638); /* harmony import */ var _tools_title_presentation_title_module__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tools/title/presentation/title.module */ 80302); -/* harmony import */ var _tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./tools/autosave/services/autosave.service */ 41707); +/* harmony import */ var _tools_import_directive_dragDrop_directive__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./tools/import/directive/dragDrop.directive */ 42482); +/* harmony import */ var _tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./tools/autosave/services/autosave.service */ 41707); + @@ -63897,19 +63903,19 @@ let AppModule = /*#__PURE__*/(() => { app.bootstrap(src_app_app_component__WEBPACK_IMPORTED_MODULE_0__.AppComponent); } static #_ = this.ɵfac = function AppModule_Factory(t) { - return new (t || AppModule)(_angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵinject"](_tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_25__.AutosaveService)); + return new (t || AppModule)(_angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵinject"](_tools_autosave_services_autosave_service__WEBPACK_IMPORTED_MODULE_26__.AutosaveService)); }; - static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdefineNgModule"]({ + static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵdefineNgModule"]({ type: AppModule }); - static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdefineInjector"]({ - providers: [_angular_forms__WEBPACK_IMPORTED_MODULE_27__.UntypedFormBuilder, { - provide: _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_28__.MAT_CHECKBOX_DEFAULT_OPTIONS, + static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵdefineInjector"]({ + providers: [_angular_forms__WEBPACK_IMPORTED_MODULE_28__.UntypedFormBuilder, { + provide: _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_29__.MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } }, { - provide: _angular_core__WEBPACK_IMPORTED_MODULE_26__.APP_INITIALIZER, + provide: _angular_core__WEBPACK_IMPORTED_MODULE_27__.APP_INITIALIZER, useFactory: initialize, multi: true, deps: [_domain_services_dirty_flag_service__WEBPACK_IMPORTED_MODULE_7__.DirtyFlagService, src_app_tools_icon_set_config_services_icon_dictionary_service__WEBPACK_IMPORTED_MODULE_5__.IconDictionaryService, src_app_tools_icon_set_config_services_icon_set_configuration_service__WEBPACK_IMPORTED_MODULE_4__.IconSetConfigurationService, src_app_domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_3__.ElementRegistryService, src_app_tools_label_dictionary_services_label_dictionary_service__WEBPACK_IMPORTED_MODULE_2__.LabelDictionaryService] @@ -63917,15 +63923,15 @@ let AppModule = /*#__PURE__*/(() => { provide: _tools_icon_set_config_services_icon_set_customization_service__WEBPACK_IMPORTED_MODULE_8__.IconSetChangedService, useExisting: src_app_tools_import_services_import_domain_story_service__WEBPACK_IMPORTED_MODULE_1__.ImportDomainStoryService }], - imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_29__.BrowserModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_30__.NoopAnimationsModule, _material_module__WEBPACK_IMPORTED_MODULE_6__.MaterialModule, ngx_color_picker__WEBPACK_IMPORTED_MODULE_31__.ColorPickerModule, _workbench_presentation_workbench_module__WEBPACK_IMPORTED_MODULE_16__.WorkbenchModule, _tools_autosave_presentation_autosave_module__WEBPACK_IMPORTED_MODULE_18__.AutosaveModule, _tools_export_presentation_export_module__WEBPACK_IMPORTED_MODULE_19__.ExportModule, _tools_icon_set_config_presentation_icon_set_config_module__WEBPACK_IMPORTED_MODULE_20__.IconSetConfigModule, _tools_import_presentation_import_module__WEBPACK_IMPORTED_MODULE_21__.ImportModule, _tools_label_dictionary_presentation_label_dictionary_module__WEBPACK_IMPORTED_MODULE_22__.LabelDictionaryModule, _tools_modeler_presentation_modeler_module__WEBPACK_IMPORTED_MODULE_23__.ModelerModule, _tools_title_presentation_title_module__WEBPACK_IMPORTED_MODULE_24__.TitleModule, _domain_presentation_domain_module__WEBPACK_IMPORTED_MODULE_17__.DomainModule] + imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_30__.BrowserModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_31__.NoopAnimationsModule, _material_module__WEBPACK_IMPORTED_MODULE_6__.MaterialModule, ngx_color_picker__WEBPACK_IMPORTED_MODULE_32__.ColorPickerModule, _workbench_presentation_workbench_module__WEBPACK_IMPORTED_MODULE_16__.WorkbenchModule, _tools_autosave_presentation_autosave_module__WEBPACK_IMPORTED_MODULE_18__.AutosaveModule, _tools_export_presentation_export_module__WEBPACK_IMPORTED_MODULE_19__.ExportModule, _tools_icon_set_config_presentation_icon_set_config_module__WEBPACK_IMPORTED_MODULE_20__.IconSetConfigModule, _tools_import_presentation_import_module__WEBPACK_IMPORTED_MODULE_21__.ImportModule, _tools_label_dictionary_presentation_label_dictionary_module__WEBPACK_IMPORTED_MODULE_22__.LabelDictionaryModule, _tools_modeler_presentation_modeler_module__WEBPACK_IMPORTED_MODULE_23__.ModelerModule, _tools_title_presentation_title_module__WEBPACK_IMPORTED_MODULE_24__.TitleModule, _domain_presentation_domain_module__WEBPACK_IMPORTED_MODULE_17__.DomainModule] }); } return AppModule; })(); (function () { - (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵsetNgModuleScope"](AppModule, { + (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_27__["ɵɵsetNgModuleScope"](AppModule, { declarations: [src_app_app_component__WEBPACK_IMPORTED_MODULE_0__.AppComponent], - imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_29__.BrowserModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_30__.NoopAnimationsModule, _material_module__WEBPACK_IMPORTED_MODULE_6__.MaterialModule, ngx_color_picker__WEBPACK_IMPORTED_MODULE_31__.ColorPickerModule, _workbench_presentation_workbench_module__WEBPACK_IMPORTED_MODULE_16__.WorkbenchModule, _tools_autosave_presentation_autosave_module__WEBPACK_IMPORTED_MODULE_18__.AutosaveModule, _tools_export_presentation_export_module__WEBPACK_IMPORTED_MODULE_19__.ExportModule, _tools_icon_set_config_presentation_icon_set_config_module__WEBPACK_IMPORTED_MODULE_20__.IconSetConfigModule, _tools_import_presentation_import_module__WEBPACK_IMPORTED_MODULE_21__.ImportModule, _tools_label_dictionary_presentation_label_dictionary_module__WEBPACK_IMPORTED_MODULE_22__.LabelDictionaryModule, _tools_modeler_presentation_modeler_module__WEBPACK_IMPORTED_MODULE_23__.ModelerModule, _tools_title_presentation_title_module__WEBPACK_IMPORTED_MODULE_24__.TitleModule, _domain_presentation_domain_module__WEBPACK_IMPORTED_MODULE_17__.DomainModule] + imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_30__.BrowserModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_31__.NoopAnimationsModule, _material_module__WEBPACK_IMPORTED_MODULE_6__.MaterialModule, ngx_color_picker__WEBPACK_IMPORTED_MODULE_32__.ColorPickerModule, _workbench_presentation_workbench_module__WEBPACK_IMPORTED_MODULE_16__.WorkbenchModule, _tools_autosave_presentation_autosave_module__WEBPACK_IMPORTED_MODULE_18__.AutosaveModule, _tools_export_presentation_export_module__WEBPACK_IMPORTED_MODULE_19__.ExportModule, _tools_icon_set_config_presentation_icon_set_config_module__WEBPACK_IMPORTED_MODULE_20__.IconSetConfigModule, _tools_import_presentation_import_module__WEBPACK_IMPORTED_MODULE_21__.ImportModule, _tools_label_dictionary_presentation_label_dictionary_module__WEBPACK_IMPORTED_MODULE_22__.LabelDictionaryModule, _tools_modeler_presentation_modeler_module__WEBPACK_IMPORTED_MODULE_23__.ModelerModule, _tools_title_presentation_title_module__WEBPACK_IMPORTED_MODULE_24__.TitleModule, _domain_presentation_domain_module__WEBPACK_IMPORTED_MODULE_17__.DomainModule, _tools_import_directive_dragDrop_directive__WEBPACK_IMPORTED_MODULE_25__.DragDirective] }); })(); function initialize(dirtyFlagService, iconDictionaryService, configurationService, elementRegistryService, labelDictionaryService) { @@ -63973,7 +63979,7 @@ class Configuration { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ APPENDED_ICONS_TAG: () => (/* binding */ APPENDED_ICONS_TAG), +/* harmony export */ APPENDED_ICONS_KEY: () => (/* binding */ APPENDED_ICONS_KEY), /* harmony export */ BLACK: () => (/* binding */ BLACK), /* harmony export */ BLUE: () => (/* binding */ BLUE), /* harmony export */ CYAN: () => (/* binding */ CYAN), @@ -63981,9 +63987,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ DEFAULT_AUTOSAVES_ENABLED: () => (/* binding */ DEFAULT_AUTOSAVES_ENABLED), /* harmony export */ DEFAULT_AUTOSAVES_INTERVAL: () => (/* binding */ DEFAULT_AUTOSAVES_INTERVAL), /* harmony export */ DEFAULT_AUTOSAVES_MAX_DRAFTS: () => (/* binding */ DEFAULT_AUTOSAVES_MAX_DRAFTS), +/* harmony export */ DRAFTS_KEY: () => (/* binding */ DRAFTS_KEY), /* harmony export */ GREEN: () => (/* binding */ GREEN), /* harmony export */ GREY: () => (/* binding */ GREY), -/* harmony export */ ICON_SET_CONFIGURATION_TAG: () => (/* binding */ ICON_SET_CONFIGURATION_TAG), +/* harmony export */ ICON_SET_CONFIGURATION_KEY: () => (/* binding */ ICON_SET_CONFIGURATION_KEY), /* harmony export */ IMPLICIT_ROOT_ID: () => (/* binding */ IMPLICIT_ROOT_ID), /* harmony export */ INITIAL_DESCRIPTION: () => (/* binding */ INITIAL_DESCRIPTION), /* harmony export */ INITIAL_ICON_SET_NAME: () => (/* binding */ INITIAL_ICON_SET_NAME), @@ -63999,16 +64006,18 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ SNACKBAR_ERROR: () => (/* binding */ SNACKBAR_ERROR), /* harmony export */ SNACKBAR_INFO: () => (/* binding */ SNACKBAR_INFO), /* harmony export */ SNACKBAR_SUCCESS: () => (/* binding */ SNACKBAR_SUCCESS), +/* harmony export */ VERSION_KEY: () => (/* binding */ VERSION_KEY), /* harmony export */ YELLOW: () => (/* binding */ YELLOW) /* harmony export */ }); /** DEFAULT VALUES **/ const INITIAL_TITLE = '< title >'; const INITIAL_DESCRIPTION = ''; const INITIAL_ICON_SET_NAME = 'default'; -/** LocalStorageTags **/ -const APPENDED_ICONS_TAG = 'appendedIcons'; -// String value of tag should not be renamed, because existing configurations would not load -const ICON_SET_CONFIGURATION_TAG = 'domainConfigurationTag'; +/** LocalStorage KEYS **/ +const APPENDED_ICONS_KEY = 'appendedIcons'; +const ICON_SET_CONFIGURATION_KEY = 'iconSetConfiguration'; +const DRAFTS_KEY = 'autosaveDrafts'; +const VERSION_KEY = 'version'; /** AUTOSAVE DEFAULTS **/ const DEFAULT_AUTOSAVES_ENABLED = true; const DEFAULT_AUTOSAVES_MAX_DRAFTS = 5; @@ -65161,8 +65170,7 @@ let AutosaveConfigurationService = /*#__PURE__*/(() => { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AutosaveService: () => (/* binding */ AutosaveService), -/* harmony export */ DRAFTS_TAG: () => (/* binding */ DRAFTS_TAG) +/* harmony export */ AutosaveService: () => (/* binding */ AutosaveService) /* harmony export */ }); /* harmony import */ var _domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../domain/entities/elementTypes */ 73190); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 907); @@ -65188,7 +65196,6 @@ __webpack_require__.r(__webpack_exports__); -const DRAFTS_TAG = 'autosaveDrafts'; let AutosaveService = /*#__PURE__*/(() => { class AutosaveService { constructor(autosaveConfiguration, exportService, iconDictionaryService, rendererService, snackbar, storageService, titleService, iconSetConfigurationService) { @@ -65219,7 +65226,7 @@ let AutosaveService = /*#__PURE__*/(() => { this.rendererService.importStory(story, true, config, false); } removeAllDrafts() { - this.storageService.set(DRAFTS_TAG, []); + this.storageService.set(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.DRAFTS_KEY, []); this.autosavedDraftsChanged$.next(); } loadLatestDraft() { @@ -65273,10 +65280,10 @@ let AutosaveService = /*#__PURE__*/(() => { return a.title === b.title && a.description === b.description && JSON.stringify(a.configAndDST) === JSON.stringify(b.configAndDST); } writeDrafts(drafts) { - this.storageService.set(DRAFTS_TAG, drafts); + this.storageService.set(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.DRAFTS_KEY, drafts); } readDrafts() { - return this.storageService.get(DRAFTS_TAG) ?? []; + return this.storageService.get(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_1__.DRAFTS_KEY) ?? []; } createDraft() { const dst = JSON.stringify(this.rendererService.getStory(), null, 2); @@ -66403,6 +66410,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/domain/entities/dictionary */ 20843); let appendedIcons = new src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__.Dictionary(); +// These SVGs are used to render the actors/work objects on the canvas and in the iconset configuration. For palette and context pad, icons.css is used. const allIcons = { Person: '', Group: '', @@ -66494,7 +66502,41 @@ const allIcons = { Ruler: '', Education: '', 'How-To-Reg': '', - 'View-List': '' + 'View-List': '', + Accessible: '', + 'Account-Circle': '', + Assignment: '', + Battery: '', + Book: '', + Bug: '', + 'Change-History': '', + 'Check-Circle': '', + Code: '', + 'Contact-Mail': '', + Crop: '', + DVR: '', + Error: '', + Extension: '', + Face: '', + Fastfood: '', + Fingerprint: '', + Hand: '', + Help: '', + Image: '', + Lightbulb: '', + Lock: '', + Loyalty: '', + 'Picture-in-Picture': '', + Portrait: '', + Rocket: '', + Satellite: '', + Share: '', + Slideshow: '', + Star: '', + Sun: '', + Table: '', + Videocam: '', + Wysiwyg: '' }; function getAllStandardIconKeys() { const allIconsDict = new src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__.Dictionary(); @@ -67800,7 +67842,7 @@ let IconSetConfigurationService = /*#__PURE__*/(() => { }; } getStoredIconSetConfiguration() { - const iconSetString = this.storageService.get(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.ICON_SET_CONFIGURATION_TAG); + const iconSetString = this.storageService.get(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.ICON_SET_CONFIGURATION_KEY); if (!iconSetString) { return; } else { @@ -67825,7 +67867,7 @@ let IconSetConfigurationService = /*#__PURE__*/(() => { actors: actors, workObjects: workObjects }; - this.storageService.set(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.ICON_SET_CONFIGURATION_TAG, JSON.stringify(configForStorage, null, 2)); + this.storageService.set(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.ICON_SET_CONFIGURATION_KEY, JSON.stringify(configForStorage, null, 2)); } createConfigFromCanvas() { const config = { @@ -67926,14 +67968,11 @@ let IconSetCustomizationService = /*#__PURE__*/(() => { if (storedIconSetConfiguration) { this.importConfiguration(storedIconSetConfiguration, false); } - const importedConfiguration = iconSetChangedService.getConfiguration(); - if (importedConfiguration) { - this.importConfiguration(importedConfiguration, false); - } } importConfiguration(customConfig, saveIconSet = true) { const actorKeys = customConfig.actors.keysArray(); const workObjectKeys = customConfig.workObjects.keysArray(); + const usedIcons = this.elementRegistryService.getUsedIcons(); this.changeName(customConfig.name); actorKeys.forEach(iconName => { if (!this.allIconListItems.has(iconName)) { @@ -67944,6 +67983,11 @@ let IconSetCustomizationService = /*#__PURE__*/(() => { this.selectActor(iconName); } }); + this.selectedActors$.value.forEach(iconName => { + if (!actorKeys.includes(iconName) && !usedIcons.actors.includes(iconName)) { + this.deselectActor(iconName); + } + }); workObjectKeys.forEach(iconName => { if (!this.allIconListItems.has(iconName)) { this.addIconToAllIconList(iconName); @@ -67953,8 +67997,13 @@ let IconSetCustomizationService = /*#__PURE__*/(() => { this.selectWorkObject(iconName); } }); + this.selectedWorkobjects$.value.forEach(iconName => { + if (!workObjectKeys.includes(iconName) && !usedIcons.workobjects.includes(iconName)) { + this.deselectWorkobject(iconName); + } + }); if (saveIconSet) { - this.saveIconSet(this.elementRegistryService.getUsedIcons(), true); + this.saveIconSet(usedIcons, true); } } /** Getter & Setter **/ @@ -68133,7 +68182,7 @@ let IconSetCustomizationService = /*#__PURE__*/(() => { } if (changedWorkobjects.length) { const workobjects = changedWorkobjects.join(', '); - this.snackbar.open(`The following icons are already in use as workobjects and cannot be changed: ${workobjects}`, undefined, { + this.snackbar.open(`The following icons are already in use as work objects and cannot be changed: ${workobjects}`, undefined, { duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_0__.SNACKBAR_DURATION_LONGER, panelClass: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_0__.SNACKBAR_INFO }); @@ -68242,6 +68291,84 @@ let IconSetCustomizationService = /*#__PURE__*/(() => { /***/ }), +/***/ 42482: +/*!**************************************************************!*\ + !*** ./src/app/tools/import/directive/dragDrop.directive.ts ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DragDirective: () => (/* binding */ DragDirective) +/* harmony export */ }); +/* harmony import */ var _domain_entities_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../domain/entities/constants */ 40550); +/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2978); +/* harmony import */ var _services_import_domain_story_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/import-domain-story.service */ 93586); +/* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/snack-bar */ 93289); + + + + +let DragDirective = /*#__PURE__*/(() => { + class DragDirective { + constructor(importDomainStoryService, snackbar) { + this.importDomainStoryService = importDomainStoryService; + this.snackbar = snackbar; + this.background = ''; + } + onDragOver(evt) { + evt.preventDefault(); + evt.stopPropagation(); + this.background = '#999'; + } + onDragLeave(evt) { + evt.preventDefault(); + evt.stopPropagation(); + this.background = ''; + } + onDrop(evt) { + evt.preventDefault(); + evt.stopPropagation(); + this.background = ''; + if (evt.dataTransfer?.files[0]) { + this.importDomainStoryService.performDropImport(evt.dataTransfer.files[0]); + } else { + this.snackbar.open('Nothing to import', undefined, { + duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_0__.SNACKBAR_DURATION_LONG, + panelClass: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_0__.SNACKBAR_ERROR + }); + } + } + static #_ = this.ɵfac = function DragDirective_Factory(t) { + return new (t || DragDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_import_domain_story_service__WEBPACK_IMPORTED_MODULE_1__.ImportDomainStoryService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__.MatSnackBar)); + }; + static #_2 = this.ɵdir = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({ + type: DragDirective, + selectors: [["", "appDrag", ""]], + hostVars: 2, + hostBindings: function DragDirective_HostBindings(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("dragover", function DragDirective_dragover_HostBindingHandler($event) { + return ctx.onDragOver($event); + })("dragleave", function DragDirective_dragleave_HostBindingHandler($event) { + return ctx.onDragLeave($event); + })("drop", function DragDirective_drop_HostBindingHandler($event) { + return ctx.onDrop($event); + }); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background", ctx.background); + } + }, + standalone: true + }); + } + return DragDirective; +})(); + +/***/ }), + /***/ 88401: /*!************************************************************************************!*\ !*** ./src/app/tools/import/presentation/import-dialog/import-dialog.component.ts ***! @@ -68472,6 +68599,26 @@ let ImportDomainStoryService = /*#__PURE__*/(() => { } this.modelerService.commandStackChanged(); } + performDropImport(file) { + const filename = file.name; + const dstSvgPattern = /.*(.dst)(\s*\(\d+\)){0,1}\.svg/; + const egnSvgPattern = /.*(.egn)(\s*\(\d+\)){0,1}\.svg/; + if (filename.endsWith('.dst')) { + this.importDST(file, filename, false); + } else if (filename.match(dstSvgPattern)) { + this.importDST(file, filename, true); + } else if (filename.endsWith('.egn')) { + this.importEGN(file, filename, false); + } else if (filename.match(egnSvgPattern)) { + this.importEGN(file, filename, true); + } else { + this.snackbar.open('File not supported', undefined, { + duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_2__.SNACKBAR_DURATION_LONG, + panelClass: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_2__.SNACKBAR_ERROR + }); + } + this.modelerService.commandStackChanged(); + } importFromUrl(fileUrl) { if (!fileUrl.startsWith('http')) { this.snackbar.open('Url not valid', undefined, { @@ -68498,6 +68645,11 @@ let ImportDomainStoryService = /*#__PURE__*/(() => { this.importEGN(blob, filename, false); } else if (filename.match(egnSvgPattern)) { this.importEGN(blob, filename, true); + } else { + this.snackbar.open('Url not valid', undefined, { + duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_2__.SNACKBAR_DURATION_LONG, + panelClass: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_2__.SNACKBAR_ERROR + }); } this.modelerService.commandStackChanged(); }).catch(() => this.snackbar.open('Cross-origin request blocked', undefined, { @@ -69478,7 +69630,6 @@ function Replace(modeling) { * @param modeling */ function replaceElement(oldElement, newElementData, modeling) { - // let modeling = this._modeling; let newElement = setCenterOfElement(newElementData, oldElement, modeling); let outgoingActivities = newElement.outgoing; let incomingActivities = newElement.incoming; @@ -69513,9 +69664,11 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ ReplaceMenuProvider) /* harmony export */ }); -/* harmony import */ var _replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./replace */ 76011); -/* harmony import */ var _replaceOptions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./replaceOptions */ 18405); -/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ 93673); +/* harmony import */ var src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/domain/entities/elementTypes */ 73190); +/* harmony import */ var _replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./replace */ 76011); +/* harmony import */ var _replaceOptions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./replaceOptions */ 18405); +/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ 93673); + @@ -69525,7 +69678,7 @@ __webpack_require__.r(__webpack_exports__); * This module is an element agnostic replace menu provider for the popup menu. */ function ReplaceMenuProvider(modeling) { - this._dsReplace = new _replace__WEBPACK_IMPORTED_MODULE_0__["default"](modeling); + this._dsReplace = new _replace__WEBPACK_IMPORTED_MODULE_1__["default"](modeling); this._modeling = modeling; } ReplaceMenuProvider.$inject = ["modeling"]; @@ -69539,10 +69692,10 @@ ReplaceMenuProvider.$inject = ["modeling"]; */ ReplaceMenuProvider.prototype.getEntries = function (element) { let entries; - if (element.type.includes("actor")) { - entries = _replaceOptions__WEBPACK_IMPORTED_MODULE_1__.actorReplaceOptions(element.type); - } else if (element.type.includes("workObject")) { - entries = _replaceOptions__WEBPACK_IMPORTED_MODULE_1__.workObjectReplaceOptions(element.type); + if (element.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.ACTOR)) { + entries = _replaceOptions__WEBPACK_IMPORTED_MODULE_2__.actorReplaceOptions(element.type); + } else if (element.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.WORKOBJECT)) { + entries = _replaceOptions__WEBPACK_IMPORTED_MODULE_2__.workObjectReplaceOptions(element.type); } return this._createEntries(element, entries); }; @@ -69558,7 +69711,7 @@ ReplaceMenuProvider.prototype.getEntries = function (element) { ReplaceMenuProvider.prototype._createEntries = function (element, replaceOptions) { let menuEntries = []; let self = this; - (0,min_dash__WEBPACK_IMPORTED_MODULE_2__.forEach)(replaceOptions, function (definition) { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.forEach)(replaceOptions, function (definition) { let entry = self._createMenuEntry(definition, element); menuEntries.push(entry); }); @@ -69692,7 +69845,6 @@ function DomainStoryContextPadProvider(injector, connect, translate, elementFact let startConnect; let selectedElement; injector.invoke(bpmn_js_lib_features_context_pad_ContextPadProvider__WEBPACK_IMPORTED_MODULE_5__["default"], this); - let autoPlace = injector.get("autoPlace", false); let cached = (0,min_dash__WEBPACK_IMPORTED_MODULE_6__.bind)(this.getContextPadEntries, this); document.addEventListener("pickedColor", event => { if (selectedElement) { @@ -69765,6 +69917,8 @@ function DomainStoryContextPadProvider(injector, connect, translate, elementFact } } }); + } else if (element.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__.ElementTypes.TEXTANNOTATION)) { + addColorChange(actions); } return actions; }; @@ -70582,7 +70736,7 @@ function DomainStoryRenderer(eventBus, styles, canvas, textRenderer, pathMap, co this.drawDSConnection = function (p, element) { let attrs = ""; attrs = computeStyle(attrs, { - stroke: "#000000", + stroke: element.businessObject.pickedColor ?? "black", strokeWidth: 1.5, strokeLinejoin: "round", strokeDasharray: "5, 5" @@ -70596,7 +70750,7 @@ function DomainStoryRenderer(eventBus, styles, canvas, textRenderer, pathMap, co }; let text = element.businessObject.text || ""; if (element.businessObject.text) { - let height = (0,src_app_tools_modeler_bpmn_modeler_labeling_dsLabelEditingPreview__WEBPACK_IMPORTED_MODULE_2__.getAnnotationBoxHeight)(); + let height = element.height ?? 0; if (height === 0 && element.businessObject.number) { height = element.businessObject.number; } @@ -70621,14 +70775,14 @@ function DomainStoryRenderer(eventBus, styles, canvas, textRenderer, pathMap, co } }); drawPath(parentGfx, textPathData, { - stroke: "black" + stroke: element.businessObject.pickedColor ?? "black" }); renderLabel(parentGfx, text, { box: element, align: "left-top", padding: 5, style: { - fill: "black" + fill: element.businessObject.pickedColor ?? "black" } }); return textElement; @@ -71311,8 +71465,7 @@ __webpack_require__.r(__webpack_exports__); "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ DSLabelEditingPreview), -/* harmony export */ getAnnotationBoxHeight: () => (/* binding */ getAnnotationBoxHeight) +/* harmony export */ "default": () => (/* binding */ DSLabelEditingPreview) /* harmony export */ }); /* harmony import */ var tiny_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tiny-svg */ 87004); /* harmony import */ var diagram_js_lib_util_SvgTransformUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! diagram-js/lib/util/SvgTransformUtil */ 53813); @@ -71326,10 +71479,6 @@ __webpack_require__.r(__webpack_exports__); const MARKER_HIDDEN = "djs-element-hidden", MARKER_LABEL_HIDDEN = "djs-label-hidden"; -let annotationBoxHeight = 0; -function getAnnotationBoxHeight() { - return annotationBoxHeight; -} function DSLabelEditingPreview(eventBus, canvas, pathMap) { let self = this; let defaultLayer = canvas.getDefaultLayer(); @@ -71341,7 +71490,6 @@ function DSLabelEditingPreview(eventBus, canvas, pathMap) { if ((0,_util__WEBPACK_IMPORTED_MODULE_1__.is)(element, src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) { absoluteElementBBox = canvas.getAbsoluteBBox(element); gfx = (0,tiny_svg__WEBPACK_IMPORTED_MODULE_2__.create)("g"); - annotationBoxHeight = element.height; let textPathData = pathMap.getScaledPath("TEXT_ANNOTATION", { xScaleFactor: 1, yScaleFactor: 1, @@ -71374,7 +71522,6 @@ function DSLabelEditingPreview(eventBus, canvas, pathMap) { let height = context.height, dy = context.dy; let newElementHeight = Math.max(element.height / absoluteElementBBox.height * (height + dy), 0); - annotationBoxHeight = newElementHeight; let textPathData = pathMap.getScaledPath("TEXT_ANNOTATION", { xScaleFactor: 1, yScaleFactor: 1, @@ -71427,10 +71574,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ initializeLabelEditingProvider: () => (/* binding */ initializeLabelEditingProvider), /* harmony export */ toggleStashUse: () => (/* binding */ toggleStashUse) /* harmony export */ }); -/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ 93673); +/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! min-dash */ 93673); /* harmony import */ var _dsLabelUtil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsLabelUtil */ 13224); -/* harmony import */ var bpmn_js_lib_features_modeling_util_ModelingUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! bpmn-js/lib/features/modeling/util/ModelingUtil */ 87908); -/* harmony import */ var bpmn_js_lib_util_LabelUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! bpmn-js/lib/util/LabelUtil */ 50815); /* harmony import */ var src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/domain/entities/elementTypes */ 73190); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ 20580); @@ -71439,8 +71584,6 @@ __webpack_require__.r(__webpack_exports__); - - let dictionaryService; let numberStash = 0; let stashUse = false; @@ -71517,7 +71660,7 @@ function DSLabelEditingProvider(eventBus, canvas, directEditing, modeling, resiz activateDirectEdit(event.shape); }); function activateDirectEdit(element, force) { - if (force || (0,bpmn_js_lib_features_modeling_util_ModelingUtil__WEBPACK_IMPORTED_MODULE_3__.isAny)(element, [src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.TEXTANNOTATION]) || element.businessObject.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.DOMAINSTORY)) { + if (force || element.businessObject.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.DOMAINSTORY)) { directEditing.activate(element); } } @@ -71549,22 +71692,15 @@ DSLabelEditingProvider.prototype.activate = function (element) { }; // bounds let bounds = this.getEditingBBox(element); - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(context, bounds); + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(context, bounds); let options = {}; - // external labels - if ((0,bpmn_js_lib_util_LabelUtil__WEBPACK_IMPORTED_MODULE_5__.isLabelExternal)(element)) { - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(options, { - autoResize: true - }); - } - // text annotations if ((0,_util__WEBPACK_IMPORTED_MODULE_2__.is)(element, src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.TEXTANNOTATION)) { - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(options, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(options, { resizable: true, autoResize: true }); } - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(context, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(context, { options: options }); return context; @@ -71581,24 +71717,17 @@ DSLabelEditingProvider.prototype.getEditingBBox = function (element) { let canvas = this._canvas; let target = element.label || element; let bbox = canvas.getAbsoluteBBox(target); - let mid = { - x: bbox.x + bbox.width / 2, - y: bbox.y + bbox.height / 2 - }; // default position let bounds = { x: bbox.x, y: bbox.y }; - /** The cavnas is an Object from BPMN, the IDE might say, that zoom is deprecated, - * because it thinks canvas is the standard HTMLElement. -> Needs to stay toom **/ + /** The canvas is an object from bpmn-js. The IDE might say that zoom is deprecated, + * because it thinks that canvas is the standard HTML element.**/ let zoom = canvas.zoom(); - let defaultStyle = this._textRenderer.getDefaultStyle(), - externalStyle = this._textRenderer.getExternalStyle(); + let defaultStyle = this._textRenderer.getDefaultStyle(); // take zoom into account - let externalFontSize = externalStyle.fontSize * zoom, - externalLineHeight = externalStyle.lineHeight, - defaultFontSize = defaultStyle.fontSize * zoom, + let defaultFontSize = defaultStyle.fontSize * zoom, defaultLineHeight = defaultStyle.lineHeight; let style = { fontFamily: this._textRenderer.getDefaultStyle().fontFamily, @@ -71606,14 +71735,14 @@ DSLabelEditingProvider.prototype.getEditingBBox = function (element) { }; // adjust for groups if ((0,_util__WEBPACK_IMPORTED_MODULE_2__.is)(element, src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.GROUP)) { - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(bounds, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(bounds, { minWidth: bbox.width / 2.5 > 125 ? bbox.width / 2.5 : 125, maxWidth: bbox.width, minHeight: 30 * zoom, x: bbox.x, y: bbox.y }); - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(style, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(style, { fontSize: defaultFontSize + "px", lineHeight: defaultLineHeight, paddingTop: 7 * zoom + "px", @@ -71623,16 +71752,16 @@ DSLabelEditingProvider.prototype.getEditingBBox = function (element) { textAlign: "left" }); } - // internal labels for tasks and collapsed call activities, - // sub processes and participants - if (/^domainStory:actor\w*/.test(element.type) || /^domainStory:workObject\w*/.test(element.type)) { - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(bounds, { + if ( + // we can't use util's is() function here because the type contains the name of the icon + /^domainStory:actor\w*/.test(element.type) || /^domainStory:workObject\w*/.test(element.type)) { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(bounds, { width: bbox.width, minHeight: 30, y: bbox.y + bbox.height - 20, x: bbox.x }); - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(style, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(style, { fontSize: defaultFontSize + "px", lineHeight: defaultLineHeight, paddingTop: 7 * zoom + "px", @@ -71641,56 +71770,15 @@ DSLabelEditingProvider.prototype.getEditingBBox = function (element) { paddingRight: 5 * zoom + "px" }); } - let width = 90 * zoom, - paddingTop = 7 * zoom, - paddingBottom = 4 * zoom; - // external labels for events, data elements, gateways and connections - if (target.labelTarget) { - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(bounds, { - width: width, - height: bbox.height + paddingTop + paddingBottom, - x: mid.x - width / 2, - y: bbox.y - paddingTop - }); - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(style, { - fontSize: externalFontSize + "px", - lineHeight: externalLineHeight, - paddingTop: paddingTop + "px", - paddingBottom: paddingBottom + "px" - }); - } - // external label not yet created - if ((0,bpmn_js_lib_util_LabelUtil__WEBPACK_IMPORTED_MODULE_5__.isLabelExternal)(target) && !(0,bpmn_js_lib_util_LabelUtil__WEBPACK_IMPORTED_MODULE_5__.hasExternalLabel)(target) && !(0,bpmn_js_lib_util_LabelUtil__WEBPACK_IMPORTED_MODULE_5__.isLabel)(target)) { - let externalLabelMid = (0,bpmn_js_lib_util_LabelUtil__WEBPACK_IMPORTED_MODULE_5__.getExternalLabelMid)(element); - let absoluteBBox = canvas.getAbsoluteBBox({ - x: externalLabelMid.x, - y: externalLabelMid.y, - width: 0, - height: 0 - }); - let height = externalFontSize + paddingTop + paddingBottom; - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(bounds, { - width: width, - height: height, - x: absoluteBBox.x - width / 2, - y: absoluteBBox.y - height / 2 - }); - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(style, { - fontSize: externalFontSize + "px", - lineHeight: externalLineHeight, - paddingTop: paddingTop + "px", - paddingBottom: paddingBottom + "px" - }); - } // text annotations if ((0,_util__WEBPACK_IMPORTED_MODULE_2__.is)(element, src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.TEXTANNOTATION)) { - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(bounds, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(bounds, { width: bbox.width, height: bbox.height, minWidth: 30 * zoom, minHeight: 10 * zoom }); - (0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(style, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_3__.assign)(style, { textAlign: "left", paddingTop: 7 * zoom + "px", paddingBottom: 7 * zoom + "px", @@ -71748,7 +71836,7 @@ function getLabelAttr(semantic) { if (semantic.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.ACTOR) || semantic.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.WORKOBJECT) || semantic.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.ACTIVITY) || semantic.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.GROUP)) { return "name"; } - if ((0,_util__WEBPACK_IMPORTED_MODULE_1__.is)(semantic, src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) { + if (semantic.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) { return "text"; } } @@ -72460,9 +72548,6 @@ __webpack_require__.r(__webpack_exports__); -/** - * A palette that allows you to create BPMN _and_ custom elements. - */ let iconDictionary; let configuration; function initializePalette(iconDictionaryService, configurationService) { @@ -72525,7 +72610,7 @@ function appendCSSStyleCheat(customIcons) { } function initPalette(actions, spaceTool, lassoTool, createAction) { let config = iconDictionary?.getCurrentIconConfigurationForBPMN(); - let customIcons = localStorage.getItem(src_app_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.APPENDED_ICONS_TAG); + let customIcons = localStorage.getItem(src_app_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.APPENDED_ICONS_KEY); if (customIcons) { customIcons = JSON.parse(customIcons); if (customIconsLegacy(customIcons)) { @@ -72752,6 +72837,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ "default": () => (/* binding */ elementUpdateHandler) /* harmony export */ }); /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ 20580); +/* harmony import */ var _domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../domain/entities/elementTypes */ 73190); + @@ -72765,6 +72852,12 @@ function elementUpdateHandler(commandStack, eventBus) { this.execute = function (context) { let semantic = context.businessObject; let element = context.element; + if (semantic.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.TEXTANNOTATION) && element.incoming[0]) { + element.incoming[0].businessObject.pickedColor = context.newColor; + eventBus.fire("element.changed", { + element: element.incoming[0] + }); + } semantic.pickedColor = context.newColor; eventBus.fire("element.changed", { element @@ -72773,6 +72866,12 @@ function elementUpdateHandler(commandStack, eventBus) { this.revert = function (context) { let semantic = context.businessObject; let element = context.element; + if (semantic.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.TEXTANNOTATION) && element.incoming[0]) { + element.incoming[0].businessObject.pickedColor = context.oldColor; + eventBus.fire("element.changed", { + element: element.incoming[0] + }); + } semantic.pickedColor = context.oldColor; eventBus.fire("element.changed", { element @@ -72821,9 +72920,6 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ headlineAndDescriptionUpdateHandler) /* harmony export */ }); -/** - * a handler that updates the text of a BPMN element. - */ function headlineAndDescriptionUpdateHandler(commandStack, titleService) { commandStack.registerHandler("story.updateHeadlineAndDescription", handlerFunction); function handlerFunction() { @@ -73010,26 +73106,19 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ getBusinessObject: () => (/* binding */ getBusinessObject), /* harmony export */ is: () => (/* binding */ is), -/* harmony export */ isAny: () => (/* binding */ isAny), /* harmony export */ isCustomIcon: () => (/* binding */ isCustomIcon), /* harmony export */ isCustomSvgIcon: () => (/* binding */ isCustomSvgIcon), /* harmony export */ reworkGroupElements: () => (/* binding */ reworkGroupElements), /* harmony export */ undoGroupRework: () => (/* binding */ undoGroupRework) /* harmony export */ }); -/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! min-dash */ 93673); - +// TODO: this will not work for actors and work objects as the name of the icon is part of the type function is(element, type) { const bo = getBusinessObject(element); - return bo && typeof bo.$instanceOf == "function" && bo.$instanceOf(type); + return bo && bo.type === type; } function getBusinessObject(element) { return element && element.businessObject || element; } -function isAny(element, types) { - return (0,min_dash__WEBPACK_IMPORTED_MODULE_0__.some)(types, function (t) { - return is(element, t); - }); -} function reworkGroupElements(parent, shape) { parent.children.slice().forEach(innerShape => { if (innerShape.id !== shape.id) { @@ -73266,12 +73355,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ ModelerModule: () => (/* binding */ ModelerModule) /* harmony export */ }); /* harmony import */ var _activity_dialog_activity_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./activity-dialog/activity-dialog.component */ 89142); -/* harmony import */ var _modeler_modeler_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modeler/modeler.component */ 87286); -/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 56610); -/* harmony import */ var _material_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../material.module */ 89439); -/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 37222); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2978); - +/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 56610); +/* harmony import */ var _material_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../material.module */ 89439); +/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 37222); +/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2978); @@ -73282,70 +73369,25 @@ let ModelerModule = /*#__PURE__*/(() => { static #_ = this.ɵfac = function ModelerModule_Factory(t) { return new (t || ModelerModule)(); }; - static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ + static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({ type: ModelerModule }); - static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ - imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, _material_module__WEBPACK_IMPORTED_MODULE_2__.MaterialModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule] + static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({ + imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _material_module__WEBPACK_IMPORTED_MODULE_1__.MaterialModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.ReactiveFormsModule] }); } return ModelerModule; })(); (function () { - (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](ModelerModule, { - declarations: [_activity_dialog_activity_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ActivityDialogComponent, _modeler_modeler_component__WEBPACK_IMPORTED_MODULE_1__.ModelerComponent], - imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, _material_module__WEBPACK_IMPORTED_MODULE_2__.MaterialModule, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.ReactiveFormsModule], - exports: [_activity_dialog_activity_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ActivityDialogComponent, _modeler_modeler_component__WEBPACK_IMPORTED_MODULE_1__.ModelerComponent] + (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](ModelerModule, { + declarations: [_activity_dialog_activity_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ActivityDialogComponent], + imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _material_module__WEBPACK_IMPORTED_MODULE_1__.MaterialModule, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.ReactiveFormsModule], + exports: [_activity_dialog_activity_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ActivityDialogComponent] }); })(); /***/ }), -/***/ 87286: -/*!*************************************************************************!*\ - !*** ./src/app/tools/modeler/presentation/modeler/modeler.component.ts ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ModelerComponent: () => (/* binding */ ModelerComponent) -/* harmony export */ }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2978); -/* harmony import */ var _services_modeler_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../services/modeler.service */ 40439); - - -let ModelerComponent = /*#__PURE__*/(() => { - class ModelerComponent { - constructor(modelerService) { - this.modelerService = modelerService; - } - ngOnInit() { - this.modelerService.postInit(); - } - static #_ = this.ɵfac = function ModelerComponent_Factory(t) { - return new (t || ModelerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_services_modeler_service__WEBPACK_IMPORTED_MODULE_0__.ModelerService)); - }; - static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ - type: ModelerComponent, - selectors: [["app-modeler"]], - decls: 1, - vars: 0, - consts: [["id", "canvas"]], - template: function ModelerComponent_Template(rf, ctx) { - if (rf & 1) { - _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div", 0); - } - }, - styles: ["#canvas[_ngcontent-%COMP%], #canvas[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n top: 0;\n width: 100%;\n height: 100%;\n position: relative;\n bottom: 0;\n overflow: hidden;\n}"] - }); - } - return ModelerComponent; -})(); - -/***/ }), - /***/ 52317: /*!***************************************************************!*\ !*** ./src/app/tools/modeler/services/initializer.service.ts ***! @@ -73482,8 +73524,14 @@ let InitializerService = /*#__PURE__*/(() => { } }); let pasteColor = []; + let pasteText = []; + let pasteHeight = []; eventBus.on('copyPaste.pasteElement', 10000, e => { pasteColor.push(e.descriptor.oldBusinessObject.pickedColor); + if (e.descriptor.oldBusinessObject.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) { + pasteText.push(e.descriptor.oldBusinessObject.text ?? ''); + pasteHeight.push(e.descriptor.oldBusinessObject.height); + } }); eventBus.on('create.end', e => { if (!pasteColor) { @@ -73491,12 +73539,21 @@ let InitializerService = /*#__PURE__*/(() => { } for (let elementsKey in e.elements) { const element = e.elements[elementsKey]; + if (element.businessObject.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) { + element.businessObject.text = pasteText[0]; + element.businessObject.number = pasteHeight[0]; + element.businessObject.height = pasteHeight[0]; + pasteText.shift(); + pasteHeight.shift(); + } element.businessObject.pickedColor = pasteColor[parseInt(elementsKey)]; eventBus.fire('element.changed', { element }); } pasteColor = []; + pasteText = []; + pasteHeight = []; }); } /** Overrrides for Canvas Functions **/ @@ -73577,14 +73634,22 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ ModelerService: () => (/* binding */ ModelerService) /* harmony export */ }); /* harmony import */ var _home_runner_work_egon_io_egon_io_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 73308); -/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! min-dash */ 93673); +/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! min-dash */ 93673); /* harmony import */ var src_app_tools_modeler_bpmn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/tools/modeler/bpmn */ 95715); /* harmony import */ var _bpmn_modeler_numbering_numbering__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../bpmn/modeler/numbering/numbering */ 14945); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 2978); -/* harmony import */ var _initializer_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./initializer.service */ 52317); -/* harmony import */ var _domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../domain/services/element-registry.service */ 85511); -/* harmony import */ var _icon_set_config_services_icon_dictionary_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../icon-set-config/services/icon-dictionary.service */ 6932); -/* harmony import */ var _icon_set_config_services_icon_set_configuration_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../icon-set-config/services/icon-set-configuration.service */ 46527); +/* harmony import */ var _domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../domain/entities/constants */ 40550); +/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../environments/environment */ 45312); +/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 2978); +/* harmony import */ var _initializer_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./initializer.service */ 52317); +/* harmony import */ var _domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../domain/services/element-registry.service */ 85511); +/* harmony import */ var _icon_set_config_services_icon_dictionary_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../icon-set-config/services/icon-dictionary.service */ 6932); +/* harmony import */ var _icon_set_config_services_icon_set_configuration_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../icon-set-config/services/icon-set-configuration.service */ 46527); +/* harmony import */ var _domain_services_storage_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../domain/services/storage.service */ 50624); +/* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/snack-bar */ 93289); + + + + @@ -73596,19 +73661,21 @@ __webpack_require__.r(__webpack_exports__); let ModelerService = /*#__PURE__*/(() => { class ModelerService { - constructor(initializerService, elementRegistryService, iconDictionaryService, iconSetConfigurationService) { + constructor(initializerService, elementRegistryService, iconDictionaryService, iconSetConfigurationService, storageService, snackbar) { this.initializerService = initializerService; this.elementRegistryService = elementRegistryService; this.iconDictionaryService = iconDictionaryService; this.iconSetConfigurationService = iconSetConfigurationService; + this.storageService = storageService; + this.snackbar = snackbar; } postInit() { + this.checkCurrentVersion(); const storedIconSetConfiguration = this.iconSetConfigurationService.getStoredIconSetConfiguration(); if (storedIconSetConfiguration) { this.iconDictionaryService.setCustomConfiguration(storedIconSetConfiguration); this.iconSetConfigurationService.loadConfiguration(storedIconSetConfiguration); } - // this.initializerService.initializeDomainStoryModelerClasses(); this.modeler = new src_app_tools_modeler_bpmn__WEBPACK_IMPORTED_MODULE_1__["default"]({ container: '#canvas', keyboard: { @@ -73635,11 +73702,25 @@ let ModelerService = /*#__PURE__*/(() => { this.initializerService.initiateEventBusListeners(this.eventBus, this.commandStack); this.modeler.createDiagram(); // expose bpmnjs to window for debugging purposes - (0,min_dash__WEBPACK_IMPORTED_MODULE_7__.assign)(window, { + (0,min_dash__WEBPACK_IMPORTED_MODULE_10__.assign)(window, { bpmnjs: this.modeler }); this.startDebounce(); } + checkCurrentVersion() { + const version = this.storageService.get(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.VERSION_KEY); + if (version === null) { + this.storageService.set(_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.VERSION_KEY, _environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.version); + } + if (version !== null && version !== _environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.version) { + this.snackbar.open("Egon was updated. Clear your browser's local storage.", 'More information', { + duration: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.SNACKBAR_DURATION_LONGER, + panelClass: _domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__.SNACKBAR_INFO + }).onAction().subscribe(() => { + window.open('https://egon.io/howto#launching-egon'); + }); + } + } restart(iconSetConfiguration, domainStory) { const currentStory = domainStory != undefined ? domainStory : this.elementRegistryService.createObjectListForDSTDownload().map(e => e.businessObject); if (!iconSetConfiguration) { @@ -73697,9 +73778,9 @@ let ModelerService = /*#__PURE__*/(() => { })(); } static #_ = this.ɵfac = function ModelerService_Factory(t) { - return new (t || ModelerService)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_initializer_service__WEBPACK_IMPORTED_MODULE_3__.InitializerService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_4__.ElementRegistryService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_icon_set_config_services_icon_dictionary_service__WEBPACK_IMPORTED_MODULE_5__.IconDictionaryService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_icon_set_config_services_icon_set_configuration_service__WEBPACK_IMPORTED_MODULE_6__.IconSetConfigurationService)); + return new (t || ModelerService)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](_initializer_service__WEBPACK_IMPORTED_MODULE_5__.InitializerService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](_domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_6__.ElementRegistryService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](_icon_set_config_services_icon_dictionary_service__WEBPACK_IMPORTED_MODULE_7__.IconDictionaryService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](_icon_set_config_services_icon_set_configuration_service__WEBPACK_IMPORTED_MODULE_8__.IconSetConfigurationService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](_domain_services_storage_service__WEBPACK_IMPORTED_MODULE_9__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_12__.MatSnackBar)); }; - static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjectable"]({ + static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineInjectable"]({ token: ModelerService, factory: ModelerService.ɵfac, providedIn: 'root' @@ -73905,17 +73986,7 @@ let DomManipulationService = /*#__PURE__*/(() => { const allObjects = this.elementRegistryService.getAllCanvasObjects().concat(this.elementRegistryService.getAllGroups()); allObjects.forEach(element => { if (!shownElements.includes(element.businessObject)) { - if (element.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.CONNECTION)) { - // @ts-ignore - if (!element.source.type.includes(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.GROUP)) { - notShownElements.push(element.businessObject); - } else { - // @ts-ignore - shownElements.push(element.target); - } - } else { - notShownElements.push(element.businessObject); - } + notShownElements.push(element.businessObject); } }); return notShownElements; @@ -74061,9 +74132,11 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ StoryCreatorService: () => (/* binding */ StoryCreatorService) /* harmony export */ }); -/* harmony import */ var _domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../domain/entities/dictionary */ 20843); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2978); -/* harmony import */ var _domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../domain/services/element-registry.service */ 85511); +/* harmony import */ var _domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../domain/entities/elementTypes */ 73190); +/* harmony import */ var _domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../domain/entities/dictionary */ 20843); +/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2978); +/* harmony import */ var _domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../domain/services/element-registry.service */ 85511); + @@ -74073,7 +74146,7 @@ let StoryCreatorService = /*#__PURE__*/(() => { this.elementRegistryService = elementRegistryService; } traceActivitiesAndCreateStory() { - const tracedActivityMap = new _domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__.Dictionary(); + const tracedActivityMap = new _domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_1__.Dictionary(); const story = []; const activities = this.elementRegistryService.getActivitiesFromActors(); const tracedActivityMapKeys = []; @@ -74144,6 +74217,7 @@ let StoryCreatorService = /*#__PURE__*/(() => { const initialSource = []; const activities = tracedActivity; const targetObjects = []; + const actorTextAnnotations = []; tracedActivity.forEach(parallelSentence => { initialSource.push(parallelSentence.source); const firstTarget = parallelSentence.target; @@ -74162,18 +74236,35 @@ let StoryCreatorService = /*#__PURE__*/(() => { } } }); - return initialSource.map(e => e.businessObject).concat(activities.map(a => a.businessObject)).concat(targetObjects.map(t => t.businessObject)); + initialSource.forEach(actor => this.addTextAnnotationsForActorOrGroup(actor, actorTextAnnotations)); + targetObjects.forEach(target => { + if (target.businessObject.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.ACTOR)) { + this.addTextAnnotationsForActorOrGroup(target, actorTextAnnotations); + } + }); + return initialSource.map(e => e.businessObject).concat(activities.map(a => a.businessObject)).concat(targetObjects.map(t => t.businessObject)).concat(actorTextAnnotations.map(ta => ta.businessObject)); + } + addTextAnnotationsForActorOrGroup(object, objectTextAnnotations) { + object.outgoing?.forEach(connection => { + // connections outgoing from actors or groups without number must be connections to text annotations + if (!connection.businessObject.number) { + objectTextAnnotations.push(connection); + objectTextAnnotations.push(connection.target); + } + }); } addGroupsToLastSentence(story) { const groups = this.elementRegistryService.getAllGroups(); + const annotationsForGroups = []; + groups.forEach(group => this.addTextAnnotationsForActorOrGroup(group, annotationsForGroups)); if (groups.length > 0 && story.length > 0) { - story[story.length - 1].objects = story[story.length - 1].objects.concat(groups.map(g => g.businessObject)); + story[story.length - 1].objects = story[story.length - 1].objects.concat(groups.map(g => g.businessObject)).concat(annotationsForGroups.map(a => a.businessObject)); } } static #_ = this.ɵfac = function StoryCreatorService_Factory(t) { - return new (t || StoryCreatorService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_1__.ElementRegistryService)); + return new (t || StoryCreatorService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_domain_services_element_registry_service__WEBPACK_IMPORTED_MODULE_2__.ElementRegistryService)); }; - static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ + static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({ token: StoryCreatorService, factory: StoryCreatorService.ɵfac, providedIn: 'root' @@ -74847,7 +74938,7 @@ let HeaderButtonsComponent = /*#__PURE__*/(() => { }, decls: 2, vars: 2, - consts: [["id", "buttonStartReplay", "title", "Start replay", 1, "headerButton", 3, "click", "disabled"], [1, "material-icons", "materialIconButton"], ["id", "buttonImport", "title", "Import story from file", "onclick", "document.getElementById('import').click();", 1, "headerButton"], ["id", "buttonUrlImport", "title", "Import story from URL", 1, "headerButton", 2, "display", "none", 3, "click"], ["type", "file", "accept", ".dst, .svg, .egn, .svg", "id", "import", "onclick", "this.value=null;", "name", "file", 2, "display", "none", 3, "change"], ["id", "export", "title", "Export story as .egn, .svg or .png file", 1, "headerButton", 3, "click", "disabled"], [1, "material-icons-outlined", "materialIconButton"], ["title", "Label Dictionary", 1, "headerButton", 3, "click", "disabled"], ["title", "Label Dictionary", 1, "material-icons", "materialIconButton"], ["title", "Settings", 1, "headerButton", 3, "click"], ["title", "Change Icons and Settings", 1, "material-icons", "materialIconButton"], ["title", "Show keyboard shortcuts", 1, "headerButton", 3, "click"], ["title", "Create a new domain story", 1, "headerButton", 3, "click"], ["title", "Previous sentence", 1, "headerButton", 3, "click"], ["title", "Next sentence", 1, "headerButton", 3, "click"], ["title", "Stop replay", 1, "headerButton", 3, "click"]], + consts: [["id", "buttonStartReplay", "title", "Start replay", 1, "headerButton", 3, "click", "disabled"], [1, "material-icons", "materialIconButton"], ["id", "buttonImport", "title", "Import story from file", "onclick", "document.getElementById('import').click();", 1, "headerButton"], ["id", "buttonUrlImport", "title", "Import story from URL", 1, "headerButton", 2, "display", "none", 3, "click"], ["type", "file", "accept", ".dst, .svg, .egn, .svg", "id", "import", "onclick", "this.value=null;", 2, "display", "none", 3, "change"], ["id", "export", "title", "Export story as .egn, .svg or .png file", 1, "headerButton", 3, "click", "disabled"], [1, "material-icons-outlined", "materialIconButton"], ["title", "Label Dictionary", 1, "headerButton", 3, "click", "disabled"], ["title", "Label Dictionary", 1, "material-icons", "materialIconButton"], ["title", "Settings", 1, "headerButton", 3, "click"], ["title", "Change Icons and Settings", 1, "material-icons", "materialIconButton"], ["title", "Show keyboard shortcuts", 1, "headerButton", 3, "click"], ["title", "Create a new domain story", 1, "headerButton", 3, "click"], ["title", "Previous sentence", 1, "headerButton", 3, "click"], ["title", "Next sentence", 1, "headerButton", 3, "click"], ["title", "Stop replay", 1, "headerButton", 3, "click"]], template: function HeaderButtonsComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, HeaderButtonsComponent_Conditional_0_Template, 26, 11, "div")(1, HeaderButtonsComponent_Conditional_1_Template, 10, 0, "div"); @@ -75390,7 +75481,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ }); const environment = { production: true, - version: '2.0.1' + version: '2.1.0' }; /***/ }), diff --git a/app-v2/styles.f399a54f2c7a2e02.css b/app-v2/styles.245a2b3ea0b6a6f1.css similarity index 99% rename from app-v2/styles.f399a54f2c7a2e02.css rename to app-v2/styles.245a2b3ea0b6a6f1.css index f7cf66e..530986b 100644 --- a/app-v2/styles.f399a54f2c7a2e02.css +++ b/app-v2/styles.245a2b3ea0b6a6f1.css @@ -3563,6 +3563,7 @@ mat-dialog-actions.mdc-dialog__actions { .mat-mdc-snack-bar-container.snackbar_info { --mdc-snackbar-container-color: #42aebb; --mat-mdc-snack-bar-button-color: black; + --mat-snack-bar-button-color: #000000; --mdc-snackbar-supporting-text-color: #fff; }