@saltcorn/builder 0.6.1-beta.0 → 0.6.1
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/builder_bundle.js +9 -9
- package/package.json +1 -1
- package/src/components/Builder.js +77 -0
- package/src/components/Library.js +43 -3
- package/src/components/RenderNode.js +17 -1
- package/src/components/Toolbox.js +207 -5
- package/src/components/context.js +6 -0
- package/src/components/elements/Action.js +38 -2
- package/src/components/elements/Aggregation.js +29 -2
- package/src/components/elements/BoxModelEditor.js +18 -1
- package/src/components/elements/Card.js +31 -2
- package/src/components/elements/Column.js +28 -2
- package/src/components/elements/Columns.js +50 -4
- package/src/components/elements/Container.js +119 -3
- package/src/components/elements/DropDownFilter.js +27 -2
- package/src/components/elements/Empty.js +18 -1
- package/src/components/elements/Field.js +29 -2
- package/src/components/elements/HTMLCode.js +18 -2
- package/src/components/elements/Image.js +29 -2
- package/src/components/elements/JoinField.js +28 -2
- package/src/components/elements/LineBreak.js +17 -1
- package/src/components/elements/Link.js +34 -2
- package/src/components/elements/SearchBar.js +29 -2
- package/src/components/elements/Tabs.js +29 -2
- package/src/components/elements/Text.js +36 -2
- package/src/components/elements/ToggleFilter.js +31 -2
- package/src/components/elements/View.js +27 -2
- package/src/components/elements/ViewLink.js +36 -2
- package/src/components/elements/faicons.js +481 -0
- package/src/components/elements/utils.js +279 -16
- package/src/components/preview_context.js +6 -1
- package/src/components/storage.js +59 -2
- package/src/index.js +12 -0
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category saltcorn-builder
|
|
3
|
+
* @module components/elements/faicons
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* https://stackoverflow.com/a/33794368
|
|
8
|
+
* @namespace faicons / all
|
|
9
|
+
* @category saltcorn-builder
|
|
10
|
+
*/
|
|
1
11
|
const all = {
|
|
12
|
+
/**
|
|
13
|
+
* @type {string[]}
|
|
14
|
+
* @memberof module:components/elements/faicons~faicons / all
|
|
15
|
+
*/
|
|
2
16
|
regular: [
|
|
3
17
|
"address-book",
|
|
4
18
|
"address-card",
|
|
@@ -152,6 +166,10 @@ const all = {
|
|
|
152
166
|
"window-minimize",
|
|
153
167
|
"window-restore",
|
|
154
168
|
],
|
|
169
|
+
/**
|
|
170
|
+
* @type {string[]}
|
|
171
|
+
* @memberof module:components/elements/faicons~faicons / all
|
|
172
|
+
*/
|
|
155
173
|
solid: [
|
|
156
174
|
"ad",
|
|
157
175
|
"address-book",
|
|
@@ -1155,8 +1173,471 @@ const all = {
|
|
|
1155
1173
|
"yen-sign",
|
|
1156
1174
|
"yin-yang",
|
|
1157
1175
|
],
|
|
1176
|
+
/**
|
|
1177
|
+
* @type {string[]}
|
|
1178
|
+
* @memberof module:components/elements/faicons~faicons / all
|
|
1179
|
+
*/
|
|
1180
|
+
brands: [
|
|
1181
|
+
"500px",
|
|
1182
|
+
"accessible-icon",
|
|
1183
|
+
"accusoft",
|
|
1184
|
+
"acquisitions-incorporated",
|
|
1185
|
+
"adn",
|
|
1186
|
+
"adversal",
|
|
1187
|
+
"affiliatetheme",
|
|
1188
|
+
"airbnb",
|
|
1189
|
+
"algolia",
|
|
1190
|
+
"alipay",
|
|
1191
|
+
"amazon",
|
|
1192
|
+
"amazon-pay",
|
|
1193
|
+
"amilia",
|
|
1194
|
+
"android",
|
|
1195
|
+
"angellist",
|
|
1196
|
+
"angrycreative",
|
|
1197
|
+
"angular",
|
|
1198
|
+
"app-store",
|
|
1199
|
+
"app-store-ios",
|
|
1200
|
+
"apper",
|
|
1201
|
+
"apple",
|
|
1202
|
+
"apple-pay",
|
|
1203
|
+
"artstation",
|
|
1204
|
+
"asymmetrik",
|
|
1205
|
+
"atlassian",
|
|
1206
|
+
"audible",
|
|
1207
|
+
"autoprefixer",
|
|
1208
|
+
"avianex",
|
|
1209
|
+
"aviato",
|
|
1210
|
+
"aws",
|
|
1211
|
+
"bandcamp",
|
|
1212
|
+
"battle-net",
|
|
1213
|
+
"behance",
|
|
1214
|
+
"behance-square",
|
|
1215
|
+
"bimobject",
|
|
1216
|
+
"bitbucket",
|
|
1217
|
+
"bitcoin",
|
|
1218
|
+
"bity",
|
|
1219
|
+
"black-tie",
|
|
1220
|
+
"blackberry",
|
|
1221
|
+
"blogger",
|
|
1222
|
+
"blogger-b",
|
|
1223
|
+
"bluetooth",
|
|
1224
|
+
"bluetooth-b",
|
|
1225
|
+
"bootstrap",
|
|
1226
|
+
"btc",
|
|
1227
|
+
"buffer",
|
|
1228
|
+
"buromobelexperte",
|
|
1229
|
+
"buy-n-large",
|
|
1230
|
+
"buysellads",
|
|
1231
|
+
"canadian-maple-leaf",
|
|
1232
|
+
"cc-amazon-pay",
|
|
1233
|
+
"cc-amex",
|
|
1234
|
+
"cc-apple-pay",
|
|
1235
|
+
"cc-diners-club",
|
|
1236
|
+
"cc-discover",
|
|
1237
|
+
"cc-jcb",
|
|
1238
|
+
"cc-mastercard",
|
|
1239
|
+
"cc-paypal",
|
|
1240
|
+
"cc-stripe",
|
|
1241
|
+
"cc-visa",
|
|
1242
|
+
"centercode",
|
|
1243
|
+
"centos",
|
|
1244
|
+
"chrome",
|
|
1245
|
+
"chromecast",
|
|
1246
|
+
"cloudflare",
|
|
1247
|
+
"cloudscale",
|
|
1248
|
+
"cloudsmith",
|
|
1249
|
+
"cloudversify",
|
|
1250
|
+
"codepen",
|
|
1251
|
+
"codiepie",
|
|
1252
|
+
"confluence",
|
|
1253
|
+
"connectdevelop",
|
|
1254
|
+
"contao",
|
|
1255
|
+
"cotton-bureau",
|
|
1256
|
+
"cpanel",
|
|
1257
|
+
"creative-commons",
|
|
1258
|
+
"creative-commons-by",
|
|
1259
|
+
"creative-commons-nc",
|
|
1260
|
+
"creative-commons-nc-eu",
|
|
1261
|
+
"creative-commons-nc-jp",
|
|
1262
|
+
"creative-commons-nd",
|
|
1263
|
+
"creative-commons-pd",
|
|
1264
|
+
"creative-commons-pd-alt",
|
|
1265
|
+
"creative-commons-remix",
|
|
1266
|
+
"creative-commons-sa",
|
|
1267
|
+
"creative-commons-sampling",
|
|
1268
|
+
"creative-commons-sampling-plus",
|
|
1269
|
+
"creative-commons-share",
|
|
1270
|
+
"creative-commons-zero",
|
|
1271
|
+
"critical-role",
|
|
1272
|
+
"css3",
|
|
1273
|
+
"css3-alt",
|
|
1274
|
+
"cuttlefish",
|
|
1275
|
+
"d-and-d",
|
|
1276
|
+
"d-and-d-beyond",
|
|
1277
|
+
"dailymotion",
|
|
1278
|
+
"dashcube",
|
|
1279
|
+
"deezer",
|
|
1280
|
+
"delicious",
|
|
1281
|
+
"deploydog",
|
|
1282
|
+
"deskpro",
|
|
1283
|
+
"dev",
|
|
1284
|
+
"deviantart",
|
|
1285
|
+
"dhl",
|
|
1286
|
+
"diaspora",
|
|
1287
|
+
"digg",
|
|
1288
|
+
"digital-ocean",
|
|
1289
|
+
"discord",
|
|
1290
|
+
"discourse",
|
|
1291
|
+
"dochub",
|
|
1292
|
+
"docker",
|
|
1293
|
+
"draft2digital",
|
|
1294
|
+
"dribbble",
|
|
1295
|
+
"dribbble-square",
|
|
1296
|
+
"dropbox",
|
|
1297
|
+
"drupal",
|
|
1298
|
+
"dyalog",
|
|
1299
|
+
"earlybirds",
|
|
1300
|
+
"ebay",
|
|
1301
|
+
"edge",
|
|
1302
|
+
"edge-legacy",
|
|
1303
|
+
"elementor",
|
|
1304
|
+
"ello",
|
|
1305
|
+
"ember",
|
|
1306
|
+
"empire",
|
|
1307
|
+
"envira",
|
|
1308
|
+
"erlang",
|
|
1309
|
+
"ethereum",
|
|
1310
|
+
"etsy",
|
|
1311
|
+
"evernote",
|
|
1312
|
+
"expeditedssl",
|
|
1313
|
+
"facebook",
|
|
1314
|
+
"facebook-f",
|
|
1315
|
+
"facebook-messenger",
|
|
1316
|
+
"facebook-square",
|
|
1317
|
+
"fantasy-flight-games",
|
|
1318
|
+
"fedex",
|
|
1319
|
+
"fedora",
|
|
1320
|
+
"figma",
|
|
1321
|
+
"firefox",
|
|
1322
|
+
"firefox-browser",
|
|
1323
|
+
"first-order",
|
|
1324
|
+
"first-order-alt",
|
|
1325
|
+
"firstdraft",
|
|
1326
|
+
"flickr",
|
|
1327
|
+
"flipboard",
|
|
1328
|
+
"fly",
|
|
1329
|
+
"font-awesome",
|
|
1330
|
+
"font-awesome-alt",
|
|
1331
|
+
"font-awesome-flag",
|
|
1332
|
+
"fonticons",
|
|
1333
|
+
"fonticons-fi",
|
|
1334
|
+
"fort-awesome",
|
|
1335
|
+
"fort-awesome-alt",
|
|
1336
|
+
"forumbee",
|
|
1337
|
+
"foursquare",
|
|
1338
|
+
"free-code-camp",
|
|
1339
|
+
"freebsd",
|
|
1340
|
+
"fulcrum",
|
|
1341
|
+
"galactic-republic",
|
|
1342
|
+
"galactic-senate",
|
|
1343
|
+
"get-pocket",
|
|
1344
|
+
"gg",
|
|
1345
|
+
"gg-circle",
|
|
1346
|
+
"git",
|
|
1347
|
+
"git-alt",
|
|
1348
|
+
"git-square",
|
|
1349
|
+
"github",
|
|
1350
|
+
"github-alt",
|
|
1351
|
+
"github-square",
|
|
1352
|
+
"gitkraken",
|
|
1353
|
+
"gitlab",
|
|
1354
|
+
"gitter",
|
|
1355
|
+
"glide",
|
|
1356
|
+
"glide-g",
|
|
1357
|
+
"gofore",
|
|
1358
|
+
"goodreads",
|
|
1359
|
+
"goodreads-g",
|
|
1360
|
+
"google",
|
|
1361
|
+
"google-drive",
|
|
1362
|
+
"google-pay",
|
|
1363
|
+
"google-play",
|
|
1364
|
+
"google-plus",
|
|
1365
|
+
"google-plus-g",
|
|
1366
|
+
"google-plus-square",
|
|
1367
|
+
"google-wallet",
|
|
1368
|
+
"gratipay",
|
|
1369
|
+
"grav",
|
|
1370
|
+
"gripfire",
|
|
1371
|
+
"grunt",
|
|
1372
|
+
"guilded",
|
|
1373
|
+
"gulp",
|
|
1374
|
+
"hacker-news",
|
|
1375
|
+
"hacker-news-square",
|
|
1376
|
+
"hackerrank",
|
|
1377
|
+
"hips",
|
|
1378
|
+
"hire-a-helper",
|
|
1379
|
+
"hive",
|
|
1380
|
+
"hooli",
|
|
1381
|
+
"hornbill",
|
|
1382
|
+
"hotjar",
|
|
1383
|
+
"houzz",
|
|
1384
|
+
"html5",
|
|
1385
|
+
"hubspot",
|
|
1386
|
+
"ideal",
|
|
1387
|
+
"imdb",
|
|
1388
|
+
"innosoft",
|
|
1389
|
+
"instagram",
|
|
1390
|
+
"instagram-square",
|
|
1391
|
+
"instalod",
|
|
1392
|
+
"intercom",
|
|
1393
|
+
"internet-explorer",
|
|
1394
|
+
"invision",
|
|
1395
|
+
"ioxhost",
|
|
1396
|
+
"itch-io",
|
|
1397
|
+
"itunes",
|
|
1398
|
+
"itunes-note",
|
|
1399
|
+
"java",
|
|
1400
|
+
"jedi-order",
|
|
1401
|
+
"jenkins",
|
|
1402
|
+
"jira",
|
|
1403
|
+
"joget",
|
|
1404
|
+
"joomla",
|
|
1405
|
+
"js",
|
|
1406
|
+
"js-square",
|
|
1407
|
+
"jsfiddle",
|
|
1408
|
+
"kaggle",
|
|
1409
|
+
"keybase",
|
|
1410
|
+
"keycdn",
|
|
1411
|
+
"kickstarter",
|
|
1412
|
+
"kickstarter-k",
|
|
1413
|
+
"korvue",
|
|
1414
|
+
"laravel",
|
|
1415
|
+
"lastfm",
|
|
1416
|
+
"lastfm-square",
|
|
1417
|
+
"leanpub",
|
|
1418
|
+
"less",
|
|
1419
|
+
"line",
|
|
1420
|
+
"linkedin",
|
|
1421
|
+
"linkedin-in",
|
|
1422
|
+
"linode",
|
|
1423
|
+
"linux",
|
|
1424
|
+
"lyft",
|
|
1425
|
+
"magento",
|
|
1426
|
+
"mailchimp",
|
|
1427
|
+
"mandalorian",
|
|
1428
|
+
"markdown",
|
|
1429
|
+
"mastodon",
|
|
1430
|
+
"maxcdn",
|
|
1431
|
+
"mdb",
|
|
1432
|
+
"medapps",
|
|
1433
|
+
"medium",
|
|
1434
|
+
"medium-m",
|
|
1435
|
+
"medrt",
|
|
1436
|
+
"meetup",
|
|
1437
|
+
"megaport",
|
|
1438
|
+
"mendeley",
|
|
1439
|
+
"microblog",
|
|
1440
|
+
"microsoft",
|
|
1441
|
+
"mix",
|
|
1442
|
+
"mixcloud",
|
|
1443
|
+
"mixer",
|
|
1444
|
+
"mizuni",
|
|
1445
|
+
"modx",
|
|
1446
|
+
"monero",
|
|
1447
|
+
"napster",
|
|
1448
|
+
"neos",
|
|
1449
|
+
"nimblr",
|
|
1450
|
+
"node",
|
|
1451
|
+
"node-js",
|
|
1452
|
+
"npm",
|
|
1453
|
+
"ns8",
|
|
1454
|
+
"nutritionix",
|
|
1455
|
+
"octopus-deploy",
|
|
1456
|
+
"odnoklassniki",
|
|
1457
|
+
"odnoklassniki-square",
|
|
1458
|
+
"old-republic",
|
|
1459
|
+
"opencart",
|
|
1460
|
+
"openid",
|
|
1461
|
+
"opera",
|
|
1462
|
+
"optin-monster",
|
|
1463
|
+
"orcid",
|
|
1464
|
+
"osi",
|
|
1465
|
+
"page4",
|
|
1466
|
+
"pagelines",
|
|
1467
|
+
"palfed",
|
|
1468
|
+
"patreon",
|
|
1469
|
+
"paypal",
|
|
1470
|
+
"penny-arcade",
|
|
1471
|
+
"perbyte",
|
|
1472
|
+
"periscope",
|
|
1473
|
+
"phabricator",
|
|
1474
|
+
"phoenix-framework",
|
|
1475
|
+
"phoenix-squadron",
|
|
1476
|
+
"php",
|
|
1477
|
+
"pied-piper",
|
|
1478
|
+
"pied-piper-alt",
|
|
1479
|
+
"pied-piper-hat",
|
|
1480
|
+
"pied-piper-pp",
|
|
1481
|
+
"pied-piper-square",
|
|
1482
|
+
"pinterest",
|
|
1483
|
+
"pinterest-p",
|
|
1484
|
+
"pinterest-square",
|
|
1485
|
+
"playstation",
|
|
1486
|
+
"product-hunt",
|
|
1487
|
+
"pushed",
|
|
1488
|
+
"python",
|
|
1489
|
+
"qq",
|
|
1490
|
+
"quinscape",
|
|
1491
|
+
"quora",
|
|
1492
|
+
"r-project",
|
|
1493
|
+
"raspberry-pi",
|
|
1494
|
+
"ravelry",
|
|
1495
|
+
"react",
|
|
1496
|
+
"reacteurope",
|
|
1497
|
+
"readme",
|
|
1498
|
+
"rebel",
|
|
1499
|
+
"red-river",
|
|
1500
|
+
"reddit",
|
|
1501
|
+
"reddit-alien",
|
|
1502
|
+
"reddit-square",
|
|
1503
|
+
"redhat",
|
|
1504
|
+
"renren",
|
|
1505
|
+
"replyd",
|
|
1506
|
+
"researchgate",
|
|
1507
|
+
"resolving",
|
|
1508
|
+
"rev",
|
|
1509
|
+
"rocketchat",
|
|
1510
|
+
"rockrms",
|
|
1511
|
+
"rust",
|
|
1512
|
+
"safari",
|
|
1513
|
+
"salesforce",
|
|
1514
|
+
"sass",
|
|
1515
|
+
"schlix",
|
|
1516
|
+
"scribd",
|
|
1517
|
+
"searchengin",
|
|
1518
|
+
"sellcast",
|
|
1519
|
+
"sellsy",
|
|
1520
|
+
"servicestack",
|
|
1521
|
+
"shirtsinbulk",
|
|
1522
|
+
"shopify",
|
|
1523
|
+
"shopware",
|
|
1524
|
+
"simplybuilt",
|
|
1525
|
+
"sistrix",
|
|
1526
|
+
"sith",
|
|
1527
|
+
"sketch",
|
|
1528
|
+
"skyatlas",
|
|
1529
|
+
"skype",
|
|
1530
|
+
"slack",
|
|
1531
|
+
"slack-hash",
|
|
1532
|
+
"slideshare",
|
|
1533
|
+
"snapchat",
|
|
1534
|
+
"snapchat-ghost",
|
|
1535
|
+
"snapchat-square",
|
|
1536
|
+
"soundcloud",
|
|
1537
|
+
"sourcetree",
|
|
1538
|
+
"speakap",
|
|
1539
|
+
"speaker-deck",
|
|
1540
|
+
"spotify",
|
|
1541
|
+
"squarespace",
|
|
1542
|
+
"stack-exchange",
|
|
1543
|
+
"stack-overflow",
|
|
1544
|
+
"stackpath",
|
|
1545
|
+
"staylinked",
|
|
1546
|
+
"steam",
|
|
1547
|
+
"steam-square",
|
|
1548
|
+
"steam-symbol",
|
|
1549
|
+
"sticker-mule",
|
|
1550
|
+
"strava",
|
|
1551
|
+
"stripe",
|
|
1552
|
+
"stripe-s",
|
|
1553
|
+
"studiovinari",
|
|
1554
|
+
"stumbleupon",
|
|
1555
|
+
"stumbleupon-circle",
|
|
1556
|
+
"superpowers",
|
|
1557
|
+
"supple",
|
|
1558
|
+
"suse",
|
|
1559
|
+
"swift",
|
|
1560
|
+
"symfony",
|
|
1561
|
+
"teamspeak",
|
|
1562
|
+
"telegram",
|
|
1563
|
+
"telegram-plane",
|
|
1564
|
+
"tencent-weibo",
|
|
1565
|
+
"the-red-yeti",
|
|
1566
|
+
"themeco",
|
|
1567
|
+
"themeisle",
|
|
1568
|
+
"think-peaks",
|
|
1569
|
+
"tiktok",
|
|
1570
|
+
"trade-federation",
|
|
1571
|
+
"trello",
|
|
1572
|
+
"tumblr",
|
|
1573
|
+
"tumblr-square",
|
|
1574
|
+
"twitch",
|
|
1575
|
+
"twitter",
|
|
1576
|
+
"twitter-square",
|
|
1577
|
+
"typo3",
|
|
1578
|
+
"uber",
|
|
1579
|
+
"ubuntu",
|
|
1580
|
+
"uikit",
|
|
1581
|
+
"umbraco",
|
|
1582
|
+
"uncharted",
|
|
1583
|
+
"uniregistry",
|
|
1584
|
+
"unity",
|
|
1585
|
+
"unsplash",
|
|
1586
|
+
"untappd",
|
|
1587
|
+
"ups",
|
|
1588
|
+
"usb",
|
|
1589
|
+
"usps",
|
|
1590
|
+
"ussunnah",
|
|
1591
|
+
"vaadin",
|
|
1592
|
+
"viacoin",
|
|
1593
|
+
"viadeo",
|
|
1594
|
+
"viadeo-square",
|
|
1595
|
+
"viber",
|
|
1596
|
+
"vimeo",
|
|
1597
|
+
"vimeo-square",
|
|
1598
|
+
"vimeo-v",
|
|
1599
|
+
"vine",
|
|
1600
|
+
"vk",
|
|
1601
|
+
"vnv",
|
|
1602
|
+
"vuejs",
|
|
1603
|
+
"watchman-monitoring",
|
|
1604
|
+
"waze",
|
|
1605
|
+
"weebly",
|
|
1606
|
+
"weibo",
|
|
1607
|
+
"weixin",
|
|
1608
|
+
"whatsapp",
|
|
1609
|
+
"whatsapp-square",
|
|
1610
|
+
"whmcs",
|
|
1611
|
+
"wikipedia-w",
|
|
1612
|
+
"windows",
|
|
1613
|
+
"wix",
|
|
1614
|
+
"wizards-of-the-coast",
|
|
1615
|
+
"wodu",
|
|
1616
|
+
"wolf-pack-battalion",
|
|
1617
|
+
"wordpress",
|
|
1618
|
+
"wordpress-simple",
|
|
1619
|
+
"wpbeginner",
|
|
1620
|
+
"wpexplorer",
|
|
1621
|
+
"wpforms",
|
|
1622
|
+
"wpressr",
|
|
1623
|
+
"xbox",
|
|
1624
|
+
"xing",
|
|
1625
|
+
"xing-square",
|
|
1626
|
+
"y-combinator",
|
|
1627
|
+
"yahoo",
|
|
1628
|
+
"yammer",
|
|
1629
|
+
"yandex",
|
|
1630
|
+
"yandex-international",
|
|
1631
|
+
"yarn",
|
|
1632
|
+
"yelp",
|
|
1633
|
+
"yoast",
|
|
1634
|
+
"youtube",
|
|
1635
|
+
"youtube-square",
|
|
1636
|
+
"zhihu",
|
|
1637
|
+
],
|
|
1158
1638
|
};
|
|
1159
1639
|
export default [
|
|
1160
1640
|
...all.regular.map((s) => `far fa-${s}`),
|
|
1161
1641
|
...all.solid.map((s) => `fas fa-${s}`),
|
|
1642
|
+
...all.brands.map((s) => `fab fa-${s}`),
|
|
1162
1643
|
];
|