gd-bs 5.4.3 → 5.4.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.4.3",
3
+ "version": "5.4.6",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -43,7 +43,7 @@
43
43
  "@babel/preset-env": "^7.16.11",
44
44
  "@types/node": "^16.11.26",
45
45
  "autoprefixer": "^10.4.4",
46
- "babel-loader": "^8.2.3",
46
+ "babel-loader": "^8.2.4",
47
47
  "css-loader": "^6.7.1",
48
48
  "dts-bundle": "^0.7.3",
49
49
  "html-loader": "^2.1.2",
package/pnpm-lock.yaml CHANGED
@@ -9,7 +9,7 @@ devDependencies:
9
9
  '@babel/preset-env': 7.16.11_@babel+core@7.17.8
10
10
  '@types/node': 16.11.26
11
11
  autoprefixer: 10.4.4
12
- babel-loader: 8.2.3_fa907c5a4f16ccc493e21649ccc59574
12
+ babel-loader: 8.2.4_fa907c5a4f16ccc493e21649ccc59574
13
13
  css-loader: 6.7.1_webpack@5.70.0
14
14
  dts-bundle: 0.7.3
15
15
  html-loader: 2.1.2_webpack@5.70.0
@@ -1240,7 +1240,7 @@ packages:
1240
1240
  /@types/eslint/8.4.1:
1241
1241
  dependencies:
1242
1242
  '@types/estree': 0.0.51
1243
- '@types/json-schema': 7.0.10
1243
+ '@types/json-schema': 7.0.11
1244
1244
  dev: true
1245
1245
  resolution:
1246
1246
  integrity: sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==
@@ -1255,10 +1255,10 @@ packages:
1255
1255
  dev: true
1256
1256
  resolution:
1257
1257
  integrity: sha1-ECZAnFYlqGiQdGAoCNCCsoZ7ilE=
1258
- /@types/json-schema/7.0.10:
1258
+ /@types/json-schema/7.0.11:
1259
1259
  dev: true
1260
1260
  resolution:
1261
- integrity: sha512-BLO9bBq59vW3fxCpD4o0N4U+DXsvwvIcl+jofw0frQo/GrBFC+/jRZj1E7kgp6dvTyNmA4y6JCV5Id/r3mNP5A==
1261
+ integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==
1262
1262
  /@types/minimatch/3.0.5:
1263
1263
  dev: true
1264
1264
  resolution:
@@ -1484,7 +1484,7 @@ packages:
1484
1484
  /autoprefixer/10.4.4:
1485
1485
  dependencies:
1486
1486
  browserslist: 4.20.2
1487
- caniuse-lite: 1.0.30001319
1487
+ caniuse-lite: 1.0.30001322
1488
1488
  fraction.js: 4.2.0
1489
1489
  normalize-range: 0.1.2
1490
1490
  picocolors: 1.0.0
@@ -1497,11 +1497,11 @@ packages:
1497
1497
  postcss: ^8.1.0
1498
1498
  resolution:
1499
1499
  integrity: sha512-Tm8JxsB286VweiZ5F0anmbyGiNI3v3wGv3mz9W+cxEDYB/6jbnj6GM9H9mK3wIL8ftgl+C07Lcwb8PG5PCCPzA==
1500
- /babel-loader/8.2.3_fa907c5a4f16ccc493e21649ccc59574:
1500
+ /babel-loader/8.2.4_fa907c5a4f16ccc493e21649ccc59574:
1501
1501
  dependencies:
1502
1502
  '@babel/core': 7.17.8
1503
1503
  find-cache-dir: 3.3.2
1504
- loader-utils: 1.4.0
1504
+ loader-utils: 2.0.2
1505
1505
  make-dir: 3.1.0
1506
1506
  schema-utils: 2.7.1
1507
1507
  webpack: 5.70.0_webpack-cli@4.9.2
@@ -1512,7 +1512,7 @@ packages:
1512
1512
  '@babel/core': ^7.0.0
1513
1513
  webpack: '>=2'
1514
1514
  resolution:
1515
- integrity: sha512-n4Zeta8NC3QAsuyiizu0GkmRcQ6clkV9WFUnUf1iXP//IeSKbWjofW3UHyZVwlOB4y039YQKefawyTn64Zwbuw==
1515
+ integrity: sha512-8dytA3gcvPPPv4Grjhnt8b5IIiTcq/zeXOPk4iTYI0SVXcsmuGg7JtBRDp8S9X+gJfhQ8ektjXZlDu1Bb33U8A==
1516
1516
  /babel-plugin-dynamic-import-node/2.3.3:
1517
1517
  dependencies:
1518
1518
  object.assign: 4.1.2
@@ -1600,8 +1600,8 @@ packages:
1600
1600
  integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
1601
1601
  /browserslist/4.20.2:
1602
1602
  dependencies:
1603
- caniuse-lite: 1.0.30001319
1604
- electron-to-chromium: 1.4.89
1603
+ caniuse-lite: 1.0.30001322
1604
+ electron-to-chromium: 1.4.99
1605
1605
  escalade: 3.1.1
1606
1606
  node-releases: 2.0.2
1607
1607
  picocolors: 1.0.0
@@ -1635,10 +1635,10 @@ packages:
1635
1635
  dev: true
1636
1636
  resolution:
1637
1637
  integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==
1638
- /caniuse-lite/1.0.30001319:
1638
+ /caniuse-lite/1.0.30001322:
1639
1639
  dev: true
1640
1640
  resolution:
1641
- integrity: sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw==
1641
+ integrity: sha512-neRmrmIrCGuMnxGSoh+x7zYtQFFgnSY2jaomjU56sCkTA6JINqQrxutF459JpWcWRajvoyn95sOXq4Pqrnyjew==
1642
1642
  /chalk/2.4.2:
1643
1643
  dependencies:
1644
1644
  ansi-styles: 3.2.1
@@ -1860,17 +1860,17 @@ packages:
1860
1860
  commander: 2.20.3
1861
1861
  detect-indent: 0.2.0
1862
1862
  glob: 6.0.4
1863
- mkdirp: 0.5.5
1863
+ mkdirp: 0.5.6
1864
1864
  dev: true
1865
1865
  engines:
1866
1866
  node: '>= 0.10.0'
1867
1867
  hasBin: true
1868
1868
  resolution:
1869
1869
  integrity: sha1-Nyt7tpyCB4LmOC9ABzmmnc7T1Zo=
1870
- /electron-to-chromium/1.4.89:
1870
+ /electron-to-chromium/1.4.99:
1871
1871
  dev: true
1872
1872
  resolution:
1873
- integrity: sha512-z1Axg0Fu54fse8wN4fd+GAINdU5mJmLtcl6bqIcYyzNVGONcfHAeeJi88KYMQVKalhXlYuVPzKkFIU5VD0raUw==
1873
+ integrity: sha512-YXMzbvlo6pW12KWw0bj6cIGCJi1Moy8PLCuuzgRzg6WYIcHILK3szU+HHnHFx2b373qRv+cfmHhbmRbatyAbPA==
1874
1874
  /emojis-list/3.0.0:
1875
1875
  dev: true
1876
1876
  engines:
@@ -2315,13 +2315,6 @@ packages:
2315
2315
  dev: true
2316
2316
  resolution:
2317
2317
  integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
2318
- /json5/1.0.1:
2319
- dependencies:
2320
- minimist: 1.2.6
2321
- dev: true
2322
- hasBin: true
2323
- resolution:
2324
- integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==
2325
2318
  /json5/2.2.1:
2326
2319
  dev: true
2327
2320
  engines:
@@ -2355,16 +2348,16 @@ packages:
2355
2348
  node: '>=6.11.5'
2356
2349
  resolution:
2357
2350
  integrity: sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==
2358
- /loader-utils/1.4.0:
2351
+ /loader-utils/2.0.2:
2359
2352
  dependencies:
2360
2353
  big.js: 5.2.2
2361
2354
  emojis-list: 3.0.0
2362
- json5: 1.0.1
2355
+ json5: 2.2.1
2363
2356
  dev: true
2364
2357
  engines:
2365
- node: '>=4.0.0'
2358
+ node: '>=8.9.0'
2366
2359
  resolution:
2367
- integrity: sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==
2360
+ integrity: sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==
2368
2361
  /locate-path/5.0.0:
2369
2362
  dependencies:
2370
2363
  p-locate: 4.1.0
@@ -2414,7 +2407,7 @@ packages:
2414
2407
  dev: true
2415
2408
  resolution:
2416
2409
  integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
2417
- /micromatch/4.0.4:
2410
+ /micromatch/4.0.5:
2418
2411
  dependencies:
2419
2412
  braces: 3.0.2
2420
2413
  picomatch: 2.3.1
@@ -2422,7 +2415,7 @@ packages:
2422
2415
  engines:
2423
2416
  node: '>=8.6'
2424
2417
  resolution:
2425
- integrity: sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
2418
+ integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
2426
2419
  /mime-db/1.52.0:
2427
2420
  dev: true
2428
2421
  engines:
@@ -2465,24 +2458,24 @@ packages:
2465
2458
  dev: true
2466
2459
  resolution:
2467
2460
  integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
2468
- /mkdirp/0.5.5:
2461
+ /mkdirp/0.5.6:
2469
2462
  dependencies:
2470
2463
  minimist: 1.2.6
2471
2464
  dev: true
2472
2465
  hasBin: true
2473
2466
  resolution:
2474
- integrity: sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==
2467
+ integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==
2475
2468
  /ms/2.1.2:
2476
2469
  dev: true
2477
2470
  resolution:
2478
2471
  integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
2479
- /nanoid/3.3.1:
2472
+ /nanoid/3.3.2:
2480
2473
  dev: true
2481
2474
  engines:
2482
2475
  node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1
2483
2476
  hasBin: true
2484
2477
  resolution:
2485
- integrity: sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
2478
+ integrity: sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA==
2486
2479
  /neo-async/2.6.2:
2487
2480
  dev: true
2488
2481
  resolution:
@@ -2728,7 +2721,7 @@ packages:
2728
2721
  integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
2729
2722
  /postcss/8.4.12:
2730
2723
  dependencies:
2731
- nanoid: 3.3.1
2724
+ nanoid: 3.3.2
2732
2725
  picocolors: 1.0.0
2733
2726
  source-map-js: 1.0.2
2734
2727
  dev: true
@@ -2892,7 +2885,7 @@ packages:
2892
2885
  integrity: sha512-YlYWkkHP9fbwaFRZQRXgDi3mXZShslVmmo+FVK3kHLUELHHEYrCmL1x6IUjC7wLS6VuJSAFXRQS/DxdsC4xL1A==
2893
2886
  /schema-utils/2.7.1:
2894
2887
  dependencies:
2895
- '@types/json-schema': 7.0.10
2888
+ '@types/json-schema': 7.0.11
2896
2889
  ajv: 6.12.6
2897
2890
  ajv-keywords: 3.5.2_ajv@6.12.6
2898
2891
  dev: true
@@ -2902,7 +2895,7 @@ packages:
2902
2895
  integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==
2903
2896
  /schema-utils/3.1.1:
2904
2897
  dependencies:
2905
- '@types/json-schema': 7.0.10
2898
+ '@types/json-schema': 7.0.11
2906
2899
  ajv: 6.12.6
2907
2900
  ajv-keywords: 3.5.2_ajv@6.12.6
2908
2901
  dev: true
@@ -3124,7 +3117,7 @@ packages:
3124
3117
  dependencies:
3125
3118
  chalk: 4.1.2
3126
3119
  enhanced-resolve: 5.9.2
3127
- micromatch: 4.0.4
3120
+ micromatch: 4.0.5
3128
3121
  semver: 7.3.5
3129
3122
  webpack: 5.70.0_webpack-cli@4.9.2
3130
3123
  dev: true
@@ -3330,7 +3323,7 @@ specifiers:
3330
3323
  '@popperjs/core': ^2.11.4
3331
3324
  '@types/node': ^16.11.26
3332
3325
  autoprefixer: ^10.4.4
3333
- babel-loader: ^8.2.3
3326
+ babel-loader: ^8.2.4
3334
3327
  bootstrap: ^5.1.3
3335
3328
  bootstrap-icons: ^1.8.1
3336
3329
  core-js: ^3.21.1
package/src/bs.scss CHANGED
@@ -41,6 +41,7 @@
41
41
  @import "~bootstrap/scss/placeholders";
42
42
  }
43
43
 
44
+
44
45
  /** Helpers */
45
46
 
46
47
  @import "~bootstrap/scss/helpers";
@@ -88,17 +89,19 @@
88
89
  margin-bottom: 0;
89
90
  }
90
91
  /* Color match breadcrumb links */
91
- .breadcrumb-item.active, .breadcrumb-item > a {
92
+ .breadcrumb-item.active,
93
+ .breadcrumb-item>a {
92
94
  color: #fff;
93
95
  text-decoration: none;
94
96
  }
95
97
  /* Color match breadcrumb hover links */
96
- .breadcrumb-item > a:hover, .breadcrumb-item > a:focus {
98
+ .breadcrumb-item>a:hover,
99
+ .breadcrumb-item>a:focus {
97
100
  color: #dee2e6;
98
101
  text-decoration: underline;
99
102
  }
100
103
  /* Color match breadcrumb active links */
101
- .breadcrumb-item > a:active {
104
+ .breadcrumb-item>a:active {
102
105
  color: #333333;
103
106
  font-weight: 500;
104
107
  text-decoration: underline;
@@ -223,7 +226,8 @@
223
226
  border-color: #6c757d;
224
227
  }
225
228
  /* Color match disabled form elements */
226
- .form-control:disabled, .form-control[readonly] {
229
+ .form-control:disabled,
230
+ .form-control[readonly] {
227
231
  border-color: #eaeaea;
228
232
  color: #a6a6a6;
229
233
  }
@@ -287,10 +291,9 @@
287
291
  .mw-fit {
288
292
  max-width: fit-content !important;
289
293
  }
290
- /* Fix padding on the nav links */
294
+ /* Set color for nav links */
291
295
  .nav-link {
292
296
  color: #0078d4;
293
- padding: 0 !important;
294
297
  }
295
298
  /* Set background color and border for nav-tabs */
296
299
  .nav-tabs .nav-link {
@@ -414,7 +417,9 @@
414
417
  }
415
418
  }
416
419
 
420
+
417
421
  /** Modal background - Shouldn't be under the .bs class */
422
+
418
423
  .modal-backdrop {
419
424
  position: fixed;
420
425
  top: 0;
@@ -432,7 +437,9 @@
432
437
  }
433
438
  }
434
439
 
440
+
435
441
  /** Offcanvas background - Shouldn't be under the .bs class */
442
+
436
443
  .offcanvas-backdrop {
437
444
  position: fixed;
438
445
  top: 0;
@@ -450,23 +457,33 @@
450
457
  }
451
458
  }
452
459
 
460
+
453
461
  /* Center the dataTables_info element properly */
462
+
454
463
  div.dataTables_wrapper div.dataTables_info {
455
464
  padding-top: 0.9rem;
456
465
  }
457
466
 
467
+
458
468
  /* Add proper width for dataTables_length select */
469
+
459
470
  div.dataTables_wrapper div.dataTables_length select {
460
471
  width: 3.75rem;
461
472
  }
462
473
 
474
+
463
475
  /* Color match colReorder line */
476
+
464
477
  div.DTCR_pointer {
465
478
  background-color: #0078d4;
466
479
  }
467
480
 
481
+
468
482
  /* Be sure to escape any characters, such as # to %23 when specifying hex color values in background-image */
483
+
484
+
469
485
  /* DataTables sorting with Bootstrap Icons */
486
+
470
487
  table.dataTable thead .sorting,
471
488
  table.dataTable thead .sorting_asc,
472
489
  table.dataTable thead .sorting_desc,
@@ -489,21 +506,28 @@ table.dataTable thead .sorting_desc_disabled:after {
489
506
  content: "" !important;
490
507
  }
491
508
 
509
+
492
510
  /* Bootstrap Icon: caret-up */
511
+
493
512
  table.dataTable thead .sorting {
494
513
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M3.204 11L8 5.519 12.796 11H3.204zm-.753-.659l4.796-5.48a1 1 0 0 1 1.506 0l4.796 5.48c.566.647.106 1.659-.753 1.659H3.204a1 1 0 0 1-.753-1.659z'/></svg>");
495
514
  }
496
515
 
516
+
497
517
  /* Bootstrap Icon: caret-up-fill */
518
+
498
519
  table.dataTable thead .sorting_asc {
499
520
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 4.86l-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/></svg>");
500
521
  }
501
522
 
523
+
502
524
  /* Bootstrap Icon: caret-down-fill */
525
+
503
526
  table.dataTable thead .sorting_desc {
504
527
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
505
528
  }
506
529
 
530
+
507
531
  /* Tippy Tooltip primary theme color */
508
532
 
509
533
  .tippy-box[data-theme~='primary'] {
@@ -526,6 +550,7 @@ table.dataTable thead .sorting_desc {
526
550
  border-right-color: #0078d4;
527
551
  }
528
552
 
553
+
529
554
  /* Tippy Tooltip secondary theme color */
530
555
 
531
556
  .tippy-box[data-theme~='secondary'] {
@@ -548,6 +573,7 @@ table.dataTable thead .sorting_desc {
548
573
  border-right-color: #6c757d;
549
574
  }
550
575
 
576
+
551
577
  /* Tippy Tooltip success theme color */
552
578
 
553
579
  .tippy-box[data-theme~='success'] {
@@ -570,6 +596,7 @@ table.dataTable thead .sorting_desc {
570
596
  border-right-color: #198754;
571
597
  }
572
598
 
599
+
573
600
  /* Tippy Tooltip info theme color */
574
601
 
575
602
  .tippy-box[data-theme~='info'] {
@@ -593,6 +620,7 @@ table.dataTable thead .sorting_desc {
593
620
  border-right-color: #0dcaf0;
594
621
  }
595
622
 
623
+
596
624
  /* Tippy Tooltip warning theme color */
597
625
 
598
626
  .tippy-box[data-theme~='warning'] {
@@ -616,6 +644,7 @@ table.dataTable thead .sorting_desc {
616
644
  border-right-color: #ffc107;
617
645
  }
618
646
 
647
+
619
648
  /* Tippy Tooltip danger theme color */
620
649
 
621
650
  .tippy-box[data-theme~='danger'] {
@@ -638,6 +667,7 @@ table.dataTable thead .sorting_desc {
638
667
  border-right-color: #dc3545;
639
668
  }
640
669
 
670
+
641
671
  /* Tippy Tooltip light theme color - override Tippy default to match Bootstrap */
642
672
 
643
673
  .tippy-box[data-theme~='light'] {
@@ -661,6 +691,7 @@ table.dataTable thead .sorting_desc {
661
691
  border-right-color: #f8f9fa !important;
662
692
  }
663
693
 
694
+
664
695
  /* Tippy Tooltip dark theme color */
665
696
 
666
697
  .tippy-box[data-theme~='dark'] {
@@ -125,8 +125,9 @@ export class DropdownItem {
125
125
  // Prevent the page from moving to the top
126
126
  ev.preventDefault();
127
127
 
128
- // See if we are selecting items
129
- if (this._parent.autoSelect) {
128
+ // See if we are automatically selecting items
129
+ let autoSelect = typeof (this._parent.autoSelect) === "boolean" ? this._parent.autoSelect : true;
130
+ if (autoSelect) {
130
131
  // Toggle the item
131
132
  this.toggle();
132
133
  }
@@ -114,10 +114,10 @@ export const FormValidationTypes: IFormValidationTypes;
114
114
  */
115
115
  export interface IForm {
116
116
  /** Appends controls to the form */
117
- appendControls: (controls: Array<IFormControlProps>) => void;
117
+ appendControls: (controls: Array<IFormControlProps>) => Array<IFormControl>;
118
118
 
119
119
  /** Appends rows to the form */
120
- appendRows: (rows: Array<IFormRow>) => void;
120
+ appendRows: (rows: Array<IFormRow>) => Array<IFormControl>;
121
121
 
122
122
  /** The form controls */
123
123
  controls: Array<IFormControl>;
@@ -89,25 +89,41 @@ class _Form extends Base<IFormProps> implements IForm {
89
89
  */
90
90
 
91
91
  // Append controls to the form
92
- appendControls(controls: Array<IFormControlProps> = []) {
92
+ appendControls(controls: Array<IFormControlProps> = []): Array<IFormControl> {
93
+ let addedControls: Array<IFormControl> = [];
94
+
93
95
  // Parse the controls
94
96
  for (let i = 0; i < controls.length; i++) {
95
97
  // Create the group
96
98
  let group = new FormGroup(controls[i], this.props);
97
99
  this._groups.push(group);
98
100
  this.el.appendChild(group.el);
101
+
102
+ // Append the control
103
+ addedControls.push(group.control);
99
104
  }
105
+
106
+ // Return the controls
107
+ return addedControls;
100
108
  }
101
109
 
102
110
  // Append rows to the form
103
111
  appendRows(rows: Array<IFormRow> = []) {
112
+ let addedControls: Array<IFormControl> = [];
113
+
104
114
  // Parse the rows
105
115
  for (let i = 0; i < rows.length; i++) {
106
116
  // Create the row
107
117
  let row = new FormRow(rows[i], this.props);
108
118
  this._rows.push(row);
109
119
  this.el.appendChild(row.el);
120
+
121
+ // Append the control
122
+ addedControls = addedControls.concat(row.controls);
110
123
  }
124
+
125
+ // Return the controls
126
+ return addedControls;
111
127
  }
112
128
 
113
129
  // The forms controls