Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hofstef committed Aug 20, 2024
2 parents 42b7017 + 26dd493 commit a33c2e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 48 deletions.
63 changes: 16 additions & 47 deletions app-latest-build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3127,13 +3127,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ "default": () => (/* binding */ PaletteProvider),
/* harmony export */ initializePalette: () => (/* binding */ initializePalette)
/* harmony export */ });
/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! min-dash */ 81410);
/* harmony import */ var src_app_tools_icon_set_config_domain_allIcons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/tools/icon-set-config/domain/allIcons */ 61070);
/* harmony import */ var src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/domain/entities/dictionary */ 20843);
/* harmony import */ var src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/domain/entities/elementTypes */ 73190);
/* harmony import */ var src_app_domain_entities_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/domain/entities/constants */ 40550);


/* harmony import */ var min_dash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! min-dash */ 81410);
/* harmony import */ var src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/domain/entities/dictionary */ 20843);
/* harmony import */ var src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/domain/entities/elementTypes */ 73190);



Expand Down Expand Up @@ -3161,10 +3157,10 @@ PaletteProvider.prototype.getPaletteEntries = function () {
lassoTool = this._lassoTool;
function createAction(type, group, className, title, options) {
function createListener(event) {
let shape = elementFactory.createShape((0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)({
let shape = elementFactory.createShape((0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)({
type: type
}, options));
(0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(shape.businessObject, {
(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(shape.businessObject, {
id: shape.id
});
if (options) {
Expand All @@ -3188,7 +3184,7 @@ PaletteProvider.prototype.getPaletteEntries = function () {
function appendCSSStyleCheat(customIcons) {
const sheetEl = document.createElement("style");
document.head.appendChild(sheetEl);
let customIconDict = new src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_1__.Dictionary();
let customIconDict = new src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_0__.Dictionary();
customIconDict.appendDict(customIcons);
let customIconDictKeys = customIconDict.keysArray();
customIconDictKeys.forEach(name => {
Expand All @@ -3201,42 +3197,27 @@ 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_KEY);
if (customIcons) {
customIcons = JSON.parse(customIcons);
if (customIconsLegacy(customIcons)) {
customIcons = convertLegacyAppendedIconsToDict(customIcons);
}
if (customIcons.entries && customIcons.entries.forEach) {
const customIconsDict = new src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_1__.Dictionary();
customIcons.entries.forEach(entry => {
customIconsDict.putEntry(entry);
});
(0,src_app_tools_icon_set_config_domain_allIcons__WEBPACK_IMPORTED_MODULE_0__.overrideAppendedIcons)(customIconsDict);
appendCSSStyleCheat(customIcons);
}
}
iconDictionary?.initTypeDictionaries(config.actors, config.workObjects);
let actorTypes = iconDictionary?.getTypeDictionary(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__.ElementTypes.ACTOR);
let actorTypes = iconDictionary?.getTypeDictionary(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.ACTOR);
actorTypes?.keysArray().forEach(name => {
addCanvasObjectTypes(name, createAction, actions, "actor", src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__.ElementTypes.ACTOR);
addCanvasObjectTypes(name, createAction, actions, "actor", src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.ACTOR);
});
(0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(actions, {
(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {
"actor-separator": {
group: "actor",
separator: true
}
});
let workObjectTypes = iconDictionary?.getTypeDictionary(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__.ElementTypes.WORKOBJECT);
let workObjectTypes = iconDictionary?.getTypeDictionary(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.WORKOBJECT);
workObjectTypes?.keysArray().forEach(name => {
addCanvasObjectTypes(name, createAction, actions, "actor", src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__.ElementTypes.WORKOBJECT);
addCanvasObjectTypes(name, createAction, actions, "actor", src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.WORKOBJECT);
});
(0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(actions, {
(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, {
"workObject-separator": {
group: "workObject",
separator: true
},
"domainStory-group": createAction(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_2__.ElementTypes.GROUP, "group", "icon-domain-story-tool-group", "group"),
"domainStory-group": createAction(src_app_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_1__.ElementTypes.GROUP, "group", "icon-domain-story-tool-group", "group"),
"group-separator": {
group: "group",
separator: true
Expand Down Expand Up @@ -3268,17 +3249,7 @@ function addCanvasObjectTypes(name, createAction, actions, className, elementTyp
let icon = iconDictionary.getIconForBPMN(elementType, name);
let action = [];
action["domainStory-" + className + name] = createAction(`${elementType}${name}`, className, icon, name);
(0,min_dash__WEBPACK_IMPORTED_MODULE_4__.assign)(actions, action);
}
function customIconsLegacy(customIcons) {
return !(Object.keys(customIcons).length === 1 && Object.keys(customIcons)[0] === "entries");
}
function convertLegacyAppendedIconsToDict(customIcons) {
let dict = new src_app_domain_entities_dictionary__WEBPACK_IMPORTED_MODULE_1__.Dictionary();
Object.keys(customIcons).forEach(key => {
dict.set(key, customIcons[key]);
});
return dict;
(0,min_dash__WEBPACK_IMPORTED_MODULE_2__.assign)(actions, action);
}
// For some reason its important to use ' in the content for the Palette and ContextPad
// Do not change!
Expand Down Expand Up @@ -4129,7 +4100,6 @@ class Configuration {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ APPENDED_ICONS_KEY: () => (/* binding */ APPENDED_ICONS_KEY),
/* harmony export */ BLACK: () => (/* binding */ BLACK),
/* harmony export */ BLUE: () => (/* binding */ BLUE),
/* harmony export */ CYAN: () => (/* binding */ CYAN),
Expand Down Expand Up @@ -4164,7 +4134,6 @@ const INITIAL_TITLE = '< title >';
const INITIAL_DESCRIPTION = '';
const INITIAL_ICON_SET_NAME = 'default';
/** LocalStorage KEYS **/
const APPENDED_ICONS_KEY = 'appendedIcons';
const ICON_SET_CONFIGURATION_KEY = 'iconSetConfiguration';
const DRAFTS_KEY = 'autosaveDrafts';
const VERSION_KEY = 'version';
Expand Down Expand Up @@ -11108,7 +11077,7 @@ class HeaderButtonsComponent {
},
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;", 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", 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");
Expand Down Expand Up @@ -11631,7 +11600,7 @@ __webpack_require__.r(__webpack_exports__);
// The list of file replacements can be found in `angular.json`.
const environment = {
production: false,
version: '2.1.0-dev'
version: '2.2.0-dev'
};
/*
* For easier debugging in development mode, you can import the following file
Expand Down
2 changes: 1 addition & 1 deletion app-latest-build/main.js.map

Large diffs are not rendered by default.

0 comments on commit a33c2e7

Please sign in to comment.