@eclipse-scout/svg 25.2.20 → 26.1.0-beta.4
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 +7 -7
- package/src/main/js/svg/SvgField.ts +1 -1
- package/target/dist/dev/eclipse-scout-svg.js +28 -22
- package/target/dist/dev/eclipse-scout-svg.js.map +1 -1
- package/target/dist/prod/eclipse-scout-svg-327a84eb427f534d1ec7.min.js +3 -0
- package/target/dist/prod/eclipse-scout-svg-327a84eb427f534d1ec7.min.js.map +1 -0
- package/target/dist/prod/eclipse-scout-svg-8a7bb766df55a7a976a5.min.js +0 -3
- package/target/dist/prod/eclipse-scout-svg-8a7bb766df55a7a976a5.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": "26.1.0-beta.4",
|
|
4
4
|
"description": "Eclipse Scout",
|
|
5
5
|
"author": "BSI Business Systems Integration AG",
|
|
6
6
|
"homepage": "https://eclipse.dev/scout/",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "EPL-2.0",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
14
|
-
"npm": ">=
|
|
15
|
-
"pnpm": ">=
|
|
13
|
+
"node": ">=24.12.0",
|
|
14
|
+
"npm": ">=11.6.2",
|
|
15
|
+
"pnpm": ">=10.26.1"
|
|
16
16
|
},
|
|
17
17
|
"main": "./target/dist/dev/eclipse-scout-svg.js",
|
|
18
18
|
"files": [
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"target/dist"
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@eclipse-scout/cli": "
|
|
24
|
-
"@eclipse-scout/releng": "^
|
|
23
|
+
"@eclipse-scout/cli": "26.1.0-beta.4",
|
|
24
|
+
"@eclipse-scout/releng": "^26.1.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@eclipse-scout/core": "
|
|
27
|
+
"@eclipse-scout/core": "26.1.0-beta.4",
|
|
28
28
|
"jquery": "3.7.1"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
@@ -19,8 +19,8 @@ export class SvgField extends FormField implements SvgFieldModel {
|
|
|
19
19
|
protected override _render() {
|
|
20
20
|
this.addContainer(this.$parent, 'svg-field');
|
|
21
21
|
this.addLabel();
|
|
22
|
-
this.addField(this.$parent.makeDiv());
|
|
23
22
|
this.addMandatoryIndicator();
|
|
23
|
+
this.addField(this.$parent.makeDiv());
|
|
24
24
|
this.addStatus();
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__ from "@eclipse-scout/core";
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/ "./src/main/js/index.ts"
|
|
4
|
+
/***/ "./src/main/js/index.ts"
|
|
5
5
|
/*!******************************!*\
|
|
6
6
|
!*** ./src/main/js/index.ts ***!
|
|
7
7
|
\******************************/
|
|
8
|
-
|
|
8
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
|
|
10
10
|
__webpack_require__.r(__webpack_exports__);
|
|
11
11
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -37,13 +37,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37
37
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_index__WEBPACK_IMPORTED_MODULE_1__);
|
|
38
38
|
_eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.ObjectFactory.get().registerNamespace('scout', _index__WEBPACK_IMPORTED_MODULE_1__);
|
|
39
39
|
|
|
40
|
-
/***/ }
|
|
40
|
+
/***/ },
|
|
41
41
|
|
|
42
|
-
/***/ "./src/main/js/svg/SvgField.ts"
|
|
42
|
+
/***/ "./src/main/js/svg/SvgField.ts"
|
|
43
43
|
/*!*************************************!*\
|
|
44
44
|
!*** ./src/main/js/svg/SvgField.ts ***!
|
|
45
45
|
\*************************************/
|
|
46
|
-
|
|
46
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
47
47
|
|
|
48
48
|
__webpack_require__.r(__webpack_exports__);
|
|
49
49
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -65,8 +65,8 @@ class SvgField extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.FormFiel
|
|
|
65
65
|
_render() {
|
|
66
66
|
this.addContainer(this.$parent, 'svg-field');
|
|
67
67
|
this.addLabel();
|
|
68
|
-
this.addField(this.$parent.makeDiv());
|
|
69
68
|
this.addMandatoryIndicator();
|
|
69
|
+
this.addField(this.$parent.makeDiv());
|
|
70
70
|
this.addStatus();
|
|
71
71
|
}
|
|
72
72
|
_renderProperties() {
|
|
@@ -96,13 +96,13 @@ class SvgField extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.FormFiel
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
/***/ }
|
|
99
|
+
/***/ },
|
|
100
100
|
|
|
101
|
-
/***/ "./src/main/js/svg/SvgFieldAdapter.ts"
|
|
101
|
+
/***/ "./src/main/js/svg/SvgFieldAdapter.ts"
|
|
102
102
|
/*!********************************************!*\
|
|
103
103
|
!*** ./src/main/js/svg/SvgFieldAdapter.ts ***!
|
|
104
104
|
\********************************************/
|
|
105
|
-
|
|
105
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
__webpack_require__.r(__webpack_exports__);
|
|
108
108
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -134,39 +134,39 @@ class SvgFieldAdapter extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_0__.F
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
/***/ }
|
|
137
|
+
/***/ },
|
|
138
138
|
|
|
139
|
-
/***/ "./src/main/js/svg/SvgFieldEventMap.ts"
|
|
139
|
+
/***/ "./src/main/js/svg/SvgFieldEventMap.ts"
|
|
140
140
|
/*!*********************************************!*\
|
|
141
141
|
!*** ./src/main/js/svg/SvgFieldEventMap.ts ***!
|
|
142
142
|
\*********************************************/
|
|
143
|
-
|
|
143
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
144
144
|
|
|
145
145
|
__webpack_require__.r(__webpack_exports__);
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
/***/ }
|
|
148
|
+
/***/ },
|
|
149
149
|
|
|
150
|
-
/***/ "./src/main/js/svg/SvgFieldModel.ts"
|
|
150
|
+
/***/ "./src/main/js/svg/SvgFieldModel.ts"
|
|
151
151
|
/*!******************************************!*\
|
|
152
152
|
!*** ./src/main/js/svg/SvgFieldModel.ts ***!
|
|
153
153
|
\******************************************/
|
|
154
|
-
|
|
154
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
155
155
|
|
|
156
156
|
__webpack_require__.r(__webpack_exports__);
|
|
157
157
|
|
|
158
158
|
|
|
159
|
-
/***/ }
|
|
159
|
+
/***/ },
|
|
160
160
|
|
|
161
|
-
/***/ "@eclipse-scout/core"
|
|
161
|
+
/***/ "@eclipse-scout/core"
|
|
162
162
|
/*!**************************************!*\
|
|
163
163
|
!*** external "@eclipse-scout/core" ***!
|
|
164
164
|
\**************************************/
|
|
165
|
-
|
|
165
|
+
(module) {
|
|
166
166
|
|
|
167
167
|
module.exports = __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__;
|
|
168
168
|
|
|
169
|
-
/***/ }
|
|
169
|
+
/***/ }
|
|
170
170
|
|
|
171
171
|
/******/ });
|
|
172
172
|
/************************************************************************/
|
|
@@ -180,6 +180,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__;
|
|
|
180
180
|
/******/ if (cachedModule !== undefined) {
|
|
181
181
|
/******/ return cachedModule.exports;
|
|
182
182
|
/******/ }
|
|
183
|
+
/******/ // Check if module exists (development only)
|
|
184
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
185
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
186
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
187
|
+
/******/ throw e;
|
|
188
|
+
/******/ }
|
|
183
189
|
/******/ // Create a new module (and put it into the cache)
|
|
184
190
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
185
191
|
/******/ // no module.id needed
|
|
@@ -229,9 +235,9 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__eclipse_scout_core_ec9759ad__;
|
|
|
229
235
|
/******/ // Load entry module and return exports
|
|
230
236
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
231
237
|
/******/ var __webpack_exports__ = __webpack_require__("./src/main/js/index.ts");
|
|
232
|
-
/******/
|
|
233
|
-
/******/
|
|
234
|
-
/******/
|
|
238
|
+
/******/ const __webpack_exports__SvgField = __webpack_exports__.SvgField;
|
|
239
|
+
/******/ const __webpack_exports__SvgFieldAdapter = __webpack_exports__.SvgFieldAdapter;
|
|
240
|
+
/******/ const __webpack_exports__default = __webpack_exports__["default"];
|
|
235
241
|
/******/ export { __webpack_exports__SvgField as SvgField, __webpack_exports__SvgFieldAdapter as SvgFieldAdapter, __webpack_exports__default as default };
|
|
236
242
|
/******/
|
|
237
243
|
|
|
@@ -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;;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A;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.addMandatoryIndicator();\n this.addField(this.$parent.makeDiv());\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// Check if module exists (development only)\n\tif (__webpack_modules__[moduleId] === undefined) {\n\t\tvar e = new Error(\"Cannot find module '\" + moduleId + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\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","addMandatoryIndicator","addField","makeDiv","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"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{AppLinkKeyStroke as a,FormField as d,FormFieldAdapter as p,ObjectFactory as c,events as l}from"@eclipse-scout/core";var i={};i.d=(t,e)=>{for(var _ in e)i.o(e,_)&&!i.o(t,_)&&Object.defineProperty(t,_,{enumerable:!0,get:e[_]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var A={};i.r(A);var r={};i.r(r),i.d(r,{SvgField:()=>o,SvgFieldAdapter:()=>n,default:()=>s});class o extends d{svgDocument;_render(){this.addContainer(this.$parent,"svg-field"),this.addLabel(),this.addMandatoryIndicator(),this.addField(this.$parent.makeDiv()),this.addStatus()}_renderProperties(){super._renderProperties(),this._renderSvgDocument()}_initKeyStrokeContext(){super._initKeyStrokeContext(),this.keyStrokeContext.registerKeyStroke(new a(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){l.triggerAppLinkAction(e,this._triggerAppLinkAction.bind(this)),e.preventDefault()}_triggerAppLinkAction(e){this.trigger("appLinkAction",{ref:e})}}class n extends p{_onWidgetAppLinkAction(e){this._send("appLinkAction",{ref:e.ref})}_onWidgetEvent(e){e.type==="appLinkAction"?this._onWidgetAppLinkAction(e):super._onWidgetEvent(e)}}const s=r;c.get().registerNamespace("scout",r);export{o as SvgField,n as SvgFieldAdapter,s as default};
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=eclipse-scout-svg-327a84eb427f534d1ec7.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eclipse-scout-svg-327a84eb427f534d1ec7.min.js","mappings":"2HACA,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,4FCMM,MAAOK,UAAiBC,CAAU,CAItCC,YAEmBC,SAAO,CACxB,KAAKC,aAAa,KAAKC,QAAS,WAAW,EAC3C,KAAKC,SAAS,EACd,KAAKC,sBAAsB,EAC3B,KAAKC,SAAS,KAAKH,QAAQI,QAAQ,CAAC,EACpC,KAAKC,UAAU,CACjB,CAEmBC,mBAAiB,CAClC,MAAMA,kBAAkB,EACxB,KAAKC,mBAAmB,CAC1B,CAEmBC,uBAAqB,CACtC,MAAMA,sBAAsB,EAC5B,KAAKC,iBAAiBC,kBAAkB,IAAIC,EAAiB,KAAM,KAAKC,gBAAgB,CAAC,CAC3F,CAEUL,oBAAkB,CAC1B,GAAI,CAAC,KAAKV,YAAa,CACrB,KAAKgB,OAAOC,MAAM,EAClB,MACF,CACA,KAAKD,OAAOE,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,EAA8B,CACvDC,EAAOC,qBAAqBF,EAAO,KAAKG,sBAAsBN,KAAK,IAAI,CAAC,EACxEG,EAAMI,eAAe,CACvB,CAEUD,sBAAsBE,EAAa,CAC3C,KAAKC,QAAQ,gBAAiB,CAC5BD,IAAKA,C,CACN,CACH,C,CC7CI,MAAOE,UAAwBC,CAAiB,CAE1CC,uBAAuBT,EAA2B,CAC1D,KAAKU,MAAM,gBAAiB,CAC1BL,IAAKL,EAAMK,G,CACZ,CACH,CAEmBM,eAAeX,EAAwB,CACpDA,EAAMY,OAAS,gBACjB,KAAKH,uBAAuBT,CAA2B,EAEvD,MAAMW,eAAeX,CAAK,CAE9B,C,CCTF,QAAea,EAEfC,EAAcC,IAAI,EAAEC,kBAAkB,QAASH,CAAI","sources":["bootstrap","define property getters","hasOwnProperty shorthand","make namespace object","SvgField.ts","SvgFieldAdapter.ts","index.ts"],"names":["__webpack_require__","exports","definition","key","obj","prop","SvgField","FormField","svgDocument","_render","addContainer","$parent","addLabel","addMandatoryIndicator","addField","makeDiv","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"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
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
|
-
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KC,mBAAmB,CAC1B,CAEmBC,uBAAqB,CACtC,MAAMA,sBAAsB,EAC5B,KAAKC,iBAAiBC,kBAAkB,IAAIC,EAAAA,iBAAiB,KAAM,KAAKC,gBAAgB,CAAC,CAC3F,CAEUL,oBAAkB,CAC1B,GAAI,CAAC,KAAKV,YAAa,CACrB,KAAKgB,OAAOC,MAAM,EAClB,MACF,CACA,KAAKD,OAAOE,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,EAA8B,CACvDC,EAAAA,OAAOC,qBAAqBF,EAAO,KAAKG,sBAAsBN,KAAK,IAAI,CAAC,EACxEG,EAAMI,eAAe,CACvB,CAEUD,sBAAsBE,EAAa,CAC3C,KAAKC,QAAQ,gBAAiB,CAC5BD,IAAKA,C,CACN,CACH,C,CC7CI,MAAOE,UAAwBC,EAAAA,gBAAiB,CAE1CC,uBAAuBT,EAA2B,CAC1D,KAAKU,MAAM,gBAAiB,CAC1BL,IAAKL,EAAMK,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":""}
|