not-bulma 1.0.2 → 1.0.3

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/dist/notBulma.js CHANGED
@@ -12610,7 +12610,7 @@ var notBulma = (function (exports) {
12610
12610
  ];
12611
12611
  }
12612
12612
 
12613
- class Form$1 extends SvelteComponent {
12613
+ class Form extends SvelteComponent {
12614
12614
  constructor(options) {
12615
12615
  super();
12616
12616
 
@@ -12754,7 +12754,7 @@ var notBulma = (function (exports) {
12754
12754
  options = {},
12755
12755
  working = {},
12756
12756
  data: _data = {},
12757
- ui = Form$1 //default UI
12757
+ ui = Form //default UI
12758
12758
 
12759
12759
  } = _ref;
12760
12760
  super({
@@ -13429,7 +13429,7 @@ var notBulma = (function (exports) {
13429
13429
  constructor(_ref) {
13430
13430
  let {
13431
13431
  options = {},
13432
- formComponent = Form$1,
13432
+ formComponent = Form,
13433
13433
  formSetComponent = Form_set
13434
13434
  } = _ref;
13435
13435
  super({
@@ -13463,7 +13463,7 @@ var notBulma = (function (exports) {
13463
13463
  value: null
13464
13464
  });
13465
13465
 
13466
- _classPrivateFieldSet(this, _formComponent, Form$1);
13466
+ _classPrivateFieldSet(this, _formComponent, Form);
13467
13467
 
13468
13468
  _classPrivateFieldSet(this, _formSetComponent, Form_set);
13469
13469
 
@@ -20099,7 +20099,7 @@ var notBulma = (function (exports) {
20099
20099
 
20100
20100
  controller.ui[ACTION$4] = new notForm({
20101
20101
  options: {
20102
- target: controller.els.main,
20102
+ target: controller.getContainerInnerElement(),
20103
20103
  model: controller.getModelName(),
20104
20104
  action: createActionName,
20105
20105
  name: `${controller.getName()}.${ACTION$4}Form`,
@@ -20163,7 +20163,7 @@ var notBulma = (function (exports) {
20163
20163
  }]);
20164
20164
  controller.ui[ACTION$3] = new notForm({
20165
20165
  options: {
20166
- target: controller.els.main,
20166
+ target: controller.getContainerInnerElement(),
20167
20167
  model: controller.getModelName(),
20168
20168
  action: detailsActionName,
20169
20169
  name: `${controller.getName()}.${ACTION$3}Form`,
@@ -20176,9 +20176,9 @@ var notBulma = (function (exports) {
20176
20176
  data: res.result
20177
20177
  });
20178
20178
  controller.emit(`after:render:${ACTION$3}`);
20179
- controller.ui[ACTION$3].$on('reject', controller.goList.bind(this));
20179
+ controller.ui[ACTION$3].$on('reject', controller.goList.bind(controller));
20180
20180
  } catch (e) {
20181
- contoller.report(e);
20181
+ controller.report(e);
20182
20182
  controller.showErrorMessage(e);
20183
20183
  }
20184
20184
  }
@@ -20222,7 +20222,7 @@ var notBulma = (function (exports) {
20222
20222
  }]);
20223
20223
  controller.ui[ACTION$2] = new notForm({
20224
20224
  options: {
20225
- target: controller.els.main,
20225
+ target: controller.getContainerInnerElement(),
20226
20226
  model: controller.getModelName(),
20227
20227
  action: MODEL_ACTION_UPDATE,
20228
20228
  name: `${controller.getName()}.${ACTION$2}Form`,
@@ -20329,7 +20329,7 @@ var notBulma = (function (exports) {
20329
20329
  };
20330
20330
  const TABLE_OPTIONS = {
20331
20331
  options: {
20332
- targetEl: controller.els.main,
20332
+ targetEl: controller.getContainerInnerElement(),
20333
20333
  endless: false,
20334
20334
  actions: [{
20335
20335
  title: 'Создать',
@@ -20509,11 +20509,11 @@ var notBulma = (function (exports) {
20509
20509
 
20510
20510
  async preloadVariants() {
20511
20511
  let type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'list';
20512
- await CRUDVariantsPreloader.preload(this, type);
20512
+ await _classPrivateFieldGet(this, _preloader).preload(this, type);
20513
20513
  }
20514
20514
 
20515
20515
  getTitleFromLib(propName, id) {
20516
- return Form.getVariant(propName, id).title;
20516
+ throw new Error('not suported anymore'); //return Form.getVariant(propName, id).title;
20517
20517
  }
20518
20518
 
20519
20519
  getItemTitle(item) {
@@ -20650,7 +20650,7 @@ var notBulma = (function (exports) {
20650
20650
  FIELDS: FIELDS$1,
20651
20651
  VARIANTS: VARIANTS,
20652
20652
  notTable: notTable,
20653
- UIForm: Form$1,
20653
+ UIForm: Form,
20654
20654
  notForm: notForm,
20655
20655
  notFormSet: notFormSet,
20656
20656
  notFormUtils: notFormUtils,