katalyst-govuk-formbuilder 1.14.0 → 1.15.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e35e122751d75be5b004444f441afcb0e9b2fb9f0b7fd0b57de26bcc1fdb53a3
|
4
|
+
data.tar.gz: 0c3b132a04a168fee176634f6c5143c4b9bcaf22e06055ddd1090fcd78afd9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d745fec842ae2ca7dfe82bdaa7783e4c64e4ee28e68a15e1dbedc01b45b79d7892b8d94f396feeb6cd659ece8f1c32645b7b1cd6eacafa2aa9b3c8fc44c334
|
7
|
+
data.tar.gz: 489d519d8f1b1354e8bac81c928fb654e68558e797e0f8a12d0a06f8738fe887dffe2fde6c20eef3109440403a73b5bb901fcd33405acbdbb4016a6123992705
|
@@ -1345,187 +1345,6 @@
|
|
1345
1345
|
|
1346
1346
|
|
1347
1347
|
|
1348
|
-
.govuk-button {
|
1349
|
-
font-family: "Open Sans", sans-serif;
|
1350
|
-
-webkit-font-smoothing: antialiased;
|
1351
|
-
-moz-osx-font-smoothing: grayscale;
|
1352
|
-
font-weight: 400;
|
1353
|
-
font-size: 1rem;
|
1354
|
-
line-height: 1.1875;
|
1355
|
-
box-sizing: border-box;
|
1356
|
-
display: inline-block;
|
1357
|
-
position: relative;
|
1358
|
-
width: 100%;
|
1359
|
-
margin-top: 0;
|
1360
|
-
margin-right: 0;
|
1361
|
-
margin-left: 0;
|
1362
|
-
margin-bottom: 22px;
|
1363
|
-
padding: 8px 10px 7px;
|
1364
|
-
border: 2px solid transparent;
|
1365
|
-
border-radius: 0;
|
1366
|
-
color: #ffffff;
|
1367
|
-
background-color: #00703c;
|
1368
|
-
box-shadow: 0 2px 0 rgb(0, 44.8, 24);
|
1369
|
-
text-align: center;
|
1370
|
-
vertical-align: top;
|
1371
|
-
cursor: pointer;
|
1372
|
-
-webkit-appearance: none;
|
1373
|
-
}
|
1374
|
-
@media print {
|
1375
|
-
.govuk-button {
|
1376
|
-
font-family: sans-serif;
|
1377
|
-
}
|
1378
|
-
}
|
1379
|
-
@media (min-width: 40.0625em) {
|
1380
|
-
.govuk-button {
|
1381
|
-
font-size: 1.1875rem;
|
1382
|
-
line-height: 1;
|
1383
|
-
}
|
1384
|
-
}
|
1385
|
-
@media print {
|
1386
|
-
.govuk-button {
|
1387
|
-
font-size: 14pt;
|
1388
|
-
line-height: 19px;
|
1389
|
-
}
|
1390
|
-
}
|
1391
|
-
@media (min-width: 40.0625em) {
|
1392
|
-
.govuk-button {
|
1393
|
-
margin-bottom: 32px;
|
1394
|
-
}
|
1395
|
-
}
|
1396
|
-
@media (min-width: 40.0625em) {
|
1397
|
-
.govuk-button {
|
1398
|
-
width: auto;
|
1399
|
-
}
|
1400
|
-
}
|
1401
|
-
.govuk-button:link, .govuk-button:visited, .govuk-button:active, .govuk-button:hover {
|
1402
|
-
color: #ffffff;
|
1403
|
-
text-decoration: none;
|
1404
|
-
}
|
1405
|
-
.govuk-button::-moz-focus-inner {
|
1406
|
-
padding: 0;
|
1407
|
-
border: 0;
|
1408
|
-
}
|
1409
|
-
.govuk-button:hover {
|
1410
|
-
background-color: rgb(0, 89.6, 48);
|
1411
|
-
}
|
1412
|
-
.govuk-button:active {
|
1413
|
-
top: 2px;
|
1414
|
-
}
|
1415
|
-
.govuk-button:focus {
|
1416
|
-
border-color: #ffdd00;
|
1417
|
-
outline: 3px solid transparent;
|
1418
|
-
box-shadow: inset 0 0 0 1px #ffdd00;
|
1419
|
-
}
|
1420
|
-
.govuk-button:focus:not(:active):not(:hover) {
|
1421
|
-
border-color: #ffdd00;
|
1422
|
-
color: #0b0c0c;
|
1423
|
-
background-color: #ffdd00;
|
1424
|
-
box-shadow: 0 2px 0 #0b0c0c;
|
1425
|
-
}
|
1426
|
-
.govuk-button::before {
|
1427
|
-
content: "";
|
1428
|
-
display: block;
|
1429
|
-
position: absolute;
|
1430
|
-
top: -2px;
|
1431
|
-
right: -2px;
|
1432
|
-
bottom: -4px;
|
1433
|
-
left: -2px;
|
1434
|
-
background: transparent;
|
1435
|
-
}
|
1436
|
-
.govuk-button:active::before {
|
1437
|
-
top: -4px;
|
1438
|
-
}
|
1439
|
-
|
1440
|
-
.govuk-button[disabled] {
|
1441
|
-
opacity: 0.5;
|
1442
|
-
}
|
1443
|
-
.govuk-button[disabled]:hover {
|
1444
|
-
background-color: #00703c;
|
1445
|
-
cursor: not-allowed;
|
1446
|
-
}
|
1447
|
-
.govuk-button[disabled]:active {
|
1448
|
-
top: 0;
|
1449
|
-
box-shadow: 0 2px 0 rgb(0, 44.8, 24);
|
1450
|
-
}
|
1451
|
-
|
1452
|
-
.govuk-button--secondary {
|
1453
|
-
background-color: #f3f2f1;
|
1454
|
-
box-shadow: 0 2px 0 rgb(145.8, 145.2, 144.6);
|
1455
|
-
}
|
1456
|
-
.govuk-button--secondary, .govuk-button--secondary:link, .govuk-button--secondary:visited, .govuk-button--secondary:active, .govuk-button--secondary:hover {
|
1457
|
-
color: #0b0c0c;
|
1458
|
-
}
|
1459
|
-
.govuk-button--secondary:hover {
|
1460
|
-
background-color: rgb(218.7, 217.8, 216.9);
|
1461
|
-
}
|
1462
|
-
.govuk-button--secondary:hover[disabled] {
|
1463
|
-
background-color: #f3f2f1;
|
1464
|
-
}
|
1465
|
-
|
1466
|
-
.govuk-button--warning {
|
1467
|
-
background-color: #d4351c;
|
1468
|
-
box-shadow: 0 2px 0 rgb(84.8, 21.2, 11.2);
|
1469
|
-
}
|
1470
|
-
.govuk-button--warning, .govuk-button--warning:link, .govuk-button--warning:visited, .govuk-button--warning:active, .govuk-button--warning:hover {
|
1471
|
-
color: #ffffff;
|
1472
|
-
}
|
1473
|
-
.govuk-button--warning:hover {
|
1474
|
-
background-color: rgb(169.6, 42.4, 22.4);
|
1475
|
-
}
|
1476
|
-
.govuk-button--warning:hover[disabled] {
|
1477
|
-
background-color: #d4351c;
|
1478
|
-
}
|
1479
|
-
|
1480
|
-
.govuk-button--inverse {
|
1481
|
-
background-color: #ffffff;
|
1482
|
-
box-shadow: 0 2px 0 rgb(20.3, 78.4, 128.8);
|
1483
|
-
}
|
1484
|
-
.govuk-button--inverse, .govuk-button--inverse:link, .govuk-button--inverse:visited, .govuk-button--inverse:active, .govuk-button--inverse:hover {
|
1485
|
-
color: #1d70b8;
|
1486
|
-
}
|
1487
|
-
.govuk-button--inverse:hover {
|
1488
|
-
background-color: rgb(232.4, 240.7, 247.9);
|
1489
|
-
}
|
1490
|
-
.govuk-button--inverse:hover[disabled] {
|
1491
|
-
background-color: #ffffff;
|
1492
|
-
}
|
1493
|
-
|
1494
|
-
.govuk-button--start {
|
1495
|
-
font-weight: 700;
|
1496
|
-
font-size: 1.125rem;
|
1497
|
-
line-height: 1;
|
1498
|
-
display: inline-flex;
|
1499
|
-
min-height: auto;
|
1500
|
-
justify-content: center;
|
1501
|
-
}
|
1502
|
-
@media (min-width: 40.0625em) {
|
1503
|
-
.govuk-button--start {
|
1504
|
-
font-size: 1.5rem;
|
1505
|
-
line-height: 1;
|
1506
|
-
}
|
1507
|
-
}
|
1508
|
-
@media print {
|
1509
|
-
.govuk-button--start {
|
1510
|
-
font-size: 18pt;
|
1511
|
-
line-height: 1;
|
1512
|
-
}
|
1513
|
-
}
|
1514
|
-
|
1515
|
-
.govuk-button__start-icon {
|
1516
|
-
margin-left: 5px;
|
1517
|
-
vertical-align: middle;
|
1518
|
-
flex-shrink: 0;
|
1519
|
-
align-self: center;
|
1520
|
-
forced-color-adjust: auto;
|
1521
|
-
}
|
1522
|
-
@media (min-width: 48.0625em) {
|
1523
|
-
.govuk-button__start-icon {
|
1524
|
-
margin-left: 10px;
|
1525
|
-
}
|
1526
|
-
}
|
1527
|
-
|
1528
|
-
|
1529
1348
|
.govuk-error-message {
|
1530
1349
|
font-family: "Open Sans", sans-serif;
|
1531
1350
|
-webkit-font-smoothing: antialiased;
|
@@ -118,7 +118,7 @@ class GOVUKFrontendComponent {
|
|
118
118
|
return this._$root;
|
119
119
|
}
|
120
120
|
constructor($root) {
|
121
|
-
this._$root =
|
121
|
+
this._$root = void 0;
|
122
122
|
const childConstructor = this.constructor;
|
123
123
|
if (typeof childConstructor.moduleName !== 'string') {
|
124
124
|
throw new InitError(`\`moduleName\` not defined in component`);
|
@@ -179,7 +179,7 @@ class ConfigurableComponent extends GOVUKFrontendComponent {
|
|
179
179
|
}
|
180
180
|
constructor($root, config) {
|
181
181
|
super($root);
|
182
|
-
this._config =
|
182
|
+
this._config = void 0;
|
183
183
|
const childConstructor = this.constructor;
|
184
184
|
if (typeof childConstructor.defaults === 'undefined') {
|
185
185
|
throw new ConfigError(formatErrorMessage(childConstructor, 'Config passed as parameter into constructor but no defaults defined'));
|
@@ -191,7 +191,7 @@ class ConfigurableComponent extends GOVUKFrontendComponent {
|
|
191
191
|
function normaliseString(value, property) {
|
192
192
|
const trimmedValue = value ? value.trim() : '';
|
193
193
|
let output;
|
194
|
-
let outputType = property == null ?
|
194
|
+
let outputType = property == null ? void 0 : property.type;
|
195
195
|
if (!outputType) {
|
196
196
|
if (['true', 'false'].includes(trimmedValue)) {
|
197
197
|
outputType = 'boolean';
|
@@ -221,7 +221,7 @@ function normaliseDataset(Component, dataset) {
|
|
221
221
|
if (field in dataset) {
|
222
222
|
out[field] = normaliseString(dataset[field], property);
|
223
223
|
}
|
224
|
-
if ((property == null ?
|
224
|
+
if ((property == null ? void 0 : property.type) === 'object') {
|
225
225
|
out[field] = extractConfigByNamespace(Component.schema, dataset, field);
|
226
226
|
}
|
227
227
|
}
|
@@ -264,7 +264,7 @@ function validateConfig(schema, config) {
|
|
264
264
|
}
|
265
265
|
function extractConfigByNamespace(schema, dataset, namespace) {
|
266
266
|
const property = schema.properties[namespace];
|
267
|
-
if ((property == null ?
|
267
|
+
if ((property == null ? void 0 : property.type) !== 'object') {
|
268
268
|
return;
|
269
269
|
}
|
270
270
|
const newObject = {
|
@@ -292,8 +292,8 @@ function extractConfigByNamespace(schema, dataset, namespace) {
|
|
292
292
|
class I18n {
|
293
293
|
constructor(translations = {}, config = {}) {
|
294
294
|
var _config$locale;
|
295
|
-
this.translations =
|
296
|
-
this.locale =
|
295
|
+
this.translations = void 0;
|
296
|
+
this.locale = void 0;
|
297
297
|
this.translations = translations;
|
298
298
|
this.locale = (_config$locale = config.locale) != null ? _config$locale : document.documentElement.lang || 'en';
|
299
299
|
}
|
@@ -302,7 +302,7 @@ class I18n {
|
|
302
302
|
throw new Error('i18n: lookup key missing');
|
303
303
|
}
|
304
304
|
let translation = this.translations[lookupKey];
|
305
|
-
if (typeof (options == null ?
|
305
|
+
if (typeof (options == null ? void 0 : options.count) === 'number' && typeof translation === 'object') {
|
306
306
|
const translationPluralForm = translation[this.getPluralSuffix(lookupKey, options.count)];
|
307
307
|
if (translationPluralForm) {
|
308
308
|
translation = translationPluralForm;
|
@@ -585,14 +585,14 @@ class CharacterCount extends ConfigurableComponent {
|
|
585
585
|
constructor($root, config = {}) {
|
586
586
|
var _ref, _this$config$maxwords;
|
587
587
|
super($root, config);
|
588
|
-
this.$textarea =
|
589
|
-
this.$visibleCountMessage =
|
590
|
-
this.$screenReaderCountMessage =
|
588
|
+
this.$textarea = void 0;
|
589
|
+
this.$visibleCountMessage = void 0;
|
590
|
+
this.$screenReaderCountMessage = void 0;
|
591
591
|
this.lastInputTimestamp = null;
|
592
592
|
this.lastInputValue = '';
|
593
593
|
this.valueChecker = null;
|
594
|
-
this.i18n =
|
595
|
-
this.maxLength =
|
594
|
+
this.i18n = void 0;
|
595
|
+
this.maxLength = void 0;
|
596
596
|
const $textarea = this.$root.querySelector('.govuk-js-character-count');
|
597
597
|
if (!($textarea instanceof HTMLTextAreaElement || $textarea instanceof HTMLInputElement)) {
|
598
598
|
throw new ElementError({
|
@@ -863,7 +863,7 @@ class Checkboxes extends GOVUKFrontendComponent {
|
|
863
863
|
*/
|
864
864
|
constructor($root) {
|
865
865
|
super($root);
|
866
|
-
this.$inputs =
|
866
|
+
this.$inputs = void 0;
|
867
867
|
const $inputs = this.$root.querySelectorAll('input[type="checkbox"]');
|
868
868
|
if (!$inputs.length) {
|
869
869
|
throw new ElementError({
|
@@ -1056,10 +1056,10 @@ class PasswordInput extends ConfigurableComponent {
|
|
1056
1056
|
*/
|
1057
1057
|
constructor($root, config = {}) {
|
1058
1058
|
super($root, config);
|
1059
|
-
this.i18n =
|
1060
|
-
this.$input =
|
1061
|
-
this.$showHideButton =
|
1062
|
-
this.$screenReaderStatusMessage =
|
1059
|
+
this.i18n = void 0;
|
1060
|
+
this.$input = void 0;
|
1061
|
+
this.$showHideButton = void 0;
|
1062
|
+
this.$screenReaderStatusMessage = void 0;
|
1063
1063
|
const $input = this.$root.querySelector('.govuk-js-password-input-input');
|
1064
1064
|
if (!($input instanceof HTMLInputElement)) {
|
1065
1065
|
throw new ElementError({
|
@@ -1209,7 +1209,7 @@ class Radios extends GOVUKFrontendComponent {
|
|
1209
1209
|
*/
|
1210
1210
|
constructor($root) {
|
1211
1211
|
super($root);
|
1212
|
-
this.$inputs =
|
1212
|
+
this.$inputs = void 0;
|
1213
1213
|
const $inputs = this.$root.querySelectorAll('input[type="radio"]');
|
1214
1214
|
if (!$inputs.length) {
|
1215
1215
|
throw new ElementError({
|
@@ -6,7 +6,6 @@ $govuk-font-family: "Open Sans", sans-serif !default;
|
|
6
6
|
@import "govuk-frontend/dist/govuk/core";
|
7
7
|
@import "govuk-frontend/dist/govuk/objects";
|
8
8
|
|
9
|
-
@import "govuk-frontend/dist/govuk/components/button";
|
10
9
|
@import "govuk-frontend/dist/govuk/components/checkboxes";
|
11
10
|
@import "govuk-frontend/dist/govuk/components/date-input";
|
12
11
|
@import "govuk-frontend/dist/govuk/components/error-message";
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-govuk-formbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: govuk_design_system_formbuilder
|