aiware-js 1.0.0-master.1207 → 1.0.0-master.1209
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/index.esm.css +92 -92
- package/index.esm.css.gz +0 -0
- package/index.esm.min.css +92 -92
- package/index.esm.min.css.gz +0 -0
- package/js-core.esm129.js +1 -1
- package/js-core.esm129.js.gz +0 -0
- package/js-core.esm19.js +1 -1
- package/js-core.esm19.js.gz +0 -0
- package/js-core.esm90.js +3 -3
- package/js-core.esm90.js.gz +0 -0
- package/js-core.esm91.js +2 -2
- package/js-core.esm91.js.gz +0 -0
- package/js-core.umd.css +92 -92
- package/js-core.umd.css.gz +0 -0
- package/js-core.umd.js +22 -22
- package/js-core.umd.js.gz +0 -0
- package/js-core.umd.min.css +92 -92
- package/js-core.umd.min.css.gz +0 -0
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/index.esm.css
CHANGED
|
@@ -288,6 +288,98 @@
|
|
|
288
288
|
background-color: #fff;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
/* dosis-200normal - latin */
|
|
292
|
+
@font-face {
|
|
293
|
+
font-family: 'Dosis';
|
|
294
|
+
font-style: normal;
|
|
295
|
+
font-display: swap;
|
|
296
|
+
font-weight: 200;
|
|
297
|
+
src:
|
|
298
|
+
local('Dosis Extra Light '),
|
|
299
|
+
local('Dosis-Extra Light'),
|
|
300
|
+
url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
|
|
301
|
+
url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* dosis-300normal - latin */
|
|
305
|
+
@font-face {
|
|
306
|
+
font-family: 'Dosis';
|
|
307
|
+
font-style: normal;
|
|
308
|
+
font-display: swap;
|
|
309
|
+
font-weight: 300;
|
|
310
|
+
src:
|
|
311
|
+
local('Dosis Light '),
|
|
312
|
+
local('Dosis-Light'),
|
|
313
|
+
url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
|
|
314
|
+
url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* dosis-400normal - latin */
|
|
318
|
+
@font-face {
|
|
319
|
+
font-family: 'Dosis';
|
|
320
|
+
font-style: normal;
|
|
321
|
+
font-display: swap;
|
|
322
|
+
font-weight: 400;
|
|
323
|
+
src:
|
|
324
|
+
local('Dosis Regular '),
|
|
325
|
+
local('Dosis-Regular'),
|
|
326
|
+
url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
|
|
327
|
+
url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* dosis-500normal - latin */
|
|
331
|
+
@font-face {
|
|
332
|
+
font-family: 'Dosis';
|
|
333
|
+
font-style: normal;
|
|
334
|
+
font-display: swap;
|
|
335
|
+
font-weight: 500;
|
|
336
|
+
src:
|
|
337
|
+
local('Dosis Medium '),
|
|
338
|
+
local('Dosis-Medium'),
|
|
339
|
+
url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
|
|
340
|
+
url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* dosis-600normal - latin */
|
|
344
|
+
@font-face {
|
|
345
|
+
font-family: 'Dosis';
|
|
346
|
+
font-style: normal;
|
|
347
|
+
font-display: swap;
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
src:
|
|
350
|
+
local('Dosis SemiBold '),
|
|
351
|
+
local('Dosis-SemiBold'),
|
|
352
|
+
url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
|
|
353
|
+
url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* dosis-700normal - latin */
|
|
357
|
+
@font-face {
|
|
358
|
+
font-family: 'Dosis';
|
|
359
|
+
font-style: normal;
|
|
360
|
+
font-display: swap;
|
|
361
|
+
font-weight: 700;
|
|
362
|
+
src:
|
|
363
|
+
local('Dosis Bold '),
|
|
364
|
+
local('Dosis-Bold'),
|
|
365
|
+
url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
366
|
+
url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* dosis-800normal - latin */
|
|
370
|
+
@font-face {
|
|
371
|
+
font-family: 'Dosis';
|
|
372
|
+
font-style: normal;
|
|
373
|
+
font-display: swap;
|
|
374
|
+
font-weight: 800;
|
|
375
|
+
src:
|
|
376
|
+
local('Dosis ExtraBold '),
|
|
377
|
+
local('Dosis-ExtraBold'),
|
|
378
|
+
url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
|
|
379
|
+
url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
291
383
|
/* nunito-200normal - latin */
|
|
292
384
|
@font-face {
|
|
293
385
|
font-family: 'Nunito';
|
|
@@ -471,98 +563,6 @@
|
|
|
471
563
|
}
|
|
472
564
|
|
|
473
565
|
|
|
474
|
-
/* dosis-200normal - latin */
|
|
475
|
-
@font-face {
|
|
476
|
-
font-family: 'Dosis';
|
|
477
|
-
font-style: normal;
|
|
478
|
-
font-display: swap;
|
|
479
|
-
font-weight: 200;
|
|
480
|
-
src:
|
|
481
|
-
local('Dosis Extra Light '),
|
|
482
|
-
local('Dosis-Extra Light'),
|
|
483
|
-
url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
|
|
484
|
-
url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
/* dosis-300normal - latin */
|
|
488
|
-
@font-face {
|
|
489
|
-
font-family: 'Dosis';
|
|
490
|
-
font-style: normal;
|
|
491
|
-
font-display: swap;
|
|
492
|
-
font-weight: 300;
|
|
493
|
-
src:
|
|
494
|
-
local('Dosis Light '),
|
|
495
|
-
local('Dosis-Light'),
|
|
496
|
-
url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
|
|
497
|
-
url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
/* dosis-400normal - latin */
|
|
501
|
-
@font-face {
|
|
502
|
-
font-family: 'Dosis';
|
|
503
|
-
font-style: normal;
|
|
504
|
-
font-display: swap;
|
|
505
|
-
font-weight: 400;
|
|
506
|
-
src:
|
|
507
|
-
local('Dosis Regular '),
|
|
508
|
-
local('Dosis-Regular'),
|
|
509
|
-
url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
|
|
510
|
-
url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/* dosis-500normal - latin */
|
|
514
|
-
@font-face {
|
|
515
|
-
font-family: 'Dosis';
|
|
516
|
-
font-style: normal;
|
|
517
|
-
font-display: swap;
|
|
518
|
-
font-weight: 500;
|
|
519
|
-
src:
|
|
520
|
-
local('Dosis Medium '),
|
|
521
|
-
local('Dosis-Medium'),
|
|
522
|
-
url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
|
|
523
|
-
url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/* dosis-600normal - latin */
|
|
527
|
-
@font-face {
|
|
528
|
-
font-family: 'Dosis';
|
|
529
|
-
font-style: normal;
|
|
530
|
-
font-display: swap;
|
|
531
|
-
font-weight: 600;
|
|
532
|
-
src:
|
|
533
|
-
local('Dosis SemiBold '),
|
|
534
|
-
local('Dosis-SemiBold'),
|
|
535
|
-
url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
|
|
536
|
-
url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/* dosis-700normal - latin */
|
|
540
|
-
@font-face {
|
|
541
|
-
font-family: 'Dosis';
|
|
542
|
-
font-style: normal;
|
|
543
|
-
font-display: swap;
|
|
544
|
-
font-weight: 700;
|
|
545
|
-
src:
|
|
546
|
-
local('Dosis Bold '),
|
|
547
|
-
local('Dosis-Bold'),
|
|
548
|
-
url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
549
|
-
url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/* dosis-800normal - latin */
|
|
553
|
-
@font-face {
|
|
554
|
-
font-family: 'Dosis';
|
|
555
|
-
font-style: normal;
|
|
556
|
-
font-display: swap;
|
|
557
|
-
font-weight: 800;
|
|
558
|
-
src:
|
|
559
|
-
local('Dosis ExtraBold '),
|
|
560
|
-
local('Dosis-ExtraBold'),
|
|
561
|
-
url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
|
|
562
|
-
url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
|
|
566
566
|
/*!
|
|
567
567
|
* Cropper.js v1.5.9
|
|
568
568
|
* https://fengyuanchen.github.io/cropperjs
|
package/index.esm.css.gz
CHANGED
|
Binary file
|
package/index.esm.min.css
CHANGED
|
@@ -288,6 +288,98 @@
|
|
|
288
288
|
background-color: #fff;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
/* dosis-200normal - latin */
|
|
292
|
+
@font-face {
|
|
293
|
+
font-family: 'Dosis';
|
|
294
|
+
font-style: normal;
|
|
295
|
+
font-display: swap;
|
|
296
|
+
font-weight: 200;
|
|
297
|
+
src:
|
|
298
|
+
local('Dosis Extra Light '),
|
|
299
|
+
local('Dosis-Extra Light'),
|
|
300
|
+
url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
|
|
301
|
+
url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* dosis-300normal - latin */
|
|
305
|
+
@font-face {
|
|
306
|
+
font-family: 'Dosis';
|
|
307
|
+
font-style: normal;
|
|
308
|
+
font-display: swap;
|
|
309
|
+
font-weight: 300;
|
|
310
|
+
src:
|
|
311
|
+
local('Dosis Light '),
|
|
312
|
+
local('Dosis-Light'),
|
|
313
|
+
url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
|
|
314
|
+
url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* dosis-400normal - latin */
|
|
318
|
+
@font-face {
|
|
319
|
+
font-family: 'Dosis';
|
|
320
|
+
font-style: normal;
|
|
321
|
+
font-display: swap;
|
|
322
|
+
font-weight: 400;
|
|
323
|
+
src:
|
|
324
|
+
local('Dosis Regular '),
|
|
325
|
+
local('Dosis-Regular'),
|
|
326
|
+
url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
|
|
327
|
+
url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* dosis-500normal - latin */
|
|
331
|
+
@font-face {
|
|
332
|
+
font-family: 'Dosis';
|
|
333
|
+
font-style: normal;
|
|
334
|
+
font-display: swap;
|
|
335
|
+
font-weight: 500;
|
|
336
|
+
src:
|
|
337
|
+
local('Dosis Medium '),
|
|
338
|
+
local('Dosis-Medium'),
|
|
339
|
+
url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
|
|
340
|
+
url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* dosis-600normal - latin */
|
|
344
|
+
@font-face {
|
|
345
|
+
font-family: 'Dosis';
|
|
346
|
+
font-style: normal;
|
|
347
|
+
font-display: swap;
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
src:
|
|
350
|
+
local('Dosis SemiBold '),
|
|
351
|
+
local('Dosis-SemiBold'),
|
|
352
|
+
url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
|
|
353
|
+
url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* dosis-700normal - latin */
|
|
357
|
+
@font-face {
|
|
358
|
+
font-family: 'Dosis';
|
|
359
|
+
font-style: normal;
|
|
360
|
+
font-display: swap;
|
|
361
|
+
font-weight: 700;
|
|
362
|
+
src:
|
|
363
|
+
local('Dosis Bold '),
|
|
364
|
+
local('Dosis-Bold'),
|
|
365
|
+
url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
366
|
+
url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* dosis-800normal - latin */
|
|
370
|
+
@font-face {
|
|
371
|
+
font-family: 'Dosis';
|
|
372
|
+
font-style: normal;
|
|
373
|
+
font-display: swap;
|
|
374
|
+
font-weight: 800;
|
|
375
|
+
src:
|
|
376
|
+
local('Dosis ExtraBold '),
|
|
377
|
+
local('Dosis-ExtraBold'),
|
|
378
|
+
url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
|
|
379
|
+
url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
291
383
|
/* nunito-200normal - latin */
|
|
292
384
|
@font-face {
|
|
293
385
|
font-family: 'Nunito';
|
|
@@ -471,98 +563,6 @@
|
|
|
471
563
|
}
|
|
472
564
|
|
|
473
565
|
|
|
474
|
-
/* dosis-200normal - latin */
|
|
475
|
-
@font-face {
|
|
476
|
-
font-family: 'Dosis';
|
|
477
|
-
font-style: normal;
|
|
478
|
-
font-display: swap;
|
|
479
|
-
font-weight: 200;
|
|
480
|
-
src:
|
|
481
|
-
local('Dosis Extra Light '),
|
|
482
|
-
local('Dosis-Extra Light'),
|
|
483
|
-
url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
|
|
484
|
-
url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
/* dosis-300normal - latin */
|
|
488
|
-
@font-face {
|
|
489
|
-
font-family: 'Dosis';
|
|
490
|
-
font-style: normal;
|
|
491
|
-
font-display: swap;
|
|
492
|
-
font-weight: 300;
|
|
493
|
-
src:
|
|
494
|
-
local('Dosis Light '),
|
|
495
|
-
local('Dosis-Light'),
|
|
496
|
-
url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
|
|
497
|
-
url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
/* dosis-400normal - latin */
|
|
501
|
-
@font-face {
|
|
502
|
-
font-family: 'Dosis';
|
|
503
|
-
font-style: normal;
|
|
504
|
-
font-display: swap;
|
|
505
|
-
font-weight: 400;
|
|
506
|
-
src:
|
|
507
|
-
local('Dosis Regular '),
|
|
508
|
-
local('Dosis-Regular'),
|
|
509
|
-
url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
|
|
510
|
-
url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/* dosis-500normal - latin */
|
|
514
|
-
@font-face {
|
|
515
|
-
font-family: 'Dosis';
|
|
516
|
-
font-style: normal;
|
|
517
|
-
font-display: swap;
|
|
518
|
-
font-weight: 500;
|
|
519
|
-
src:
|
|
520
|
-
local('Dosis Medium '),
|
|
521
|
-
local('Dosis-Medium'),
|
|
522
|
-
url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
|
|
523
|
-
url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/* dosis-600normal - latin */
|
|
527
|
-
@font-face {
|
|
528
|
-
font-family: 'Dosis';
|
|
529
|
-
font-style: normal;
|
|
530
|
-
font-display: swap;
|
|
531
|
-
font-weight: 600;
|
|
532
|
-
src:
|
|
533
|
-
local('Dosis SemiBold '),
|
|
534
|
-
local('Dosis-SemiBold'),
|
|
535
|
-
url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
|
|
536
|
-
url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/* dosis-700normal - latin */
|
|
540
|
-
@font-face {
|
|
541
|
-
font-family: 'Dosis';
|
|
542
|
-
font-style: normal;
|
|
543
|
-
font-display: swap;
|
|
544
|
-
font-weight: 700;
|
|
545
|
-
src:
|
|
546
|
-
local('Dosis Bold '),
|
|
547
|
-
local('Dosis-Bold'),
|
|
548
|
-
url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
549
|
-
url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/* dosis-800normal - latin */
|
|
553
|
-
@font-face {
|
|
554
|
-
font-family: 'Dosis';
|
|
555
|
-
font-style: normal;
|
|
556
|
-
font-display: swap;
|
|
557
|
-
font-weight: 800;
|
|
558
|
-
src:
|
|
559
|
-
local('Dosis ExtraBold '),
|
|
560
|
-
local('Dosis-ExtraBold'),
|
|
561
|
-
url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
|
|
562
|
-
url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
|
|
566
566
|
/*!
|
|
567
567
|
* Cropper.js v1.5.9
|
|
568
568
|
* https://fengyuanchen.github.io/cropperjs
|
package/index.esm.min.css.gz
CHANGED
|
Binary file
|
package/js-core.esm129.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as selectResourcePagination,w as selectPackagesStatus,x as selectPackages,y as selectSelectedPackages,f as actions$2,z as selectActiveStep,e as actions}from"./js-core.esm91.js";import{j as jsxRuntime,Y as useSelector,r as react,w as useIntl,g0 as img$2,g1 as img$3,bR as img$I,bQ as selectIsFullscreenEnabled,ap as mountPanel,a0 as hidePanel}from"./js-core.esm.js";import{u as debounce_1,aM as Stack,T as TextField,p as InputAdornment,V as Search,A as Avatar,aW as truncatedString,e as Tooltip,c as CheckCircle,t as tableInfiniteScroll}from"./js-core.esm6.js";import{c as createSvgIcon,k as FormattedMessage,T as Typography,U as Select,V as MenuItem,h as Button,am as NullState,af as Grid,dy as Applications,dz as Engines2,D as Divider}from"./js-core.esm5.js";import{a as usePackageStyles,b as usePackageButtonsStyles,c as usePackageRowStyles}from"./js-core.esm128.js";import{B as Box}from"./js-core.esm28.js";import{A as AddCircleOutline}from"./js-core.esm85.js";import{u as useDispatch}from"./js-core.esm7.js";var InfoOutlined=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");const ResourceControls=({showSelectedResources:s,setShowSelectedResources:t,setPackageNameFilter:a})=>{var e=[{value:"application",label:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.application",defaultMessage:"Application Package",description:"Resource type label"})},{value:"engine",label:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.engine",defaultMessage:"Engine Package",description:"Resource type label"})}];const r=useDispatch();var i=useIntl(),o=useSelector(selectResourcePagination)["resourceTypeToFetch"],n=useSelector(selectSelectedPackages);const c=usePackageStyles()["classes"];var n=s?jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.show-all",defaultMessage:"Show All",description:"Show All description"}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.show-selected",defaultMessage:"Show Selected",description:"Show Selected description"})," ","(",n.length,")"]}),l=debounce_1(e=>{a(e.target.value)},300);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{paddingTop:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",className:c.stepTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org-panel.packages.step-title",defaultMessage:"Provision Packages",description:"Packages step title"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org-panel.packages.step-description",defaultMessage:"Select which packages will be available to this Organization and its users. Packages contain aiWARE resources such as applications, engines, workflows and many more.",description:"Packages step description"})})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:5,className:c.controlsContainer},{children:[jsxRuntime.exports.jsx(Select,Object.assign({id:"create-org-panel.packages.select-resource-type","data-testid":"create-org-panel.packages.select-resource-type",className:c.selectResourceType,value:o,onChange:e=>{r(actions$2.setResourceTypeToFetch(e.target.value)),s&&t(!1)}},{children:e.map(({value:e,label:s})=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e,"data-testid":"create-org-resource-type."+e},{children:jsxRuntime.exports.jsx(Typography,Object.assign({className:c.dropdownLabel},{children:s}))}),"create-org-resource-type."+e))})),jsxRuntime.exports.jsx(TextField,{onChange:l,className:c.resourceFilter,placeholder:i.formatMessage({id:"create-org-resource-type.search-placeholder",defaultMessage:[{type:0,value:"Search by name"}]}),InputProps:{startAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(Search,{})}))}})]})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"text",onClick:()=>t(e=>!e),className:c.showRecords},{children:n}))]}))},ResourceRow=({item:s})=>{var e=usePackageRowStyles()["classes"],t=useSelector(selectSelectedPackages),a=useSelector(selectResourcePagination)["resourceTypeToFetch"],t=t.find(e=>e.id===s.id);const r=useSelector(selectIsFullscreenEnabled),i=useDispatch();var o=e=>{e.stopPropagation(),e.preventDefault(),i(actions$2.togglePackageSelection(s))};return jsxRuntime.exports.jsxs(Box,Object.assign({className:e.gridContainer,sx:{padding:"2px"}},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,className:e.gridContainer,sx:{backgroundColor:t?"#F2F7FE":""}},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1},{children:jsxRuntime.exports.jsx(Box,Object.assign({className:e.packageLogoContainer},{children:s.icon?jsxRuntime.exports.jsx(Avatar,{src:s.icon,sx:{border:"2px solid #FFFFFF",height:"100%",width:"100%",color:"white"}}):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:"application"===a?jsxRuntime.exports.jsx(Applications,{}):jsxRuntime.exports.jsx(Engines2,{})})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:8,className:e.packageName},{children:truncatedString(s.name,40)})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1,className:e.version},{children:s.version})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1,sx:{height:"25px"}},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.package-info",defaultMessage:"Package Info",description:"Package Info icon"})},{children:jsxRuntime.exports.jsx(InfoOutlined,{className:e.addIcon,onClick:()=>{i(mountPanel({panelId:"PACKAGE_DETAILS_PANEL_"+s.id,microFrontend:{name:"PACKAGE_DETAILS_PANEL",config:{panelConfig:{data:{packageId:s.id,tabsToShow:{info:{defaultPackageData:["name","status","owner","installDate","distributionDate","lastUpdated","distributionType","primaryResourceType","version"]},resources:["schema","engine","package"]}},labels:{},actions:{handleClose:()=>i(hidePanel("PACKAGE_DETAILS_PANEL_"+s.id))},settings:{unstyledHeader:!0}}}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:r?0:55,marginStart:r?0:80,size:"large",parentPanelId:"INSTANCE_ADMIN_CENTER_BROWSE",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))}})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1,sx:{height:"25px"}},{children:t?jsxRuntime.exports.jsx(CheckCircle,{className:e.addedIcon,onClick:o}):jsxRuntime.exports.jsx(AddCircleOutline,{className:e.addIcon,onClick:o})}))]})),jsxRuntime.exports.jsx(Divider,{className:e.tableDivider})]}))},ActionButtons=({onNextClick:e})=>{var s=usePackageButtonsStyles()["classes"];const t=useDispatch(),a=useSelector(selectActiveStep);return jsxRuntime.exports.jsxs(Box,Object.assign({className:s.actionButtonContainer},{children:[jsxRuntime.exports.jsx(Button,Object.assign({variant:"text",onClick:()=>t(actions.setActiveStep(a-1)),"data-testid":"action-button.back"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.packages.back-btn",defaultMessage:"Back",description:"Back label"})})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",onClick:()=>{e&&e(),t(actions.setActiveStep(a+1))},"data-testid":"action-button.next"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.packages.next-btn",defaultMessage:"Next",description:"Next label"})}))]}))},{TableInfiniteScroll}=tableInfiniteScroll["jsx"],Packages=()=>{const e=useDispatch(),{resourceTypeToFetch:s,hasMore:t,offset:a}=useSelector(selectResourcePagination),r=react.exports.useRef(null),i=useSelector(selectPackagesStatus),o=useSelector(selectPackages),n=useSelector(selectSelectedPackages),[c,l]=react.exports.useState(""),[p,x]=react.exports.useState(!1),d=usePackageStyles()["classes"],u=(react.exports.useEffect(()=>{e(actions$2.fetchPackagesStart({filter:c,reset:!0}))},[c]),()=>e(actions$2.fetchPackagesStart({filter:c,reset:!1}))),g=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.packages.empty-state",defaultMessage:"No Search Results Found",description:"Empty state label"}),m=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.packages.empty-state-description",defaultMessage:"There are no items that match your search",description:"Empty state label description"}),j=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.applications-packages.empty-state",defaultMessage:"No Applications are selected",description:"Empty state label"}),h=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.engine-packages.empty-state",defaultMessage:"No engines are selected",description:"Empty state label"}),R=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.packages.error-state",defaultMessage:"Error loading packages. Please try again later",description:"Error state label"});return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{height:"100%"}},{children:[jsxRuntime.exports.jsx(ResourceControls,{showSelectedResources:p,setShowSelectedResources:x,packageNameFilter:c,setPackageNameFilter:l}),p?jsxRuntime.exports.jsx(Box,Object.assign({className:d.container},{children:jsxRuntime.exports.jsx(TableInfiniteScroll,{offset:0,hasMore:!1,fetchMore:u,fetchOnMount:!1,items:n,itemHeight:60,isLoading:!1,error:"failure"===i,TableRowComponent:ResourceRow,TableEmptyStateComponent:"application"===s?jsxRuntime.exports.jsx(NullState,{header:j,image:img$2}):jsxRuntime.exports.jsx(NullState,{header:h,image:img$3}),MessageErrorState:R,listRef:r},s)})):jsxRuntime.exports.jsx(Box,Object.assign({className:d.container},{children:jsxRuntime.exports.jsx(TableInfiniteScroll,{offset:a,hasMore:t,fetchMore:u,fetchOnMount:0===o.length,items:o,itemHeight:60,isLoading:"loading"===i,error:"failure"===i,TableRowComponent:ResourceRow,TableEmptyStateComponent:jsxRuntime.exports.jsx(NullState,{header:g,description:m,image:img$I}),MessageErrorState:R,listRef:r},s)})),jsxRuntime.exports.jsx(ActionButtons,{})]}))};export{Packages as default};
|
|
1
|
+
import{v as selectResourcePagination,w as selectPackagesStatus,x as selectPackages,y as selectSelectedPackages,f as actions$2,z as selectActiveStep,e as actions,P as PARENT_PANEL_ID}from"./js-core.esm91.js";import{j as jsxRuntime,Y as useSelector,r as react,w as useIntl,g0 as img$2,g1 as img$3,bR as img$I,bQ as selectIsFullscreenEnabled,ap as mountPanel,a0 as hidePanel}from"./js-core.esm.js";import{u as debounce_1,aM as Stack,T as TextField,p as InputAdornment,V as Search,A as Avatar,aW as truncatedString,e as Tooltip,c as CheckCircle,t as tableInfiniteScroll}from"./js-core.esm6.js";import{c as createSvgIcon,k as FormattedMessage,T as Typography,U as Select,V as MenuItem,h as Button,am as NullState,af as Grid,dy as Applications,dz as Engines2,D as Divider}from"./js-core.esm5.js";import{a as usePackageStyles,b as usePackageButtonsStyles,c as usePackageRowStyles}from"./js-core.esm128.js";import{B as Box}from"./js-core.esm28.js";import{A as AddCircleOutline}from"./js-core.esm85.js";import{u as useDispatch}from"./js-core.esm7.js";var InfoOutlined=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");const ResourceControls=({showSelectedResources:s,setShowSelectedResources:t,setPackageNameFilter:a})=>{var e=[{value:"application",label:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.application",defaultMessage:"Application Package",description:"Resource type label"})},{value:"engine",label:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.engine",defaultMessage:"Engine Package",description:"Resource type label"})}];const r=useDispatch();var i=useIntl(),o=useSelector(selectResourcePagination)["resourceTypeToFetch"],n=useSelector(selectSelectedPackages);const c=usePackageStyles()["classes"];var n=s?jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.show-all",defaultMessage:"Show All",description:"Show All description"}):jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.show-selected",defaultMessage:"Show Selected",description:"Show Selected description"})," ","(",n.length,")"]}),l=debounce_1(e=>{a(e.target.value)},300);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{paddingTop:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",className:c.stepTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org-panel.packages.step-title",defaultMessage:"Provision Packages",description:"Packages step title"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org-panel.packages.step-description",defaultMessage:"Select which packages will be available to this Organization and its users. Packages contain aiWARE resources such as applications, engines, workflows and many more.",description:"Packages step description"})})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:5,className:c.controlsContainer},{children:[jsxRuntime.exports.jsx(Select,Object.assign({id:"create-org-panel.packages.select-resource-type","data-testid":"create-org-panel.packages.select-resource-type",className:c.selectResourceType,value:o,onChange:e=>{r(actions$2.setResourceTypeToFetch(e.target.value)),s&&t(!1)}},{children:e.map(({value:e,label:s})=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:e,"data-testid":"create-org-resource-type."+e},{children:jsxRuntime.exports.jsx(Typography,Object.assign({className:c.dropdownLabel},{children:s}))}),"create-org-resource-type."+e))})),jsxRuntime.exports.jsx(TextField,{onChange:l,className:c.resourceFilter,placeholder:i.formatMessage({id:"create-org-resource-type.search-placeholder",defaultMessage:[{type:0,value:"Search by name"}]}),InputProps:{startAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(Search,{})}))}})]})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"text",onClick:()=>t(e=>!e),className:c.showRecords},{children:n}))]}))},ResourceRow=({item:s})=>{var e=usePackageRowStyles()["classes"],t=useSelector(selectSelectedPackages),a=useSelector(selectResourcePagination)["resourceTypeToFetch"],t=t.find(e=>e.id===s.id);const r=useSelector(selectIsFullscreenEnabled),i=useDispatch();var o=e=>{e.stopPropagation(),e.preventDefault(),i(actions$2.togglePackageSelection(s))};return jsxRuntime.exports.jsxs(Box,Object.assign({className:e.gridContainer,sx:{padding:"2px"}},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,className:e.gridContainer,sx:{backgroundColor:t?"#F2F7FE":""}},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1},{children:jsxRuntime.exports.jsx(Box,Object.assign({className:e.packageLogoContainer},{children:s.icon?jsxRuntime.exports.jsx(Avatar,{src:s.icon,sx:{border:"2px solid #FFFFFF",height:"100%",width:"100%",color:"white"}}):"application"===a?jsxRuntime.exports.jsx(Applications,{}):jsxRuntime.exports.jsx(Engines2,{})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:8,className:e.packageName},{children:truncatedString(s.name,40)})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1,className:e.version},{children:s.version})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1,sx:{height:"25px"}},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.package-info",defaultMessage:"Package Info",description:"Package Info icon"})},{children:jsxRuntime.exports.jsx(InfoOutlined,{className:e.addIcon,onClick:()=>{i(mountPanel({panelId:"PACKAGE_DETAILS_PANEL_"+s.id,microFrontend:{name:"PACKAGE_DETAILS_PANEL",config:{panelConfig:{data:{packageId:s.id,tabsToShow:{info:{defaultPackageData:["name","status","owner","installDate","distributionDate","lastUpdated","distributionType","primaryResourceType","version"]},resources:["schema","engine","package"]}},labels:{},actions:{handleClose:()=>i(hidePanel("PACKAGE_DETAILS_PANEL_"+s.id))},settings:{unstyledHeader:!0}}}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:r?0:55,marginStart:r?0:80,size:"large",parentPanelId:PARENT_PANEL_ID,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))}})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:1,sx:{height:"25px"}},{children:t?jsxRuntime.exports.jsx(CheckCircle,{className:e.addedIcon,onClick:o}):jsxRuntime.exports.jsx(AddCircleOutline,{className:e.addIcon,onClick:o})}))]})),jsxRuntime.exports.jsx(Divider,{className:e.tableDivider})]}))},ActionButtons=({onNextClick:e})=>{var s=usePackageButtonsStyles()["classes"];const t=useDispatch(),a=useSelector(selectActiveStep);return jsxRuntime.exports.jsxs(Box,Object.assign({className:s.actionButtonContainer},{children:[jsxRuntime.exports.jsx(Button,Object.assign({variant:"text",onClick:()=>t(actions.setActiveStep(a-1)),"data-testid":"action-button.back"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.packages.back-btn",defaultMessage:"Back",description:"Back label"})})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",onClick:()=>{e&&e(),t(actions.setActiveStep(a+1))},"data-testid":"action-button.next"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.create-org.packages.next-btn",defaultMessage:"Next",description:"Next label"})}))]}))},{TableInfiniteScroll}=tableInfiniteScroll["jsx"],Packages=()=>{const e=useDispatch(),{resourceTypeToFetch:s,hasMore:t,offset:a}=useSelector(selectResourcePagination),r=react.exports.useRef(null),i=useSelector(selectPackagesStatus),o=useSelector(selectPackages),n=useSelector(selectSelectedPackages),[c,l]=react.exports.useState(""),[p,d]=react.exports.useState(!1),x=usePackageStyles()["classes"],u=(react.exports.useEffect(()=>{e(actions$2.fetchPackagesStart({filter:c,reset:!0}))},[c]),()=>e(actions$2.fetchPackagesStart({filter:c,reset:!1}))),g=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.packages.empty-state",defaultMessage:"No Search Results Found",description:"Empty state label"}),m=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.packages.empty-state-description",defaultMessage:"There are no items that match your search",description:"Empty state label description"}),j=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.applications-packages.empty-state",defaultMessage:"No Applications are selected",description:"Empty state label"}),h=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.engine-packages.empty-state",defaultMessage:"No engines are selected",description:"Empty state label"}),R=jsxRuntime.exports.jsx(FormattedMessage,{id:"create-org.packages.error-state",defaultMessage:"Error loading packages. Please try again later",description:"Error state label"});return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{height:"100%"}},{children:[jsxRuntime.exports.jsx(ResourceControls,{showSelectedResources:p,setShowSelectedResources:d,packageNameFilter:c,setPackageNameFilter:l}),p?jsxRuntime.exports.jsx(Box,Object.assign({className:x.container},{children:jsxRuntime.exports.jsx(TableInfiniteScroll,{offset:0,hasMore:!1,fetchMore:u,fetchOnMount:!1,items:n,itemHeight:60,isLoading:!1,error:"failure"===i,TableRowComponent:ResourceRow,TableEmptyStateComponent:"application"===s?jsxRuntime.exports.jsx(NullState,{header:j,image:img$2}):jsxRuntime.exports.jsx(NullState,{header:h,image:img$3}),MessageErrorState:R,listRef:r},s)})):jsxRuntime.exports.jsx(Box,Object.assign({className:x.container},{children:jsxRuntime.exports.jsx(TableInfiniteScroll,{offset:a,hasMore:t,fetchMore:u,fetchOnMount:0===o.length,items:o,itemHeight:60,isLoading:"loading"===i,error:"failure"===i,TableRowComponent:ResourceRow,TableEmptyStateComponent:jsxRuntime.exports.jsx(NullState,{header:g,description:m,image:img$I}),MessageErrorState:R,listRef:r},s)})),jsxRuntime.exports.jsx(ActionButtons,{})]}))};export{Packages as default};
|
package/js-core.esm129.js.gz
CHANGED
|
Binary file
|
package/js-core.esm19.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as unmountPanel$1,a0 as hidePanel$1,d$ as unmountAllPanel$1,e0 as getUniqueID,ap as mountPanel$1,bH as AvailableWidgets,bG as updatePanelMicroFrontendProps,e1 as mountWidget,e2 as unmountWidget,e3 as updateTokenRequest,e4 as HelpCenter,B as takeEvery$1,e5 as mountPanelForResponse$1,e6 as DataCenter,C as select}from"./js-core.esm.js";import{s as setData,b as logout,u as updateActivityStatus}from"./js-core.esm4.js";import{setCustomKnowledgeBaseUrl,setCustomDocsUrl,updateSelectedTab}from"./js-core.esm20.js";import"./js-core.esm5.js";import"./js-core.esm7.js";class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout())},1e3)):t.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),unmountAllPanel=e=>()=>{e.dispatch(unmountAllPanel$1(""))},mountPanel=s=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:a}=e;s.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:a}));const o=[...(null==(e=null==a?void 0:a.header)?void 0:e.actions)||[],...(null==(e=null==a?void 0:a.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);a={id:n,sagas:[function*(){yield takeEvery$1(o.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return s.addModule(a),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,bootstrapOptions:a}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:a.registry,registryLookup:a.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,commit:"
|
|
1
|
+
import{ao as unmountPanel$1,a0 as hidePanel$1,d$ as unmountAllPanel$1,e0 as getUniqueID,ap as mountPanel$1,bH as AvailableWidgets,bG as updatePanelMicroFrontendProps,e1 as mountWidget,e2 as unmountWidget,e3 as updateTokenRequest,e4 as HelpCenter,B as takeEvery$1,e5 as mountPanelForResponse$1,e6 as DataCenter,C as select}from"./js-core.esm.js";import{s as setData,b as logout,u as updateActivityStatus}from"./js-core.esm4.js";import{setCustomKnowledgeBaseUrl,setCustomDocsUrl,updateSelectedTab}from"./js-core.esm20.js";import"./js-core.esm5.js";import"./js-core.esm7.js";class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout())},1e3)):t.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),unmountAllPanel=e=>()=>{e.dispatch(unmountAllPanel$1(""))},mountPanel=s=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:a}=e;s.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:a}));const o=[...(null==(e=null==a?void 0:a.header)?void 0:e.actions)||[],...(null==(e=null==a?void 0:a.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);a={id:n,sagas:[function*(){yield takeEvery$1(o.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return s.addModule(a),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,bootstrapOptions:a}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:a.registry,registryLookup:a.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,commit:"88bea0a8a4"})};export{attachSdkToWindow,hidePanel,mountPanel,unmountAllPanel,unmountPanel};
|
package/js-core.esm19.js.gz
CHANGED
|
Binary file
|