@eclipse-scout/svg 25.2.15 → 25.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/main/js/svg/SvgField.ts +4 -7
- package/target/dist/d.ts/svg/SvgField.d.ts +1 -1
- package/target/dist/d.ts/svg/SvgField.d.ts.map +1 -1
- package/target/dist/dev/eclipse-scout-svg.js +2 -29
- package/target/dist/dev/eclipse-scout-svg.js.map +1 -1
- package/target/dist/prod/eclipse-scout-svg-8a7bb766df55a7a976a5.min.js +3 -0
- package/target/dist/prod/eclipse-scout-svg-8a7bb766df55a7a976a5.min.js.map +1 -0
- package/target/dist/prod/eclipse-scout-svg-f35274778d81a467a79a.min.js +0 -3
- package/target/dist/prod/eclipse-scout-svg-f35274778d81a467a79a.min.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-scout/svg",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.20",
|
|
4
4
|
"description": "Eclipse Scout",
|
|
5
5
|
"author": "BSI Business Systems Integration AG",
|
|
6
6
|
"homepage": "https://eclipse.dev/scout/",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"target/dist"
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@eclipse-scout/cli": "25.2.
|
|
23
|
+
"@eclipse-scout/cli": "25.2.20",
|
|
24
24
|
"@eclipse-scout/releng": "^25.1.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@eclipse-scout/core": "25.2.
|
|
27
|
+
"@eclipse-scout/core": "25.2.20",
|
|
28
28
|
"jquery": "3.7.1"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010,
|
|
2
|
+
* Copyright (c) 2010, 2025 BSI Business Systems Integration AG
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made
|
|
5
5
|
* available under the terms of the Eclipse Public License 2.0
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* SPDX-License-Identifier: EPL-2.0
|
|
9
9
|
*/
|
|
10
|
-
import {AppLinkKeyStroke, FormField} from '@eclipse-scout/core';
|
|
11
|
-
import $ from 'jquery';
|
|
10
|
+
import {AppLinkKeyStroke, events, FormField} from '@eclipse-scout/core';
|
|
12
11
|
import {SvgFieldEventMap, SvgFieldModel} from '../index';
|
|
13
12
|
|
|
14
13
|
export class SvgField extends FormField implements SvgFieldModel {
|
|
@@ -47,10 +46,8 @@ export class SvgField extends FormField implements SvgFieldModel {
|
|
|
47
46
|
.unfocusable();
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
protected _onAppLinkAction(event: JQuery.
|
|
51
|
-
|
|
52
|
-
let ref = $target.data('ref') as string;
|
|
53
|
-
this._triggerAppLinkAction(ref);
|
|
49
|
+
protected _onAppLinkAction(event: JQuery.TriggeredEvent) {
|
|
50
|
+
events.triggerAppLinkAction(event, this._triggerAppLinkAction.bind(this));
|
|
54
51
|
event.preventDefault();
|
|
55
52
|
}
|
|
56
53
|
|
|
@@ -8,7 +8,7 @@ export declare class SvgField extends FormField implements SvgFieldModel {
|
|
|
8
8
|
protected _renderProperties(): void;
|
|
9
9
|
protected _initKeyStrokeContext(): void;
|
|
10
10
|
protected _renderSvgDocument(): void;
|
|
11
|
-
protected _onAppLinkAction(event: JQuery.
|
|
11
|
+
protected _onAppLinkAction(event: JQuery.TriggeredEvent): void;
|
|
12
12
|
protected _triggerAppLinkAction(ref: string): void;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=SvgField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvgField.d.ts","sourceRoot":"","sources":["../../../../src/main/js/svg/SvgField.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"SvgField.d.ts","sourceRoot":"","sources":["../../../../src/main/js/svg/SvgField.ts"],"names":[],"mappings":"AASA,OAAO,EAA2B,SAAS,EAAC,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAEzD,qBAAa,QAAS,SAAQ,SAAU,YAAW,aAAa;IACtD,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC;IAEnC,WAAW,EAAE,MAAM,CAAC;cAED,OAAO;cAQP,iBAAiB;cAKjB,qBAAqB;IAKxC,SAAS,CAAC,kBAAkB;IAY5B,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc;IAKvD,SAAS,CAAC,qBAAqB,CAAC,GAAG,EAAE,MAAM;CAK5C"}
|
|
@@ -50,10 +50,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50
50
|
/* harmony export */ SvgField: () => (/* binding */ SvgField)
|
|
51
51
|
/* harmony export */ });
|
|
52
52
|
/* harmony import */ var _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @eclipse-scout/core */ "@eclipse-scout/core");
|
|
53
|
-
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jquery */ "jquery");
|
|
54
|
-
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__);
|
|
55
53
|
/*
|
|
56
|
-
* Copyright (c) 2010,
|
|
54
|
+
* Copyright (c) 2010, 2025 BSI Business Systems Integration AG
|
|
57
55
|
*
|
|
58
56
|
* This program and the accompanying materials are made
|
|
59
57
|
* available under the terms of the Eclipse Public License 2.0
|
|
@@ -62,7 +60,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62
60
|
* SPDX-License-Identifier: EPL-2.0
|
|
63
61
|
*/
|
|
64
62
|
|
|
65
|
-
|
|
66
63
|
class SvgField extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.FormField {
|
|
67
64
|
svgDocument;
|
|
68
65
|
_render() {
|
|
@@ -89,9 +86,7 @@ class SvgField extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.FormFiel
|
|
|
89
86
|
this.$field.find('.app-link').on('click', this._onAppLinkAction.bind(this)).attr('tabindex', '0').unfocusable();
|
|
90
87
|
}
|
|
91
88
|
_onAppLinkAction(event) {
|
|
92
|
-
|
|
93
|
-
let ref = $target.data('ref');
|
|
94
|
-
this._triggerAppLinkAction(ref);
|
|
89
|
+
_eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.events.triggerAppLinkAction(event, this._triggerAppLinkAction.bind(this));
|
|
95
90
|
event.preventDefault();
|
|
96
91
|
}
|
|
97
92
|
_triggerAppLinkAction(ref) {
|
|
@@ -161,16 +156,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
161
156
|
__webpack_require__.r(__webpack_exports__);
|
|
162
157
|
|
|
163
158
|
|
|
164
|
-
/***/ }),
|
|
165
|
-
|
|
166
|
-
/***/ "jquery":
|
|
167
|
-
/*!*************************!*\
|
|
168
|
-
!*** external "jquery" ***!
|
|
169
|
-
\*************************/
|
|
170
|
-
/***/ ((module) => {
|
|
171
|
-
|
|
172
|
-
module.exports = require("jquery");
|
|
173
|
-
|
|
174
159
|
/***/ }),
|
|
175
160
|
|
|
176
161
|
/***/ "@eclipse-scout/core":
|
|
@@ -210,18 +195,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__;
|
|
|
210
195
|
/******/ }
|
|
211
196
|
/******/
|
|
212
197
|
/************************************************************************/
|
|
213
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
214
|
-
/******/ (() => {
|
|
215
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
216
|
-
/******/ __webpack_require__.n = (module) => {
|
|
217
|
-
/******/ var getter = module && module.__esModule ?
|
|
218
|
-
/******/ () => (module['default']) :
|
|
219
|
-
/******/ () => (module);
|
|
220
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
221
|
-
/******/ return getter;
|
|
222
|
-
/******/ };
|
|
223
|
-
/******/ })();
|
|
224
|
-
/******/
|
|
225
198
|
/******/ /* webpack/runtime/define property getters */
|
|
226
199
|
/******/ (() => {
|
|
227
200
|
/******/ // define getter functions for harmony exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eclipse-scout-svg.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AASkD;AAClB;AAED;AACK;AACG;AACD;AAEtC,iEAAeC,mCAAI,EAAC;AAEpBD,8DAAa,CAACE,GAAG,EAAE,CAACC,iBAAiB,CAAC,OAAO,EAAEF,mCAAI,CAAC,C
|
|
1
|
+
{"version":3,"file":"eclipse-scout-svg.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AASkD;AAClB;AAED;AACK;AACG;AACD;AAEtC,iEAAeC,mCAAI,EAAC;AAEpBD,8DAAa,CAACE,GAAG,EAAE,CAACC,iBAAiB,CAAC,OAAO,EAAEF,mCAAI,CAAC,C;;;;;;;;;;;;;;;ACnBpD;;;;;;;;;AASwE;AAGlE,MAAOM,QAAS,SAAQD,0DAAS;EAIrCE,WAAW;EAEQC,OAAOA,CAAA;IACxB,IAAI,CAACC,YAAY,CAAC,IAAI,CAACC,OAAO,EAAE,WAAW,CAAC;IAC5C,IAAI,CAACC,QAAQ,EAAE;IACf,IAAI,CAACC,QAAQ,CAAC,IAAI,CAACF,OAAO,CAACG,OAAO,EAAE,CAAC;IACrC,IAAI,CAACC,qBAAqB,EAAE;IAC5B,IAAI,CAACC,SAAS,EAAE;EAClB;EAEmBC,iBAAiBA,CAAA;IAClC,KAAK,CAACA,iBAAiB,EAAE;IACzB,IAAI,CAACC,kBAAkB,EAAE;EAC3B;EAEmBC,qBAAqBA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AC;IAC7B;EACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AG1BF,0E;;;;;;SCAA;SACA;;SAEA;SACA;SACA;SACA;SACA;SACA;SACA;SACA;SACA;SACA;SACA;SACA;SACA;;SAEA;SACA;;SAEA;SACA;SACA;;;;;UCtBA;UACA;UACA;UACA;UACA,yCAAyC,wCAAwC;UACjF;UACA;UACA,E;;;;;UCPA,wF;;;;;UCAA;UACA;UACA;UACA,uDAAuD,iBAAiB;UACxE;UACA,gDAAgD,aAAa;UAC7D,E;;;;;SENA;SACA;SACA;SACA","sources":["webpack:///./src/main/js/index.ts","webpack:///./src/main/js/svg/SvgField.ts","webpack:///./src/main/js/svg/SvgFieldAdapter.ts","webpack:///./src/main/js/svg/SvgFieldEventMap.ts","webpack:///./src/main/js/svg/SvgFieldModel.ts","webpack:///external module \"@eclipse-scout/core\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"sourcesContent":["/*\n * Copyright (c) 2010, 2023 BSI Business Systems Integration AG\n *\n * This program and the accompanying materials are made\n * available under the terms of the Eclipse Public License 2.0\n * which is available at https://www.eclipse.org/legal/epl-2.0/\n *\n * SPDX-License-Identifier: EPL-2.0\n */\nimport {ObjectFactory} from '@eclipse-scout/core';\nimport * as self from './index';\n\nexport * from './svg/SvgField';\nexport * from './svg/SvgFieldModel';\nexport * from './svg/SvgFieldEventMap';\nexport * from './svg/SvgFieldAdapter';\n\nexport default self;\n\nObjectFactory.get().registerNamespace('scout', self);\n","/*\n * Copyright (c) 2010, 2025 BSI Business Systems Integration AG\n *\n * This program and the accompanying materials are made\n * available under the terms of the Eclipse Public License 2.0\n * which is available at https://www.eclipse.org/legal/epl-2.0/\n *\n * SPDX-License-Identifier: EPL-2.0\n */\nimport {AppLinkKeyStroke, events, FormField} from '@eclipse-scout/core';\nimport {SvgFieldEventMap, SvgFieldModel} from '../index';\n\nexport class SvgField extends FormField implements SvgFieldModel {\n declare model: SvgFieldModel;\n declare eventMap: SvgFieldEventMap;\n\n svgDocument: string;\n\n protected override _render() {\n this.addContainer(this.$parent, 'svg-field');\n this.addLabel();\n this.addField(this.$parent.makeDiv());\n this.addMandatoryIndicator();\n this.addStatus();\n }\n\n protected override _renderProperties() {\n super._renderProperties();\n this._renderSvgDocument();\n }\n\n protected override _initKeyStrokeContext() {\n super._initKeyStrokeContext();\n this.keyStrokeContext.registerKeyStroke(new AppLinkKeyStroke(this, this._onAppLinkAction));\n }\n\n protected _renderSvgDocument() {\n if (!this.svgDocument) {\n this.$field.empty();\n return;\n }\n this.$field.html(this.svgDocument);\n this.$field.find('.app-link')\n .on('click', this._onAppLinkAction.bind(this))\n .attr('tabindex', '0')\n .unfocusable();\n }\n\n protected _onAppLinkAction(event: JQuery.TriggeredEvent) {\n events.triggerAppLinkAction(event, this._triggerAppLinkAction.bind(this));\n event.preventDefault();\n }\n\n protected _triggerAppLinkAction(ref: string) {\n this.trigger('appLinkAction', {\n ref: ref\n });\n }\n}\n","/*\n * Copyright (c) 2010, 2023 BSI Business Systems Integration AG\n *\n * This program and the accompanying materials are made\n * available under the terms of the Eclipse Public License 2.0\n * which is available at https://www.eclipse.org/legal/epl-2.0/\n *\n * SPDX-License-Identifier: EPL-2.0\n */\nimport {AppLinkActionEvent, Event, FormFieldAdapter} from '@eclipse-scout/core';\nimport {SvgField} from '../index';\n\nexport class SvgFieldAdapter extends FormFieldAdapter {\n\n protected _onWidgetAppLinkAction(event: AppLinkActionEvent) {\n this._send('appLinkAction', {\n ref: event.ref\n });\n }\n\n protected override _onWidgetEvent(event: Event<SvgField>) {\n if (event.type === 'appLinkAction') {\n this._onWidgetAppLinkAction(event as AppLinkActionEvent);\n } else {\n super._onWidgetEvent(event);\n }\n }\n}\n","/*\n * Copyright (c) 2010, 2023 BSI Business Systems Integration AG\n *\n * This program and the accompanying materials are made\n * available under the terms of the Eclipse Public License 2.0\n * which is available at https://www.eclipse.org/legal/epl-2.0/\n *\n * SPDX-License-Identifier: EPL-2.0\n */\nimport {AppLinkActionEvent, FormFieldEventMap} from '@eclipse-scout/core';\n\nexport interface SvgFieldEventMap extends FormFieldEventMap {\n 'appLinkAction': AppLinkActionEvent;\n}\n","/*\n * Copyright (c) 2010, 2023 BSI Business Systems Integration AG\n *\n * This program and the accompanying materials are made\n * available under the terms of the Eclipse Public License 2.0\n * which is available at https://www.eclipse.org/legal/epl-2.0/\n *\n * SPDX-License-Identifier: EPL-2.0\n */\nimport {FormFieldModel} from '@eclipse-scout/core';\n\nexport interface SvgFieldModel extends FormFieldModel {\n svgDocument?: string;\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./src/main/js/index.ts\");\n",""],"names":["ObjectFactory","self","get","registerNamespace","AppLinkKeyStroke","events","FormField","SvgField","svgDocument","_render","addContainer","$parent","addLabel","addField","makeDiv","addMandatoryIndicator","addStatus","_renderProperties","_renderSvgDocument","_initKeyStrokeContext","keyStrokeContext","registerKeyStroke","_onAppLinkAction","$field","empty","html","find","on","bind","attr","unfocusable","event","triggerAppLinkAction","_triggerAppLinkAction","preventDefault","ref","trigger","FormFieldAdapter","SvgFieldAdapter","_onWidgetAppLinkAction","_send","_onWidgetEvent","type"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import*as i from"@eclipse-scout/core";var r={};r.d=(t,e)=>{for(var d in e)r.o(e,d)&&!r.o(t,d)&&Object.defineProperty(t,d,{enumerable:!0,get:e[d]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{SvgField:()=>p,SvgFieldAdapter:()=>s,default:()=>_});var a={};r.r(a),r.d(a,{SvgField:()=>p,SvgFieldAdapter:()=>s,default:()=>_});var c=t=>{var e={};return r.d(e,t),e},A=t=>()=>t;const o=c({AppLinkKeyStroke:()=>i.AppLinkKeyStroke,FormField:()=>i.FormField,FormFieldAdapter:()=>i.FormFieldAdapter,ObjectFactory:()=>i.ObjectFactory,events:()=>i.events});class p extends o.FormField{svgDocument;_render(){this.addContainer(this.$parent,"svg-field"),this.addLabel(),this.addField(this.$parent.makeDiv()),this.addMandatoryIndicator(),this.addStatus()}_renderProperties(){super._renderProperties(),this._renderSvgDocument()}_initKeyStrokeContext(){super._initKeyStrokeContext(),this.keyStrokeContext.registerKeyStroke(new o.AppLinkKeyStroke(this,this._onAppLinkAction))}_renderSvgDocument(){if(!this.svgDocument){this.$field.empty();return}this.$field.html(this.svgDocument),this.$field.find(".app-link").on("click",this._onAppLinkAction.bind(this)).attr("tabindex","0").unfocusable()}_onAppLinkAction(e){o.events.triggerAppLinkAction(e,this._triggerAppLinkAction.bind(this)),e.preventDefault()}_triggerAppLinkAction(e){this.trigger("appLinkAction",{ref:e})}}class s extends o.FormFieldAdapter{_onWidgetAppLinkAction(e){this._send("appLinkAction",{ref:e.ref})}_onWidgetEvent(e){e.type==="appLinkAction"?this._onWidgetAppLinkAction(e):super._onWidgetEvent(e)}}const _=a;o.ObjectFactory.get().registerNamespace("scout",a);var l=n.SvgField,g=n.SvgFieldAdapter,v=n.default;export{l as SvgField,g as SvgFieldAdapter,v as default};
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=eclipse-scout-svg-8a7bb766df55a7a976a5.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eclipse-scout-svg-8a7bb766df55a7a976a5.min.js","mappings":"sCACA,IAAIA,EAAsB,CAAC,ECA3BA,EAAoB,EAAI,CAACC,EAASC,IAAe,CAChD,QAAQC,KAAOD,EACXF,EAAoB,EAAEE,EAAYC,CAAG,GAAK,CAACH,EAAoB,EAAEC,EAASE,CAAG,GAC/E,OAAO,eAAeF,EAASE,EAAK,CAAE,WAAY,GAAM,IAAKD,EAAWC,CAAG,CAAE,CAAC,CAGjF,ECPAH,EAAoB,EAAI,CAACI,EAAKC,IAAU,OAAO,UAAU,eAAe,KAAKD,EAAKC,CAAI,ECCtFL,EAAoB,EAAKC,GAAY,CACjC,OAAO,OAAW,KAAe,OAAO,aAC1C,OAAO,eAAeA,EAAS,OAAO,YAAa,CAAE,MAAO,QAAS,CAAC,EAEvE,OAAO,eAAeA,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,CAC7D,E,wJCNA,IAAIK,EAAKC,GAAM,CACd,IAAID,EAAI,CAAC,EAAG,OAAAN,EA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AAMK,G,CACZ,CACH,CAEmBM,eAAeX,EAAwB,CACpDA,EAAMY,OAAS,gBACjB,KAAKH,uBAAuBT,CAA2B,EAEvD,MAAMW,eAAeX,CAAK,CAE9B,C,CCTF,QAAea,EAEfC,EAAAA,cAAcC,IAAI,EAAEC,kBAAkB,QAASH,CAAI,E","sources":["bootstrap","define property getters","hasOwnProperty shorthand","make namespace object","core\"","SvgField.ts","SvgFieldAdapter.ts","index.ts"],"names":["__webpack_require__","exports","definition","key","obj","prop","x","y","__WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__","SvgField","FormField","svgDocument","_render","addContainer","$parent","addLabel","addField","makeDiv","addMandatoryIndicator","addStatus","_renderProperties","_renderSvgDocument","_initKeyStrokeContext","keyStrokeContext","registerKeyStroke","AppLinkKeyStroke","_onAppLinkAction","$field","empty","html","find","on","bind","attr","unfocusable","event","events","triggerAppLinkAction","_triggerAppLinkAction","preventDefault","ref","trigger","SvgFieldAdapter","FormFieldAdapter","_onWidgetAppLinkAction","_send","_onWidgetEvent","type","self","ObjectFactory","get","registerNamespace"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import*as n from"@eclipse-scout/core";var r={};r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};r.r(a),r.d(a,{SvgField:()=>p,SvgFieldAdapter:()=>s,default:()=>_});var d={};r.r(d),r.d(d,{SvgField:()=>p,SvgFieldAdapter:()=>s,default:()=>_});var l=t=>{var e={};return r.d(e,t),e},F=t=>()=>t;const o=l({AppLinkKeyStroke:()=>n.AppLinkKeyStroke,FormField:()=>n.FormField,FormFieldAdapter:()=>n.FormFieldAdapter,ObjectFactory:()=>n.ObjectFactory}),g=require("jquery");var u=r.n(g);class p extends o.FormField{svgDocument;_render(){this.addContainer(this.$parent,"svg-field"),this.addLabel(),this.addField(this.$parent.makeDiv()),this.addMandatoryIndicator(),this.addStatus()}_renderProperties(){super._renderProperties(),this._renderSvgDocument()}_initKeyStrokeContext(){super._initKeyStrokeContext(),this.keyStrokeContext.registerKeyStroke(new o.AppLinkKeyStroke(this,this._onAppLinkAction))}_renderSvgDocument(){if(!this.svgDocument){this.$field.empty();return}this.$field.html(this.svgDocument),this.$field.find(".app-link").on("click",this._onAppLinkAction.bind(this)).attr("tabindex","0").unfocusable()}_onAppLinkAction(e){let c=u()(e.delegateTarget).data("ref");this._triggerAppLinkAction(c),e.preventDefault()}_triggerAppLinkAction(e){this.trigger("appLinkAction",{ref:e})}}class s extends o.FormFieldAdapter{_onWidgetAppLinkAction(e){this._send("appLinkAction",{ref:e.ref})}_onWidgetEvent(e){e.type==="appLinkAction"?this._onWidgetAppLinkAction(e):super._onWidgetEvent(e)}}const _=d;o.ObjectFactory.get().registerNamespace("scout",d);var v=a.SvgField,A=a.SvgFieldAdapter,f=a.default;export{v as SvgField,A as SvgFieldAdapter,f as default};
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=eclipse-scout-svg-f35274778d81a467a79a.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eclipse-scout-svg-f35274778d81a467a79a.min.js","mappings":"sCACA,IAAIA,EAAsB,CAAC,ECA3BA,EAAoB,EAAKC,GAAW,CACnC,IAAIC,EAASD,GAAUA,EAAO,WAC7B,IAAOA,EAAO,QACd,IAAOA,EACR,OAAAD,EAAoB,EAAEE,EAAQ,CAAE,EAAGA,CAAO,CAAC,EACpCA,CACR,ECNAF,EAAoB,EAAI,CAACG,EAASC,IAAe,CAChD,QAAQC,KAAOD,EACXJ,EAAoB,EAAEI,EAAY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E,KAAK,KAAKlB,WAAW,EACjC,KAAKgB,OAAOG,KAAK,WAAW,EACzBC,GAAG,QAAS,KAAKL,iBAAiBM,KAAK,IAAI,CAAC,EAC5CC,KAAK,WAAY,GAAG,EACpBC,YAAY,CACjB,CAEUR,iBAAiBS,EAAqD,CAE9E,IAAIC,EADUC,EAAAA,EAAEF,EAAMG,cAAc,EAClBC,KAAK,KAAK,EAC5B,KAAKC,sBAAsBJ,CAAG,EAC9BD,EAAMM,eAAe,CACvB,CAEUD,sBAAsBJ,EAAa,CAC3C,KAAKM,QAAQ,gBAAiB,CAC5BN,IAAKA,C,CACN,CACH,C,CChDI,MAAOO,UAAwBC,EAAAA,gBAAiB,CAE1CC,uBAAuBV,EAA2B,CAC1D,KAAKW,MAAM,gBAAiB,CAC1BV,IAAKD,EAAMC,G,CACZ,CACH,CAEmBW,eAAeZ,EAAwB,CACpDA,EAAMa,OAAS,gBACjB,KAAKH,uBAAuBV,CAA2B,EAEvD,MAAMY,eAAeZ,CAAK,CAE9B,C,CCTF,QAAec,EAEfC,EAAAA,cAAcC,IAAI,EAAEC,kBAAkB,QAASH,CAAI,E","sources":["bootstrap","compat get default export","define property getters","hasOwnProperty shorthand","make namespace object","core\"","external commonjs \"jquery\"","SvgField.ts","SvgFieldAdapter.ts","index.ts"],"names":["__webpack_require__","module","getter","exports","definition","key","obj","prop","x","y","__WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__","SvgField","FormField","svgDocument","_render","addContainer","$parent","addLabel","addField","makeDiv","addMandatoryIndicator","addStatus","_renderProperties","_renderSvgDocument","_initKeyStrokeContext","keyStrokeContext","registerKeyStroke","AppLinkKeyStroke","_onAppLinkAction","$field","empty","html","find","on","bind","attr","unfocusable","event","ref","$","delegateTarget","data","_triggerAppLinkAction","preventDefault","trigger","SvgFieldAdapter","FormFieldAdapter","_onWidgetAppLinkAction","_send","_onWidgetEvent","type","self","ObjectFactory","get","registerNamespace"],"sourceRoot":""}
|