blixify-ui-web 1.2.11 → 1.2.13

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.
Files changed (35) hide show
  1. package/lib/components/action/iconButton/index.d.ts +1 -0
  2. package/lib/components/action/iconButton/index.d.ts.map +1 -1
  3. package/lib/components/action/iconButton/index.js +2 -1
  4. package/lib/components/action/iconButton/index.js.map +1 -1
  5. package/lib/components/data/dataTemplate/flexFilterModel.d.ts +18 -0
  6. package/lib/components/data/dataTemplate/flexFilterModel.d.ts.map +1 -0
  7. package/lib/components/data/dataTemplate/flexFilterModel.js +50 -0
  8. package/lib/components/data/dataTemplate/flexFilterModel.js.map +1 -0
  9. package/lib/components/data/dataTemplate/flexFilterModule.d.ts +53 -0
  10. package/lib/components/data/dataTemplate/flexFilterModule.d.ts.map +1 -0
  11. package/lib/components/data/dataTemplate/flexFilterModule.js +373 -0
  12. package/lib/components/data/dataTemplate/flexFilterModule.js.map +1 -0
  13. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  14. package/lib/components/data/dataTemplate/index.js +226 -87
  15. package/lib/components/data/dataTemplate/index.js.map +1 -1
  16. package/lib/components/data/dataTemplate/model.d.ts +2 -0
  17. package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
  18. package/lib/components/data/listModule.d.ts +9 -2
  19. package/lib/components/data/listModule.d.ts.map +1 -1
  20. package/lib/components/data/listModule.js +134 -12
  21. package/lib/components/data/listModule.js.map +1 -1
  22. package/lib/components/data/testSchema.d.ts +26 -0
  23. package/lib/components/data/testSchema.d.ts.map +1 -1
  24. package/lib/components/data/testSchema.js +407 -1
  25. package/lib/components/data/testSchema.js.map +1 -1
  26. package/lib/components/display/detailList/index.d.ts +1 -0
  27. package/lib/components/display/detailList/index.d.ts.map +1 -1
  28. package/lib/components/display/detailList/index.js +2 -2
  29. package/lib/components/display/detailList/index.js.map +1 -1
  30. package/lib/components/display/newTable/index.d.ts +54 -3
  31. package/lib/components/display/newTable/index.d.ts.map +1 -1
  32. package/lib/components/display/newTable/index.js +769 -74
  33. package/lib/components/display/newTable/index.js.map +1 -1
  34. package/lib/tail.css +2 -2
  35. package/package.json +1 -1
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.PostCheckListTestSchema = exports.DTWChecklistSchema = exports.renderChecklistSubmissionSchema = exports.renderChecklistTechnicalSchema = exports.renderChecklistPostServiceSchema = exports.renderChecklistPreServiceSchema = exports.renderChecklistBasicInfoSchema = exports.OMMaintenanceChecklistSchema = exports.renderSubmissionAndSignaturesSchema = exports.renderTechnicalChecklistsSchema = exports.renderPostServiceSchema = exports.renderPreServiceSchema = exports.renderBasicInformationSchema = exports.KMProjectSchema = exports.OrganisationProfileSchema = exports.OrganisationSchema = exports.ProposalSchema = exports.ProjectSchema = void 0;
15
+ exports.MeraqueWorkOrderSchema = exports.MeraqueOrderPlotDetailSchema = exports.MeraquePesticideName = exports.MeraquePlotAgeSeedling = exports.meraqueDevSettings = exports.PostCheckListTestSchema = exports.DTWChecklistSchema = exports.renderChecklistSubmissionSchema = exports.renderChecklistTechnicalSchema = exports.renderChecklistPostServiceSchema = exports.renderChecklistPreServiceSchema = exports.renderChecklistBasicInfoSchema = exports.OMMaintenanceChecklistSchema = exports.renderSubmissionAndSignaturesSchema = exports.renderTechnicalChecklistsSchema = exports.renderPostServiceSchema = exports.renderPreServiceSchema = exports.renderBasicInformationSchema = exports.KMProjectSchema = exports.OrganisationProfileSchema = exports.OrganisationSchema = exports.ProposalSchema = exports.ProjectSchema = void 0;
16
16
  var react_1 = __importDefault(require("react"));
17
17
  var textButton_1 = require("../action/textButton");
18
18
  var dayjs_1 = __importDefault(require("../dayjs"));
@@ -4168,4 +4168,410 @@ exports.PostCheckListTestSchema = [
4168
4168
  groupId: "3. Final Documentation",
4169
4169
  },
4170
4170
  ];
4171
+ // INFO: DTW configs & schema from Meraque work orders
4172
+ // const meraqueBaseUrl = "http://localhost:3000";
4173
+ var meraqueBaseUrl = "http://localhost:3000";
4174
+ exports.meraqueDevSettings = {
4175
+ apiEndpointType: "mongoDB",
4176
+ apiEndpoint: "".concat(meraqueBaseUrl, "/api/data"),
4177
+ apiUserToken: "",
4178
+ assetEndpoint: "https://firebasestorage.googleapis.com/v0/b/meraque-web-dev.appspot.com/o/",
4179
+ assetUploadEndpoint: "".concat(meraqueBaseUrl, "/api/asset"),
4180
+ };
4181
+ var MeraquePlotAgeSeedling;
4182
+ (function (MeraquePlotAgeSeedling) {
4183
+ MeraquePlotAgeSeedling["LessThanOne"] = "Less than 1 month";
4184
+ MeraquePlotAgeSeedling["One"] = "1 Month";
4185
+ MeraquePlotAgeSeedling["Two"] = "2 Months";
4186
+ MeraquePlotAgeSeedling["Three"] = "3 Months";
4187
+ MeraquePlotAgeSeedling["Four"] = "4 Months";
4188
+ MeraquePlotAgeSeedling["Five"] = "5 Months";
4189
+ MeraquePlotAgeSeedling["Six"] = "6 Months";
4190
+ MeraquePlotAgeSeedling["Seven"] = "7 Months";
4191
+ MeraquePlotAgeSeedling["Eight"] = "8 Months";
4192
+ MeraquePlotAgeSeedling["Nine"] = "9 Months";
4193
+ MeraquePlotAgeSeedling["Ten"] = "10 Months";
4194
+ MeraquePlotAgeSeedling["Eleven"] = "11 Months";
4195
+ MeraquePlotAgeSeedling["Twelve"] = "12 Months";
4196
+ MeraquePlotAgeSeedling["AboveTwelve"] = "Above 12 Months";
4197
+ })(MeraquePlotAgeSeedling || (exports.MeraquePlotAgeSeedling = MeraquePlotAgeSeedling = {}));
4198
+ var MeraquePesticideName;
4199
+ (function (MeraquePesticideName) {
4200
+ MeraquePesticideName["Cypermethrin"] = "Cypermethrin";
4201
+ MeraquePesticideName["Rogor"] = "Rogor";
4202
+ MeraquePesticideName["Thiram"] = "Thiram";
4203
+ MeraquePesticideName["Antarcol"] = "Antarcol";
4204
+ MeraquePesticideName["BlocusBeta"] = "Blocus Beta";
4205
+ })(MeraquePesticideName || (exports.MeraquePesticideName = MeraquePesticideName = {}));
4206
+ exports.MeraqueOrderPlotDetailSchema = [
4207
+ {
4208
+ id: "plotRef",
4209
+ type: "reference",
4210
+ name: "Primary Plot Name",
4211
+ placeholder: "Select plot name",
4212
+ referenceLabel: "estatePlotName",
4213
+ referenceSpaceId: "meraque-plots",
4214
+ optional: true,
4215
+ },
4216
+ {
4217
+ id: "plot",
4218
+ type: "string",
4219
+ name: "Secondary Plot Name",
4220
+ placeholder: "Enter plot name",
4221
+ optional: true,
4222
+ },
4223
+ {
4224
+ id: "ageSeedling",
4225
+ type: "list",
4226
+ name: "Plot Age Seedling",
4227
+ listSelection: Object.values(MeraquePlotAgeSeedling),
4228
+ optional: true,
4229
+ },
4230
+ {
4231
+ id: "seedlingSprayed",
4232
+ type: "number",
4233
+ name: "Plot Seedling Sprayed (Nursery)",
4234
+ placeholder: "",
4235
+ minNumber: 0,
4236
+ optional: true,
4237
+ },
4238
+ {
4239
+ id: "haSprayed",
4240
+ type: "number",
4241
+ name: "Plot Ha. Sprayed (P2P)",
4242
+ placeholder: "",
4243
+ minNumber: 0,
4244
+ optional: true,
4245
+ },
4246
+ {
4247
+ id: "treeCountSprayed",
4248
+ type: "number",
4249
+ name: "Plot Tree Count Sprayed (P2P)",
4250
+ placeholder: "",
4251
+ minNumber: 0,
4252
+ optional: true,
4253
+ },
4254
+ {
4255
+ id: "log",
4256
+ type: "image",
4257
+ name: "Log Screenshot",
4258
+ fileExtension: ".png,.jpg,.jpeg",
4259
+ fileDescription: ".png,.jpg,.jpeg up to 30MB",
4260
+ imageCollectionName: "meraque-orders",
4261
+ imageFileName: "log.png",
4262
+ optional: true,
4263
+ },
4264
+ ];
4265
+ exports.MeraqueWorkOrderSchema = [
4266
+ {
4267
+ id: "title",
4268
+ type: "string",
4269
+ name: "Title",
4270
+ groupId: "A. Basic Information",
4271
+ },
4272
+ {
4273
+ id: "verified",
4274
+ type: "boolean",
4275
+ name: "Verified",
4276
+ groupId: "A. Basic Information",
4277
+ },
4278
+ {
4279
+ id: "cycleId",
4280
+ type: "reference",
4281
+ name: "Work Cycle",
4282
+ referenceLabel: "title",
4283
+ referenceSpaceId: "meraque-cycles",
4284
+ referenceSort: { sortId: "startDate", type: "desc" },
4285
+ groupId: "A. Basic Information",
4286
+ },
4287
+ {
4288
+ id: "status",
4289
+ type: "list",
4290
+ name: "Cycle Completion Status",
4291
+ placeholder: "Is this cycle completed?",
4292
+ listSelection: ["Not Completed", "Completed"],
4293
+ listSelectionColour: ["red", "green"],
4294
+ groupId: "A. Basic Information",
4295
+ },
4296
+ {
4297
+ id: "startDate",
4298
+ type: "date",
4299
+ name: "Clock In",
4300
+ groupId: "A. Basic Information",
4301
+ },
4302
+ {
4303
+ id: "endDate",
4304
+ type: "date",
4305
+ name: "Clock Out",
4306
+ optional: true,
4307
+ groupId: "A. Basic Information",
4308
+ },
4309
+ {
4310
+ id: "operationDay",
4311
+ type: "number",
4312
+ name: "Operation Day",
4313
+ groupId: "A. Basic Information",
4314
+ },
4315
+ {
4316
+ id: "teamId",
4317
+ type: "reference",
4318
+ name: "Team",
4319
+ referenceLabel: "name",
4320
+ referenceSpaceId: "meraque-teams",
4321
+ groupId: "B. Team & Pilots",
4322
+ },
4323
+ {
4324
+ id: "pilotId",
4325
+ type: "reference",
4326
+ name: "Pilot",
4327
+ referenceLabel: "name",
4328
+ referenceSpaceId: "meraque-users",
4329
+ referenceQuery: [
4330
+ {
4331
+ type: "=",
4332
+ queryId: "role",
4333
+ value: "pilot",
4334
+ },
4335
+ ],
4336
+ groupId: "B. Team & Pilots",
4337
+ },
4338
+ {
4339
+ id: "pilotVehicleLicenseExpiry",
4340
+ type: "date",
4341
+ name: "Pilot Vehicle License Expiry Date",
4342
+ optional: true,
4343
+ hideForm: true,
4344
+ groupId: "B. Team & Pilots",
4345
+ },
4346
+ {
4347
+ id: "coPilotId",
4348
+ type: "listReference",
4349
+ name: "Co-Pilots",
4350
+ referenceLabel: "name",
4351
+ referenceSpaceId: "meraque-users",
4352
+ referenceQuery: [
4353
+ {
4354
+ type: "in",
4355
+ queryId: "role",
4356
+ value: ["pilot", "operation", "engineer"],
4357
+ },
4358
+ ],
4359
+ groupId: "B. Team & Pilots",
4360
+ },
4361
+ {
4362
+ id: "robotId",
4363
+ type: "reference",
4364
+ name: "Robot",
4365
+ referenceLabel: "chasisNo",
4366
+ referenceSpaceId: "meraque-robots",
4367
+ groupId: "B. Robot & Vehicle",
4368
+ },
4369
+ {
4370
+ id: "vehicleId",
4371
+ type: "reference",
4372
+ name: "Vehicle",
4373
+ referenceLabel: "plateNo",
4374
+ referenceSpaceId: "meraque-vehicles",
4375
+ groupId: "B. Robot & Vehicle",
4376
+ },
4377
+ {
4378
+ id: "pesticideName",
4379
+ type: "multipleList",
4380
+ name: "Pesticide Name",
4381
+ listSelection: Object.values(MeraquePesticideName),
4382
+ listView: "radioview",
4383
+ listNewValue: true,
4384
+ groupId: "C. Pesticide",
4385
+ },
4386
+ {
4387
+ id: "pesticideBefore",
4388
+ type: "number",
4389
+ name: "Pesticide Before (L)",
4390
+ groupId: "C. Pesticide",
4391
+ },
4392
+ {
4393
+ id: "pesticideAfter",
4394
+ type: "number",
4395
+ name: "Pesticide After (L)",
4396
+ optional: true,
4397
+ groupId: "C. Pesticide",
4398
+ },
4399
+ {
4400
+ id: "pesticideUsed",
4401
+ type: "number",
4402
+ name: "Pesticide Used",
4403
+ optional: true,
4404
+ hideForm: true,
4405
+ groupId: "C. Pesticide",
4406
+ },
4407
+ {
4408
+ id: "preFlightDroneImg",
4409
+ type: "multipleImage",
4410
+ name: "Pre-flight Drone Image",
4411
+ imageCollectionName: "meraque-order",
4412
+ imageFileName: "pre-flight-drone-img.png",
4413
+ fileExtension: "image/*, capture=camera",
4414
+ imageInputCapture: "environment",
4415
+ optional: true,
4416
+ groupId: "D. Pre-flight Checklist",
4417
+ },
4418
+ {
4419
+ id: "areaSprayed",
4420
+ type: "number",
4421
+ name: "Seedling Sprayed Today (Nursery)",
4422
+ optional: true,
4423
+ disabled: true,
4424
+ hideForm: true,
4425
+ groupId: "E. Sprayed",
4426
+ },
4427
+ {
4428
+ id: "haSprayed",
4429
+ type: "number",
4430
+ name: "Ha. Sprayed Today (P2P)",
4431
+ optional: true,
4432
+ disabled: true,
4433
+ hideForm: true,
4434
+ groupId: "E. Sprayed",
4435
+ },
4436
+ {
4437
+ id: "cropSprayed",
4438
+ type: "number",
4439
+ name: "Tree Count Sprayed Today (P2P)",
4440
+ optional: true,
4441
+ disabled: true,
4442
+ hideForm: true,
4443
+ groupId: "E. Sprayed",
4444
+ },
4445
+ {
4446
+ id: "totalSeedlingEstate",
4447
+ type: "number",
4448
+ name: "Total Seedling Estate (Nursery)",
4449
+ optional: true,
4450
+ groupId: "E. Sprayed",
4451
+ },
4452
+ {
4453
+ id: "totalHaEstate",
4454
+ type: "number",
4455
+ name: "Total Ha. Estate (P2P)",
4456
+ optional: true,
4457
+ groupId: "E. Sprayed",
4458
+ },
4459
+ {
4460
+ id: "totalFlight",
4461
+ type: "number",
4462
+ name: "Total Flight",
4463
+ optional: true,
4464
+ groupId: "E. Sprayed",
4465
+ },
4466
+ {
4467
+ id: "totalHours",
4468
+ type: "number",
4469
+ name: "Total Hours",
4470
+ optional: true,
4471
+ groupId: "E. Sprayed",
4472
+ },
4473
+ {
4474
+ id: "teamIncentive",
4475
+ type: "number",
4476
+ name: "Team Incentive (RM)",
4477
+ optional: true,
4478
+ },
4479
+ {
4480
+ id: "remarks",
4481
+ type: "multipleList",
4482
+ name: "Remarks",
4483
+ listSelection: ["Rain", "Strong Wind", "Drone Problem"],
4484
+ optional: true,
4485
+ listView: "radioview",
4486
+ listNewValue: true,
4487
+ groupId: "E. Sprayed",
4488
+ },
4489
+ {
4490
+ id: "flightLogsExcel",
4491
+ type: "multipleFile",
4492
+ name: "Flight Logs Excel",
4493
+ fileExtension: ".xlsx, .xls",
4494
+ fileDescription: "Only .xlsx, .xls files up to 30MB",
4495
+ imageCollectionName: "meraque-order",
4496
+ imageFileName: "flight_logs.xls",
4497
+ filePreserveName: true,
4498
+ optional: true,
4499
+ confirmOnRemove: true,
4500
+ noDuplicateFileName: true,
4501
+ groupId: "F. Post-flight Checklist",
4502
+ },
4503
+ {
4504
+ id: "submittedBy",
4505
+ type: "reference",
4506
+ name: "Submitted By",
4507
+ referenceLabel: "name",
4508
+ referenceSpaceId: "meraque-users",
4509
+ referenceQuery: [{ type: "=", queryId: "role", value: "pilot" }],
4510
+ },
4511
+ {
4512
+ id: "details",
4513
+ type: "listObject",
4514
+ name: "Plot Details",
4515
+ objectData: exports.MeraqueOrderPlotDetailSchema,
4516
+ optional: true,
4517
+ },
4518
+ {
4519
+ id: "duration",
4520
+ type: "object",
4521
+ name: "Duration",
4522
+ optional: true,
4523
+ hide: true,
4524
+ objectData: [
4525
+ { id: "hours", type: "number", name: "Hours" },
4526
+ { id: "minutes", type: "number", name: "Minutes" },
4527
+ ],
4528
+ hideForm: true,
4529
+ },
4530
+ {
4531
+ id: "meta",
4532
+ type: "object",
4533
+ name: "Meta Information",
4534
+ optional: true,
4535
+ hide: true,
4536
+ objectData: [
4537
+ { id: "platform", type: "string", name: "Platform", optional: true },
4538
+ { id: "appVersion", type: "string", name: "App Version", optional: true },
4539
+ {
4540
+ id: "deviceModel",
4541
+ type: "string",
4542
+ name: "Device Model",
4543
+ optional: true,
4544
+ },
4545
+ { id: "os", type: "string", name: "OS", optional: true },
4546
+ { id: "osVersion", type: "string", name: "OS Version", optional: true },
4547
+ { id: "iOSVersion", type: "number", name: "iOS Version", optional: true },
4548
+ {
4549
+ id: "androidSDKVersion",
4550
+ type: "number",
4551
+ name: "Android SDK Version",
4552
+ optional: true,
4553
+ },
4554
+ {
4555
+ id: "manufacturer",
4556
+ type: "string",
4557
+ name: "Manufacturer",
4558
+ optional: true,
4559
+ },
4560
+ {
4561
+ id: "adminDashboard",
4562
+ type: "boolean",
4563
+ name: "From Admin Dashboard",
4564
+ optional: true,
4565
+ },
4566
+ {
4567
+ id: "lastActive",
4568
+ type: "date",
4569
+ name: "Last Active",
4570
+ optional: true,
4571
+ },
4572
+ ],
4573
+ hideForm: true,
4574
+ disabled: true,
4575
+ },
4576
+ ];
4171
4577
  //# sourceMappingURL=testSchema.js.map