@eclipse-scout/svg 23.2.13 → 24.1.0-beta.1
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 +8 -8
- package/target/dist/dev/eclipse-scout-svg.js +6 -6
- package/target/dist/dev/eclipse-scout-svg.js.map +1 -1
- package/target/dist/prod/eclipse-scout-svg-4aa27e9bc198002aad03.min.js +3 -0
- package/target/dist/prod/eclipse-scout-svg-4aa27e9bc198002aad03.min.js.map +1 -0
- package/target/dist/prod/eclipse-scout-svg-c83fb29cf2e0b239bf03.min.js +0 -3
- package/target/dist/prod/eclipse-scout-svg-c83fb29cf2e0b239bf03.min.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-scout/svg",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0-beta.1",
|
|
4
4
|
"description": "Eclipse Scout",
|
|
5
5
|
"author": "BSI Business Systems Integration AG",
|
|
6
6
|
"homepage": "https://www.eclipse.org/scout",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "EPL-2.0",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
14
|
-
"npm": ">=
|
|
15
|
-
"pnpm": ">=
|
|
13
|
+
"node": ">=20.10.0",
|
|
14
|
+
"npm": ">=10.2.3",
|
|
15
|
+
"pnpm": ">=8.11.0"
|
|
16
16
|
},
|
|
17
17
|
"main": "./target/dist/dev/eclipse-scout-svg.js",
|
|
18
18
|
"files": [
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"target/dist"
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@eclipse-scout/cli": "
|
|
24
|
-
"@eclipse-scout/releng": "^
|
|
23
|
+
"@eclipse-scout/cli": "24.1.0-beta.1",
|
|
24
|
+
"@eclipse-scout/releng": "^24.1.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@eclipse-scout/core": "
|
|
28
|
-
"jquery": "3.
|
|
27
|
+
"@eclipse-scout/core": "24.1.0-beta.1",
|
|
28
|
+
"jquery": "3.7.1"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build:dev": "scout-scripts build:dev",
|
|
@@ -9,8 +9,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__ from "@ecli
|
|
|
9
9
|
|
|
10
10
|
__webpack_require__.r(__webpack_exports__);
|
|
11
11
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
/* harmony export */
|
|
13
|
-
/* harmony export */
|
|
12
|
+
/* harmony export */ SvgField: () => (/* reexport safe */ _svg_SvgField__WEBPACK_IMPORTED_MODULE_1__.SvgField),
|
|
13
|
+
/* harmony export */ SvgFieldAdapter: () => (/* reexport safe */ _svg_SvgFieldAdapter__WEBPACK_IMPORTED_MODULE_4__.SvgFieldAdapter),
|
|
14
14
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15
15
|
/* harmony export */ });
|
|
16
16
|
/* harmony import */ var _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @eclipse-scout/core */ "@eclipse-scout/core");
|
|
@@ -47,14 +47,14 @@ _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.ObjectFactory.get().registerNam
|
|
|
47
47
|
|
|
48
48
|
__webpack_require__.r(__webpack_exports__);
|
|
49
49
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
50
|
-
/* harmony export */
|
|
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
53
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jquery */ "jquery");
|
|
54
54
|
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__);
|
|
55
55
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
56
|
-
function _toPropertyKey(
|
|
57
|
-
function _toPrimitive(
|
|
56
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
57
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
58
58
|
/*
|
|
59
59
|
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
60
60
|
*
|
|
@@ -117,7 +117,7 @@ class SvgField extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.FormFiel
|
|
|
117
117
|
|
|
118
118
|
__webpack_require__.r(__webpack_exports__);
|
|
119
119
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
120
|
-
/* harmony export */
|
|
120
|
+
/* harmony export */ SvgFieldAdapter: () => (/* binding */ SvgFieldAdapter)
|
|
121
121
|
/* harmony export */ });
|
|
122
122
|
/* harmony import */ var _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @eclipse-scout/core */ "@eclipse-scout/core");
|
|
123
123
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eclipse-scout-svg.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AASkD;AAEnB;AACK;AACG;AACD;AAEN;AAEhC,iEAAeC,mCAAI,EAAC;AA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AAgD,aAAa;UAC7D;;;;;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 commonjs \"jquery\"","webpack:///external module \"@eclipse-scout/core\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","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';\n\nexport * from './svg/SvgField';\nexport * from './svg/SvgFieldModel';\nexport * from './svg/SvgFieldEventMap';\nexport * from './svg/SvgFieldAdapter';\n\nimport * as self from './index';\n\nexport default self;\n\nObjectFactory.get().registerNamespace('scout', self);\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 {AppLinkKeyStroke, FormField} from '@eclipse-scout/core';\nimport $ from 'jquery';\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.KeyboardEventBase | JQuery.ClickEvent) {\n let $target = $(event.delegateTarget);\n let ref = $target.data('ref') as string;\n this._triggerAppLinkAction(ref);\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 = require(\"jquery\");","var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }\nvar y = x => () => x\nmodule.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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\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","FormField","$","SvgField","constructor","arguments","_defineProperty","_render","addContainer","$parent","addLabel","addField","makeDiv","addMandatoryIndicator","addStatus","_renderProperties","_renderSvgDocument","_initKeyStrokeContext","keyStrokeContext","registerKeyStroke","_onAppLinkAction","svgDocument","$field","empty","html","find","on","bind","attr","unfocusable","event","$target","delegateTarget","ref","data","_triggerAppLinkAction","preventDefault","trigger","FormFieldAdapter","SvgFieldAdapter","_onWidgetAppLinkAction","_send","_onWidgetEvent","type"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import*as o 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 n={};r.r(n),r.d(n,{SvgField:()=>s,SvgFieldAdapter:()=>_,default:()=>c});var d={};r.r(d),r.d(d,{SvgField:()=>s,SvgFieldAdapter:()=>_,default:()=>c});var l=t=>{var e={};return r.d(e,t),e},y=t=>()=>t;const p=l({AppLinkKeyStroke:()=>o.AppLinkKeyStroke,FormField:()=>o.FormField,FormFieldAdapter:()=>o.FormFieldAdapter,ObjectFactory:()=>o.ObjectFactory}),u=require("jquery");var g=r.n(u);function v(t,e,i){return e=f(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function f(t){var e=m(t,"string");return typeof e=="symbol"?e:String(e)}function m(t,e){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class s extends p.FormField{constructor(){super(...arguments),v(this,"svgDocument",void 0)}_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 p.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 a=g()(e.delegateTarget).data("ref");this._triggerAppLinkAction(a),e.preventDefault()}_triggerAppLinkAction(e){this.trigger("appLinkAction",{ref:e})}}class _ extends p.FormFieldAdapter{_onWidgetAppLinkAction(e){this._send("appLinkAction",{ref:e.ref})}_onWidgetEvent(e){e.type==="appLinkAction"?this._onWidgetAppLinkAction(e):super._onWidgetEvent(e)}}const c=d;p.ObjectFactory.get().registerNamespace("scout",d);var A=n.SvgField,S=n.SvgFieldAdapter,b=n.default;export{A as SvgField,S as SvgFieldAdapter,b as default};
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=eclipse-scout-svg-4aa27e9bc198002aad03.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eclipse-scout-svg-4aa27e9bc198002aad03.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,EAA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AC3F,CAEUL,oBAAkB,CAC1B,GAAI,CAAC,KAAKM,YAAa,CACrB,KAAKC,OAAOC,MAAM,EAClB,MACF,CACA,KAAKD,OAAOE,KAAK,KAAKH,WAAW,EACjC,KAAKC,OAAOG,KAAK,WAAW,EACzBC,GAAG,QAAS,KAAKN,iBAAiBO,KAAK,IAAI,CAAC,EAC5CC,KAAK,WAAY,GAAG,EACpBC,YAAY,CACjB,CAEUT,iBAAiBU,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,CCRF,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","constructor","arguments","_defineProperty","_render","addContainer","$parent","addLabel","addField","makeDiv","addMandatoryIndicator","addStatus","_renderProperties","_renderSvgDocument","_initKeyStrokeContext","keyStrokeContext","registerKeyStroke","AppLinkKeyStroke","_onAppLinkAction","svgDocument","$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":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import*as o 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 n={};r.r(n),r.d(n,{SvgField:()=>s,SvgFieldAdapter:()=>_,default:()=>l});var d={};r.r(d),r.d(d,{SvgField:()=>s,SvgFieldAdapter:()=>_,default:()=>l});var c=t=>{var e={};return r.d(e,t),e},y=t=>()=>t;const p=c({AppLinkKeyStroke:()=>o.AppLinkKeyStroke,FormField:()=>o.FormField,FormFieldAdapter:()=>o.FormFieldAdapter,ObjectFactory:()=>o.ObjectFactory}),u=require("jquery");var g=r.n(u);function f(t,e,i){return e=v(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t){var e=m(t,"string");return typeof e=="symbol"?e:String(e)}function m(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class s extends p.FormField{constructor(){super(...arguments),f(this,"svgDocument",void 0)}_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 p.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 a=g()(e.delegateTarget).data("ref");this._triggerAppLinkAction(a),e.preventDefault()}_triggerAppLinkAction(e){this.trigger("appLinkAction",{ref:e})}}class _ extends p.FormFieldAdapter{_onWidgetAppLinkAction(e){this._send("appLinkAction",{ref:e.ref})}_onWidgetEvent(e){e.type==="appLinkAction"?this._onWidgetAppLinkAction(e):super._onWidgetEvent(e)}}const l=d;p.ObjectFactory.get().registerNamespace("scout",d);var A=n.SvgField,S=n.SvgFieldAdapter,b=n.default;export{A as SvgField,S as SvgFieldAdapter,b as default};
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=eclipse-scout-svg-c83fb29cf2e0b239bf03.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eclipse-scout-svg-c83fb29cf2e0b239bf03.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,EAAYC,CAAG,GAAK,CAACL,EAAoB,EAAEG,EAASE,CAAG,GAC/E,OAAO,eAAeF,EAASE,EAAK,CAAE,WAAY,GAAM,IAAKD,EAAWC,CAAG,CAAE,CAAC,CAGjF,ECPAL,EAAoB,EAAI,CAACM,EAAKC,IAAU,OAAO,UAAU,eAAe,KAAKD,EAAKC,CAAI,ECCtFP,EAAoB,EAAKG,GAAY,CACjC,OAAO,OAAW,KAAe,OAAO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K,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,CCRF,QAAec,EAEfC,EAAAA,cAAAA,IAAkB,EAAEC,kBAAkB,QAASF,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","constructor","arguments","_defineProperty","_render","addContainer","$parent","addLabel","addField","makeDiv","addMandatoryIndicator","addStatus","_renderProperties","_renderSvgDocument","_initKeyStrokeContext","keyStrokeContext","registerKeyStroke","AppLinkKeyStroke","_onAppLinkAction","svgDocument","$field","empty","html","find","on","bind","attr","unfocusable","event","ref","$","delegateTarget","data","_triggerAppLinkAction","preventDefault","trigger","SvgFieldAdapter","FormFieldAdapter","_onWidgetAppLinkAction","_send","_onWidgetEvent","type","self","ObjectFactory","registerNamespace"],"sourceRoot":""}
|