Skip to content

Commit

Permalink
#2086 - Enhance regulatory body dropdown (#2088)
Browse files Browse the repository at this point in the history
Enhance regulatory body dropdown
  • Loading branch information
dheepak-aot authored Jul 7, 2023
1 parent 56ee1a0 commit 0b2b319
Show file tree
Hide file tree
Showing 4 changed files with 530 additions and 617 deletions.
384 changes: 178 additions & 206 deletions sources/packages/forms/src/form-definitions/educationprogram.json
Original file line number Diff line number Diff line change
Expand Up @@ -2820,219 +2820,191 @@
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"id": "eug8su"
"id": "eug8su",
"isNew": false
},
{
"clearOnHide": false,
"label": "Columns",
"input": false,
"tableView": false,
"key": "panel1Columns",
"columns": [
{
"components": [
{
"label": "Which regulatory body does this program belong to?",
"labelPosition": "top",
"widget": "html5",
"labelWidth": "",
"labelMargin": "",
"placeholder": "",
"description": "",
"tooltip": "",
"customClass": "",
"tabindex": "",
"hidden": false,
"uniqueOptions": false,
"autofocus": false,
"disabled": false,
"tableView": true,
"modalEdit": false,
"multiple": false,
"dataSrc": "values",
"data": {
"values": [
{
"label": "PTIB",
"value": "ptib"
},
{
"label": "DQAB",
"value": "dqab"
},
{
"label": "Private Act of B.C. Legislature",
"value": "privateActLegislature"
},
{
"label": "Skilled Trades BC",
"value": "skilledTradesBC"
},
{
"label": "ICBC",
"value": "icbc"
},
{
"value": "other",
"label": "Other"
}
],
"resource": "",
"json": "",
"url": "",
"custom": ""
},
"dataType": "",
"idPath": "id",
"valueProperty": "",
"limit": 100,
"template": "<span>{{ item.label }}</span>",
"refreshOn": "",
"refreshOnBlur": "",
"clearOnRefresh": false,
"searchEnabled": true,
"selectThreshold": 0.3,
"readOnlyValue": false,
"customOptions": {},
"useExactSearch": false,
"persistent": true,
"protected": false,
"dbIndex": false,
"encrypted": false,
"clearOnHide": true,
"customDefaultValue": "",
"calculateValue": "",
"calculateServer": false,
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
"customPrivate": false,
"json": "",
"strictDateValidation": false,
"multiple": false,
"unique": false
},
"unique": false,
"errorLabel": "",
"errors": "",
"key": "regulatoryBody",
"tags": [],
"properties": {},
"conditional": {
"show": "",
"when": null,
"eq": "",
"json": ""
},
"customConditional": "",
"logic": [],
"attributes": {
"data-cy": "regulatoryBody"
},
"overlay": {
"style": "",
"page": "",
"left": "",
"top": "",
"width": "",
"height": ""
},
"type": "select",
"indexeddb": {
"filter": {}
},
"selectFields": "",
"searchField": "",
"searchDebounce": 0.3,
"minSearch": 0,
"filter": "",
"redrawOn": "",
"input": true,
"searchThreshold": 0.3,
"prefix": "",
"suffix": "",
"dataGridLabel": false,
"showCharCount": false,
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"lazyLoad": true,
"authenticate": false,
"ignoreCache": false,
"fuseOptions": {
"include": "score",
"threshold": 0.3
},
"id": "e7o9328",
"defaultValue": ""
}
],
"width": 6,
"offset": 0,
"push": 0,
"pull": 0
},
{
"components": [
{
"autofocus": false,
"input": true,
"tableView": true,
"inputType": "text",
"inputMask": "",
"label": "Other institution regulatory body",
"key": "otherRegulatoryBody",
"placeholder": "",
"prefix": "",
"suffix": "",
"multiple": false,
"defaultValue": "",
"protected": false,
"unique": false,
"persistent": true,
"hidden": false,
"clearOnHide": true,
"spellcheck": true,
"validate": {
"required": true,
"minLength": 1,
"maxLength": 100,
"pattern": "",
"custom": "",
"customPrivate": false
},
"conditional": {
"show": "true",
"when": "regulatoryBody",
"eq": "other"
},
"type": "textfield",
"labelPosition": "top",
"inputFormat": "plain",
"tags": [],
"properties": {},
"lockKey": true
}
],
"width": 6,
"offset": 0,
"push": 0,
"pull": 0
}
],
"type": "columns",
"hideLabel": true,
"label": "Which regulatory body does this program belong to?",
"labelPosition": "top",
"widget": "html5",
"labelWidth": "",
"labelMargin": "",
"placeholder": "",
"description": "",
"tooltip": "",
"customClass": "",
"tabindex": "",
"hidden": false,
"uniqueOptions": false,
"autofocus": false,
"disabled": false,
"tableView": true,
"modalEdit": false,
"multiple": false,
"dataSrc": "values",
"data": {
"values": [
{
"label": "PTIB",
"value": "ptib"
},
{
"label": "DQAB",
"value": "dqab"
},
{
"label": "Private Act of B.C. Legislature",
"value": "privateActLegislature"
},
{
"label": "Skilled Trades BC",
"value": "skilledTradesBC"
},
{
"label": "ICBC",
"value": "icbc"
},
{
"value": "senateOrEducationCouncil",
"label": "Senate, Academic Council, Education Council, and/or Program Council and Board of Governors"
},
{
"value": "other",
"label": "Other"
}
],
"resource": "",
"json": "",
"url": "",
"custom": ""
},
"dataType": "",
"idPath": "id",
"valueProperty": "",
"limit": 100,
"template": "<span>{{ item.label }}</span>",
"refreshOn": "",
"refreshOnBlur": "",
"clearOnRefresh": false,
"searchEnabled": true,
"selectThreshold": 0.3,
"readOnlyValue": false,
"customOptions": {},
"useExactSearch": false,
"persistent": true,
"protected": false,
"dbIndex": false,
"encrypted": false,
"clearOnHide": true,
"customDefaultValue": "",
"calculateValue": "",
"calculateServer": false,
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
"customPrivate": false,
"json": "",
"strictDateValidation": false,
"multiple": false,
"unique": false
},
"unique": false,
"errorLabel": "",
"errors": "",
"key": "regulatoryBody",
"tags": [],
"properties": {},
"conditional": {
"show": "",
"when": null,
"eq": ""
"eq": "",
"json": ""
},
"customConditional": "",
"logic": [],
"attributes": {
"data-cy": "regulatoryBody"
},
"overlay": {
"style": "",
"page": "",
"left": "",
"top": "",
"width": "",
"height": ""
},
"type": "select",
"indexeddb": {
"filter": {}
},
"selectFields": "",
"searchField": "",
"searchDebounce": 0.3,
"minSearch": 0,
"filter": "",
"redrawOn": "",
"input": true,
"searchThreshold": 0.3,
"prefix": "",
"suffix": "",
"dataGridLabel": false,
"showCharCount": false,
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"lazyLoad": true,
"authenticate": false,
"ignoreCache": false,
"fuseOptions": {
"include": "score",
"threshold": 0.3
},
"properties": {}
"id": "e7o9328",
"defaultValue": ""
},
{
"autofocus": false,
"input": true,
"tableView": true,
"inputType": "text",
"inputMask": "",
"label": "Other institution regulatory body",
"key": "otherRegulatoryBody",
"placeholder": "",
"prefix": "",
"suffix": "",
"multiple": false,
"defaultValue": "",
"protected": false,
"unique": false,
"persistent": true,
"hidden": false,
"clearOnHide": true,
"spellcheck": true,
"validate": {
"required": true,
"minLength": 1,
"maxLength": 100,
"pattern": "",
"custom": "",
"customPrivate": false
},
"conditional": {
"show": "true",
"when": "regulatoryBody",
"eq": "other"
},
"type": "textfield",
"labelPosition": "top",
"inputFormat": "plain",
"tags": [],
"properties": {},
"lockKey": true,
"isNew": false
}
],
"placeholder": "",
Expand Down
Loading

0 comments on commit 0b2b319

Please sign in to comment.