@abgov/jsonforms-components 2.30.1 → 2.30.2
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.js
CHANGED
|
@@ -7104,6 +7104,8 @@ let _$6 = t => t,
|
|
|
7104
7104
|
_t7$1,
|
|
7105
7105
|
_t8$1,
|
|
7106
7106
|
_t9$1,
|
|
7107
|
+
_t0$1,
|
|
7108
|
+
_t1$1,
|
|
7107
7109
|
_t10$1,
|
|
7108
7110
|
_t11$1,
|
|
7109
7111
|
_t12$1,
|
|
@@ -7113,11 +7115,9 @@ let _$6 = t => t,
|
|
|
7113
7115
|
_t16$1,
|
|
7114
7116
|
_t17$1,
|
|
7115
7117
|
_t18$1,
|
|
7116
|
-
_t19
|
|
7117
|
-
_t20
|
|
7118
|
-
_t21
|
|
7119
|
-
_t22,
|
|
7120
|
-
_t23;
|
|
7118
|
+
_t19,
|
|
7119
|
+
_t20,
|
|
7120
|
+
_t21;
|
|
7121
7121
|
const ReviewItem = styled.div(_t$6 || (_t$6 = _$6`
|
|
7122
7122
|
display: flex;
|
|
7123
7123
|
flex-direction: column;
|
|
@@ -7170,7 +7170,7 @@ styled.div(_t8$1 || (_t8$1 = _$6`
|
|
|
7170
7170
|
styled.h3(_t9$1 || (_t9$1 = _$6`
|
|
7171
7171
|
text-transform: capitalize;
|
|
7172
7172
|
`));
|
|
7173
|
-
const RightAlignmentDiv = styled.div(
|
|
7173
|
+
const RightAlignmentDiv = styled.div(_t0$1 || (_t0$1 = _$6`
|
|
7174
7174
|
@media screen and (max-width: 767px) {
|
|
7175
7175
|
margin-bottom: var(--goa-space-l);
|
|
7176
7176
|
}
|
|
@@ -7180,52 +7180,52 @@ const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$6`
|
|
|
7180
7180
|
margin-bottom: var(--goa-space-l);
|
|
7181
7181
|
}
|
|
7182
7182
|
`));
|
|
7183
|
-
const FormStepperSummaryH3 = styled.h3(
|
|
7183
|
+
const FormStepperSummaryH3 = styled.h3(_t1$1 || (_t1$1 = _$6`
|
|
7184
7184
|
flex: 1;
|
|
7185
7185
|
margin-bottom: var(--goa-space-m);
|
|
7186
7186
|
font-size: var(--goa-font-size-7);
|
|
7187
7187
|
line-height: var(--goa-line-height-4);
|
|
7188
7188
|
font-weight: var(--goa-font-weight-regular);
|
|
7189
7189
|
`));
|
|
7190
|
-
const PageRenderPadding = styled.div(
|
|
7190
|
+
const PageRenderPadding = styled.div(_t10$1 || (_t10$1 = _$6`
|
|
7191
7191
|
margin-top: var(--goa-space-2xl);
|
|
7192
7192
|
`));
|
|
7193
|
-
styled.div(
|
|
7193
|
+
styled.div(_t11$1 || (_t11$1 = _$6`
|
|
7194
7194
|
margin-bottom: var(--goa-space-2xl);
|
|
7195
7195
|
`));
|
|
7196
|
-
const PageBorder = styled.div(
|
|
7196
|
+
const PageBorder = styled.div(_t12$1 || (_t12$1 = _$6`
|
|
7197
7197
|
padding: var(--goa-space-m) var(--goa-space-3xl);
|
|
7198
7198
|
`));
|
|
7199
|
-
const TableReviewItemSection = styled.div(
|
|
7199
|
+
const TableReviewItemSection = styled.div(_t13$1 || (_t13$1 = _$6`
|
|
7200
7200
|
.element-style {
|
|
7201
7201
|
max-width: 1600px;
|
|
7202
7202
|
}
|
|
7203
7203
|
`));
|
|
7204
|
-
const TableReviewItem = styled.div(
|
|
7204
|
+
const TableReviewItem = styled.div(_t14$1 || (_t14$1 = _$6`
|
|
7205
7205
|
padding: var(--goa-space-xl) var(--goa-space-2xl);
|
|
7206
7206
|
border: 1px solid var(--goa-color-greyscale-300);
|
|
7207
7207
|
border-radius: var(--goa-border-radius-xl);
|
|
7208
7208
|
`));
|
|
7209
|
-
const TableReviewPageTitleRow = styled.div(
|
|
7209
|
+
const TableReviewPageTitleRow = styled.div(_t15$1 || (_t15$1 = _$6`
|
|
7210
7210
|
margin-top: var(--goa-space-xl);
|
|
7211
7211
|
display: flex;
|
|
7212
7212
|
justify-content: space-between;
|
|
7213
7213
|
`));
|
|
7214
|
-
const TableReviewCategoryLabel = styled.h3(
|
|
7214
|
+
const TableReviewCategoryLabel = styled.h3(_t16$1 || (_t16$1 = _$6`
|
|
7215
7215
|
color: var(--goa-color-text-secondary) !important;
|
|
7216
7216
|
margin-bottom: var(--goa-space-l);
|
|
7217
7217
|
`));
|
|
7218
|
-
const CategoryStatus = styled.td(
|
|
7218
|
+
const CategoryStatus = styled.td(_t17$1 || (_t17$1 = _$6`
|
|
7219
7219
|
width: var(--goa-space-xl);
|
|
7220
7220
|
padding-right: var(--goa-space-xl);
|
|
7221
7221
|
align-content: center;
|
|
7222
7222
|
`));
|
|
7223
|
-
const CompletionStatus = styled.div(
|
|
7223
|
+
const CompletionStatus = styled.div(_t18$1 || (_t18$1 = _$6`
|
|
7224
7224
|
padding: 0;
|
|
7225
7225
|
margin: 0;
|
|
7226
7226
|
margin-bottom: 0 !important;
|
|
7227
7227
|
`));
|
|
7228
|
-
const PageStepperRow = styled.tr(
|
|
7228
|
+
const PageStepperRow = styled.tr(_t19 || (_t19 = _$6`
|
|
7229
7229
|
${0}
|
|
7230
7230
|
`), ({
|
|
7231
7231
|
disabled
|
|
@@ -7244,7 +7244,7 @@ const PageStepperRow = styled.tr(_t21 || (_t21 = _$6`
|
|
|
7244
7244
|
transition: background-color 0.2s ease-in-out;
|
|
7245
7245
|
}
|
|
7246
7246
|
`);
|
|
7247
|
-
const SectionHeaderRowTr = styled.tr(
|
|
7247
|
+
const SectionHeaderRowTr = styled.tr(_t20 || (_t20 = _$6`
|
|
7248
7248
|
& > td {
|
|
7249
7249
|
border: 0 !important;
|
|
7250
7250
|
padding-top: var(--goa-space-l);
|
|
@@ -7256,7 +7256,7 @@ const SectionHeaderRowTr = styled.tr(_t22 || (_t22 = _$6`
|
|
|
7256
7256
|
border-top: none !important;
|
|
7257
7257
|
}
|
|
7258
7258
|
`));
|
|
7259
|
-
const SummaryRowLink = styled.a(
|
|
7259
|
+
const SummaryRowLink = styled.a(_t21 || (_t21 = _$6`
|
|
7260
7260
|
position: relative;
|
|
7261
7261
|
top: var(--goa-space-xs);
|
|
7262
7262
|
`));
|
|
@@ -9361,6 +9361,8 @@ let _$3 = t => t,
|
|
|
9361
9361
|
_t7,
|
|
9362
9362
|
_t8,
|
|
9363
9363
|
_t9,
|
|
9364
|
+
_t0,
|
|
9365
|
+
_t1,
|
|
9364
9366
|
_t10,
|
|
9365
9367
|
_t11,
|
|
9366
9368
|
_t12,
|
|
@@ -9369,9 +9371,7 @@ let _$3 = t => t,
|
|
|
9369
9371
|
_t15,
|
|
9370
9372
|
_t16,
|
|
9371
9373
|
_t17,
|
|
9372
|
-
_t18
|
|
9373
|
-
_t19,
|
|
9374
|
-
_t20;
|
|
9374
|
+
_t18;
|
|
9375
9375
|
const DeleteDialogContent = styled.div(_t$3 || (_t$3 = _$3`
|
|
9376
9376
|
margin-bottom: var(--goa-space-m);
|
|
9377
9377
|
`));
|
|
@@ -9413,55 +9413,55 @@ const RowFlexMenu = styled.div(_t9 || (_t9 = _$3`
|
|
|
9413
9413
|
flex-direction: row;
|
|
9414
9414
|
border-bottom: 1px solid #dcdcdc;
|
|
9415
9415
|
`));
|
|
9416
|
-
const FlexTabs = styled.div(
|
|
9416
|
+
const FlexTabs = styled.div(_t0 || (_t0 = _$3`
|
|
9417
9417
|
flex-direction: column;
|
|
9418
9418
|
flex: 1;
|
|
9419
9419
|
overflow-y: auto !important;
|
|
9420
9420
|
margin-right: 1.5rem;
|
|
9421
9421
|
`));
|
|
9422
|
-
const FlexForm = styled.div(
|
|
9422
|
+
const FlexForm = styled.div(_t1 || (_t1 = _$3`
|
|
9423
9423
|
flex-direction: column;
|
|
9424
9424
|
margin: 1.5rem 0;
|
|
9425
9425
|
flex: 3;
|
|
9426
9426
|
`));
|
|
9427
|
-
const TabName = styled.div(
|
|
9427
|
+
const TabName = styled.div(_t10 || (_t10 = _$3`
|
|
9428
9428
|
margin: 1rem 0 1rem 1rem;
|
|
9429
9429
|
font-weight: 700;
|
|
9430
9430
|
`));
|
|
9431
|
-
const Trash = styled.div(
|
|
9431
|
+
const Trash = styled.div(_t11 || (_t11 = _$3`
|
|
9432
9432
|
margin: 0.75rem 1.25rem 0.75rem 0.75rem;
|
|
9433
9433
|
margin-left: auto;
|
|
9434
9434
|
`));
|
|
9435
|
-
const ListContainer = styled.div(
|
|
9435
|
+
const ListContainer = styled.div(_t12 || (_t12 = _$3`
|
|
9436
9436
|
padding: 0 1.5rem 0 0;
|
|
9437
9437
|
border: 1px solid #dcdcdc;
|
|
9438
9438
|
`));
|
|
9439
|
-
const TableTHHeader = styled.th(
|
|
9439
|
+
const TableTHHeader = styled.th(_t13 || (_t13 = _$3`
|
|
9440
9440
|
background-color: var(--goa-color-greyscale-100) !important;
|
|
9441
9441
|
vertical-align: top;
|
|
9442
9442
|
`));
|
|
9443
|
-
const ObjectArrayWarningIconDiv = styled.div(
|
|
9443
|
+
const ObjectArrayWarningIconDiv = styled.div(_t14 || (_t14 = _$3`
|
|
9444
9444
|
display: inline-flex;
|
|
9445
9445
|
align-items: flex-start;
|
|
9446
9446
|
gap: 0.25rem;
|
|
9447
9447
|
font-size: var(--goa-font-size-2);
|
|
9448
9448
|
color: var(--goa-color-interactive-error);
|
|
9449
9449
|
`));
|
|
9450
|
-
const ListWithDetailWarningIconDiv = styled.div(
|
|
9450
|
+
const ListWithDetailWarningIconDiv = styled.div(_t15 || (_t15 = _$3`
|
|
9451
9451
|
display: inline-flex;
|
|
9452
9452
|
align-items: flex-start;
|
|
9453
9453
|
gap: 0.25rem;
|
|
9454
9454
|
font-size: var(--goa-font-size-3);
|
|
9455
9455
|
color: var(--goa-color-interactive-error);
|
|
9456
9456
|
`));
|
|
9457
|
-
styled.label(
|
|
9457
|
+
styled.label(_t16 || (_t16 = _$3`
|
|
9458
9458
|
color: var(--goa-color-interactive-error);
|
|
9459
9459
|
font-weight: var(--goa-font-weight-regular);
|
|
9460
9460
|
font-size: var(--goa-font-size-3);
|
|
9461
9461
|
line-height: var(--goa-line-height-1);
|
|
9462
9462
|
font-style: normal;
|
|
9463
9463
|
`));
|
|
9464
|
-
styled.div(
|
|
9464
|
+
styled.div(_t17 || (_t17 = _$3`
|
|
9465
9465
|
margin-top: var(--goa-space-m);
|
|
9466
9466
|
color: var(--goa-color-interactive-error);
|
|
9467
9467
|
font-weight: var(--goa-font-weight-regular);
|
|
@@ -9469,7 +9469,7 @@ styled.div(_t19 || (_t19 = _$3`
|
|
|
9469
9469
|
line-height: var(--goa-line-height-1);
|
|
9470
9470
|
font-style: normal;
|
|
9471
9471
|
`));
|
|
9472
|
-
const HilightCellWarning = styled.div(
|
|
9472
|
+
const HilightCellWarning = styled.div(_t18 || (_t18 = _$3`
|
|
9473
9473
|
background-color: var(--goa-color-warning-default);
|
|
9474
9474
|
`));
|
|
9475
9475
|
|
|
@@ -9526,7 +9526,6 @@ const ObjectArrayToolBar = /*#__PURE__*/React.memo(function TableToolbar({
|
|
|
9526
9526
|
addItem,
|
|
9527
9527
|
schema,
|
|
9528
9528
|
enabled,
|
|
9529
|
-
translations,
|
|
9530
9529
|
rootSchema,
|
|
9531
9530
|
uischema
|
|
9532
9531
|
}) {
|
|
@@ -9669,7 +9668,7 @@ const renderCellColumn = ({
|
|
|
9669
9668
|
return null;
|
|
9670
9669
|
};
|
|
9671
9670
|
|
|
9672
|
-
const _excluded$2 = ["label", "path", "schema", "rootSchema", "uischema", "errors", "visible", "enabled", "cells", "
|
|
9671
|
+
const _excluded$2 = ["label", "path", "schema", "rootSchema", "uischema", "errors", "visible", "enabled", "cells", "data", "config", "isStepperReview", "handleChange", "removeItems"];
|
|
9673
9672
|
const GenerateRows$1 = (Cell, schema, rowPath, enabled, openDeleteDialog, handleChange, cells, uischema, isInReview, count, data, errors) => {
|
|
9674
9673
|
if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'object') {
|
|
9675
9674
|
const props = {
|
|
@@ -10007,7 +10006,6 @@ const ObjectArrayControl = props => {
|
|
|
10007
10006
|
visible,
|
|
10008
10007
|
enabled,
|
|
10009
10008
|
cells,
|
|
10010
|
-
translations,
|
|
10011
10009
|
data,
|
|
10012
10010
|
config,
|
|
10013
10011
|
isStepperReview
|
|
@@ -10166,8 +10164,7 @@ const ObjectArrayControl = props => {
|
|
|
10166
10164
|
uischema: controlElement,
|
|
10167
10165
|
schema: schema,
|
|
10168
10166
|
rootSchema: rootSchema,
|
|
10169
|
-
enabled: enabled
|
|
10170
|
-
translations: translations
|
|
10167
|
+
enabled: enabled
|
|
10171
10168
|
})]
|
|
10172
10169
|
}), jsxs("div", {
|
|
10173
10170
|
children: [jsx(ObjectArrayList$1, Object.assign({
|
|
@@ -10176,7 +10173,7 @@ const ObjectArrayControl = props => {
|
|
|
10176
10173
|
uischema: uischema,
|
|
10177
10174
|
enabled: enabled,
|
|
10178
10175
|
openDeleteDialog: openDeleteDialog,
|
|
10179
|
-
translations:
|
|
10176
|
+
translations: {},
|
|
10180
10177
|
count: ((_b = registers.categories[path]) === null || _b === void 0 ? void 0 : _b.count) || Object.keys(data || []).length,
|
|
10181
10178
|
data: data || ((_c = registers.categories[path]) === null || _c === void 0 ? void 0 : _c.data),
|
|
10182
10179
|
cells: cells,
|
|
@@ -10213,9 +10210,10 @@ const ArrayControlBase = props => {
|
|
|
10213
10210
|
} = props;
|
|
10214
10211
|
return jsx(Visible, {
|
|
10215
10212
|
visible: visible,
|
|
10216
|
-
children: jsx(ArrayControl, Object.assign({
|
|
10217
|
-
|
|
10218
|
-
|
|
10213
|
+
children: jsx(ArrayControl, Object.assign({
|
|
10214
|
+
arraySchema: {}
|
|
10215
|
+
}, props, {
|
|
10216
|
+
addItem: () => () => {}
|
|
10219
10217
|
}))
|
|
10220
10218
|
});
|
|
10221
10219
|
};
|
|
@@ -10225,9 +10223,10 @@ const ArrayControlReview = props => {
|
|
|
10225
10223
|
} = props;
|
|
10226
10224
|
return jsx(Visible, {
|
|
10227
10225
|
visible: visible,
|
|
10228
|
-
children: jsx(ObjectArrayControl, Object.assign({
|
|
10226
|
+
children: jsx(ObjectArrayControl, Object.assign({
|
|
10227
|
+
arraySchema: {}
|
|
10228
|
+
}, props, {
|
|
10229
10229
|
addItem: () => () => {},
|
|
10230
|
-
translations: {},
|
|
10231
10230
|
isStepperReview: true,
|
|
10232
10231
|
enabled: true
|
|
10233
10232
|
}))
|
|
@@ -10236,7 +10235,7 @@ const ArrayControlReview = props => {
|
|
|
10236
10235
|
const GoAArrayControlRenderer = withJsonFormsControlProps(ArrayControlBase);
|
|
10237
10236
|
const GoAArrayControlReviewRenderer = withJsonFormsControlProps(ArrayControlReview);
|
|
10238
10237
|
|
|
10239
|
-
const _excluded$1 = ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "
|
|
10238
|
+
const _excluded$1 = ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "data", "config"];
|
|
10240
10239
|
// eslint-disable-next-line
|
|
10241
10240
|
const extractScopesFromUISchema = uischema => {
|
|
10242
10241
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -10637,7 +10636,6 @@ class ListWithDetailControl extends React.Component {
|
|
|
10637
10636
|
visible,
|
|
10638
10637
|
enabled,
|
|
10639
10638
|
cells,
|
|
10640
|
-
translations,
|
|
10641
10639
|
data,
|
|
10642
10640
|
config
|
|
10643
10641
|
} = _this$props,
|
|
@@ -10670,8 +10668,7 @@ class ListWithDetailControl extends React.Component {
|
|
|
10670
10668
|
uischema: controlElement,
|
|
10671
10669
|
schema: schema,
|
|
10672
10670
|
rootSchema: rootSchema,
|
|
10673
|
-
enabled: enabled
|
|
10674
|
-
translations: translations
|
|
10671
|
+
enabled: enabled
|
|
10675
10672
|
})]
|
|
10676
10673
|
}), jsx("div", {
|
|
10677
10674
|
children: jsx(ObjectArrayList, Object.assign({
|
|
@@ -10680,7 +10677,7 @@ class ListWithDetailControl extends React.Component {
|
|
|
10680
10677
|
uischema: uischema,
|
|
10681
10678
|
enabled: enabled,
|
|
10682
10679
|
openDeleteDialog: openDeleteDialog,
|
|
10683
|
-
translations:
|
|
10680
|
+
translations: {},
|
|
10684
10681
|
data: data,
|
|
10685
10682
|
cells: cells,
|
|
10686
10683
|
config: config,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ControlElement, JsonSchema
|
|
2
|
+
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
3
3
|
export interface ObjectArrayToolbarProps {
|
|
4
4
|
numColumns: number;
|
|
5
5
|
errors: string;
|
|
@@ -9,7 +9,6 @@ export interface ObjectArrayToolbarProps {
|
|
|
9
9
|
schema: JsonSchema;
|
|
10
10
|
rootSchema: JsonSchema;
|
|
11
11
|
enabled: boolean;
|
|
12
|
-
translations: ArrayTranslations;
|
|
13
12
|
addItem(path: string, value: any): () => void;
|
|
14
13
|
}
|
|
15
14
|
declare const ObjectArrayToolBar: React.NamedExoticComponent<ObjectArrayToolbarProps>;
|