not-bulma 1.0.13 → 1.0.16
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 +144 -133
- package/dist/notBulma.min.js +1 -1
- package/package.json +1 -1
- package/src/frame/components/form/form.js +6 -1
- package/src/frame/crud/actions/create.js +2 -2
- package/src/frame/crud/actions/details.js +3 -3
- package/src/frame/crud/actions/update.js +4 -4
- package/src/index.old.js +0 -131
- package/test/server/app.old.js +0 -312
package/dist/notBulma.js
CHANGED
|
@@ -1118,7 +1118,7 @@ var notBulma = (function (exports) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
-
var index$
|
|
1121
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
1122
1122
|
__proto__: null,
|
|
1123
1123
|
UIBlock: Ui_block,
|
|
1124
1124
|
UIBox: Ui_box,
|
|
@@ -1828,7 +1828,7 @@ var notBulma = (function (exports) {
|
|
|
1828
1828
|
}, {});
|
|
1829
1829
|
};
|
|
1830
1830
|
|
|
1831
|
-
class notCommon$
|
|
1831
|
+
class notCommon$1 {
|
|
1832
1832
|
static isError(e) {
|
|
1833
1833
|
return e instanceof Error || Object.prototype.hasOwnProperty.call(e, 'status') && e.status === 'error';
|
|
1834
1834
|
}
|
|
@@ -1921,8 +1921,8 @@ var notBulma = (function (exports) {
|
|
|
1921
1921
|
if (obj) {
|
|
1922
1922
|
const proc = notPath.get(':' + name, obj);
|
|
1923
1923
|
|
|
1924
|
-
if (notCommon$
|
|
1925
|
-
if (notCommon$
|
|
1924
|
+
if (notCommon$1.isFunc(proc)) {
|
|
1925
|
+
if (notCommon$1.isAsync(proc)) {
|
|
1926
1926
|
return await proc(...params);
|
|
1927
1927
|
} else {
|
|
1928
1928
|
return proc(...params);
|
|
@@ -2022,10 +2022,10 @@ var notBulma = (function (exports) {
|
|
|
2022
2022
|
static genLogMsg(prefix) {
|
|
2023
2023
|
return function () {
|
|
2024
2024
|
//not arrow bc of arguments special var is not available in arrow functions
|
|
2025
|
-
let now = notCommon$
|
|
2025
|
+
let now = notCommon$1.localIsoDate(); // eslint-disable-next-line no-console
|
|
2026
2026
|
|
|
2027
|
-
window[notCommon$
|
|
2028
|
-
notCommon$
|
|
2027
|
+
window[notCommon$1.LOG].log(`[${now}]: ${prefix}::`, ...arguments);
|
|
2028
|
+
notCommon$1.backlogAdd([`[${now}]: ${prefix}::`, ...arguments], 'log');
|
|
2029
2029
|
};
|
|
2030
2030
|
}
|
|
2031
2031
|
/**
|
|
@@ -2069,10 +2069,10 @@ var notBulma = (function (exports) {
|
|
|
2069
2069
|
static genLogError(prefix) {
|
|
2070
2070
|
return function () {
|
|
2071
2071
|
//do not change to arrow function, bc of arguments
|
|
2072
|
-
let now = notCommon$
|
|
2072
|
+
let now = notCommon$1.localIsoDate(); // eslint-disable-next-line no-console
|
|
2073
2073
|
|
|
2074
|
-
window[notCommon$
|
|
2075
|
-
notCommon$
|
|
2074
|
+
window[notCommon$1.LOG].error(`[${now}]: ${prefix}::`, ...arguments);
|
|
2075
|
+
notCommon$1.backlogAdd([`[${now}]: ${prefix}::`, ...arguments], 'error');
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
@@ -2353,29 +2353,29 @@ var notBulma = (function (exports) {
|
|
|
2353
2353
|
|
|
2354
2354
|
}
|
|
2355
2355
|
|
|
2356
|
-
_defineProperty(notCommon$
|
|
2356
|
+
_defineProperty(notCommon$1, "MANAGER", null);
|
|
2357
2357
|
|
|
2358
|
-
_defineProperty(notCommon$
|
|
2358
|
+
_defineProperty(notCommon$1, "LOG", 'console');
|
|
2359
2359
|
|
|
2360
|
-
_defineProperty(notCommon$
|
|
2360
|
+
_defineProperty(notCommon$1, "deepMerge", deepmerge);
|
|
2361
2361
|
|
|
2362
|
-
_defineProperty(notCommon$
|
|
2362
|
+
_defineProperty(notCommon$1, "TZ_OFFSET", new Date().getTimezoneOffset() / 60 * -1);
|
|
2363
2363
|
|
|
2364
|
-
_defineProperty(notCommon$
|
|
2364
|
+
_defineProperty(notCommon$1, "DEV_ENV", 'production');
|
|
2365
2365
|
|
|
2366
|
-
_defineProperty(notCommon$
|
|
2366
|
+
_defineProperty(notCommon$1, "ENV_TYPE", window.NOT_ENV_TYPE ? window.NOT_ENV_TYPE : notCommon$1.DEV_ENV);
|
|
2367
2367
|
|
|
2368
|
-
_defineProperty(notCommon$
|
|
2368
|
+
_defineProperty(notCommon$1, "NOOP", function () {});
|
|
2369
2369
|
|
|
2370
|
-
_defineProperty(notCommon$
|
|
2370
|
+
_defineProperty(notCommon$1, "backlog", []);
|
|
2371
2371
|
|
|
2372
|
-
_defineProperty(notCommon$
|
|
2372
|
+
_defineProperty(notCommon$1, "registry", {});
|
|
2373
2373
|
|
|
2374
2374
|
function absorbServices(target, src) {
|
|
2375
2375
|
if (target) {
|
|
2376
2376
|
for (let serv in src) {
|
|
2377
2377
|
if (Object.prototype.hasOwnProperty.call(target, serv)) {
|
|
2378
|
-
notCommon$
|
|
2378
|
+
notCommon$1.logError(`services property duplication ${serv}`);
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
2381
|
target[serv] = src[serv];
|
|
@@ -2438,7 +2438,7 @@ var notBulma = (function (exports) {
|
|
|
2438
2438
|
if (target) {
|
|
2439
2439
|
for (let ui in src) {
|
|
2440
2440
|
if (Object.prototype.hasOwnProperty.call(target, ui)) {
|
|
2441
|
-
notCommon$
|
|
2441
|
+
notCommon$1.logError(`uis property duplication ${ui}`);
|
|
2442
2442
|
}
|
|
2443
2443
|
|
|
2444
2444
|
target[ui] = src[ui];
|
|
@@ -2450,7 +2450,7 @@ var notBulma = (function (exports) {
|
|
|
2450
2450
|
if (target) {
|
|
2451
2451
|
for (let ui in src) {
|
|
2452
2452
|
if (Object.prototype.hasOwnProperty.call(target, ui)) {
|
|
2453
|
-
notCommon$
|
|
2453
|
+
notCommon$1.logError(`fields property duplication ${ui}`);
|
|
2454
2454
|
}
|
|
2455
2455
|
|
|
2456
2456
|
target[ui] = src[ui];
|
|
@@ -2458,10 +2458,10 @@ var notBulma = (function (exports) {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
2460
|
|
|
2461
|
-
notCommon$
|
|
2462
|
-
notCommon$
|
|
2463
|
-
notCommon$
|
|
2464
|
-
notCommon$
|
|
2461
|
+
notCommon$1.register('absorb.wsc', absorbWSC);
|
|
2462
|
+
notCommon$1.register('absorb.services', absorbServices);
|
|
2463
|
+
notCommon$1.register('absorb.uis', absorbUIs);
|
|
2464
|
+
notCommon$1.register('absorb.uis', absorbFields);
|
|
2465
2465
|
|
|
2466
2466
|
/* src/elements/various/ui.indicator.svelte generated by Svelte v3.46.6 */
|
|
2467
2467
|
|
|
@@ -2528,7 +2528,7 @@ var notBulma = (function (exports) {
|
|
|
2528
2528
|
let { bottom = false } = $$props;
|
|
2529
2529
|
let sided = false;
|
|
2530
2530
|
let { events = {} } = $$props;
|
|
2531
|
-
let { register = notCommon$
|
|
2531
|
+
let { register = notCommon$1.registerWidgetEvents.bind(notCommon$1) } = $$props;
|
|
2532
2532
|
|
|
2533
2533
|
let { onUpdate = data => {
|
|
2534
2534
|
if (Object.prototype.hasOwnProperty.call(data, 'state')) {
|
|
@@ -3318,7 +3318,7 @@ var notBulma = (function (exports) {
|
|
|
3318
3318
|
throw new Error(`Unknown locale phrase: ${phrase}`);
|
|
3319
3319
|
}
|
|
3320
3320
|
} catch (e) {
|
|
3321
|
-
notCommon$
|
|
3321
|
+
notCommon$1.debug(e);
|
|
3322
3322
|
return phrase;
|
|
3323
3323
|
}
|
|
3324
3324
|
}
|
|
@@ -3341,7 +3341,7 @@ var notBulma = (function (exports) {
|
|
|
3341
3341
|
try {
|
|
3342
3342
|
return window.localStorage.setItem('dictionary', JSON.stringify(dict));
|
|
3343
3343
|
} catch (e) {
|
|
3344
|
-
notCommon$
|
|
3344
|
+
notCommon$1.debug(e);
|
|
3345
3345
|
return false;
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
@@ -3361,7 +3361,7 @@ var notBulma = (function (exports) {
|
|
|
3361
3361
|
return false;
|
|
3362
3362
|
}
|
|
3363
3363
|
} catch (e) {
|
|
3364
|
-
notCommon$
|
|
3364
|
+
notCommon$1.debug(e);
|
|
3365
3365
|
return false;
|
|
3366
3366
|
}
|
|
3367
3367
|
}
|
|
@@ -3478,7 +3478,7 @@ var notBulma = (function (exports) {
|
|
|
3478
3478
|
let { classes = '' } = $$props;
|
|
3479
3479
|
let sided = false;
|
|
3480
3480
|
let { events = {} } = $$props;
|
|
3481
|
-
let { register = notCommon$
|
|
3481
|
+
let { register = notCommon$1.registerWidgetEvents.bind(notCommon$1) } = $$props;
|
|
3482
3482
|
|
|
3483
3483
|
let { onUpdate = data => {
|
|
3484
3484
|
if (Object.prototype.hasOwnProperty.call(data, 'title')) {
|
|
@@ -3794,7 +3794,7 @@ var notBulma = (function (exports) {
|
|
|
3794
3794
|
let { username = 'John Doe' } = $$props;
|
|
3795
3795
|
let { role = 'admin' } = $$props;
|
|
3796
3796
|
let { events = {} } = $$props;
|
|
3797
|
-
let { register = notCommon$
|
|
3797
|
+
let { register = notCommon$1.registerWidgetEvents } = $$props;
|
|
3798
3798
|
|
|
3799
3799
|
let { onUpdate = data => {
|
|
3800
3800
|
if (Object.prototype.hasOwnProperty.call(data, 'username')) {
|
|
@@ -3852,7 +3852,7 @@ var notBulma = (function (exports) {
|
|
|
3852
3852
|
}
|
|
3853
3853
|
}
|
|
3854
3854
|
|
|
3855
|
-
var index$
|
|
3855
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
3856
3856
|
__proto__: null,
|
|
3857
3857
|
UIBooleans: Ui_booleans,
|
|
3858
3858
|
UIIndicator: Ui_indicator,
|
|
@@ -4506,7 +4506,7 @@ var notBulma = (function (exports) {
|
|
|
4506
4506
|
}
|
|
4507
4507
|
}
|
|
4508
4508
|
|
|
4509
|
-
var index$
|
|
4509
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
4510
4510
|
__proto__: null,
|
|
4511
4511
|
UIButton: Ui_button,
|
|
4512
4512
|
UIButtonsRow: Ui_buttons_row,
|
|
@@ -13403,7 +13403,7 @@ var notBulma = (function (exports) {
|
|
|
13403
13403
|
}
|
|
13404
13404
|
}
|
|
13405
13405
|
|
|
13406
|
-
var index$
|
|
13406
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
13407
13407
|
__proto__: null,
|
|
13408
13408
|
UIAutocomplete: Ui_autocomplete,
|
|
13409
13409
|
UICheckboxList: Ui_checkbox_list,
|
|
@@ -13998,7 +13998,7 @@ var notBulma = (function (exports) {
|
|
|
13998
13998
|
}
|
|
13999
13999
|
}
|
|
14000
14000
|
|
|
14001
|
-
var index$
|
|
14001
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
14002
14002
|
__proto__: null,
|
|
14003
14003
|
UIIconButtonWithTag: Ui_icon_button_with_tag,
|
|
14004
14004
|
UIIconFloating: Ui_icon_floating,
|
|
@@ -14230,7 +14230,7 @@ var notBulma = (function (exports) {
|
|
|
14230
14230
|
}
|
|
14231
14231
|
}
|
|
14232
14232
|
|
|
14233
|
-
var index$
|
|
14233
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
14234
14234
|
__proto__: null,
|
|
14235
14235
|
UIImages: Ui_images
|
|
14236
14236
|
});
|
|
@@ -14707,7 +14707,7 @@ var notBulma = (function (exports) {
|
|
|
14707
14707
|
}
|
|
14708
14708
|
}
|
|
14709
14709
|
|
|
14710
|
-
var index$
|
|
14710
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
14711
14711
|
__proto__: null,
|
|
14712
14712
|
UIColumn: Ui_column,
|
|
14713
14713
|
UIColumns: Ui_columns,
|
|
@@ -15206,7 +15206,7 @@ var notBulma = (function (exports) {
|
|
|
15206
15206
|
}
|
|
15207
15207
|
}
|
|
15208
15208
|
|
|
15209
|
-
var index$
|
|
15209
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
15210
15210
|
__proto__: null,
|
|
15211
15211
|
UILink: Ui_link,
|
|
15212
15212
|
UILinks: Ui_links
|
|
@@ -15947,7 +15947,7 @@ var notBulma = (function (exports) {
|
|
|
15947
15947
|
}
|
|
15948
15948
|
}
|
|
15949
15949
|
|
|
15950
|
-
var index$
|
|
15950
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
15951
15951
|
__proto__: null,
|
|
15952
15952
|
UIModal: Ui_modal,
|
|
15953
15953
|
UIOverlay: Ui_overlay
|
|
@@ -16213,7 +16213,7 @@ var notBulma = (function (exports) {
|
|
|
16213
16213
|
}
|
|
16214
16214
|
}
|
|
16215
16215
|
|
|
16216
|
-
var index$
|
|
16216
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
16217
16217
|
__proto__: null,
|
|
16218
16218
|
UIError: Ui_error,
|
|
16219
16219
|
UISuccess: Ui_success,
|
|
@@ -16222,18 +16222,18 @@ var notBulma = (function (exports) {
|
|
|
16222
16222
|
|
|
16223
16223
|
//block elements
|
|
16224
16224
|
|
|
16225
|
-
var index$
|
|
16225
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
16226
16226
|
__proto__: null,
|
|
16227
|
-
Blocks: index$
|
|
16228
|
-
Various: index$
|
|
16229
|
-
Buttons: index$
|
|
16230
|
-
Forms: index$
|
|
16231
|
-
Icons: index$
|
|
16232
|
-
Images: index$
|
|
16233
|
-
Layouts: index$
|
|
16234
|
-
Links: index$
|
|
16235
|
-
Modals: index$
|
|
16236
|
-
Notifications: index$
|
|
16227
|
+
Blocks: index$b,
|
|
16228
|
+
Various: index$a,
|
|
16229
|
+
Buttons: index$9,
|
|
16230
|
+
Forms: index$8,
|
|
16231
|
+
Icons: index$7,
|
|
16232
|
+
Images: index$6,
|
|
16233
|
+
Layouts: index$5,
|
|
16234
|
+
Links: index$4,
|
|
16235
|
+
Modals: index$3,
|
|
16236
|
+
Notifications: index$2,
|
|
16237
16237
|
UICommon: UICommon
|
|
16238
16238
|
});
|
|
16239
16239
|
|
|
@@ -16268,10 +16268,10 @@ var notBulma = (function (exports) {
|
|
|
16268
16268
|
this.setOptions(input.options);
|
|
16269
16269
|
}
|
|
16270
16270
|
|
|
16271
|
-
this.log = notCommon$
|
|
16271
|
+
this.log = notCommon$1.genLogMsg(this.getWorking('name'));
|
|
16272
16272
|
this.info = this.log;
|
|
16273
|
-
this.debug = notCommon$
|
|
16274
|
-
this.error = notCommon$
|
|
16273
|
+
this.debug = notCommon$1.genLogDebug(this.getWorking('name'));
|
|
16274
|
+
this.error = notCommon$1.genLogError(this.getWorking('name'));
|
|
16275
16275
|
}
|
|
16276
16276
|
|
|
16277
16277
|
setCommon(what, args) {
|
|
@@ -16385,13 +16385,13 @@ var notBulma = (function (exports) {
|
|
|
16385
16385
|
}
|
|
16386
16386
|
|
|
16387
16387
|
report(e) {
|
|
16388
|
-
if (notCommon$
|
|
16389
|
-
notCommon$
|
|
16388
|
+
if (notCommon$1.report) {
|
|
16389
|
+
notCommon$1.report(e);
|
|
16390
16390
|
}
|
|
16391
16391
|
}
|
|
16392
16392
|
|
|
16393
16393
|
getApp() {
|
|
16394
|
-
return notCommon$
|
|
16394
|
+
return notCommon$1.getApp();
|
|
16395
16395
|
}
|
|
16396
16396
|
|
|
16397
16397
|
destroy() {
|
|
@@ -16739,12 +16739,12 @@ var notBulma = (function (exports) {
|
|
|
16739
16739
|
this.debug(`tasks [${list}]`);
|
|
16740
16740
|
let task = this.queue.shift();
|
|
16741
16741
|
|
|
16742
|
-
if (!notCommon$
|
|
16742
|
+
if (!notCommon$1.isFunc(task.action)) {
|
|
16743
16743
|
this.error('В задании нет исполнимой части, action не функция', task.title);
|
|
16744
16744
|
return Promise.resolve();
|
|
16745
16745
|
}
|
|
16746
16746
|
|
|
16747
|
-
if (!notCommon$
|
|
16747
|
+
if (!notCommon$1.isFunc(task.resolve)) {
|
|
16748
16748
|
this.error('В задании нет возвратной части, resolve не функция', task.title);
|
|
16749
16749
|
return task.action();
|
|
16750
16750
|
}
|
|
@@ -16905,7 +16905,7 @@ var notBulma = (function (exports) {
|
|
|
16905
16905
|
|
|
16906
16906
|
_defineProperty(notAPIConnection, "online", void 0);
|
|
16907
16907
|
|
|
16908
|
-
var index
|
|
16908
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
16909
16909
|
__proto__: null,
|
|
16910
16910
|
notAPIQueue: notAPIQueue,
|
|
16911
16911
|
notAPIOptions: notAPIOptions,
|
|
@@ -17078,8 +17078,8 @@ var notBulma = (function (exports) {
|
|
|
17078
17078
|
return response.json();
|
|
17079
17079
|
});
|
|
17080
17080
|
} catch (e) {
|
|
17081
|
-
notCommon$
|
|
17082
|
-
notCommon$
|
|
17081
|
+
notCommon$1.error(e);
|
|
17082
|
+
notCommon$1.report(e);
|
|
17083
17083
|
}
|
|
17084
17084
|
}
|
|
17085
17085
|
|
|
@@ -17087,7 +17087,7 @@ var notBulma = (function (exports) {
|
|
|
17087
17087
|
try {
|
|
17088
17088
|
let actionData = this.getActionData(actionName),
|
|
17089
17089
|
requestParams = this.collectRequestData(actionData);
|
|
17090
|
-
const WS = notCommon$
|
|
17090
|
+
const WS = notCommon$1.getApp().getWSClient();
|
|
17091
17091
|
const messageName = this.getWSRequestName(actionName);
|
|
17092
17092
|
const payload = Object.assign({}, requestParams, record.getData());
|
|
17093
17093
|
|
|
@@ -17101,8 +17101,8 @@ var notBulma = (function (exports) {
|
|
|
17101
17101
|
});
|
|
17102
17102
|
}
|
|
17103
17103
|
} catch (e) {
|
|
17104
|
-
notCommon$
|
|
17105
|
-
notCommon$
|
|
17104
|
+
notCommon$1.error(e);
|
|
17105
|
+
notCommon$1.report(e);
|
|
17106
17106
|
}
|
|
17107
17107
|
}
|
|
17108
17108
|
|
|
@@ -17126,9 +17126,9 @@ var notBulma = (function (exports) {
|
|
|
17126
17126
|
let client;
|
|
17127
17127
|
|
|
17128
17128
|
if (Object.prototype.hasOwnProperty.call(actionData, 'wsClient') && actionData.wsClient) {
|
|
17129
|
-
client = notCommon$
|
|
17129
|
+
client = notCommon$1.getApp().getWSClient(actionData.wsClient);
|
|
17130
17130
|
} else {
|
|
17131
|
-
client = notCommon$
|
|
17131
|
+
client = notCommon$1.getApp().getWSClient();
|
|
17132
17132
|
}
|
|
17133
17133
|
|
|
17134
17134
|
if (client) {
|
|
@@ -17203,7 +17203,7 @@ var notBulma = (function (exports) {
|
|
|
17203
17203
|
}
|
|
17204
17204
|
|
|
17205
17205
|
getServerURL() {
|
|
17206
|
-
return notCommon$
|
|
17206
|
+
return notCommon$1.getApp() ? notCommon$1.getApp().getOptions('api.server.url', '') : '';
|
|
17207
17207
|
}
|
|
17208
17208
|
|
|
17209
17209
|
getWSRequestName(actionName) {
|
|
@@ -17241,7 +17241,7 @@ var notBulma = (function (exports) {
|
|
|
17241
17241
|
|
|
17242
17242
|
if (Object.prototype.hasOwnProperty.call(actionData, 'data') && Array.isArray(actionData.data)) {
|
|
17243
17243
|
for (let i = 0; i < actionData.data.length; i++) {
|
|
17244
|
-
let dataProviderName = 'get' + notCommon$
|
|
17244
|
+
let dataProviderName = 'get' + notCommon$1.capitalizeFirstLetter(actionData.data[i]);
|
|
17245
17245
|
|
|
17246
17246
|
if (this[dataProviderName] && typeof this[dataProviderName] === 'function') {
|
|
17247
17247
|
let data = this[dataProviderName](),
|
|
@@ -17395,7 +17395,7 @@ var notBulma = (function (exports) {
|
|
|
17395
17395
|
}
|
|
17396
17396
|
|
|
17397
17397
|
if (item && item.isProxy) {
|
|
17398
|
-
notCommon$
|
|
17398
|
+
notCommon$1.error('this is Proxy item');
|
|
17399
17399
|
return item;
|
|
17400
17400
|
}
|
|
17401
17401
|
|
|
@@ -17431,7 +17431,7 @@ var notBulma = (function (exports) {
|
|
|
17431
17431
|
|
|
17432
17432
|
mapToMethods() {
|
|
17433
17433
|
let manifest = this[META_INTERFACE].manifest,
|
|
17434
|
-
app = notCommon$
|
|
17434
|
+
app = notCommon$1.getApp(),
|
|
17435
17435
|
methods = {};
|
|
17436
17436
|
|
|
17437
17437
|
if (manifest.methods) {
|
|
@@ -17518,7 +17518,7 @@ var notBulma = (function (exports) {
|
|
|
17518
17518
|
let prx = this.getData(what, {});
|
|
17519
17519
|
|
|
17520
17520
|
if (plain) {
|
|
17521
|
-
return notCommon$
|
|
17521
|
+
return notCommon$1.stripProxy(prx);
|
|
17522
17522
|
} else {
|
|
17523
17523
|
return prx;
|
|
17524
17524
|
}
|
|
@@ -17576,13 +17576,13 @@ var notBulma = (function (exports) {
|
|
|
17576
17576
|
options
|
|
17577
17577
|
});
|
|
17578
17578
|
this.log('start app');
|
|
17579
|
-
notCommon$
|
|
17579
|
+
notCommon$1.register('app', this);
|
|
17580
17580
|
this.initManifest();
|
|
17581
17581
|
return this;
|
|
17582
17582
|
}
|
|
17583
17583
|
|
|
17584
17584
|
initManifest() {
|
|
17585
|
-
notCommon$
|
|
17585
|
+
notCommon$1.getJSON(this.getOptions('manifestURL'), {}).then(this.setInterfaceManifest.bind(this)).catch(notCommon$1.report.bind(this));
|
|
17586
17586
|
}
|
|
17587
17587
|
|
|
17588
17588
|
initRouter() {
|
|
@@ -17683,17 +17683,17 @@ var notBulma = (function (exports) {
|
|
|
17683
17683
|
return new notRecord(recordManifest, recordData);
|
|
17684
17684
|
};
|
|
17685
17685
|
|
|
17686
|
-
window['nr' + notCommon$
|
|
17686
|
+
window['nr' + notCommon$1.capitalizeFirstLetter(name)] = this.getWorking('interfaces')[name];
|
|
17687
17687
|
}
|
|
17688
17688
|
}
|
|
17689
17689
|
}
|
|
17690
17690
|
|
|
17691
17691
|
getRecordName(name) {
|
|
17692
|
-
return OPT_RECORD_PREFIX + notCommon$
|
|
17692
|
+
return OPT_RECORD_PREFIX + notCommon$1.capitalizeFirstLetter(name);
|
|
17693
17693
|
}
|
|
17694
17694
|
|
|
17695
17695
|
getControllerName(name) {
|
|
17696
|
-
return OPT_CONTROLLER_PREFIX + notCommon$
|
|
17696
|
+
return OPT_CONTROLLER_PREFIX + notCommon$1.capitalizeFirstLetter(name);
|
|
17697
17697
|
}
|
|
17698
17698
|
|
|
17699
17699
|
getInterfaces() {
|
|
@@ -17738,7 +17738,7 @@ var notBulma = (function (exports) {
|
|
|
17738
17738
|
for (let servName in this.getOptions('services')) {
|
|
17739
17739
|
try {
|
|
17740
17740
|
let serv = this.getOptions(`services.${servName}`);
|
|
17741
|
-
const servType = notCommon$
|
|
17741
|
+
const servType = notCommon$1.detectType(serv);
|
|
17742
17742
|
|
|
17743
17743
|
switch (servType) {
|
|
17744
17744
|
case 'function':
|
|
@@ -17888,7 +17888,7 @@ var notBulma = (function (exports) {
|
|
|
17888
17888
|
|
|
17889
17889
|
|
|
17890
17890
|
getApp() {
|
|
17891
|
-
return notCommon$
|
|
17891
|
+
return notCommon$1.getApp();
|
|
17892
17892
|
}
|
|
17893
17893
|
/**
|
|
17894
17894
|
* Sets default controller model
|
|
@@ -17937,7 +17937,7 @@ var notBulma = (function (exports) {
|
|
|
17937
17937
|
|
|
17938
17938
|
|
|
17939
17939
|
setModelName(modelName) {
|
|
17940
|
-
this.setWorking('modelName', notCommon$
|
|
17940
|
+
this.setWorking('modelName', notCommon$1.lowerFirstLetter(modelName));
|
|
17941
17941
|
return this;
|
|
17942
17942
|
}
|
|
17943
17943
|
/**
|
|
@@ -18000,7 +18000,7 @@ var notBulma = (function (exports) {
|
|
|
18000
18000
|
|
|
18001
18001
|
|
|
18002
18002
|
setModuleName(val) {
|
|
18003
|
-
this.setOptions('moduleName', notCommon$
|
|
18003
|
+
this.setOptions('moduleName', notCommon$1.lowerFirstLetter(val));
|
|
18004
18004
|
this.updateAutoName();
|
|
18005
18005
|
return this;
|
|
18006
18006
|
}
|
|
@@ -18020,7 +18020,7 @@ var notBulma = (function (exports) {
|
|
|
18020
18020
|
|
|
18021
18021
|
|
|
18022
18022
|
getModulePrefix() {
|
|
18023
|
-
return [notCommon$
|
|
18023
|
+
return [notCommon$1.getApp().getOptions('paths.modules'), this.getModuleName()].join('/');
|
|
18024
18024
|
}
|
|
18025
18025
|
/**
|
|
18026
18026
|
* Returns this model URL with URL prefix
|
|
@@ -18029,7 +18029,7 @@ var notBulma = (function (exports) {
|
|
|
18029
18029
|
|
|
18030
18030
|
|
|
18031
18031
|
getModelURL() {
|
|
18032
|
-
return notCommon$
|
|
18032
|
+
return notCommon$1.buildURL({
|
|
18033
18033
|
prefix: this.getURLPrefix(),
|
|
18034
18034
|
module: this.getModuleName(),
|
|
18035
18035
|
model: this.getModelName()
|
|
@@ -18045,7 +18045,7 @@ var notBulma = (function (exports) {
|
|
|
18045
18045
|
|
|
18046
18046
|
getModelActionURL(id) {
|
|
18047
18047
|
let action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
18048
|
-
return notCommon$
|
|
18048
|
+
return notCommon$1.buildURL({
|
|
18049
18049
|
prefix: this.getURLPrefix(),
|
|
18050
18050
|
module: this.getModuleName(),
|
|
18051
18051
|
model: this.getModelName(),
|
|
@@ -18055,7 +18055,7 @@ var notBulma = (function (exports) {
|
|
|
18055
18055
|
}
|
|
18056
18056
|
|
|
18057
18057
|
buildURL(val) {
|
|
18058
|
-
return notCommon$
|
|
18058
|
+
return notCommon$1.buildURL(val);
|
|
18059
18059
|
}
|
|
18060
18060
|
/**
|
|
18061
18061
|
* Updates working name
|
|
@@ -18079,6 +18079,15 @@ var notBulma = (function (exports) {
|
|
|
18079
18079
|
this.setOptions('autoName', false);
|
|
18080
18080
|
return this;
|
|
18081
18081
|
}
|
|
18082
|
+
/**
|
|
18083
|
+
* Gets object name
|
|
18084
|
+
* @return {string}
|
|
18085
|
+
*/
|
|
18086
|
+
|
|
18087
|
+
|
|
18088
|
+
getName(val) {
|
|
18089
|
+
return this.getWorking('name');
|
|
18090
|
+
}
|
|
18082
18091
|
/**
|
|
18083
18092
|
* Preload records from server, using listAll method,
|
|
18084
18093
|
* returns Promise
|
|
@@ -18144,7 +18153,7 @@ var notBulma = (function (exports) {
|
|
|
18144
18153
|
|
|
18145
18154
|
getActionName() {
|
|
18146
18155
|
let name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : OPT_DEFAULT_ACTION_NAME;
|
|
18147
|
-
return 'run' + notCommon$
|
|
18156
|
+
return 'run' + notCommon$1.capitalizeFirstLetter(name);
|
|
18148
18157
|
}
|
|
18149
18158
|
/**
|
|
18150
18159
|
* Get default controller action name
|
|
@@ -18262,11 +18271,11 @@ var notBulma = (function (exports) {
|
|
|
18262
18271
|
let path = [];
|
|
18263
18272
|
|
|
18264
18273
|
if (this.MODULE_NAME && this.MODULE_NAME.length > 0) {
|
|
18265
|
-
path.push(notCommon$
|
|
18274
|
+
path.push(notCommon$1.lowerFirstLetter(this.MODULE_NAME));
|
|
18266
18275
|
}
|
|
18267
18276
|
|
|
18268
18277
|
if (this.MODEL_NAME && this.MODEL_NAME.length > 0) {
|
|
18269
|
-
path.push(notCommon$
|
|
18278
|
+
path.push(notCommon$1.lowerFirstLetter(this.MODEL_NAME));
|
|
18270
18279
|
}
|
|
18271
18280
|
|
|
18272
18281
|
path = [path.join('/')];
|
|
@@ -18876,7 +18885,7 @@ var notBulma = (function (exports) {
|
|
|
18876
18885
|
|
|
18877
18886
|
// (51:2) {#if !isNaN(field.maxLength) && field.maxLength }
|
|
18878
18887
|
function create_if_block_7$1(ctx) {
|
|
18879
|
-
let t_value = notCommon$
|
|
18888
|
+
let t_value = notCommon$1.strLengthCap(notPath.get(/*field*/ ctx[1].path, /*item*/ ctx[2], /*helpers*/ ctx[3]), /*field*/ ctx[1].maxLength) + "";
|
|
18880
18889
|
let t;
|
|
18881
18890
|
|
|
18882
18891
|
return {
|
|
@@ -18887,7 +18896,7 @@ var notBulma = (function (exports) {
|
|
|
18887
18896
|
insert(target, t, anchor);
|
|
18888
18897
|
},
|
|
18889
18898
|
p(ctx, dirty) {
|
|
18890
|
-
if (dirty & /*field, item, helpers*/ 14 && t_value !== (t_value = notCommon$
|
|
18899
|
+
if (dirty & /*field, item, helpers*/ 14 && t_value !== (t_value = notCommon$1.strLengthCap(notPath.get(/*field*/ ctx[1].path, /*item*/ ctx[2], /*helpers*/ ctx[3]), /*field*/ ctx[1].maxLength) + "")) set_data(t, t_value);
|
|
18891
18900
|
},
|
|
18892
18901
|
i: noop,
|
|
18893
18902
|
o: noop,
|
|
@@ -21418,11 +21427,11 @@ var notBulma = (function (exports) {
|
|
|
21418
21427
|
_this.actionFieldsInit(subFieldName, options, data);
|
|
21419
21428
|
});
|
|
21420
21429
|
} else {
|
|
21421
|
-
if (!notCommon$
|
|
21430
|
+
if (!notCommon$1.objHas(options, 'fields')) {
|
|
21422
21431
|
options.fields = {};
|
|
21423
21432
|
}
|
|
21424
21433
|
|
|
21425
|
-
if (!notCommon$
|
|
21434
|
+
if (!notCommon$1.objHas(options.fields, fieldName)) {
|
|
21426
21435
|
options.fields[fieldName] = {};
|
|
21427
21436
|
} //copying initial data
|
|
21428
21437
|
|
|
@@ -21864,7 +21873,7 @@ var notBulma = (function (exports) {
|
|
|
21864
21873
|
} //adding variants list to field from VARIANTS store
|
|
21865
21874
|
|
|
21866
21875
|
|
|
21867
|
-
if (notCommon$
|
|
21876
|
+
if (notCommon$1.objHas(field, 'variantsSource') && VARIANTS.contains(field.variantsSource)) {
|
|
21868
21877
|
field.variants = VARIANTS.get(field.variantsSource);
|
|
21869
21878
|
} else {
|
|
21870
21879
|
if (!field.variants || field.variants.length === 0) {
|
|
@@ -21900,11 +21909,11 @@ var notBulma = (function (exports) {
|
|
|
21900
21909
|
} else {
|
|
21901
21910
|
let opts = {};
|
|
21902
21911
|
|
|
21903
|
-
if (formFieldsOptions && notCommon$
|
|
21912
|
+
if (formFieldsOptions && notCommon$1.objHas(formFieldsOptions, 'mutations') && notCommon$1.objHas(formFieldsOptions.mutations, fieldName)) {
|
|
21904
21913
|
opts = formFieldsOptions.mutations[fieldName]; //option mutation for field
|
|
21905
21914
|
}
|
|
21906
21915
|
|
|
21907
|
-
if (data && notCommon$
|
|
21916
|
+
if (data && notCommon$1.objHas(data, fieldName)) {
|
|
21908
21917
|
opts.value = data[fieldName];
|
|
21909
21918
|
}
|
|
21910
21919
|
|
|
@@ -22059,7 +22068,7 @@ var notBulma = (function (exports) {
|
|
|
22059
22068
|
}
|
|
22060
22069
|
|
|
22061
22070
|
function setFieldValue(form, fieldName, value) {
|
|
22062
|
-
if (notCommon$
|
|
22071
|
+
if (notCommon$1.objHas(form, fieldName)) {
|
|
22063
22072
|
form[fieldName].value = value;
|
|
22064
22073
|
return true;
|
|
22065
22074
|
}
|
|
@@ -22068,7 +22077,7 @@ var notBulma = (function (exports) {
|
|
|
22068
22077
|
}
|
|
22069
22078
|
|
|
22070
22079
|
function fieldIsVisibleAndFilled(form, fieldName) {
|
|
22071
|
-
return notCommon$
|
|
22080
|
+
return notCommon$1.objHas(form, fieldName) && form[fieldName].enabled && form[fieldName].visible && typeof form[fieldName].value !== 'undefined';
|
|
22072
22081
|
}
|
|
22073
22082
|
|
|
22074
22083
|
function collectData(fields, form) {
|
|
@@ -24556,7 +24565,7 @@ var notBulma = (function (exports) {
|
|
|
24556
24565
|
|
|
24557
24566
|
_classPrivateFieldSet(this, _uiComponent, ui);
|
|
24558
24567
|
|
|
24559
|
-
if (notCommon$
|
|
24568
|
+
if (notCommon$1.objHas(options, 'action')) {
|
|
24560
24569
|
_classPrivateFieldSet(this, _action, options.action);
|
|
24561
24570
|
}
|
|
24562
24571
|
|
|
@@ -24588,7 +24597,7 @@ var notBulma = (function (exports) {
|
|
|
24588
24597
|
initFields() {
|
|
24589
24598
|
const manifest = this.getFormManifest();
|
|
24590
24599
|
|
|
24591
|
-
if (notCommon$
|
|
24600
|
+
if (notCommon$1.objHas(manifest, 'fields') && _classPrivateFieldGet(this, _fields).isEmpty()) {
|
|
24592
24601
|
_classPrivateFieldGet(this, _fields).import(manifest.fields); //all fields available in model manifest
|
|
24593
24602
|
|
|
24594
24603
|
}
|
|
@@ -24615,6 +24624,8 @@ var notBulma = (function (exports) {
|
|
|
24615
24624
|
|
|
24616
24625
|
const target = this.getFormTargetEl();
|
|
24617
24626
|
|
|
24627
|
+
while (target.children.length) target.removeChild(target.firstChild);
|
|
24628
|
+
|
|
24618
24629
|
_classPrivateFieldSet(this, _form$1, new (_classPrivateFieldGet(this, _uiComponent))({
|
|
24619
24630
|
target,
|
|
24620
24631
|
props
|
|
@@ -24659,7 +24670,7 @@ var notBulma = (function (exports) {
|
|
|
24659
24670
|
};
|
|
24660
24671
|
_classPrivateFieldGet(this, _form$1) && _classPrivateFieldGet(this, _form$1).updateFormValidationStatus(report);
|
|
24661
24672
|
this.emit('error', report);
|
|
24662
|
-
notCommon$
|
|
24673
|
+
notCommon$1.report(e);
|
|
24663
24674
|
}
|
|
24664
24675
|
}
|
|
24665
24676
|
|
|
@@ -24686,7 +24697,12 @@ var notBulma = (function (exports) {
|
|
|
24686
24697
|
destroy() {
|
|
24687
24698
|
this.emit('destroy');
|
|
24688
24699
|
|
|
24689
|
-
|
|
24700
|
+
if (_classPrivateFieldGet(this, _form$1)) {
|
|
24701
|
+
_classPrivateFieldGet(this, _form$1).$destroy && _classPrivateFieldGet(this, _form$1).$destroy();
|
|
24702
|
+
_classPrivateFieldGet(this, _form$1).destroy && _classPrivateFieldGet(this, _form$1).destroy();
|
|
24703
|
+
|
|
24704
|
+
_classPrivateFieldSet(this, _form$1, null);
|
|
24705
|
+
}
|
|
24690
24706
|
|
|
24691
24707
|
_classPrivateFieldSet(this, _validationRunner, null);
|
|
24692
24708
|
|
|
@@ -24808,8 +24824,8 @@ var notBulma = (function (exports) {
|
|
|
24808
24824
|
getFormManifest() {
|
|
24809
24825
|
const modelName = this.getModelName();
|
|
24810
24826
|
|
|
24811
|
-
if (modelName && notCommon$
|
|
24812
|
-
return notCommon$
|
|
24827
|
+
if (modelName && notCommon$1.getApp()) {
|
|
24828
|
+
return notCommon$1.getApp().getInterfaceManifest(modelName);
|
|
24813
24829
|
}
|
|
24814
24830
|
|
|
24815
24831
|
if (this.getOptions('manifest', undefined)) {
|
|
@@ -24877,7 +24893,7 @@ var notBulma = (function (exports) {
|
|
|
24877
24893
|
|
|
24878
24894
|
getInterface() {
|
|
24879
24895
|
let name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
24880
|
-
return notCommon$
|
|
24896
|
+
return notCommon$1.getApp().getInterface(name || this.getModelName());
|
|
24881
24897
|
}
|
|
24882
24898
|
/**
|
|
24883
24899
|
* Returns current model name
|
|
@@ -25674,8 +25690,8 @@ var notBulma = (function (exports) {
|
|
|
25674
25690
|
} = _ref;
|
|
25675
25691
|
this.remove();
|
|
25676
25692
|
|
|
25677
|
-
if (
|
|
25678
|
-
this.ui = new
|
|
25693
|
+
if (notBreadcrumbs.UIConstructor) {
|
|
25694
|
+
this.ui = new notBreadcrumbs.UIConstructor({
|
|
25679
25695
|
target,
|
|
25680
25696
|
props: {
|
|
25681
25697
|
items: this.getBreadcrumbs(),
|
|
@@ -29815,7 +29831,7 @@ var notBulma = (function (exports) {
|
|
|
29815
29831
|
function instance$1($$self, $$props, $$invalidate) {
|
|
29816
29832
|
const dispatch = createEventDispatcher();
|
|
29817
29833
|
let { events = {} } = $$props;
|
|
29818
|
-
let { register = notCommon$
|
|
29834
|
+
let { register = notCommon$1.registerWidgetEvents.bind(notCommon$1) } = $$props;
|
|
29819
29835
|
let { closed = true } = $$props;
|
|
29820
29836
|
|
|
29821
29837
|
function toggle(e) {
|
|
@@ -30905,7 +30921,7 @@ var notBulma = (function (exports) {
|
|
|
30905
30921
|
let libProps = Object.keys(preload);
|
|
30906
30922
|
let proms = [];
|
|
30907
30923
|
libProps.forEach(function (prop) {
|
|
30908
|
-
let modelName = notCommon$
|
|
30924
|
+
let modelName = notCommon$1.lowerFirstLetter(preload[prop]);
|
|
30909
30925
|
let Model = controller.make[modelName]({});
|
|
30910
30926
|
proms.push(Model.$listAll());
|
|
30911
30927
|
});
|
|
@@ -30965,7 +30981,7 @@ var notBulma = (function (exports) {
|
|
|
30965
30981
|
controller.setCurrentAction(actionName);
|
|
30966
30982
|
return controller.runAction(actionName, params);
|
|
30967
30983
|
} catch (e) {
|
|
30968
|
-
|
|
30984
|
+
controller.report(e);
|
|
30969
30985
|
controller.showErrorMessage(e);
|
|
30970
30986
|
}
|
|
30971
30987
|
}
|
|
@@ -31031,7 +31047,7 @@ var notBulma = (function (exports) {
|
|
|
31031
31047
|
},
|
|
31032
31048
|
data: defData
|
|
31033
31049
|
});
|
|
31034
|
-
controller.ui[ACTION$4]
|
|
31050
|
+
controller.ui[ACTION$4].on('submit', async function (data) {
|
|
31035
31051
|
const success = await controller.onActionSubmit(createActionName, data);
|
|
31036
31052
|
|
|
31037
31053
|
if (success) {
|
|
@@ -31041,7 +31057,7 @@ var notBulma = (function (exports) {
|
|
|
31041
31057
|
}, 1000);
|
|
31042
31058
|
}
|
|
31043
31059
|
});
|
|
31044
|
-
controller.ui[ACTION$4]
|
|
31060
|
+
controller.ui[ACTION$4].on('reject', controller.goList.bind(controller));
|
|
31045
31061
|
controller.emit(`after:render:${ACTION$4}`);
|
|
31046
31062
|
} catch (e) {
|
|
31047
31063
|
controller.report(e);
|
|
@@ -31099,7 +31115,7 @@ var notBulma = (function (exports) {
|
|
|
31099
31115
|
data: res.result
|
|
31100
31116
|
});
|
|
31101
31117
|
controller.emit(`after:render:${ACTION$3}`);
|
|
31102
|
-
controller.ui[ACTION$3]
|
|
31118
|
+
controller.ui[ACTION$3].on('reject', controller.goList.bind(controller));
|
|
31103
31119
|
} catch (e) {
|
|
31104
31120
|
controller.report(e);
|
|
31105
31121
|
controller.showErrorMessage(e);
|
|
@@ -31154,9 +31170,9 @@ var notBulma = (function (exports) {
|
|
|
31154
31170
|
ui: controller.getOptions(`${ACTION$2}.ui`, {}),
|
|
31155
31171
|
fields: controller.getOptions(`${ACTION$2}.fields`, {})
|
|
31156
31172
|
},
|
|
31157
|
-
data: notCommon$
|
|
31173
|
+
data: notCommon$1.stripProxy(res.result)
|
|
31158
31174
|
});
|
|
31159
|
-
controller.ui[ACTION$2]
|
|
31175
|
+
controller.ui[ACTION$2].on('submit', async function (ev) {
|
|
31160
31176
|
const success = await controller.onActionSubmit(ACTION$2, ev.detail);
|
|
31161
31177
|
|
|
31162
31178
|
if (success) {
|
|
@@ -31165,7 +31181,7 @@ var notBulma = (function (exports) {
|
|
|
31165
31181
|
}, 1000);
|
|
31166
31182
|
}
|
|
31167
31183
|
});
|
|
31168
|
-
controller.ui[ACTION$2]
|
|
31184
|
+
controller.ui[ACTION$2].on('reject', controller.goList.bind(controller));
|
|
31169
31185
|
controller.emit(`after:render:${ACTION$2}`);
|
|
31170
31186
|
} catch (e) {
|
|
31171
31187
|
controller.report(e);
|
|
@@ -31272,7 +31288,7 @@ var notBulma = (function (exports) {
|
|
|
31272
31288
|
|
|
31273
31289
|
}
|
|
31274
31290
|
|
|
31275
|
-
var
|
|
31291
|
+
var CRUDActions = {
|
|
31276
31292
|
create: CRUDActionCreate,
|
|
31277
31293
|
details: CRUDActionDetails,
|
|
31278
31294
|
update: CRUDActionUpdate,
|
|
@@ -31280,11 +31296,6 @@ var notBulma = (function (exports) {
|
|
|
31280
31296
|
list: CRUDActionList
|
|
31281
31297
|
};
|
|
31282
31298
|
|
|
31283
|
-
var CRUDActions = /*#__PURE__*/Object.freeze({
|
|
31284
|
-
__proto__: null,
|
|
31285
|
-
'default': index
|
|
31286
|
-
});
|
|
31287
|
-
|
|
31288
31299
|
const BREADCRUMBS = [];
|
|
31289
31300
|
const TITLE_FIELDS_PRIORITY = ['title', 'label', 'id', 'name'];
|
|
31290
31301
|
|
|
@@ -31295,12 +31306,12 @@ var notBulma = (function (exports) {
|
|
|
31295
31306
|
var _preloader = /*#__PURE__*/new WeakMap();
|
|
31296
31307
|
|
|
31297
31308
|
class notCRUD extends notController {
|
|
31298
|
-
constructor(app, name
|
|
31309
|
+
constructor(app, name) {
|
|
31299
31310
|
let {
|
|
31300
31311
|
actions,
|
|
31301
31312
|
router,
|
|
31302
31313
|
preloader
|
|
31303
|
-
} =
|
|
31314
|
+
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
31304
31315
|
super(app, `CRUD.${name}`);
|
|
31305
31316
|
|
|
31306
31317
|
_classPrivateFieldInitSpec(this, _actions, {
|
|
@@ -31441,7 +31452,7 @@ var notBulma = (function (exports) {
|
|
|
31441
31452
|
|
|
31442
31453
|
getItemTitle(item) {
|
|
31443
31454
|
const fieldName = this.TITLE_FIELDS_PRIORITY.find(function (key) {
|
|
31444
|
-
return notCommon$
|
|
31455
|
+
return notCommon$1.objHas(item, key);
|
|
31445
31456
|
});
|
|
31446
31457
|
|
|
31447
31458
|
if (fieldName) {
|
|
@@ -31474,7 +31485,7 @@ var notBulma = (function (exports) {
|
|
|
31474
31485
|
runAction(actionName, params) {
|
|
31475
31486
|
if (Object.keys(_classPrivateFieldGet(this, _actions)).includes(actionName)) {
|
|
31476
31487
|
return _classPrivateFieldGet(this, _actions)[actionName].run(this, params);
|
|
31477
|
-
} else if (typeof this['run' + notCommon$
|
|
31488
|
+
} else if (typeof this['run' + notCommon$1.capitalizeFirstLetter(actionName)]) {
|
|
31478
31489
|
throw new Error(`No such action: ${actionName} in contoller ${this.getWorking('name')}`);
|
|
31479
31490
|
}
|
|
31480
31491
|
}
|
|
@@ -31558,7 +31569,7 @@ var notBulma = (function (exports) {
|
|
|
31558
31569
|
|
|
31559
31570
|
var Frame = /*#__PURE__*/Object.freeze({
|
|
31560
31571
|
__proto__: null,
|
|
31561
|
-
notCommon: notCommon$
|
|
31572
|
+
notCommon: notCommon$1,
|
|
31562
31573
|
notPath: notPath,
|
|
31563
31574
|
notController: notController,
|
|
31564
31575
|
notBase: notBase,
|
|
@@ -31566,7 +31577,7 @@ var notBulma = (function (exports) {
|
|
|
31566
31577
|
notRecord: notRecord,
|
|
31567
31578
|
notInterface: notInterface,
|
|
31568
31579
|
notApp: notApp,
|
|
31569
|
-
notAPI: index
|
|
31580
|
+
notAPI: index,
|
|
31570
31581
|
notCRUD: notCRUD,
|
|
31571
31582
|
ncCRUD: ncCRUD,
|
|
31572
31583
|
COMPONENTS: COMPONENTS$1,
|
|
@@ -31588,24 +31599,24 @@ var notBulma = (function (exports) {
|
|
|
31588
31599
|
notLocale: notLocale$1
|
|
31589
31600
|
};
|
|
31590
31601
|
const {
|
|
31591
|
-
notCommon
|
|
31602
|
+
notCommon,
|
|
31592
31603
|
COMPONENTS,
|
|
31593
31604
|
FIELDS,
|
|
31594
31605
|
VARIANTS,
|
|
31595
31606
|
notFormUtils
|
|
31596
31607
|
} = Frame;
|
|
31597
|
-
Object.keys(index$
|
|
31598
|
-
notFormUtils$1.addComponent(fieldtype, index$
|
|
31608
|
+
Object.keys(index$8).forEach(function (fieldtype) {
|
|
31609
|
+
notFormUtils$1.addComponent(fieldtype, index$8[fieldtype]);
|
|
31599
31610
|
});
|
|
31600
31611
|
|
|
31601
31612
|
exports.COMPONENTS = COMPONENTS;
|
|
31602
|
-
exports.Elements = index$
|
|
31613
|
+
exports.Elements = index$1;
|
|
31603
31614
|
exports.FIELDS = FIELDS;
|
|
31604
31615
|
exports.Frame = Frame;
|
|
31605
31616
|
exports.LOCALE = LOCALE;
|
|
31606
31617
|
exports.Locale = Locale;
|
|
31607
31618
|
exports.VARIANTS = VARIANTS;
|
|
31608
|
-
exports.notCommon = notCommon
|
|
31619
|
+
exports.notCommon = notCommon;
|
|
31609
31620
|
exports.notFormUtils = notFormUtils;
|
|
31610
31621
|
exports.notLocale = notLocale$1;
|
|
31611
31622
|
exports.say = say;
|