survey-creator-react 2.5.0 → 2.5.2
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/fesm/survey-creator-react.mjs +18 -4
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/fesm/ui-preset-editor/index.mjs +77 -0
- package/fesm/ui-preset-editor/index.mjs.map +1 -0
- package/index.html +7 -5
- package/package.json +9 -4
- package/survey-creator-react.js +72 -30
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +1 -1
- package/survey-creator-react.min.js.LICENSE.txt +1 -1
- package/typings/components/ComponentContainer.d.ts +10 -0
- package/typings/entries/index-wc.d.ts +1 -0
- package/typings/entries/presets.d.ts +3 -3
- package/typings/{presets → ui-preset-editor}/PresetsIconItem.d.ts +1 -1
- package/typings/{presets → ui-preset-editor}/PresetsPropertyGrid.d.ts +1 -1
- package/{survey-creator-react-presets.js → ui-preset-editor/index.js} +23 -23
- package/ui-preset-editor/index.js.map +1 -0
- package/ui-preset-editor/index.min.js +2 -0
- package/{survey-creator-react-presets.min.js.LICENSE.txt → ui-preset-editor/index.min.js.LICENSE.txt} +1 -1
- package/survey-creator-react-presets.js.map +0 -1
- package/survey-creator-react-presets.min.js +0 -2
- /package/typings/{presets → ui-preset-editor}/Presets.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ComponentContainerModel } from "survey-creator-core";
|
|
3
|
+
interface IComponentContainerProps {
|
|
4
|
+
model: ComponentContainerModel;
|
|
5
|
+
}
|
|
6
|
+
export declare class ComponentContainer extends React.Component<IComponentContainerProps, any> {
|
|
7
|
+
constructor(props: IComponentContainerProps);
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -53,6 +53,7 @@ export * from "../events";
|
|
|
53
53
|
export * from "../side-bar/ObjectSelector";
|
|
54
54
|
export * from "../side-bar/PropertyGrid";
|
|
55
55
|
export * from "../components/Search";
|
|
56
|
+
export * from "../components/ComponentContainer";
|
|
56
57
|
export * from "../Switcher";
|
|
57
58
|
export * from "../tabs/JsonErrorItem";
|
|
58
59
|
export * from "../custom-questions/SpinEditor";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TabPresetsComponent } from "../
|
|
2
|
-
export { PresetsPropertyGridWrapper } from "../
|
|
3
|
-
export { PresetsIconItem } from "../
|
|
1
|
+
export { TabPresetsComponent } from "../ui-preset-editor/Presets";
|
|
2
|
+
export { PresetsPropertyGridWrapper } from "../ui-preset-editor/PresetsPropertyGrid";
|
|
3
|
+
export { PresetsIconItem } from "../ui-preset-editor/PresetsIconItem";
|
|
@@ -3,7 +3,7 @@ import { ItemValue } from "survey-core";
|
|
|
3
3
|
interface IPresetsIconItemProps {
|
|
4
4
|
item: ItemValue;
|
|
5
5
|
}
|
|
6
|
-
export declare class PresetsIconItem extends React.Component<
|
|
6
|
+
export declare class PresetsIconItem extends React.Component<IPresetsIconItemProps, any> {
|
|
7
7
|
constructor(props: IPresetsIconItemProps);
|
|
8
8
|
render(): React.JSX.Element;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { PropertyGridViewModel } from "survey-creator-core";
|
|
|
3
3
|
interface IPresetsPropertyGridWrapperProps {
|
|
4
4
|
model: PropertyGridViewModel;
|
|
5
5
|
}
|
|
6
|
-
export declare class PresetsPropertyGridWrapper extends React.Component<
|
|
6
|
+
export declare class PresetsPropertyGridWrapper extends React.Component<IPresetsPropertyGridWrapperProps, any> {
|
|
7
7
|
constructor(props: IPresetsPropertyGridWrapperProps);
|
|
8
8
|
render(): React.JSX.Element;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator Presets React v2.5.
|
|
2
|
+
* SurveyJS Creator Presets React v2.5.2
|
|
3
3
|
* (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
9
9
|
module.exports = factory(require("react"), require("survey-creator-core"), require("survey-react-ui"));
|
|
10
10
|
else if(typeof define === 'function' && define.amd)
|
|
11
|
-
define("
|
|
11
|
+
define("index", ["react", "survey-creator-core", "survey-react-ui"], factory);
|
|
12
12
|
else if(typeof exports === 'object')
|
|
13
|
-
exports["
|
|
13
|
+
exports["index"] = factory(require("react"), require("survey-creator-core"), require("survey-react-ui"));
|
|
14
14
|
else
|
|
15
|
-
root["
|
|
15
|
+
root["SurveyCreatorUIPresetEditorReact"] = factory(root["React"], root["SurveyCreatorCore"], root["SurveyReact"]);
|
|
16
16
|
})(this, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_survey_creator_core__, __WEBPACK_EXTERNAL_MODULE_survey_react_ui__) => {
|
|
17
17
|
return /******/ (() => { // webpackBootstrap
|
|
18
18
|
/******/ "use strict";
|
|
@@ -79,10 +79,10 @@ var __spreadArrays = function () {
|
|
|
79
79
|
|
|
80
80
|
/***/ }),
|
|
81
81
|
|
|
82
|
-
/***/ "./src/
|
|
83
|
-
|
|
84
|
-
!*** ./src/
|
|
85
|
-
|
|
82
|
+
/***/ "./src/ui-preset-editor/Presets.tsx":
|
|
83
|
+
/*!******************************************!*\
|
|
84
|
+
!*** ./src/ui-preset-editor/Presets.tsx ***!
|
|
85
|
+
\******************************************/
|
|
86
86
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
87
87
|
|
|
88
88
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -136,10 +136,10 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.regist
|
|
|
136
136
|
|
|
137
137
|
/***/ }),
|
|
138
138
|
|
|
139
|
-
/***/ "./src/
|
|
140
|
-
|
|
141
|
-
!*** ./src/
|
|
142
|
-
|
|
139
|
+
/***/ "./src/ui-preset-editor/PresetsIconItem.tsx":
|
|
140
|
+
/*!**************************************************!*\
|
|
141
|
+
!*** ./src/ui-preset-editor/PresetsIconItem.tsx ***!
|
|
142
|
+
\**************************************************/
|
|
143
143
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
144
144
|
|
|
145
145
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -177,10 +177,10 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.regist
|
|
|
177
177
|
|
|
178
178
|
/***/ }),
|
|
179
179
|
|
|
180
|
-
/***/ "./src/
|
|
181
|
-
|
|
182
|
-
!*** ./src/
|
|
183
|
-
|
|
180
|
+
/***/ "./src/ui-preset-editor/PresetsPropertyGrid.tsx":
|
|
181
|
+
/*!******************************************************!*\
|
|
182
|
+
!*** ./src/ui-preset-editor/PresetsPropertyGrid.tsx ***!
|
|
183
|
+
\******************************************************/
|
|
184
184
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
185
185
|
|
|
186
186
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -335,13 +335,13 @@ var __webpack_exports__ = {};
|
|
|
335
335
|
\********************************/
|
|
336
336
|
__webpack_require__.r(__webpack_exports__);
|
|
337
337
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
338
|
-
/* harmony export */ PresetsIconItem: () => (/* reexport safe */
|
|
339
|
-
/* harmony export */ PresetsPropertyGridWrapper: () => (/* reexport safe */
|
|
340
|
-
/* harmony export */ TabPresetsComponent: () => (/* reexport safe */
|
|
338
|
+
/* harmony export */ PresetsIconItem: () => (/* reexport safe */ _ui_preset_editor_PresetsIconItem__WEBPACK_IMPORTED_MODULE_2__.PresetsIconItem),
|
|
339
|
+
/* harmony export */ PresetsPropertyGridWrapper: () => (/* reexport safe */ _ui_preset_editor_PresetsPropertyGrid__WEBPACK_IMPORTED_MODULE_1__.PresetsPropertyGridWrapper),
|
|
340
|
+
/* harmony export */ TabPresetsComponent: () => (/* reexport safe */ _ui_preset_editor_Presets__WEBPACK_IMPORTED_MODULE_0__.TabPresetsComponent)
|
|
341
341
|
/* harmony export */ });
|
|
342
|
-
/* harmony import */ var
|
|
343
|
-
/* harmony import */ var
|
|
344
|
-
/* harmony import */ var
|
|
342
|
+
/* harmony import */ var _ui_preset_editor_Presets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ui-preset-editor/Presets */ "./src/ui-preset-editor/Presets.tsx");
|
|
343
|
+
/* harmony import */ var _ui_preset_editor_PresetsPropertyGrid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ui-preset-editor/PresetsPropertyGrid */ "./src/ui-preset-editor/PresetsPropertyGrid.tsx");
|
|
344
|
+
/* harmony import */ var _ui_preset_editor_PresetsIconItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ui-preset-editor/PresetsIconItem */ "./src/ui-preset-editor/PresetsIconItem.tsx");
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
|
|
@@ -352,4 +352,4 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
352
352
|
/******/ })()
|
|
353
353
|
;
|
|
354
354
|
});
|
|
355
|
-
//# sourceMappingURL=
|
|
355
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;ACRO,IAAI,UAAU,GAAG,UACtB,UAAe,EACf,MAAW,EACX,GAAQ,EACR,IAAS;IAET,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EACtB,CAAC,GACC,CAAC,GAAG,CAAC;QACH,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,IAAI,KAAK,IAAI;YACb,CAAC,CAAC,CAA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mCAAmC;4BAChD,0DAAK,SAAS,EAAC,mBAAmB;gCAChC,iDAAC,oDAAO,IAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,GAAY,CAC5D,CACF,CACF,CACC,CACL;YACJ,gEAAmB,CAAC,QAAQ,CAAC,aAAa,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CACpE,CAClB,CAAC;IACJ,CAAC;IACH,iCAAC;AAAD,CAAC,CA/B+C,4CAAe,GA+B9D;;AAED,gEAAmB,CAAC,QAAQ,CAAC,eAAe,CAAC,2BAA2B,EAAE,UAAC,KAAK;IAC9E,OAAO,gDAAmB,CAAC,0BAA0B,EAAE,KAAyC,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;;;;;;;;;;;AC5CH,mD;;;;;;;;;;ACAA,iE;;;;;;;;;;ACAA,6D;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;;;;;;;;;;;;;;;ACNkE;AACmB;AACf","sources":["webpack://SurveyCreatorUIPresetEditorReact/webpack/universalModuleDefinition","webpack://SurveyCreatorUIPresetEditorReact/./src/entries/helpers.ts","webpack://SurveyCreatorUIPresetEditorReact/./src/ui-preset-editor/Presets.tsx","webpack://SurveyCreatorUIPresetEditorReact/./src/ui-preset-editor/PresetsIconItem.tsx","webpack://SurveyCreatorUIPresetEditorReact/./src/ui-preset-editor/PresetsPropertyGrid.tsx","webpack://SurveyCreatorUIPresetEditorReact/external umd {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://SurveyCreatorUIPresetEditorReact/external umd {\"root\":\"SurveyCreatorCore\",\"commonjs2\":\"survey-creator-core\",\"commonjs\":\"survey-creator-core\",\"amd\":\"survey-creator-core\"}","webpack://SurveyCreatorUIPresetEditorReact/external umd {\"root\":\"SurveyReact\",\"commonjs2\":\"survey-react-ui\",\"commonjs\":\"survey-react-ui\",\"amd\":\"survey-react-ui\"}","webpack://SurveyCreatorUIPresetEditorReact/webpack/bootstrap","webpack://SurveyCreatorUIPresetEditorReact/webpack/runtime/compat get default export","webpack://SurveyCreatorUIPresetEditorReact/webpack/runtime/define property getters","webpack://SurveyCreatorUIPresetEditorReact/webpack/runtime/hasOwnProperty shorthand","webpack://SurveyCreatorUIPresetEditorReact/webpack/runtime/make namespace object","webpack://SurveyCreatorUIPresetEditorReact/./src/entries/presets.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"survey-creator-core\"), require(\"survey-react-ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"index\", [\"react\", \"survey-creator-core\", \"survey-react-ui\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"index\"] = factory(require(\"react\"), require(\"survey-creator-core\"), require(\"survey-react-ui\"));\n\telse\n\t\troot[\"SurveyCreatorUIPresetEditorReact\"] = factory(root[\"React\"], root[\"SurveyCreatorCore\"], root[\"SurveyReact\"]);\n})(this, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_survey_creator_core__, __WEBPACK_EXTERNAL_MODULE_survey_react_ui__) => {\nreturn ","declare var Reflect:any;\n\nexport var __decorate = function(\n decorators: any,\n target: any,\n key: any,\n desc: any\n) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nexport var __assign =\n Object[\"assign\"] ||\n function(target) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p)) target[p] = s[p];\n }\n return target;\n };\n\nexport function __extends(thisClass, baseClass) {\n for (var p in baseClass)\n if (baseClass.hasOwnProperty(p)) thisClass[p] = baseClass[p];\n function __() {\n this.constructor = thisClass;\n }\n thisClass.prototype =\n baseClass === null\n ? Object.create(baseClass)\n : ((__.prototype = baseClass.prototype), new __());\n}\n\nexport var __spreadArrays = function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\n","import * as React from \"react\";\nimport { Base, SurveyModel } from \"survey-core\";\nimport {\n ReactElementFactory,\n Survey,\n SurveyElementBase,\n} from \"survey-react-ui\";\nimport { SurveyCreatorModel } from \"survey-creator-core\";\ninterface ITabPresetsComponentProps {\n data: any;\n creator: SurveyCreatorModel;\n}\n\nexport class TabPresetsComponent extends SurveyElementBase<ITabPresetsComponentProps, any> {\n private get model(): SurveyModel {\n return this.props.data.model;\n }\n protected get creator(): SurveyCreatorModel {\n return this.props.creator;\n }\n\n protected getStateElement(): Base {\n return this.model;\n }\n\n renderElement(): React.JSX.Element {\n const presetsTabClassName = \"svc-tab-designer \";\n\n return (\n <React.Fragment>\n <div className=\"svc-flex-column\">\n {this.creator.showToolbox ? ReactElementFactory.Instance.createElement(\"svc-toolbox\", { model: this.creator }) : null}\n </div>\n <div className={presetsTabClassName}>\n <Survey model={this.model} />\n </div>\n </React.Fragment>\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"svc-tab-presets\", (props) => {\n return React.createElement(\n TabPresetsComponent,\n props as ITabPresetsComponentProps\n );\n});\n","import * as React from \"react\";\nimport { ItemValue } from \"survey-core\";\nimport {\n ReactElementFactory,\n SvgIcon,\n} from \"survey-react-ui\";\ninterface IPresetsIconItemProps {\n item: ItemValue;\n}\nexport class PresetsIconItem extends React.Component<IPresetsIconItemProps, any> {\n constructor(props: IPresetsIconItemProps) {\n super(props);\n }\n render() {\n const item = this.props.item;\n if (!item) return null;\n\n return (\n <div className=\"sps-icon-item\"\n style={{ display: \"flex\" }}>\n <SvgIcon className=\"sps-icon-item__icon\" size=\"auto\" iconName={item.value} />\n <span className=\"sps-icon-item__text\">{item.title}</span>\n </div>\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"svc-presets-icon-item\", (props) => {\n return React.createElement(PresetsIconItem, props as IPresetsIconItemProps);\n});\n","import * as React from \"react\";\nimport {\n ReactElementFactory,\n SvgIcon,\n} from \"survey-react-ui\";\nimport { getLocString, PropertyGridViewModel } from \"survey-creator-core\";\ninterface IPresetsPropertyGridWrapperProps {\n model: PropertyGridViewModel;\n}\nexport class PresetsPropertyGridWrapper extends React.Component<IPresetsPropertyGridWrapperProps, any> {\n constructor(props: IPresetsPropertyGridWrapperProps) {\n super(props);\n }\n render() {\n const model = this.props.model;\n if (!model) return null;\n\n return (\n <React.Fragment>\n <div className=\"sps-launch\">\n <button className=\"sps-launch__card\"\n onClick={ model[\"showPresets\"] }\n >\n <div className=\"sps-launch__container\">\n <div className=\"sps-launch__text\">{getLocString(\"presets.plugin.buttonTitle\")}</div>\n <div className=\"sps-launch__text2\">{getLocString(\"presets.plugin.buttonDescription\")}</div>\n </div>\n <div className=\"sps-launch__icon\">\n <div className=\"sps-launch__chevron-right-16-x-16\">\n <div className=\"sps-launch__icon2\">\n <SvgIcon size={\"auto\"} iconName={\"chevrondown-24x24\"}></SvgIcon>\n </div>\n </div>\n </div>\n </button>\n </div>\n { ReactElementFactory.Instance.createElement(\"svc-property-grid\", { model: model })}\n </React.Fragment>\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"svc-presets-property-grid\", (props) => {\n return React.createElement(PresetsPropertyGridWrapper, props as IPresetsPropertyGridWrapperProps);\n});\n","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_survey_creator_core__;","module.exports = __WEBPACK_EXTERNAL_MODULE_survey_react_ui__;","// 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};","export { TabPresetsComponent } from \"../ui-preset-editor/Presets\";\nexport { PresetsPropertyGridWrapper } from \"../ui-preset-editor/PresetsPropertyGrid\";\nexport { PresetsIconItem } from \"../ui-preset-editor/PresetsIconItem\";\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see index.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("survey-creator-core"),require("survey-react-ui")):"function"==typeof define&&define.amd?define("index",["react","survey-creator-core","survey-react-ui"],t):"object"==typeof exports?exports.index=t(require("react"),require("survey-creator-core"),require("survey-react-ui")):e.SurveyCreatorUIPresetEditorReact=t(e.React,e.SurveyCreatorCore,e.SurveyReact)}(this,(e,t,r)=>(()=>{"use strict";var n={442:t=>{t.exports=e},726:e=>{e.exports=r},982:e=>{e.exports=t}},o={};function c(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,c),r.exports}c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};function s(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}c.r(a),c.d(a,{PresetsIconItem:()=>d,PresetsPropertyGridWrapper:()=>m,TabPresetsComponent:()=>u}),Object.assign;var i=c(442),l=c(726),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return i.createElement(i.Fragment,null,i.createElement("div",{className:"svc-flex-column"},this.creator.showToolbox?l.ReactElementFactory.Instance.createElement("svc-toolbox",{model:this.creator}):null),i.createElement("div",{className:"svc-tab-designer "},i.createElement(l.Survey,{model:this.model})))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-presets",function(e){return i.createElement(u,e)});var p=c(982),m=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.render=function(){var e=this.props.model;return e?i.createElement(i.Fragment,null,i.createElement("div",{className:"sps-launch"},i.createElement("button",{className:"sps-launch__card",onClick:e.showPresets},i.createElement("div",{className:"sps-launch__container"},i.createElement("div",{className:"sps-launch__text"},(0,p.getLocString)("presets.plugin.buttonTitle")),i.createElement("div",{className:"sps-launch__text2"},(0,p.getLocString)("presets.plugin.buttonDescription"))),i.createElement("div",{className:"sps-launch__icon"},i.createElement("div",{className:"sps-launch__chevron-right-16-x-16"},i.createElement("div",{className:"sps-launch__icon2"},i.createElement(l.SvgIcon,{size:"auto",iconName:"chevrondown-24x24"})))))),l.ReactElementFactory.Instance.createElement("svc-property-grid",{model:e})):null},t}(i.Component);l.ReactElementFactory.Instance.registerElement("svc-presets-property-grid",function(e){return i.createElement(m,e)});var d=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.render=function(){var e=this.props.item;return e?i.createElement("div",{className:"sps-icon-item",style:{display:"flex"}},i.createElement(l.SvgIcon,{className:"sps-icon-item__icon",size:"auto",iconName:e.value}),i.createElement("span",{className:"sps-icon-item__text"},e.title)):null},t}(i.Component);return l.ReactElementFactory.Instance.registerElement("svc-presets-icon-item",function(e){return i.createElement(d,e)}),a})());
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"survey-creator-react-presets.js","mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;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B;wBACpC,0DAAK,SAAS,EAAC,kBAAkB,IAAE,iEAAY,CAAC,4BAA4B,CAAC,CAAO;wBACpF,0DAAK,SAAS,EAAC,mBAAmB,IAAE,iEAAY,CAAC,kCAAkC,CAAC,CAAO,CACvF;oBACN,0DAAK,SAAS,EAAC,kBAAkB;wBAC/B,0DAAK,SAAS,EAAC,mCAAmC;4BAChD,0DAAK,SAAS,EAAC,mBAAmB;gCAChC,iDAAC,oDAAO,IAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,GAAY,CAC5D,CACF,CACF,CACC,CACL;YACJ,gEAAmB,CAAC,QAAQ,CAAC,aAAa,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CACpE,CAClB,CAAC;IACJ,CAAC;IACH,iCAAC;AAAD,CAAC,CA/B+C,4CAAe,GA+B9D;;AAED,gEAAmB,CAAC,QAAQ,CAAC,eAAe,CAAC,2BAA2B,EAAE,UAAC,KAAK;IAC9E,OAAO,gDAAmB,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC,CAAC,CAAC;;;;;;;;;;;AC/CH,mD;;;;;;;;;;ACAA,iE;;;;;;;;;;ACAA,6D;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;;;;;;;;;;;;;;;ACNyD;AACmB;AACf","sources":["webpack://SurveyCreatorPresets/webpack/universalModuleDefinition","webpack://SurveyCreatorPresets/./src/entries/helpers.ts","webpack://SurveyCreatorPresets/./src/presets/Presets.tsx","webpack://SurveyCreatorPresets/./src/presets/PresetsIconItem.tsx","webpack://SurveyCreatorPresets/./src/presets/PresetsPropertyGrid.tsx","webpack://SurveyCreatorPresets/external umd {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://SurveyCreatorPresets/external umd {\"root\":\"SurveyCreatorCore\",\"commonjs2\":\"survey-creator-core\",\"commonjs\":\"survey-creator-core\",\"amd\":\"survey-creator-core\"}","webpack://SurveyCreatorPresets/external umd {\"root\":\"SurveyReact\",\"commonjs2\":\"survey-react-ui\",\"commonjs\":\"survey-react-ui\",\"amd\":\"survey-react-ui\"}","webpack://SurveyCreatorPresets/webpack/bootstrap","webpack://SurveyCreatorPresets/webpack/runtime/compat get default export","webpack://SurveyCreatorPresets/webpack/runtime/define property getters","webpack://SurveyCreatorPresets/webpack/runtime/hasOwnProperty shorthand","webpack://SurveyCreatorPresets/webpack/runtime/make namespace object","webpack://SurveyCreatorPresets/./src/entries/presets.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"survey-creator-core\"), require(\"survey-react-ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"survey-creator-react-presets\", [\"react\", \"survey-creator-core\", \"survey-react-ui\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"survey-creator-react-presets\"] = factory(require(\"react\"), require(\"survey-creator-core\"), require(\"survey-react-ui\"));\n\telse\n\t\troot[\"SurveyCreatorPresets\"] = factory(root[\"React\"], root[\"SurveyCreatorCore\"], root[\"SurveyReact\"]);\n})(this, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_survey_creator_core__, __WEBPACK_EXTERNAL_MODULE_survey_react_ui__) => {\nreturn ","declare var Reflect:any;\n\nexport var __decorate = function(\n decorators: any,\n target: any,\n key: any,\n desc: any\n) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nexport var __assign =\n Object[\"assign\"] ||\n function(target) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p)) target[p] = s[p];\n }\n return target;\n };\n\nexport function __extends(thisClass, baseClass) {\n for (var p in baseClass)\n if (baseClass.hasOwnProperty(p)) thisClass[p] = baseClass[p];\n function __() {\n this.constructor = thisClass;\n }\n thisClass.prototype =\n baseClass === null\n ? Object.create(baseClass)\n : ((__.prototype = baseClass.prototype), new __());\n}\n\nexport var __spreadArrays = function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\n","import * as React from \"react\";\nimport { Base, SurveyModel, PageModel } from \"survey-core\";\nimport {\n ReactElementFactory,\n Survey,\n SurveyElementBase,\n} from \"survey-react-ui\";\nimport { SurveyCreatorModel } from \"survey-creator-core\";\ninterface ITabPresetsComponentProps {\n data: any;\n creator: SurveyCreatorModel;\n}\n\nexport class TabPresetsComponent extends SurveyElementBase<ITabPresetsComponentProps, any> {\n private get model(): SurveyModel {\n return this.props.data.model;\n }\n protected get creator(): SurveyCreatorModel {\n return this.props.creator;\n }\n\n protected getStateElement(): Base {\n return this.model;\n }\n\n renderElement(): React.JSX.Element {\n const presetsTabClassName = \"svc-tab-designer \";\n\n return (\n <React.Fragment>\n <div className=\"svc-flex-column\">\n {this.creator.showToolbox ? ReactElementFactory.Instance.createElement(\"svc-toolbox\", { model: this.creator }) : null}\n </div>\n <div className={presetsTabClassName}>\n <Survey model={this.model} />\n </div>\n </React.Fragment>\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"svc-tab-presets\", (props) => {\n return React.createElement(\n TabPresetsComponent,\n props as ITabPresetsComponentProps\n );\n});\n","import * as React from \"react\";\nimport { ItemValue } from \"survey-core\";\nimport {\n ReactElementFactory,\n Survey,\n SurveyElementBase,\n SvgIcon,\n} from \"survey-react-ui\";\nimport { PropertyGridViewModel } from \"survey-creator-core\";\ninterface IPresetsIconItemProps {\n item: ItemValue;\n}\nexport class PresetsIconItem extends React.Component<any, any> {\n constructor(props: IPresetsIconItemProps) {\n super(props);\n }\n render() {\n const item = (this.props as IPresetsIconItemProps).item;\n if (!item) return null;\n\n return (\n <div className=\"sps-icon-item\"\n style={{ display: \"flex\" }}>\n <SvgIcon className=\"sps-icon-item__icon\" size=\"auto\" iconName={item.value} />\n <span className=\"sps-icon-item__text\">{item.title}</span>\n </div>\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"svc-presets-icon-item\", (props) => {\n return React.createElement(PresetsIconItem, props);\n});\n","import * as React from \"react\";\nimport { Base, SurveyModel, PageModel } from \"survey-core\";\nimport {\n ReactElementFactory,\n Survey,\n SurveyElementBase,\n SvgIcon,\n} from \"survey-react-ui\";\nimport { getLocString, PropertyGridViewModel } from \"survey-creator-core\";\ninterface IPresetsPropertyGridWrapperProps {\n model: PropertyGridViewModel;\n}\nexport class PresetsPropertyGridWrapper extends React.Component<any, any> {\n constructor(props: IPresetsPropertyGridWrapperProps) {\n super(props);\n }\n render() {\n const model = (this.props as IPresetsPropertyGridWrapperProps).model;\n if (!model) return null;\n\n return (\n <React.Fragment>\n <div className=\"sps-launch\">\n <button className=\"sps-launch__card\"\n onClick={ model[\"showPresets\"] }\n >\n <div className=\"sps-launch__container\">\n <div className=\"sps-launch__text\">{getLocString(\"presets.plugin.buttonTitle\")}</div>\n <div className=\"sps-launch__text2\">{getLocString(\"presets.plugin.buttonDescription\")}</div>\n </div>\n <div className=\"sps-launch__icon\">\n <div className=\"sps-launch__chevron-right-16-x-16\">\n <div className=\"sps-launch__icon2\">\n <SvgIcon size={\"auto\"} iconName={\"chevrondown-24x24\"}></SvgIcon>\n </div>\n </div>\n </div>\n </button>\n </div>\n { ReactElementFactory.Instance.createElement(\"svc-property-grid\", { model: model })}\n </React.Fragment>\n );\n }\n}\n\nReactElementFactory.Instance.registerElement(\"svc-presets-property-grid\", (props) => {\n return React.createElement(PresetsPropertyGridWrapper, props);\n});\n","module.exports = __WEBPACK_EXTERNAL_MODULE_react__;","module.exports = __WEBPACK_EXTERNAL_MODULE_survey_creator_core__;","module.exports = __WEBPACK_EXTERNAL_MODULE_survey_react_ui__;","// 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};","export { TabPresetsComponent } from \"../presets/Presets\";\nexport { PresetsPropertyGridWrapper } from \"../presets/PresetsPropertyGrid\";\nexport { PresetsIconItem } from \"../presets/PresetsIconItem\";"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see survey-creator-react-presets.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("survey-creator-core"),require("survey-react-ui")):"function"==typeof define&&define.amd?define("survey-creator-react-presets",["react","survey-creator-core","survey-react-ui"],t):"object"==typeof exports?exports["survey-creator-react-presets"]=t(require("react"),require("survey-creator-core"),require("survey-react-ui")):e.SurveyCreatorPresets=t(e.React,e.SurveyCreatorCore,e.SurveyReact)}(this,(e,t,r)=>(()=>{"use strict";var n={442:t=>{t.exports=e},726:e=>{e.exports=r},982:e=>{e.exports=t}},o={};function c(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,c),r.exports}c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};function a(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}c.r(s),c.d(s,{PresetsIconItem:()=>v,PresetsPropertyGridWrapper:()=>m,TabPresetsComponent:()=>u}),Object.assign;var l=c(442),i=c(726),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return l.createElement(l.Fragment,null,l.createElement("div",{className:"svc-flex-column"},this.creator.showToolbox?i.ReactElementFactory.Instance.createElement("svc-toolbox",{model:this.creator}):null),l.createElement("div",{className:"svc-tab-designer "},l.createElement(i.Survey,{model:this.model})))},t}(i.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("svc-tab-presets",function(e){return l.createElement(u,e)});var p=c(982),m=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.model;return e?l.createElement(l.Fragment,null,l.createElement("div",{className:"sps-launch"},l.createElement("button",{className:"sps-launch__card",onClick:e.showPresets},l.createElement("div",{className:"sps-launch__container"},l.createElement("div",{className:"sps-launch__text"},(0,p.getLocString)("presets.plugin.buttonTitle")),l.createElement("div",{className:"sps-launch__text2"},(0,p.getLocString)("presets.plugin.buttonDescription"))),l.createElement("div",{className:"sps-launch__icon"},l.createElement("div",{className:"sps-launch__chevron-right-16-x-16"},l.createElement("div",{className:"sps-launch__icon2"},l.createElement(i.SvgIcon,{size:"auto",iconName:"chevrondown-24x24"})))))),i.ReactElementFactory.Instance.createElement("svc-property-grid",{model:e})):null},t}(l.Component);i.ReactElementFactory.Instance.registerElement("svc-presets-property-grid",function(e){return l.createElement(m,e)});var v=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e=this.props.item;return e?l.createElement("div",{className:"sps-icon-item",style:{display:"flex"}},l.createElement(i.SvgIcon,{className:"sps-icon-item__icon",size:"auto",iconName:e.value}),l.createElement("span",{className:"sps-icon-item__text"},e.title)):null},t}(l.Component);return i.ReactElementFactory.Instance.registerElement("svc-presets-icon-item",function(e){return l.createElement(v,e)}),s})());
|
|
File without changes
|