sample-piral 0.14.8-beta.3504 → 0.14.8-beta.3509

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.
@@ -3222,7 +3222,7 @@ function createInstance() {
3222
3222
  var createApi = apiFactory(context, usedPlugins);
3223
3223
  var root = createApi({
3224
3224
  name: 'root',
3225
- version: "0.14.8-beta.3504" || 0,
3225
+ version: "0.14.8-beta.3509" || 0,
3226
3226
  spec: ''
3227
3227
  });
3228
3228
  var options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -3762,18 +3762,40 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
3762
3762
  _this = _super.apply(this, arguments);
3763
3763
  _this.dispose = _utils__WEBPACK_IMPORTED_MODULE_0__.noop;
3764
3764
  _this.update = _utils__WEBPACK_IMPORTED_MODULE_0__.noop;
3765
+ _this.props = {
3766
+ name: _this.getAttribute('name'),
3767
+ params: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(_this.getAttribute('params')),
3768
+ empty: undefined
3769
+ };
3765
3770
  return _this;
3766
3771
  }
3767
3772
 
3768
3773
  _createClass(PiralExtension, [{
3769
- key: "getProps",
3770
- value: function getProps() {
3771
- var name = this.getAttribute('name');
3772
- var params = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(this.getAttribute('params'));
3773
- return {
3774
- name: name,
3775
- params: params
3776
- };
3774
+ key: "params",
3775
+ get: function get() {
3776
+ return this.props.params;
3777
+ },
3778
+ set: function set(value) {
3779
+ this.props.params = value;
3780
+ this.update(this.props);
3781
+ }
3782
+ }, {
3783
+ key: "name",
3784
+ get: function get() {
3785
+ return this.props.name;
3786
+ },
3787
+ set: function set(value) {
3788
+ this.props.name = value;
3789
+ this.update(this.props);
3790
+ }
3791
+ }, {
3792
+ key: "empty",
3793
+ get: function get() {
3794
+ return this.props.empty;
3795
+ },
3796
+ set: function set(value) {
3797
+ this.props.empty = value;
3798
+ this.update(this.props);
3777
3799
  }
3778
3800
  }, {
3779
3801
  key: "connectedCallback",
@@ -3783,7 +3805,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
3783
3805
  bubbles: true,
3784
3806
  detail: {
3785
3807
  target: this,
3786
- props: this.getProps()
3808
+ props: this.props
3787
3809
  }
3788
3810
  }));
3789
3811
  }
@@ -3797,8 +3819,16 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
3797
3819
  }
3798
3820
  }, {
3799
3821
  key: "attributeChangedCallback",
3800
- value: function attributeChangedCallback() {
3801
- this.update(this.getProps());
3822
+ value: function attributeChangedCallback(name, _, newValue) {
3823
+ switch (name) {
3824
+ case 'name':
3825
+ this.name = newValue;
3826
+ break;
3827
+
3828
+ case 'params':
3829
+ this.params = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(newValue);
3830
+ break;
3831
+ }
3802
3832
  }
3803
3833
  }], [{
3804
3834
  key: "observedAttributes",
@@ -9028,11 +9058,11 @@ function installPiralDebug(options) {
9028
9058
  debug: debugApiVersion,
9029
9059
  instance: {
9030
9060
  name: "sample-piral",
9031
- version: "0.14.8-beta.3504",
9061
+ version: "0.14.8-beta.3509",
9032
9062
  dependencies: "reactstrap,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
9033
9063
  },
9034
9064
  build: {
9035
- date: "2022-01-18T18:14:49.804Z",
9065
+ date: "2022-01-19T08:52:54.958Z",
9036
9066
  cli: "0.14.7",
9037
9067
  compat: "0.14"
9038
9068
  },
@@ -80337,4 +80367,4 @@ var layout_1 = __webpack_require__(/*! ./layout */ "./src/layout.tsx");
80337
80367
 
80338
80368
  /******/ })()
80339
80369
  ;
80340
- //# sourceMappingURL=index.1a4f84.js.map
80370
+ //# sourceMappingURL=index.e6e3cd.js.map