@daracl/dialog 0.0.2 → 0.0.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/README.md CHANGED
@@ -26,7 +26,7 @@ npm run build
26
26
 
27
27
  # 사용방법
28
28
  ```
29
- var dialogObj = new Dialog({
29
+ var dialogObj = Daracl.dialog.create({
30
30
  title: 'dialog', width: 500, height: 'auto', icon: "info", isModal: true, resizable: true, autoOpen: false, template: '<a href="https://varsql.com" target="_blank">링크 이동</a>', buttons: [
31
31
  {
32
32
  label: 'ok', styleClass: "info", callback: function (e) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @daracl/dialog v0.0.2
2
+ * @daracl/dialog v0.0.4
3
3
  * Copyright 2024-2024 darainfo and other contributors;
4
4
  * Licensed MIT
5
5
  */
@@ -8,10 +8,10 @@
8
8
  module.exports = factory();
9
9
  else if(typeof define === 'function' && define.amd)
10
10
  define([], factory);
11
- else {
12
- var a = factory();
13
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
14
- }
11
+ else if(typeof exports === 'object')
12
+ exports["Daracl"] = factory();
13
+ else
14
+ root["Daracl"] = root["Daracl"] || {}, root["Daracl"]["dialog"] = factory();
15
15
  })(self, function() {
16
16
  return /******/ (function() { // webpackBootstrap
17
17
  /******/ "use strict";
@@ -5199,17 +5199,6 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
5199
5199
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
5200
5200
  /******/ }();
5201
5201
  /******/
5202
- /******/ /* webpack/runtime/make namespace object */
5203
- /******/ !function() {
5204
- /******/ // define __esModule on exports
5205
- /******/ __webpack_require__.r = function(exports) {
5206
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5207
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5208
- /******/ }
5209
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
5210
- /******/ };
5211
- /******/ }();
5212
- /******/
5213
5202
  /************************************************************************/
5214
5203
  var __webpack_exports__ = {};
5215
5204
  // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
@@ -5217,9 +5206,8 @@ var __webpack_exports__ = {};
5217
5206
  /*!**********************!*\
5218
5207
  !*** ./src/index.js ***!
5219
5208
  \**********************/
5220
- __webpack_require__.r(__webpack_exports__);
5221
5209
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5222
- /* harmony export */ Dialog: function() { return /* binding */ Dialog; }
5210
+ /* harmony export */ "default": function() { return /* binding */ Dialog; }
5223
5211
  /* harmony export */ });
5224
5212
  /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
5225
5213
  /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
@@ -5463,13 +5451,6 @@ var Dialog = /*#__PURE__*/function () {
5463
5451
  this.show();
5464
5452
  }
5465
5453
  }
5466
-
5467
- /**
5468
- * default options 셋팅
5469
- *
5470
- * @static
5471
- * @typedef {Object} defaultOptions
5472
- */
5473
5454
  return _createClass(Dialog, [{
5474
5455
  key: "initResize",
5475
5456
  value: /** 사이즈 조절 초기화 */
@@ -5772,14 +5753,28 @@ var Dialog = /*#__PURE__*/function () {
5772
5753
  });
5773
5754
  }
5774
5755
  }], [{
5756
+ key: "create",
5757
+ value: function create(options) {
5758
+ return new Dialog(options);
5759
+ }
5760
+
5761
+ /**
5762
+ * default options 셋팅
5763
+ *
5764
+ * @static
5765
+ * @typedef {Object} defaultOptions
5766
+ */
5767
+ }, {
5775
5768
  key: "setOptions",
5776
5769
  value: function setOptions(options) {
5777
5770
  defaultOptions = Object.assign({}, defaultOptions, options);
5778
5771
  }
5779
5772
  }]);
5780
5773
  }();
5781
- _defineProperty(Dialog, "VERSION", "0.0.2");
5774
+ _defineProperty(Dialog, "VERSION", "0.0.4");
5775
+
5782
5776
  }();
5777
+ __webpack_exports__ = __webpack_exports__["default"];
5783
5778
  /******/ return __webpack_exports__;
5784
5779
  /******/ })()
5785
5780
  ;