@acorex/connectivity 20.3.0-next.2 → 20.3.0-next.4

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.
@@ -248,7 +248,7 @@ class MockApplicationLoader {
248
248
  const demo_app = {
249
249
  id: '1',
250
250
  name: 'demo',
251
- title: 'DEMO Application',
251
+ title: 'Safetyminder Application',
252
252
  version: '1.0.0',
253
253
  editionName: 'Standard',
254
254
  };
@@ -304,21 +304,10 @@ class MockPermissionLoader {
304
304
  AXMPermissionsKeys$1.Issue.MyReportedIssues.Management,
305
305
  ];
306
306
  this.adminPermissions = [...this.userPermissions, ...['admin', 'demo.admin.settings']];
307
- this.rootPermissions = [
308
- ...this.adminPermissions,
309
- ...[
310
- 'platform',
311
- 'platform.reports',
312
- 'document-management:manage',
313
- 'document-management:document-type:manage',
314
- 'document-management:driver:manage',
315
- ],
316
- AXMPermissionsKeys$1.Issue.ReportedIssues.Management,
317
- ];
318
307
  }
319
308
  getList(context) {
320
309
  if (context.user?.name == 'root') {
321
- return of(this.rootPermissions);
310
+ return of();
322
311
  }
323
312
  else if (context.user?.name == 'admin') {
324
313
  return of(this.adminPermissions);
@@ -339,12 +328,12 @@ class MockTenantLoader {
339
328
  const acorex_tenant = {
340
329
  id: '99',
341
330
  name: 'acorex-tenant',
342
- title: 'ACoreX Platform Tenant',
331
+ title: 'Platform Tenant',
343
332
  };
344
333
  const demo_tenant = {
345
334
  id: '1',
346
335
  name: 'demo-tenant',
347
- title: 'DEMO Tenant',
336
+ title: 'Safetyminder Company',
348
337
  };
349
338
  // return of([demo_tenant]).pipe(delay(500));
350
339
  // return of([acorex_tenant]).pipe(delay(500));
@@ -4508,7 +4497,7 @@ class AXCDataManagementMockModule {
4508
4497
  provideQuerySetups([
4509
4498
  {
4510
4499
  key: 'category-with-items',
4511
- loader: () => import('./acorex-connectivity-mock-category-with-items.query-DXt3OWKg.mjs').then(m => m.AXCQueryCategoryWithItemsQuery),
4500
+ loader: () => import('./acorex-connectivity-mock-category-with-items.query-DEY9R9q2.mjs').then(m => m.AXCQueryCategoryWithItemsQuery),
4512
4501
  }
4513
4502
  ])
4514
4503
  ] }); }
@@ -4533,7 +4522,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
4533
4522
  provideQuerySetups([
4534
4523
  {
4535
4524
  key: 'category-with-items',
4536
- loader: () => import('./acorex-connectivity-mock-category-with-items.query-DXt3OWKg.mjs').then(m => m.AXCQueryCategoryWithItemsQuery),
4525
+ loader: () => import('./acorex-connectivity-mock-category-with-items.query-DEY9R9q2.mjs').then(m => m.AXCQueryCategoryWithItemsQuery),
4537
4526
  }
4538
4527
  ])
4539
4528
  ],
@@ -6007,8 +5996,8 @@ class AXMFormDataSourcesProvider {
6007
5996
  title: 'Yes/No Options',
6008
5997
  columns: [
6009
5998
  {
6010
- name: 'value',
6011
- title: 'Value',
5999
+ name: 'id',
6000
+ title: 'Title',
6012
6001
  type: AXPWidgetsCatalog.text,
6013
6002
  datatype: 'string',
6014
6003
  },
@@ -6056,8 +6045,8 @@ class AXMFormDataSourcesProvider {
6056
6045
  title: 'Yes/No/N/A Options',
6057
6046
  columns: [
6058
6047
  {
6059
- name: 'value',
6060
- title: 'Value',
6048
+ name: 'id',
6049
+ title: 'Title',
6061
6050
  type: AXPWidgetsCatalog.text,
6062
6051
  datatype: 'string',
6063
6052
  },
@@ -6108,8 +6097,8 @@ class AXMFormDataSourcesProvider {
6108
6097
  title: 'Boolean Options',
6109
6098
  columns: [
6110
6099
  {
6111
- name: 'value',
6112
- title: 'Value',
6100
+ name: 'id',
6101
+ title: 'Title',
6113
6102
  type: AXPWidgetsCatalog.text,
6114
6103
  datatype: 'boolean',
6115
6104
  },
@@ -6157,8 +6146,8 @@ class AXMFormDataSourcesProvider {
6157
6146
  title: 'Weather Conditions',
6158
6147
  columns: [
6159
6148
  {
6160
- name: 'value',
6161
- title: 'Value',
6149
+ name: 'id',
6150
+ title: 'Title',
6162
6151
  type: AXPWidgetsCatalog.text,
6163
6152
  datatype: 'string',
6164
6153
  },
@@ -6215,8 +6204,8 @@ class AXMFormDataSourcesProvider {
6215
6204
  title: 'Visibility Levels',
6216
6205
  columns: [
6217
6206
  {
6218
- name: 'value',
6219
- title: 'Value',
6207
+ name: 'id',
6208
+ title: 'Title',
6220
6209
  type: AXPWidgetsCatalog.text,
6221
6210
  datatype: 'string',
6222
6211
  },
@@ -6270,8 +6259,8 @@ class AXMFormDataSourcesProvider {
6270
6259
  title: 'Work Areas',
6271
6260
  columns: [
6272
6261
  {
6273
- name: 'value',
6274
- title: 'Value',
6262
+ name: 'id',
6263
+ title: 'Title',
6275
6264
  type: AXPWidgetsCatalog.text,
6276
6265
  datatype: 'string',
6277
6266
  },
@@ -6331,8 +6320,8 @@ class AXMFormDataSourcesProvider {
6331
6320
  title: 'Departments',
6332
6321
  columns: [
6333
6322
  {
6334
- name: 'value',
6335
- title: 'Value',
6323
+ name: 'id',
6324
+ title: 'Title',
6336
6325
  type: AXPWidgetsCatalog.text,
6337
6326
  datatype: 'string',
6338
6327
  },
@@ -6395,8 +6384,8 @@ class AXMFormDataSourcesProvider {
6395
6384
  title: 'Permit Types',
6396
6385
  columns: [
6397
6386
  {
6398
- name: 'value',
6399
- title: 'Value',
6387
+ name: 'id',
6388
+ title: 'Title',
6400
6389
  type: AXPWidgetsCatalog.text,
6401
6390
  datatype: 'string',
6402
6391
  },
@@ -6461,8 +6450,8 @@ class AXMFormDataSourcesProvider {
6461
6450
  title: 'Approval Status',
6462
6451
  columns: [
6463
6452
  {
6464
- name: 'value',
6465
- title: 'Value',
6453
+ name: 'id',
6454
+ title: 'Title',
6466
6455
  type: AXPWidgetsCatalog.text,
6467
6456
  datatype: 'string',
6468
6457
  },
@@ -6513,8 +6502,8 @@ class AXMFormDataSourcesProvider {
6513
6502
  title: 'Work Completion Status',
6514
6503
  columns: [
6515
6504
  {
6516
- name: 'value',
6517
- title: 'Value',
6505
+ name: 'id',
6506
+ title: 'Title',
6518
6507
  type: AXPWidgetsCatalog.text,
6519
6508
  datatype: 'string',
6520
6509
  },
@@ -6565,8 +6554,8 @@ class AXMFormDataSourcesProvider {
6565
6554
  title: 'Training Status',
6566
6555
  columns: [
6567
6556
  {
6568
- name: 'value',
6569
- title: 'Value',
6557
+ name: 'id',
6558
+ title: 'Title',
6570
6559
  type: AXPWidgetsCatalog.text,
6571
6560
  datatype: 'string',
6572
6561
  },
@@ -6617,8 +6606,8 @@ class AXMFormDataSourcesProvider {
6617
6606
  title: 'Certification Status',
6618
6607
  columns: [
6619
6608
  {
6620
- name: 'value',
6621
- title: 'Value',
6609
+ name: 'id',
6610
+ title: 'Title',
6622
6611
  type: AXPWidgetsCatalog.text,
6623
6612
  datatype: 'string',
6624
6613
  },
@@ -6672,8 +6661,8 @@ class AXMFormDataSourcesProvider {
6672
6661
  title: 'Priority Levels',
6673
6662
  columns: [
6674
6663
  {
6675
- name: 'value',
6676
- title: 'Value',
6664
+ name: 'id',
6665
+ title: 'Title',
6677
6666
  type: AXPWidgetsCatalog.text,
6678
6667
  datatype: 'string',
6679
6668
  },
@@ -6727,8 +6716,8 @@ class AXMFormDataSourcesProvider {
6727
6716
  title: 'Incident Types',
6728
6717
  columns: [
6729
6718
  {
6730
- name: 'value',
6731
- title: 'Value',
6719
+ name: 'id',
6720
+ title: 'Title',
6732
6721
  type: AXPWidgetsCatalog.text,
6733
6722
  datatype: 'string',
6734
6723
  },
@@ -6788,8 +6777,8 @@ class AXMFormDataSourcesProvider {
6788
6777
  title: 'Severity Levels',
6789
6778
  columns: [
6790
6779
  {
6791
- name: 'value',
6792
- title: 'Value',
6780
+ name: 'id',
6781
+ title: 'Title',
6793
6782
  type: AXPWidgetsCatalog.text,
6794
6783
  datatype: 'string',
6795
6784
  },
@@ -7623,7 +7612,7 @@ var children$4 = [
7623
7612
  readonly: false,
7624
7613
  dataSource: "incident-types",
7625
7614
  textField: "title",
7626
- valueField: "value"
7615
+ valueField: "id"
7627
7616
  }
7628
7617
  }
7629
7618
  ],
@@ -7726,7 +7715,7 @@ var children$4 = [
7726
7715
  readonly: false,
7727
7716
  dataSource: "severity-levels",
7728
7717
  textField: "title",
7729
- valueField: "value"
7718
+ valueField: "id"
7730
7719
  }
7731
7720
  }
7732
7721
  ],
@@ -12005,6 +11994,235 @@ var children$3 = [
12005
11994
  }
12006
11995
  }
12007
11996
  },
11997
+ children: [
11998
+ {
11999
+ type: "flex-layout",
12000
+ name: "flex-layout5",
12001
+ children: [
12002
+ {
12003
+ type: "flex-layout",
12004
+ name: "flex-layout5",
12005
+ children: [
12006
+ {
12007
+ type: "flex-item-layout",
12008
+ name: "flex-item-layout7",
12009
+ options: {
12010
+ multiple: false,
12011
+ direction: "ltr",
12012
+ disabled: false,
12013
+ readonly: false,
12014
+ dataSource: "booleans",
12015
+ textField: "title",
12016
+ valueField: "value",
12017
+ spacing: {
12018
+ margin: "0px 0px 0px 0px",
12019
+ padding: "0px 0px 0px 0px"
12020
+ },
12021
+ border: {
12022
+ width: "1px",
12023
+ radius: "0px",
12024
+ color: "#000000",
12025
+ style: "none"
12026
+ }
12027
+ },
12028
+ children: [
12029
+ {
12030
+ type: "selection-list-editor",
12031
+ name: "selection-list-editor21",
12032
+ path: "select-option-row-21",
12033
+ options: {
12034
+ multiple: false,
12035
+ direction: {
12036
+ id: "horizontal"
12037
+ },
12038
+ disabled: false,
12039
+ readonly: false,
12040
+ dataSource: "yes-no-options",
12041
+ textField: "title",
12042
+ valueField: "value"
12043
+ }
12044
+ }
12045
+ ]
12046
+ }
12047
+ ],
12048
+ options: {
12049
+ spacing: {
12050
+ margin: "0px",
12051
+ padding: "0px"
12052
+ },
12053
+ border: {
12054
+ width: "1px",
12055
+ radius: "0px",
12056
+ color: "#000000",
12057
+ style: "none"
12058
+ },
12059
+ direction: "ltr",
12060
+ flexWrap: "nowrap",
12061
+ justifyContent: "center",
12062
+ alignItems: "center",
12063
+ gap: "20px"
12064
+ }
12065
+ }
12066
+ ],
12067
+ options: {
12068
+ spacing: {
12069
+ margin: "0px",
12070
+ padding: "0px"
12071
+ },
12072
+ border: {
12073
+ width: "1px",
12074
+ radius: "0px",
12075
+ color: "#000000",
12076
+ style: "none"
12077
+ },
12078
+ flexWrap: "nowrap",
12079
+ justifyContent: "center",
12080
+ alignItems: "center",
12081
+ gap: "20px"
12082
+ }
12083
+ }
12084
+ ]
12085
+ },
12086
+ {
12087
+ type: "grid-item-layout",
12088
+ name: "grid-item-layout50",
12089
+ options: {
12090
+ spacing: {
12091
+ margin: "0px",
12092
+ padding: "10px"
12093
+ },
12094
+ border: {
12095
+ width: "1px",
12096
+ radius: "0px",
12097
+ color: "#000000",
12098
+ style: "solid"
12099
+ },
12100
+ direction: "ltr",
12101
+ colSpan: 12,
12102
+ grid: {
12103
+ "default": {
12104
+ rows: 1,
12105
+ columns: 1,
12106
+ justifyItems: "stretch",
12107
+ alignItems: "stretch",
12108
+ gap: "0px 0px"
12109
+ }
12110
+ },
12111
+ backgroundColor: "rgb(0,166,244)"
12112
+ },
12113
+ children: [
12114
+ {
12115
+ type: "text-block-layout",
12116
+ name: "text-block-layout7",
12117
+ options: {
12118
+ content: "<p>4. Control the Hazard(s) If you tick <span style=\"color:#ff0000\">NO</span>, complete a SWMS. </p>"
12119
+ }
12120
+ }
12121
+ ]
12122
+ },
12123
+ {
12124
+ type: "grid-item-layout",
12125
+ name: "grid-item-layout51",
12126
+ options: {
12127
+ spacing: {
12128
+ margin: "0px 0px 0px 0px",
12129
+ padding: "0px 0px 0px 0px"
12130
+ },
12131
+ border: {
12132
+ width: "1px",
12133
+ radius: "0px",
12134
+ color: "#000000",
12135
+ style: "none"
12136
+ },
12137
+ direction: "ltr",
12138
+ colSpan: 10,
12139
+ grid: {
12140
+ "default": {
12141
+ rows: 1,
12142
+ columns: 1,
12143
+ justifyItems: "stretch",
12144
+ alignItems: "stretch",
12145
+ gap: "0px 0px"
12146
+ }
12147
+ }
12148
+ },
12149
+ children: [
12150
+ {
12151
+ type: "flex-layout",
12152
+ name: "flex-layout44",
12153
+ children: [
12154
+ {
12155
+ type: "flex-item-layout",
12156
+ name: "flex-item-layout46",
12157
+ children: [
12158
+ {
12159
+ type: "text-block-layout",
12160
+ name: "text-block-layout28",
12161
+ options: {
12162
+ content: "<p>SWMS Completed? </p>"
12163
+ }
12164
+ }
12165
+ ],
12166
+ options: {
12167
+ spacing: {
12168
+ margin: "0px 0px 0px 0px",
12169
+ padding: "0px 0px 0px 0px"
12170
+ },
12171
+ border: {
12172
+ width: "1px",
12173
+ radius: "0px",
12174
+ color: "#000000",
12175
+ style: "none"
12176
+ },
12177
+ direction: "ltr"
12178
+ }
12179
+ }
12180
+ ],
12181
+ options: {
12182
+ spacing: {
12183
+ margin: "0px",
12184
+ padding: "10px"
12185
+ },
12186
+ border: {
12187
+ width: "1px",
12188
+ radius: "0px",
12189
+ color: "#000000",
12190
+ style: "none"
12191
+ },
12192
+ flexWrap: "nowrap",
12193
+ justifyContent: "center",
12194
+ alignItems: "center",
12195
+ gap: "20px"
12196
+ }
12197
+ }
12198
+ ]
12199
+ },
12200
+ {
12201
+ type: "grid-item-layout",
12202
+ name: "grid-item-layout52",
12203
+ options: {
12204
+ spacing: {
12205
+ margin: "0px 0px 0px 0px",
12206
+ padding: "0px 0px 0px 0px"
12207
+ },
12208
+ border: {
12209
+ width: "1px",
12210
+ radius: "0px",
12211
+ color: "#000000",
12212
+ style: "none"
12213
+ },
12214
+ direction: "ltr",
12215
+ colSpan: 2,
12216
+ grid: {
12217
+ "default": {
12218
+ rows: 1,
12219
+ columns: 1,
12220
+ justifyItems: "stretch",
12221
+ alignItems: "stretch",
12222
+ gap: "0px 0px"
12223
+ }
12224
+ }
12225
+ },
12008
12226
  children: [
12009
12227
  {
12010
12228
  type: "flex-layout",
@@ -12041,463 +12259,234 @@ var children$3 = [
12041
12259
  type: "selection-list-editor",
12042
12260
  name: "selection-list-editor19",
12043
12261
  path: "select-option-row-19",
12044
- options: {
12045
- multiple: false,
12046
- direction: {
12047
- id: "horizontal"
12048
- },
12049
- disabled: false,
12050
- readonly: false,
12051
- dataSource: "yes-no-options",
12052
- textField: "title",
12053
- valueField: "value"
12054
- }
12055
- }
12056
- ]
12057
- }
12058
- ],
12059
- options: {
12060
- spacing: {
12061
- margin: "0px",
12062
- padding: "0px"
12063
- },
12064
- border: {
12065
- width: "1px",
12066
- radius: "0px",
12067
- color: "#000000",
12068
- style: "none"
12069
- },
12070
- direction: "ltr",
12071
- flexWrap: "nowrap",
12072
- justifyContent: "center",
12073
- alignItems: "center",
12074
- gap: "20px"
12075
- }
12076
- }
12077
- ],
12078
- options: {
12079
- spacing: {
12080
- margin: "0px",
12081
- padding: "0px"
12082
- },
12083
- border: {
12084
- width: "1px",
12085
- radius: "0px",
12086
- color: "#000000",
12087
- style: "none"
12088
- },
12089
- flexWrap: "nowrap",
12090
- justifyContent: "center",
12091
- alignItems: "center",
12092
- gap: "20px"
12093
- }
12094
- }
12095
- ]
12096
- },
12097
- {
12098
- type: "grid-item-layout",
12099
- name: "grid-item-layout50",
12100
- options: {
12101
- spacing: {
12102
- margin: "0px",
12103
- padding: "10px"
12104
- },
12105
- border: {
12106
- width: "1px",
12107
- radius: "0px",
12108
- color: "#000000",
12109
- style: "solid"
12110
- },
12111
- direction: "ltr",
12112
- colSpan: 12,
12113
- grid: {
12114
- "default": {
12115
- rows: 1,
12116
- columns: 1,
12117
- justifyItems: "stretch",
12118
- alignItems: "stretch",
12119
- gap: "0px 0px"
12120
- }
12121
- },
12122
- backgroundColor: "rgb(0,166,244)"
12123
- },
12124
- children: [
12125
- {
12126
- type: "text-block-layout",
12127
- name: "text-block-layout7",
12128
- options: {
12129
- content: "<p>4. Control the Hazard(s) If you tick <span style=\"color:#ff0000\">NO</span>, complete a SWMS. </p>"
12130
- }
12131
- }
12132
- ]
12133
- },
12134
- {
12135
- type: "grid-item-layout",
12136
- name: "grid-item-layout51",
12137
- options: {
12138
- spacing: {
12139
- margin: "0px 0px 0px 0px",
12140
- padding: "0px 0px 0px 0px"
12141
- },
12142
- border: {
12143
- width: "1px",
12144
- radius: "0px",
12145
- color: "#000000",
12146
- style: "none"
12147
- },
12148
- direction: "ltr",
12149
- colSpan: 10,
12150
- grid: {
12151
- "default": {
12152
- rows: 1,
12153
- columns: 1,
12154
- justifyItems: "stretch",
12155
- alignItems: "stretch",
12156
- gap: "0px 0px"
12157
- }
12158
- }
12159
- },
12160
- children: [
12161
- {
12162
- type: "flex-layout",
12163
- name: "flex-layout44",
12164
- children: [
12165
- {
12166
- type: "flex-item-layout",
12167
- name: "flex-item-layout46",
12168
- children: [
12169
- {
12170
- type: "text-block-layout",
12171
- name: "text-block-layout28",
12172
- options: {
12173
- content: "<p>SWMS Completed? </p>"
12174
- }
12175
- }
12176
- ],
12177
- options: {
12178
- spacing: {
12179
- margin: "0px 0px 0px 0px",
12180
- padding: "0px 0px 0px 0px"
12181
- },
12182
- border: {
12183
- width: "1px",
12184
- radius: "0px",
12185
- color: "#000000",
12186
- style: "none"
12187
- },
12188
- direction: "ltr"
12189
- }
12190
- }
12191
- ],
12192
- options: {
12193
- spacing: {
12194
- margin: "0px",
12195
- padding: "10px"
12196
- },
12197
- border: {
12198
- width: "1px",
12199
- radius: "0px",
12200
- color: "#000000",
12201
- style: "none"
12202
- },
12203
- flexWrap: "nowrap",
12204
- justifyContent: "center",
12205
- alignItems: "center",
12206
- gap: "20px"
12207
- }
12208
- }
12209
- ]
12210
- },
12211
- {
12212
- type: "grid-item-layout",
12213
- name: "grid-item-layout52",
12214
- options: {
12215
- spacing: {
12216
- margin: "0px 0px 0px 0px",
12217
- padding: "0px 0px 0px 0px"
12218
- },
12219
- border: {
12220
- width: "1px",
12221
- radius: "0px",
12222
- color: "#000000",
12223
- style: "none"
12224
- },
12225
- direction: "ltr",
12226
- colSpan: 2,
12227
- grid: {
12228
- "default": {
12229
- rows: 1,
12230
- columns: 1,
12231
- justifyItems: "stretch",
12232
- alignItems: "stretch",
12233
- gap: "0px 0px"
12234
- }
12235
- }
12236
- },
12237
- children: [
12238
- {
12239
- type: "flex-layout",
12240
- name: "flex-layout5",
12241
- children: [
12242
- {
12243
- type: "flex-layout",
12244
- name: "flex-layout5",
12245
- children: [
12246
- {
12247
- type: "flex-item-layout",
12248
- name: "flex-item-layout7",
12249
- options: {
12250
- multiple: false,
12251
- direction: "ltr",
12252
- disabled: false,
12253
- readonly: false,
12254
- dataSource: "booleans",
12255
- textField: "title",
12256
- valueField: "value",
12257
- spacing: {
12258
- margin: "0px 0px 0px 0px",
12259
- padding: "0px 0px 0px 0px"
12260
- },
12261
- border: {
12262
- width: "1px",
12263
- radius: "0px",
12264
- color: "#000000",
12265
- style: "none"
12266
- }
12267
- },
12268
- children: [
12269
- {
12270
- type: "selection-list-editor",
12271
- name: "selection-list-editor19",
12272
- path: "select-option-row-19",
12273
- options: {
12274
- multiple: false,
12275
- direction: {
12276
- id: "horizontal"
12277
- },
12278
- disabled: false,
12279
- readonly: false,
12280
- dataSource: "yes-no-options",
12281
- textField: "title",
12282
- valueField: "value"
12283
- }
12284
- }
12285
- ]
12286
- }
12287
- ],
12288
- options: {
12289
- spacing: {
12290
- margin: "0px",
12291
- padding: "0px"
12292
- },
12293
- border: {
12294
- width: "1px",
12295
- radius: "0px",
12296
- color: "#000000",
12297
- style: "none"
12298
- },
12299
- flexWrap: "nowrap",
12300
- justifyContent: "center",
12301
- alignItems: "center",
12302
- gap: "20px"
12303
- }
12304
- }
12305
- ],
12306
- options: {
12307
- spacing: {
12308
- margin: "0px",
12309
- padding: "0px"
12310
- },
12311
- border: {
12312
- width: "1px",
12313
- radius: "0px",
12314
- color: "#000000",
12315
- style: "none"
12316
- },
12317
- flexWrap: "nowrap",
12318
- justifyContent: "center",
12319
- alignItems: "center",
12320
- gap: "20px"
12321
- }
12322
- }
12323
- ]
12324
- },
12325
- {
12326
- type: "grid-item-layout",
12327
- name: "grid-item-layout53",
12328
- options: {
12329
- spacing: {
12330
- margin: "0px",
12331
- padding: "10px"
12332
- },
12333
- border: {
12334
- width: "1px",
12335
- radius: "0px",
12336
- color: "#000000",
12337
- style: "solid"
12338
- },
12339
- direction: "ltr",
12340
- colSpan: 12,
12341
- grid: {
12342
- "default": {
12343
- rows: 1,
12344
- columns: 1,
12345
- justifyItems: "stretch",
12346
- alignItems: "stretch",
12347
- gap: "0px 0px"
12348
- }
12349
- },
12350
- backgroundColor: "rgb(0,166,244)"
12351
- },
12352
- children: [
12353
- {
12354
- type: "text-block-layout",
12355
- name: "text-block-layout7",
12356
- options: {
12357
- content: "<p>5. Proceed Safely If you tick <span style=\"color:#ff0000\">NO</span>, complete a SWMS.</p>"
12358
- }
12359
- }
12360
- ]
12361
- },
12362
- {
12363
- type: "grid-item-layout",
12364
- name: "grid-item-layout54",
12365
- options: {
12366
- spacing: {
12367
- margin: "0px 0px 0px 0px",
12368
- padding: "0px 0px 0px 0px"
12369
- },
12370
- border: {
12371
- width: "1px",
12372
- radius: "0px",
12373
- color: "#000000",
12374
- style: "none"
12375
- },
12376
- direction: "ltr",
12377
- colSpan: 10,
12378
- grid: {
12379
- "default": {
12380
- rows: 1,
12381
- columns: 1,
12382
- justifyItems: "stretch",
12383
- alignItems: "stretch",
12384
- gap: "0px 0px"
12385
- }
12386
- }
12387
- },
12388
- children: [
12389
- {
12390
- type: "flex-layout",
12391
- name: "flex-layout44",
12392
- children: [
12393
- {
12394
- type: "flex-item-layout",
12395
- name: "flex-item-layout46",
12396
- children: [
12397
- {
12398
- type: "text-block-layout",
12399
- name: "text-block-layout28",
12400
- options: {
12401
- content: "<p>Safe to Proceed? </p>"
12402
- }
12403
- }
12404
- ],
12405
- options: {
12406
- spacing: {
12407
- margin: "0px 0px 0px 0px",
12408
- padding: "0px 0px 0px 0px"
12409
- },
12410
- border: {
12411
- width: "1px",
12412
- radius: "0px",
12413
- color: "#000000",
12414
- style: "none"
12415
- },
12416
- direction: "ltr"
12417
- }
12418
- }
12419
- ],
12420
- options: {
12421
- spacing: {
12422
- margin: "0px",
12423
- padding: "10px"
12424
- },
12425
- border: {
12426
- width: "1px",
12427
- radius: "0px",
12428
- color: "#000000",
12429
- style: "none"
12430
- },
12431
- flexWrap: "nowrap",
12432
- justifyContent: "center",
12433
- alignItems: "center",
12434
- gap: "20px"
12435
- }
12436
- }
12437
- ]
12438
- },
12439
- {
12440
- type: "grid-item-layout",
12441
- name: "grid-item-layout55",
12442
- options: {
12443
- spacing: {
12444
- margin: "0px 0px 0px 0px",
12445
- padding: "0px 0px 0px 0px"
12446
- },
12447
- border: {
12448
- width: "1px",
12449
- radius: "0px",
12450
- color: "#000000",
12451
- style: "none"
12452
- },
12453
- direction: "ltr",
12454
- colSpan: 2,
12455
- grid: {
12456
- "default": {
12457
- rows: 1,
12458
- columns: 1,
12459
- justifyItems: "stretch",
12460
- alignItems: "stretch",
12461
- gap: "0px 0px"
12462
- }
12463
- }
12464
- },
12465
- children: [
12466
- {
12467
- type: "flex-layout",
12468
- name: "flex-layout5",
12469
- children: [
12470
- {
12471
- type: "flex-layout",
12472
- name: "flex-layout5",
12473
- children: [
12474
- {
12475
- type: "flex-item-layout",
12476
- name: "flex-item-layout7",
12477
- options: {
12478
- multiple: false,
12479
- direction: "ltr",
12480
- disabled: false,
12481
- readonly: false,
12482
- dataSource: "booleans",
12483
- textField: "title",
12484
- valueField: "value",
12485
- spacing: {
12486
- margin: "0px 0px 0px 0px",
12487
- padding: "0px 0px 0px 0px"
12488
- },
12489
- border: {
12490
- width: "1px",
12491
- radius: "0px",
12492
- color: "#000000",
12493
- style: "none"
12494
- }
12495
- },
12496
- children: [
12497
- {
12498
- type: "selection-list-editor",
12499
- name: "selection-list-editor19",
12500
- path: "select-option-row-19",
12262
+ options: {
12263
+ multiple: false,
12264
+ direction: {
12265
+ id: "horizontal"
12266
+ },
12267
+ disabled: false,
12268
+ readonly: false,
12269
+ dataSource: "yes-no-options",
12270
+ textField: "title",
12271
+ valueField: "value"
12272
+ }
12273
+ }
12274
+ ]
12275
+ }
12276
+ ],
12277
+ options: {
12278
+ spacing: {
12279
+ margin: "0px",
12280
+ padding: "0px"
12281
+ },
12282
+ border: {
12283
+ width: "1px",
12284
+ radius: "0px",
12285
+ color: "#000000",
12286
+ style: "none"
12287
+ },
12288
+ flexWrap: "nowrap",
12289
+ justifyContent: "center",
12290
+ alignItems: "center",
12291
+ gap: "20px"
12292
+ }
12293
+ }
12294
+ ],
12295
+ options: {
12296
+ spacing: {
12297
+ margin: "0px",
12298
+ padding: "0px"
12299
+ },
12300
+ border: {
12301
+ width: "1px",
12302
+ radius: "0px",
12303
+ color: "#000000",
12304
+ style: "none"
12305
+ },
12306
+ flexWrap: "nowrap",
12307
+ justifyContent: "center",
12308
+ alignItems: "center",
12309
+ gap: "20px"
12310
+ }
12311
+ }
12312
+ ]
12313
+ },
12314
+ {
12315
+ type: "grid-item-layout",
12316
+ name: "grid-item-layout53",
12317
+ options: {
12318
+ spacing: {
12319
+ margin: "0px",
12320
+ padding: "10px"
12321
+ },
12322
+ border: {
12323
+ width: "1px",
12324
+ radius: "0px",
12325
+ color: "#000000",
12326
+ style: "solid"
12327
+ },
12328
+ direction: "ltr",
12329
+ colSpan: 12,
12330
+ grid: {
12331
+ "default": {
12332
+ rows: 1,
12333
+ columns: 1,
12334
+ justifyItems: "stretch",
12335
+ alignItems: "stretch",
12336
+ gap: "0px 0px"
12337
+ }
12338
+ },
12339
+ backgroundColor: "rgb(0,166,244)"
12340
+ },
12341
+ children: [
12342
+ {
12343
+ type: "text-block-layout",
12344
+ name: "text-block-layout7",
12345
+ options: {
12346
+ content: "<p>5. Proceed Safely If you tick <span style=\"color:#ff0000\">NO</span>, complete a SWMS.</p>"
12347
+ }
12348
+ }
12349
+ ]
12350
+ },
12351
+ {
12352
+ type: "grid-item-layout",
12353
+ name: "grid-item-layout54",
12354
+ options: {
12355
+ spacing: {
12356
+ margin: "0px 0px 0px 0px",
12357
+ padding: "0px 0px 0px 0px"
12358
+ },
12359
+ border: {
12360
+ width: "1px",
12361
+ radius: "0px",
12362
+ color: "#000000",
12363
+ style: "none"
12364
+ },
12365
+ direction: "ltr",
12366
+ colSpan: 10,
12367
+ grid: {
12368
+ "default": {
12369
+ rows: 1,
12370
+ columns: 1,
12371
+ justifyItems: "stretch",
12372
+ alignItems: "stretch",
12373
+ gap: "0px 0px"
12374
+ }
12375
+ }
12376
+ },
12377
+ children: [
12378
+ {
12379
+ type: "flex-layout",
12380
+ name: "flex-layout44",
12381
+ children: [
12382
+ {
12383
+ type: "flex-item-layout",
12384
+ name: "flex-item-layout46",
12385
+ children: [
12386
+ {
12387
+ type: "text-block-layout",
12388
+ name: "text-block-layout28",
12389
+ options: {
12390
+ content: "<p>Safe to Proceed? </p>"
12391
+ }
12392
+ }
12393
+ ],
12394
+ options: {
12395
+ spacing: {
12396
+ margin: "0px 0px 0px 0px",
12397
+ padding: "0px 0px 0px 0px"
12398
+ },
12399
+ border: {
12400
+ width: "1px",
12401
+ radius: "0px",
12402
+ color: "#000000",
12403
+ style: "none"
12404
+ },
12405
+ direction: "ltr"
12406
+ }
12407
+ }
12408
+ ],
12409
+ options: {
12410
+ spacing: {
12411
+ margin: "0px",
12412
+ padding: "10px"
12413
+ },
12414
+ border: {
12415
+ width: "1px",
12416
+ radius: "0px",
12417
+ color: "#000000",
12418
+ style: "none"
12419
+ },
12420
+ flexWrap: "nowrap",
12421
+ justifyContent: "center",
12422
+ alignItems: "center",
12423
+ gap: "20px"
12424
+ }
12425
+ }
12426
+ ]
12427
+ },
12428
+ {
12429
+ type: "grid-item-layout",
12430
+ name: "grid-item-layout55",
12431
+ options: {
12432
+ spacing: {
12433
+ margin: "0px 0px 0px 0px",
12434
+ padding: "0px 0px 0px 0px"
12435
+ },
12436
+ border: {
12437
+ width: "1px",
12438
+ radius: "0px",
12439
+ color: "#000000",
12440
+ style: "none"
12441
+ },
12442
+ direction: "ltr",
12443
+ colSpan: 2,
12444
+ grid: {
12445
+ "default": {
12446
+ rows: 1,
12447
+ columns: 1,
12448
+ justifyItems: "stretch",
12449
+ alignItems: "stretch",
12450
+ gap: "0px 0px"
12451
+ }
12452
+ }
12453
+ },
12454
+ children: [
12455
+ {
12456
+ type: "flex-layout",
12457
+ name: "flex-layout5",
12458
+ children: [
12459
+ {
12460
+ type: "flex-layout",
12461
+ name: "flex-layout5",
12462
+ children: [
12463
+ {
12464
+ type: "flex-item-layout",
12465
+ name: "flex-item-layout7",
12466
+ options: {
12467
+ multiple: false,
12468
+ direction: "ltr",
12469
+ disabled: false,
12470
+ readonly: false,
12471
+ dataSource: "booleans",
12472
+ textField: "title",
12473
+ valueField: "value",
12474
+ spacing: {
12475
+ margin: "0px 0px 0px 0px",
12476
+ padding: "0px 0px 0px 0px"
12477
+ },
12478
+ border: {
12479
+ width: "1px",
12480
+ radius: "0px",
12481
+ color: "#000000",
12482
+ style: "none"
12483
+ }
12484
+ },
12485
+ children: [
12486
+ {
12487
+ type: "selection-list-editor",
12488
+ name: "selection-list-editor20",
12489
+ path: "select-option-row-20",
12501
12490
  options: {
12502
12491
  multiple: false,
12503
12492
  direction: {
@@ -14153,69 +14142,69 @@ var children = [
14153
14142
  children: [
14154
14143
  {
14155
14144
  type: "grid-layout",
14156
- name: "header-grid",
14145
+ name: "grid-layout1",
14157
14146
  options: {
14158
14147
  spacing: {
14159
14148
  margin: "0px 0px 20px",
14160
14149
  padding: "0px"
14161
14150
  },
14162
14151
  border: {
14163
- width: "2px",
14164
- radius: "8px",
14165
- color: "#dc2626",
14152
+ width: "1px",
14153
+ radius: "0px",
14154
+ color: "#000000",
14166
14155
  style: "solid"
14167
14156
  },
14168
14157
  grid: {
14169
14158
  "default": {
14170
14159
  rows: 1,
14171
- columns: 2,
14160
+ columns: 3,
14172
14161
  justifyItems: "stretch",
14173
- alignItems: "center",
14174
- gap: "20px"
14162
+ alignItems: "stretch",
14163
+ gap: "0px 0px"
14175
14164
  }
14176
14165
  }
14177
14166
  },
14178
14167
  children: [
14179
14168
  {
14180
14169
  type: "grid-item-layout",
14181
- name: "logo-section",
14170
+ name: "grid-item-layout1",
14182
14171
  children: [
14183
14172
  {
14184
14173
  type: "image",
14185
- name: "company-logo",
14174
+ name: "image1",
14186
14175
  options: {
14187
14176
  lazy: false,
14188
14177
  readonly: true,
14189
14178
  src: "https://sm-demo.acorexui.com/assets/images/logos/icon-light.svg",
14190
- height: "80px",
14191
- width: "80px"
14179
+ height: "100px",
14180
+ width: "100px"
14192
14181
  }
14193
14182
  }
14194
14183
  ],
14195
14184
  options: {
14196
14185
  spacing: {
14197
14186
  margin: "0px",
14198
- padding: "0px"
14187
+ padding: "10px"
14199
14188
  },
14200
14189
  border: {
14201
- width: "0px",
14190
+ width: "1px",
14202
14191
  radius: "0px",
14203
14192
  color: "#000000",
14204
- style: "none"
14193
+ style: "solid"
14205
14194
  },
14206
14195
  direction: "ltr"
14207
14196
  }
14208
14197
  },
14209
14198
  {
14210
14199
  type: "grid-item-layout",
14211
- name: "title-section",
14200
+ name: "grid-item-layout2",
14212
14201
  options: {
14213
14202
  spacing: {
14214
- margin: "0px",
14215
- padding: "20px"
14203
+ margin: "0px 0px 0px 0px",
14204
+ padding: "0px 0px 0px 0px"
14216
14205
  },
14217
14206
  border: {
14218
- width: "0px",
14207
+ width: "1px",
14219
14208
  radius: "0px",
14220
14209
  color: "#000000",
14221
14210
  style: "none"
@@ -14224,138 +14213,259 @@ var children = [
14224
14213
  },
14225
14214
  children: [
14226
14215
  {
14227
- type: "text-block-layout",
14228
- name: "form-title",
14216
+ type: "flex-layout",
14217
+ name: "flex-layout1",
14229
14218
  options: {
14230
- content: "<h2><strong style='color: #dc2626;'>PERMIT TO WORK</strong></h2>"
14231
- }
14232
- },
14219
+ spacing: {
14220
+ margin: "0px 0px 0px 0px",
14221
+ padding: "0px 0px 0px 0px"
14222
+ },
14223
+ border: {
14224
+ width: "1px",
14225
+ radius: "0px",
14226
+ color: "#000000",
14227
+ style: "solid"
14228
+ },
14229
+ flexWrap: "nowrap",
14230
+ justifyContent: "center",
14231
+ alignItems: "center"
14232
+ },
14233
+ children: [
14234
+ {
14235
+ type: "flex-item-layout",
14236
+ name: "flex-item-layout1",
14237
+ options: {
14238
+ spacing: {
14239
+ margin: "0px 100px",
14240
+ padding: "0px"
14241
+ },
14242
+ border: {
14243
+ width: "1px",
14244
+ radius: "0px",
14245
+ color: "#000000",
14246
+ style: "none"
14247
+ },
14248
+ direction: "ltr"
14249
+ },
14250
+ children: [
14251
+ {
14252
+ type: "text-block-layout",
14253
+ name: "text-block-layout1",
14254
+ options: {
14255
+ content: "<p><strong>PERMIT TO WORK</strong></p>"
14256
+ }
14257
+ }
14258
+ ]
14259
+ }
14260
+ ]
14261
+ }
14262
+ ]
14263
+ },
14264
+ {
14265
+ type: "grid-item-layout",
14266
+ name: "grid-item-layout3",
14267
+ children: [
14233
14268
  {
14234
- type: "text-block-layout",
14235
- name: "form-subtitle",
14269
+ type: "flex-layout",
14270
+ name: "flex-layout2",
14271
+ children: [
14272
+ {
14273
+ type: "flex-item-layout",
14274
+ name: "flex-item-layout2",
14275
+ options: {
14276
+ spacing: {
14277
+ margin: "0px",
14278
+ padding: "30px"
14279
+ },
14280
+ border: {
14281
+ width: "1px",
14282
+ radius: "0px",
14283
+ color: "#000000",
14284
+ style: "none"
14285
+ },
14286
+ direction: "ltr",
14287
+ flexWrap: "nowrap",
14288
+ justifyContent: "flex-start",
14289
+ alignItems: "flex-start"
14290
+ },
14291
+ children: [
14292
+ {
14293
+ type: "text-block-layout",
14294
+ name: "text-block-layout2",
14295
+ options: {
14296
+ content: "<p>Hazardous Work Activity Authorization<br/>⚠️ This permit must be completed before work begins</p>"
14297
+ }
14298
+ }
14299
+ ]
14300
+ }
14301
+ ],
14236
14302
  options: {
14237
- content: "<p><strong>Hazardous Work Activity Authorization</strong></p>"
14303
+ spacing: {
14304
+ margin: "0px 0px 0px 0px",
14305
+ padding: "0px 0px 0px 0px"
14306
+ },
14307
+ border: {
14308
+ width: "1px",
14309
+ radius: "0px",
14310
+ color: "#000000",
14311
+ style: "none"
14312
+ },
14313
+ flexWrap: "nowrap",
14314
+ justifyContent: "center",
14315
+ alignItems: "center",
14316
+ flexDirection: "row"
14238
14317
  }
14318
+ }
14319
+ ],
14320
+ options: {
14321
+ spacing: {
14322
+ margin: "0px 0px 0px 0px",
14323
+ padding: "0px 0px 0px 0px"
14239
14324
  },
14240
- {
14241
- type: "text-block-layout",
14242
- name: "warning-text",
14243
- options: {
14244
- content: "<p style='color: #dc2626;'><strong>⚠️ This permit must be completed before work begins</strong></p>"
14325
+ border: {
14326
+ width: "1px",
14327
+ radius: "0px",
14328
+ color: "#000000",
14329
+ style: "solid"
14330
+ },
14331
+ direction: "ltr",
14332
+ grid: {
14333
+ "default": {
14334
+ rows: 1,
14335
+ columns: 1,
14336
+ justifyItems: "stretch",
14337
+ alignItems: "stretch",
14338
+ gap: "0px 0px"
14245
14339
  }
14246
14340
  }
14247
- ]
14341
+ }
14248
14342
  }
14249
14343
  ]
14250
14344
  },
14251
14345
  {
14252
14346
  type: "grid-layout",
14253
- name: "permit-details-grid",
14347
+ name: "grid-layout2",
14254
14348
  options: {
14255
14349
  grid: {
14256
14350
  "default": {
14257
14351
  columns: 12,
14258
14352
  rows: 1,
14259
- gap: "20px",
14353
+ gap: "0px 0px",
14260
14354
  justifyItems: "stretch",
14261
14355
  alignItems: "stretch"
14262
14356
  }
14263
14357
  },
14264
14358
  spacing: {
14265
- margin: "0px 0px 30px",
14359
+ margin: "0px",
14266
14360
  padding: "0px"
14267
14361
  },
14268
14362
  border: {
14269
- width: "0px",
14363
+ width: "1px",
14270
14364
  radius: "0px",
14271
14365
  color: "#000000",
14272
- style: "none"
14366
+ style: "solid"
14273
14367
  }
14274
14368
  },
14275
14369
  children: [
14276
14370
  {
14277
14371
  type: "grid-item-layout",
14278
- name: "permit-info",
14372
+ name: "grid-item-layout4",
14279
14373
  options: {
14280
14374
  spacing: {
14281
- margin: "0px",
14282
- padding: "20px"
14375
+ margin: "0px 0px 0px 0px",
14376
+ padding: "0px 0px 0px 0px"
14283
14377
  },
14284
14378
  border: {
14285
14379
  width: "1px",
14286
- radius: "8px",
14287
- color: "#e5e7eb",
14288
- style: "solid"
14380
+ radius: "0px",
14381
+ color: "#000000",
14382
+ style: "none"
14289
14383
  },
14290
14384
  direction: "ltr",
14291
- colSpan: 6
14385
+ colSpan: 5
14292
14386
  },
14293
14387
  children: [
14294
14388
  {
14295
- type: "text-block-layout",
14296
- name: "section-title",
14297
- options: {
14298
- content: "<h3>Permit Information</h3>"
14299
- }
14300
- },
14301
- {
14302
- type: "form-field",
14303
- options: {
14304
- label: "Permit Number"
14305
- },
14306
- children: [
14307
- {
14308
- type: "text-editor",
14309
- name: "permit-number",
14310
- options: {
14311
- placeholder: "Auto-generated permit number",
14312
- readonly: true
14313
- }
14314
- }
14315
- ]
14316
- },
14317
- {
14318
- type: "form-field",
14319
- options: {
14320
- label: "Type of Work Permit"
14321
- },
14322
- children: [
14323
- {
14324
- type: "select-editor",
14325
- name: "permit-type",
14326
- options: {
14327
- dataSource: "permit-types"
14328
- }
14329
- }
14330
- ]
14331
- },
14332
- {
14333
- type: "form-field",
14389
+ type: "flex-layout",
14390
+ name: "flex-layout1",
14334
14391
  options: {
14335
- label: "Work Location"
14392
+ spacing: {
14393
+ margin: "0px",
14394
+ padding: "11px"
14395
+ },
14396
+ border: {
14397
+ width: "1px",
14398
+ radius: "0px",
14399
+ color: "#000000",
14400
+ style: "solid"
14401
+ },
14402
+ flexWrap: "nowrap",
14403
+ justifyContent: "center",
14404
+ alignItems: "center",
14405
+ gap: "20px"
14336
14406
  },
14337
14407
  children: [
14338
14408
  {
14339
- type: "text-editor",
14340
- name: "work-location",
14409
+ type: "flex-item-layout",
14410
+ name: "flex-item-layout1",
14341
14411
  options: {
14342
- placeholder: "Enter specific work location"
14343
- }
14344
- }
14345
- ]
14346
- },
14347
- {
14348
- type: "form-field",
14349
- options: {
14350
- label: "Description of Work"
14351
- },
14352
- children: [
14412
+ spacing: {
14413
+ margin: "0px",
14414
+ padding: "0px"
14415
+ },
14416
+ border: {
14417
+ width: "1px",
14418
+ radius: "0px",
14419
+ color: "#000000",
14420
+ style: "none"
14421
+ },
14422
+ direction: "ltr"
14423
+ },
14424
+ children: [
14425
+ {
14426
+ type: "text-block-layout",
14427
+ name: "text-block-layout1",
14428
+ options: {
14429
+ content: "<p><strong>Permit Number:</strong></p>"
14430
+ }
14431
+ }
14432
+ ]
14433
+ },
14353
14434
  {
14354
- type: "large-text-editor",
14355
- name: "work-description",
14435
+ type: "flex-item-layout",
14436
+ name: "flex-item-layout3",
14356
14437
  options: {
14357
- placeholder: "Provide detailed description of work to be performed"
14358
- }
14438
+ spacing: {
14439
+ margin: "0px",
14440
+ padding: "0px"
14441
+ },
14442
+ border: {
14443
+ width: "1px",
14444
+ radius: "0px",
14445
+ color: "#000000",
14446
+ style: "none"
14447
+ },
14448
+ direction: "ltr"
14449
+ },
14450
+ children: [
14451
+ {
14452
+ type: "text-editor",
14453
+ name: "text-editor1",
14454
+ options: {
14455
+ multiple: false,
14456
+ disabled: false,
14457
+ readonly: true,
14458
+ hasClearButton: false,
14459
+ validations: {
14460
+ regex: null,
14461
+ required: null
14462
+ },
14463
+ flexWrap: "nowrap",
14464
+ justifyContent: "flex-start",
14465
+ alignItems: "flex-start"
14466
+ }
14467
+ }
14468
+ ]
14359
14469
  }
14360
14470
  ]
14361
14471
  }
@@ -14363,891 +14473,2133 @@ var children = [
14363
14473
  },
14364
14474
  {
14365
14475
  type: "grid-item-layout",
14366
- name: "work-schedule",
14476
+ name: "grid-item-layout5",
14367
14477
  options: {
14368
14478
  spacing: {
14369
- margin: "0px",
14370
- padding: "20px"
14479
+ margin: "0px 0px 0px 0px",
14480
+ padding: "0px 0px 0px 0px"
14371
14481
  },
14372
14482
  border: {
14373
14483
  width: "1px",
14374
- radius: "8px",
14375
- color: "#e5e7eb",
14376
- style: "solid"
14484
+ radius: "0px",
14485
+ color: "#000000",
14486
+ style: "none"
14377
14487
  },
14378
14488
  direction: "ltr",
14379
- colSpan: 6
14489
+ colSpan: 4
14380
14490
  },
14381
14491
  children: [
14382
14492
  {
14383
- type: "text-block-layout",
14384
- name: "section-title",
14385
- options: {
14386
- content: "<h3>Work Schedule</h3>"
14387
- }
14388
- },
14389
- {
14390
- type: "form-field",
14391
- options: {
14392
- label: "Work Start Date"
14393
- },
14394
- children: [
14395
- {
14396
- type: "date-time-editor",
14397
- name: "work-start-date",
14398
- options: {
14399
- placeholder: "Select start date"
14400
- }
14401
- }
14402
- ]
14403
- },
14404
- {
14405
- type: "form-field",
14406
- options: {
14407
- label: "Work Start Time"
14408
- },
14409
- children: [
14410
- {
14411
- type: "time-duration",
14412
- name: "work-start-time",
14413
- options: {
14414
- placeholder: "Select start time"
14415
- }
14416
- }
14417
- ]
14418
- },
14419
- {
14420
- type: "form-field",
14421
- options: {
14422
- label: "Expected End Date"
14423
- },
14424
- children: [
14425
- {
14426
- type: "date-time-editor",
14427
- name: "work-end-date",
14428
- options: {
14429
- placeholder: "Select expected end date"
14430
- }
14431
- }
14432
- ]
14433
- },
14434
- {
14435
- type: "form-field",
14493
+ type: "flex-layout",
14494
+ name: "flex-layout1",
14436
14495
  options: {
14437
- label: "Expected End Time"
14496
+ spacing: {
14497
+ margin: "0px",
14498
+ padding: "10px"
14499
+ },
14500
+ border: {
14501
+ width: "1px",
14502
+ radius: "0px",
14503
+ color: "#000000",
14504
+ style: "solid"
14505
+ },
14506
+ flexWrap: "nowrap",
14507
+ justifyContent: "center",
14508
+ alignItems: "center",
14509
+ gap: "20px"
14438
14510
  },
14439
14511
  children: [
14440
14512
  {
14441
- type: "time-duration",
14442
- name: "work-end-time",
14513
+ type: "flex-item-layout",
14514
+ name: "flex-item-layout1",
14443
14515
  options: {
14444
- placeholder: "Select expected end time"
14445
- }
14446
- }
14447
- ]
14448
- },
14449
- {
14450
- type: "form-field",
14451
- options: {
14452
- label: "Estimated Duration (hours)"
14453
- },
14454
- children: [
14516
+ spacing: {
14517
+ margin: "0px",
14518
+ padding: "0px"
14519
+ },
14520
+ border: {
14521
+ width: "1px",
14522
+ radius: "0px",
14523
+ color: "#000000",
14524
+ style: "none"
14525
+ },
14526
+ direction: "ltr"
14527
+ },
14528
+ children: [
14529
+ {
14530
+ type: "text-block-layout",
14531
+ name: "text-block-layout1",
14532
+ options: {
14533
+ content: "<p><strong>Date:</strong></p>"
14534
+ }
14535
+ }
14536
+ ]
14537
+ },
14455
14538
  {
14456
- type: "number-editor",
14457
- name: "work-duration",
14539
+ type: "flex-item-layout",
14540
+ name: "flex-item-layout3",
14458
14541
  options: {
14459
- min: 0.5,
14460
- max: 168,
14461
- step: 0.5,
14462
- placeholder: "Enter estimated duration"
14463
- }
14542
+ spacing: {
14543
+ margin: "0px",
14544
+ padding: "0px"
14545
+ },
14546
+ border: {
14547
+ width: "1px",
14548
+ radius: "0px",
14549
+ color: "#000000",
14550
+ style: "none"
14551
+ },
14552
+ direction: "ltr"
14553
+ },
14554
+ children: [
14555
+ {
14556
+ type: "date-time-editor",
14557
+ name: "date-time-editor1",
14558
+ options: {
14559
+ multiple: false,
14560
+ format: {
14561
+ id: "date",
14562
+ title: "Date"
14563
+ },
14564
+ readonly: false,
14565
+ disabled: false,
14566
+ width: "200px",
14567
+ validations: {
14568
+ required: null,
14569
+ greaterThan: null,
14570
+ lessThan: null
14571
+ }
14572
+ }
14573
+ }
14574
+ ]
14464
14575
  }
14465
14576
  ]
14466
14577
  }
14467
14578
  ]
14468
- }
14469
- ]
14470
- },
14471
- {
14472
- type: "grid-layout",
14473
- name: "personnel-grid",
14474
- options: {
14475
- grid: {
14476
- "default": {
14477
- columns: 12,
14478
- rows: 1,
14479
- gap: "20px",
14480
- justifyItems: "stretch",
14481
- alignItems: "stretch"
14482
- }
14483
- },
14484
- spacing: {
14485
- margin: "0px 0px 30px",
14486
- padding: "0px"
14487
14579
  },
14488
- border: {
14489
- width: "0px",
14490
- radius: "0px",
14491
- color: "#000000",
14492
- style: "none"
14493
- }
14494
- },
14495
- children: [
14496
14580
  {
14497
14581
  type: "grid-item-layout",
14498
- name: "applicant-info",
14582
+ name: "grid-item-layout6",
14499
14583
  options: {
14500
14584
  spacing: {
14501
- margin: "0px",
14502
- padding: "20px"
14585
+ margin: "0px 0px 0px 0px",
14586
+ padding: "0px 0px 0px 0px"
14503
14587
  },
14504
14588
  border: {
14505
- width: "1px",
14506
- radius: "8px",
14507
- color: "#e5e7eb",
14508
- style: "solid"
14589
+ width: "1px 1px 1px 1px",
14590
+ radius: "0px 0px 0px 0px",
14591
+ color: "#000000 #000000 #000000 #000000",
14592
+ style: "none none none none"
14509
14593
  },
14510
14594
  direction: "ltr",
14511
- colSpan: 6
14595
+ colSpan: 3
14512
14596
  },
14513
14597
  children: [
14514
14598
  {
14515
- type: "text-block-layout",
14516
- name: "section-title",
14517
- options: {
14518
- content: "<h3>Permit Applicant</h3>"
14519
- }
14520
- },
14521
- {
14522
- type: "form-field",
14599
+ type: "flex-layout",
14600
+ name: "flex-layout1",
14523
14601
  options: {
14524
- label: "Applicant Name"
14602
+ spacing: {
14603
+ margin: "0px",
14604
+ padding: "10px"
14605
+ },
14606
+ border: {
14607
+ width: "1px",
14608
+ radius: "0px",
14609
+ color: "#000000",
14610
+ style: "solid"
14611
+ },
14612
+ flexWrap: "nowrap",
14613
+ justifyContent: "center",
14614
+ alignItems: "center",
14615
+ gap: "20px"
14525
14616
  },
14526
14617
  children: [
14527
14618
  {
14528
- type: "text-editor",
14529
- name: "applicant-name",
14619
+ type: "flex-item-layout",
14620
+ name: "flex-item-layout1",
14530
14621
  options: {
14531
- placeholder: "Enter applicant full name"
14532
- }
14533
- }
14534
- ]
14535
- },
14536
- {
14537
- type: "form-field",
14538
- options: {
14539
- label: "Department"
14540
- },
14541
- children: [
14622
+ spacing: {
14623
+ margin: "0px",
14624
+ padding: "0px"
14625
+ },
14626
+ border: {
14627
+ width: "1px",
14628
+ radius: "0px",
14629
+ color: "#000000",
14630
+ style: "none"
14631
+ },
14632
+ direction: "ltr"
14633
+ },
14634
+ children: [
14635
+ {
14636
+ type: "text-block-layout",
14637
+ name: "text-block-layout1",
14638
+ options: {
14639
+ content: "<p><strong>Type:</strong></p>"
14640
+ }
14641
+ }
14642
+ ]
14643
+ },
14542
14644
  {
14543
- type: "select-editor",
14544
- name: "applicant-department",
14645
+ type: "flex-item-layout",
14646
+ name: "flex-item-layout3",
14545
14647
  options: {
14546
- dataSource: "departments"
14547
- }
14648
+ spacing: {
14649
+ margin: "0px",
14650
+ padding: "0px"
14651
+ },
14652
+ border: {
14653
+ width: "1px",
14654
+ radius: "0px",
14655
+ color: "#000000",
14656
+ style: "none"
14657
+ },
14658
+ direction: "ltr"
14659
+ },
14660
+ children: [
14661
+ {
14662
+ type: "select-editor",
14663
+ name: "select-editor1",
14664
+ options: {
14665
+ multiple: false,
14666
+ disabled: false,
14667
+ readonly: false,
14668
+ hasClearButton: false,
14669
+ validations: {
14670
+ regex: null,
14671
+ required: null
14672
+ },
14673
+ flexWrap: "nowrap",
14674
+ justifyContent: "flex-start",
14675
+ alignItems: "flex-start"
14676
+ }
14677
+ }
14678
+ ]
14548
14679
  }
14549
14680
  ]
14681
+ }
14682
+ ]
14683
+ },
14684
+ {
14685
+ type: "grid-item-layout",
14686
+ name: "grid-item-layout7",
14687
+ options: {
14688
+ spacing: {
14689
+ margin: "0px 0px 0px 0px",
14690
+ padding: "0px 0px 0px 0px"
14691
+ },
14692
+ border: {
14693
+ width: "1px",
14694
+ radius: "0px",
14695
+ color: "#000000",
14696
+ style: "none"
14550
14697
  },
14698
+ direction: "ltr",
14699
+ colSpan: 6
14700
+ },
14701
+ children: [
14551
14702
  {
14552
- type: "form-field",
14553
- options: {
14554
- label: "Contact Phone"
14555
- },
14703
+ type: "flex-layout",
14704
+ name: "flex-layout3",
14556
14705
  children: [
14557
14706
  {
14558
- type: "text-editor",
14559
- name: "applicant-phone",
14707
+ type: "flex-item-layout",
14708
+ name: "flex-item-layout4",
14709
+ children: [
14710
+ {
14711
+ type: "text-block-layout",
14712
+ name: "text-block-layout3",
14713
+ options: {
14714
+ content: "<p><strong>Work Description:</strong></p>"
14715
+ }
14716
+ }
14717
+ ],
14560
14718
  options: {
14561
- placeholder: "Enter contact phone number"
14719
+ spacing: {
14720
+ margin: "0px 0px 0px 0px",
14721
+ padding: "0px 0px 0px 0px"
14722
+ },
14723
+ border: {
14724
+ width: "1px",
14725
+ radius: "0px",
14726
+ color: "#000000",
14727
+ style: "none"
14728
+ },
14729
+ direction: "ltr"
14562
14730
  }
14563
- }
14564
- ]
14565
- },
14566
- {
14567
- type: "form-field",
14568
- options: {
14569
- label: "Contact Email"
14570
- },
14571
- children: [
14731
+ },
14572
14732
  {
14573
- type: "text-editor",
14574
- name: "applicant-email",
14733
+ type: "flex-item-layout",
14734
+ name: "flex-item-layout5",
14735
+ children: [
14736
+ {
14737
+ type: "large-text-editor",
14738
+ name: "large-text-editor1",
14739
+ options: {
14740
+ multiple: false,
14741
+ disabled: false,
14742
+ readonly: false,
14743
+ hasClearButton: false,
14744
+ validations: {
14745
+ regex: null,
14746
+ required: null
14747
+ }
14748
+ }
14749
+ }
14750
+ ],
14575
14751
  options: {
14576
- placeholder: "Enter contact email"
14752
+ spacing: {
14753
+ margin: "0px 0px 0px 0px",
14754
+ padding: "0px 0px 0px 0px"
14755
+ },
14756
+ border: {
14757
+ width: "1px",
14758
+ radius: "0px",
14759
+ color: "#000000",
14760
+ style: "none"
14761
+ },
14762
+ direction: "ltr"
14577
14763
  }
14578
14764
  }
14579
- ]
14765
+ ],
14766
+ options: {
14767
+ spacing: {
14768
+ margin: "0px",
14769
+ padding: "10px"
14770
+ },
14771
+ border: {
14772
+ width: "1px",
14773
+ radius: "0px",
14774
+ color: "#000000",
14775
+ style: "solid"
14776
+ },
14777
+ flexWrap: "nowrap",
14778
+ justifyContent: "center",
14779
+ alignItems: "center",
14780
+ gap: "20px"
14781
+ }
14580
14782
  }
14581
14783
  ]
14582
14784
  },
14583
14785
  {
14584
14786
  type: "grid-item-layout",
14585
- name: "work-team",
14787
+ name: "grid-item-layout8",
14586
14788
  options: {
14587
14789
  spacing: {
14588
- margin: "0px",
14589
- padding: "20px"
14790
+ margin: "0px 0px 0px 0px",
14791
+ padding: "0px 0px 0px 0px"
14590
14792
  },
14591
14793
  border: {
14592
14794
  width: "1px",
14593
- radius: "8px",
14594
- color: "#e5e7eb",
14595
- style: "solid"
14795
+ radius: "0px",
14796
+ color: "#000000",
14797
+ style: "none"
14596
14798
  },
14597
14799
  direction: "ltr",
14598
14800
  colSpan: 6
14599
14801
  },
14600
14802
  children: [
14601
14803
  {
14602
- type: "text-block-layout",
14603
- name: "section-title",
14604
- options: {
14605
- content: "<h3>Work Team Members</h3>"
14606
- }
14607
- },
14608
- {
14609
- type: "form-field",
14610
- options: {
14611
- label: "Team Leader"
14612
- },
14804
+ type: "flex-layout",
14805
+ name: "flex-layout4",
14613
14806
  children: [
14614
14807
  {
14615
- type: "text-editor",
14616
- name: "team-leader",
14808
+ type: "flex-item-layout",
14809
+ name: "flex-item-layout6",
14810
+ children: [
14811
+ {
14812
+ type: "text-block-layout",
14813
+ name: "text-block-layout4",
14814
+ options: {
14815
+ content: "<p><strong>Location:</strong></p>"
14816
+ }
14817
+ }
14818
+ ],
14617
14819
  options: {
14618
- placeholder: "Enter team leader name"
14820
+ spacing: {
14821
+ margin: "0px 0px 0px 0px",
14822
+ padding: "0px 0px 0px 0px"
14823
+ },
14824
+ border: {
14825
+ width: "1px",
14826
+ radius: "0px",
14827
+ color: "#000000",
14828
+ style: "none"
14829
+ },
14830
+ direction: "ltr"
14619
14831
  }
14620
- }
14621
- ]
14622
- },
14623
- {
14624
- type: "form-field",
14625
- options: {
14626
- label: "Team Members"
14627
- },
14628
- children: [
14832
+ },
14629
14833
  {
14630
- type: "large-text-editor",
14631
- name: "team-members",
14834
+ type: "flex-item-layout",
14835
+ name: "flex-item-layout6",
14836
+ children: [
14837
+ {
14838
+ type: "text-editor",
14839
+ name: "text-editor3",
14840
+ options: {
14841
+ multiple: false,
14842
+ disabled: false,
14843
+ readonly: false,
14844
+ hasClearButton: false,
14845
+ validations: {
14846
+ regex: null,
14847
+ required: null
14848
+ },
14849
+ flexWrap: "nowrap",
14850
+ justifyContent: "flex-start",
14851
+ alignItems: "flex-start"
14852
+ }
14853
+ }
14854
+ ],
14632
14855
  options: {
14633
- placeholder: "List all team members involved in the work"
14856
+ spacing: {
14857
+ margin: "0px 0px 0px 0px",
14858
+ padding: "0px 0px 0px 0px"
14859
+ },
14860
+ border: {
14861
+ width: "1px",
14862
+ radius: "0px",
14863
+ color: "#000000",
14864
+ style: "none"
14865
+ },
14866
+ direction: "ltr"
14634
14867
  }
14635
14868
  }
14636
- ]
14637
- },
14638
- {
14639
- type: "form-field",
14869
+ ],
14640
14870
  options: {
14641
- label: "Total Personnel"
14642
- },
14643
- children: [
14644
- {
14645
- type: "number-editor",
14646
- name: "total-personnel",
14647
- options: {
14648
- min: 1,
14649
- max: 50,
14650
- placeholder: "Enter total number of personnel"
14651
- }
14652
- }
14653
- ]
14871
+ spacing: {
14872
+ margin: "0px",
14873
+ padding: "10px"
14874
+ },
14875
+ border: {
14876
+ width: "1px",
14877
+ radius: "0px",
14878
+ color: "#000000",
14879
+ style: "solid"
14880
+ },
14881
+ flexWrap: "nowrap",
14882
+ justifyContent: "center",
14883
+ alignItems: "center",
14884
+ gap: "20px"
14885
+ }
14654
14886
  }
14655
14887
  ]
14656
14888
  }
14657
14889
  ]
14658
14890
  },
14659
14891
  {
14660
- type: "grid-layout",
14661
- name: "hazards-grid",
14892
+ type: "grid-item-layout",
14893
+ name: "grid-item-layout9",
14662
14894
  options: {
14663
- grid: {
14664
- "default": {
14665
- columns: 12,
14666
- rows: 1,
14667
- gap: "20px",
14668
- justifyItems: "stretch",
14669
- alignItems: "stretch"
14670
- }
14671
- },
14672
14895
  spacing: {
14673
- margin: "0px 0px 30px",
14674
- padding: "0px"
14896
+ margin: "0px 0px 0px 0px",
14897
+ padding: "0px 0px 0px 0px"
14675
14898
  },
14676
14899
  border: {
14677
- width: "0px",
14900
+ width: "1px",
14678
14901
  radius: "0px",
14679
14902
  color: "#000000",
14680
14903
  style: "none"
14681
- }
14904
+ },
14905
+ direction: "ltr",
14906
+ colSpan: 6
14682
14907
  },
14683
14908
  children: [
14684
14909
  {
14685
- type: "grid-item-layout",
14686
- name: "hazard-identification",
14687
- options: {
14688
- spacing: {
14689
- margin: "0px",
14690
- padding: "20px"
14691
- },
14692
- border: {
14693
- width: "1px",
14694
- radius: "8px",
14695
- color: "#e5e7eb",
14696
- style: "solid"
14697
- },
14698
- direction: "ltr",
14699
- colSpan: 6
14700
- },
14910
+ type: "flex-layout",
14911
+ name: "flex-layout5",
14701
14912
  children: [
14702
14913
  {
14703
- type: "text-block-layout",
14704
- name: "section-title",
14705
- options: {
14706
- content: "<h3>Hazard Identification</h3>"
14707
- }
14708
- },
14709
- {
14710
- type: "form-field",
14711
- options: {
14712
- label: "Hazards Present"
14713
- },
14914
+ type: "flex-item-layout",
14915
+ name: "flex-item-layout7",
14714
14916
  children: [
14715
14917
  {
14716
- type: "checkbox-editor",
14717
- name: "hazards-present",
14918
+ type: "text-block-layout",
14919
+ name: "text-block-layout5",
14718
14920
  options: {
14719
- dataSource: [
14720
- "Fire/Explosion",
14721
- "Toxic Substances",
14722
- "Oxygen Deficiency",
14723
- "Electrical Hazards",
14724
- "Mechanical Hazards",
14725
- "Falling Objects",
14726
- "Confined Space",
14727
- "Working at Heights",
14728
- "Chemical Exposure",
14729
- "Noise",
14730
- "Other"
14731
- ]
14921
+ content: "<p><strong>Applicant Name:</strong></p>"
14732
14922
  }
14733
14923
  }
14734
- ]
14924
+ ],
14925
+ options: {
14926
+ spacing: {
14927
+ margin: "0px 0px 0px 0px",
14928
+ padding: "0px 0px 0px 0px"
14929
+ },
14930
+ border: {
14931
+ width: "1px",
14932
+ radius: "0px",
14933
+ color: "#000000",
14934
+ style: "none"
14935
+ },
14936
+ direction: "ltr"
14937
+ }
14735
14938
  },
14736
14939
  {
14737
- type: "form-field",
14738
- options: {
14739
- label: "Additional Hazards"
14740
- },
14940
+ type: "flex-item-layout",
14941
+ name: "flex-item-layout8",
14741
14942
  children: [
14742
14943
  {
14743
- type: "large-text-editor",
14744
- name: "additional-hazards",
14944
+ type: "text-editor",
14945
+ name: "text-editor4",
14745
14946
  options: {
14746
- placeholder: "Describe any additional hazards not listed above"
14947
+ multiple: false,
14948
+ disabled: false,
14949
+ readonly: false,
14950
+ hasClearButton: false,
14951
+ validations: {
14952
+ regex: null,
14953
+ required: null
14954
+ }
14747
14955
  }
14748
14956
  }
14749
- ]
14957
+ ],
14958
+ options: {
14959
+ spacing: {
14960
+ margin: "0px 0px 0px 0px",
14961
+ padding: "0px 0px 0px 0px"
14962
+ },
14963
+ border: {
14964
+ width: "1px",
14965
+ radius: "0px",
14966
+ color: "#000000",
14967
+ style: "none"
14968
+ },
14969
+ direction: "ltr"
14970
+ }
14750
14971
  }
14751
- ]
14752
- },
14753
- {
14754
- type: "grid-item-layout",
14755
- name: "control-measures",
14972
+ ],
14756
14973
  options: {
14757
14974
  spacing: {
14758
14975
  margin: "0px",
14759
- padding: "20px"
14976
+ padding: "10px"
14760
14977
  },
14761
14978
  border: {
14762
14979
  width: "1px",
14763
- radius: "8px",
14764
- color: "#e5e7eb",
14980
+ radius: "0px",
14981
+ color: "#000000",
14765
14982
  style: "solid"
14766
14983
  },
14767
- direction: "ltr",
14768
- colSpan: 6
14769
- },
14770
- children: [
14771
- {
14772
- type: "text-block-layout",
14773
- name: "section-title",
14774
- options: {
14775
- content: "<h3>Control Measures</h3>"
14776
- }
14777
- },
14778
- {
14779
- type: "form-field",
14780
- options: {
14781
- label: "PPE Required"
14782
- },
14783
- children: [
14784
- {
14785
- type: "checkbox-editor",
14786
- name: "ppe-required",
14787
- options: {
14788
- dataSource: [
14789
- "Hard Hat",
14790
- "Safety Glasses",
14791
- "Safety Boots",
14792
- "Gloves",
14793
- "Respirator",
14794
- "Hearing Protection",
14795
- "Fall Protection",
14796
- "Chemical Suit",
14797
- "Other"
14798
- ]
14799
- }
14800
- }
14801
- ]
14802
- },
14803
- {
14804
- type: "form-field",
14805
- options: {
14806
- label: "Safety Measures"
14807
- },
14808
- children: [
14809
- {
14810
- type: "large-text-editor",
14811
- name: "safety-measures",
14812
- options: {
14813
- placeholder: "Describe safety measures and procedures to be followed"
14814
- }
14815
- }
14816
- ]
14817
- }
14818
- ]
14984
+ flexWrap: "nowrap",
14985
+ justifyContent: "center",
14986
+ alignItems: "center",
14987
+ gap: "20px"
14988
+ }
14819
14989
  }
14820
14990
  ]
14821
14991
  },
14822
14992
  {
14823
- type: "grid-layout",
14824
- name: "authorizations-grid",
14993
+ type: "grid-item-layout",
14994
+ name: "grid-item-layout10",
14825
14995
  options: {
14996
+ spacing: {
14997
+ margin: "0px",
14998
+ padding: "10px"
14999
+ },
15000
+ border: {
15001
+ width: "1px",
15002
+ radius: "0px",
15003
+ color: "#000000",
15004
+ style: "solid"
15005
+ },
15006
+ direction: "ltr",
15007
+ colSpan: 12,
14826
15008
  grid: {
14827
15009
  "default": {
14828
- columns: 12,
14829
15010
  rows: 1,
14830
- gap: "20px",
15011
+ columns: 1,
14831
15012
  justifyItems: "stretch",
14832
- alignItems: "stretch"
15013
+ alignItems: "stretch",
15014
+ gap: "0px 0px"
14833
15015
  }
14834
15016
  },
15017
+ backgroundColor: "rgb(0,166,244)"
15018
+ },
15019
+ children: [
15020
+ {
15021
+ type: "text-block-layout",
15022
+ name: "text-block-layout5",
15023
+ options: {
15024
+ content: "<p>1. STOP, step back and think</p>"
15025
+ }
15026
+ }
15027
+ ]
15028
+ },
15029
+ {
15030
+ type: "grid-item-layout",
15031
+ name: "grid-item-layout11",
15032
+ options: {
14835
15033
  spacing: {
14836
- margin: "0px 0px 30px",
14837
- padding: "0px"
15034
+ margin: "0px 0px 0px 0px",
15035
+ padding: "0px 0px 0px 0px"
14838
15036
  },
14839
15037
  border: {
14840
- width: "0px",
15038
+ width: "1px",
14841
15039
  radius: "0px",
14842
15040
  color: "#000000",
14843
15041
  style: "none"
14844
- }
15042
+ },
15043
+ direction: "ltr",
15044
+ colSpan: 10
14845
15045
  },
14846
15046
  children: [
14847
15047
  {
14848
- type: "grid-item-layout",
14849
- name: "authorizations",
15048
+ type: "flex-layout",
15049
+ name: "flex-layout3",
15050
+ children: [
15051
+ {
15052
+ type: "flex-item-layout",
15053
+ name: "flex-item-layout4",
15054
+ children: [
15055
+ {
15056
+ type: "text-block-layout",
15057
+ name: "text-block-layout3",
15058
+ options: {
15059
+ content: "<p>Do I understand what I need to do? </p>"
15060
+ }
15061
+ }
15062
+ ],
15063
+ options: {
15064
+ spacing: {
15065
+ margin: "0px 0px 0px 0px",
15066
+ padding: "0px 0px 0px 0px"
15067
+ },
15068
+ border: {
15069
+ width: "1px",
15070
+ radius: "0px",
15071
+ color: "#000000",
15072
+ style: "none"
15073
+ },
15074
+ direction: "ltr"
15075
+ }
15076
+ }
15077
+ ],
14850
15078
  options: {
14851
15079
  spacing: {
14852
15080
  margin: "0px",
14853
- padding: "20px"
15081
+ padding: "10px"
14854
15082
  },
14855
15083
  border: {
14856
15084
  width: "1px",
14857
- radius: "8px",
14858
- color: "#e5e7eb",
14859
- style: "solid"
15085
+ radius: "0px",
15086
+ color: "#000000",
15087
+ style: "none"
14860
15088
  },
14861
- direction: "ltr",
14862
- colSpan: 12
14863
- },
15089
+ flexWrap: "nowrap",
15090
+ justifyContent: "center",
15091
+ alignItems: "center",
15092
+ gap: "20px"
15093
+ }
15094
+ }
15095
+ ]
15096
+ },
15097
+ {
15098
+ type: "grid-item-layout",
15099
+ name: "grid-item-layout12",
15100
+ options: {
15101
+ spacing: {
15102
+ margin: "0px 0px 0px 0px",
15103
+ padding: "0px 0px 0px 0px"
15104
+ },
15105
+ border: {
15106
+ width: "1px",
15107
+ radius: "0px",
15108
+ color: "#000000",
15109
+ style: "none"
15110
+ },
15111
+ direction: "ltr",
15112
+ colSpan: 2,
15113
+ grid: {
15114
+ "default": {
15115
+ rows: 1,
15116
+ columns: 1,
15117
+ justifyItems: "stretch",
15118
+ alignItems: "stretch",
15119
+ gap: "0px 0px"
15120
+ }
15121
+ }
15122
+ },
15123
+ children: [
15124
+ {
15125
+ type: "flex-layout",
15126
+ name: "flex-layout3",
14864
15127
  children: [
14865
15128
  {
14866
- type: "text-block-layout",
14867
- name: "section-title",
14868
- options: {
14869
- content: "<h3>Authorizations & Approvals</h3>"
14870
- }
14871
- },
14872
- {
14873
- type: "form-field",
14874
- options: {
14875
- label: "Supervisor Approval"
14876
- },
15129
+ type: "flex-item-layout",
15130
+ name: "flex-item-layout4",
14877
15131
  children: [
14878
15132
  {
14879
- type: "select-editor",
14880
- name: "supervisor-approval",
15133
+ type: "selection-list-editor",
15134
+ name: "selection-list-editor1",
15135
+ path: "select-option-row-1",
14881
15136
  options: {
14882
- dataSource: "approval-status"
15137
+ multiple: false,
15138
+ direction: {
15139
+ id: "horizontal"
15140
+ },
15141
+ disabled: false,
15142
+ readonly: false,
15143
+ dataSource: "yes-no-options",
15144
+ textField: "title",
15145
+ valueField: "value"
14883
15146
  }
14884
15147
  }
14885
- ]
14886
- },
14887
- {
14888
- type: "form-field",
15148
+ ],
14889
15149
  options: {
14890
- label: "Supervisor Name"
14891
- },
14892
- children: [
14893
- {
14894
- type: "text-editor",
14895
- name: "supervisor-name",
15150
+ spacing: {
15151
+ margin: "0px 0px 0px 0px",
15152
+ padding: "0px 0px 0px 0px"
15153
+ },
15154
+ border: {
15155
+ width: "1px",
15156
+ radius: "0px",
15157
+ color: "#000000",
15158
+ style: "none"
15159
+ },
15160
+ direction: "ltr"
15161
+ }
15162
+ }
15163
+ ],
15164
+ options: {
15165
+ spacing: {
15166
+ margin: "0px",
15167
+ padding: "0px"
15168
+ },
15169
+ border: {
15170
+ width: "1px",
15171
+ radius: "0px",
15172
+ color: "#000000",
15173
+ style: "none"
15174
+ },
15175
+ flexWrap: "nowrap",
15176
+ justifyContent: "center",
15177
+ alignItems: "center",
15178
+ gap: "20px"
15179
+ }
15180
+ }
15181
+ ]
15182
+ },
15183
+ {
15184
+ type: "grid-item-layout",
15185
+ name: "grid-item-layout13",
15186
+ options: {
15187
+ spacing: {
15188
+ margin: "0px 0px 0px 0px",
15189
+ padding: "0px 0px 0px 0px"
15190
+ },
15191
+ border: {
15192
+ width: "1px",
15193
+ radius: "0px",
15194
+ color: "#000000",
15195
+ style: "none"
15196
+ },
15197
+ direction: "ltr",
15198
+ colSpan: 10
15199
+ },
15200
+ children: [
15201
+ {
15202
+ type: "flex-layout",
15203
+ name: "flex-layout12",
15204
+ children: [
15205
+ {
15206
+ type: "flex-item-layout",
15207
+ name: "flex-item-layout12",
15208
+ children: [
15209
+ {
15210
+ type: "text-block-layout",
15211
+ name: "text-block-layout12",
14896
15212
  options: {
14897
- placeholder: "Enter supervisor name"
15213
+ content: "<p>Do I need a SWMS for any &#x27;High Risk construction work&#x27;?</p>"
14898
15214
  }
14899
15215
  }
14900
- ]
15216
+ ],
15217
+ options: {
15218
+ spacing: {
15219
+ margin: "0px 0px 0px 0px",
15220
+ padding: "0px 0px 0px 0px"
15221
+ },
15222
+ border: {
15223
+ width: "1px",
15224
+ radius: "0px",
15225
+ color: "#000000",
15226
+ style: "none"
15227
+ },
15228
+ direction: "ltr"
15229
+ }
15230
+ }
15231
+ ],
15232
+ options: {
15233
+ spacing: {
15234
+ margin: "0px",
15235
+ padding: "10px"
15236
+ },
15237
+ border: {
15238
+ width: "1px",
15239
+ radius: "0px",
15240
+ color: "#000000",
15241
+ style: "none"
14901
15242
  },
15243
+ flexWrap: "nowrap",
15244
+ justifyContent: "center",
15245
+ alignItems: "center",
15246
+ gap: "20px"
15247
+ }
15248
+ }
15249
+ ]
15250
+ },
15251
+ {
15252
+ type: "grid-item-layout",
15253
+ options: {
15254
+ spacing: {
15255
+ margin: "0px 0px 0px 0px",
15256
+ padding: "0px 0px 0px 0px"
15257
+ },
15258
+ border: {
15259
+ width: "1px",
15260
+ radius: "0px",
15261
+ color: "#000000",
15262
+ style: "none"
15263
+ },
15264
+ direction: "ltr",
15265
+ colSpan: 2,
15266
+ grid: {
15267
+ "default": {
15268
+ rows: 1,
15269
+ columns: 1,
15270
+ justifyItems: "stretch",
15271
+ alignItems: "stretch",
15272
+ gap: "0px 0px"
15273
+ }
15274
+ }
15275
+ },
15276
+ children: [
15277
+ {
15278
+ type: "flex-layout",
15279
+ children: [
14902
15280
  {
14903
- type: "form-field",
15281
+ type: "flex-item-layout",
15282
+ children: [
15283
+ {
15284
+ type: "selection-list-editor",
15285
+ path: "select-option-row-2",
15286
+ options: {
15287
+ multiple: false,
15288
+ direction: {
15289
+ id: "horizontal"
15290
+ },
15291
+ disabled: false,
15292
+ readonly: false,
15293
+ dataSource: "yes-no-options",
15294
+ textField: "title",
15295
+ valueField: "value"
15296
+ },
15297
+ name: "selection-list-editor2"
15298
+ }
15299
+ ],
14904
15300
  options: {
14905
- label: "Approval Date"
15301
+ spacing: {
15302
+ margin: "0px 0px 0px 0px",
15303
+ padding: "0px 0px 0px 0px"
15304
+ },
15305
+ border: {
15306
+ width: "1px",
15307
+ radius: "0px",
15308
+ color: "#000000",
15309
+ style: "none"
15310
+ },
15311
+ direction: "ltr"
14906
15312
  },
15313
+ name: "flex-item-layout18"
15314
+ }
15315
+ ],
15316
+ options: {
15317
+ spacing: {
15318
+ margin: "0px",
15319
+ padding: "0px"
15320
+ },
15321
+ border: {
15322
+ width: "1px",
15323
+ radius: "0px",
15324
+ color: "#000000",
15325
+ style: "none"
15326
+ },
15327
+ flexWrap: "nowrap",
15328
+ justifyContent: "center",
15329
+ alignItems: "center",
15330
+ gap: "20px"
15331
+ },
15332
+ name: "flex-layout18"
15333
+ }
15334
+ ],
15335
+ name: "grid-item-layout18"
15336
+ },
15337
+ {
15338
+ type: "grid-item-layout",
15339
+ name: "grid-item-layout19",
15340
+ options: {
15341
+ spacing: {
15342
+ margin: "0px 0px 0px 0px",
15343
+ padding: "0px 0px 0px 0px"
15344
+ },
15345
+ border: {
15346
+ width: "1px",
15347
+ radius: "0px",
15348
+ color: "#000000",
15349
+ style: "none"
15350
+ },
15351
+ direction: "ltr",
15352
+ colSpan: 10
15353
+ },
15354
+ children: [
15355
+ {
15356
+ type: "flex-layout",
15357
+ name: "flex-layout13",
15358
+ children: [
15359
+ {
15360
+ type: "flex-item-layout",
15361
+ name: "flex-item-layout13",
14907
15362
  children: [
14908
15363
  {
14909
- type: "date-time-editor",
14910
- name: "supervisor-date",
15364
+ type: "text-block-layout",
15365
+ name: "text-block-layout13",
14911
15366
  options: {
14912
- placeholder: "Select approval date"
15367
+ content: "<p>Do I need any permits (e.g. hot work&#x2F;confined space&#x2F;dig)?</p>"
14913
15368
  }
14914
15369
  }
14915
- ]
15370
+ ],
15371
+ options: {
15372
+ spacing: {
15373
+ margin: "0px 0px 0px 0px",
15374
+ padding: "0px 0px 0px 0px"
15375
+ },
15376
+ border: {
15377
+ width: "1px",
15378
+ radius: "0px",
15379
+ color: "#000000",
15380
+ style: "none"
15381
+ },
15382
+ direction: "ltr"
15383
+ }
15384
+ }
15385
+ ],
15386
+ options: {
15387
+ spacing: {
15388
+ margin: "0px",
15389
+ padding: "10px"
15390
+ },
15391
+ border: {
15392
+ width: "1px",
15393
+ radius: "0px",
15394
+ color: "#000000",
15395
+ style: "none"
14916
15396
  },
15397
+ flexWrap: "nowrap",
15398
+ justifyContent: "center",
15399
+ alignItems: "center",
15400
+ gap: "20px"
15401
+ }
15402
+ }
15403
+ ]
15404
+ },
15405
+ {
15406
+ type: "grid-item-layout",
15407
+ options: {
15408
+ spacing: {
15409
+ margin: "0px 0px 0px 0px",
15410
+ padding: "0px 0px 0px 0px"
15411
+ },
15412
+ border: {
15413
+ width: "1px",
15414
+ radius: "0px",
15415
+ color: "#000000",
15416
+ style: "none"
15417
+ },
15418
+ direction: "ltr",
15419
+ colSpan: 2,
15420
+ grid: {
15421
+ "default": {
15422
+ rows: 1,
15423
+ columns: 1,
15424
+ justifyItems: "stretch",
15425
+ alignItems: "stretch",
15426
+ gap: "0px 0px"
15427
+ }
15428
+ }
15429
+ },
15430
+ children: [
15431
+ {
15432
+ type: "flex-layout",
15433
+ children: [
14917
15434
  {
14918
- type: "form-field",
15435
+ type: "flex-item-layout",
15436
+ children: [
15437
+ {
15438
+ type: "selection-list-editor",
15439
+ path: "select-option-row-3",
15440
+ options: {
15441
+ multiple: false,
15442
+ direction: {
15443
+ id: "horizontal"
15444
+ },
15445
+ disabled: false,
15446
+ readonly: false,
15447
+ dataSource: "yes-no-options",
15448
+ textField: "title",
15449
+ valueField: "value"
15450
+ },
15451
+ name: "selection-list-editor3"
15452
+ }
15453
+ ],
14919
15454
  options: {
14920
- label: "Safety Officer Approval"
15455
+ spacing: {
15456
+ margin: "0px 0px 0px 0px",
15457
+ padding: "0px 0px 0px 0px"
15458
+ },
15459
+ border: {
15460
+ width: "1px",
15461
+ radius: "0px",
15462
+ color: "#000000",
15463
+ style: "none"
15464
+ },
15465
+ direction: "ltr"
14921
15466
  },
15467
+ name: "flex-item-layout19"
15468
+ }
15469
+ ],
15470
+ options: {
15471
+ spacing: {
15472
+ margin: "0px",
15473
+ padding: "0px"
15474
+ },
15475
+ border: {
15476
+ width: "1px",
15477
+ radius: "0px",
15478
+ color: "#000000",
15479
+ style: "none"
15480
+ },
15481
+ flexWrap: "nowrap",
15482
+ justifyContent: "center",
15483
+ alignItems: "center",
15484
+ gap: "20px"
15485
+ },
15486
+ name: "flex-layout19"
15487
+ }
15488
+ ],
15489
+ name: "grid-item-layout19"
15490
+ },
15491
+ {
15492
+ type: "grid-item-layout",
15493
+ name: "grid-item-layout20",
15494
+ options: {
15495
+ spacing: {
15496
+ margin: "0px 0px 0px 0px",
15497
+ padding: "0px 0px 0px 0px"
15498
+ },
15499
+ border: {
15500
+ width: "1px",
15501
+ radius: "0px",
15502
+ color: "#000000",
15503
+ style: "none"
15504
+ },
15505
+ direction: "ltr",
15506
+ colSpan: 10
15507
+ },
15508
+ children: [
15509
+ {
15510
+ type: "flex-layout",
15511
+ name: "flex-layout14",
15512
+ children: [
15513
+ {
15514
+ type: "flex-item-layout",
15515
+ name: "flex-item-layout14",
14922
15516
  children: [
14923
15517
  {
14924
- type: "select-editor",
14925
- name: "safety-officer-approval",
15518
+ type: "text-block-layout",
15519
+ name: "text-block-layout14",
14926
15520
  options: {
14927
- dataSource: "approval-status"
15521
+ content: "<p>Do I have the correct PPE in good condition for the task?</p>"
14928
15522
  }
14929
15523
  }
14930
- ]
15524
+ ],
15525
+ options: {
15526
+ spacing: {
15527
+ margin: "0px 0px 0px 0px",
15528
+ padding: "0px 0px 0px 0px"
15529
+ },
15530
+ border: {
15531
+ width: "1px",
15532
+ radius: "0px",
15533
+ color: "#000000",
15534
+ style: "none"
15535
+ },
15536
+ direction: "ltr"
15537
+ }
15538
+ }
15539
+ ],
15540
+ options: {
15541
+ spacing: {
15542
+ margin: "0px",
15543
+ padding: "10px"
15544
+ },
15545
+ border: {
15546
+ width: "1px",
15547
+ radius: "0px",
15548
+ color: "#000000",
15549
+ style: "none"
15550
+ },
15551
+ flexWrap: "nowrap",
15552
+ justifyContent: "center",
15553
+ alignItems: "center",
15554
+ gap: "20px"
15555
+ }
15556
+ }
15557
+ ]
15558
+ },
15559
+ {
15560
+ type: "grid-item-layout",
15561
+ options: {
15562
+ spacing: {
15563
+ margin: "0px 0px 0px 0px",
15564
+ padding: "0px 0px 0px 0px"
15565
+ },
15566
+ border: {
15567
+ width: "1px",
15568
+ radius: "0px",
15569
+ color: "#000000",
15570
+ style: "none"
15571
+ },
15572
+ direction: "ltr",
15573
+ colSpan: 2,
15574
+ grid: {
15575
+ "default": {
15576
+ rows: 1,
15577
+ columns: 1,
15578
+ justifyItems: "stretch",
15579
+ alignItems: "stretch",
15580
+ gap: "0px 0px"
15581
+ }
15582
+ }
15583
+ },
15584
+ children: [
15585
+ {
15586
+ type: "flex-layout",
15587
+ children: [
15588
+ {
15589
+ type: "flex-item-layout",
15590
+ children: [
15591
+ {
15592
+ type: "selection-list-editor",
15593
+ path: "select-option-row-4",
15594
+ options: {
15595
+ multiple: false,
15596
+ direction: {
15597
+ id: "horizontal"
15598
+ },
15599
+ disabled: false,
15600
+ readonly: false,
15601
+ dataSource: "yes-no-options",
15602
+ textField: "title",
15603
+ valueField: "value"
15604
+ },
15605
+ name: "selection-list-editor4"
15606
+ }
15607
+ ],
15608
+ options: {
15609
+ spacing: {
15610
+ margin: "0px 0px 0px 0px",
15611
+ padding: "0px 0px 0px 0px"
15612
+ },
15613
+ border: {
15614
+ width: "1px",
15615
+ radius: "0px",
15616
+ color: "#000000",
15617
+ style: "none"
15618
+ },
15619
+ direction: "ltr"
15620
+ },
15621
+ name: "flex-item-layout20"
15622
+ }
15623
+ ],
15624
+ options: {
15625
+ spacing: {
15626
+ margin: "0px",
15627
+ padding: "0px"
15628
+ },
15629
+ border: {
15630
+ width: "1px",
15631
+ radius: "0px",
15632
+ color: "#000000",
15633
+ style: "none"
15634
+ },
15635
+ flexWrap: "nowrap",
15636
+ justifyContent: "center",
15637
+ alignItems: "center",
15638
+ gap: "20px"
15639
+ },
15640
+ name: "flex-layout20"
15641
+ }
15642
+ ],
15643
+ name: "grid-item-layout20"
15644
+ },
15645
+ {
15646
+ type: "grid-item-layout",
15647
+ name: "grid-item-layout21",
15648
+ options: {
15649
+ spacing: {
15650
+ margin: "0px 0px 0px 0px",
15651
+ padding: "0px 0px 0px 0px"
15652
+ },
15653
+ border: {
15654
+ width: "1px",
15655
+ radius: "0px",
15656
+ color: "#000000",
15657
+ style: "none"
15658
+ },
15659
+ direction: "ltr",
15660
+ colSpan: 10
15661
+ },
15662
+ children: [
15663
+ {
15664
+ type: "flex-layout",
15665
+ name: "flex-layout15",
15666
+ children: [
15667
+ {
15668
+ type: "flex-item-layout",
15669
+ name: "flex-item-layout15",
15670
+ children: [
15671
+ {
15672
+ type: "text-block-layout",
15673
+ name: "text-block-layout15",
15674
+ options: {
15675
+ content: "<p>Do I have the suitable tools and equipment for the task?</p>"
15676
+ }
15677
+ }
15678
+ ],
15679
+ options: {
15680
+ spacing: {
15681
+ margin: "0px 0px 0px 0px",
15682
+ padding: "0px 0px 0px 0px"
15683
+ },
15684
+ border: {
15685
+ width: "1px",
15686
+ radius: "0px",
15687
+ color: "#000000",
15688
+ style: "none"
15689
+ },
15690
+ direction: "ltr"
15691
+ }
15692
+ }
15693
+ ],
15694
+ options: {
15695
+ spacing: {
15696
+ margin: "0px",
15697
+ padding: "10px"
15698
+ },
15699
+ border: {
15700
+ width: "1px",
15701
+ radius: "0px",
15702
+ color: "#000000",
15703
+ style: "none"
15704
+ },
15705
+ flexWrap: "nowrap",
15706
+ justifyContent: "center",
15707
+ alignItems: "center",
15708
+ gap: "20px"
15709
+ }
15710
+ }
15711
+ ]
15712
+ },
15713
+ {
15714
+ type: "grid-item-layout",
15715
+ options: {
15716
+ spacing: {
15717
+ margin: "0px 0px 0px 0px",
15718
+ padding: "0px 0px 0px 0px"
15719
+ },
15720
+ border: {
15721
+ width: "1px",
15722
+ radius: "0px",
15723
+ color: "#000000",
15724
+ style: "none"
15725
+ },
15726
+ direction: "ltr",
15727
+ colSpan: 2,
15728
+ grid: {
15729
+ "default": {
15730
+ rows: 1,
15731
+ columns: 1,
15732
+ justifyItems: "stretch",
15733
+ alignItems: "stretch",
15734
+ gap: "0px 0px"
15735
+ }
15736
+ }
15737
+ },
15738
+ children: [
15739
+ {
15740
+ type: "flex-layout",
15741
+ children: [
15742
+ {
15743
+ type: "flex-item-layout",
15744
+ children: [
15745
+ {
15746
+ type: "selection-list-editor",
15747
+ path: "select-option-row-5",
15748
+ options: {
15749
+ multiple: false,
15750
+ direction: {
15751
+ id: "horizontal"
15752
+ },
15753
+ disabled: false,
15754
+ readonly: false,
15755
+ dataSource: "yes-no-options",
15756
+ textField: "title",
15757
+ valueField: "value"
15758
+ },
15759
+ name: "selection-list-editor5"
15760
+ }
15761
+ ],
15762
+ options: {
15763
+ spacing: {
15764
+ margin: "0px 0px 0px 0px",
15765
+ padding: "0px 0px 0px 0px"
15766
+ },
15767
+ border: {
15768
+ width: "1px",
15769
+ radius: "0px",
15770
+ color: "#000000",
15771
+ style: "none"
15772
+ },
15773
+ direction: "ltr"
15774
+ },
15775
+ name: "flex-item-layout21"
15776
+ }
15777
+ ],
15778
+ options: {
15779
+ spacing: {
15780
+ margin: "0px",
15781
+ padding: "0px"
15782
+ },
15783
+ border: {
15784
+ width: "1px",
15785
+ radius: "0px",
15786
+ color: "#000000",
15787
+ style: "none"
15788
+ },
15789
+ flexWrap: "nowrap",
15790
+ justifyContent: "center",
15791
+ alignItems: "center",
15792
+ gap: "20px"
15793
+ },
15794
+ name: "flex-layout21"
15795
+ }
15796
+ ],
15797
+ name: "grid-item-layout21"
15798
+ },
15799
+ {
15800
+ type: "grid-item-layout",
15801
+ name: "grid-item-layout22",
15802
+ options: {
15803
+ spacing: {
15804
+ margin: "0px 0px 0px 0px",
15805
+ padding: "0px 0px 0px 0px"
15806
+ },
15807
+ border: {
15808
+ width: "1px",
15809
+ radius: "0px",
15810
+ color: "#000000",
15811
+ style: "none"
15812
+ },
15813
+ direction: "ltr",
15814
+ colSpan: 10
15815
+ },
15816
+ children: [
15817
+ {
15818
+ type: "flex-layout",
15819
+ name: "flex-layout16",
15820
+ children: [
15821
+ {
15822
+ type: "flex-item-layout",
15823
+ name: "flex-item-layout16",
15824
+ children: [
15825
+ {
15826
+ type: "text-block-layout",
15827
+ name: "text-block-layout16",
15828
+ options: {
15829
+ content: "<p>Do I have my vehicle parked appropriately?</p>"
15830
+ }
15831
+ }
15832
+ ],
15833
+ options: {
15834
+ spacing: {
15835
+ margin: "0px 0px 0px 0px",
15836
+ padding: "0px 0px 0px 0px"
15837
+ },
15838
+ border: {
15839
+ width: "1px",
15840
+ radius: "0px",
15841
+ color: "#000000",
15842
+ style: "none"
15843
+ },
15844
+ direction: "ltr"
15845
+ }
15846
+ }
15847
+ ],
15848
+ options: {
15849
+ spacing: {
15850
+ margin: "0px",
15851
+ padding: "10px"
15852
+ },
15853
+ border: {
15854
+ width: "1px",
15855
+ radius: "0px",
15856
+ color: "#000000",
15857
+ style: "none"
15858
+ },
15859
+ flexWrap: "nowrap",
15860
+ justifyContent: "center",
15861
+ alignItems: "center",
15862
+ gap: "20px"
15863
+ }
15864
+ }
15865
+ ]
15866
+ },
15867
+ {
15868
+ type: "grid-item-layout",
15869
+ options: {
15870
+ spacing: {
15871
+ margin: "0px 0px 0px 0px",
15872
+ padding: "0px 0px 0px 0px"
15873
+ },
15874
+ border: {
15875
+ width: "1px",
15876
+ radius: "0px",
15877
+ color: "#000000",
15878
+ style: "none"
15879
+ },
15880
+ direction: "ltr",
15881
+ colSpan: 2,
15882
+ grid: {
15883
+ "default": {
15884
+ rows: 1,
15885
+ columns: 1,
15886
+ justifyItems: "stretch",
15887
+ alignItems: "stretch",
15888
+ gap: "0px 0px"
15889
+ }
15890
+ }
15891
+ },
15892
+ children: [
15893
+ {
15894
+ type: "flex-layout",
15895
+ children: [
15896
+ {
15897
+ type: "flex-item-layout",
15898
+ children: [
15899
+ {
15900
+ type: "selection-list-editor",
15901
+ path: "select-option-row-6",
15902
+ options: {
15903
+ multiple: false,
15904
+ direction: {
15905
+ id: "horizontal"
15906
+ },
15907
+ disabled: false,
15908
+ readonly: false,
15909
+ dataSource: "yes-no-options",
15910
+ textField: "title",
15911
+ valueField: "value"
15912
+ },
15913
+ name: "selection-list-editor6"
15914
+ }
15915
+ ],
15916
+ options: {
15917
+ spacing: {
15918
+ margin: "0px 0px 0px 0px",
15919
+ padding: "0px 0px 0px 0px"
15920
+ },
15921
+ border: {
15922
+ width: "1px",
15923
+ radius: "0px",
15924
+ color: "#000000",
15925
+ style: "none"
15926
+ },
15927
+ direction: "ltr"
15928
+ },
15929
+ name: "flex-item-layout22"
15930
+ }
15931
+ ],
15932
+ options: {
15933
+ spacing: {
15934
+ margin: "0px",
15935
+ padding: "0px"
15936
+ },
15937
+ border: {
15938
+ width: "1px",
15939
+ radius: "0px",
15940
+ color: "#000000",
15941
+ style: "none"
14931
15942
  },
15943
+ flexWrap: "nowrap",
15944
+ justifyContent: "center",
15945
+ alignItems: "center",
15946
+ gap: "20px"
15947
+ },
15948
+ name: "flex-layout22"
15949
+ }
15950
+ ],
15951
+ name: "grid-item-layout22"
15952
+ },
15953
+ {
15954
+ type: "grid-item-layout",
15955
+ name: "grid-item-layout23",
15956
+ options: {
15957
+ spacing: {
15958
+ margin: "0px 0px 0px 0px",
15959
+ padding: "0px 0px 0px 0px"
15960
+ },
15961
+ border: {
15962
+ width: "1px",
15963
+ radius: "0px",
15964
+ color: "#000000",
15965
+ style: "none"
15966
+ },
15967
+ direction: "ltr",
15968
+ colSpan: 10
15969
+ },
15970
+ children: [
15971
+ {
15972
+ type: "flex-layout",
15973
+ name: "flex-layout17",
15974
+ children: [
15975
+ {
15976
+ type: "flex-item-layout",
15977
+ name: "flex-item-layout17",
15978
+ children: [
15979
+ {
15980
+ type: "text-block-layout",
15981
+ name: "text-block-layout17",
15982
+ options: {
15983
+ content: "<p>Am I trained, competent, licensed and fit to perform the task?</p>"
15984
+ }
15985
+ }
15986
+ ],
15987
+ options: {
15988
+ spacing: {
15989
+ margin: "0px 0px 0px 0px",
15990
+ padding: "0px 0px 0px 0px"
15991
+ },
15992
+ border: {
15993
+ width: "1px",
15994
+ radius: "0px",
15995
+ color: "#000000",
15996
+ style: "none"
15997
+ },
15998
+ direction: "ltr"
15999
+ }
16000
+ }
16001
+ ],
16002
+ options: {
16003
+ spacing: {
16004
+ margin: "0px",
16005
+ padding: "10px"
16006
+ },
16007
+ border: {
16008
+ width: "1px",
16009
+ radius: "0px",
16010
+ color: "#000000",
16011
+ style: "none"
16012
+ },
16013
+ flexWrap: "nowrap",
16014
+ justifyContent: "center",
16015
+ alignItems: "center",
16016
+ gap: "20px"
16017
+ }
16018
+ }
16019
+ ]
16020
+ },
16021
+ {
16022
+ type: "grid-item-layout",
16023
+ options: {
16024
+ spacing: {
16025
+ margin: "0px 0px 0px 0px",
16026
+ padding: "0px 0px 0px 0px"
16027
+ },
16028
+ border: {
16029
+ width: "1px",
16030
+ radius: "0px",
16031
+ color: "#000000",
16032
+ style: "none"
16033
+ },
16034
+ direction: "ltr",
16035
+ colSpan: 2,
16036
+ grid: {
16037
+ "default": {
16038
+ rows: 1,
16039
+ columns: 1,
16040
+ justifyItems: "stretch",
16041
+ alignItems: "stretch",
16042
+ gap: "0px 0px"
16043
+ }
16044
+ }
16045
+ },
16046
+ children: [
16047
+ {
16048
+ type: "flex-layout",
16049
+ children: [
14932
16050
  {
14933
- type: "form-field",
14934
- options: {
14935
- label: "Safety Officer Name"
14936
- },
16051
+ type: "flex-item-layout",
14937
16052
  children: [
14938
16053
  {
14939
- type: "text-editor",
14940
- name: "safety-officer-name",
16054
+ type: "selection-list-editor",
16055
+ path: "select-option-row-7",
14941
16056
  options: {
14942
- placeholder: "Enter safety officer name"
14943
- }
16057
+ multiple: false,
16058
+ direction: {
16059
+ id: "horizontal"
16060
+ },
16061
+ disabled: false,
16062
+ readonly: false,
16063
+ dataSource: "yes-no-options",
16064
+ textField: "title",
16065
+ valueField: "value"
16066
+ },
16067
+ name: "selection-list-editor7"
14944
16068
  }
14945
- ]
14946
- },
14947
- {
14948
- type: "form-field",
16069
+ ],
14949
16070
  options: {
14950
- label: "Approval Date"
16071
+ spacing: {
16072
+ margin: "0px 0px 0px 0px",
16073
+ padding: "0px 0px 0px 0px"
16074
+ },
16075
+ border: {
16076
+ width: "1px",
16077
+ radius: "0px",
16078
+ color: "#000000",
16079
+ style: "none"
16080
+ },
16081
+ direction: "ltr"
14951
16082
  },
14952
- children: [
14953
- {
14954
- type: "date-time-editor",
14955
- name: "safety-officer-date",
14956
- options: {
14957
- placeholder: "Select approval date"
14958
- }
14959
- }
14960
- ]
16083
+ name: "flex-item-layout23"
14961
16084
  }
14962
- ]
16085
+ ],
16086
+ options: {
16087
+ spacing: {
16088
+ margin: "0px",
16089
+ padding: "0px"
16090
+ },
16091
+ border: {
16092
+ width: "1px",
16093
+ radius: "0px",
16094
+ color: "#000000",
16095
+ style: "none"
16096
+ },
16097
+ flexWrap: "nowrap",
16098
+ justifyContent: "center",
16099
+ alignItems: "center",
16100
+ gap: "20px"
16101
+ },
16102
+ name: "flex-layout23"
14963
16103
  }
14964
- ]
16104
+ ],
16105
+ name: "grid-item-layout23"
14965
16106
  },
14966
16107
  {
14967
- type: "grid-layout",
14968
- name: "completion-grid",
16108
+ type: "grid-item-layout",
16109
+ name: "grid-item-layout24",
14969
16110
  options: {
16111
+ spacing: {
16112
+ margin: "0px",
16113
+ padding: "10px"
16114
+ },
16115
+ border: {
16116
+ width: "1px",
16117
+ radius: "0px",
16118
+ color: "#000000",
16119
+ style: "solid"
16120
+ },
16121
+ direction: "ltr",
16122
+ colSpan: 12,
14970
16123
  grid: {
14971
16124
  "default": {
14972
- columns: 12,
14973
16125
  rows: 1,
14974
- gap: "20px",
16126
+ columns: 1,
14975
16127
  justifyItems: "stretch",
14976
- alignItems: "stretch"
16128
+ alignItems: "stretch",
16129
+ gap: "0px 0px"
14977
16130
  }
14978
16131
  },
16132
+ backgroundColor: "rgb(0,166,244)"
16133
+ },
16134
+ children: [
16135
+ {
16136
+ type: "text-block-layout",
16137
+ name: "text-block-layout5",
16138
+ options: {
16139
+ content: "<p>2. Identify the hazard(s) If you tick <span style=\"color:#ff0000\">YES</span>, complete a SWMS.</p>"
16140
+ }
16141
+ }
16142
+ ]
16143
+ },
16144
+ {
16145
+ type: "grid-item-layout",
16146
+ name: "grid-item-layout25",
16147
+ options: {
14979
16148
  spacing: {
14980
- margin: "0px 0px 30px",
14981
- padding: "0px"
16149
+ margin: "0px 0px 0px 0px",
16150
+ padding: "0px 0px 0px 0px"
14982
16151
  },
14983
16152
  border: {
14984
- width: "0px",
16153
+ width: "1px",
14985
16154
  radius: "0px",
14986
16155
  color: "#000000",
14987
16156
  style: "none"
14988
- }
16157
+ },
16158
+ direction: "ltr",
16159
+ colSpan: 10
14989
16160
  },
14990
16161
  children: [
14991
16162
  {
14992
- type: "grid-item-layout",
14993
- name: "work-completion",
16163
+ type: "flex-layout",
16164
+ name: "flex-layout24",
16165
+ children: [
16166
+ {
16167
+ type: "flex-item-layout",
16168
+ name: "flex-item-layout24",
16169
+ children: [
16170
+ {
16171
+ type: "text-block-layout",
16172
+ name: "text-block-layout18",
16173
+ options: {
16174
+ content: "<p>Fire/Explosion Hazards</p>"
16175
+ }
16176
+ }
16177
+ ],
16178
+ options: {
16179
+ spacing: {
16180
+ margin: "0px 0px 0px 0px",
16181
+ padding: "0px 0px 0px 0px"
16182
+ },
16183
+ border: {
16184
+ width: "1px",
16185
+ radius: "0px",
16186
+ color: "#000000",
16187
+ style: "none"
16188
+ },
16189
+ direction: "ltr"
16190
+ }
16191
+ }
16192
+ ],
14994
16193
  options: {
14995
16194
  spacing: {
14996
16195
  margin: "0px",
14997
- padding: "20px"
16196
+ padding: "10px"
14998
16197
  },
14999
16198
  border: {
15000
16199
  width: "1px",
15001
- radius: "8px",
15002
- color: "#e5e7eb",
15003
- style: "solid"
16200
+ radius: "0px",
16201
+ color: "#000000",
16202
+ style: "none"
15004
16203
  },
15005
- direction: "ltr",
15006
- colSpan: 12
15007
- },
16204
+ flexWrap: "nowrap",
16205
+ justifyContent: "center",
16206
+ alignItems: "center",
16207
+ gap: "20px"
16208
+ }
16209
+ }
16210
+ ]
16211
+ },
16212
+ {
16213
+ type: "grid-item-layout",
16214
+ name: "grid-item-layout26",
16215
+ options: {
16216
+ spacing: {
16217
+ margin: "0px 0px 0px 0px",
16218
+ padding: "0px 0px 0px 0px"
16219
+ },
16220
+ border: {
16221
+ width: "1px",
16222
+ radius: "0px",
16223
+ color: "#000000",
16224
+ style: "none"
16225
+ },
16226
+ direction: "ltr",
16227
+ colSpan: 2,
16228
+ grid: {
16229
+ "default": {
16230
+ rows: 1,
16231
+ columns: 1,
16232
+ justifyItems: "stretch",
16233
+ alignItems: "stretch",
16234
+ gap: "0px 0px"
16235
+ }
16236
+ }
16237
+ },
16238
+ children: [
16239
+ {
16240
+ type: "flex-layout",
16241
+ name: "flex-layout25",
15008
16242
  children: [
15009
16243
  {
15010
- type: "text-block-layout",
15011
- name: "section-title",
15012
- options: {
15013
- content: "<h3>Work Completion & Closure</h3>"
15014
- }
15015
- },
15016
- {
15017
- type: "form-field",
15018
- options: {
15019
- label: "Work Completed"
15020
- },
16244
+ type: "flex-item-layout",
16245
+ name: "flex-item-layout25",
15021
16246
  children: [
15022
16247
  {
15023
- type: "select-editor",
15024
- name: "work-completed",
16248
+ type: "selection-list-editor",
16249
+ name: "selection-list-editor8",
16250
+ path: "select-option-row-8",
15025
16251
  options: {
15026
- dataSource: "work-completion-status"
16252
+ multiple: false,
16253
+ direction: {
16254
+ id: "horizontal"
16255
+ },
16256
+ disabled: false,
16257
+ readonly: false,
16258
+ dataSource: "yes-no-options",
16259
+ textField: "title",
16260
+ valueField: "value"
15027
16261
  }
15028
16262
  }
15029
- ]
15030
- },
15031
- {
15032
- type: "form-field",
16263
+ ],
15033
16264
  options: {
15034
- label: "Completion Date"
15035
- },
15036
- children: [
15037
- {
15038
- type: "date-time-editor",
15039
- name: "completion-date",
15040
- options: {
15041
- placeholder: "Select completion date"
15042
- }
15043
- }
15044
- ]
16265
+ spacing: {
16266
+ margin: "0px 0px 0px 0px",
16267
+ padding: "0px 0px 0px 0px"
16268
+ },
16269
+ border: {
16270
+ width: "1px",
16271
+ radius: "0px",
16272
+ color: "#000000",
16273
+ style: "none"
16274
+ },
16275
+ direction: "ltr"
16276
+ }
16277
+ }
16278
+ ],
16279
+ options: {
16280
+ spacing: {
16281
+ margin: "0px",
16282
+ padding: "0px"
15045
16283
  },
15046
- {
15047
- type: "form-field",
15048
- options: {
15049
- label: "Completion Time"
15050
- },
15051
- children: [
15052
- {
15053
- type: "time-duration",
15054
- name: "completion-time",
15055
- options: {
15056
- placeholder: "Select completion time"
15057
- }
15058
- }
15059
- ]
16284
+ border: {
16285
+ width: "1px",
16286
+ radius: "0px",
16287
+ color: "#000000",
16288
+ style: "none"
15060
16289
  },
16290
+ flexWrap: "nowrap",
16291
+ justifyContent: "center",
16292
+ alignItems: "center",
16293
+ gap: "20px"
16294
+ }
16295
+ }
16296
+ ]
16297
+ },
16298
+ {
16299
+ type: "grid-item-layout",
16300
+ name: "grid-item-layout27",
16301
+ options: {
16302
+ spacing: {
16303
+ margin: "0px 0px 0px 0px",
16304
+ padding: "0px 0px 0px 0px"
16305
+ },
16306
+ border: {
16307
+ width: "1px",
16308
+ radius: "0px",
16309
+ color: "#000000",
16310
+ style: "none"
16311
+ },
16312
+ direction: "ltr",
16313
+ colSpan: 10
16314
+ },
16315
+ children: [
16316
+ {
16317
+ type: "flex-layout",
16318
+ name: "flex-layout26",
16319
+ children: [
15061
16320
  {
15062
- type: "form-field",
15063
- options: {
15064
- label: "Work Summary"
15065
- },
16321
+ type: "flex-item-layout",
16322
+ name: "flex-item-layout26",
15066
16323
  children: [
15067
16324
  {
15068
- type: "large-text-editor",
15069
- name: "work-summary",
16325
+ type: "text-block-layout",
16326
+ name: "text-block-layout19",
15070
16327
  options: {
15071
- placeholder: "Provide summary of work completed and any issues encountered"
16328
+ content: "<p>Toxic Substances & Chemical Exposure</p>"
15072
16329
  }
15073
16330
  }
15074
- ]
15075
- },
15076
- {
15077
- type: "form-field",
16331
+ ],
15078
16332
  options: {
15079
- label: "Work Area Restored"
15080
- },
15081
- children: [
15082
- {
15083
- type: "select-editor",
15084
- name: "area-restored",
15085
- options: {
15086
- dataSource: "yes-no-na-options"
15087
- }
15088
- }
15089
- ]
16333
+ spacing: {
16334
+ margin: "0px 0px 0px 0px",
16335
+ padding: "0px 0px 0px 0px"
16336
+ },
16337
+ border: {
16338
+ width: "1px",
16339
+ radius: "0px",
16340
+ color: "#000000",
16341
+ style: "none"
16342
+ },
16343
+ direction: "ltr"
16344
+ }
15090
16345
  }
15091
- ]
16346
+ ],
16347
+ options: {
16348
+ spacing: {
16349
+ margin: "0px",
16350
+ padding: "10px"
16351
+ },
16352
+ border: {
16353
+ width: "1px",
16354
+ radius: "0px",
16355
+ color: "#000000",
16356
+ style: "none"
16357
+ },
16358
+ flexWrap: "nowrap",
16359
+ justifyContent: "center",
16360
+ alignItems: "center",
16361
+ gap: "20px"
16362
+ }
15092
16363
  }
15093
16364
  ]
15094
16365
  },
15095
16366
  {
15096
- type: "grid-layout",
15097
- name: "signatures-grid",
16367
+ type: "grid-item-layout",
16368
+ name: "grid-item-layout28",
15098
16369
  options: {
15099
- grid: {
15100
- "default": {
15101
- columns: 12,
15102
- rows: 1,
15103
- gap: "20px",
15104
- justifyItems: "stretch",
15105
- alignItems: "stretch"
15106
- }
15107
- },
15108
16370
  spacing: {
15109
- margin: "0px",
15110
- padding: "0px"
16371
+ margin: "0px 0px 0px 0px",
16372
+ padding: "0px 0px 0px 0px"
15111
16373
  },
15112
16374
  border: {
15113
- width: "0px",
16375
+ width: "1px",
15114
16376
  radius: "0px",
15115
16377
  color: "#000000",
15116
16378
  style: "none"
16379
+ },
16380
+ direction: "ltr",
16381
+ colSpan: 2,
16382
+ grid: {
16383
+ "default": {
16384
+ rows: 1,
16385
+ columns: 1,
16386
+ justifyItems: "stretch",
16387
+ alignItems: "stretch",
16388
+ gap: "0px 0px"
16389
+ }
15117
16390
  }
15118
16391
  },
15119
16392
  children: [
15120
16393
  {
15121
- type: "grid-item-layout",
15122
- name: "applicant-signature",
15123
- options: {
15124
- spacing: {
15125
- margin: "0px",
15126
- padding: "20px"
15127
- },
15128
- border: {
15129
- width: "1px",
15130
- radius: "8px",
15131
- color: "#e5e7eb",
15132
- style: "solid"
15133
- },
15134
- direction: "ltr",
15135
- colSpan: 4
15136
- },
16394
+ type: "flex-layout",
16395
+ name: "flex-layout27",
15137
16396
  children: [
15138
16397
  {
15139
- type: "form-field",
15140
- options: {
15141
- label: "Applicant Signature"
15142
- },
16398
+ type: "flex-item-layout",
16399
+ name: "flex-item-layout27",
15143
16400
  children: [
15144
16401
  {
15145
- type: "signature",
15146
- name: "applicant-signature-field"
16402
+ type: "selection-list-editor",
16403
+ name: "selection-list-editor9",
16404
+ path: "select-option-row-9",
16405
+ options: {
16406
+ multiple: false,
16407
+ direction: {
16408
+ id: "horizontal"
16409
+ },
16410
+ disabled: false,
16411
+ readonly: false,
16412
+ dataSource: "yes-no-options",
16413
+ textField: "title",
16414
+ valueField: "value"
16415
+ }
15147
16416
  }
15148
- ]
15149
- },
15150
- {
15151
- type: "form-field",
16417
+ ],
15152
16418
  options: {
15153
- label: "Date"
15154
- },
15155
- children: [
15156
- {
15157
- type: "date-time-editor",
15158
- name: "applicant-date-signed"
15159
- }
15160
- ]
16419
+ spacing: {
16420
+ margin: "0px 0px 0px 0px",
16421
+ padding: "0px 0px 0px 0px"
16422
+ },
16423
+ border: {
16424
+ width: "1px",
16425
+ radius: "0px",
16426
+ color: "#000000",
16427
+ style: "none"
16428
+ },
16429
+ direction: "ltr"
16430
+ }
15161
16431
  }
15162
- ]
15163
- },
15164
- {
15165
- type: "grid-item-layout",
15166
- name: "supervisor-signature",
16432
+ ],
15167
16433
  options: {
15168
16434
  spacing: {
15169
16435
  margin: "0px",
15170
- padding: "20px"
16436
+ padding: "0px"
15171
16437
  },
15172
16438
  border: {
15173
16439
  width: "1px",
15174
- radius: "8px",
15175
- color: "#e5e7eb",
15176
- style: "solid"
16440
+ radius: "0px",
16441
+ color: "#000000",
16442
+ style: "none"
15177
16443
  },
15178
- direction: "ltr",
15179
- colSpan: 4
15180
- },
16444
+ flexWrap: "nowrap",
16445
+ justifyContent: "center",
16446
+ alignItems: "center",
16447
+ gap: "20px"
16448
+ }
16449
+ }
16450
+ ]
16451
+ },
16452
+ {
16453
+ type: "grid-item-layout",
16454
+ name: "grid-item-layout29",
16455
+ options: {
16456
+ spacing: {
16457
+ margin: "0px 0px 0px 0px",
16458
+ padding: "0px 0px 0px 0px"
16459
+ },
16460
+ border: {
16461
+ width: "1px",
16462
+ radius: "0px",
16463
+ color: "#000000",
16464
+ style: "none"
16465
+ },
16466
+ direction: "ltr",
16467
+ colSpan: 10
16468
+ },
16469
+ children: [
16470
+ {
16471
+ type: "flex-layout",
16472
+ name: "flex-layout28",
15181
16473
  children: [
15182
16474
  {
15183
- type: "form-field",
15184
- options: {
15185
- label: "Supervisor Signature"
15186
- },
16475
+ type: "flex-item-layout",
16476
+ name: "flex-item-layout28",
15187
16477
  children: [
15188
16478
  {
15189
- type: "signature",
15190
- name: "supervisor-signature-field"
16479
+ type: "text-block-layout",
16480
+ name: "text-block-layout20",
16481
+ options: {
16482
+ content: "<p>Electrical Hazards (e.g. Electrocution from faulty tools or working close to power lines)</p>"
16483
+ }
15191
16484
  }
15192
- ]
15193
- },
15194
- {
15195
- type: "form-field",
16485
+ ],
15196
16486
  options: {
15197
- label: "Date"
15198
- },
15199
- children: [
15200
- {
15201
- type: "date-time-editor",
15202
- name: "supervisor-date-signed"
15203
- }
15204
- ]
16487
+ spacing: {
16488
+ margin: "0px 0px 0px 0px",
16489
+ padding: "0px 0px 0px 0px"
16490
+ },
16491
+ border: {
16492
+ width: "1px",
16493
+ radius: "0px",
16494
+ color: "#000000",
16495
+ style: "none"
16496
+ },
16497
+ direction: "ltr"
16498
+ }
15205
16499
  }
15206
- ]
15207
- },
15208
- {
15209
- type: "grid-item-layout",
15210
- name: "safety-officer-signature",
16500
+ ],
15211
16501
  options: {
15212
16502
  spacing: {
15213
16503
  margin: "0px",
15214
- padding: "20px"
16504
+ padding: "10px"
15215
16505
  },
15216
16506
  border: {
15217
16507
  width: "1px",
15218
- radius: "8px",
15219
- color: "#e5e7eb",
15220
- style: "solid"
16508
+ radius: "0px",
16509
+ color: "#000000",
16510
+ style: "none"
15221
16511
  },
15222
- direction: "ltr",
15223
- colSpan: 4
15224
- },
16512
+ flexWrap: "nowrap",
16513
+ justifyContent: "center",
16514
+ alignItems: "center",
16515
+ gap: "20px"
16516
+ }
16517
+ }
16518
+ ]
16519
+ },
16520
+ {
16521
+ type: "grid-item-layout",
16522
+ name: "grid-item-layout30",
16523
+ options: {
16524
+ spacing: {
16525
+ margin: "0px 0px 0px 0px",
16526
+ padding: "0px 0px 0px 0px"
16527
+ },
16528
+ border: {
16529
+ width: "1px",
16530
+ radius: "0px",
16531
+ color: "#000000",
16532
+ style: "none"
16533
+ },
16534
+ direction: "ltr",
16535
+ colSpan: 2,
16536
+ grid: {
16537
+ "default": {
16538
+ rows: 1,
16539
+ columns: 1,
16540
+ justifyItems: "stretch",
16541
+ alignItems: "stretch",
16542
+ gap: "0px 0px"
16543
+ }
16544
+ }
16545
+ },
16546
+ children: [
16547
+ {
16548
+ type: "flex-layout",
16549
+ name: "flex-layout29",
15225
16550
  children: [
15226
16551
  {
15227
- type: "form-field",
15228
- options: {
15229
- label: "Safety Officer Signature"
15230
- },
16552
+ type: "flex-item-layout",
16553
+ name: "flex-item-layout29",
15231
16554
  children: [
15232
16555
  {
15233
- type: "signature",
15234
- name: "safety-officer-signature-field"
16556
+ type: "selection-list-editor",
16557
+ name: "selection-list-editor10",
16558
+ path: "select-option-row-10",
16559
+ options: {
16560
+ multiple: false,
16561
+ direction: {
16562
+ id: "horizontal"
16563
+ },
16564
+ disabled: false,
16565
+ readonly: false,
16566
+ dataSource: "yes-no-options",
16567
+ textField: "title",
16568
+ valueField: "value"
16569
+ }
15235
16570
  }
15236
- ]
15237
- },
15238
- {
15239
- type: "form-field",
16571
+ ],
15240
16572
  options: {
15241
- label: "Date"
15242
- },
15243
- children: [
15244
- {
15245
- type: "date-time-editor",
15246
- name: "safety-officer-date-signed"
15247
- }
15248
- ]
16573
+ spacing: {
16574
+ margin: "0px 0px 0px 0px",
16575
+ padding: "0px 0px 0px 0px"
16576
+ },
16577
+ border: {
16578
+ width: "1px",
16579
+ radius: "0px",
16580
+ color: "#000000",
16581
+ style: "none"
16582
+ },
16583
+ direction: "ltr"
16584
+ }
15249
16585
  }
15250
- ]
16586
+ ],
16587
+ options: {
16588
+ spacing: {
16589
+ margin: "0px",
16590
+ padding: "0px"
16591
+ },
16592
+ border: {
16593
+ width: "1px",
16594
+ radius: "0px",
16595
+ color: "#000000",
16596
+ style: "none"
16597
+ },
16598
+ flexWrap: "nowrap",
16599
+ justifyContent: "center",
16600
+ alignItems: "center",
16601
+ gap: "20px"
16602
+ }
15251
16603
  }
15252
16604
  ]
15253
16605
  }
@@ -32950,6 +34302,14 @@ const createFileCastMiddleware = {
32950
34302
  return undefined;
32951
34303
  }
32952
34304
  })();
34305
+ const folderService = (() => {
34306
+ try {
34307
+ return inject(AXMFolderService);
34308
+ }
34309
+ catch {
34310
+ return undefined;
34311
+ }
34312
+ })();
32953
34313
  // Helper Functions
32954
34314
  const isFileListItem = (obj) => {
32955
34315
  // Must have name as string
@@ -33067,11 +34427,9 @@ const createFileCastMiddleware = {
33067
34427
  return { id: docId, kind: 'document' };
33068
34428
  }
33069
34429
  catch (error) {
33070
- console.warn(`[file-cast] ⚠️ Failed to create document for existing file, falling back to file`, { cleanFileId, error });
33071
34430
  }
33072
34431
  }
33073
34432
  else {
33074
- console.warn(`[file-cast] ⚠️ Document service unavailable; returning file reference`, { cleanFileId });
33075
34433
  }
33076
34434
  }
33077
34435
  return { id: cleanFileId, kind: 'file' };
@@ -33166,13 +34524,69 @@ const createFileCastMiddleware = {
33166
34524
  typeof m.name === 'string' && typeof m.title === 'string' && typeof m.value === 'string');
33167
34525
  };
33168
34526
  const ensureDocumentRecord = async (svc, payload) => {
33169
- // Try to insert a minimal document record. Other fields are optional in mock.
34527
+ // Resolve or create folder hierarchy: <Entity>/<Record Title|Name>
34528
+ let parentId;
34529
+ try {
34530
+ if (folderService) {
34531
+ const findFolderByName = async (name, parent) => {
34532
+ const filters = [
34533
+ { field: 'name', operator: { type: 'equal' }, value: name },
34534
+ ];
34535
+ if (parent) {
34536
+ filters.push({ field: 'parentId', operator: { type: 'equal' }, value: parent });
34537
+ }
34538
+ else {
34539
+ filters.push({ field: 'parentId', operator: { type: 'isnull' } });
34540
+ }
34541
+ const result = await folderService.query({
34542
+ skip: 0,
34543
+ take: 1,
34544
+ filter: { logic: 'and', filters },
34545
+ });
34546
+ return result?.items?.[0] ?? null;
34547
+ };
34548
+ const ensureFolder = async (name, parent) => {
34549
+ const exists = await findFolderByName(name, parent);
34550
+ if (exists?.id)
34551
+ return exists.id;
34552
+ const createPayload = {
34553
+ name,
34554
+ color: '#FFFFFF',
34555
+ size: 0,
34556
+ parentId: parent,
34557
+ inherit: 'Extends',
34558
+ };
34559
+ const newId = await folderService.insertOne(createPayload);
34560
+ return newId;
34561
+ };
34562
+ // Find a root (folder with no parent)
34563
+ const rootQuery = await folderService.query({
34564
+ skip: 0,
34565
+ take: 1,
34566
+ filter: { logic: 'and', filters: [{ field: 'parentId', operator: { type: 'isnull' } }] },
34567
+ });
34568
+ const root = rootQuery?.items?.[0];
34569
+ if (root?.id) {
34570
+ const entityFullName = ctx.entityName || 'Entity';
34571
+ const entityNameOnly = entityFullName.split('.').pop() || entityFullName;
34572
+ const recordFolderName = (ctx?.data?.title || ctx?.data?.name || payload.name || 'Record').toString();
34573
+ const entityFolderId = await ensureFolder(entityNameOnly, root.id);
34574
+ parentId = await ensureFolder(recordFolderName, entityFolderId);
34575
+ }
34576
+ }
34577
+ }
34578
+ catch (e) {
34579
+ // Fallback: if anything fails, we will try to insert without parentId; mock may reject
34580
+ console.warn('[file-cast] ⚠️ Failed to ensure folder path for document, inserting without parentId');
34581
+ }
34582
+ // Insert document record with resolved parent folder if available
33170
34583
  const id = await svc.insertOne({
33171
34584
  fileId: addFilePrefix(payload.fileId),
33172
34585
  name: payload.name,
33173
34586
  title: payload.title,
33174
34587
  size: payload.size,
33175
34588
  meta: payload.meta,
34589
+ parentId,
33176
34590
  });
33177
34591
  return id;
33178
34592
  };